@things-factory/figure-service 10.1.270 → 10.1.271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/figure-service",
3
- "version": "10.1.270",
3
+ "version": "10.1.271",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "@things-factory:registry": "https://registry.npmjs.org"
@@ -27,16 +27,16 @@
27
27
  "dependencies": {
28
28
  "@hatiolab/figure-model": "^0.12.4",
29
29
  "@operato/typeorm-history": "^10.0.0",
30
- "@things-factory/ai-client-base": "^10.1.270",
31
- "@things-factory/attachment-base": "^10.1.270",
32
- "@things-factory/auth-base": "^10.1.270",
30
+ "@things-factory/ai-client-base": "^10.1.271",
31
+ "@things-factory/attachment-base": "^10.1.271",
32
+ "@things-factory/auth-base": "^10.1.271",
33
33
  "@things-factory/env": "^10.1.149",
34
- "@things-factory/setting-base": "^10.1.270",
34
+ "@things-factory/setting-base": "^10.1.271",
35
35
  "@things-factory/shell": "^10.1.270",
36
36
  "graphql-scalars": "^1.22.4",
37
37
  "graphql-upload": "^15.0.2",
38
38
  "jszip": "^3.10.1",
39
39
  "koa-router": "^7.4.0"
40
40
  },
41
- "gitHead": "9fb23e57702302f1a6c6572d9f0f37ef6f12b446"
41
+ "gitHead": "843bc2608d8c89348ced871777535966758927db"
42
42
  }
@@ -116,6 +116,17 @@ describe('figure-format — 버전을 알아보는 문', () => {
116
116
  expect(gone!.how).toBeTruthy()
117
117
  expect(inspection.blocked).toBe(true)
118
118
  })
119
+
120
+ it('계약을 깬 막힘은 새 피규어 타입으로 저장할 수 있다고 스스로 말한다 — 화면이 그 단추를 단다 (튜토리얼 2026-11-11)', () => {
121
+ const before = figureAsset()
122
+ before.document.capabilities.names = ['Holdable']
123
+ const inspection = inspectSource(figureSource(), serializeFigureAsset(before))
124
+ expect(inspection.findings.find(f => f.code === 'capability-gone')!.asNewType).toBe(true)
125
+ /* Something new is no break: no way to a new type offered for it */
126
+ const added = inspectSource(serializeFigureAsset(before), figureSource()).findings.filter(f => !f.blocking)
127
+ expect(added.every(f => f.asNewType === undefined)).toBe(true)
128
+ expect(inspectSource(null).findings[0].asNewType).toBeUndefined()
129
+ })
119
130
  })
120
131
 
121
132
  /*
@@ -45,6 +45,8 @@ export interface GateFinding {
45
45
  /** Where it points: the parts, or the path in the source. */
46
46
  at?: string
47
47
  blocking: boolean
48
+ /** The released contract breaks: saved as a new figure type, the edits release and the placed figures keep the old one. */
49
+ asNewType?: boolean
48
50
  }
49
51
 
50
52
  export interface Inspection {
@@ -394,7 +396,8 @@ function figureContractFindings(asset: FigureAsset, releasedJson: string, say: S
394
396
  code: change.code,
395
397
  ...figureContractWording(change, say),
396
398
  at: change.subject,
397
- blocking: change.blocking
399
+ blocking: change.blocking,
400
+ ...(change.blocking ? { asNewType: true } : {})
398
401
  }))
399
402
  }
400
403
 
@@ -206,6 +206,13 @@ export class FigureGateFinding {
206
206
 
207
207
  @Field({ description: 'True when this finding blocks the release.' })
208
208
  blocking: boolean
209
+
210
+ @Field({
211
+ nullable: true,
212
+ description:
213
+ 'True when the change breaks the released contract: saved as a new figure type, the edits release and the placed figures keep the old one.'
214
+ })
215
+ asNewType?: boolean
209
216
  }
210
217
 
211
218
  /**