@things-factory/figure-service 10.1.65 → 10.1.66
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/dist-server/service/figure/figure-propose-v3.js +2 -0
- package/dist-server/service/figure/figure-propose-v3.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server/service/figure/figure-propose-v3.test.ts +4 -0
- package/server/service/figure/figure-propose-v3.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/figure-service",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.66",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"@things-factory:registry": "https://registry.npmjs.org"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"graphql-upload": "^15.0.2",
|
|
34
34
|
"koa-router": "^7.4.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "f92ae2a32e389f17eba0ce5770a98866ac3b1209"
|
|
37
37
|
}
|
|
@@ -54,6 +54,10 @@ describe('the model is told the kernel\'s commands and the open draft, never V2'
|
|
|
54
54
|
expect(rules).not.toMatch(/figure-v1|"parts"\s*:\s*\[|anchor/i)
|
|
55
55
|
})
|
|
56
56
|
|
|
57
|
+
it('a measure asked to be the same as another is linked, not copied (:3300, 2026-09-26: 「몸통 지름과 같게」 came as a fixed 100)', () => {
|
|
58
|
+
expect(rulesPromptV3()).toMatch(/same as, matches or follows another part or the figure, write link-dimension/)
|
|
59
|
+
})
|
|
60
|
+
|
|
57
61
|
it('a revision carries the draft\'s V3 source', async () => {
|
|
58
62
|
const draft = applyV3Proposal(createV3Asset('Lift table'), liftTable as any)
|
|
59
63
|
const client = stubClient([{ steps: [{ kind: 'rename', name: 'Lift table 2' }] }])
|
|
@@ -65,6 +65,8 @@ export function rulesPromptV3(): string {
|
|
|
65
65
|
'A part is named by its id; use lowercase words joined by hyphens. Name only parts that exist or that an earlier step adds.',
|
|
66
66
|
'A colour is a palette token. A token the figure does not have yet is given with its colour on the same command:',
|
|
67
67
|
'{ kind: "set-material", target, material: { token }, palette: { [token]: "#rrggbb" } }.',
|
|
68
|
+
'When the request says a measure is the same as, matches or follows another part or the figure, write link-dimension:',
|
|
69
|
+
'a copied number stays the same when the other one is resized.',
|
|
68
70
|
'Declare the sizes the figure may be placed at before any measure follows the figure. End with fit-room when parts,',
|
|
69
71
|
'their fastenings or motions changed.',
|
|
70
72
|
'When revising, write only the commands the request needs. Everything not touched stays as it is.',
|