@playcraft/common 0.1.66 → 0.1.67
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/agent-tools/replica-validation.d.ts +2 -2
- package/dist/agent-tools/video-model-proxy.d.ts +1 -1
- package/dist/agent-tools/video-replication.d.ts +4 -4
- package/dist/cloud-workspace/runtime/agent-command.d.ts +3 -3
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js +1 -1
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-read.d.ts +6 -6
- package/dist/cloud-workspace/runtime/animation-editor.d.ts +26 -26
- package/dist/cloud-workspace/runtime/animation-quality.d.ts +1 -1
- package/dist/cloud-workspace/runtime/artifacts.d.ts +7 -7
- package/dist/cloud-workspace/runtime/asset-generation-bundle.d.ts +2 -2
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts +49 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.d.ts +109 -12
- package/dist/cloud-workspace/runtime/asset-generation.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.js +24 -4
- package/dist/cloud-workspace/runtime/asset-generation.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-save.d.ts +8 -8
- package/dist/cloud-workspace/runtime/audio-adjustments.d.ts +13 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.js +90 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts +664 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.js +98 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-document.d.ts +127 -0
- package/dist/cloud-workspace/runtime/audio-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-document.js +293 -0
- package/dist/cloud-workspace/runtime/audio-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts +25 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.js +21 -0
- package/dist/cloud-workspace/runtime/audio-export.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-player.d.ts +18 -0
- package/dist/cloud-workspace/runtime/audio-player.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-player.js +98 -0
- package/dist/cloud-workspace/runtime/audio-player.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.d.ts +38 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.js +342 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.js.map +1 -0
- package/dist/cloud-workspace/runtime/batch-runs.d.ts +2 -2
- package/dist/cloud-workspace/runtime/composer-context.d.ts +122 -0
- package/dist/cloud-workspace/runtime/composer-context.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/composer-context.js +2 -0
- package/dist/cloud-workspace/runtime/composer-context.js.map +1 -1
- package/dist/cloud-workspace/runtime/execution-admission.d.ts +2 -2
- package/dist/cloud-workspace/runtime/execution-context.d.ts +112 -0
- package/dist/cloud-workspace/runtime/execution-context.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/execution-context.js +62 -0
- package/dist/cloud-workspace/runtime/execution-context.js.map +1 -0
- package/dist/cloud-workspace/runtime/index.d.ts +14 -0
- package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/index.js +14 -0
- package/dist/cloud-workspace/runtime/index.js.map +1 -1
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts +331 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.js +172 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts +125 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.js +63 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.d.ts +260 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.js +530 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.d.ts +115 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.js +107 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-path.d.ts +12 -0
- package/dist/cloud-workspace/runtime/level-editor-path.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-path.js +110 -0
- package/dist/cloud-workspace/runtime/level-editor-path.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.d.ts +30 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.js +627 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.d.ts +621 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.js +409 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.d.ts +11 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.js +128 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor.d.ts +7 -0
- package/dist/cloud-workspace/runtime/level-editor.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor.js +7 -0
- package/dist/cloud-workspace/runtime/level-editor.js.map +1 -0
- package/dist/cloud-workspace/runtime/model-build-inputs.d.ts +1 -1
- package/dist/cloud-workspace/runtime/model-production.d.ts +41 -23
- package/dist/cloud-workspace/runtime/model-production.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/model-quality.d.ts +7 -7
- package/dist/cloud-workspace/runtime/model-validation.d.ts +8 -8
- package/dist/cloud-workspace/runtime/operations.d.ts +364 -8
- package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/operations.js +33 -6
- package/dist/cloud-workspace/runtime/operations.js.map +1 -1
- package/dist/cloud-workspace/runtime/parameter-agent.d.ts +2 -2
- package/dist/cloud-workspace/runtime/previews.d.ts +3 -3
- package/dist/cloud-workspace/runtime/score-document.d.ts +285 -0
- package/dist/cloud-workspace/runtime/score-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-document.js +114 -0
- package/dist/cloud-workspace/runtime/score-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-editing.d.ts +39 -0
- package/dist/cloud-workspace/runtime/score-editing.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-editing.js +180 -0
- package/dist/cloud-workspace/runtime/score-editing.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-merging.d.ts +4 -0
- package/dist/cloud-workspace/runtime/score-merging.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-merging.js +74 -0
- package/dist/cloud-workspace/runtime/score-merging.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-midi.d.ts +7 -0
- package/dist/cloud-workspace/runtime/score-midi.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-midi.js +226 -0
- package/dist/cloud-workspace/runtime/score-midi.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.d.ts +51 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.js +388 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.js.map +1 -0
- package/dist/cloud-workspace/runtime/skills.d.ts +2 -2
- package/dist/cloud-workspace/runtime/skills.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +1 -1
- package/dist/cloud-workspace/runtime/workspace-ui.d.ts +4 -4
- package/dist/project-skills/local-snapshot.d.ts +5 -3
- package/dist/project-skills/local-snapshot.d.ts.map +1 -1
- package/dist/project-skills/local-snapshot.js +15 -4
- package/dist/project-skills/local-snapshot.js.map +1 -1
- package/dist/project-skills/protocol.d.ts +7 -3
- package/dist/project-skills/protocol.d.ts.map +1 -1
- package/dist/project-skills/protocol.js +19 -1
- package/dist/project-skills/protocol.js.map +1 -1
- package/dist/project-skills/types.d.ts +13 -0
- package/dist/project-skills/types.d.ts.map +1 -1
- package/dist/project-skills/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,39 +2,55 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const workspaceAssetToolScopeSchema: z.ZodObject<{
|
|
3
3
|
workspaceId: z.ZodString;
|
|
4
4
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
5
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
6
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
5
7
|
}, z.core.$strip>;
|
|
6
8
|
export declare const workspaceAssetToolReadSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
9
|
workspaceId: z.ZodString;
|
|
8
10
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
11
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
12
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
9
13
|
action: z.ZodLiteral<"list">;
|
|
10
14
|
}, z.core.$strict>, z.ZodObject<{
|
|
11
15
|
workspaceId: z.ZodString;
|
|
12
16
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
17
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
18
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
13
19
|
action: z.ZodLiteral<"get">;
|
|
14
20
|
taskId: z.ZodString;
|
|
15
21
|
}, z.core.$strict>, z.ZodObject<{
|
|
16
22
|
workspaceId: z.ZodString;
|
|
17
23
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
24
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
25
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
18
26
|
action: z.ZodLiteral<"library-targets">;
|
|
19
27
|
}, z.core.$strict>, z.ZodObject<{
|
|
20
28
|
workspaceId: z.ZodString;
|
|
21
29
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
30
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
31
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
22
32
|
action: z.ZodLiteral<"library-saves">;
|
|
23
33
|
taskId: z.ZodString;
|
|
24
34
|
}, z.core.$strict>, z.ZodObject<{
|
|
25
35
|
workspaceId: z.ZodString;
|
|
26
36
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
37
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
38
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
27
39
|
action: z.ZodLiteral<"animation">;
|
|
28
40
|
taskId: z.ZodString;
|
|
29
41
|
}, z.core.$strict>, z.ZodObject<{
|
|
30
42
|
workspaceId: z.ZodString;
|
|
31
43
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
44
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
45
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
32
46
|
action: z.ZodLiteral<"legacy-result">;
|
|
33
47
|
taskId: z.ZodString;
|
|
34
48
|
}, z.core.$strict>]>;
|
|
35
49
|
export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
36
50
|
workspaceId: z.ZodString;
|
|
37
51
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
52
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
53
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
38
54
|
action: z.ZodLiteral<"estimate">;
|
|
39
55
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
56
|
mode: z.ZodEnum<{
|
|
@@ -120,6 +136,11 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
120
136
|
bgm: "bgm";
|
|
121
137
|
}>;
|
|
122
138
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
representation: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
"synth-sfx": "synth-sfx";
|
|
141
|
+
score: "score";
|
|
142
|
+
}>>;
|
|
143
|
+
candidateCount: z.ZodOptional<z.ZodNumber>;
|
|
123
144
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
124
145
|
style: z.ZodOptional<z.ZodString>;
|
|
125
146
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
@@ -151,6 +172,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
151
172
|
}, z.core.$strict>, z.ZodObject<{
|
|
152
173
|
workspaceId: z.ZodString;
|
|
153
174
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
175
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
176
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
154
177
|
action: z.ZodLiteral<"create">;
|
|
155
178
|
clientRequestId: z.ZodString;
|
|
156
179
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -272,6 +295,11 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
272
295
|
description: z.ZodString;
|
|
273
296
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
274
297
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
298
|
+
representation: z.ZodOptional<z.ZodEnum<{
|
|
299
|
+
"synth-sfx": "synth-sfx";
|
|
300
|
+
score: "score";
|
|
301
|
+
}>>;
|
|
302
|
+
candidateCount: z.ZodOptional<z.ZodNumber>;
|
|
275
303
|
style: z.ZodOptional<z.ZodString>;
|
|
276
304
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
277
305
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -328,6 +356,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
328
356
|
}, z.core.$strict>, z.ZodObject<{
|
|
329
357
|
workspaceId: z.ZodString;
|
|
330
358
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
359
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
360
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
331
361
|
action: z.ZodLiteral<"legacy-create">;
|
|
332
362
|
clientRequestId: z.ZodString;
|
|
333
363
|
execution: z.ZodObject<{
|
|
@@ -345,11 +375,15 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
345
375
|
}, z.core.$strict>, z.ZodObject<{
|
|
346
376
|
workspaceId: z.ZodString;
|
|
347
377
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
378
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
379
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
348
380
|
action: z.ZodLiteral<"cancel">;
|
|
349
381
|
taskId: z.ZodString;
|
|
350
382
|
}, z.core.$strict>, z.ZodObject<{
|
|
351
383
|
workspaceId: z.ZodString;
|
|
352
384
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
385
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
386
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
353
387
|
action: z.ZodLiteral<"saved">;
|
|
354
388
|
proof: z.ZodObject<{
|
|
355
389
|
operationId: z.ZodString;
|
|
@@ -360,6 +394,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
360
394
|
}, z.core.$strict>, z.ZodObject<{
|
|
361
395
|
workspaceId: z.ZodString;
|
|
362
396
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
397
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
398
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
363
399
|
action: z.ZodLiteral<"library-save">;
|
|
364
400
|
request: z.ZodObject<{
|
|
365
401
|
clientRequestId: z.ZodString;
|
|
@@ -375,6 +411,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
375
411
|
}, z.core.$strict>, z.ZodObject<{
|
|
376
412
|
workspaceId: z.ZodString;
|
|
377
413
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
414
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
415
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
378
416
|
action: z.ZodLiteral<"library-retry">;
|
|
379
417
|
saveId: z.ZodString;
|
|
380
418
|
startWithoutWorkspace: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -382,6 +420,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
382
420
|
}, z.core.$strict>, z.ZodObject<{
|
|
383
421
|
workspaceId: z.ZodString;
|
|
384
422
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
423
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
424
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
385
425
|
action: z.ZodLiteral<"animation-draft">;
|
|
386
426
|
request: z.ZodObject<{
|
|
387
427
|
expectedRevision: z.ZodNumber;
|
|
@@ -393,8 +433,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
393
433
|
}, z.core.$strict>>;
|
|
394
434
|
columns: z.ZodNumber;
|
|
395
435
|
loopMode: z.ZodEnum<{
|
|
396
|
-
once: "once";
|
|
397
436
|
loop: "loop";
|
|
437
|
+
once: "once";
|
|
398
438
|
pingpong: "pingpong";
|
|
399
439
|
}>;
|
|
400
440
|
}, z.core.$strict>;
|
|
@@ -403,6 +443,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
403
443
|
}, z.core.$strict>, z.ZodObject<{
|
|
404
444
|
workspaceId: z.ZodString;
|
|
405
445
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
446
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
447
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
406
448
|
action: z.ZodLiteral<"animation-frame">;
|
|
407
449
|
request: z.ZodObject<{
|
|
408
450
|
clientRequestId: z.ZodString;
|
|
@@ -417,6 +459,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
417
459
|
}, z.core.$strict>, z.ZodObject<{
|
|
418
460
|
workspaceId: z.ZodString;
|
|
419
461
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
462
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
463
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
420
464
|
action: z.ZodLiteral<"animation-version">;
|
|
421
465
|
request: z.ZodObject<{
|
|
422
466
|
clientRequestId: z.ZodString;
|
|
@@ -426,6 +470,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
426
470
|
}, z.core.$strict>, z.ZodObject<{
|
|
427
471
|
workspaceId: z.ZodString;
|
|
428
472
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
473
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
474
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
429
475
|
action: z.ZodLiteral<"animation-saved">;
|
|
430
476
|
proof: z.ZodObject<{
|
|
431
477
|
operationId: z.ZodString;
|
|
@@ -438,6 +484,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
438
484
|
export declare const workspaceAssetToolContentSchema: z.ZodObject<{
|
|
439
485
|
workspaceId: z.ZodString;
|
|
440
486
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
487
|
+
audioProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
488
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
441
489
|
fileId: z.ZodOptional<z.ZodString>;
|
|
442
490
|
versionId: z.ZodOptional<z.ZodString>;
|
|
443
491
|
frame: z.ZodOptional<z.ZodLiteral<"true">>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-generation-tools.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-generation-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"asset-generation-tools.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-generation-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,6BAA6B;;;;;iBAA8L,CAAC;AAMzO,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAGvC,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAWxC,CAAC;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;kBAK1C,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { assetGenerationEstimateInputSchema, assetGenerationTaskCreateSchema, as
|
|
|
4
4
|
import { assetLibrarySaveRequestSchema } from './asset-library-save.js';
|
|
5
5
|
import { animationEditorDraftUpdateSchema, animationEditorFrameUploadSchema, animationEditorVersionCreateSchema } from './animation-editor.js';
|
|
6
6
|
import { agentGenerationTaskCreateSchema } from './agent-generation.js';
|
|
7
|
-
export const workspaceAssetToolScopeSchema = z.object({ workspaceId: z.string().uuid(), directoryName: workspaceSessionScopeSchema });
|
|
7
|
+
export const workspaceAssetToolScopeSchema = z.object({ workspaceId: z.string().uuid(), directoryName: workspaceSessionScopeSchema, audioProtocolVersion: z.literal(1).optional(), audioScoreProtocolVersion: z.literal(1).optional() });
|
|
8
8
|
const task = { taskId: z.string().uuid() };
|
|
9
9
|
const version = { ...task, versionId: z.string().uuid() };
|
|
10
10
|
const fileId = z.string().regex(/^[a-z0-9][a-z0-9._-]{0,127}$/);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-generation-tools.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-generation-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,k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,OAAO,EAAE,kCAAkC,EAAE,CAAC,CAAC;AACtF,CAAC,CAAC,CAAC"}
|
|
@@ -123,6 +123,11 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
123
123
|
description: z.ZodString;
|
|
124
124
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
125
125
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
representation: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
"synth-sfx": "synth-sfx";
|
|
128
|
+
score: "score";
|
|
129
|
+
}>>;
|
|
130
|
+
candidateCount: z.ZodOptional<z.ZodNumber>;
|
|
126
131
|
style: z.ZodOptional<z.ZodString>;
|
|
127
132
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
128
133
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -260,6 +265,11 @@ export declare const assetGenerationEstimateInputSchema: z.ZodDiscriminatedUnion
|
|
|
260
265
|
bgm: "bgm";
|
|
261
266
|
}>;
|
|
262
267
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
representation: z.ZodOptional<z.ZodEnum<{
|
|
269
|
+
"synth-sfx": "synth-sfx";
|
|
270
|
+
score: "score";
|
|
271
|
+
}>>;
|
|
272
|
+
candidateCount: z.ZodOptional<z.ZodNumber>;
|
|
263
273
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
264
274
|
style: z.ZodOptional<z.ZodString>;
|
|
265
275
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
@@ -368,6 +378,47 @@ export declare const assetGenerationUsageSchema: z.ZodObject<{
|
|
|
368
378
|
}, z.core.$strict>;
|
|
369
379
|
export declare const ASSET_GENERATION_TASK_STATUSES: readonly ["queued", "running", "cancel_requested", "awaiting_adoption", "saved", "failed", "cancelled", "interrupted"];
|
|
370
380
|
export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
381
|
+
audioResult: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
version: z.ZodLiteral<1>;
|
|
383
|
+
representation: z.ZodEnum<{
|
|
384
|
+
"synth-sfx": "synth-sfx";
|
|
385
|
+
score: "score";
|
|
386
|
+
}>;
|
|
387
|
+
requestedCount: z.ZodNumber;
|
|
388
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
389
|
+
candidateId: z.ZodString;
|
|
390
|
+
candidateRevision: z.ZodNumber;
|
|
391
|
+
sourceContentHash: z.ZodString;
|
|
392
|
+
sourceRenderHash: z.ZodString;
|
|
393
|
+
renderState: z.ZodEnum<{
|
|
394
|
+
pending: "pending";
|
|
395
|
+
ready: "ready";
|
|
396
|
+
failed: "failed";
|
|
397
|
+
running: "running";
|
|
398
|
+
cancelled: "cancelled";
|
|
399
|
+
}>;
|
|
400
|
+
renderError: z.ZodOptional<z.ZodString>;
|
|
401
|
+
name: z.ZodOptional<z.ZodString>;
|
|
402
|
+
sourceFile: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
name: z.ZodString;
|
|
404
|
+
mimeType: z.ZodLiteral<"application/json">;
|
|
405
|
+
size: z.ZodNumber;
|
|
406
|
+
contentHash: z.ZodString;
|
|
407
|
+
}, z.core.$strict>>;
|
|
408
|
+
audition: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
mimeType: z.ZodLiteral<"audio/wav">;
|
|
410
|
+
size: z.ZodNumber;
|
|
411
|
+
contentHash: z.ZodString;
|
|
412
|
+
renderKey: z.ZodOptional<z.ZodString>;
|
|
413
|
+
pcmContentHash: z.ZodOptional<z.ZodString>;
|
|
414
|
+
}, z.core.$strict>>;
|
|
415
|
+
saved: z.ZodOptional<z.ZodObject<{
|
|
416
|
+
path: z.ZodString;
|
|
417
|
+
operationId: z.ZodString;
|
|
418
|
+
savedAt: z.ZodString;
|
|
419
|
+
}, z.core.$strict>>;
|
|
420
|
+
}, z.core.$strict>>;
|
|
421
|
+
}, z.core.$strict>>;
|
|
371
422
|
taskId: z.ZodString;
|
|
372
423
|
workspaceId: z.ZodString;
|
|
373
424
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
@@ -416,10 +467,10 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
416
467
|
legacyResultAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
417
468
|
resultPreviewUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
418
469
|
kind: z.ZodEnum<{
|
|
470
|
+
audio: "audio";
|
|
419
471
|
image: "image";
|
|
420
472
|
video: "video";
|
|
421
473
|
model: "model";
|
|
422
|
-
audio: "audio";
|
|
423
474
|
animation: "animation";
|
|
424
475
|
sprite: "sprite";
|
|
425
476
|
}>;
|
|
@@ -427,9 +478,9 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
427
478
|
status: z.ZodEnum<{
|
|
428
479
|
failed: "failed";
|
|
429
480
|
running: "running";
|
|
430
|
-
interrupted: "interrupted";
|
|
431
481
|
cancelled: "cancelled";
|
|
432
482
|
saved: "saved";
|
|
483
|
+
interrupted: "interrupted";
|
|
433
484
|
queued: "queued";
|
|
434
485
|
cancel_requested: "cancel_requested";
|
|
435
486
|
awaiting_adoption: "awaiting_adoption";
|
|
@@ -530,8 +581,8 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
530
581
|
fileId: z.ZodString;
|
|
531
582
|
path: z.ZodString;
|
|
532
583
|
mimeType: z.ZodEnum<{
|
|
533
|
-
"image/png": "image/png";
|
|
534
584
|
"application/json": "application/json";
|
|
585
|
+
"image/png": "image/png";
|
|
535
586
|
"image/webp": "image/webp";
|
|
536
587
|
}>;
|
|
537
588
|
size: z.ZodNumber;
|
|
@@ -543,8 +594,8 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
543
594
|
framePaths: z.ZodArray<z.ZodString>;
|
|
544
595
|
frameDurationsMs: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
545
596
|
loopMode: z.ZodOptional<z.ZodEnum<{
|
|
546
|
-
once: "once";
|
|
547
597
|
loop: "loop";
|
|
598
|
+
once: "once";
|
|
548
599
|
pingpong: "pingpong";
|
|
549
600
|
}>>;
|
|
550
601
|
fps: z.ZodNumber;
|
|
@@ -599,8 +650,8 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
599
650
|
status: z.ZodEnum<{
|
|
600
651
|
failed: "failed";
|
|
601
652
|
saved: "saved";
|
|
602
|
-
waiting_workspace: "waiting_workspace";
|
|
603
653
|
queued: "queued";
|
|
654
|
+
waiting_workspace: "waiting_workspace";
|
|
604
655
|
saving: "saving";
|
|
605
656
|
}>;
|
|
606
657
|
createdAt: z.ZodString;
|
|
@@ -625,6 +676,47 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
625
676
|
}, z.core.$strict>;
|
|
626
677
|
export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
627
678
|
tasks: z.ZodArray<z.ZodObject<{
|
|
679
|
+
audioResult: z.ZodOptional<z.ZodObject<{
|
|
680
|
+
version: z.ZodLiteral<1>;
|
|
681
|
+
representation: z.ZodEnum<{
|
|
682
|
+
"synth-sfx": "synth-sfx";
|
|
683
|
+
score: "score";
|
|
684
|
+
}>;
|
|
685
|
+
requestedCount: z.ZodNumber;
|
|
686
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
687
|
+
candidateId: z.ZodString;
|
|
688
|
+
candidateRevision: z.ZodNumber;
|
|
689
|
+
sourceContentHash: z.ZodString;
|
|
690
|
+
sourceRenderHash: z.ZodString;
|
|
691
|
+
renderState: z.ZodEnum<{
|
|
692
|
+
pending: "pending";
|
|
693
|
+
ready: "ready";
|
|
694
|
+
failed: "failed";
|
|
695
|
+
running: "running";
|
|
696
|
+
cancelled: "cancelled";
|
|
697
|
+
}>;
|
|
698
|
+
renderError: z.ZodOptional<z.ZodString>;
|
|
699
|
+
name: z.ZodOptional<z.ZodString>;
|
|
700
|
+
sourceFile: z.ZodOptional<z.ZodObject<{
|
|
701
|
+
name: z.ZodString;
|
|
702
|
+
mimeType: z.ZodLiteral<"application/json">;
|
|
703
|
+
size: z.ZodNumber;
|
|
704
|
+
contentHash: z.ZodString;
|
|
705
|
+
}, z.core.$strict>>;
|
|
706
|
+
audition: z.ZodOptional<z.ZodObject<{
|
|
707
|
+
mimeType: z.ZodLiteral<"audio/wav">;
|
|
708
|
+
size: z.ZodNumber;
|
|
709
|
+
contentHash: z.ZodString;
|
|
710
|
+
renderKey: z.ZodOptional<z.ZodString>;
|
|
711
|
+
pcmContentHash: z.ZodOptional<z.ZodString>;
|
|
712
|
+
}, z.core.$strict>>;
|
|
713
|
+
saved: z.ZodOptional<z.ZodObject<{
|
|
714
|
+
path: z.ZodString;
|
|
715
|
+
operationId: z.ZodString;
|
|
716
|
+
savedAt: z.ZodString;
|
|
717
|
+
}, z.core.$strict>>;
|
|
718
|
+
}, z.core.$strict>>;
|
|
719
|
+
}, z.core.$strict>>;
|
|
628
720
|
taskId: z.ZodString;
|
|
629
721
|
workspaceId: z.ZodString;
|
|
630
722
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
@@ -673,10 +765,10 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
673
765
|
legacyResultAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
674
766
|
resultPreviewUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
675
767
|
kind: z.ZodEnum<{
|
|
768
|
+
audio: "audio";
|
|
676
769
|
image: "image";
|
|
677
770
|
video: "video";
|
|
678
771
|
model: "model";
|
|
679
|
-
audio: "audio";
|
|
680
772
|
animation: "animation";
|
|
681
773
|
sprite: "sprite";
|
|
682
774
|
}>;
|
|
@@ -684,9 +776,9 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
684
776
|
status: z.ZodEnum<{
|
|
685
777
|
failed: "failed";
|
|
686
778
|
running: "running";
|
|
687
|
-
interrupted: "interrupted";
|
|
688
779
|
cancelled: "cancelled";
|
|
689
780
|
saved: "saved";
|
|
781
|
+
interrupted: "interrupted";
|
|
690
782
|
queued: "queued";
|
|
691
783
|
cancel_requested: "cancel_requested";
|
|
692
784
|
awaiting_adoption: "awaiting_adoption";
|
|
@@ -787,8 +879,8 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
787
879
|
fileId: z.ZodString;
|
|
788
880
|
path: z.ZodString;
|
|
789
881
|
mimeType: z.ZodEnum<{
|
|
790
|
-
"image/png": "image/png";
|
|
791
882
|
"application/json": "application/json";
|
|
883
|
+
"image/png": "image/png";
|
|
792
884
|
"image/webp": "image/webp";
|
|
793
885
|
}>;
|
|
794
886
|
size: z.ZodNumber;
|
|
@@ -800,8 +892,8 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
800
892
|
framePaths: z.ZodArray<z.ZodString>;
|
|
801
893
|
frameDurationsMs: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
802
894
|
loopMode: z.ZodOptional<z.ZodEnum<{
|
|
803
|
-
once: "once";
|
|
804
895
|
loop: "loop";
|
|
896
|
+
once: "once";
|
|
805
897
|
pingpong: "pingpong";
|
|
806
898
|
}>>;
|
|
807
899
|
fps: z.ZodNumber;
|
|
@@ -856,8 +948,8 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
856
948
|
status: z.ZodEnum<{
|
|
857
949
|
failed: "failed";
|
|
858
950
|
saved: "saved";
|
|
859
|
-
waiting_workspace: "waiting_workspace";
|
|
860
951
|
queued: "queued";
|
|
952
|
+
waiting_workspace: "waiting_workspace";
|
|
861
953
|
saving: "saving";
|
|
862
954
|
}>;
|
|
863
955
|
createdAt: z.ZodString;
|
|
@@ -1002,6 +1094,11 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1002
1094
|
description: z.ZodString;
|
|
1003
1095
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
1004
1096
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
1097
|
+
representation: z.ZodOptional<z.ZodEnum<{
|
|
1098
|
+
"synth-sfx": "synth-sfx";
|
|
1099
|
+
score: "score";
|
|
1100
|
+
}>>;
|
|
1101
|
+
candidateCount: z.ZodOptional<z.ZodNumber>;
|
|
1005
1102
|
style: z.ZodOptional<z.ZodString>;
|
|
1006
1103
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
1007
1104
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1092,8 +1189,8 @@ export declare const assetGenerationModelJobSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1092
1189
|
export declare const assetGenerationModelQuerySchema: z.ZodObject<{
|
|
1093
1190
|
status: z.ZodEnum<{
|
|
1094
1191
|
failed: "failed";
|
|
1095
|
-
completed: "completed";
|
|
1096
1192
|
running: "running";
|
|
1193
|
+
completed: "completed";
|
|
1097
1194
|
queued: "queued";
|
|
1098
1195
|
}>;
|
|
1099
1196
|
usage: z.ZodOptional<z.ZodObject<{
|
|
@@ -1189,8 +1286,8 @@ export declare const assetGenerationProviderJobSchema: z.ZodUnion<readonly [z.Zo
|
|
|
1189
1286
|
export declare const assetGenerationVideoQuerySchema: z.ZodObject<{
|
|
1190
1287
|
status: z.ZodEnum<{
|
|
1191
1288
|
failed: "failed";
|
|
1192
|
-
completed: "completed";
|
|
1193
1289
|
running: "running";
|
|
1290
|
+
completed: "completed";
|
|
1194
1291
|
queued: "queued";
|
|
1195
1292
|
}>;
|
|
1196
1293
|
usage: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-generation.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"asset-generation.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,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,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,sBAAsB,GAAG,4BAA4B,CAoB1G"}
|
|
@@ -8,6 +8,7 @@ import { assetLibrarySaveJobSchema, ASSET_LIBRARY_SAVE_MAX_JOBS } from './asset-
|
|
|
8
8
|
import { agentGenerationSourceSchema } from './agent-generation-provenance.js';
|
|
9
9
|
import { validateImageDeliveryOptions } from '../../prefab/image-generation-constraints.js';
|
|
10
10
|
import { REFERENCE_IMAGE_MAX_COUNT } from '../../agent/reference-images.js';
|
|
11
|
+
import { workspaceAudioResultSchema } from './audio-asset-protocol.js';
|
|
11
12
|
const amount = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
12
13
|
const tokens = amount.nullable();
|
|
13
14
|
const modelRef = z.string().trim().min(1).max(256);
|
|
@@ -90,8 +91,9 @@ export const assetGenerationRequestSchema = z.discriminatedUnion('kind', [
|
|
|
90
91
|
}).strict(),
|
|
91
92
|
z.object({
|
|
92
93
|
kind: z.literal('audio'), category: z.enum(['sfx', 'bgm']), description: z.string().trim().min(1).max(800),
|
|
93
|
-
duration: z.number().min(0.
|
|
94
|
-
|
|
94
|
+
duration: z.number().finite().min(0.05).max(60).optional(), loop: z.boolean().optional(),
|
|
95
|
+
representation: z.enum(['synth-sfx', 'score']).optional(), candidateCount: z.number().int().min(1).max(3).optional(),
|
|
96
|
+
style: z.string().trim().min(1).max(64).optional(), bpm: z.number().int().min(40).max(240).optional(),
|
|
95
97
|
}).strict(),
|
|
96
98
|
z.object({
|
|
97
99
|
kind: z.literal('model'), mode: z.enum(['text', 'reference']), ...modelOptions,
|
|
@@ -103,6 +105,14 @@ export const assetGenerationRequestSchema = z.discriminatedUnion('kind', [
|
|
|
103
105
|
validateSheet(request, context);
|
|
104
106
|
validateImageOptions(request, context);
|
|
105
107
|
validateModelOptions(request, context);
|
|
108
|
+
if (request.kind === 'audio' && !request.representation && (request.duration !== undefined && request.duration < 0.5 || request.candidateCount !== undefined))
|
|
109
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
110
|
+
if (request.kind === 'audio' && request.representation === 'synth-sfx' && (request.category !== 'sfx' || request.duration !== undefined && request.duration > 10 || request.loop !== undefined || request.style !== undefined || request.bpm !== undefined))
|
|
111
|
+
context.addIssue({ code: 'custom', message: 'audio_budget_exceeded' });
|
|
112
|
+
if (request.kind === 'audio' && request.representation === 'score' && (request.category !== 'bgm' || request.duration !== undefined && request.duration < 1))
|
|
113
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
114
|
+
if (request.kind === 'audio' && !request.representation && (request.duration !== undefined && request.duration > 22 || request.bpm !== undefined && (request.bpm < 60 || request.bpm > 200)))
|
|
115
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
106
116
|
if (request.kind === 'audio' && request.category === 'sfx' && request.description.length > 200)
|
|
107
117
|
context.addIssue({ code: z.ZodIssueCode.custom, message: 'audio_description_too_long', path: ['description'] });
|
|
108
118
|
if (request.kind !== 'audio' && Boolean(request.referenceImageBase64) !== Boolean(request.referenceImageMimeType))
|
|
@@ -137,9 +147,10 @@ export const assetGenerationEstimateInputSchema = z.discriminatedUnion('kind', [
|
|
|
137
147
|
referenceImageCount: z.number().int().min(0).max(ASSET_GENERATION_IMAGE_REFERENCE_MAX_COUNT).optional(),
|
|
138
148
|
}).strict(),
|
|
139
149
|
z.object({
|
|
140
|
-
kind: z.literal('audio'), category: z.enum(['sfx', 'bgm']), duration: z.number().min(0.
|
|
150
|
+
kind: z.literal('audio'), category: z.enum(['sfx', 'bgm']), duration: z.number().finite().min(0.05).max(60).optional(),
|
|
151
|
+
representation: z.enum(['synth-sfx', 'score']).optional(), candidateCount: z.number().int().min(1).max(3).optional(),
|
|
141
152
|
loop: z.boolean().optional(), style: z.string().trim().min(1).max(64).optional(),
|
|
142
|
-
bpm: z.number().int().min(
|
|
153
|
+
bpm: z.number().int().min(40).max(240).optional(),
|
|
143
154
|
}).strict(),
|
|
144
155
|
z.object({ kind: z.literal('model'), ...modelOptions, referenceImageCount: z.number().int().min(0).max(1).optional(),
|
|
145
156
|
multiViewImageCount: z.number().int().min(0).max(7).optional() }).strict(),
|
|
@@ -149,6 +160,12 @@ export const assetGenerationEstimateInputSchema = z.discriminatedUnion('kind', [
|
|
|
149
160
|
validateModelOptions(request, context);
|
|
150
161
|
if (request.kind === 'video')
|
|
151
162
|
validateAssetGenerationVideoOptions(request, context);
|
|
163
|
+
if (request.kind === 'audio' && (!request.representation && (request.duration !== undefined && request.duration < 0.5 || request.candidateCount !== undefined)
|
|
164
|
+
|| request.representation === 'synth-sfx' && (request.category !== 'sfx' || request.duration !== undefined && request.duration > 10 || request.loop !== undefined || request.style !== undefined || request.bpm !== undefined)))
|
|
165
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
166
|
+
if (request.kind === 'audio' && (request.representation === 'score' && (request.category !== 'bgm' || request.duration !== undefined && request.duration < 1)
|
|
167
|
+
|| !request.representation && (request.duration !== undefined && request.duration > 22 || request.bpm !== undefined && (request.bpm < 60 || request.bpm > 200))))
|
|
168
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
152
169
|
});
|
|
153
170
|
const unitsSchema = z.object({ calls: amount.optional(), images: amount.optional(), seconds: z.number().finite().nonnegative().optional() }).strict();
|
|
154
171
|
export const assetGenerationEstimateSchema = z.object({
|
|
@@ -177,6 +194,7 @@ const generationOutput = z.object({ name: z.string().min(1).max(256), mimeType:
|
|
|
177
194
|
contentHash: z.string().regex(/^[a-f0-9]{64}$/) }).strict();
|
|
178
195
|
const generationSaved = z.object({ path: workspaceRelativePathSchema, operationId: z.string().min(1).max(128), savedAt: z.string().datetime() }).strict();
|
|
179
196
|
export const assetGenerationTaskSchema = z.object({
|
|
197
|
+
audioResult: workspaceAudioResultSchema.optional(),
|
|
180
198
|
taskId: z.string().uuid(), workspaceId: z.string().min(1).max(128), directoryName: workspaceSessionScopeSchema,
|
|
181
199
|
clientRequestId: z.string().min(1).max(128).optional(),
|
|
182
200
|
source: agentGenerationSourceSchema.optional(),
|
|
@@ -194,6 +212,8 @@ export const assetGenerationTaskSchema = z.object({
|
|
|
194
212
|
librarySaves: z.array(assetLibrarySaveJobSchema).max(ASSET_LIBRARY_SAVE_MAX_JOBS).optional(),
|
|
195
213
|
error: z.string().min(1).max(256).optional(),
|
|
196
214
|
}).strict().superRefine((task, context) => {
|
|
215
|
+
if (task.audioResult && (task.kind !== 'audio' || task.output || task.outputs || task.bundle || task.saved))
|
|
216
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_result' });
|
|
197
217
|
if (task.preview && (task.kind !== 'model' || !['model/gltf-binary', 'image/png', 'image/jpeg', 'image/webp'].includes(task.preview.mimeType)))
|
|
198
218
|
context.addIssue({ code: 'custom', message: 'asset_generation_invalid_preview' });
|
|
199
219
|
if (task.outputs && (task.kind !== 'image' || task.bundle || !task.output
|