@nativestudio/cli 0.0.0-stage → 0.3.0-rc.11

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 (266) hide show
  1. package/COMPATIBILITY.json +45 -0
  2. package/LICENSE +201 -0
  3. package/components/runtime.json +31 -0
  4. package/components/runtime.tgz +0 -0
  5. package/dist/BUNDLED_DEPENDENCIES.json +1 -0
  6. package/dist/_chunks/chunk-2UYKJ6YN.js +1 -0
  7. package/dist/_chunks/chunk-37PAJCKA.js +1 -0
  8. package/dist/_chunks/chunk-3AVC742O.js +1 -0
  9. package/dist/_chunks/chunk-4U4Y2K73.js +1 -0
  10. package/dist/_chunks/chunk-65FQPXKC.js +1 -0
  11. package/dist/_chunks/chunk-6DVZBKNV.js +1 -0
  12. package/dist/_chunks/chunk-6LU6GJKW.js +1 -0
  13. package/dist/_chunks/chunk-6N433ZWR.js +1 -0
  14. package/dist/_chunks/chunk-EGUJ2YRX.js +1 -0
  15. package/dist/_chunks/chunk-FU3524Z6.js +1 -0
  16. package/dist/_chunks/chunk-GZBWA4YN.js +1 -0
  17. package/dist/_chunks/chunk-HR34UMPP.js +1 -0
  18. package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
  19. package/dist/_chunks/chunk-JFC6ZIGA.js +1 -0
  20. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  21. package/dist/_chunks/chunk-L543FEDK.js +1 -0
  22. package/dist/_chunks/chunk-LISB5W7B.js +1 -0
  23. package/dist/_chunks/chunk-LUAH3KAS.js +1 -0
  24. package/dist/_chunks/chunk-M2KVQQ4X.js +1 -0
  25. package/dist/_chunks/chunk-ODGPV7MM.js +1 -0
  26. package/dist/_chunks/chunk-PUBMDP4E.js +1 -0
  27. package/dist/_chunks/chunk-PUNG4ND7.js +1 -0
  28. package/dist/_chunks/chunk-Q57YFNK5.js +1 -0
  29. package/dist/_chunks/chunk-QAJH4RJQ.js +1 -0
  30. package/dist/_chunks/chunk-VDNNFVTZ.js +3 -0
  31. package/dist/_chunks/chunk-VPYAXWXY.js +1 -0
  32. package/dist/_chunks/chunk-WFRRNWO5.js +1 -0
  33. package/dist/_chunks/connect-5YMO6MAR.js +1 -0
  34. package/dist/_chunks/device-management-2OTGEBJQ.js +1 -0
  35. package/dist/_chunks/device-preflight-XPHFZGLO.js +1 -0
  36. package/dist/_chunks/devices-inventory-VWNTU5TE.js +1 -0
  37. package/dist/_chunks/devices-main-VQ4APRVS.js +1 -0
  38. package/dist/_chunks/files-TTIQ7LYJ.js +1 -0
  39. package/dist/_chunks/host-main-H7DPLV7B.js +1 -0
  40. package/dist/_chunks/http-profile-MNJX6OXO.js +1 -0
  41. package/dist/_chunks/library-main-SAC3V2ML.js +1 -0
  42. package/dist/_chunks/local-main-D6B3APK6.js +1 -0
  43. package/dist/_chunks/local-mcp-ONCANLPH.js +1 -0
  44. package/dist/_chunks/main-PW6HB3NC.js +2 -0
  45. package/dist/_chunks/mcp-ZIGBYFUW.js +1 -0
  46. package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
  47. package/dist/_chunks/render-main-GYWKP72O.js +1 -0
  48. package/dist/_chunks/source-import-BC5GNCUZ.js +1 -0
  49. package/dist/_chunks/src-R6DNU336.js +1 -0
  50. package/dist/_chunks/stdio-main-RIJS5REB.js +1 -0
  51. package/dist/_chunks/workspace-main-GNSKHKBG.js +1 -0
  52. package/dist/_types/cli/local/desktop-channel.d.ts +18 -0
  53. package/dist/_types/cli/local/desktop-contract.d.ts +2176 -0
  54. package/dist/_types/cli/local/desktop-device-contract.d.ts +779 -0
  55. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  56. package/dist/_types/cli/local/desktop-device-owner.d.ts +244 -0
  57. package/dist/_types/cli/local/desktop-device-state.d.ts +397 -0
  58. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  59. package/dist/_types/cli/local/desktop-node.d.ts +1 -0
  60. package/dist/_types/cli/local/desktop-owner.d.ts +766 -0
  61. package/dist/_types/cli/local/ledger.d.ts +363 -0
  62. package/dist/_types/cli/local/manager.d.ts +1695 -0
  63. package/dist/_types/cli/local/mcp-tools.d.ts +660 -0
  64. package/dist/_types/cli/local/releases.d.ts +123 -0
  65. package/dist/_types/cli/local-management.d.ts +16 -0
  66. package/dist/_types/cli/local-navigation.d.ts +4 -0
  67. package/dist/_types/contracts/accepted-shot.d.ts +27 -0
  68. package/dist/_types/contracts/accepted-visual-source.d.ts +120 -0
  69. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +749 -0
  70. package/dist/_types/contracts/agent-execution-oauth.d.ts +71 -0
  71. package/dist/_types/contracts/agent-execution-registration.d.ts +240 -0
  72. package/dist/_types/contracts/agent-execution-selection.d.ts +107 -0
  73. package/dist/_types/contracts/agent-host-execution.d.ts +706 -0
  74. package/dist/_types/contracts/agent-host-generic-transport.d.ts +12 -0
  75. package/dist/_types/contracts/agent-host.d.ts +226 -0
  76. package/dist/_types/contracts/artifact-discovery.d.ts +242 -0
  77. package/dist/_types/contracts/artifact.d.ts +188 -0
  78. package/dist/_types/contracts/audio.d.ts +335 -0
  79. package/dist/_types/contracts/brief.d.ts +178 -0
  80. package/dist/_types/contracts/caption-render.d.ts +20 -0
  81. package/dist/_types/contracts/caption-transcript.d.ts +102 -0
  82. package/dist/_types/contracts/captions.d.ts +420 -0
  83. package/dist/_types/contracts/clip-framing.d.ts +14 -0
  84. package/dist/_types/contracts/clip-transition.d.ts +6 -0
  85. package/dist/_types/contracts/composition-authoring-guide.d.ts +160 -0
  86. package/dist/_types/contracts/composition-authoring.d.ts +744 -0
  87. package/dist/_types/contracts/composition-finding-locality.d.ts +24 -0
  88. package/dist/_types/contracts/composition-frame-render.d.ts +226 -0
  89. package/dist/_types/contracts/composition-making.d.ts +390 -0
  90. package/dist/_types/contracts/composition-observation.d.ts +239 -0
  91. package/dist/_types/contracts/composition-render-base.d.ts +293 -0
  92. package/dist/_types/contracts/composition-render-observation.d.ts +278 -0
  93. package/dist/_types/contracts/composition-render.d.ts +406 -0
  94. package/dist/_types/contracts/composition-repair.d.ts +451 -0
  95. package/dist/_types/contracts/composition-source-review.d.ts +1042 -0
  96. package/dist/_types/contracts/consistency-profile.d.ts +845 -0
  97. package/dist/_types/contracts/continuity-evaluation.d.ts +48 -0
  98. package/dist/_types/contracts/delivery-completion.d.ts +210 -0
  99. package/dist/_types/contracts/delivery-manifest.d.ts +72 -0
  100. package/dist/_types/contracts/delivery-operations.d.ts +1151 -0
  101. package/dist/_types/contracts/delivery-output-profile.d.ts +12 -0
  102. package/dist/_types/contracts/delivery-summary.d.ts +220 -0
  103. package/dist/_types/contracts/delivery-validation.d.ts +206 -0
  104. package/dist/_types/contracts/device-render.d.ts +77 -0
  105. package/dist/_types/contracts/director-proposal.d.ts +1067 -0
  106. package/dist/_types/contracts/editor-intelligence.d.ts +3374 -0
  107. package/dist/_types/contracts/exploration-recommendation.d.ts +519 -0
  108. package/dist/_types/contracts/external-agent-access.d.ts +93 -0
  109. package/dist/_types/contracts/final-ready.d.ts +301 -0
  110. package/dist/_types/contracts/final-render-profile.d.ts +59 -0
  111. package/dist/_types/contracts/final-render.d.ts +2810 -0
  112. package/dist/_types/contracts/foundation.d.ts +1 -0
  113. package/dist/_types/contracts/generation-contract.d.ts +268 -0
  114. package/dist/_types/contracts/generation-cost.d.ts +70 -0
  115. package/dist/_types/contracts/health.d.ts +6 -0
  116. package/dist/_types/contracts/human-identity.d.ts +162 -0
  117. package/dist/_types/contracts/hyperframe-profile.d.ts +5 -0
  118. package/dist/_types/contracts/ids.d.ts +41 -0
  119. package/dist/_types/contracts/index.d.ts +126 -0
  120. package/dist/_types/contracts/interface/common.d.ts +56 -0
  121. package/dist/_types/contracts/interface/execution-output.d.ts +99 -0
  122. package/dist/_types/contracts/interface/index.d.ts +7 -0
  123. package/dist/_types/contracts/interface/media-output.d.ts +90 -0
  124. package/dist/_types/contracts/interface/operation.d.ts +61 -0
  125. package/dist/_types/contracts/interface/output.d.ts +15 -0
  126. package/dist/_types/contracts/interface/production-snapshot.d.ts +654 -0
  127. package/dist/_types/contracts/interface/query.d.ts +315 -0
  128. package/dist/_types/contracts/keyframe-generation.d.ts +378 -0
  129. package/dist/_types/contracts/keyframe-reference.d.ts +31 -0
  130. package/dist/_types/contracts/keyframe-review.d.ts +753 -0
  131. package/dist/_types/contracts/lifecycle-event-projections.d.ts +191 -0
  132. package/dist/_types/contracts/lifecycle-events.d.ts +156 -0
  133. package/dist/_types/contracts/listening-evidence.d.ts +37 -0
  134. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  135. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  136. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  137. package/dist/_types/contracts/local-execution/agent-review.d.ts +992 -0
  138. package/dist/_types/contracts/local-execution/canonical.d.ts +2 -0
  139. package/dist/_types/contracts/local-execution/common.d.ts +49 -0
  140. package/dist/_types/contracts/local-execution/completion.d.ts +124 -0
  141. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  142. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  143. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  144. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  145. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  146. package/dist/_types/contracts/local-execution/device.d.ts +102 -0
  147. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  148. package/dist/_types/contracts/local-execution/index.d.ts +37 -0
  149. package/dist/_types/contracts/local-execution/ipc.d.ts +3730 -0
  150. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  151. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  152. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  153. package/dist/_types/contracts/local-execution/lifecycle.d.ts +519 -0
  154. package/dist/_types/contracts/local-execution/local-navigation.d.ts +929 -0
  155. package/dist/_types/contracts/local-execution/management.d.ts +400 -0
  156. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  157. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  158. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  159. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  160. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  161. package/dist/_types/contracts/local-execution/preview.d.ts +243 -0
  162. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  163. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  164. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  165. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  166. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  167. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  168. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  169. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  170. package/dist/_types/contracts/local-execution/tool-selection.d.ts +55 -0
  171. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  172. package/dist/_types/contracts/local-execution/work.d.ts +149 -0
  173. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  174. package/dist/_types/contracts/matrix-parameter-rule.d.ts +23 -0
  175. package/dist/_types/contracts/media-category.d.ts +11 -0
  176. package/dist/_types/contracts/media-export.d.ts +23 -0
  177. package/dist/_types/contracts/media-observation.d.ts +2080 -0
  178. package/dist/_types/contracts/model-capability-matrix.d.ts +118 -0
  179. package/dist/_types/contracts/native-tool-authority-failure.d.ts +38 -0
  180. package/dist/_types/contracts/native-tool-authority.d.ts +110 -0
  181. package/dist/_types/contracts/native-tool-execution.d.ts +287 -0
  182. package/dist/_types/contracts/native-tool-gateway.d.ts +41 -0
  183. package/dist/_types/contracts/native-video-audio.d.ts +62 -0
  184. package/dist/_types/contracts/navigation-context.d.ts +253 -0
  185. package/dist/_types/contracts/navigation-groups.d.ts +51 -0
  186. package/dist/_types/contracts/navigation.d.ts +248 -0
  187. package/dist/_types/contracts/observation-profile.d.ts +99 -0
  188. package/dist/_types/contracts/planning-input.d.ts +177 -0
  189. package/dist/_types/contracts/principal.d.ts +26 -0
  190. package/dist/_types/contracts/production-creation.d.ts +66 -0
  191. package/dist/_types/contracts/production-termination.d.ts +51 -0
  192. package/dist/_types/contracts/production.d.ts +111 -0
  193. package/dist/_types/contracts/programmatic-composition.d.ts +762 -0
  194. package/dist/_types/contracts/programmatic-exploration.d.ts +1822 -0
  195. package/dist/_types/contracts/programmatic-video-review.d.ts +894 -0
  196. package/dist/_types/contracts/project-library.d.ts +173 -0
  197. package/dist/_types/contracts/project.d.ts +93 -0
  198. package/dist/_types/contracts/provider-catalog.d.ts +421 -0
  199. package/dist/_types/contracts/provider-models.d.ts +3388 -0
  200. package/dist/_types/contracts/provider.d.ts +207 -0
  201. package/dist/_types/contracts/reference-preview.d.ts +55 -0
  202. package/dist/_types/contracts/repair-lifecycle.d.ts +2564 -0
  203. package/dist/_types/contracts/repair-plan.d.ts +646 -0
  204. package/dist/_types/contracts/repair-strategy.d.ts +1432 -0
  205. package/dist/_types/contracts/review-intelligence-evidence.d.ts +136 -0
  206. package/dist/_types/contracts/review-intelligence-final-output.d.ts +883 -0
  207. package/dist/_types/contracts/review-intelligence.d.ts +573 -0
  208. package/dist/_types/contracts/review1-repair-source.d.ts +452 -0
  209. package/dist/_types/contracts/review1-repair-strategy.d.ts +491 -0
  210. package/dist/_types/contracts/review1-repair.d.ts +36 -0
  211. package/dist/_types/contracts/rough-cut-manifest.d.ts +352 -0
  212. package/dist/_types/contracts/rough-cut-profile.d.ts +46 -0
  213. package/dist/_types/contracts/rough-cut-review.d.ts +459 -0
  214. package/dist/_types/contracts/rough-cut.d.ts +1260 -0
  215. package/dist/_types/contracts/scene-shot-plan.d.ts +882 -0
  216. package/dist/_types/contracts/sdk-discovery.d.ts +66 -0
  217. package/dist/_types/contracts/shot-direction.d.ts +113 -0
  218. package/dist/_types/contracts/shot-preparation-basis.d.ts +356 -0
  219. package/dist/_types/contracts/shot-preparation.d.ts +2285 -0
  220. package/dist/_types/contracts/shot-sound-instruction.d.ts +58 -0
  221. package/dist/_types/contracts/sound-making-plan.d.ts +1586 -0
  222. package/dist/_types/contracts/source-sound-policy.d.ts +10 -0
  223. package/dist/_types/contracts/source-workspace.d.ts +62 -0
  224. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  225. package/dist/_types/contracts/speech.d.ts +573 -0
  226. package/dist/_types/contracts/story.d.ts +98 -0
  227. package/dist/_types/contracts/temporal-evidence-operation.d.ts +380 -0
  228. package/dist/_types/contracts/temporal-evidence-reference.d.ts +18 -0
  229. package/dist/_types/contracts/temporal-evidence.d.ts +248 -0
  230. package/dist/_types/contracts/tenant.d.ts +7 -0
  231. package/dist/_types/contracts/timeline-audio.d.ts +98 -0
  232. package/dist/_types/contracts/timeline-graphics.d.ts +80 -0
  233. package/dist/_types/contracts/timeline-manifest.d.ts +704 -0
  234. package/dist/_types/contracts/timeline-source-sound.d.ts +353 -0
  235. package/dist/_types/contracts/timeline-v2.d.ts +1267 -0
  236. package/dist/_types/contracts/timeline-version-reader.d.ts +2955 -0
  237. package/dist/_types/contracts/timeline-visual-layers.d.ts +1249 -0
  238. package/dist/_types/contracts/timeline.d.ts +142 -0
  239. package/dist/_types/contracts/transcription.d.ts +80 -0
  240. package/dist/_types/contracts/video-generation.d.ts +676 -0
  241. package/dist/_types/contracts/video-review.d.ts +1871 -0
  242. package/dist/_types/contracts/visual-exploration.d.ts +1586 -0
  243. package/dist/_types/contracts/visual-layer-render.d.ts +2820 -0
  244. package/dist/_types/contracts/visual-layer.d.ts +112 -0
  245. package/dist/_types/contracts/visual-sequence.d.ts +143 -0
  246. package/dist/_types/contracts/workspace.d.ts +32 -0
  247. package/dist/_types/contracts/writer-proposal.d.ts +268 -0
  248. package/dist/_types/sdk/errors.d.ts +14 -0
  249. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  250. package/dist/_types/sdk/local-runtime/device-client.d.ts +187 -0
  251. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  252. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  253. package/dist/_types/sdk/local-runtime-client.d.ts +2616 -0
  254. package/dist/entry.js +2 -0
  255. package/dist/local-management.d.ts +1 -0
  256. package/dist/local-management.js +1 -0
  257. package/dist/local-navigation.d.ts +1 -0
  258. package/dist/local-navigation.js +1 -0
  259. package/dist/native/Bootstrap.ps1 +90 -0
  260. package/dist/native/JobNative.cs +137 -0
  261. package/dist/native/JobRunner.cs +381 -0
  262. package/dist/native/NativeMain.cs +161 -0
  263. package/dist/native/PipeBridge.cs +260 -0
  264. package/dist/native/PrivateAccess.cs +152 -0
  265. package/package.json +27 -3
  266. package/README.md +0 -3
@@ -0,0 +1,2616 @@
1
+ import { NativeStudioLocalWorkspaceClient } from "./local-runtime/workspace.js";
2
+ import { NativeStudioLocalLibraryClient } from "./local-runtime/library.js";
3
+ import { type LocalIpcRequest, type LocalWorkScope } from "../contracts/local-execution/index.js";
4
+ import { type LocalAgentSnapshot } from "../contracts/local-execution/index.js";
5
+ export declare class NativeStudioLocalRuntimeClient {
6
+ readonly options: {
7
+ stateDirectory: string;
8
+ authorization: () => Promise<string> | string;
9
+ timeoutMs?: number;
10
+ device?: {
11
+ tenantId: string;
12
+ deviceId: string;
13
+ };
14
+ };
15
+ readonly workspace: NativeStudioLocalWorkspaceClient;
16
+ readonly library: NativeStudioLocalLibraryClient;
17
+ constructor(options: {
18
+ stateDirectory: string;
19
+ authorization: () => Promise<string> | string;
20
+ timeoutMs?: number;
21
+ device?: {
22
+ tenantId: string;
23
+ deviceId: string;
24
+ };
25
+ });
26
+ static fromConnector(path: string): Promise<NativeStudioLocalRuntimeClient>;
27
+ call(call: LocalIpcRequest["call"], signal?: AbortSignal): Promise<{
28
+ plan: {
29
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
30
+ id: string;
31
+ grantFingerprint: string;
32
+ snapshot: {
33
+ basis: {
34
+ scope: {
35
+ tenantId: string & import("zod").$brand<"TenantId">;
36
+ projectId: string & import("zod").$brand<"ProjectId">;
37
+ productionId: string & import("zod").$brand<"ProductionId">;
38
+ };
39
+ target: {
40
+ kind: "IMAGE";
41
+ generationId: string;
42
+ } | {
43
+ kind: "VIDEO";
44
+ generationId: string;
45
+ } | {
46
+ kind: "ROUGH_CUT";
47
+ renderId: string;
48
+ } | {
49
+ kind: "PROGRAMMATIC";
50
+ renderId: string;
51
+ };
52
+ contextFingerprint: string;
53
+ };
54
+ productionRevision: number;
55
+ reviewVersion: number;
56
+ executionClass: "LIVE" | "TEST_ONLY";
57
+ media: {
58
+ artifactId: string;
59
+ representationId: string;
60
+ checksumSha256: string;
61
+ };
62
+ requirements: ({
63
+ key: string;
64
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
65
+ expected: string;
66
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
67
+ scope: "TRANSITION" | "PRODUCTION";
68
+ interval: {
69
+ startMs: number;
70
+ endMs: number;
71
+ };
72
+ shotIds: string[];
73
+ continuity?: {
74
+ kind: "STATE";
75
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
76
+ entry: string;
77
+ exit: string;
78
+ changes?: {
79
+ atPermille: number;
80
+ from: string;
81
+ to: string;
82
+ reason: string;
83
+ }[] | undefined;
84
+ } | {
85
+ kind: "TIME";
86
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
87
+ entryMs: number;
88
+ exitMs: number;
89
+ jumps?: {
90
+ atPermille: number;
91
+ fromMs: number;
92
+ toMs: number;
93
+ reason: string;
94
+ }[] | undefined;
95
+ } | undefined;
96
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
97
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
98
+ consistencySubject?: {
99
+ id: string;
100
+ kind: "CHARACTER" | "VOICE";
101
+ displayName: string;
102
+ facts: {
103
+ dimension: string;
104
+ value: string;
105
+ }[];
106
+ master: {
107
+ artifactId: string & import("zod").$brand<"ArtifactId">;
108
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
109
+ checksumSha256: string;
110
+ artifactChecksumSha256: string;
111
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
112
+ };
113
+ } | undefined;
114
+ consistencyReference?: {
115
+ artifactId: string & import("zod").$brand<"ArtifactId">;
116
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
117
+ checksumSha256: string;
118
+ artifactChecksumSha256: string;
119
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
120
+ } | undefined;
121
+ } | {
122
+ key: string;
123
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
124
+ expected: string;
125
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
126
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
127
+ intentPath?: string | undefined;
128
+ continuity?: {
129
+ kind: "STATE";
130
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
131
+ entry: string;
132
+ exit: string;
133
+ changes?: {
134
+ atPermille: number;
135
+ from: string;
136
+ to: string;
137
+ reason: string;
138
+ }[] | undefined;
139
+ } | {
140
+ kind: "TIME";
141
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
142
+ entryMs: number;
143
+ exitMs: number;
144
+ jumps?: {
145
+ atPermille: number;
146
+ fromMs: number;
147
+ toMs: number;
148
+ reason: string;
149
+ }[] | undefined;
150
+ } | undefined;
151
+ interval?: {
152
+ startMs: number;
153
+ endMs: number;
154
+ } | undefined;
155
+ } | {
156
+ key: string;
157
+ expected: string;
158
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
159
+ intentPath?: string | undefined;
160
+ })[];
161
+ evidence?: {
162
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
163
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
164
+ byteSize: number;
165
+ width: number;
166
+ height: number;
167
+ durationMs?: number | undefined;
168
+ frameRate?: 30 | 24 | undefined;
169
+ hasAudio?: boolean | undefined;
170
+ } | undefined;
171
+ image?: {
172
+ contentType: "image/png";
173
+ byteSize: number;
174
+ width: number;
175
+ height: number;
176
+ } | undefined;
177
+ };
178
+ expiresAt: string;
179
+ fingerprint: string;
180
+ };
181
+ revision: number;
182
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
183
+ answer: {
184
+ summary: string;
185
+ observations: {
186
+ key: string;
187
+ observed: string;
188
+ }[];
189
+ } | {
190
+ summary: string;
191
+ imageReadback: string;
192
+ observations: {
193
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
194
+ confidence: "CLEAR" | "UNCERTAIN";
195
+ observed: string;
196
+ key: string;
197
+ }[];
198
+ } | null;
199
+ provenance: {
200
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
201
+ binaryDigest: string;
202
+ version: "0.164.0" | "0.165.0";
203
+ model: string;
204
+ reviewerLabel: string;
205
+ inference: "REMOTE_OPENAI";
206
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
207
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
208
+ };
209
+ imageReceipt?: {
210
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
211
+ draftId: string;
212
+ media: {
213
+ artifactId: string;
214
+ representationId: string;
215
+ checksumSha256: string;
216
+ };
217
+ byteSize: number;
218
+ contentType: "image/png";
219
+ width: number;
220
+ height: number;
221
+ } | undefined;
222
+ evidenceReceipt?: {
223
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
224
+ draftId: string;
225
+ media: {
226
+ artifactId: string;
227
+ representationId: string;
228
+ checksumSha256: string;
229
+ };
230
+ ffmpegDigest: string;
231
+ ffprobeDigest: string;
232
+ attachment: {
233
+ checksumSha256: string;
234
+ byteSize: number;
235
+ width: number;
236
+ height: number;
237
+ };
238
+ timestampsMs: number[];
239
+ audio: {
240
+ sampleRateHz: 48000;
241
+ channels: 1;
242
+ samples: number;
243
+ peak: number;
244
+ rms: number;
245
+ clippedSamples: number;
246
+ } | null;
247
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
248
+ } | undefined;
249
+ } | {
250
+ reference: {
251
+ tenantId: string;
252
+ projectId: string;
253
+ fileId: string;
254
+ versionId: string;
255
+ checksumSha256: string;
256
+ byteSize: number;
257
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
258
+ deviceId: string;
259
+ };
260
+ ownerKey: string;
261
+ title: string;
262
+ createdAt: string;
263
+ revision: number;
264
+ access: {
265
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
266
+ desired: {
267
+ reference: {
268
+ tenantId: string;
269
+ projectId: string;
270
+ fileId: string;
271
+ versionId: string;
272
+ checksumSha256: string;
273
+ byteSize: number;
274
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
275
+ deviceId: string;
276
+ };
277
+ requestId: string;
278
+ expectedRevision: number;
279
+ metadata: {
280
+ label: string;
281
+ } | null;
282
+ allowInspect: boolean;
283
+ allowPublish: boolean;
284
+ expiresAt: string;
285
+ } | null;
286
+ confirmed: {
287
+ reference: {
288
+ tenantId: string;
289
+ projectId: string;
290
+ fileId: string;
291
+ versionId: string;
292
+ checksumSha256: string;
293
+ byteSize: number;
294
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
295
+ deviceId: string;
296
+ };
297
+ requestId: string;
298
+ expectedRevision: number;
299
+ metadata: {
300
+ label: string;
301
+ } | null;
302
+ allowInspect: boolean;
303
+ allowPublish: boolean;
304
+ expiresAt: string;
305
+ revision: number;
306
+ recordedAt: string;
307
+ } | null;
308
+ };
309
+ } | {
310
+ protocol: "NVS_LOCAL_CONNECTOR_V1";
311
+ stateDirectory: string;
312
+ credential: string;
313
+ expiresAt: string;
314
+ tenantId: string;
315
+ deviceId: string;
316
+ } | {
317
+ protocol: "NVS_LOCAL_IPC_V1";
318
+ runtimeRevision: number;
319
+ state: "RECOVERY_REQUIRED" | "EXECUTING" | "DRAINING" | "IDLE";
320
+ journalSchemaVersion: 1;
321
+ workProtocols: ("NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2")[];
322
+ versions: {
323
+ component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
324
+ installedVersion: string | null;
325
+ runningVersion: string | null;
326
+ availableVersion: string | null;
327
+ executablePath: string | null;
328
+ installOwner: "UNKNOWN" | "PROJECT" | "MANAGED" | "NPM_GLOBAL" | "NPX" | "TARBALL";
329
+ }[];
330
+ nextActions: {
331
+ call: {
332
+ operation: "library.capability";
333
+ } | {
334
+ operation: "library.call";
335
+ input: {
336
+ tenantId: string;
337
+ after: string | null;
338
+ limit: number;
339
+ deviceId: string;
340
+ action: "list";
341
+ projectId?: string | undefined;
342
+ ownerKey?: string | undefined;
343
+ search?: string | undefined;
344
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
345
+ } | {
346
+ reference: {
347
+ tenantId: string;
348
+ projectId: string;
349
+ fileId: string;
350
+ versionId: string;
351
+ checksumSha256: string;
352
+ byteSize: number;
353
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
354
+ deviceId: string;
355
+ };
356
+ action: "get";
357
+ ownerKey?: string | undefined;
358
+ } | {
359
+ tenantId: string;
360
+ limit: number;
361
+ deviceId: string;
362
+ after: string | null;
363
+ projectId: string;
364
+ action: "scoped-list";
365
+ search?: string | undefined;
366
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
367
+ } | {
368
+ action: "scoped-get";
369
+ reference: {
370
+ tenantId: string;
371
+ projectId: string;
372
+ fileId: string;
373
+ versionId: string;
374
+ checksumSha256: string;
375
+ byteSize: number;
376
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
377
+ deviceId: string;
378
+ };
379
+ } | {
380
+ action: "usage";
381
+ ownerKey?: string | undefined;
382
+ } | {
383
+ reference: {
384
+ tenantId: string;
385
+ projectId: string;
386
+ fileId: string;
387
+ versionId: string;
388
+ checksumSha256: string;
389
+ byteSize: number;
390
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
391
+ deviceId: string;
392
+ };
393
+ offset: number;
394
+ length: number;
395
+ action: "read";
396
+ ownerKey?: string | undefined;
397
+ } | {
398
+ command: {
399
+ reference: {
400
+ tenantId: string;
401
+ projectId: string;
402
+ fileId: string;
403
+ versionId: string;
404
+ checksumSha256: string;
405
+ byteSize: number;
406
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
407
+ deviceId: string;
408
+ };
409
+ requestId: string;
410
+ expectedRevision: number;
411
+ metadata: {
412
+ label: string;
413
+ } | null;
414
+ allowInspect: boolean;
415
+ allowPublish: boolean;
416
+ expiresAt: string;
417
+ };
418
+ expectedLocalRevision: number;
419
+ action: "access";
420
+ ownerKey?: string | undefined;
421
+ } | {
422
+ reference: {
423
+ tenantId: string;
424
+ projectId: string;
425
+ fileId: string;
426
+ versionId: string;
427
+ checksumSha256: string;
428
+ byteSize: number;
429
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
430
+ deviceId: string;
431
+ };
432
+ requestId: string;
433
+ action: "sync";
434
+ ownerKey?: string | undefined;
435
+ } | {
436
+ reference: {
437
+ tenantId: string;
438
+ projectId: string;
439
+ fileId: string;
440
+ versionId: string;
441
+ checksumSha256: string;
442
+ byteSize: number;
443
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
444
+ deviceId: string;
445
+ };
446
+ requestId: string;
447
+ action: "resume-access";
448
+ ownerKey?: string | undefined;
449
+ } | {
450
+ tenantId: string;
451
+ projectId: string;
452
+ deviceId: string;
453
+ requestId: string;
454
+ action: "import-receipt";
455
+ ownerKey?: string | undefined;
456
+ };
457
+ } | {
458
+ operation: "agent.discover";
459
+ binary?: string | undefined;
460
+ } | {
461
+ operation: "offline.workspace";
462
+ input: {
463
+ action: "list" | "forget";
464
+ key: string;
465
+ } | {
466
+ action: "retain";
467
+ key: string;
468
+ snapshot: {
469
+ projectId: string;
470
+ title: string;
471
+ savedAt: string;
472
+ expiresAt: string;
473
+ productions: {
474
+ id: string;
475
+ title: string;
476
+ }[];
477
+ possiblyTruncated: boolean;
478
+ };
479
+ } | {
480
+ action: "draft";
481
+ key: string;
482
+ projectId: string;
483
+ text: string;
484
+ expectedRevision: number;
485
+ };
486
+ } | {
487
+ operation: "workspace.inspect";
488
+ } | {
489
+ operation: "workspace.configure";
490
+ policy: {
491
+ acceptNewWork: boolean;
492
+ mode: "CONTINUOUS" | "IDLE_ONLY";
493
+ idleAfterSeconds: number;
494
+ maxConcurrentJobs: number;
495
+ cpuCores: 2 | 1;
496
+ memoryMiB: number;
497
+ cacheQuotaBytes: number;
498
+ };
499
+ expectedRevision: number;
500
+ } | {
501
+ operation: "workspace.activity";
502
+ idleSeconds: number;
503
+ observedAt: string;
504
+ } | {
505
+ operation: "storage.clean";
506
+ } | {
507
+ operation: "diagnostics.read";
508
+ } | {
509
+ operation: "agent.grant";
510
+ grant: {
511
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
512
+ binary: string;
513
+ binaryDigest: string;
514
+ version: "0.164.0" | "0.165.0";
515
+ model: string;
516
+ reviewerLabel: string;
517
+ inference: "REMOTE_OPENAI";
518
+ remoteUseApproved: true;
519
+ projects: {
520
+ tenantId: string;
521
+ projectId: string;
522
+ }[];
523
+ expiresAt: string;
524
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
525
+ imageDisclosureApproved?: true | undefined;
526
+ mediaDisclosureApproved?: true | undefined;
527
+ };
528
+ approval: string;
529
+ } | {
530
+ operation: "agent.probe";
531
+ } | {
532
+ operation: "agent.revoke";
533
+ approval: string;
534
+ } | {
535
+ operation: "agent.prepare";
536
+ snapshot: {
537
+ basis: {
538
+ scope: {
539
+ tenantId: string & import("zod").$brand<"TenantId">;
540
+ projectId: string & import("zod").$brand<"ProjectId">;
541
+ productionId: string & import("zod").$brand<"ProductionId">;
542
+ };
543
+ target: {
544
+ kind: "IMAGE";
545
+ generationId: string;
546
+ } | {
547
+ kind: "VIDEO";
548
+ generationId: string;
549
+ } | {
550
+ kind: "ROUGH_CUT";
551
+ renderId: string;
552
+ } | {
553
+ kind: "PROGRAMMATIC";
554
+ renderId: string;
555
+ };
556
+ contextFingerprint: string;
557
+ };
558
+ productionRevision: number;
559
+ reviewVersion: number;
560
+ executionClass: "LIVE" | "TEST_ONLY";
561
+ media: {
562
+ artifactId: string;
563
+ representationId: string;
564
+ checksumSha256: string;
565
+ };
566
+ requirements: ({
567
+ key: string;
568
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
569
+ expected: string;
570
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
571
+ scope: "TRANSITION" | "PRODUCTION";
572
+ interval: {
573
+ startMs: number;
574
+ endMs: number;
575
+ };
576
+ shotIds: string[];
577
+ continuity?: {
578
+ kind: "STATE";
579
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
580
+ entry: string;
581
+ exit: string;
582
+ changes?: {
583
+ atPermille: number;
584
+ from: string;
585
+ to: string;
586
+ reason: string;
587
+ }[] | undefined;
588
+ } | {
589
+ kind: "TIME";
590
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
591
+ entryMs: number;
592
+ exitMs: number;
593
+ jumps?: {
594
+ atPermille: number;
595
+ fromMs: number;
596
+ toMs: number;
597
+ reason: string;
598
+ }[] | undefined;
599
+ } | undefined;
600
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
601
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
602
+ consistencySubject?: {
603
+ id: string;
604
+ kind: "CHARACTER" | "VOICE";
605
+ displayName: string;
606
+ facts: {
607
+ dimension: string;
608
+ value: string;
609
+ }[];
610
+ master: {
611
+ artifactId: string & import("zod").$brand<"ArtifactId">;
612
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
613
+ checksumSha256: string;
614
+ artifactChecksumSha256: string;
615
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
616
+ };
617
+ } | undefined;
618
+ consistencyReference?: {
619
+ artifactId: string & import("zod").$brand<"ArtifactId">;
620
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
621
+ checksumSha256: string;
622
+ artifactChecksumSha256: string;
623
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
624
+ } | undefined;
625
+ } | {
626
+ key: string;
627
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
628
+ expected: string;
629
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
630
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
631
+ intentPath?: string | undefined;
632
+ continuity?: {
633
+ kind: "STATE";
634
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
635
+ entry: string;
636
+ exit: string;
637
+ changes?: {
638
+ atPermille: number;
639
+ from: string;
640
+ to: string;
641
+ reason: string;
642
+ }[] | undefined;
643
+ } | {
644
+ kind: "TIME";
645
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
646
+ entryMs: number;
647
+ exitMs: number;
648
+ jumps?: {
649
+ atPermille: number;
650
+ fromMs: number;
651
+ toMs: number;
652
+ reason: string;
653
+ }[] | undefined;
654
+ } | undefined;
655
+ interval?: {
656
+ startMs: number;
657
+ endMs: number;
658
+ } | undefined;
659
+ } | {
660
+ key: string;
661
+ expected: string;
662
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
663
+ intentPath?: string | undefined;
664
+ })[];
665
+ evidence?: {
666
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
667
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
668
+ byteSize: number;
669
+ width: number;
670
+ height: number;
671
+ durationMs?: number | undefined;
672
+ frameRate?: 30 | 24 | undefined;
673
+ hasAudio?: boolean | undefined;
674
+ } | undefined;
675
+ image?: {
676
+ contentType: "image/png";
677
+ byteSize: number;
678
+ width: number;
679
+ height: number;
680
+ } | undefined;
681
+ };
682
+ } | {
683
+ operation: "agent.start";
684
+ id: string;
685
+ expectedRevision: number;
686
+ approval: string;
687
+ } | {
688
+ operation: "agent.inspect";
689
+ id: string;
690
+ } | {
691
+ operation: "runtime.status";
692
+ includeDevice?: true | undefined;
693
+ } | {
694
+ operation: "runtime.doctor";
695
+ } | {
696
+ operation: "runtime.inventory";
697
+ } | {
698
+ operation: "session.issue";
699
+ tenantId: string;
700
+ deviceId: string;
701
+ expiresAt: string;
702
+ } | {
703
+ operation: "runtime.stop";
704
+ expectedRuntimeRevision: number;
705
+ } | {
706
+ operation: "execution.inspect";
707
+ input: {
708
+ tenantId: string;
709
+ projectId: string;
710
+ productionId: string;
711
+ runtimeJobId: string;
712
+ includeProgress?: boolean | undefined;
713
+ };
714
+ } | {
715
+ operation: "execution.list";
716
+ input: {
717
+ tenantId: string;
718
+ projectId: string;
719
+ after: string | null;
720
+ limit: number;
721
+ includeCompleted?: boolean | undefined;
722
+ includeProgress?: boolean | undefined;
723
+ };
724
+ } | {
725
+ operation: "update.check";
726
+ } | {
727
+ operation: "update.prepare";
728
+ targetVersion: string;
729
+ expectedRuntimeRevision: number;
730
+ } | {
731
+ operation: "update.apply";
732
+ planId: string;
733
+ targetVersion: string;
734
+ expectedRuntimeRevision: number;
735
+ };
736
+ availability: "AVAILABLE" | "BLOCKED";
737
+ reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
738
+ }[];
739
+ deviceAuthority?: {
740
+ tenantId: string;
741
+ deviceId: string;
742
+ origin: string;
743
+ } | undefined;
744
+ deviceCapabilities?: {
745
+ deviceRevision: number;
746
+ tenantMediaValidation: boolean;
747
+ tenantMediaProcessing: boolean;
748
+ processorCapabilities: ("KEYFRAME_GENERATE" | "VIDEO_GENERATE" | "SPEECH_SYNTHESIZE" | "SPEECH_EXTERNAL_QWEN" | "TEMPORAL_SAMPLE" | "DELIVERY_VALIDATE" | "COMPOSITION_RENDER" | "IMPORTED_VISUAL_NORMALIZE" | "SOURCE_SYNC_AUDIO" | "IMPORT_ORIGINAL" | "LOCAL_MEDIA_INSPECT" | "LOCAL_MEDIA_PUBLISH" | "IMPORT_PROJECT_SOURCE" | "REGISTER_VISUAL_SEQUENCE" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[];
749
+ } | undefined;
750
+ } | {
751
+ binding: {
752
+ tenantId: string;
753
+ projectId: string;
754
+ productionId: string;
755
+ runtimeJobId: string;
756
+ attemptId: string;
757
+ assignmentRevision: number;
758
+ workerId: string;
759
+ workFingerprint: string;
760
+ toolchainFingerprint: string;
761
+ };
762
+ revision: number;
763
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
764
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
765
+ progress?: {
766
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
767
+ downloadedBytes: number;
768
+ sourceBytes: number;
769
+ uploadedBytes: number;
770
+ outputBytes: number;
771
+ lastError: {
772
+ code: string;
773
+ observedAt: string;
774
+ } | null;
775
+ } | undefined;
776
+ } | {
777
+ items: {
778
+ reference: {
779
+ tenantId: string;
780
+ projectId: string;
781
+ fileId: string;
782
+ versionId: string;
783
+ checksumSha256: string;
784
+ byteSize: number;
785
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
786
+ deviceId: string;
787
+ };
788
+ metadata: {
789
+ label: string;
790
+ } | null;
791
+ accessRevision: number;
792
+ allowInspect: boolean;
793
+ allowPublish: boolean;
794
+ expiresAt: string;
795
+ }[];
796
+ nextCursor: string | null;
797
+ } | {
798
+ candidate: {
799
+ binary: string;
800
+ binaryDigest: string;
801
+ version: string;
802
+ qualified: boolean;
803
+ } | null;
804
+ configured: {
805
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
806
+ binary: string;
807
+ binaryDigest: string;
808
+ version: "0.164.0" | "0.165.0";
809
+ model: string;
810
+ reviewerLabel: string;
811
+ inference: "REMOTE_OPENAI";
812
+ remoteUseApproved: true;
813
+ projects: {
814
+ tenantId: string;
815
+ projectId: string;
816
+ }[];
817
+ expiresAt: string;
818
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
819
+ imageDisclosureApproved?: true | undefined;
820
+ mediaDisclosureApproved?: true | undefined;
821
+ } | null;
822
+ } | {
823
+ configured: boolean;
824
+ available: boolean;
825
+ reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
826
+ grantFingerprint: string | null;
827
+ inference: "REMOTE_OPENAI";
828
+ } | {
829
+ historical: true;
830
+ items: {
831
+ snapshot: {
832
+ projectId: string;
833
+ title: string;
834
+ savedAt: string;
835
+ expiresAt: string;
836
+ productions: {
837
+ id: string;
838
+ title: string;
839
+ }[];
840
+ possiblyTruncated: boolean;
841
+ };
842
+ draft: {
843
+ text: string;
844
+ revision: number;
845
+ };
846
+ }[];
847
+ } | {
848
+ items: {
849
+ reference: {
850
+ tenantId: string;
851
+ projectId: string;
852
+ fileId: string;
853
+ versionId: string;
854
+ checksumSha256: string;
855
+ byteSize: number;
856
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
857
+ deviceId: string;
858
+ };
859
+ ownerKey: string;
860
+ title: string;
861
+ createdAt: string;
862
+ revision: number;
863
+ access: {
864
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
865
+ desired: {
866
+ reference: {
867
+ tenantId: string;
868
+ projectId: string;
869
+ fileId: string;
870
+ versionId: string;
871
+ checksumSha256: string;
872
+ byteSize: number;
873
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
874
+ deviceId: string;
875
+ };
876
+ requestId: string;
877
+ expectedRevision: number;
878
+ metadata: {
879
+ label: string;
880
+ } | null;
881
+ allowInspect: boolean;
882
+ allowPublish: boolean;
883
+ expiresAt: string;
884
+ } | null;
885
+ confirmed: {
886
+ reference: {
887
+ tenantId: string;
888
+ projectId: string;
889
+ fileId: string;
890
+ versionId: string;
891
+ checksumSha256: string;
892
+ byteSize: number;
893
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
894
+ deviceId: string;
895
+ };
896
+ requestId: string;
897
+ expectedRevision: number;
898
+ metadata: {
899
+ label: string;
900
+ } | null;
901
+ allowInspect: boolean;
902
+ allowPublish: boolean;
903
+ expiresAt: string;
904
+ revision: number;
905
+ recordedAt: string;
906
+ } | null;
907
+ };
908
+ }[];
909
+ nextCursor: string | null;
910
+ } | {
911
+ reference: {
912
+ tenantId: string;
913
+ projectId: string;
914
+ fileId: string;
915
+ versionId: string;
916
+ checksumSha256: string;
917
+ byteSize: number;
918
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
919
+ deviceId: string;
920
+ };
921
+ metadata: {
922
+ label: string;
923
+ } | null;
924
+ accessRevision: number;
925
+ allowInspect: boolean;
926
+ allowPublish: boolean;
927
+ expiresAt: string;
928
+ } | {
929
+ reference: {
930
+ tenantId: string;
931
+ projectId: string;
932
+ fileId: string;
933
+ versionId: string;
934
+ checksumSha256: string;
935
+ byteSize: number;
936
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
937
+ deviceId: string;
938
+ };
939
+ offset: number;
940
+ contentBase64: string;
941
+ complete: boolean;
942
+ } | {
943
+ protocol: "NVS_LOCAL_LIBRARY_V1";
944
+ available: boolean;
945
+ profileDigest: string;
946
+ } | {
947
+ fileCount: number;
948
+ totalBytes: number;
949
+ quotaBytes: number;
950
+ availableDiskBytes: number;
951
+ } | {
952
+ runtimeRevision: number;
953
+ descriptor: {
954
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
955
+ version: string;
956
+ node: {
957
+ major: 24;
958
+ minMinor: 12;
959
+ };
960
+ platform: {
961
+ os: "darwin" | "linux" | "win32";
962
+ architecture: "x64" | "arm64";
963
+ };
964
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
965
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
966
+ journalSchema: 1;
967
+ rendererDigest: string;
968
+ profileDigest: string;
969
+ compatibleRenderers?: {
970
+ rendererDigest: string;
971
+ profileDigest: string;
972
+ }[] | undefined;
973
+ };
974
+ activeProcesses: number;
975
+ pendingExecutions: number;
976
+ pendingRequests: number;
977
+ pendingRenderers: string[];
978
+ } | {
979
+ settings: {
980
+ revision: number;
981
+ policy: {
982
+ acceptNewWork: boolean;
983
+ mode: "CONTINUOUS" | "IDLE_ONLY";
984
+ idleAfterSeconds: number;
985
+ maxConcurrentJobs: number;
986
+ cpuCores: 2 | 1;
987
+ memoryMiB: number;
988
+ cacheQuotaBytes: number;
989
+ };
990
+ };
991
+ storage: {
992
+ cacheBytes: number;
993
+ protectedBytes: number;
994
+ reclaimableBytes: number;
995
+ transferBytes: number;
996
+ journalBytes: number;
997
+ availableDiskBytes: number;
998
+ quotaBytes: number;
999
+ overQuota: boolean;
1000
+ reviewBytes?: number | undefined;
1001
+ ownerStagingBytes?: number | undefined;
1002
+ };
1003
+ scheduling: {
1004
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
1005
+ activeJobs: number;
1006
+ idleObservationCurrent: boolean;
1007
+ };
1008
+ } | {
1009
+ protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
1010
+ createdAt: string;
1011
+ runtimeVersion: string;
1012
+ runtimeRevision: number;
1013
+ settings: {
1014
+ revision: number;
1015
+ policy: {
1016
+ acceptNewWork: boolean;
1017
+ mode: "CONTINUOUS" | "IDLE_ONLY";
1018
+ idleAfterSeconds: number;
1019
+ maxConcurrentJobs: number;
1020
+ cpuCores: 2 | 1;
1021
+ memoryMiB: number;
1022
+ cacheQuotaBytes: number;
1023
+ };
1024
+ };
1025
+ storage: {
1026
+ cacheBytes: number;
1027
+ protectedBytes: number;
1028
+ reclaimableBytes: number;
1029
+ transferBytes: number;
1030
+ journalBytes: number;
1031
+ availableDiskBytes: number;
1032
+ quotaBytes: number;
1033
+ overQuota: boolean;
1034
+ reviewBytes?: number | undefined;
1035
+ ownerStagingBytes?: number | undefined;
1036
+ };
1037
+ recordCounts: Record<string, number>;
1038
+ failures: {
1039
+ taskFingerprint: string;
1040
+ code: string;
1041
+ observedAt: string;
1042
+ }[];
1043
+ } | {
1044
+ mode: "INSTALLED" | "MANAGED";
1045
+ availability: "UNAVAILABLE" | "AVAILABLE";
1046
+ reason: "QUALIFIED_PROCESS_TOOLS" | "MANAGED_TOOLS_MISSING" | "TOOL_QUALIFICATION_FAILED";
1047
+ nativeExecutionReady: boolean;
1048
+ tools: {
1049
+ name: "FFMPEG" | "FFPROBE";
1050
+ path: string;
1051
+ version: string;
1052
+ digest: string;
1053
+ }[];
1054
+ executionProfiles?: ("ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2")[] | undefined;
1055
+ } | {
1056
+ items: {
1057
+ binding: {
1058
+ tenantId: string;
1059
+ projectId: string;
1060
+ productionId: string;
1061
+ runtimeJobId: string;
1062
+ attemptId: string;
1063
+ assignmentRevision: number;
1064
+ workerId: string;
1065
+ workFingerprint: string;
1066
+ toolchainFingerprint: string;
1067
+ };
1068
+ revision: number;
1069
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
1070
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
1071
+ progress?: {
1072
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
1073
+ downloadedBytes: number;
1074
+ sourceBytes: number;
1075
+ uploadedBytes: number;
1076
+ outputBytes: number;
1077
+ lastError: {
1078
+ code: string;
1079
+ observedAt: string;
1080
+ } | null;
1081
+ } | undefined;
1082
+ }[];
1083
+ nextCursor: string | null;
1084
+ } | {
1085
+ state: "DRAINING";
1086
+ inventory?: {
1087
+ runtimeRevision: number;
1088
+ descriptor: {
1089
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
1090
+ version: string;
1091
+ node: {
1092
+ major: 24;
1093
+ minMinor: 12;
1094
+ };
1095
+ platform: {
1096
+ os: "darwin" | "linux" | "win32";
1097
+ architecture: "x64" | "arm64";
1098
+ };
1099
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
1100
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
1101
+ journalSchema: 1;
1102
+ rendererDigest: string;
1103
+ profileDigest: string;
1104
+ compatibleRenderers?: {
1105
+ rendererDigest: string;
1106
+ profileDigest: string;
1107
+ }[] | undefined;
1108
+ };
1109
+ activeProcesses: number;
1110
+ pendingExecutions: number;
1111
+ pendingRequests: number;
1112
+ pendingRenderers: string[];
1113
+ } | undefined;
1114
+ backupPath?: string | undefined;
1115
+ } | null>;
1116
+ private response;
1117
+ status(signal?: AbortSignal, includeDevice?: boolean): Promise<{
1118
+ protocol: "NVS_LOCAL_IPC_V1";
1119
+ runtimeRevision: number;
1120
+ state: "RECOVERY_REQUIRED" | "EXECUTING" | "DRAINING" | "IDLE";
1121
+ journalSchemaVersion: 1;
1122
+ workProtocols: ("NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2")[];
1123
+ versions: {
1124
+ component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
1125
+ installedVersion: string | null;
1126
+ runningVersion: string | null;
1127
+ availableVersion: string | null;
1128
+ executablePath: string | null;
1129
+ installOwner: "UNKNOWN" | "PROJECT" | "MANAGED" | "NPM_GLOBAL" | "NPX" | "TARBALL";
1130
+ }[];
1131
+ nextActions: {
1132
+ call: {
1133
+ operation: "library.capability";
1134
+ } | {
1135
+ operation: "library.call";
1136
+ input: {
1137
+ tenantId: string;
1138
+ after: string | null;
1139
+ limit: number;
1140
+ deviceId: string;
1141
+ action: "list";
1142
+ projectId?: string | undefined;
1143
+ ownerKey?: string | undefined;
1144
+ search?: string | undefined;
1145
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
1146
+ } | {
1147
+ reference: {
1148
+ tenantId: string;
1149
+ projectId: string;
1150
+ fileId: string;
1151
+ versionId: string;
1152
+ checksumSha256: string;
1153
+ byteSize: number;
1154
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1155
+ deviceId: string;
1156
+ };
1157
+ action: "get";
1158
+ ownerKey?: string | undefined;
1159
+ } | {
1160
+ tenantId: string;
1161
+ limit: number;
1162
+ deviceId: string;
1163
+ after: string | null;
1164
+ projectId: string;
1165
+ action: "scoped-list";
1166
+ search?: string | undefined;
1167
+ mediaCategory?: "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | undefined;
1168
+ } | {
1169
+ action: "scoped-get";
1170
+ reference: {
1171
+ tenantId: string;
1172
+ projectId: string;
1173
+ fileId: string;
1174
+ versionId: string;
1175
+ checksumSha256: string;
1176
+ byteSize: number;
1177
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1178
+ deviceId: string;
1179
+ };
1180
+ } | {
1181
+ action: "usage";
1182
+ ownerKey?: string | undefined;
1183
+ } | {
1184
+ reference: {
1185
+ tenantId: string;
1186
+ projectId: string;
1187
+ fileId: string;
1188
+ versionId: string;
1189
+ checksumSha256: string;
1190
+ byteSize: number;
1191
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1192
+ deviceId: string;
1193
+ };
1194
+ offset: number;
1195
+ length: number;
1196
+ action: "read";
1197
+ ownerKey?: string | undefined;
1198
+ } | {
1199
+ command: {
1200
+ reference: {
1201
+ tenantId: string;
1202
+ projectId: string;
1203
+ fileId: string;
1204
+ versionId: string;
1205
+ checksumSha256: string;
1206
+ byteSize: number;
1207
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1208
+ deviceId: string;
1209
+ };
1210
+ requestId: string;
1211
+ expectedRevision: number;
1212
+ metadata: {
1213
+ label: string;
1214
+ } | null;
1215
+ allowInspect: boolean;
1216
+ allowPublish: boolean;
1217
+ expiresAt: string;
1218
+ };
1219
+ expectedLocalRevision: number;
1220
+ action: "access";
1221
+ ownerKey?: string | undefined;
1222
+ } | {
1223
+ reference: {
1224
+ tenantId: string;
1225
+ projectId: string;
1226
+ fileId: string;
1227
+ versionId: string;
1228
+ checksumSha256: string;
1229
+ byteSize: number;
1230
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1231
+ deviceId: string;
1232
+ };
1233
+ requestId: string;
1234
+ action: "sync";
1235
+ ownerKey?: string | undefined;
1236
+ } | {
1237
+ reference: {
1238
+ tenantId: string;
1239
+ projectId: string;
1240
+ fileId: string;
1241
+ versionId: string;
1242
+ checksumSha256: string;
1243
+ byteSize: number;
1244
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
1245
+ deviceId: string;
1246
+ };
1247
+ requestId: string;
1248
+ action: "resume-access";
1249
+ ownerKey?: string | undefined;
1250
+ } | {
1251
+ tenantId: string;
1252
+ projectId: string;
1253
+ deviceId: string;
1254
+ requestId: string;
1255
+ action: "import-receipt";
1256
+ ownerKey?: string | undefined;
1257
+ };
1258
+ } | {
1259
+ operation: "agent.discover";
1260
+ binary?: string | undefined;
1261
+ } | {
1262
+ operation: "offline.workspace";
1263
+ input: {
1264
+ action: "list" | "forget";
1265
+ key: string;
1266
+ } | {
1267
+ action: "retain";
1268
+ key: string;
1269
+ snapshot: {
1270
+ projectId: string;
1271
+ title: string;
1272
+ savedAt: string;
1273
+ expiresAt: string;
1274
+ productions: {
1275
+ id: string;
1276
+ title: string;
1277
+ }[];
1278
+ possiblyTruncated: boolean;
1279
+ };
1280
+ } | {
1281
+ action: "draft";
1282
+ key: string;
1283
+ projectId: string;
1284
+ text: string;
1285
+ expectedRevision: number;
1286
+ };
1287
+ } | {
1288
+ operation: "workspace.inspect";
1289
+ } | {
1290
+ operation: "workspace.configure";
1291
+ policy: {
1292
+ acceptNewWork: boolean;
1293
+ mode: "CONTINUOUS" | "IDLE_ONLY";
1294
+ idleAfterSeconds: number;
1295
+ maxConcurrentJobs: number;
1296
+ cpuCores: 2 | 1;
1297
+ memoryMiB: number;
1298
+ cacheQuotaBytes: number;
1299
+ };
1300
+ expectedRevision: number;
1301
+ } | {
1302
+ operation: "workspace.activity";
1303
+ idleSeconds: number;
1304
+ observedAt: string;
1305
+ } | {
1306
+ operation: "storage.clean";
1307
+ } | {
1308
+ operation: "diagnostics.read";
1309
+ } | {
1310
+ operation: "agent.grant";
1311
+ grant: {
1312
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
1313
+ binary: string;
1314
+ binaryDigest: string;
1315
+ version: "0.164.0" | "0.165.0";
1316
+ model: string;
1317
+ reviewerLabel: string;
1318
+ inference: "REMOTE_OPENAI";
1319
+ remoteUseApproved: true;
1320
+ projects: {
1321
+ tenantId: string;
1322
+ projectId: string;
1323
+ }[];
1324
+ expiresAt: string;
1325
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
1326
+ imageDisclosureApproved?: true | undefined;
1327
+ mediaDisclosureApproved?: true | undefined;
1328
+ };
1329
+ approval: string;
1330
+ } | {
1331
+ operation: "agent.probe";
1332
+ } | {
1333
+ operation: "agent.revoke";
1334
+ approval: string;
1335
+ } | {
1336
+ operation: "agent.prepare";
1337
+ snapshot: {
1338
+ basis: {
1339
+ scope: {
1340
+ tenantId: string & import("zod").$brand<"TenantId">;
1341
+ projectId: string & import("zod").$brand<"ProjectId">;
1342
+ productionId: string & import("zod").$brand<"ProductionId">;
1343
+ };
1344
+ target: {
1345
+ kind: "IMAGE";
1346
+ generationId: string;
1347
+ } | {
1348
+ kind: "VIDEO";
1349
+ generationId: string;
1350
+ } | {
1351
+ kind: "ROUGH_CUT";
1352
+ renderId: string;
1353
+ } | {
1354
+ kind: "PROGRAMMATIC";
1355
+ renderId: string;
1356
+ };
1357
+ contextFingerprint: string;
1358
+ };
1359
+ productionRevision: number;
1360
+ reviewVersion: number;
1361
+ executionClass: "LIVE" | "TEST_ONLY";
1362
+ media: {
1363
+ artifactId: string;
1364
+ representationId: string;
1365
+ checksumSha256: string;
1366
+ };
1367
+ requirements: ({
1368
+ key: string;
1369
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
1370
+ expected: string;
1371
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1372
+ scope: "TRANSITION" | "PRODUCTION";
1373
+ interval: {
1374
+ startMs: number;
1375
+ endMs: number;
1376
+ };
1377
+ shotIds: string[];
1378
+ continuity?: {
1379
+ kind: "STATE";
1380
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1381
+ entry: string;
1382
+ exit: string;
1383
+ changes?: {
1384
+ atPermille: number;
1385
+ from: string;
1386
+ to: string;
1387
+ reason: string;
1388
+ }[] | undefined;
1389
+ } | {
1390
+ kind: "TIME";
1391
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1392
+ entryMs: number;
1393
+ exitMs: number;
1394
+ jumps?: {
1395
+ atPermille: number;
1396
+ fromMs: number;
1397
+ toMs: number;
1398
+ reason: string;
1399
+ }[] | undefined;
1400
+ } | undefined;
1401
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
1402
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
1403
+ consistencySubject?: {
1404
+ id: string;
1405
+ kind: "CHARACTER" | "VOICE";
1406
+ displayName: string;
1407
+ facts: {
1408
+ dimension: string;
1409
+ value: string;
1410
+ }[];
1411
+ master: {
1412
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1413
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1414
+ checksumSha256: string;
1415
+ artifactChecksumSha256: string;
1416
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1417
+ };
1418
+ } | undefined;
1419
+ consistencyReference?: {
1420
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1421
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1422
+ checksumSha256: string;
1423
+ artifactChecksumSha256: string;
1424
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1425
+ } | undefined;
1426
+ } | {
1427
+ key: string;
1428
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
1429
+ expected: string;
1430
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1431
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
1432
+ intentPath?: string | undefined;
1433
+ continuity?: {
1434
+ kind: "STATE";
1435
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1436
+ entry: string;
1437
+ exit: string;
1438
+ changes?: {
1439
+ atPermille: number;
1440
+ from: string;
1441
+ to: string;
1442
+ reason: string;
1443
+ }[] | undefined;
1444
+ } | {
1445
+ kind: "TIME";
1446
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1447
+ entryMs: number;
1448
+ exitMs: number;
1449
+ jumps?: {
1450
+ atPermille: number;
1451
+ fromMs: number;
1452
+ toMs: number;
1453
+ reason: string;
1454
+ }[] | undefined;
1455
+ } | undefined;
1456
+ interval?: {
1457
+ startMs: number;
1458
+ endMs: number;
1459
+ } | undefined;
1460
+ } | {
1461
+ key: string;
1462
+ expected: string;
1463
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1464
+ intentPath?: string | undefined;
1465
+ })[];
1466
+ evidence?: {
1467
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1468
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
1469
+ byteSize: number;
1470
+ width: number;
1471
+ height: number;
1472
+ durationMs?: number | undefined;
1473
+ frameRate?: 30 | 24 | undefined;
1474
+ hasAudio?: boolean | undefined;
1475
+ } | undefined;
1476
+ image?: {
1477
+ contentType: "image/png";
1478
+ byteSize: number;
1479
+ width: number;
1480
+ height: number;
1481
+ } | undefined;
1482
+ };
1483
+ } | {
1484
+ operation: "agent.start";
1485
+ id: string;
1486
+ expectedRevision: number;
1487
+ approval: string;
1488
+ } | {
1489
+ operation: "agent.inspect";
1490
+ id: string;
1491
+ } | {
1492
+ operation: "runtime.status";
1493
+ includeDevice?: true | undefined;
1494
+ } | {
1495
+ operation: "runtime.doctor";
1496
+ } | {
1497
+ operation: "runtime.inventory";
1498
+ } | {
1499
+ operation: "session.issue";
1500
+ tenantId: string;
1501
+ deviceId: string;
1502
+ expiresAt: string;
1503
+ } | {
1504
+ operation: "runtime.stop";
1505
+ expectedRuntimeRevision: number;
1506
+ } | {
1507
+ operation: "execution.inspect";
1508
+ input: {
1509
+ tenantId: string;
1510
+ projectId: string;
1511
+ productionId: string;
1512
+ runtimeJobId: string;
1513
+ includeProgress?: boolean | undefined;
1514
+ };
1515
+ } | {
1516
+ operation: "execution.list";
1517
+ input: {
1518
+ tenantId: string;
1519
+ projectId: string;
1520
+ after: string | null;
1521
+ limit: number;
1522
+ includeCompleted?: boolean | undefined;
1523
+ includeProgress?: boolean | undefined;
1524
+ };
1525
+ } | {
1526
+ operation: "update.check";
1527
+ } | {
1528
+ operation: "update.prepare";
1529
+ targetVersion: string;
1530
+ expectedRuntimeRevision: number;
1531
+ } | {
1532
+ operation: "update.apply";
1533
+ planId: string;
1534
+ targetVersion: string;
1535
+ expectedRuntimeRevision: number;
1536
+ };
1537
+ availability: "AVAILABLE" | "BLOCKED";
1538
+ reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
1539
+ }[];
1540
+ deviceAuthority?: {
1541
+ tenantId: string;
1542
+ deviceId: string;
1543
+ origin: string;
1544
+ } | undefined;
1545
+ deviceCapabilities?: {
1546
+ deviceRevision: number;
1547
+ tenantMediaValidation: boolean;
1548
+ tenantMediaProcessing: boolean;
1549
+ processorCapabilities: ("KEYFRAME_GENERATE" | "VIDEO_GENERATE" | "SPEECH_SYNTHESIZE" | "SPEECH_EXTERNAL_QWEN" | "TEMPORAL_SAMPLE" | "DELIVERY_VALIDATE" | "COMPOSITION_RENDER" | "IMPORTED_VISUAL_NORMALIZE" | "SOURCE_SYNC_AUDIO" | "IMPORT_ORIGINAL" | "LOCAL_MEDIA_INSPECT" | "LOCAL_MEDIA_PUBLISH" | "IMPORT_PROJECT_SOURCE" | "REGISTER_VISUAL_SEQUENCE" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[];
1550
+ } | undefined;
1551
+ }>;
1552
+ doctor(signal?: AbortSignal): Promise<{
1553
+ mode: "INSTALLED" | "MANAGED";
1554
+ availability: "UNAVAILABLE" | "AVAILABLE";
1555
+ reason: "QUALIFIED_PROCESS_TOOLS" | "MANAGED_TOOLS_MISSING" | "TOOL_QUALIFICATION_FAILED";
1556
+ nativeExecutionReady: boolean;
1557
+ tools: {
1558
+ name: "FFMPEG" | "FFPROBE";
1559
+ path: string;
1560
+ version: string;
1561
+ digest: string;
1562
+ }[];
1563
+ executionProfiles?: ("ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2")[] | undefined;
1564
+ }>;
1565
+ inventory(signal?: AbortSignal): Promise<{
1566
+ runtimeRevision: number;
1567
+ descriptor: {
1568
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
1569
+ version: string;
1570
+ node: {
1571
+ major: 24;
1572
+ minMinor: 12;
1573
+ };
1574
+ platform: {
1575
+ os: "darwin" | "linux" | "win32";
1576
+ architecture: "x64" | "arm64";
1577
+ };
1578
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
1579
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
1580
+ journalSchema: 1;
1581
+ rendererDigest: string;
1582
+ profileDigest: string;
1583
+ compatibleRenderers?: {
1584
+ rendererDigest: string;
1585
+ profileDigest: string;
1586
+ }[] | undefined;
1587
+ };
1588
+ activeProcesses: number;
1589
+ pendingExecutions: number;
1590
+ pendingRequests: number;
1591
+ pendingRenderers: string[];
1592
+ }>;
1593
+ grantAgent(raw: unknown, approval: string): Promise<{
1594
+ configured: boolean;
1595
+ available: boolean;
1596
+ reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
1597
+ grantFingerprint: string | null;
1598
+ inference: "REMOTE_OPENAI";
1599
+ }>;
1600
+ revokeAgent(approval: string): Promise<{
1601
+ configured: boolean;
1602
+ available: boolean;
1603
+ reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
1604
+ grantFingerprint: string | null;
1605
+ inference: "REMOTE_OPENAI";
1606
+ }>;
1607
+ probeAgent(): Promise<{
1608
+ configured: boolean;
1609
+ available: boolean;
1610
+ reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
1611
+ grantFingerprint: string | null;
1612
+ inference: "REMOTE_OPENAI";
1613
+ }>;
1614
+ discoverAgent(binary?: string): Promise<{
1615
+ candidate: {
1616
+ binary: string;
1617
+ binaryDigest: string;
1618
+ version: string;
1619
+ qualified: boolean;
1620
+ } | null;
1621
+ configured: {
1622
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
1623
+ binary: string;
1624
+ binaryDigest: string;
1625
+ version: "0.164.0" | "0.165.0";
1626
+ model: string;
1627
+ reviewerLabel: string;
1628
+ inference: "REMOTE_OPENAI";
1629
+ remoteUseApproved: true;
1630
+ projects: {
1631
+ tenantId: string;
1632
+ projectId: string;
1633
+ }[];
1634
+ expiresAt: string;
1635
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
1636
+ imageDisclosureApproved?: true | undefined;
1637
+ mediaDisclosureApproved?: true | undefined;
1638
+ } | null;
1639
+ }>;
1640
+ prepareAgentReview(snapshot: LocalAgentSnapshot): Promise<{
1641
+ plan: {
1642
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
1643
+ id: string;
1644
+ grantFingerprint: string;
1645
+ snapshot: {
1646
+ basis: {
1647
+ scope: {
1648
+ tenantId: string & import("zod").$brand<"TenantId">;
1649
+ projectId: string & import("zod").$brand<"ProjectId">;
1650
+ productionId: string & import("zod").$brand<"ProductionId">;
1651
+ };
1652
+ target: {
1653
+ kind: "IMAGE";
1654
+ generationId: string;
1655
+ } | {
1656
+ kind: "VIDEO";
1657
+ generationId: string;
1658
+ } | {
1659
+ kind: "ROUGH_CUT";
1660
+ renderId: string;
1661
+ } | {
1662
+ kind: "PROGRAMMATIC";
1663
+ renderId: string;
1664
+ };
1665
+ contextFingerprint: string;
1666
+ };
1667
+ productionRevision: number;
1668
+ reviewVersion: number;
1669
+ executionClass: "LIVE" | "TEST_ONLY";
1670
+ media: {
1671
+ artifactId: string;
1672
+ representationId: string;
1673
+ checksumSha256: string;
1674
+ };
1675
+ requirements: ({
1676
+ key: string;
1677
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
1678
+ expected: string;
1679
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1680
+ scope: "TRANSITION" | "PRODUCTION";
1681
+ interval: {
1682
+ startMs: number;
1683
+ endMs: number;
1684
+ };
1685
+ shotIds: string[];
1686
+ continuity?: {
1687
+ kind: "STATE";
1688
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1689
+ entry: string;
1690
+ exit: string;
1691
+ changes?: {
1692
+ atPermille: number;
1693
+ from: string;
1694
+ to: string;
1695
+ reason: string;
1696
+ }[] | undefined;
1697
+ } | {
1698
+ kind: "TIME";
1699
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1700
+ entryMs: number;
1701
+ exitMs: number;
1702
+ jumps?: {
1703
+ atPermille: number;
1704
+ fromMs: number;
1705
+ toMs: number;
1706
+ reason: string;
1707
+ }[] | undefined;
1708
+ } | undefined;
1709
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
1710
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
1711
+ consistencySubject?: {
1712
+ id: string;
1713
+ kind: "CHARACTER" | "VOICE";
1714
+ displayName: string;
1715
+ facts: {
1716
+ dimension: string;
1717
+ value: string;
1718
+ }[];
1719
+ master: {
1720
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1721
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1722
+ checksumSha256: string;
1723
+ artifactChecksumSha256: string;
1724
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1725
+ };
1726
+ } | undefined;
1727
+ consistencyReference?: {
1728
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1729
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1730
+ checksumSha256: string;
1731
+ artifactChecksumSha256: string;
1732
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1733
+ } | undefined;
1734
+ } | {
1735
+ key: string;
1736
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
1737
+ expected: string;
1738
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1739
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
1740
+ intentPath?: string | undefined;
1741
+ continuity?: {
1742
+ kind: "STATE";
1743
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1744
+ entry: string;
1745
+ exit: string;
1746
+ changes?: {
1747
+ atPermille: number;
1748
+ from: string;
1749
+ to: string;
1750
+ reason: string;
1751
+ }[] | undefined;
1752
+ } | {
1753
+ kind: "TIME";
1754
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1755
+ entryMs: number;
1756
+ exitMs: number;
1757
+ jumps?: {
1758
+ atPermille: number;
1759
+ fromMs: number;
1760
+ toMs: number;
1761
+ reason: string;
1762
+ }[] | undefined;
1763
+ } | undefined;
1764
+ interval?: {
1765
+ startMs: number;
1766
+ endMs: number;
1767
+ } | undefined;
1768
+ } | {
1769
+ key: string;
1770
+ expected: string;
1771
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1772
+ intentPath?: string | undefined;
1773
+ })[];
1774
+ evidence?: {
1775
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1776
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
1777
+ byteSize: number;
1778
+ width: number;
1779
+ height: number;
1780
+ durationMs?: number | undefined;
1781
+ frameRate?: 30 | 24 | undefined;
1782
+ hasAudio?: boolean | undefined;
1783
+ } | undefined;
1784
+ image?: {
1785
+ contentType: "image/png";
1786
+ byteSize: number;
1787
+ width: number;
1788
+ height: number;
1789
+ } | undefined;
1790
+ };
1791
+ expiresAt: string;
1792
+ fingerprint: string;
1793
+ };
1794
+ revision: number;
1795
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
1796
+ answer: {
1797
+ summary: string;
1798
+ observations: {
1799
+ key: string;
1800
+ observed: string;
1801
+ }[];
1802
+ } | {
1803
+ summary: string;
1804
+ imageReadback: string;
1805
+ observations: {
1806
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
1807
+ confidence: "CLEAR" | "UNCERTAIN";
1808
+ observed: string;
1809
+ key: string;
1810
+ }[];
1811
+ } | null;
1812
+ provenance: {
1813
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
1814
+ binaryDigest: string;
1815
+ version: "0.164.0" | "0.165.0";
1816
+ model: string;
1817
+ reviewerLabel: string;
1818
+ inference: "REMOTE_OPENAI";
1819
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
1820
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
1821
+ };
1822
+ imageReceipt?: {
1823
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
1824
+ draftId: string;
1825
+ media: {
1826
+ artifactId: string;
1827
+ representationId: string;
1828
+ checksumSha256: string;
1829
+ };
1830
+ byteSize: number;
1831
+ contentType: "image/png";
1832
+ width: number;
1833
+ height: number;
1834
+ } | undefined;
1835
+ evidenceReceipt?: {
1836
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1837
+ draftId: string;
1838
+ media: {
1839
+ artifactId: string;
1840
+ representationId: string;
1841
+ checksumSha256: string;
1842
+ };
1843
+ ffmpegDigest: string;
1844
+ ffprobeDigest: string;
1845
+ attachment: {
1846
+ checksumSha256: string;
1847
+ byteSize: number;
1848
+ width: number;
1849
+ height: number;
1850
+ };
1851
+ timestampsMs: number[];
1852
+ audio: {
1853
+ sampleRateHz: 48000;
1854
+ channels: 1;
1855
+ samples: number;
1856
+ peak: number;
1857
+ rms: number;
1858
+ clippedSamples: number;
1859
+ } | null;
1860
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
1861
+ } | undefined;
1862
+ }>;
1863
+ startAgentReview(id: string, expectedRevision: number, approval: string): Promise<{
1864
+ plan: {
1865
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
1866
+ id: string;
1867
+ grantFingerprint: string;
1868
+ snapshot: {
1869
+ basis: {
1870
+ scope: {
1871
+ tenantId: string & import("zod").$brand<"TenantId">;
1872
+ projectId: string & import("zod").$brand<"ProjectId">;
1873
+ productionId: string & import("zod").$brand<"ProductionId">;
1874
+ };
1875
+ target: {
1876
+ kind: "IMAGE";
1877
+ generationId: string;
1878
+ } | {
1879
+ kind: "VIDEO";
1880
+ generationId: string;
1881
+ } | {
1882
+ kind: "ROUGH_CUT";
1883
+ renderId: string;
1884
+ } | {
1885
+ kind: "PROGRAMMATIC";
1886
+ renderId: string;
1887
+ };
1888
+ contextFingerprint: string;
1889
+ };
1890
+ productionRevision: number;
1891
+ reviewVersion: number;
1892
+ executionClass: "LIVE" | "TEST_ONLY";
1893
+ media: {
1894
+ artifactId: string;
1895
+ representationId: string;
1896
+ checksumSha256: string;
1897
+ };
1898
+ requirements: ({
1899
+ key: string;
1900
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
1901
+ expected: string;
1902
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1903
+ scope: "TRANSITION" | "PRODUCTION";
1904
+ interval: {
1905
+ startMs: number;
1906
+ endMs: number;
1907
+ };
1908
+ shotIds: string[];
1909
+ continuity?: {
1910
+ kind: "STATE";
1911
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1912
+ entry: string;
1913
+ exit: string;
1914
+ changes?: {
1915
+ atPermille: number;
1916
+ from: string;
1917
+ to: string;
1918
+ reason: string;
1919
+ }[] | undefined;
1920
+ } | {
1921
+ kind: "TIME";
1922
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1923
+ entryMs: number;
1924
+ exitMs: number;
1925
+ jumps?: {
1926
+ atPermille: number;
1927
+ fromMs: number;
1928
+ toMs: number;
1929
+ reason: string;
1930
+ }[] | undefined;
1931
+ } | undefined;
1932
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
1933
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
1934
+ consistencySubject?: {
1935
+ id: string;
1936
+ kind: "CHARACTER" | "VOICE";
1937
+ displayName: string;
1938
+ facts: {
1939
+ dimension: string;
1940
+ value: string;
1941
+ }[];
1942
+ master: {
1943
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1944
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1945
+ checksumSha256: string;
1946
+ artifactChecksumSha256: string;
1947
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1948
+ };
1949
+ } | undefined;
1950
+ consistencyReference?: {
1951
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1952
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
1953
+ checksumSha256: string;
1954
+ artifactChecksumSha256: string;
1955
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
1956
+ } | undefined;
1957
+ } | {
1958
+ key: string;
1959
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
1960
+ expected: string;
1961
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1962
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
1963
+ intentPath?: string | undefined;
1964
+ continuity?: {
1965
+ kind: "STATE";
1966
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1967
+ entry: string;
1968
+ exit: string;
1969
+ changes?: {
1970
+ atPermille: number;
1971
+ from: string;
1972
+ to: string;
1973
+ reason: string;
1974
+ }[] | undefined;
1975
+ } | {
1976
+ kind: "TIME";
1977
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1978
+ entryMs: number;
1979
+ exitMs: number;
1980
+ jumps?: {
1981
+ atPermille: number;
1982
+ fromMs: number;
1983
+ toMs: number;
1984
+ reason: string;
1985
+ }[] | undefined;
1986
+ } | undefined;
1987
+ interval?: {
1988
+ startMs: number;
1989
+ endMs: number;
1990
+ } | undefined;
1991
+ } | {
1992
+ key: string;
1993
+ expected: string;
1994
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1995
+ intentPath?: string | undefined;
1996
+ })[];
1997
+ evidence?: {
1998
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
1999
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
2000
+ byteSize: number;
2001
+ width: number;
2002
+ height: number;
2003
+ durationMs?: number | undefined;
2004
+ frameRate?: 30 | 24 | undefined;
2005
+ hasAudio?: boolean | undefined;
2006
+ } | undefined;
2007
+ image?: {
2008
+ contentType: "image/png";
2009
+ byteSize: number;
2010
+ width: number;
2011
+ height: number;
2012
+ } | undefined;
2013
+ };
2014
+ expiresAt: string;
2015
+ fingerprint: string;
2016
+ };
2017
+ revision: number;
2018
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
2019
+ answer: {
2020
+ summary: string;
2021
+ observations: {
2022
+ key: string;
2023
+ observed: string;
2024
+ }[];
2025
+ } | {
2026
+ summary: string;
2027
+ imageReadback: string;
2028
+ observations: {
2029
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2030
+ confidence: "CLEAR" | "UNCERTAIN";
2031
+ observed: string;
2032
+ key: string;
2033
+ }[];
2034
+ } | null;
2035
+ provenance: {
2036
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
2037
+ binaryDigest: string;
2038
+ version: "0.164.0" | "0.165.0";
2039
+ model: string;
2040
+ reviewerLabel: string;
2041
+ inference: "REMOTE_OPENAI";
2042
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
2043
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
2044
+ };
2045
+ imageReceipt?: {
2046
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
2047
+ draftId: string;
2048
+ media: {
2049
+ artifactId: string;
2050
+ representationId: string;
2051
+ checksumSha256: string;
2052
+ };
2053
+ byteSize: number;
2054
+ contentType: "image/png";
2055
+ width: number;
2056
+ height: number;
2057
+ } | undefined;
2058
+ evidenceReceipt?: {
2059
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
2060
+ draftId: string;
2061
+ media: {
2062
+ artifactId: string;
2063
+ representationId: string;
2064
+ checksumSha256: string;
2065
+ };
2066
+ ffmpegDigest: string;
2067
+ ffprobeDigest: string;
2068
+ attachment: {
2069
+ checksumSha256: string;
2070
+ byteSize: number;
2071
+ width: number;
2072
+ height: number;
2073
+ };
2074
+ timestampsMs: number[];
2075
+ audio: {
2076
+ sampleRateHz: 48000;
2077
+ channels: 1;
2078
+ samples: number;
2079
+ peak: number;
2080
+ rms: number;
2081
+ clippedSamples: number;
2082
+ } | null;
2083
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
2084
+ } | undefined;
2085
+ }>;
2086
+ stageAgentImage(id: string, bytes: Uint8Array, signal?: AbortSignal): Promise<{
2087
+ plan: {
2088
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
2089
+ id: string;
2090
+ grantFingerprint: string;
2091
+ snapshot: {
2092
+ basis: {
2093
+ scope: {
2094
+ tenantId: string & import("zod").$brand<"TenantId">;
2095
+ projectId: string & import("zod").$brand<"ProjectId">;
2096
+ productionId: string & import("zod").$brand<"ProductionId">;
2097
+ };
2098
+ target: {
2099
+ kind: "IMAGE";
2100
+ generationId: string;
2101
+ } | {
2102
+ kind: "VIDEO";
2103
+ generationId: string;
2104
+ } | {
2105
+ kind: "ROUGH_CUT";
2106
+ renderId: string;
2107
+ } | {
2108
+ kind: "PROGRAMMATIC";
2109
+ renderId: string;
2110
+ };
2111
+ contextFingerprint: string;
2112
+ };
2113
+ productionRevision: number;
2114
+ reviewVersion: number;
2115
+ executionClass: "LIVE" | "TEST_ONLY";
2116
+ media: {
2117
+ artifactId: string;
2118
+ representationId: string;
2119
+ checksumSha256: string;
2120
+ };
2121
+ requirements: ({
2122
+ key: string;
2123
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
2124
+ expected: string;
2125
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2126
+ scope: "TRANSITION" | "PRODUCTION";
2127
+ interval: {
2128
+ startMs: number;
2129
+ endMs: number;
2130
+ };
2131
+ shotIds: string[];
2132
+ continuity?: {
2133
+ kind: "STATE";
2134
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
2135
+ entry: string;
2136
+ exit: string;
2137
+ changes?: {
2138
+ atPermille: number;
2139
+ from: string;
2140
+ to: string;
2141
+ reason: string;
2142
+ }[] | undefined;
2143
+ } | {
2144
+ kind: "TIME";
2145
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
2146
+ entryMs: number;
2147
+ exitMs: number;
2148
+ jumps?: {
2149
+ atPermille: number;
2150
+ fromMs: number;
2151
+ toMs: number;
2152
+ reason: string;
2153
+ }[] | undefined;
2154
+ } | undefined;
2155
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
2156
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
2157
+ consistencySubject?: {
2158
+ id: string;
2159
+ kind: "CHARACTER" | "VOICE";
2160
+ displayName: string;
2161
+ facts: {
2162
+ dimension: string;
2163
+ value: string;
2164
+ }[];
2165
+ master: {
2166
+ artifactId: string & import("zod").$brand<"ArtifactId">;
2167
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
2168
+ checksumSha256: string;
2169
+ artifactChecksumSha256: string;
2170
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
2171
+ };
2172
+ } | undefined;
2173
+ consistencyReference?: {
2174
+ artifactId: string & import("zod").$brand<"ArtifactId">;
2175
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
2176
+ checksumSha256: string;
2177
+ artifactChecksumSha256: string;
2178
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
2179
+ } | undefined;
2180
+ } | {
2181
+ key: string;
2182
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
2183
+ expected: string;
2184
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2185
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
2186
+ intentPath?: string | undefined;
2187
+ continuity?: {
2188
+ kind: "STATE";
2189
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
2190
+ entry: string;
2191
+ exit: string;
2192
+ changes?: {
2193
+ atPermille: number;
2194
+ from: string;
2195
+ to: string;
2196
+ reason: string;
2197
+ }[] | undefined;
2198
+ } | {
2199
+ kind: "TIME";
2200
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
2201
+ entryMs: number;
2202
+ exitMs: number;
2203
+ jumps?: {
2204
+ atPermille: number;
2205
+ fromMs: number;
2206
+ toMs: number;
2207
+ reason: string;
2208
+ }[] | undefined;
2209
+ } | undefined;
2210
+ interval?: {
2211
+ startMs: number;
2212
+ endMs: number;
2213
+ } | undefined;
2214
+ } | {
2215
+ key: string;
2216
+ expected: string;
2217
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2218
+ intentPath?: string | undefined;
2219
+ })[];
2220
+ evidence?: {
2221
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
2222
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
2223
+ byteSize: number;
2224
+ width: number;
2225
+ height: number;
2226
+ durationMs?: number | undefined;
2227
+ frameRate?: 30 | 24 | undefined;
2228
+ hasAudio?: boolean | undefined;
2229
+ } | undefined;
2230
+ image?: {
2231
+ contentType: "image/png";
2232
+ byteSize: number;
2233
+ width: number;
2234
+ height: number;
2235
+ } | undefined;
2236
+ };
2237
+ expiresAt: string;
2238
+ fingerprint: string;
2239
+ };
2240
+ revision: number;
2241
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
2242
+ answer: {
2243
+ summary: string;
2244
+ observations: {
2245
+ key: string;
2246
+ observed: string;
2247
+ }[];
2248
+ } | {
2249
+ summary: string;
2250
+ imageReadback: string;
2251
+ observations: {
2252
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2253
+ confidence: "CLEAR" | "UNCERTAIN";
2254
+ observed: string;
2255
+ key: string;
2256
+ }[];
2257
+ } | null;
2258
+ provenance: {
2259
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
2260
+ binaryDigest: string;
2261
+ version: "0.164.0" | "0.165.0";
2262
+ model: string;
2263
+ reviewerLabel: string;
2264
+ inference: "REMOTE_OPENAI";
2265
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
2266
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
2267
+ };
2268
+ imageReceipt?: {
2269
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
2270
+ draftId: string;
2271
+ media: {
2272
+ artifactId: string;
2273
+ representationId: string;
2274
+ checksumSha256: string;
2275
+ };
2276
+ byteSize: number;
2277
+ contentType: "image/png";
2278
+ width: number;
2279
+ height: number;
2280
+ } | undefined;
2281
+ evidenceReceipt?: {
2282
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
2283
+ draftId: string;
2284
+ media: {
2285
+ artifactId: string;
2286
+ representationId: string;
2287
+ checksumSha256: string;
2288
+ };
2289
+ ffmpegDigest: string;
2290
+ ffprobeDigest: string;
2291
+ attachment: {
2292
+ checksumSha256: string;
2293
+ byteSize: number;
2294
+ width: number;
2295
+ height: number;
2296
+ };
2297
+ timestampsMs: number[];
2298
+ audio: {
2299
+ sampleRateHz: 48000;
2300
+ channels: 1;
2301
+ samples: number;
2302
+ peak: number;
2303
+ rms: number;
2304
+ clippedSamples: number;
2305
+ } | null;
2306
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
2307
+ } | undefined;
2308
+ }>;
2309
+ inspectAgentReview(id: string, signal?: AbortSignal): Promise<{
2310
+ plan: {
2311
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
2312
+ id: string;
2313
+ grantFingerprint: string;
2314
+ snapshot: {
2315
+ basis: {
2316
+ scope: {
2317
+ tenantId: string & import("zod").$brand<"TenantId">;
2318
+ projectId: string & import("zod").$brand<"ProjectId">;
2319
+ productionId: string & import("zod").$brand<"ProductionId">;
2320
+ };
2321
+ target: {
2322
+ kind: "IMAGE";
2323
+ generationId: string;
2324
+ } | {
2325
+ kind: "VIDEO";
2326
+ generationId: string;
2327
+ } | {
2328
+ kind: "ROUGH_CUT";
2329
+ renderId: string;
2330
+ } | {
2331
+ kind: "PROGRAMMATIC";
2332
+ renderId: string;
2333
+ };
2334
+ contextFingerprint: string;
2335
+ };
2336
+ productionRevision: number;
2337
+ reviewVersion: number;
2338
+ executionClass: "LIVE" | "TEST_ONLY";
2339
+ media: {
2340
+ artifactId: string;
2341
+ representationId: string;
2342
+ checksumSha256: string;
2343
+ };
2344
+ requirements: ({
2345
+ key: string;
2346
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
2347
+ expected: string;
2348
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2349
+ scope: "TRANSITION" | "PRODUCTION";
2350
+ interval: {
2351
+ startMs: number;
2352
+ endMs: number;
2353
+ };
2354
+ shotIds: string[];
2355
+ continuity?: {
2356
+ kind: "STATE";
2357
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
2358
+ entry: string;
2359
+ exit: string;
2360
+ changes?: {
2361
+ atPermille: number;
2362
+ from: string;
2363
+ to: string;
2364
+ reason: string;
2365
+ }[] | undefined;
2366
+ } | {
2367
+ kind: "TIME";
2368
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
2369
+ entryMs: number;
2370
+ exitMs: number;
2371
+ jumps?: {
2372
+ atPermille: number;
2373
+ fromMs: number;
2374
+ toMs: number;
2375
+ reason: string;
2376
+ }[] | undefined;
2377
+ } | undefined;
2378
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
2379
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
2380
+ consistencySubject?: {
2381
+ id: string;
2382
+ kind: "CHARACTER" | "VOICE";
2383
+ displayName: string;
2384
+ facts: {
2385
+ dimension: string;
2386
+ value: string;
2387
+ }[];
2388
+ master: {
2389
+ artifactId: string & import("zod").$brand<"ArtifactId">;
2390
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
2391
+ checksumSha256: string;
2392
+ artifactChecksumSha256: string;
2393
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
2394
+ };
2395
+ } | undefined;
2396
+ consistencyReference?: {
2397
+ artifactId: string & import("zod").$brand<"ArtifactId">;
2398
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
2399
+ checksumSha256: string;
2400
+ artifactChecksumSha256: string;
2401
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
2402
+ } | undefined;
2403
+ } | {
2404
+ key: string;
2405
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
2406
+ expected: string;
2407
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2408
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
2409
+ intentPath?: string | undefined;
2410
+ continuity?: {
2411
+ kind: "STATE";
2412
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
2413
+ entry: string;
2414
+ exit: string;
2415
+ changes?: {
2416
+ atPermille: number;
2417
+ from: string;
2418
+ to: string;
2419
+ reason: string;
2420
+ }[] | undefined;
2421
+ } | {
2422
+ kind: "TIME";
2423
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
2424
+ entryMs: number;
2425
+ exitMs: number;
2426
+ jumps?: {
2427
+ atPermille: number;
2428
+ fromMs: number;
2429
+ toMs: number;
2430
+ reason: string;
2431
+ }[] | undefined;
2432
+ } | undefined;
2433
+ interval?: {
2434
+ startMs: number;
2435
+ endMs: number;
2436
+ } | undefined;
2437
+ } | {
2438
+ key: string;
2439
+ expected: string;
2440
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2441
+ intentPath?: string | undefined;
2442
+ })[];
2443
+ evidence?: {
2444
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
2445
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
2446
+ byteSize: number;
2447
+ width: number;
2448
+ height: number;
2449
+ durationMs?: number | undefined;
2450
+ frameRate?: 30 | 24 | undefined;
2451
+ hasAudio?: boolean | undefined;
2452
+ } | undefined;
2453
+ image?: {
2454
+ contentType: "image/png";
2455
+ byteSize: number;
2456
+ width: number;
2457
+ height: number;
2458
+ } | undefined;
2459
+ };
2460
+ expiresAt: string;
2461
+ fingerprint: string;
2462
+ };
2463
+ revision: number;
2464
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
2465
+ answer: {
2466
+ summary: string;
2467
+ observations: {
2468
+ key: string;
2469
+ observed: string;
2470
+ }[];
2471
+ } | {
2472
+ summary: string;
2473
+ imageReadback: string;
2474
+ observations: {
2475
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2476
+ confidence: "CLEAR" | "UNCERTAIN";
2477
+ observed: string;
2478
+ key: string;
2479
+ }[];
2480
+ } | null;
2481
+ provenance: {
2482
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
2483
+ binaryDigest: string;
2484
+ version: "0.164.0" | "0.165.0";
2485
+ model: string;
2486
+ reviewerLabel: string;
2487
+ inference: "REMOTE_OPENAI";
2488
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
2489
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
2490
+ };
2491
+ imageReceipt?: {
2492
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
2493
+ draftId: string;
2494
+ media: {
2495
+ artifactId: string;
2496
+ representationId: string;
2497
+ checksumSha256: string;
2498
+ };
2499
+ byteSize: number;
2500
+ contentType: "image/png";
2501
+ width: number;
2502
+ height: number;
2503
+ } | undefined;
2504
+ evidenceReceipt?: {
2505
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
2506
+ draftId: string;
2507
+ media: {
2508
+ artifactId: string;
2509
+ representationId: string;
2510
+ checksumSha256: string;
2511
+ };
2512
+ ffmpegDigest: string;
2513
+ ffprobeDigest: string;
2514
+ attachment: {
2515
+ checksumSha256: string;
2516
+ byteSize: number;
2517
+ width: number;
2518
+ height: number;
2519
+ };
2520
+ timestampsMs: number[];
2521
+ audio: {
2522
+ sampleRateHz: 48000;
2523
+ channels: 1;
2524
+ samples: number;
2525
+ peak: number;
2526
+ rms: number;
2527
+ clippedSamples: number;
2528
+ } | null;
2529
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
2530
+ } | undefined;
2531
+ }>;
2532
+ executions(input: {
2533
+ tenantId: string;
2534
+ projectId: string;
2535
+ after?: string | null;
2536
+ limit?: number;
2537
+ }, signal?: AbortSignal): Promise<{
2538
+ items: {
2539
+ binding: {
2540
+ tenantId: string;
2541
+ projectId: string;
2542
+ productionId: string;
2543
+ runtimeJobId: string;
2544
+ attemptId: string;
2545
+ assignmentRevision: number;
2546
+ workerId: string;
2547
+ workFingerprint: string;
2548
+ toolchainFingerprint: string;
2549
+ };
2550
+ revision: number;
2551
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
2552
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
2553
+ progress?: {
2554
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
2555
+ downloadedBytes: number;
2556
+ sourceBytes: number;
2557
+ uploadedBytes: number;
2558
+ outputBytes: number;
2559
+ lastError: {
2560
+ code: string;
2561
+ observedAt: string;
2562
+ } | null;
2563
+ } | undefined;
2564
+ }[];
2565
+ nextCursor: string | null;
2566
+ }>;
2567
+ inspect(raw: LocalWorkScope & {
2568
+ includeProgress?: boolean | undefined;
2569
+ }, signal?: AbortSignal): Promise<{
2570
+ binding: {
2571
+ tenantId: string;
2572
+ projectId: string;
2573
+ productionId: string;
2574
+ runtimeJobId: string;
2575
+ attemptId: string;
2576
+ assignmentRevision: number;
2577
+ workerId: string;
2578
+ workFingerprint: string;
2579
+ toolchainFingerprint: string;
2580
+ };
2581
+ revision: number;
2582
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "FENCED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED";
2583
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
2584
+ progress?: {
2585
+ stage: "WAITING" | "COMPLETE" | "RECOVERY_REQUIRED" | "DOWNLOADING" | "EXECUTING" | "UPLOADING" | "AWAITING_ACCEPTANCE" | "FENCED";
2586
+ downloadedBytes: number;
2587
+ sourceBytes: number;
2588
+ uploadedBytes: number;
2589
+ outputBytes: number;
2590
+ lastError: {
2591
+ code: string;
2592
+ observedAt: string;
2593
+ } | null;
2594
+ } | undefined;
2595
+ } | null>;
2596
+ }
2597
+ export { LocalSessionConnectorSchema } from "../contracts/local-execution/index.js";
2598
+ export { NativeStudioSdkError } from "./errors.js";
2599
+ export { LocalRuntimeDescriptorSchema, LocalManagementInventorySchema, LocalSignedCatalogueSchema, LocalReleaseSchema, LocalBundledReleaseSchema, LocalUpdatePlanSchema, LocalToolChoiceSchema, LocalClientNextActionSchema, canonicalLocalJson, LocalSessionConnectorSchema as LocalConnectorSchema, } from "../contracts/local-execution/index.js";
2600
+ export type { LocalRelease, LocalSignedCatalogue, LocalUpdatePlan, LocalToolChoice, LocalRuntimeDescriptor, LocalSessionConnector, } from "../contracts/local-execution/index.js";
2601
+ export { NativeStudioLocalDeviceClient } from "./local-runtime/device-client.js";
2602
+ export { EnrollLocalDeviceSchema, RevokeLocalDeviceSchema, StartLocalPreviewSchema, StartLocalFinalRenderSchema, LocalDeviceTransportConfigurationSchema, } from "../contracts/local-execution/index.js";
2603
+ export { LocalCompositionBrowserSelectionSchema, LocalToolSelectionSchema, LocalWorkScopeSchema, } from "../contracts/local-execution/index.js";
2604
+ export { LocalExecutionListInputSchema, LocalExecutionPageSchema, } from "../contracts/local-execution/index.js";
2605
+ export { LocalMcpOutputSchemas, LocalMcpFailureSchema, } from "../contracts/local-execution/index.js";
2606
+ export { LocalDoctorReportSchema } from "../contracts/local-execution/index.js";
2607
+ export { LocalManagementCommandSchema, LocalDeviceManagementCommandSchema, LocalManagementResultSchema, LocalManagementReceiptSchema, localManagementRoutes, LocalDeviceViewSchema, LocalPreviewAdmissionSchema, LocalFinalRenderAdmissionSchema, LocalDeviceChallengeSchema, LocalDeviceSessionSchema, } from "../contracts/local-execution/index.js";
2608
+ export { LocalAgentGrantSchema, LocalAgentSnapshotSchema, localAgentSnapshotFromContext, localAgentNativeProposal, localAgentMediaSnapshot, localAgentMediaProposal, LocalAgentReviewViewSchema, LocalAgentProbeSchema, LocalAgentDiscoverySchema, } from "../contracts/local-execution/index.js";
2609
+ export { NativeStudioLocalWorkspaceClient } from "./local-runtime/workspace.js";
2610
+ export * from "./local-runtime/library.js";
2611
+ export { LocalOfflineCallSchema, LocalOfflinePageSchema, } from "../contracts/local-execution/index.js";
2612
+ export { LocalResourcePolicySchema, LocalResourceSettingsSchema, LocalWorkspaceInspectionSchema, LocalStorageInspectionSchema, LocalExecutionProgressSchema, LocalExecutionInspectInputSchema, LocalDiagnosticsSchema, } from "../contracts/local-execution/index.js";
2613
+ export { importedNormalizationValidationProfile, tenantRenderValidationProfile, whisperCppRecognitionProfile, } from "../contracts/local-execution/index.js";
2614
+ export { processorFamilies } from "../contracts/local-execution/index.js";
2615
+ export type { TenantProcessorKind } from "../contracts/local-execution/index.js";
2616
+ export * from "./local-runtime/components.js";