@nativestudio/cli 0.3.0-rc.2 → 0.3.0-rc.5

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 (92) hide show
  1. package/COMPATIBILITY.json +7 -7
  2. package/README.md +27 -3
  3. package/components/runtime.json +3 -3
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/{chunk-BVSTJQJI.js → chunk-6LU6GJKW.js} +1 -1
  6. package/dist/_chunks/chunk-CA54SKBO.js +1 -0
  7. package/dist/_chunks/chunk-D533YC7J.js +1 -0
  8. package/dist/_chunks/{chunk-C33A2DW4.js → chunk-DXJQWTLG.js} +1 -1
  9. package/dist/_chunks/{chunk-7S3DJ2QE.js → chunk-FU3524Z6.js} +1 -1
  10. package/dist/_chunks/chunk-INLSOHAK.js +1 -0
  11. package/dist/_chunks/chunk-JPH576UL.js +1 -0
  12. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  13. package/dist/_chunks/{chunk-C753RRRA.js → chunk-KNFUMWDY.js} +1 -1
  14. package/dist/_chunks/chunk-N6S6HCWE.js +1 -0
  15. package/dist/_chunks/chunk-PBEHCYR7.js +1 -0
  16. package/dist/_chunks/chunk-RVGDXRPK.js +1 -0
  17. package/dist/_chunks/chunk-YKOJPJZR.js +1 -0
  18. package/dist/_chunks/{files-FZEK2ZZJ.js → files-TTIQ7LYJ.js} +1 -1
  19. package/dist/_chunks/local-main-S2K34Y2F.js +1 -0
  20. package/dist/_chunks/local-mcp-LCHXL2IE.js +1 -0
  21. package/dist/_chunks/{main-VRIQTI6R.js → main-KLXOK7QK.js} +2 -2
  22. package/dist/_chunks/mcp-P7W623FE.js +1 -0
  23. package/dist/_chunks/oauth-WJ36KWAC.js +1 -0
  24. package/dist/_chunks/project-connect-W7V3OALV.js +1 -0
  25. package/dist/_chunks/render-main-ZW6UJHGN.js +1 -0
  26. package/dist/_chunks/src-BXLFLNRG.js +1 -0
  27. package/dist/_chunks/{stdio-main-KOGQ5OWF.js → stdio-main-4Z2JVCMO.js} +1 -1
  28. package/dist/_types/cli/local/desktop-contract.d.ts +1382 -0
  29. package/dist/_types/cli/local/desktop-device-contract.d.ts +1165 -0
  30. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  31. package/dist/_types/cli/local/desktop-device-owner.d.ts +275 -0
  32. package/dist/_types/cli/local/desktop-device-state.d.ts +230 -0
  33. package/dist/_types/cli/local/desktop-owner.d.ts +552 -1
  34. package/dist/_types/cli/local/ledger.d.ts +62 -10
  35. package/dist/_types/cli/local/manager.d.ts +485 -20
  36. package/dist/_types/cli/local/mcp-tools.d.ts +75 -12
  37. package/dist/_types/cli/local/project-render-tools.d.ts +522 -0
  38. package/dist/_types/cli/local/releases.d.ts +10 -2
  39. package/dist/_types/cli/local-management.d.ts +3 -0
  40. package/dist/_types/cli/local-navigation.d.ts +1 -0
  41. package/dist/_types/contracts/delivery-manifest.d.ts +63 -27
  42. package/dist/_types/contracts/delivery-operations.d.ts +21 -9
  43. package/dist/_types/contracts/device-render.d.ts +10 -0
  44. package/dist/_types/contracts/exploration-recommendation.d.ts +84 -36
  45. package/dist/_types/contracts/final-render.d.ts +9 -0
  46. package/dist/_types/contracts/index.d.ts +1 -0
  47. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  48. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  49. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  50. package/dist/_types/contracts/local-execution/agent-review.d.ts +733 -46
  51. package/dist/_types/contracts/local-execution/device.d.ts +10 -2
  52. package/dist/_types/contracts/local-execution/index.d.ts +6 -0
  53. package/dist/_types/contracts/local-execution/ipc.d.ts +1759 -37
  54. package/dist/_types/contracts/local-execution/lifecycle.d.ts +48 -6
  55. package/dist/_types/contracts/local-execution/local-navigation.d.ts +112 -10
  56. package/dist/_types/contracts/local-execution/management.d.ts +394 -0
  57. package/dist/_types/contracts/local-execution/media-recipe.d.ts +203 -0
  58. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  59. package/dist/_types/contracts/local-execution/preview.d.ts +7607 -159
  60. package/dist/_types/contracts/local-execution/work.d.ts +7674 -294
  61. package/dist/_types/contracts/local-execution/workspace.d.ts +136 -0
  62. package/dist/_types/contracts/programmatic-exploration.d.ts +42 -18
  63. package/dist/_types/contracts/repair-strategy.d.ts +42 -18
  64. package/dist/_types/contracts/review-intelligence-final-output.d.ts +42 -18
  65. package/dist/_types/contracts/review-intelligence.d.ts +84 -36
  66. package/dist/_types/contracts/rough-cut-manifest.d.ts +7 -3
  67. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  68. package/dist/_types/contracts/rough-cut-review.d.ts +126 -54
  69. package/dist/_types/contracts/rough-cut.d.ts +85 -32
  70. package/dist/_types/contracts/visual-layer-render.d.ts +21 -9
  71. package/dist/_types/sdk/local-runtime/device-client.d.ts +138 -2
  72. package/dist/_types/sdk/local-runtime/workspace.d.ts +181 -0
  73. package/dist/_types/sdk/local-runtime-client.d.ts +1294 -56
  74. package/dist/entry.js +1 -1
  75. package/dist/local-management.js +1 -1
  76. package/dist/local-navigation.js +1 -1
  77. package/dist/native/JobNative.cs +10 -0
  78. package/dist/native/JobRunner.cs +24 -3
  79. package/dist/native/NativeMain.cs +15 -0
  80. package/package.json +1 -1
  81. package/dist/_chunks/chunk-66CUOZVI.js +0 -1
  82. package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
  83. package/dist/_chunks/chunk-HLKERZIE.js +0 -1
  84. package/dist/_chunks/chunk-K6LVS2IN.js +0 -1
  85. package/dist/_chunks/chunk-KHKUJXQX.js +0 -1
  86. package/dist/_chunks/chunk-VC3ODN3M.js +0 -1
  87. package/dist/_chunks/local-main-NLFS74Q4.js +0 -1
  88. package/dist/_chunks/local-mcp-OLHBBVNN.js +0 -1
  89. package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
  90. package/dist/_chunks/oauth-F7EZGVME.js +0 -1
  91. package/dist/_chunks/project-connect-MXM7IY55.js +0 -1
  92. package/dist/_chunks/src-7F6ZEU3U.js +0 -1
@@ -96,10 +96,14 @@ export declare class LocalInstallationManager {
96
96
  architecture: "x64" | "arm64";
97
97
  };
98
98
  ipcProtocol: "NVS_LOCAL_IPC_V1";
99
- workProtocol: "NVS_LOCAL_WORK_V1";
99
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
100
100
  journalSchema: 1;
101
101
  rendererDigest: string;
102
102
  profileDigest: string;
103
+ compatibleRenderers?: {
104
+ rendererDigest: string;
105
+ profileDigest: string;
106
+ }[] | undefined;
103
107
  }[];
104
108
  notifications: boolean;
105
109
  rejectedVersions: string[];
@@ -123,10 +127,14 @@ export declare class LocalInstallationManager {
123
127
  architecture: "x64" | "arm64";
124
128
  };
125
129
  ipcProtocol: "NVS_LOCAL_IPC_V1";
126
- workProtocol: "NVS_LOCAL_WORK_V1";
130
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
127
131
  journalSchema: 1;
128
132
  rendererDigest: string;
129
133
  profileDigest: string;
134
+ compatibleRenderers?: {
135
+ rendererDigest: string;
136
+ profileDigest: string;
137
+ }[] | undefined;
130
138
  };
131
139
  package: {
132
140
  url: string;
@@ -185,10 +193,14 @@ export declare class LocalInstallationManager {
185
193
  architecture: "x64" | "arm64";
186
194
  };
187
195
  ipcProtocol: "NVS_LOCAL_IPC_V1";
188
- workProtocol: "NVS_LOCAL_WORK_V1";
196
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
189
197
  journalSchema: 1;
190
198
  rendererDigest: string;
191
199
  profileDigest: string;
200
+ compatibleRenderers?: {
201
+ rendererDigest: string;
202
+ profileDigest: string;
203
+ }[] | undefined;
192
204
  };
193
205
  package: {
194
206
  url: string;
@@ -254,10 +266,14 @@ export declare class LocalInstallationManager {
254
266
  architecture: "x64" | "arm64";
255
267
  };
256
268
  ipcProtocol: "NVS_LOCAL_IPC_V1";
257
- workProtocol: "NVS_LOCAL_WORK_V1";
269
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
258
270
  journalSchema: 1;
259
271
  rendererDigest: string;
260
272
  profileDigest: string;
273
+ compatibleRenderers?: {
274
+ rendererDigest: string;
275
+ profileDigest: string;
276
+ }[] | undefined;
261
277
  };
262
278
  activeProcesses: number;
263
279
  pendingExecutions: number;
@@ -266,7 +282,7 @@ export declare class LocalInstallationManager {
266
282
  }>;
267
283
  stop(): Promise<{
268
284
  plan: {
269
- protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
285
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
270
286
  id: string;
271
287
  grantFingerprint: string;
272
288
  snapshot: {
@@ -276,11 +292,20 @@ export declare class LocalInstallationManager {
276
292
  projectId: string & z.core.$brand<"ProjectId">;
277
293
  productionId: string & z.core.$brand<"ProductionId">;
278
294
  };
279
- contextFingerprint: string;
280
295
  target: {
281
296
  kind: "IMAGE";
282
297
  generationId: string;
298
+ } | {
299
+ kind: "VIDEO";
300
+ generationId: string;
301
+ } | {
302
+ kind: "ROUGH_CUT";
303
+ renderId: string;
304
+ } | {
305
+ kind: "PROGRAMMATIC";
306
+ renderId: string;
283
307
  };
308
+ contextFingerprint: string;
284
309
  };
285
310
  productionRevision: number;
286
311
  reviewVersion: number;
@@ -290,12 +315,115 @@ export declare class LocalInstallationManager {
290
315
  representationId: string;
291
316
  checksumSha256: string;
292
317
  };
293
- requirements: {
318
+ requirements: ({
319
+ key: string;
320
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
321
+ expected: string;
322
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
323
+ scope: "TRANSITION" | "PRODUCTION";
324
+ interval: {
325
+ startMs: number;
326
+ endMs: number;
327
+ };
328
+ shotIds: string[];
329
+ continuity?: {
330
+ kind: "STATE";
331
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
332
+ entry: string;
333
+ exit: string;
334
+ changes?: {
335
+ atPermille: number;
336
+ from: string;
337
+ to: string;
338
+ reason: string;
339
+ }[] | undefined;
340
+ } | {
341
+ kind: "TIME";
342
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
343
+ entryMs: number;
344
+ exitMs: number;
345
+ jumps?: {
346
+ atPermille: number;
347
+ fromMs: number;
348
+ toMs: number;
349
+ reason: string;
350
+ }[] | undefined;
351
+ } | undefined;
352
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
353
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
354
+ consistencySubject?: {
355
+ id: string;
356
+ kind: "CHARACTER" | "VOICE";
357
+ displayName: string;
358
+ facts: {
359
+ dimension: string;
360
+ value: string;
361
+ }[];
362
+ master: {
363
+ artifactId: string & z.core.$brand<"ArtifactId">;
364
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
365
+ checksumSha256: string;
366
+ artifactChecksumSha256: string;
367
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
368
+ };
369
+ } | undefined;
370
+ consistencyReference?: {
371
+ artifactId: string & z.core.$brand<"ArtifactId">;
372
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
373
+ checksumSha256: string;
374
+ artifactChecksumSha256: string;
375
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
376
+ } | undefined;
377
+ } | {
294
378
  key: string;
379
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
295
380
  expected: string;
296
381
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
382
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
297
383
  intentPath?: string | undefined;
298
- }[];
384
+ continuity?: {
385
+ kind: "STATE";
386
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
387
+ entry: string;
388
+ exit: string;
389
+ changes?: {
390
+ atPermille: number;
391
+ from: string;
392
+ to: string;
393
+ reason: string;
394
+ }[] | undefined;
395
+ } | {
396
+ kind: "TIME";
397
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
398
+ entryMs: number;
399
+ exitMs: number;
400
+ jumps?: {
401
+ atPermille: number;
402
+ fromMs: number;
403
+ toMs: number;
404
+ reason: string;
405
+ }[] | undefined;
406
+ } | undefined;
407
+ interval?: {
408
+ startMs: number;
409
+ endMs: number;
410
+ } | undefined;
411
+ } | {
412
+ key: string;
413
+ expected: string;
414
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
415
+ intentPath?: string | undefined;
416
+ })[];
417
+ evidence?: {
418
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
419
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
420
+ byteSize: number;
421
+ width: number;
422
+ height: number;
423
+ durationMs?: number | undefined;
424
+ frameRate?: 30 | 24 | undefined;
425
+ hasAudio?: boolean | undefined;
426
+ } | undefined;
299
427
  image?: {
300
428
  contentType: "image/png";
301
429
  byteSize: number;
@@ -318,20 +446,20 @@ export declare class LocalInstallationManager {
318
446
  summary: string;
319
447
  imageReadback: string;
320
448
  observations: {
321
- key: string;
322
449
  status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
323
450
  confidence: "CLEAR" | "UNCERTAIN";
324
451
  observed: string;
452
+ key: string;
325
453
  }[];
326
454
  } | null;
327
455
  provenance: {
328
- adapter: "CODEX_METADATA_V1";
456
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
329
457
  binaryDigest: string;
330
458
  version: "0.164.0" | "0.165.0";
331
459
  model: string;
332
460
  reviewerLabel: string;
333
461
  inference: "REMOTE_OPENAI";
334
- evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
462
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
335
463
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
336
464
  };
337
465
  imageReceipt?: {
@@ -347,6 +475,33 @@ export declare class LocalInstallationManager {
347
475
  width: number;
348
476
  height: number;
349
477
  } | undefined;
478
+ evidenceReceipt?: {
479
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
480
+ draftId: string;
481
+ media: {
482
+ artifactId: string;
483
+ representationId: string;
484
+ checksumSha256: string;
485
+ };
486
+ ffmpegDigest: string;
487
+ ffprobeDigest: string;
488
+ attachment: {
489
+ checksumSha256: string;
490
+ byteSize: number;
491
+ width: number;
492
+ height: number;
493
+ };
494
+ timestampsMs: number[];
495
+ audio: {
496
+ sampleRateHz: 48000;
497
+ channels: 1;
498
+ samples: number;
499
+ peak: number;
500
+ rms: number;
501
+ clippedSamples: number;
502
+ } | null;
503
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
504
+ } | undefined;
350
505
  } | {
351
506
  protocol: "NVS_LOCAL_CONNECTOR_V1";
352
507
  stateDirectory: string;
@@ -359,9 +514,9 @@ export declare class LocalInstallationManager {
359
514
  } | {
360
515
  protocol: "NVS_LOCAL_IPC_V1";
361
516
  runtimeRevision: number;
362
- state: "RECOVERY_REQUIRED" | "IDLE" | "EXECUTING" | "DRAINING";
517
+ state: "RECOVERY_REQUIRED" | "EXECUTING" | "DRAINING" | "IDLE";
363
518
  journalSchemaVersion: 1;
364
- workProtocols: "NVS_LOCAL_WORK_V1"[];
519
+ workProtocols: ("NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2")[];
365
520
  versions: {
366
521
  component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
367
522
  installedVersion: string | null;
@@ -376,6 +531,56 @@ export declare class LocalInstallationManager {
376
531
  }[];
377
532
  nextActions: {
378
533
  call: {
534
+ operation: "agent.discover";
535
+ binary?: string | undefined;
536
+ } | {
537
+ operation: "offline.workspace";
538
+ input: {
539
+ action: "list" | "forget";
540
+ key: string;
541
+ } | {
542
+ action: "retain";
543
+ key: string;
544
+ snapshot: {
545
+ projectId: string;
546
+ title: string;
547
+ savedAt: string;
548
+ expiresAt: string;
549
+ productions: {
550
+ id: string;
551
+ title: string;
552
+ }[];
553
+ possiblyTruncated: boolean;
554
+ };
555
+ } | {
556
+ action: "draft";
557
+ key: string;
558
+ projectId: string;
559
+ text: string;
560
+ expectedRevision: number;
561
+ };
562
+ } | {
563
+ operation: "workspace.inspect";
564
+ } | {
565
+ operation: "workspace.configure";
566
+ policy: {
567
+ mode: "CONTINUOUS" | "IDLE_ONLY";
568
+ idleAfterSeconds: number;
569
+ maxConcurrentJobs: number;
570
+ cpuCores: 2 | 1;
571
+ memoryMiB: number;
572
+ cacheQuotaBytes: number;
573
+ };
574
+ expectedRevision: number;
575
+ } | {
576
+ operation: "workspace.activity";
577
+ idleSeconds: number;
578
+ observedAt: string;
579
+ } | {
580
+ operation: "storage.clean";
581
+ } | {
582
+ operation: "diagnostics.read";
583
+ } | {
379
584
  operation: "agent.grant";
380
585
  grant: {
381
586
  protocol: "NVS_CODEX_REVIEW_GRANT_V1";
@@ -393,6 +598,7 @@ export declare class LocalInstallationManager {
393
598
  expiresAt: string;
394
599
  reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
395
600
  imageDisclosureApproved?: true | undefined;
601
+ mediaDisclosureApproved?: true | undefined;
396
602
  };
397
603
  approval: string;
398
604
  } | {
@@ -409,11 +615,20 @@ export declare class LocalInstallationManager {
409
615
  projectId: string & z.core.$brand<"ProjectId">;
410
616
  productionId: string & z.core.$brand<"ProductionId">;
411
617
  };
412
- contextFingerprint: string;
413
618
  target: {
414
619
  kind: "IMAGE";
415
620
  generationId: string;
621
+ } | {
622
+ kind: "VIDEO";
623
+ generationId: string;
624
+ } | {
625
+ kind: "ROUGH_CUT";
626
+ renderId: string;
627
+ } | {
628
+ kind: "PROGRAMMATIC";
629
+ renderId: string;
416
630
  };
631
+ contextFingerprint: string;
417
632
  };
418
633
  productionRevision: number;
419
634
  reviewVersion: number;
@@ -423,12 +638,115 @@ export declare class LocalInstallationManager {
423
638
  representationId: string;
424
639
  checksumSha256: string;
425
640
  };
426
- requirements: {
641
+ requirements: ({
642
+ key: string;
643
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
644
+ expected: string;
645
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
646
+ scope: "TRANSITION" | "PRODUCTION";
647
+ interval: {
648
+ startMs: number;
649
+ endMs: number;
650
+ };
651
+ shotIds: string[];
652
+ continuity?: {
653
+ kind: "STATE";
654
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
655
+ entry: string;
656
+ exit: string;
657
+ changes?: {
658
+ atPermille: number;
659
+ from: string;
660
+ to: string;
661
+ reason: string;
662
+ }[] | undefined;
663
+ } | {
664
+ kind: "TIME";
665
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
666
+ entryMs: number;
667
+ exitMs: number;
668
+ jumps?: {
669
+ atPermille: number;
670
+ fromMs: number;
671
+ toMs: number;
672
+ reason: string;
673
+ }[] | undefined;
674
+ } | undefined;
675
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
676
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
677
+ consistencySubject?: {
678
+ id: string;
679
+ kind: "CHARACTER" | "VOICE";
680
+ displayName: string;
681
+ facts: {
682
+ dimension: string;
683
+ value: string;
684
+ }[];
685
+ master: {
686
+ artifactId: string & z.core.$brand<"ArtifactId">;
687
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
688
+ checksumSha256: string;
689
+ artifactChecksumSha256: string;
690
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
691
+ };
692
+ } | undefined;
693
+ consistencyReference?: {
694
+ artifactId: string & z.core.$brand<"ArtifactId">;
695
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
696
+ checksumSha256: string;
697
+ artifactChecksumSha256: string;
698
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
699
+ } | undefined;
700
+ } | {
427
701
  key: string;
702
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
428
703
  expected: string;
429
704
  enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
705
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
430
706
  intentPath?: string | undefined;
431
- }[];
707
+ continuity?: {
708
+ kind: "STATE";
709
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
710
+ entry: string;
711
+ exit: string;
712
+ changes?: {
713
+ atPermille: number;
714
+ from: string;
715
+ to: string;
716
+ reason: string;
717
+ }[] | undefined;
718
+ } | {
719
+ kind: "TIME";
720
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
721
+ entryMs: number;
722
+ exitMs: number;
723
+ jumps?: {
724
+ atPermille: number;
725
+ fromMs: number;
726
+ toMs: number;
727
+ reason: string;
728
+ }[] | undefined;
729
+ } | undefined;
730
+ interval?: {
731
+ startMs: number;
732
+ endMs: number;
733
+ } | undefined;
734
+ } | {
735
+ key: string;
736
+ expected: string;
737
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
738
+ intentPath?: string | undefined;
739
+ })[];
740
+ evidence?: {
741
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
742
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
743
+ byteSize: number;
744
+ width: number;
745
+ height: number;
746
+ durationMs?: number | undefined;
747
+ frameRate?: 30 | 24 | undefined;
748
+ hasAudio?: boolean | undefined;
749
+ } | undefined;
432
750
  image?: {
433
751
  contentType: "image/png";
434
752
  byteSize: number;
@@ -446,6 +764,7 @@ export declare class LocalInstallationManager {
446
764
  id: string;
447
765
  } | {
448
766
  operation: "runtime.status";
767
+ includeDevice?: true | undefined;
449
768
  } | {
450
769
  operation: "runtime.doctor";
451
770
  } | {
@@ -467,6 +786,7 @@ export declare class LocalInstallationManager {
467
786
  projectId: string;
468
787
  productionId: string;
469
788
  runtimeJobId: string;
789
+ includeProgress?: boolean | undefined;
470
790
  };
471
791
  } | {
472
792
  operation: "execution.list";
@@ -475,6 +795,8 @@ export declare class LocalInstallationManager {
475
795
  projectId: string;
476
796
  after: string | null;
477
797
  limit: number;
798
+ includeCompleted?: boolean | undefined;
799
+ includeProgress?: boolean | undefined;
478
800
  };
479
801
  } | {
480
802
  operation: "update.check";
@@ -491,6 +813,11 @@ export declare class LocalInstallationManager {
491
813
  availability: "AVAILABLE" | "BLOCKED";
492
814
  reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
493
815
  }[];
816
+ deviceAuthority?: {
817
+ tenantId: string;
818
+ deviceId: string;
819
+ origin: string;
820
+ } | undefined;
494
821
  } | {
495
822
  binding: {
496
823
  tenantId: string;
@@ -504,14 +831,69 @@ export declare class LocalInstallationManager {
504
831
  toolchainFingerprint: string;
505
832
  };
506
833
  revision: number;
507
- phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
834
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
508
835
  checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
836
+ progress?: {
837
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
838
+ downloadedBytes: number;
839
+ sourceBytes: number;
840
+ uploadedBytes: number;
841
+ outputBytes: number;
842
+ lastError: {
843
+ code: string;
844
+ observedAt: string;
845
+ } | null;
846
+ } | undefined;
847
+ } | {
848
+ candidate: {
849
+ binary: string;
850
+ binaryDigest: string;
851
+ version: string;
852
+ qualified: boolean;
853
+ } | null;
854
+ configured: {
855
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
856
+ binary: string;
857
+ binaryDigest: string;
858
+ version: "0.164.0" | "0.165.0";
859
+ model: string;
860
+ reviewerLabel: string;
861
+ inference: "REMOTE_OPENAI";
862
+ remoteUseApproved: true;
863
+ projects: {
864
+ tenantId: string;
865
+ projectId: string;
866
+ }[];
867
+ expiresAt: string;
868
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
869
+ imageDisclosureApproved?: true | undefined;
870
+ mediaDisclosureApproved?: true | undefined;
871
+ } | null;
509
872
  } | {
510
873
  configured: boolean;
511
874
  available: boolean;
512
875
  reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
513
876
  grantFingerprint: string | null;
514
877
  inference: "REMOTE_OPENAI";
878
+ } | {
879
+ historical: true;
880
+ items: {
881
+ snapshot: {
882
+ projectId: string;
883
+ title: string;
884
+ savedAt: string;
885
+ expiresAt: string;
886
+ productions: {
887
+ id: string;
888
+ title: string;
889
+ }[];
890
+ possiblyTruncated: boolean;
891
+ };
892
+ draft: {
893
+ text: string;
894
+ revision: number;
895
+ };
896
+ }[];
515
897
  } | {
516
898
  runtimeRevision: number;
517
899
  descriptor: {
@@ -526,15 +908,82 @@ export declare class LocalInstallationManager {
526
908
  architecture: "x64" | "arm64";
527
909
  };
528
910
  ipcProtocol: "NVS_LOCAL_IPC_V1";
529
- workProtocol: "NVS_LOCAL_WORK_V1";
911
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
530
912
  journalSchema: 1;
531
913
  rendererDigest: string;
532
914
  profileDigest: string;
915
+ compatibleRenderers?: {
916
+ rendererDigest: string;
917
+ profileDigest: string;
918
+ }[] | undefined;
533
919
  };
534
920
  activeProcesses: number;
535
921
  pendingExecutions: number;
536
922
  pendingRequests: number;
537
923
  pendingRenderers: string[];
924
+ } | {
925
+ settings: {
926
+ revision: number;
927
+ policy: {
928
+ mode: "CONTINUOUS" | "IDLE_ONLY";
929
+ idleAfterSeconds: number;
930
+ maxConcurrentJobs: number;
931
+ cpuCores: 2 | 1;
932
+ memoryMiB: number;
933
+ cacheQuotaBytes: number;
934
+ };
935
+ };
936
+ storage: {
937
+ cacheBytes: number;
938
+ protectedBytes: number;
939
+ reclaimableBytes: number;
940
+ transferBytes: number;
941
+ journalBytes: number;
942
+ availableDiskBytes: number;
943
+ quotaBytes: number;
944
+ overQuota: boolean;
945
+ reviewBytes?: number | undefined;
946
+ ownerStagingBytes?: number | undefined;
947
+ };
948
+ scheduling: {
949
+ state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
950
+ activeJobs: number;
951
+ idleObservationCurrent: boolean;
952
+ };
953
+ } | {
954
+ protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
955
+ createdAt: string;
956
+ runtimeVersion: string;
957
+ runtimeRevision: number;
958
+ settings: {
959
+ revision: number;
960
+ policy: {
961
+ mode: "CONTINUOUS" | "IDLE_ONLY";
962
+ idleAfterSeconds: number;
963
+ maxConcurrentJobs: number;
964
+ cpuCores: 2 | 1;
965
+ memoryMiB: number;
966
+ cacheQuotaBytes: number;
967
+ };
968
+ };
969
+ storage: {
970
+ cacheBytes: number;
971
+ protectedBytes: number;
972
+ reclaimableBytes: number;
973
+ transferBytes: number;
974
+ journalBytes: number;
975
+ availableDiskBytes: number;
976
+ quotaBytes: number;
977
+ overQuota: boolean;
978
+ reviewBytes?: number | undefined;
979
+ ownerStagingBytes?: number | undefined;
980
+ };
981
+ recordCounts: Record<string, number>;
982
+ failures: {
983
+ taskFingerprint: string;
984
+ code: string;
985
+ observedAt: string;
986
+ }[];
538
987
  } | {
539
988
  mode: "MANAGED" | "INSTALLED";
540
989
  availability: "UNAVAILABLE" | "AVAILABLE";
@@ -546,6 +995,7 @@ export declare class LocalInstallationManager {
546
995
  version: string;
547
996
  digest: string;
548
997
  }[];
998
+ executionProfiles?: ("ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2")[] | undefined;
549
999
  } | {
550
1000
  items: {
551
1001
  binding: {
@@ -560,8 +1010,19 @@ export declare class LocalInstallationManager {
560
1010
  toolchainFingerprint: string;
561
1011
  };
562
1012
  revision: number;
563
- phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
1013
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
564
1014
  checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
1015
+ progress?: {
1016
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
1017
+ downloadedBytes: number;
1018
+ sourceBytes: number;
1019
+ uploadedBytes: number;
1020
+ outputBytes: number;
1021
+ lastError: {
1022
+ code: string;
1023
+ observedAt: string;
1024
+ } | null;
1025
+ } | undefined;
565
1026
  }[];
566
1027
  nextCursor: string | null;
567
1028
  } | {
@@ -580,10 +1041,14 @@ export declare class LocalInstallationManager {
580
1041
  architecture: "x64" | "arm64";
581
1042
  };
582
1043
  ipcProtocol: "NVS_LOCAL_IPC_V1";
583
- workProtocol: "NVS_LOCAL_WORK_V1";
1044
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
584
1045
  journalSchema: 1;
585
1046
  rendererDigest: string;
586
1047
  profileDigest: string;
1048
+ compatibleRenderers?: {
1049
+ rendererDigest: string;
1050
+ profileDigest: string;
1051
+ }[] | undefined;
587
1052
  };
588
1053
  activeProcesses: number;
589
1054
  pendingExecutions: number;