threenative-asset-mcp 0.7.0 → 0.8.0
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/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +28 -0
- package/dist/config.js.map +1 -1
- package/dist/creature/check.d.ts +375 -0
- package/dist/creature/check.d.ts.map +1 -0
- package/dist/creature/check.js +677 -0
- package/dist/creature/check.js.map +1 -0
- package/dist/creature/preview.d.ts +79 -0
- package/dist/creature/preview.d.ts.map +1 -0
- package/dist/creature/preview.js +729 -0
- package/dist/creature/preview.js.map +1 -0
- package/dist/creature/runner.d.ts +161 -0
- package/dist/creature/runner.d.ts.map +1 -0
- package/dist/creature/runner.js +1665 -0
- package/dist/creature/runner.js.map +1 -0
- package/dist/index.js +38 -12
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +34 -1
- package/dist/server.js.map +1 -1
- package/dist/tools/creature.d.ts +805 -0
- package/dist/tools/creature.d.ts.map +1 -0
- package/dist/tools/creature.js +604 -0
- package/dist/tools/creature.js.map +1 -0
- package/dist/tools/download-free-asset.d.ts +1 -1
- package/dist/tools/download-free-asset.d.ts.map +1 -1
- package/package.json +2 -1
- package/vendor/anycreature-1.3.1.zip +0 -0
package/dist/config.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
export declare const CREATURE_LIMITS: Readonly<{
|
|
2
|
+
specBytes: number;
|
|
3
|
+
glbBytes: number;
|
|
4
|
+
diagnosticsBytes: number;
|
|
5
|
+
compileTimeoutMs: 60000;
|
|
6
|
+
maxActiveHeavyOperations: 1;
|
|
7
|
+
}>;
|
|
8
|
+
export interface CreatureLimits {
|
|
9
|
+
specBytes: number;
|
|
10
|
+
glbBytes: number;
|
|
11
|
+
diagnosticsBytes: number;
|
|
12
|
+
compileTimeoutMs: number;
|
|
13
|
+
maxActiveHeavyOperations: number;
|
|
14
|
+
}
|
|
15
|
+
export interface CreatureConfig {
|
|
16
|
+
cacheDir: string;
|
|
17
|
+
limits: CreatureLimits;
|
|
18
|
+
}
|
|
1
19
|
export interface FabConfig {
|
|
2
20
|
directTimeoutMs: number;
|
|
3
21
|
browserTimeoutMs: number;
|
|
@@ -17,4 +35,5 @@ export interface FabConfig {
|
|
|
17
35
|
downloadTimeoutMs: number;
|
|
18
36
|
}
|
|
19
37
|
export declare function loadFabConfig(environment?: NodeJS.ProcessEnv): FabConfig;
|
|
38
|
+
export declare function loadCreatureConfig(environment?: NodeJS.ProcessEnv): CreatureConfig;
|
|
20
39
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAmEA,eAAO,MAAM,eAAe;;;;;;EAM1B,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC9C,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAwDD,wBAAgB,aAAa,CAC3B,WAAW,GAAE,MAAM,CAAC,UAAwB,GAC3C,SAAS,CAgDX;AAED,wBAAgB,kBAAkB,CAChC,WAAW,GAAE,MAAM,CAAC,UAAwB,GAC3C,cAAc,CAoBhB"}
|
package/dist/config.js
CHANGED
|
@@ -44,6 +44,22 @@ const EnvironmentSchema = z.object({
|
|
|
44
44
|
.max(3_600_000)
|
|
45
45
|
.default(600_000),
|
|
46
46
|
});
|
|
47
|
+
const CreatureLimitsSchema = z
|
|
48
|
+
.object({
|
|
49
|
+
specBytes: z.number().int().positive(),
|
|
50
|
+
glbBytes: z.number().int().positive(),
|
|
51
|
+
diagnosticsBytes: z.number().int().positive(),
|
|
52
|
+
compileTimeoutMs: z.number().int().positive(),
|
|
53
|
+
maxActiveHeavyOperations: z.number().int().positive(),
|
|
54
|
+
})
|
|
55
|
+
.strict();
|
|
56
|
+
export const CREATURE_LIMITS = Object.freeze({
|
|
57
|
+
specBytes: 256 * 1_024,
|
|
58
|
+
glbBytes: 32 * 1_024 * 1_024,
|
|
59
|
+
diagnosticsBytes: 1 * 1_024 * 1_024,
|
|
60
|
+
compileTimeoutMs: 60_000,
|
|
61
|
+
maxActiveHeavyOperations: 1,
|
|
62
|
+
});
|
|
47
63
|
function isInside(path, parent) {
|
|
48
64
|
const child = relative(parent, path);
|
|
49
65
|
return child === "" || (!child.startsWith("..") && !isAbsolute(child));
|
|
@@ -127,4 +143,16 @@ export function loadFabConfig(environment = process.env) {
|
|
|
127
143
|
downloadTimeoutMs: parsed.FAB_DOWNLOAD_TIMEOUT_MS,
|
|
128
144
|
};
|
|
129
145
|
}
|
|
146
|
+
export function loadCreatureConfig(environment = process.env) {
|
|
147
|
+
const cacheRoot = canonicalPath(environment.XDG_CACHE_HOME?.trim() || join(homedir(), ".cache"));
|
|
148
|
+
const cacheDir = canonicalPath(join(cacheRoot, "threenative-asset-mcp", "creature-toolchains"));
|
|
149
|
+
if (cacheDir === canonicalPath(homedir()) ||
|
|
150
|
+
dirname(cacheDir) === cacheDir) {
|
|
151
|
+
throw new Error("The creature toolchain cache must be a dedicated directory, not a filesystem or home root.");
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
cacheDir,
|
|
155
|
+
limits: CreatureLimitsSchema.parse(CREATURE_LIMITS),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
130
158
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,uBAAuB,GAAG,CAAC;KAC9B,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;KACjC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK,MAAM,CAAC,CAAC;AAE3D,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACtF,sBAAsB,EAAE,CAAC,CAAC,MAAM;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
+
import { type CreatureRunner } from "./runner.js";
|
|
3
|
+
declare const CLAIM_STAGES: readonly ["LOW", "MID", "HIGH"];
|
|
4
|
+
export type CreatureCheckMode = "structural" | "claims";
|
|
5
|
+
export type CreatureCheckStage = (typeof CLAIM_STAGES)[number];
|
|
6
|
+
type RawClaim = Record<string, unknown>;
|
|
7
|
+
export declare const CreatureCheckInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
glbPath: z.ZodString;
|
|
9
|
+
mode: z.ZodLiteral<"structural">;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
+
glbPath: z.ZodString;
|
|
12
|
+
mode: z.ZodLiteral<"claims">;
|
|
13
|
+
claimsPath: z.ZodString;
|
|
14
|
+
stage: z.ZodEnum<{
|
|
15
|
+
HIGH: "HIGH";
|
|
16
|
+
LOW: "LOW";
|
|
17
|
+
MID: "MID";
|
|
18
|
+
}>;
|
|
19
|
+
}, z.core.$strict>], "mode">;
|
|
20
|
+
declare const ObservationSchema: z.ZodObject<{
|
|
21
|
+
index: z.ZodNumber;
|
|
22
|
+
metric: z.ZodString;
|
|
23
|
+
value: z.ZodUnknown;
|
|
24
|
+
required: z.ZodLiteral<true>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
declare const CreatureCheckSuccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
+
operation: z.ZodLiteral<"creature_check">;
|
|
28
|
+
passed: z.ZodBoolean;
|
|
29
|
+
glbPath: z.ZodString;
|
|
30
|
+
glbSha256: z.ZodString;
|
|
31
|
+
measurements: z.ZodObject<{
|
|
32
|
+
bytes: z.ZodNumber;
|
|
33
|
+
vertices: z.ZodNumber;
|
|
34
|
+
faces: z.ZodNumber;
|
|
35
|
+
joints: z.ZodNumber;
|
|
36
|
+
bounds: z.ZodObject<{
|
|
37
|
+
width: z.ZodNumber;
|
|
38
|
+
height: z.ZodNumber;
|
|
39
|
+
length: z.ZodNumber;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
materials: z.ZodObject<{
|
|
42
|
+
count: z.ZodNumber;
|
|
43
|
+
names: z.ZodArray<z.ZodString>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
meshes: z.ZodArray<z.ZodObject<{
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
primitives: z.ZodNumber;
|
|
48
|
+
vertices: z.ZodNumber;
|
|
49
|
+
faces: z.ZodNumber;
|
|
50
|
+
materials: z.ZodArray<z.ZodString>;
|
|
51
|
+
}, z.core.$strict>>;
|
|
52
|
+
rig: z.ZodObject<{
|
|
53
|
+
skinCount: z.ZodNumber;
|
|
54
|
+
skinnedMeshes: z.ZodNumber;
|
|
55
|
+
joints: z.ZodNumber;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
clips: z.ZodArray<z.ZodString>;
|
|
58
|
+
clipDetails: z.ZodArray<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
channels: z.ZodNumber;
|
|
61
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
62
|
+
node: z.ZodString;
|
|
63
|
+
path: z.ZodString;
|
|
64
|
+
keyframes: z.ZodNumber;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
sourceSpec: z.ZodNullable<z.ZodUnknown>;
|
|
69
|
+
sourceSpecReason: z.ZodOptional<z.ZodString>;
|
|
70
|
+
structuralErrors: z.ZodArray<z.ZodString>;
|
|
71
|
+
upstream: z.ZodObject<{
|
|
72
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
passed: z.ZodBoolean;
|
|
75
|
+
warned: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
}, z.core.$strict>>;
|
|
77
|
+
advisories: z.ZodArray<z.ZodString>;
|
|
78
|
+
receiptPath: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
receiptPath: z.ZodOptional<z.ZodString>;
|
|
81
|
+
visualReview: z.ZodLiteral<"notReviewed">;
|
|
82
|
+
mode: z.ZodLiteral<"structural">;
|
|
83
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
84
|
+
operation: z.ZodLiteral<"creature_check">;
|
|
85
|
+
passed: z.ZodBoolean;
|
|
86
|
+
glbPath: z.ZodString;
|
|
87
|
+
glbSha256: z.ZodString;
|
|
88
|
+
measurements: z.ZodObject<{
|
|
89
|
+
bytes: z.ZodNumber;
|
|
90
|
+
vertices: z.ZodNumber;
|
|
91
|
+
faces: z.ZodNumber;
|
|
92
|
+
joints: z.ZodNumber;
|
|
93
|
+
bounds: z.ZodObject<{
|
|
94
|
+
width: z.ZodNumber;
|
|
95
|
+
height: z.ZodNumber;
|
|
96
|
+
length: z.ZodNumber;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
materials: z.ZodObject<{
|
|
99
|
+
count: z.ZodNumber;
|
|
100
|
+
names: z.ZodArray<z.ZodString>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
meshes: z.ZodArray<z.ZodObject<{
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
primitives: z.ZodNumber;
|
|
105
|
+
vertices: z.ZodNumber;
|
|
106
|
+
faces: z.ZodNumber;
|
|
107
|
+
materials: z.ZodArray<z.ZodString>;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
rig: z.ZodObject<{
|
|
110
|
+
skinCount: z.ZodNumber;
|
|
111
|
+
skinnedMeshes: z.ZodNumber;
|
|
112
|
+
joints: z.ZodNumber;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
clips: z.ZodArray<z.ZodString>;
|
|
115
|
+
clipDetails: z.ZodArray<z.ZodObject<{
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
channels: z.ZodNumber;
|
|
118
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
119
|
+
node: z.ZodString;
|
|
120
|
+
path: z.ZodString;
|
|
121
|
+
keyframes: z.ZodNumber;
|
|
122
|
+
}, z.core.$strict>>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
sourceSpec: z.ZodNullable<z.ZodUnknown>;
|
|
126
|
+
sourceSpecReason: z.ZodOptional<z.ZodString>;
|
|
127
|
+
structuralErrors: z.ZodArray<z.ZodString>;
|
|
128
|
+
upstream: z.ZodObject<{
|
|
129
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
passed: z.ZodBoolean;
|
|
132
|
+
warned: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
}, z.core.$strict>>;
|
|
134
|
+
advisories: z.ZodArray<z.ZodString>;
|
|
135
|
+
receiptPath: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
receiptPath: z.ZodOptional<z.ZodString>;
|
|
138
|
+
visualReview: z.ZodLiteral<"notReviewed">;
|
|
139
|
+
mode: z.ZodLiteral<"claims">;
|
|
140
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
141
|
+
index: z.ZodNumber;
|
|
142
|
+
type: z.ZodEnum<{
|
|
143
|
+
anim_named: "anim_named";
|
|
144
|
+
focal_contrast: "focal_contrast";
|
|
145
|
+
part_exists: "part_exists";
|
|
146
|
+
part_signature: "part_signature";
|
|
147
|
+
part_visible: "part_visible";
|
|
148
|
+
rig_skinned: "rig_skinned";
|
|
149
|
+
saturation_area: "saturation_area";
|
|
150
|
+
share_hierarchy: "share_hierarchy";
|
|
151
|
+
style_dark: "style_dark";
|
|
152
|
+
style_light: "style_light";
|
|
153
|
+
tri_budget: "tri_budget";
|
|
154
|
+
}>;
|
|
155
|
+
stage: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
HIGH: "HIGH";
|
|
157
|
+
LOW: "LOW";
|
|
158
|
+
MID: "MID";
|
|
159
|
+
}>>;
|
|
160
|
+
enforce: z.ZodEnum<{
|
|
161
|
+
advise: "advise";
|
|
162
|
+
block: "block";
|
|
163
|
+
}>;
|
|
164
|
+
status: z.ZodEnum<{
|
|
165
|
+
advisory: "advisory";
|
|
166
|
+
failed: "failed";
|
|
167
|
+
passed: "passed";
|
|
168
|
+
}>;
|
|
169
|
+
message: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strict>>;
|
|
171
|
+
observations: z.ZodArray<z.ZodObject<{
|
|
172
|
+
index: z.ZodNumber;
|
|
173
|
+
metric: z.ZodString;
|
|
174
|
+
value: z.ZodUnknown;
|
|
175
|
+
required: z.ZodLiteral<true>;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
metricsPath: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.core.$strict>], "mode">;
|
|
179
|
+
declare const CreatureCheckFailureSchema: z.ZodObject<{
|
|
180
|
+
operation: z.ZodLiteral<"creature_check">;
|
|
181
|
+
code: z.ZodEnum<{
|
|
182
|
+
BUSY: "BUSY";
|
|
183
|
+
CANCELLED: "CANCELLED";
|
|
184
|
+
COMPILE_BLOCKED: "COMPILE_BLOCKED";
|
|
185
|
+
INVALID_CLAIMS: "INVALID_CLAIMS";
|
|
186
|
+
INVALID_SPEC: "INVALID_SPEC";
|
|
187
|
+
OUTPUT_CONFLICT: "OUTPUT_CONFLICT";
|
|
188
|
+
OUTPUT_INVALID: "OUTPUT_INVALID";
|
|
189
|
+
PREVIEW_COMPARISON: "PREVIEW_COMPARISON";
|
|
190
|
+
TIMEOUT: "TIMEOUT";
|
|
191
|
+
TOOLCHAIN_UNAVAILABLE: "TOOLCHAIN_UNAVAILABLE";
|
|
192
|
+
}>;
|
|
193
|
+
message: z.ZodString;
|
|
194
|
+
detail: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
195
|
+
visualReview: z.ZodLiteral<"notReviewed">;
|
|
196
|
+
}, z.core.$strict>;
|
|
197
|
+
export declare const CreatureCheckOutputSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
|
+
operation: z.ZodLiteral<"creature_check">;
|
|
199
|
+
passed: z.ZodBoolean;
|
|
200
|
+
glbPath: z.ZodString;
|
|
201
|
+
glbSha256: z.ZodString;
|
|
202
|
+
measurements: z.ZodObject<{
|
|
203
|
+
bytes: z.ZodNumber;
|
|
204
|
+
vertices: z.ZodNumber;
|
|
205
|
+
faces: z.ZodNumber;
|
|
206
|
+
joints: z.ZodNumber;
|
|
207
|
+
bounds: z.ZodObject<{
|
|
208
|
+
width: z.ZodNumber;
|
|
209
|
+
height: z.ZodNumber;
|
|
210
|
+
length: z.ZodNumber;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
materials: z.ZodObject<{
|
|
213
|
+
count: z.ZodNumber;
|
|
214
|
+
names: z.ZodArray<z.ZodString>;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
meshes: z.ZodArray<z.ZodObject<{
|
|
217
|
+
name: z.ZodString;
|
|
218
|
+
primitives: z.ZodNumber;
|
|
219
|
+
vertices: z.ZodNumber;
|
|
220
|
+
faces: z.ZodNumber;
|
|
221
|
+
materials: z.ZodArray<z.ZodString>;
|
|
222
|
+
}, z.core.$strict>>;
|
|
223
|
+
rig: z.ZodObject<{
|
|
224
|
+
skinCount: z.ZodNumber;
|
|
225
|
+
skinnedMeshes: z.ZodNumber;
|
|
226
|
+
joints: z.ZodNumber;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
clips: z.ZodArray<z.ZodString>;
|
|
229
|
+
clipDetails: z.ZodArray<z.ZodObject<{
|
|
230
|
+
name: z.ZodString;
|
|
231
|
+
channels: z.ZodNumber;
|
|
232
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
233
|
+
node: z.ZodString;
|
|
234
|
+
path: z.ZodString;
|
|
235
|
+
keyframes: z.ZodNumber;
|
|
236
|
+
}, z.core.$strict>>;
|
|
237
|
+
}, z.core.$strict>>;
|
|
238
|
+
}, z.core.$strict>;
|
|
239
|
+
sourceSpec: z.ZodNullable<z.ZodUnknown>;
|
|
240
|
+
sourceSpecReason: z.ZodOptional<z.ZodString>;
|
|
241
|
+
structuralErrors: z.ZodArray<z.ZodString>;
|
|
242
|
+
upstream: z.ZodObject<{
|
|
243
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
passed: z.ZodBoolean;
|
|
246
|
+
warned: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
}, z.core.$strict>>;
|
|
248
|
+
advisories: z.ZodArray<z.ZodString>;
|
|
249
|
+
receiptPath: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
receiptPath: z.ZodOptional<z.ZodString>;
|
|
252
|
+
visualReview: z.ZodLiteral<"notReviewed">;
|
|
253
|
+
mode: z.ZodLiteral<"structural">;
|
|
254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
|
+
operation: z.ZodLiteral<"creature_check">;
|
|
256
|
+
passed: z.ZodBoolean;
|
|
257
|
+
glbPath: z.ZodString;
|
|
258
|
+
glbSha256: z.ZodString;
|
|
259
|
+
measurements: z.ZodObject<{
|
|
260
|
+
bytes: z.ZodNumber;
|
|
261
|
+
vertices: z.ZodNumber;
|
|
262
|
+
faces: z.ZodNumber;
|
|
263
|
+
joints: z.ZodNumber;
|
|
264
|
+
bounds: z.ZodObject<{
|
|
265
|
+
width: z.ZodNumber;
|
|
266
|
+
height: z.ZodNumber;
|
|
267
|
+
length: z.ZodNumber;
|
|
268
|
+
}, z.core.$strict>;
|
|
269
|
+
materials: z.ZodObject<{
|
|
270
|
+
count: z.ZodNumber;
|
|
271
|
+
names: z.ZodArray<z.ZodString>;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
meshes: z.ZodArray<z.ZodObject<{
|
|
274
|
+
name: z.ZodString;
|
|
275
|
+
primitives: z.ZodNumber;
|
|
276
|
+
vertices: z.ZodNumber;
|
|
277
|
+
faces: z.ZodNumber;
|
|
278
|
+
materials: z.ZodArray<z.ZodString>;
|
|
279
|
+
}, z.core.$strict>>;
|
|
280
|
+
rig: z.ZodObject<{
|
|
281
|
+
skinCount: z.ZodNumber;
|
|
282
|
+
skinnedMeshes: z.ZodNumber;
|
|
283
|
+
joints: z.ZodNumber;
|
|
284
|
+
}, z.core.$strict>;
|
|
285
|
+
clips: z.ZodArray<z.ZodString>;
|
|
286
|
+
clipDetails: z.ZodArray<z.ZodObject<{
|
|
287
|
+
name: z.ZodString;
|
|
288
|
+
channels: z.ZodNumber;
|
|
289
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
290
|
+
node: z.ZodString;
|
|
291
|
+
path: z.ZodString;
|
|
292
|
+
keyframes: z.ZodNumber;
|
|
293
|
+
}, z.core.$strict>>;
|
|
294
|
+
}, z.core.$strict>>;
|
|
295
|
+
}, z.core.$strict>;
|
|
296
|
+
sourceSpec: z.ZodNullable<z.ZodUnknown>;
|
|
297
|
+
sourceSpecReason: z.ZodOptional<z.ZodString>;
|
|
298
|
+
structuralErrors: z.ZodArray<z.ZodString>;
|
|
299
|
+
upstream: z.ZodObject<{
|
|
300
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
301
|
+
name: z.ZodString;
|
|
302
|
+
passed: z.ZodBoolean;
|
|
303
|
+
warned: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
}, z.core.$strict>>;
|
|
305
|
+
advisories: z.ZodArray<z.ZodString>;
|
|
306
|
+
receiptPath: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strict>;
|
|
308
|
+
receiptPath: z.ZodOptional<z.ZodString>;
|
|
309
|
+
visualReview: z.ZodLiteral<"notReviewed">;
|
|
310
|
+
mode: z.ZodLiteral<"claims">;
|
|
311
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
312
|
+
index: z.ZodNumber;
|
|
313
|
+
type: z.ZodEnum<{
|
|
314
|
+
anim_named: "anim_named";
|
|
315
|
+
focal_contrast: "focal_contrast";
|
|
316
|
+
part_exists: "part_exists";
|
|
317
|
+
part_signature: "part_signature";
|
|
318
|
+
part_visible: "part_visible";
|
|
319
|
+
rig_skinned: "rig_skinned";
|
|
320
|
+
saturation_area: "saturation_area";
|
|
321
|
+
share_hierarchy: "share_hierarchy";
|
|
322
|
+
style_dark: "style_dark";
|
|
323
|
+
style_light: "style_light";
|
|
324
|
+
tri_budget: "tri_budget";
|
|
325
|
+
}>;
|
|
326
|
+
stage: z.ZodOptional<z.ZodEnum<{
|
|
327
|
+
HIGH: "HIGH";
|
|
328
|
+
LOW: "LOW";
|
|
329
|
+
MID: "MID";
|
|
330
|
+
}>>;
|
|
331
|
+
enforce: z.ZodEnum<{
|
|
332
|
+
advise: "advise";
|
|
333
|
+
block: "block";
|
|
334
|
+
}>;
|
|
335
|
+
status: z.ZodEnum<{
|
|
336
|
+
advisory: "advisory";
|
|
337
|
+
failed: "failed";
|
|
338
|
+
passed: "passed";
|
|
339
|
+
}>;
|
|
340
|
+
message: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$strict>>;
|
|
342
|
+
observations: z.ZodArray<z.ZodObject<{
|
|
343
|
+
index: z.ZodNumber;
|
|
344
|
+
metric: z.ZodString;
|
|
345
|
+
value: z.ZodUnknown;
|
|
346
|
+
required: z.ZodLiteral<true>;
|
|
347
|
+
}, z.core.$strict>>;
|
|
348
|
+
metricsPath: z.ZodOptional<z.ZodString>;
|
|
349
|
+
}, z.core.$strict>], "mode">, z.ZodObject<{
|
|
350
|
+
operation: z.ZodLiteral<"creature_check">;
|
|
351
|
+
code: z.ZodEnum<{
|
|
352
|
+
BUSY: "BUSY";
|
|
353
|
+
CANCELLED: "CANCELLED";
|
|
354
|
+
COMPILE_BLOCKED: "COMPILE_BLOCKED";
|
|
355
|
+
INVALID_CLAIMS: "INVALID_CLAIMS";
|
|
356
|
+
INVALID_SPEC: "INVALID_SPEC";
|
|
357
|
+
OUTPUT_CONFLICT: "OUTPUT_CONFLICT";
|
|
358
|
+
OUTPUT_INVALID: "OUTPUT_INVALID";
|
|
359
|
+
PREVIEW_COMPARISON: "PREVIEW_COMPARISON";
|
|
360
|
+
TIMEOUT: "TIMEOUT";
|
|
361
|
+
TOOLCHAIN_UNAVAILABLE: "TOOLCHAIN_UNAVAILABLE";
|
|
362
|
+
}>;
|
|
363
|
+
message: z.ZodString;
|
|
364
|
+
detail: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
365
|
+
visualReview: z.ZodLiteral<"notReviewed">;
|
|
366
|
+
}, z.core.$strict>]>;
|
|
367
|
+
export type CreatureCheckSuccess = z.output<typeof CreatureCheckSuccessSchema>;
|
|
368
|
+
export type CreatureCheckFailure = z.output<typeof CreatureCheckFailureSchema>;
|
|
369
|
+
export type CreatureCheckOutput = z.output<typeof CreatureCheckOutputSchema>;
|
|
370
|
+
export declare function creatureCheckGuide(): string;
|
|
371
|
+
export declare function validateClaimsMetrics(metrics: unknown, claims: readonly RawClaim[]): z.output<typeof ObservationSchema>[];
|
|
372
|
+
export declare function checkCreature(runner: CreatureRunner, rawInput: z.input<typeof CreatureCheckInputSchema>, callerSignal?: AbortSignal): Promise<CreatureCheckOutput>;
|
|
373
|
+
export declare function creatureCheckError(error: unknown): CreatureCheckFailure;
|
|
374
|
+
export {};
|
|
375
|
+
//# sourceMappingURL=check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/creature/check.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAgBrB,QAAA,MAAM,YAAY,YAAI,KAAK,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AAIrD,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,QAAQ,CAAC;AACxD,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,YAAY,CAAC,C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