@things-factory/figure-service 10.1.169 → 10.1.170

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.169",
3
+ "version": "10.1.170",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "@things-factory:registry": "https://registry.npmjs.org"
@@ -25,9 +25,9 @@
25
25
  "test:templates": "node --test scripts/templates.test.mts"
26
26
  },
27
27
  "dependencies": {
28
- "@hatiolab/figure-model": "^0.7.1",
28
+ "@hatiolab/figure-model": "^0.7.2",
29
29
  "@operato/typeorm-history": "^10.0.0",
30
- "@things-factory/ai-client-base": "^10.1.169",
30
+ "@things-factory/ai-client-base": "^10.1.170",
31
31
  "@things-factory/attachment-base": "^10.1.167",
32
32
  "@things-factory/auth-base": "^10.1.167",
33
33
  "@things-factory/env": "^10.1.149",
@@ -38,5 +38,5 @@
38
38
  "jszip": "^3.10.1",
39
39
  "koa-router": "^7.4.0"
40
40
  },
41
- "gitHead": "9d71d02b443f3e0080b25de1768b982c51a64111"
41
+ "gitHead": "1956b73789eace6376f1d79443306e1bb8e61908"
42
42
  }
@@ -141,6 +141,8 @@ describe('the steps are held to the kernel and the gate', () => {
141
141
  expect(reasons).toHaveLength(1)
142
142
  expect(reasons[0]).toMatch(/^TARGET_ABSENT: steps\[3\]/)
143
143
  expect(reasons[0]).toContain('The parts at steps[3] are: base, column, top.')
144
+ /* The kernel's sentence ends without a stop; the two sentences are not run together (:3300 "...here The parts"). */
145
+ expect(reasons[0]).toMatch(/[.!?] The parts at steps\[3\]/)
144
146
  })
145
147
 
146
148
  it('a request that failed is not asked again, and is said as it failed', async () => {
@@ -226,7 +226,10 @@ export function judgeFigureAnswer(
226
226
  `CLIPS_DROPPED: these steps would stop the clips ${clips.map(c => `${c.clip} (plays ${c.state})`).join(', ')}. A proposal may never remove a clip; only the person can. Keep the parts and the motions those clips play as they are.`
227
227
  ]
228
228
  }
229
- return { reasons: [`${(e as Error).message}${partsAtRefusedStep(base, steps as FigureProposalStep[], e)}`] }
229
+ const said = (e as Error).message
230
+ const parts = partsAtRefusedStep(base, steps as FigureProposalStep[], e)
231
+ /* The kernel's sentence may end without a stop; the next one is not run into it. */
232
+ return { reasons: [parts && !/[.!?]$/.test(said) ? `${said}.${parts}` : `${said}${parts}`] }
230
233
  }
231
234
 
232
235
  /* What the steps did to a section the writer was not shown, judged on the figure they made. */