@things-factory/figure-service 10.1.151 → 10.1.154
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.
|
|
3
|
+
"version": "10.1.154",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"@things-factory:registry": "https://registry.npmjs.org"
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"test:templates": "node --test scripts/templates.test.mts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@hatiolab/figure-model": "^0.6.
|
|
28
|
+
"@hatiolab/figure-model": "^0.6.3",
|
|
29
29
|
"@operato/typeorm-history": "^10.0.0",
|
|
30
30
|
"@things-factory/ai-client-base": "^10.1.149",
|
|
31
|
-
"@things-factory/attachment-base": "^10.1.
|
|
32
|
-
"@things-factory/auth-base": "^10.1.
|
|
31
|
+
"@things-factory/attachment-base": "^10.1.154",
|
|
32
|
+
"@things-factory/auth-base": "^10.1.154",
|
|
33
33
|
"@things-factory/env": "^10.1.149",
|
|
34
|
-
"@things-factory/setting-base": "^10.1.
|
|
35
|
-
"@things-factory/shell": "^10.1.
|
|
34
|
+
"@things-factory/setting-base": "^10.1.154",
|
|
35
|
+
"@things-factory/shell": "^10.1.154",
|
|
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": "
|
|
41
|
+
"gitHead": "f28579aa7131cbb282eb8813f8b285d9d29bb525"
|
|
42
42
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FIGURE_PROPOSAL_GRAMMAR, applyFigureProposal, createFigureAsset, inspectFigureAsset, serializeFigureAsset, figureCostOf, figureScoreOf } from '@hatiolab/figure-model'
|
|
2
|
-
import type { FigureAsset, FigureProposalStep } from '@hatiolab/figure-model'
|
|
2
|
+
import type { FigureAsset, FigureProposalStep, FigureRefusalDetails } from '@hatiolab/figure-model'
|
|
3
3
|
import { getDefaultAIClient } from '@things-factory/ai-client-base'
|
|
4
4
|
import type { AIImageMediaType, AIMessage } from '@things-factory/ai-client-base'
|
|
5
5
|
|
|
@@ -121,7 +121,8 @@ export function judgeFigureAnswer(base: FigureAsset, answer: unknown, revising:
|
|
|
121
121
|
The kernel's refusal tells a person how to agree; the model is told it may not, and what to keep instead -- it
|
|
122
122
|
must not learn to write a consent (designer 2026-09-27).
|
|
123
123
|
*/
|
|
124
|
-
const
|
|
124
|
+
const details = (e as { details?: FigureRefusalDetails }).details
|
|
125
|
+
const clips = details?.reason === 'clips-dropped' ? details.clips : undefined
|
|
125
126
|
if (clips)
|
|
126
127
|
return {
|
|
127
128
|
reasons: [
|