@playcraft/common 0.1.23 → 0.1.25

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.
Files changed (83) hide show
  1. package/dist/agent-tools/index.d.ts +4 -0
  2. package/dist/agent-tools/index.d.ts.map +1 -1
  3. package/dist/agent-tools/index.js +4 -0
  4. package/dist/agent-tools/index.js.map +1 -1
  5. package/dist/agent-tools/replica-recording.d.ts +283 -0
  6. package/dist/agent-tools/replica-recording.d.ts.map +1 -0
  7. package/dist/agent-tools/replica-recording.js +109 -0
  8. package/dist/agent-tools/replica-recording.js.map +1 -0
  9. package/dist/agent-tools/replica-validation.d.ts +972 -0
  10. package/dist/agent-tools/replica-validation.d.ts.map +1 -0
  11. package/dist/agent-tools/replica-validation.js +254 -0
  12. package/dist/agent-tools/replica-validation.js.map +1 -0
  13. package/dist/agent-tools/types.d.ts +9 -1
  14. package/dist/agent-tools/types.d.ts.map +1 -1
  15. package/dist/agent-tools/types.js.map +1 -1
  16. package/dist/agent-tools/video-model-proxy.d.ts +113 -0
  17. package/dist/agent-tools/video-model-proxy.d.ts.map +1 -0
  18. package/dist/agent-tools/video-model-proxy.js +49 -0
  19. package/dist/agent-tools/video-model-proxy.js.map +1 -0
  20. package/dist/agent-tools/video-replication.d.ts +421 -0
  21. package/dist/agent-tools/video-replication.d.ts.map +1 -0
  22. package/dist/agent-tools/video-replication.js +95 -0
  23. package/dist/agent-tools/video-replication.js.map +1 -0
  24. package/dist/cloud-workspace/runtime/agent-background-processes.d.ts +1 -1
  25. package/dist/cloud-workspace/runtime/agent-chat-flush.d.ts +2 -2
  26. package/dist/cloud-workspace/runtime/agent-command.d.ts +3 -3
  27. package/dist/cloud-workspace/runtime/agent-competitor-report.d.ts +1 -1
  28. package/dist/cloud-workspace/runtime/agent-connection.d.ts +3 -3
  29. package/dist/cloud-workspace/runtime/agent-lifecycle.d.ts +1 -1
  30. package/dist/cloud-workspace/runtime/agent-mutation.d.ts +7 -7
  31. package/dist/cloud-workspace/runtime/agent-opencode-gateway.d.ts +12 -12
  32. package/dist/cloud-workspace/runtime/agent-opencode.d.ts +25 -25
  33. package/dist/cloud-workspace/runtime/agent-read.d.ts +12 -12
  34. package/dist/cloud-workspace/runtime/agent-source-project.d.ts +3 -3
  35. package/dist/cloud-workspace/runtime/agent-tool-claim.d.ts +1 -1
  36. package/dist/cloud-workspace/runtime/agent-variant-git.d.ts +2 -2
  37. package/dist/cloud-workspace/runtime/artifacts.d.ts +233 -0
  38. package/dist/cloud-workspace/runtime/artifacts.d.ts.map +1 -0
  39. package/dist/cloud-workspace/runtime/artifacts.js +94 -0
  40. package/dist/cloud-workspace/runtime/artifacts.js.map +1 -0
  41. package/dist/cloud-workspace/runtime/attachments.d.ts +10 -0
  42. package/dist/cloud-workspace/runtime/attachments.d.ts.map +1 -1
  43. package/dist/cloud-workspace/runtime/attachments.js +6 -0
  44. package/dist/cloud-workspace/runtime/attachments.js.map +1 -1
  45. package/dist/cloud-workspace/runtime/batch-generation.d.ts +7 -5
  46. package/dist/cloud-workspace/runtime/batch-generation.d.ts.map +1 -1
  47. package/dist/cloud-workspace/runtime/batch-generation.js +5 -2
  48. package/dist/cloud-workspace/runtime/batch-generation.js.map +1 -1
  49. package/dist/cloud-workspace/runtime/batch-production.d.ts +71 -36
  50. package/dist/cloud-workspace/runtime/batch-production.d.ts.map +1 -1
  51. package/dist/cloud-workspace/runtime/batch-production.js +10 -4
  52. package/dist/cloud-workspace/runtime/batch-production.js.map +1 -1
  53. package/dist/cloud-workspace/runtime/files.d.ts +1 -1
  54. package/dist/cloud-workspace/runtime/git.d.ts +1 -1
  55. package/dist/cloud-workspace/runtime/index.d.ts +3 -2
  56. package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
  57. package/dist/cloud-workspace/runtime/index.js +3 -2
  58. package/dist/cloud-workspace/runtime/index.js.map +1 -1
  59. package/dist/cloud-workspace/runtime/operations.d.ts +5 -5
  60. package/dist/cloud-workspace/runtime/parameters.d.ts +1 -1
  61. package/dist/cloud-workspace/runtime/previews.d.ts +1 -1
  62. package/dist/cloud-workspace/runtime/skills.d.ts +16 -0
  63. package/dist/cloud-workspace/runtime/skills.d.ts.map +1 -1
  64. package/dist/cloud-workspace/runtime/skills.js +18 -0
  65. package/dist/cloud-workspace/runtime/skills.js.map +1 -1
  66. package/dist/cloud-workspace/runtime/terminals.d.ts +2 -2
  67. package/dist/cloud-workspace/runtime/terminals.js +3 -3
  68. package/dist/cloud-workspace/runtime/terminals.js.map +1 -1
  69. package/dist/cloud-workspace/runtime/variant-workspace.d.ts +6 -6
  70. package/dist/cloud-workspace/runtime/workspace-binding.d.ts +6 -4
  71. package/dist/cloud-workspace/runtime/workspace-binding.d.ts.map +1 -1
  72. package/dist/cloud-workspace/runtime/workspace-binding.js +4 -1
  73. package/dist/cloud-workspace/runtime/workspace-binding.js.map +1 -1
  74. package/dist/cloud-workspace/runtime/workspace-directories.d.ts +2 -2
  75. package/dist/model-proxy/index.d.ts +26 -0
  76. package/dist/model-proxy/index.d.ts.map +1 -0
  77. package/dist/model-proxy/index.js +81 -0
  78. package/dist/model-proxy/index.js.map +1 -0
  79. package/dist/storage/cos.d.ts +1 -0
  80. package/dist/storage/cos.d.ts.map +1 -1
  81. package/dist/storage/cos.js +1 -0
  82. package/dist/storage/cos.js.map +1 -1
  83. package/package.json +5 -1
@@ -0,0 +1,421 @@
1
+ import { z } from 'zod';
2
+ export declare const VIDEO_UNDERSTANDING_VERSION: "playcraft.video-understanding.v1";
3
+ export declare const VIDEO_MAX_BYTES: number;
4
+ export declare const VIDEO_MAX_DURATION_MS = 180000;
5
+ export declare const videoSourceSchema: z.ZodObject<{
6
+ sha256: z.ZodString;
7
+ sizeBytes: z.ZodNumber;
8
+ mimeType: z.ZodEnum<{
9
+ "video/mp4": "video/mp4";
10
+ "video/webm": "video/webm";
11
+ "video/quicktime": "video/quicktime";
12
+ }>;
13
+ durationMs: z.ZodNumber;
14
+ width: z.ZodNumber;
15
+ height: z.ZodNumber;
16
+ }, z.core.$strict>;
17
+ export declare const videoMediaInitSchema: z.ZodObject<{
18
+ workspaceId: z.ZodString;
19
+ mediaId: z.ZodUUID;
20
+ filename: z.ZodString;
21
+ sha256: z.ZodString;
22
+ contentMd5: z.ZodString;
23
+ sizeBytes: z.ZodNumber;
24
+ mimeType: z.ZodEnum<{
25
+ "video/mp4": "video/mp4";
26
+ "video/webm": "video/webm";
27
+ "video/quicktime": "video/quicktime";
28
+ }>;
29
+ }, z.core.$strict>;
30
+ export declare const videoMediaFinalizeSchema: z.ZodObject<{
31
+ workspaceId: z.ZodString;
32
+ mediaId: z.ZodUUID;
33
+ }, z.core.$strict>;
34
+ export declare const videoProcessingSchema: z.ZodEnum<{
35
+ auto: "auto";
36
+ agentic: "agentic";
37
+ static: "static";
38
+ }>;
39
+ export declare const videoUnderstandingContentSchema: z.ZodObject<{
40
+ summary: z.ZodString;
41
+ observations: z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ text: z.ZodString;
44
+ evidenceIds: z.ZodArray<z.ZodString>;
45
+ confidence: z.ZodNumber;
46
+ }, z.core.$strict>>;
47
+ events: z.ZodArray<z.ZodObject<{
48
+ id: z.ZodString;
49
+ kind: z.ZodEnum<{
50
+ other: "other";
51
+ initial: "initial";
52
+ "first-action-result": "first-action-result";
53
+ action: "action";
54
+ result: "result";
55
+ feedback: "feedback";
56
+ "end-card": "end-card";
57
+ }>;
58
+ startMs: z.ZodNumber;
59
+ endMs: z.ZodNumber;
60
+ observationIds: z.ZodArray<z.ZodString>;
61
+ }, z.core.$strict>>;
62
+ evidence: z.ZodArray<z.ZodObject<{
63
+ id: z.ZodString;
64
+ startMs: z.ZodNumber;
65
+ endMs: z.ZodNumber;
66
+ }, z.core.$strict>>;
67
+ inferences: z.ZodArray<z.ZodObject<{
68
+ id: z.ZodString;
69
+ text: z.ZodString;
70
+ evidenceIds: z.ZodArray<z.ZodString>;
71
+ confidence: z.ZodNumber;
72
+ }, z.core.$strict>>;
73
+ unknowns: z.ZodArray<z.ZodObject<{
74
+ id: z.ZodString;
75
+ text: z.ZodString;
76
+ affects: z.ZodArray<z.ZodString>;
77
+ }, z.core.$strict>>;
78
+ reconstructionHints: z.ZodObject<{
79
+ entities: z.ZodArray<z.ZodString>;
80
+ assets: z.ZodArray<z.ZodString>;
81
+ candidateRules: z.ZodArray<z.ZodString>;
82
+ }, z.core.$strict>;
83
+ }, z.core.$strict>;
84
+ export declare const videoUnderstandingAnalysisSchema: z.ZodObject<{
85
+ summary: z.ZodString;
86
+ observations: z.ZodArray<z.ZodObject<{
87
+ id: z.ZodString;
88
+ text: z.ZodString;
89
+ evidenceIds: z.ZodArray<z.ZodString>;
90
+ confidence: z.ZodNumber;
91
+ }, z.core.$strict>>;
92
+ events: z.ZodArray<z.ZodObject<{
93
+ id: z.ZodString;
94
+ kind: z.ZodEnum<{
95
+ other: "other";
96
+ initial: "initial";
97
+ "first-action-result": "first-action-result";
98
+ action: "action";
99
+ result: "result";
100
+ feedback: "feedback";
101
+ "end-card": "end-card";
102
+ }>;
103
+ startMs: z.ZodNumber;
104
+ endMs: z.ZodNumber;
105
+ observationIds: z.ZodArray<z.ZodString>;
106
+ }, z.core.$strict>>;
107
+ evidence: z.ZodArray<z.ZodObject<{
108
+ id: z.ZodString;
109
+ startMs: z.ZodNumber;
110
+ endMs: z.ZodNumber;
111
+ }, z.core.$strict>>;
112
+ inferences: z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ text: z.ZodString;
115
+ evidenceIds: z.ZodArray<z.ZodString>;
116
+ confidence: z.ZodNumber;
117
+ }, z.core.$strict>>;
118
+ unknowns: z.ZodArray<z.ZodObject<{
119
+ id: z.ZodString;
120
+ text: z.ZodString;
121
+ affects: z.ZodArray<z.ZodString>;
122
+ }, z.core.$strict>>;
123
+ reconstructionHints: z.ZodObject<{
124
+ entities: z.ZodArray<z.ZodString>;
125
+ assets: z.ZodArray<z.ZodString>;
126
+ candidateRules: z.ZodArray<z.ZodString>;
127
+ }, z.core.$strict>;
128
+ schemaVersion: z.ZodLiteral<"playcraft.video-understanding.v1">;
129
+ runId: z.ZodUUID;
130
+ state: z.ZodLiteral<"completed">;
131
+ source: z.ZodObject<{
132
+ sha256: z.ZodString;
133
+ sizeBytes: z.ZodNumber;
134
+ mimeType: z.ZodEnum<{
135
+ "video/mp4": "video/mp4";
136
+ "video/webm": "video/webm";
137
+ "video/quicktime": "video/quicktime";
138
+ }>;
139
+ durationMs: z.ZodNumber;
140
+ width: z.ZodNumber;
141
+ height: z.ZodNumber;
142
+ }, z.core.$strict>;
143
+ model: z.ZodObject<{
144
+ configId: z.ZodUUID;
145
+ provider: z.ZodLiteral<"google">;
146
+ model: z.ZodLiteral<"gemini-3.8-flash">;
147
+ processing: z.ZodEnum<{
148
+ agentic: "agentic";
149
+ static: "static";
150
+ }>;
151
+ requestedProcessing: z.ZodEnum<{
152
+ auto: "auto";
153
+ agentic: "agentic";
154
+ static: "static";
155
+ }>;
156
+ selectionReason: z.ZodString;
157
+ agenticVerified: z.ZodBoolean;
158
+ execution: z.ZodDefault<z.ZodLiteral<"foreground">>;
159
+ }, z.core.$strict>;
160
+ }, z.core.$strict>;
161
+ export declare const videoAnalysisRequestSchema: z.ZodObject<{
162
+ workspaceId: z.ZodString;
163
+ runId: z.ZodUUID;
164
+ mediaId: z.ZodUUID;
165
+ modelConfigId: z.ZodOptional<z.ZodUUID>;
166
+ processing: z.ZodDefault<z.ZodEnum<{
167
+ auto: "auto";
168
+ agentic: "agentic";
169
+ static: "static";
170
+ }>>;
171
+ fps: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
172
+ clip: z.ZodOptional<z.ZodObject<{
173
+ startMs: z.ZodNumber;
174
+ endMs: z.ZodNumber;
175
+ }, z.core.$strict>>;
176
+ question: z.ZodOptional<z.ZodString>;
177
+ context: z.ZodOptional<z.ZodObject<{
178
+ summary: z.ZodString;
179
+ observations: z.ZodArray<z.ZodObject<{
180
+ id: z.ZodString;
181
+ text: z.ZodString;
182
+ evidenceIds: z.ZodArray<z.ZodString>;
183
+ confidence: z.ZodNumber;
184
+ }, z.core.$strict>>;
185
+ events: z.ZodArray<z.ZodObject<{
186
+ id: z.ZodString;
187
+ kind: z.ZodEnum<{
188
+ other: "other";
189
+ initial: "initial";
190
+ "first-action-result": "first-action-result";
191
+ action: "action";
192
+ result: "result";
193
+ feedback: "feedback";
194
+ "end-card": "end-card";
195
+ }>;
196
+ startMs: z.ZodNumber;
197
+ endMs: z.ZodNumber;
198
+ observationIds: z.ZodArray<z.ZodString>;
199
+ }, z.core.$strict>>;
200
+ evidence: z.ZodArray<z.ZodObject<{
201
+ id: z.ZodString;
202
+ startMs: z.ZodNumber;
203
+ endMs: z.ZodNumber;
204
+ }, z.core.$strict>>;
205
+ inferences: z.ZodArray<z.ZodObject<{
206
+ id: z.ZodString;
207
+ text: z.ZodString;
208
+ evidenceIds: z.ZodArray<z.ZodString>;
209
+ confidence: z.ZodNumber;
210
+ }, z.core.$strict>>;
211
+ unknowns: z.ZodArray<z.ZodObject<{
212
+ id: z.ZodString;
213
+ text: z.ZodString;
214
+ affects: z.ZodArray<z.ZodString>;
215
+ }, z.core.$strict>>;
216
+ reconstructionHints: z.ZodObject<{
217
+ entities: z.ZodArray<z.ZodString>;
218
+ assets: z.ZodArray<z.ZodString>;
219
+ candidateRules: z.ZodArray<z.ZodString>;
220
+ }, z.core.$strict>;
221
+ schemaVersion: z.ZodLiteral<"playcraft.video-understanding.v1">;
222
+ runId: z.ZodUUID;
223
+ state: z.ZodLiteral<"completed">;
224
+ source: z.ZodObject<{
225
+ sha256: z.ZodString;
226
+ sizeBytes: z.ZodNumber;
227
+ mimeType: z.ZodEnum<{
228
+ "video/mp4": "video/mp4";
229
+ "video/webm": "video/webm";
230
+ "video/quicktime": "video/quicktime";
231
+ }>;
232
+ durationMs: z.ZodNumber;
233
+ width: z.ZodNumber;
234
+ height: z.ZodNumber;
235
+ }, z.core.$strict>;
236
+ model: z.ZodObject<{
237
+ configId: z.ZodUUID;
238
+ provider: z.ZodLiteral<"google">;
239
+ model: z.ZodLiteral<"gemini-3.8-flash">;
240
+ processing: z.ZodEnum<{
241
+ agentic: "agentic";
242
+ static: "static";
243
+ }>;
244
+ requestedProcessing: z.ZodEnum<{
245
+ auto: "auto";
246
+ agentic: "agentic";
247
+ static: "static";
248
+ }>;
249
+ selectionReason: z.ZodString;
250
+ agenticVerified: z.ZodBoolean;
251
+ execution: z.ZodDefault<z.ZodLiteral<"foreground">>;
252
+ }, z.core.$strict>;
253
+ }, z.core.$strict>>;
254
+ }, z.core.$strict>;
255
+ export declare const videoAnalysisStateSchema: z.ZodEnum<{
256
+ completed: "completed";
257
+ pending: "pending";
258
+ uploading: "uploading";
259
+ submitting: "submitting";
260
+ running: "running";
261
+ failed: "failed";
262
+ cancelled: "cancelled";
263
+ uncertain: "uncertain";
264
+ }>;
265
+ export declare const videoModelCatalogSchema: z.ZodObject<{
266
+ schemaVersion: z.ZodLiteral<"playcraft.video-models.v1">;
267
+ defaultConfigId: z.ZodNullable<z.ZodUUID>;
268
+ models: z.ZodArray<z.ZodObject<{
269
+ configId: z.ZodUUID;
270
+ provider: z.ZodLiteral<"google">;
271
+ model: z.ZodLiteral<"gemini-3.8-flash">;
272
+ processing: z.ZodArray<z.ZodEnum<{
273
+ agentic: "agentic";
274
+ static: "static";
275
+ }>>;
276
+ maxVideos: z.ZodNumber;
277
+ execution: z.ZodDefault<z.ZodLiteral<"foreground">>;
278
+ }, z.core.$strict>>;
279
+ }, z.core.$strict>;
280
+ export declare const videoMediaInitResultSchema: z.ZodObject<{
281
+ mediaId: z.ZodUUID;
282
+ upload: z.ZodObject<{
283
+ method: z.ZodLiteral<"PUT">;
284
+ url: z.ZodString;
285
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
286
+ expiresAt: z.ZodString;
287
+ authenticated: z.ZodBoolean;
288
+ }, z.core.$strict>;
289
+ }, z.core.$strict>;
290
+ export declare const videoMediaResultSchema: z.ZodObject<{
291
+ mediaId: z.ZodUUID;
292
+ state: z.ZodLiteral<"ready">;
293
+ source: z.ZodObject<{
294
+ sha256: z.ZodString;
295
+ sizeBytes: z.ZodNumber;
296
+ mimeType: z.ZodEnum<{
297
+ "video/mp4": "video/mp4";
298
+ "video/webm": "video/webm";
299
+ "video/quicktime": "video/quicktime";
300
+ }>;
301
+ durationMs: z.ZodNumber;
302
+ width: z.ZodNumber;
303
+ height: z.ZodNumber;
304
+ }, z.core.$strict>;
305
+ }, z.core.$strict>;
306
+ export declare const videoAnalysisRunSchema: z.ZodObject<{
307
+ schemaVersion: z.ZodLiteral<"playcraft.video-analysis-run.v1">;
308
+ runId: z.ZodUUID;
309
+ workspaceId: z.ZodString;
310
+ mediaId: z.ZodUUID;
311
+ state: z.ZodEnum<{
312
+ completed: "completed";
313
+ pending: "pending";
314
+ uploading: "uploading";
315
+ submitting: "submitting";
316
+ running: "running";
317
+ failed: "failed";
318
+ cancelled: "cancelled";
319
+ uncertain: "uncertain";
320
+ }>;
321
+ analysis: z.ZodOptional<z.ZodObject<{
322
+ summary: z.ZodString;
323
+ observations: z.ZodArray<z.ZodObject<{
324
+ id: z.ZodString;
325
+ text: z.ZodString;
326
+ evidenceIds: z.ZodArray<z.ZodString>;
327
+ confidence: z.ZodNumber;
328
+ }, z.core.$strict>>;
329
+ events: z.ZodArray<z.ZodObject<{
330
+ id: z.ZodString;
331
+ kind: z.ZodEnum<{
332
+ other: "other";
333
+ initial: "initial";
334
+ "first-action-result": "first-action-result";
335
+ action: "action";
336
+ result: "result";
337
+ feedback: "feedback";
338
+ "end-card": "end-card";
339
+ }>;
340
+ startMs: z.ZodNumber;
341
+ endMs: z.ZodNumber;
342
+ observationIds: z.ZodArray<z.ZodString>;
343
+ }, z.core.$strict>>;
344
+ evidence: z.ZodArray<z.ZodObject<{
345
+ id: z.ZodString;
346
+ startMs: z.ZodNumber;
347
+ endMs: z.ZodNumber;
348
+ }, z.core.$strict>>;
349
+ inferences: z.ZodArray<z.ZodObject<{
350
+ id: z.ZodString;
351
+ text: z.ZodString;
352
+ evidenceIds: z.ZodArray<z.ZodString>;
353
+ confidence: z.ZodNumber;
354
+ }, z.core.$strict>>;
355
+ unknowns: z.ZodArray<z.ZodObject<{
356
+ id: z.ZodString;
357
+ text: z.ZodString;
358
+ affects: z.ZodArray<z.ZodString>;
359
+ }, z.core.$strict>>;
360
+ reconstructionHints: z.ZodObject<{
361
+ entities: z.ZodArray<z.ZodString>;
362
+ assets: z.ZodArray<z.ZodString>;
363
+ candidateRules: z.ZodArray<z.ZodString>;
364
+ }, z.core.$strict>;
365
+ schemaVersion: z.ZodLiteral<"playcraft.video-understanding.v1">;
366
+ runId: z.ZodUUID;
367
+ state: z.ZodLiteral<"completed">;
368
+ source: z.ZodObject<{
369
+ sha256: z.ZodString;
370
+ sizeBytes: z.ZodNumber;
371
+ mimeType: z.ZodEnum<{
372
+ "video/mp4": "video/mp4";
373
+ "video/webm": "video/webm";
374
+ "video/quicktime": "video/quicktime";
375
+ }>;
376
+ durationMs: z.ZodNumber;
377
+ width: z.ZodNumber;
378
+ height: z.ZodNumber;
379
+ }, z.core.$strict>;
380
+ model: z.ZodObject<{
381
+ configId: z.ZodUUID;
382
+ provider: z.ZodLiteral<"google">;
383
+ model: z.ZodLiteral<"gemini-3.8-flash">;
384
+ processing: z.ZodEnum<{
385
+ agentic: "agentic";
386
+ static: "static";
387
+ }>;
388
+ requestedProcessing: z.ZodEnum<{
389
+ auto: "auto";
390
+ agentic: "agentic";
391
+ static: "static";
392
+ }>;
393
+ selectionReason: z.ZodString;
394
+ agenticVerified: z.ZodBoolean;
395
+ execution: z.ZodDefault<z.ZodLiteral<"foreground">>;
396
+ }, z.core.$strict>;
397
+ }, z.core.$strict>>;
398
+ error: z.ZodOptional<z.ZodObject<{
399
+ code: z.ZodString;
400
+ retryable: z.ZodBoolean;
401
+ }, z.core.$strict>>;
402
+ createdAt: z.ZodString;
403
+ updatedAt: z.ZodString;
404
+ pollAfterMs: z.ZodNumber;
405
+ }, z.core.$strict>;
406
+ export type VideoSource = z.infer<typeof videoSourceSchema>;
407
+ export type VideoMediaInit = z.infer<typeof videoMediaInitSchema>;
408
+ export type VideoMediaInitResult = z.infer<typeof videoMediaInitResultSchema>;
409
+ export type VideoMediaResult = z.infer<typeof videoMediaResultSchema>;
410
+ export type VideoAnalysisRequest = z.infer<typeof videoAnalysisRequestSchema>;
411
+ export type VideoAnalysisRun = z.infer<typeof videoAnalysisRunSchema>;
412
+ export type VideoUnderstandingContent = z.infer<typeof videoUnderstandingContentSchema>;
413
+ export type VideoUnderstandingAnalysis = z.infer<typeof videoUnderstandingAnalysisSchema>;
414
+ export type VideoModelCatalog = z.infer<typeof videoModelCatalogSchema>;
415
+ export declare function videoUnderstandingJsonSchema(): Record<string, unknown>;
416
+ /** Validate referential integrity and original-video timestamps, beyond structural JSON. */
417
+ export declare function validateVideoUnderstandingContent(value: unknown, source: VideoSource, clip?: {
418
+ startMs: number;
419
+ endMs: number;
420
+ }): VideoUnderstandingContent;
421
+ //# sourceMappingURL=video-replication.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-replication.d.ts","sourceRoot":"","sources":["../../src/agent-tools/video-replication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B,EAAG,kCAA2C,CAAC;AACvF,eAAO,MAAM,eAAe,QAAoB,CAAC;AACjD,eAAO,MAAM,qBAAqB,SAAU,CAAC;AAG7C,eAAO,MAAM,iBAAiB;;;;;;;;;;;kBAKnB,CAAC;AACZ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;kBAKtB,CAAC;AACZ,eAAO,MAAM,wBAAwB;;;kBAA4D,CAAC;AAClG,eAAO,MAAM,qBAAqB;;;;EAAwC,CAAC;AAI3E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;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G,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,wBAAgB,4BAA4B,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAItE;AAED,4FAA4F;AAC5F,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,yBAAyB,CAoB3J"}
@@ -0,0 +1,95 @@
1
+ import { z } from 'zod';
2
+ export const VIDEO_UNDERSTANDING_VERSION = 'playcraft.video-understanding.v1';
3
+ export const VIDEO_MAX_BYTES = 100 * 1024 * 1024;
4
+ export const VIDEO_MAX_DURATION_MS = 180_000;
5
+ const id = z.string().min(1).max(128);
6
+ const sha256 = z.string().regex(/^[a-f0-9]{64}$/);
7
+ export const videoSourceSchema = z.object({
8
+ sha256, sizeBytes: z.number().int().positive().max(VIDEO_MAX_BYTES),
9
+ mimeType: z.enum(['video/mp4', 'video/webm', 'video/quicktime']),
10
+ durationMs: z.number().positive().max(VIDEO_MAX_DURATION_MS),
11
+ width: z.number().int().positive().max(8192), height: z.number().int().positive().max(8192),
12
+ }).strict();
13
+ export const videoMediaInitSchema = z.object({
14
+ workspaceId: id, mediaId: z.uuid(), filename: z.string().min(1).max(255),
15
+ sha256, contentMd5: z.string().regex(/^[A-Za-z0-9+/]{22}==$/),
16
+ sizeBytes: z.number().int().positive().max(VIDEO_MAX_BYTES),
17
+ mimeType: videoSourceSchema.shape.mimeType,
18
+ }).strict();
19
+ export const videoMediaFinalizeSchema = z.object({ workspaceId: id, mediaId: z.uuid() }).strict();
20
+ export const videoProcessingSchema = z.enum(['auto', 'agentic', 'static']);
21
+ const confidence = z.number().min(0).max(1);
22
+ const evidenceItem = z.object({ id, startMs: z.number().nonnegative(), endMs: z.number().nonnegative() }).strict();
23
+ const statement = z.object({ id, text: z.string().min(1).max(8000), evidenceIds: z.array(id).min(1).max(32), confidence }).strict();
24
+ export const videoUnderstandingContentSchema = z.object({
25
+ summary: z.string().min(1).max(16000),
26
+ observations: z.array(statement).min(1).max(128),
27
+ events: z.array(z.object({ id, kind: z.enum(['initial', 'first-action-result', 'action', 'result', 'feedback', 'end-card', 'other']), startMs: z.number().nonnegative(), endMs: z.number().nonnegative(), observationIds: z.array(id).min(1).max(32) }).strict()).min(1).max(128),
28
+ evidence: z.array(evidenceItem).min(1).max(24),
29
+ inferences: z.array(statement).max(128),
30
+ unknowns: z.array(z.object({ id, text: z.string().min(1).max(8000), affects: z.array(z.string().min(1).max(128)).min(1).max(32) }).strict()).max(128),
31
+ reconstructionHints: z.object({ entities: z.array(z.string().max(4000)).max(64), assets: z.array(z.string().max(4000)).max(64), candidateRules: z.array(z.string().max(4000)).max(64) }).strict(),
32
+ }).strict();
33
+ export const videoUnderstandingAnalysisSchema = videoUnderstandingContentSchema.extend({
34
+ schemaVersion: z.literal(VIDEO_UNDERSTANDING_VERSION), runId: z.uuid(), state: z.literal('completed'),
35
+ source: videoSourceSchema,
36
+ model: z.object({ configId: z.uuid(), provider: z.literal('google'), model: z.literal('gemini-3.8-flash'), processing: z.enum(['agentic', 'static']), requestedProcessing: videoProcessingSchema, selectionReason: z.string(), agenticVerified: z.boolean(), execution: z.literal('foreground').default('foreground') }).strict(),
37
+ }).strict();
38
+ export const videoAnalysisRequestSchema = z.object({
39
+ workspaceId: id, runId: z.uuid(), mediaId: z.uuid(), modelConfigId: z.uuid().optional(),
40
+ processing: videoProcessingSchema.default('auto'), fps: z.union([z.literal(1), z.literal(2), z.literal(4), z.literal(8)]).optional(),
41
+ clip: z.object({ startMs: z.number().nonnegative(), endMs: z.number().positive() }).strict().optional(),
42
+ question: z.string().min(1).max(8000).optional(), context: videoUnderstandingAnalysisSchema.optional(),
43
+ }).strict().superRefine((data, ctx) => {
44
+ if (data.processing === 'agentic' && (data.fps !== undefined || data.clip))
45
+ ctx.addIssue({ code: 'custom', message: 'video.staticOptionsRequired' });
46
+ if (data.clip && data.clip.endMs <= data.clip.startMs)
47
+ ctx.addIssue({ code: 'custom', message: 'video.clipInvalid' });
48
+ });
49
+ export const videoAnalysisStateSchema = z.enum(['pending', 'uploading', 'submitting', 'running', 'completed', 'failed', 'cancelled', 'uncertain']);
50
+ export const videoModelCatalogSchema = z.object({
51
+ schemaVersion: z.literal('playcraft.video-models.v1'), defaultConfigId: z.uuid().nullable(),
52
+ models: z.array(z.object({ configId: z.uuid(), provider: z.literal('google'), model: z.literal('gemini-3.8-flash'), processing: z.array(z.enum(['agentic', 'static'])), maxVideos: z.number().int().min(1).max(6), execution: z.literal('foreground').default('foreground') }).strict()),
53
+ }).strict();
54
+ export const videoMediaInitResultSchema = z.object({ mediaId: z.uuid(), upload: z.object({ method: z.literal('PUT'), url: z.string().min(1), headers: z.record(z.string(), z.string()), expiresAt: z.string(), authenticated: z.boolean() }).strict() }).strict();
55
+ export const videoMediaResultSchema = z.object({ mediaId: z.uuid(), state: z.literal('ready'), source: videoSourceSchema }).strict();
56
+ export const videoAnalysisRunSchema = z.object({
57
+ schemaVersion: z.literal('playcraft.video-analysis-run.v1'), runId: z.uuid(), workspaceId: id, mediaId: z.uuid(), state: videoAnalysisStateSchema,
58
+ analysis: videoUnderstandingAnalysisSchema.optional(),
59
+ error: z.object({ code: z.string(), retryable: z.boolean() }).strict().optional(),
60
+ createdAt: z.string(), updatedAt: z.string(), pollAfterMs: z.number().int().nonnegative(),
61
+ }).strict();
62
+ export function videoUnderstandingJsonSchema() {
63
+ const schema = z.toJSONSchema(videoUnderstandingContentSchema);
64
+ delete schema.$schema;
65
+ return schema;
66
+ }
67
+ /** Validate referential integrity and original-video timestamps, beyond structural JSON. */
68
+ export function validateVideoUnderstandingContent(value, source, clip) {
69
+ const result = videoUnderstandingContentSchema.parse(value);
70
+ const ids = new Set();
71
+ for (const item of [...result.evidence, ...result.observations, ...result.events, ...result.inferences, ...result.unknowns]) {
72
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$/.test(item.id) || ids.has(item.id))
73
+ throw new Error('video.evidenceIdInvalid');
74
+ ids.add(item.id);
75
+ }
76
+ const evidenceIds = new Set(result.evidence.map(item => item.id));
77
+ const observationIds = new Set(result.observations.map(item => item.id));
78
+ for (const item of [...result.evidence, ...result.events]) {
79
+ if (item.endMs < item.startMs || item.startMs >= source.durationMs || item.startMs < (clip?.startMs ?? 0) || item.endMs > (clip?.endMs ?? source.durationMs))
80
+ throw new Error('video.evidenceTimeInvalid');
81
+ }
82
+ for (const item of [...result.observations, ...result.inferences]) {
83
+ if (item.evidenceIds.some(ref => !evidenceIds.has(ref)))
84
+ throw new Error('video.evidenceReferenceInvalid');
85
+ }
86
+ for (const item of result.events)
87
+ if (item.observationIds.some(ref => !observationIds.has(ref)))
88
+ throw new Error('video.observationReferenceInvalid');
89
+ for (const kind of ['initial', 'first-action-result', 'result', 'end-card']) {
90
+ if (!result.events.some(event => event.kind === kind) && !result.unknowns.some(item => item.affects.includes(kind)))
91
+ throw new Error('video.requiredEventUnaccounted');
92
+ }
93
+ return result;
94
+ }
95
+ //# sourceMappingURL=video-replication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-replication.js","sourceRoot":"","sources":["../../src/agent-tools/video-replication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,2BAA2B,GAAG,kCAA2C,CAAC;AACvF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC7C,MAAM,EAAE,GAAG,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AC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACzK,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -12,8 +12,8 @@ export declare const agentBackgroundProcessesRequestSchema: z.ZodObject<{
12
12
  writerEpoch: z.ZodNumber;
13
13
  workspaceId: z.ZodString;
14
14
  kind: z.ZodEnum<{
15
- manager: "manager";
16
15
  execution: "execution";
16
+ manager: "manager";
17
17
  }>;
18
18
  runId: z.ZodString;
19
19
  executionId: z.ZodOptional<z.ZodString>;
@@ -18,8 +18,8 @@ export declare const agentChatFlushResultSchema: z.ZodUnion<readonly [z.ZodObjec
18
18
  outcome: z.ZodLiteral<"settled">;
19
19
  kind: z.ZodLiteral<"flush">;
20
20
  status: z.ZodEnum<{
21
- failed: "failed";
22
21
  completed: "completed";
22
+ failed: "failed";
23
23
  }>;
24
24
  skipped: z.ZodBoolean;
25
25
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -40,8 +40,8 @@ export declare const agentChatFlushResponseSchema: z.ZodObject<{
40
40
  outcome: z.ZodLiteral<"settled">;
41
41
  kind: z.ZodLiteral<"flush">;
42
42
  status: z.ZodEnum<{
43
- failed: "failed";
44
43
  completed: "completed";
44
+ failed: "failed";
45
45
  }>;
46
46
  skipped: z.ZodBoolean;
47
47
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -14,8 +14,8 @@ export declare const agentCommandRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
14
14
  }>;
15
15
  timeoutMs: z.ZodNumber;
16
16
  kind: z.ZodEnum<{
17
- manager: "manager";
18
17
  execution: "execution";
18
+ manager: "manager";
19
19
  }>;
20
20
  sessionId: z.ZodString;
21
21
  workspaceId: z.ZodString;
@@ -41,8 +41,8 @@ export declare const agentCommandRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
41
41
  }>;
42
42
  timeoutMs: z.ZodNumber;
43
43
  kind: z.ZodEnum<{
44
- manager: "manager";
45
44
  execution: "execution";
45
+ manager: "manager";
46
46
  }>;
47
47
  sessionId: z.ZodString;
48
48
  workspaceId: z.ZodString;
@@ -67,8 +67,8 @@ export declare const agentCommandRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
67
67
  }>;
68
68
  timeoutMs: z.ZodNumber;
69
69
  kind: z.ZodEnum<{
70
- manager: "manager";
71
70
  execution: "execution";
71
+ manager: "manager";
72
72
  }>;
73
73
  sessionId: z.ZodString;
74
74
  workspaceId: z.ZodString;
@@ -20,8 +20,8 @@ export declare const agentCompetitorReportRequestSchema: z.ZodObject<{
20
20
  writerEpoch: z.ZodNumber;
21
21
  workspaceId: z.ZodString;
22
22
  kind: z.ZodEnum<{
23
- manager: "manager";
24
23
  execution: "execution";
24
+ manager: "manager";
25
25
  }>;
26
26
  runId: z.ZodString;
27
27
  executionId: z.ZodOptional<z.ZodString>;
@@ -14,8 +14,8 @@ export declare const agentConnectionRequestSchema: z.ZodObject<{
14
14
  workspaceId: z.ZodString;
15
15
  kind: z.ZodEnum<{
16
16
  session: "session";
17
- manager: "manager";
18
17
  execution: "execution";
18
+ manager: "manager";
19
19
  }>;
20
20
  runId: z.ZodOptional<z.ZodString>;
21
21
  executionId: z.ZodOptional<z.ZodString>;
@@ -31,8 +31,8 @@ export declare const agentConnectionResultSchema: z.ZodDiscriminatedUnion<[z.Zod
31
31
  }, z.core.$strict>, z.ZodObject<{
32
32
  outcome: z.ZodLiteral<"settled">;
33
33
  status: z.ZodEnum<{
34
- failed: "failed";
35
34
  completed: "completed";
35
+ failed: "failed";
36
36
  skipped: "skipped";
37
37
  }>;
38
38
  sandboxId: z.ZodNullable<z.ZodString>;
@@ -59,8 +59,8 @@ export declare const agentConnectionResponseSchema: z.ZodObject<{
59
59
  }, z.core.$strict>, z.ZodObject<{
60
60
  outcome: z.ZodLiteral<"settled">;
61
61
  status: z.ZodEnum<{
62
- failed: "failed";
63
62
  completed: "completed";
63
+ failed: "failed";
64
64
  skipped: "skipped";
65
65
  }>;
66
66
  sandboxId: z.ZodNullable<z.ZodString>;
@@ -16,8 +16,8 @@ export declare const agentLifecycleRequestSchema: z.ZodObject<{
16
16
  workspaceId: z.ZodString;
17
17
  kind: z.ZodEnum<{
18
18
  session: "session";
19
- manager: "manager";
20
19
  execution: "execution";
20
+ manager: "manager";
21
21
  }>;
22
22
  runId: z.ZodOptional<z.ZodString>;
23
23
  executionId: z.ZodOptional<z.ZodString>;