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

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 (206) hide show
  1. package/COMPATIBILITY.json +20 -0
  2. package/LICENSE +21 -0
  3. package/README.md +94 -2
  4. package/components/runtime.json +6 -0
  5. package/components/runtime.tgz +0 -0
  6. package/dist/BUNDLED_DEPENDENCIES.json +1 -0
  7. package/dist/_chunks/chunk-2UYKJ6YN.js +1 -0
  8. package/dist/_chunks/chunk-66CUOZVI.js +1 -0
  9. package/dist/_chunks/chunk-6NVIN2NI.js +1 -0
  10. package/dist/_chunks/chunk-7S3DJ2QE.js +1 -0
  11. package/dist/_chunks/chunk-BVSTJQJI.js +1 -0
  12. package/dist/_chunks/chunk-C33A2DW4.js +1 -0
  13. package/dist/_chunks/chunk-C753RRRA.js +1 -0
  14. package/dist/_chunks/chunk-E57YVMQ4.js +1 -0
  15. package/dist/_chunks/chunk-GJ7BZJLW.js +1 -0
  16. package/dist/_chunks/chunk-HLKERZIE.js +1 -0
  17. package/dist/_chunks/chunk-JFC6ZIGA.js +1 -0
  18. package/dist/_chunks/chunk-K6LVS2IN.js +1 -0
  19. package/dist/_chunks/chunk-KHKUJXQX.js +1 -0
  20. package/dist/_chunks/chunk-PUNG4ND7.js +1 -0
  21. package/dist/_chunks/chunk-VC3ODN3M.js +1 -0
  22. package/dist/_chunks/chunk-VDNNFVTZ.js +3 -0
  23. package/dist/_chunks/chunk-VPYAXWXY.js +1 -0
  24. package/dist/_chunks/files-FZEK2ZZJ.js +1 -0
  25. package/dist/_chunks/local-main-NLFS74Q4.js +1 -0
  26. package/dist/_chunks/local-mcp-OLHBBVNN.js +1 -0
  27. package/dist/_chunks/main-VRIQTI6R.js +2 -0
  28. package/dist/_chunks/mcp-EIMXNRH3.js +1 -0
  29. package/dist/_chunks/oauth-F7EZGVME.js +1 -0
  30. package/dist/_chunks/project-connect-MXM7IY55.js +1 -0
  31. package/dist/_chunks/src-7F6ZEU3U.js +1 -0
  32. package/dist/_chunks/stdio-main-KOGQ5OWF.js +1 -0
  33. package/dist/_types/cli/local/desktop-channel.d.ts +18 -0
  34. package/dist/_types/cli/local/desktop-contract.d.ts +281 -0
  35. package/dist/_types/cli/local/desktop-node.d.ts +1 -0
  36. package/dist/_types/cli/local/desktop-owner.d.ts +34 -0
  37. package/dist/_types/cli/local/ledger.d.ts +309 -0
  38. package/dist/_types/cli/local/manager.d.ts +620 -0
  39. package/dist/_types/cli/local/mcp-tools.d.ts +419 -0
  40. package/dist/_types/cli/local/releases.d.ts +101 -0
  41. package/dist/_types/cli/local-management.d.ts +12 -0
  42. package/dist/_types/cli/local-navigation.d.ts +3 -0
  43. package/dist/_types/contracts/accepted-shot.d.ts +27 -0
  44. package/dist/_types/contracts/accepted-visual-source.d.ts +120 -0
  45. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +749 -0
  46. package/dist/_types/contracts/agent-execution-oauth.d.ts +71 -0
  47. package/dist/_types/contracts/agent-execution-registration.d.ts +240 -0
  48. package/dist/_types/contracts/agent-execution-selection.d.ts +107 -0
  49. package/dist/_types/contracts/agent-host-execution.d.ts +706 -0
  50. package/dist/_types/contracts/agent-host-generic-transport.d.ts +12 -0
  51. package/dist/_types/contracts/agent-host.d.ts +226 -0
  52. package/dist/_types/contracts/artifact-discovery.d.ts +170 -0
  53. package/dist/_types/contracts/artifact.d.ts +188 -0
  54. package/dist/_types/contracts/audio.d.ts +331 -0
  55. package/dist/_types/contracts/brief.d.ts +178 -0
  56. package/dist/_types/contracts/caption-render.d.ts +20 -0
  57. package/dist/_types/contracts/caption-transcript.d.ts +102 -0
  58. package/dist/_types/contracts/captions.d.ts +420 -0
  59. package/dist/_types/contracts/clip-framing.d.ts +14 -0
  60. package/dist/_types/contracts/clip-transition.d.ts +6 -0
  61. package/dist/_types/contracts/composition-authoring-guide.d.ts +160 -0
  62. package/dist/_types/contracts/composition-authoring.d.ts +744 -0
  63. package/dist/_types/contracts/composition-finding-locality.d.ts +24 -0
  64. package/dist/_types/contracts/composition-frame-render.d.ts +226 -0
  65. package/dist/_types/contracts/composition-making.d.ts +390 -0
  66. package/dist/_types/contracts/composition-observation.d.ts +239 -0
  67. package/dist/_types/contracts/composition-render-base.d.ts +292 -0
  68. package/dist/_types/contracts/composition-render-observation.d.ts +278 -0
  69. package/dist/_types/contracts/composition-render.d.ts +406 -0
  70. package/dist/_types/contracts/composition-repair.d.ts +451 -0
  71. package/dist/_types/contracts/composition-source-review.d.ts +1042 -0
  72. package/dist/_types/contracts/consistency-profile.d.ts +845 -0
  73. package/dist/_types/contracts/continuity-evaluation.d.ts +48 -0
  74. package/dist/_types/contracts/delivery-completion.d.ts +210 -0
  75. package/dist/_types/contracts/delivery-manifest.d.ts +11776 -0
  76. package/dist/_types/contracts/delivery-operations.d.ts +5009 -0
  77. package/dist/_types/contracts/delivery-output-profile.d.ts +12 -0
  78. package/dist/_types/contracts/delivery-summary.d.ts +220 -0
  79. package/dist/_types/contracts/delivery-validation.d.ts +183 -0
  80. package/dist/_types/contracts/director-proposal.d.ts +1067 -0
  81. package/dist/_types/contracts/editor-intelligence.d.ts +5751 -0
  82. package/dist/_types/contracts/exploration-recommendation.d.ts +11863 -0
  83. package/dist/_types/contracts/external-agent-access.d.ts +95 -0
  84. package/dist/_types/contracts/final-ready.d.ts +301 -0
  85. package/dist/_types/contracts/final-render-profile.d.ts +59 -0
  86. package/dist/_types/contracts/final-render.d.ts +8181 -0
  87. package/dist/_types/contracts/foundation.d.ts +1 -0
  88. package/dist/_types/contracts/generation-contract.d.ts +268 -0
  89. package/dist/_types/contracts/generation-cost.d.ts +70 -0
  90. package/dist/_types/contracts/health.d.ts +6 -0
  91. package/dist/_types/contracts/human-identity.d.ts +149 -0
  92. package/dist/_types/contracts/hyperframe-profile.d.ts +5 -0
  93. package/dist/_types/contracts/ids.d.ts +41 -0
  94. package/dist/_types/contracts/index.d.ts +122 -0
  95. package/dist/_types/contracts/interface/common.d.ts +56 -0
  96. package/dist/_types/contracts/interface/execution-output.d.ts +99 -0
  97. package/dist/_types/contracts/interface/index.d.ts +7 -0
  98. package/dist/_types/contracts/interface/media-output.d.ts +62 -0
  99. package/dist/_types/contracts/interface/operation.d.ts +61 -0
  100. package/dist/_types/contracts/interface/output.d.ts +15 -0
  101. package/dist/_types/contracts/interface/production-snapshot.d.ts +832 -0
  102. package/dist/_types/contracts/interface/query.d.ts +315 -0
  103. package/dist/_types/contracts/keyframe-generation.d.ts +349 -0
  104. package/dist/_types/contracts/keyframe-reference.d.ts +31 -0
  105. package/dist/_types/contracts/keyframe-review.d.ts +753 -0
  106. package/dist/_types/contracts/lifecycle-event-projections.d.ts +191 -0
  107. package/dist/_types/contracts/lifecycle-events.d.ts +156 -0
  108. package/dist/_types/contracts/listening-evidence.d.ts +37 -0
  109. package/dist/_types/contracts/local-execution/agent-review.d.ts +560 -0
  110. package/dist/_types/contracts/local-execution/canonical.d.ts +2 -0
  111. package/dist/_types/contracts/local-execution/common.d.ts +48 -0
  112. package/dist/_types/contracts/local-execution/completion.d.ts +128 -0
  113. package/dist/_types/contracts/local-execution/device.d.ts +134 -0
  114. package/dist/_types/contracts/local-execution/index.d.ts +11 -0
  115. package/dist/_types/contracts/local-execution/ipc.d.ts +1202 -0
  116. package/dist/_types/contracts/local-execution/lifecycle.d.ts +347 -0
  117. package/dist/_types/contracts/local-execution/local-navigation.d.ts +710 -0
  118. package/dist/_types/contracts/local-execution/preview.d.ts +3663 -0
  119. package/dist/_types/contracts/local-execution/tool-selection.d.ts +15 -0
  120. package/dist/_types/contracts/local-execution/work.d.ts +3441 -0
  121. package/dist/_types/contracts/matrix-parameter-rule.d.ts +23 -0
  122. package/dist/_types/contracts/media-export.d.ts +23 -0
  123. package/dist/_types/contracts/media-observation.d.ts +1159 -0
  124. package/dist/_types/contracts/model-capability-matrix.d.ts +118 -0
  125. package/dist/_types/contracts/native-tool-authority-failure.d.ts +38 -0
  126. package/dist/_types/contracts/native-tool-authority.d.ts +110 -0
  127. package/dist/_types/contracts/native-tool-execution.d.ts +287 -0
  128. package/dist/_types/contracts/native-tool-gateway.d.ts +41 -0
  129. package/dist/_types/contracts/native-video-audio.d.ts +62 -0
  130. package/dist/_types/contracts/navigation-context.d.ts +253 -0
  131. package/dist/_types/contracts/navigation-groups.d.ts +51 -0
  132. package/dist/_types/contracts/navigation.d.ts +238 -0
  133. package/dist/_types/contracts/observation-profile.d.ts +99 -0
  134. package/dist/_types/contracts/planning-input.d.ts +177 -0
  135. package/dist/_types/contracts/principal.d.ts +26 -0
  136. package/dist/_types/contracts/production-creation.d.ts +66 -0
  137. package/dist/_types/contracts/production-termination.d.ts +51 -0
  138. package/dist/_types/contracts/production.d.ts +111 -0
  139. package/dist/_types/contracts/programmatic-composition.d.ts +762 -0
  140. package/dist/_types/contracts/programmatic-exploration.d.ts +7459 -0
  141. package/dist/_types/contracts/programmatic-video-review.d.ts +894 -0
  142. package/dist/_types/contracts/project-library.d.ts +173 -0
  143. package/dist/_types/contracts/project.d.ts +93 -0
  144. package/dist/_types/contracts/provider-catalog.d.ts +421 -0
  145. package/dist/_types/contracts/provider-models.d.ts +3380 -0
  146. package/dist/_types/contracts/provider.d.ts +142 -0
  147. package/dist/_types/contracts/reference-preview.d.ts +36 -0
  148. package/dist/_types/contracts/repair-lifecycle.d.ts +2896 -0
  149. package/dist/_types/contracts/repair-plan.d.ts +728 -0
  150. package/dist/_types/contracts/repair-strategy.d.ts +5751 -0
  151. package/dist/_types/contracts/review-intelligence-evidence.d.ts +136 -0
  152. package/dist/_types/contracts/review-intelligence-final-output.d.ts +8705 -0
  153. package/dist/_types/contracts/review-intelligence.d.ts +11543 -0
  154. package/dist/_types/contracts/review1-repair-source.d.ts +452 -0
  155. package/dist/_types/contracts/review1-repair-strategy.d.ts +491 -0
  156. package/dist/_types/contracts/review1-repair.d.ts +36 -0
  157. package/dist/_types/contracts/rough-cut-manifest.d.ts +347 -0
  158. package/dist/_types/contracts/rough-cut-profile.d.ts +37 -0
  159. package/dist/_types/contracts/rough-cut-review.d.ts +12819 -0
  160. package/dist/_types/contracts/rough-cut.d.ts +5862 -0
  161. package/dist/_types/contracts/scene-shot-plan.d.ts +882 -0
  162. package/dist/_types/contracts/sdk-discovery.d.ts +66 -0
  163. package/dist/_types/contracts/shot-direction.d.ts +113 -0
  164. package/dist/_types/contracts/shot-preparation-basis.d.ts +356 -0
  165. package/dist/_types/contracts/shot-preparation.d.ts +2285 -0
  166. package/dist/_types/contracts/shot-sound-instruction.d.ts +58 -0
  167. package/dist/_types/contracts/sound-making-plan.d.ts +1585 -0
  168. package/dist/_types/contracts/source-sound-policy.d.ts +10 -0
  169. package/dist/_types/contracts/source-workspace.d.ts +62 -0
  170. package/dist/_types/contracts/speech.d.ts +424 -0
  171. package/dist/_types/contracts/story.d.ts +98 -0
  172. package/dist/_types/contracts/temporal-evidence-operation.d.ts +379 -0
  173. package/dist/_types/contracts/temporal-evidence-reference.d.ts +18 -0
  174. package/dist/_types/contracts/temporal-evidence.d.ts +248 -0
  175. package/dist/_types/contracts/tenant.d.ts +7 -0
  176. package/dist/_types/contracts/timeline-audio.d.ts +97 -0
  177. package/dist/_types/contracts/timeline-graphics.d.ts +80 -0
  178. package/dist/_types/contracts/timeline-manifest.d.ts +702 -0
  179. package/dist/_types/contracts/timeline-source-sound.d.ts +352 -0
  180. package/dist/_types/contracts/timeline-v2.d.ts +1263 -0
  181. package/dist/_types/contracts/timeline-version-reader.d.ts +2945 -0
  182. package/dist/_types/contracts/timeline-visual-layers.d.ts +1245 -0
  183. package/dist/_types/contracts/timeline.d.ts +4942 -0
  184. package/dist/_types/contracts/transcription.d.ts +80 -0
  185. package/dist/_types/contracts/video-generation.d.ts +643 -0
  186. package/dist/_types/contracts/video-review.d.ts +1871 -0
  187. package/dist/_types/contracts/visual-exploration.d.ts +1586 -0
  188. package/dist/_types/contracts/visual-layer-render.d.ts +2777 -0
  189. package/dist/_types/contracts/visual-layer.d.ts +112 -0
  190. package/dist/_types/contracts/visual-sequence.d.ts +121 -0
  191. package/dist/_types/contracts/writer-proposal.d.ts +268 -0
  192. package/dist/_types/sdk/errors.d.ts +9 -0
  193. package/dist/_types/sdk/local-runtime/device-client.d.ts +77 -0
  194. package/dist/_types/sdk/local-runtime-client.d.ts +932 -0
  195. package/dist/entry.js +2 -0
  196. package/dist/local-management.d.ts +1 -0
  197. package/dist/local-management.js +1 -0
  198. package/dist/local-navigation.d.ts +1 -0
  199. package/dist/local-navigation.js +1 -0
  200. package/dist/native/Bootstrap.ps1 +90 -0
  201. package/dist/native/JobNative.cs +127 -0
  202. package/dist/native/JobRunner.cs +360 -0
  203. package/dist/native/NativeMain.cs +146 -0
  204. package/dist/native/PipeBridge.cs +260 -0
  205. package/dist/native/PrivateAccess.cs +152 -0
  206. package/package.json +33 -3
@@ -0,0 +1,620 @@
1
+ import { z } from "zod";
2
+ import { type LocalUpdatePlan } from "../../sdk/local-runtime-client.js";
3
+ import { InstallationLedger } from "./ledger.js";
4
+ import { type ReleaseTrust } from "./releases.js";
5
+ export declare class LocalInstallationManager {
6
+ readonly ledger: InstallationLedger;
7
+ private constructor();
8
+ static open(root: string): Promise<LocalInstallationManager>;
9
+ configure(raw: unknown, options?: {
10
+ ifAbsent?: boolean;
11
+ }): Promise<{
12
+ configured: boolean;
13
+ }>;
14
+ configuration(): Promise<{
15
+ stateDirectory: string;
16
+ catalogueUrl: string;
17
+ publicKeyFile: string;
18
+ cloudConfigFile: string | null;
19
+ notifications: boolean;
20
+ rejectedVersions: string[];
21
+ }>;
22
+ status(): Promise<{
23
+ protocol: string;
24
+ revision: number;
25
+ activeVersion: string | null;
26
+ running: null;
27
+ phase: string;
28
+ nextActions: {
29
+ surface: string;
30
+ operation: string;
31
+ availability: string;
32
+ reason: string;
33
+ }[];
34
+ entryPath?: never;
35
+ installOwner?: never;
36
+ } | {
37
+ protocol: string;
38
+ revision: number;
39
+ activeVersion: string | null;
40
+ entryPath: string | null;
41
+ installOwner: string;
42
+ phase: string;
43
+ running: unknown;
44
+ nextActions: {
45
+ surface: string;
46
+ operation: string;
47
+ availability: string;
48
+ reason: string;
49
+ }[];
50
+ }>;
51
+ reject(version: string): Promise<{
52
+ rejected: boolean;
53
+ version: string;
54
+ selectedVersion: string | null;
55
+ }>;
56
+ check(): Promise<{
57
+ installation: {
58
+ protocol: string;
59
+ revision: number;
60
+ activeVersion: string | null;
61
+ running: null;
62
+ phase: string;
63
+ nextActions: {
64
+ surface: string;
65
+ operation: string;
66
+ availability: string;
67
+ reason: string;
68
+ }[];
69
+ entryPath?: never;
70
+ installOwner?: never;
71
+ } | {
72
+ protocol: string;
73
+ revision: number;
74
+ activeVersion: string | null;
75
+ entryPath: string | null;
76
+ installOwner: string;
77
+ phase: string;
78
+ running: unknown;
79
+ nextActions: {
80
+ surface: string;
81
+ operation: string;
82
+ availability: string;
83
+ reason: string;
84
+ }[];
85
+ };
86
+ catalogueFingerprint: string;
87
+ available: {
88
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
89
+ version: string;
90
+ node: {
91
+ major: 24;
92
+ minMinor: 12;
93
+ };
94
+ platform: {
95
+ os: "darwin" | "linux" | "win32";
96
+ architecture: "x64" | "arm64";
97
+ };
98
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
99
+ workProtocol: "NVS_LOCAL_WORK_V1";
100
+ journalSchema: 1;
101
+ rendererDigest: string;
102
+ profileDigest: string;
103
+ }[];
104
+ notifications: boolean;
105
+ rejectedVersions: string[];
106
+ }>;
107
+ prepare(version: string, choice?: unknown): Promise<{
108
+ protocol: "NVS_LOCAL_UPDATE_PLAN_V1";
109
+ planId: string;
110
+ installationRevision: number;
111
+ runtimeRevision: number | null;
112
+ catalogueFingerprint: string;
113
+ release: {
114
+ descriptor: {
115
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
116
+ version: string;
117
+ node: {
118
+ major: 24;
119
+ minMinor: 12;
120
+ };
121
+ platform: {
122
+ os: "darwin" | "linux" | "win32";
123
+ architecture: "x64" | "arm64";
124
+ };
125
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
126
+ workProtocol: "NVS_LOCAL_WORK_V1";
127
+ journalSchema: 1;
128
+ rendererDigest: string;
129
+ profileDigest: string;
130
+ };
131
+ package: {
132
+ url: string;
133
+ byteSize: number;
134
+ sha512: string;
135
+ };
136
+ tools: {
137
+ ffmpeg: {
138
+ url: string;
139
+ byteSize: number;
140
+ sha512: string;
141
+ sha256: string;
142
+ };
143
+ ffprobe: {
144
+ url: string;
145
+ byteSize: number;
146
+ sha512: string;
147
+ sha256: string;
148
+ };
149
+ } | null;
150
+ };
151
+ fingerprint: string;
152
+ createdAt: string;
153
+ expiresAt: string;
154
+ trustFingerprint?: string | undefined;
155
+ toolSelection?: {
156
+ mode: "MANAGED";
157
+ } | {
158
+ ffmpeg: {
159
+ path: string;
160
+ digest: string;
161
+ };
162
+ ffprobe: {
163
+ path: string;
164
+ digest: string;
165
+ };
166
+ mode: "INSTALLED";
167
+ } | undefined;
168
+ }>;
169
+ plan(id: string): Promise<{
170
+ protocol: "NVS_LOCAL_UPDATE_PLAN_V1";
171
+ planId: string;
172
+ installationRevision: number;
173
+ runtimeRevision: number | null;
174
+ catalogueFingerprint: string;
175
+ release: {
176
+ descriptor: {
177
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
178
+ version: string;
179
+ node: {
180
+ major: 24;
181
+ minMinor: 12;
182
+ };
183
+ platform: {
184
+ os: "darwin" | "linux" | "win32";
185
+ architecture: "x64" | "arm64";
186
+ };
187
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
188
+ workProtocol: "NVS_LOCAL_WORK_V1";
189
+ journalSchema: 1;
190
+ rendererDigest: string;
191
+ profileDigest: string;
192
+ };
193
+ package: {
194
+ url: string;
195
+ byteSize: number;
196
+ sha512: string;
197
+ };
198
+ tools: {
199
+ ffmpeg: {
200
+ url: string;
201
+ byteSize: number;
202
+ sha512: string;
203
+ sha256: string;
204
+ };
205
+ ffprobe: {
206
+ url: string;
207
+ byteSize: number;
208
+ sha512: string;
209
+ sha256: string;
210
+ };
211
+ } | null;
212
+ };
213
+ fingerprint: string;
214
+ createdAt: string;
215
+ expiresAt: string;
216
+ trustFingerprint?: string | undefined;
217
+ toolSelection?: {
218
+ mode: "MANAGED";
219
+ } | {
220
+ ffmpeg: {
221
+ path: string;
222
+ digest: string;
223
+ };
224
+ ffprobe: {
225
+ path: string;
226
+ digest: string;
227
+ };
228
+ mode: "INSTALLED";
229
+ } | undefined;
230
+ }>;
231
+ private transition;
232
+ apply(id: string, approval: string): Promise<{
233
+ activated: boolean;
234
+ revision: number;
235
+ version: string;
236
+ }>;
237
+ private startSlot;
238
+ start(): Promise<{
239
+ clients: {
240
+ renewed: number;
241
+ blocked: number;
242
+ };
243
+ updateNotice: unknown;
244
+ runtimeRevision: number;
245
+ descriptor: {
246
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
247
+ version: string;
248
+ node: {
249
+ major: 24;
250
+ minMinor: 12;
251
+ };
252
+ platform: {
253
+ os: "darwin" | "linux" | "win32";
254
+ architecture: "x64" | "arm64";
255
+ };
256
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
257
+ workProtocol: "NVS_LOCAL_WORK_V1";
258
+ journalSchema: 1;
259
+ rendererDigest: string;
260
+ profileDigest: string;
261
+ };
262
+ activeProcesses: number;
263
+ pendingExecutions: number;
264
+ pendingRequests: number;
265
+ pendingRenderers: string[];
266
+ }>;
267
+ stop(): Promise<{
268
+ plan: {
269
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
270
+ id: string;
271
+ grantFingerprint: string;
272
+ snapshot: {
273
+ basis: {
274
+ scope: {
275
+ tenantId: string & z.core.$brand<"TenantId">;
276
+ projectId: string & z.core.$brand<"ProjectId">;
277
+ productionId: string & z.core.$brand<"ProductionId">;
278
+ };
279
+ contextFingerprint: string;
280
+ target: {
281
+ kind: "IMAGE";
282
+ generationId: string;
283
+ };
284
+ };
285
+ productionRevision: number;
286
+ reviewVersion: number;
287
+ executionClass: "LIVE" | "TEST_ONLY";
288
+ media: {
289
+ artifactId: string;
290
+ representationId: string;
291
+ checksumSha256: string;
292
+ };
293
+ requirements: {
294
+ key: string;
295
+ expected: string;
296
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
297
+ intentPath?: string | undefined;
298
+ }[];
299
+ image?: {
300
+ contentType: "image/png";
301
+ byteSize: number;
302
+ width: number;
303
+ height: number;
304
+ } | undefined;
305
+ };
306
+ expiresAt: string;
307
+ fingerprint: string;
308
+ };
309
+ revision: number;
310
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
311
+ answer: {
312
+ summary: string;
313
+ observations: {
314
+ key: string;
315
+ observed: string;
316
+ }[];
317
+ } | {
318
+ summary: string;
319
+ imageReadback: string;
320
+ observations: {
321
+ key: string;
322
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
323
+ confidence: "CLEAR" | "UNCERTAIN";
324
+ observed: string;
325
+ }[];
326
+ } | null;
327
+ provenance: {
328
+ adapter: "CODEX_METADATA_V1";
329
+ binaryDigest: string;
330
+ version: "0.164.0" | "0.165.0";
331
+ model: string;
332
+ reviewerLabel: string;
333
+ inference: "REMOTE_OPENAI";
334
+ evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
335
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
336
+ };
337
+ imageReceipt?: {
338
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
339
+ draftId: string;
340
+ media: {
341
+ artifactId: string;
342
+ representationId: string;
343
+ checksumSha256: string;
344
+ };
345
+ byteSize: number;
346
+ contentType: "image/png";
347
+ width: number;
348
+ height: number;
349
+ } | undefined;
350
+ } | {
351
+ protocol: "NVS_LOCAL_CONNECTOR_V1";
352
+ stateDirectory: string;
353
+ credential: string;
354
+ expiresAt: string;
355
+ projects: {
356
+ tenantId: string;
357
+ projectId: string;
358
+ }[];
359
+ } | {
360
+ protocol: "NVS_LOCAL_IPC_V1";
361
+ runtimeRevision: number;
362
+ state: "RECOVERY_REQUIRED" | "IDLE" | "EXECUTING" | "DRAINING";
363
+ journalSchemaVersion: 1;
364
+ workProtocols: "NVS_LOCAL_WORK_V1"[];
365
+ versions: {
366
+ component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
367
+ installedVersion: string | null;
368
+ runningVersion: string | null;
369
+ availableVersion: string | null;
370
+ executablePath: string | null;
371
+ installOwner: "UNKNOWN" | "PROJECT" | "MANAGED" | "NPM_GLOBAL" | "NPX" | "TARBALL";
372
+ }[];
373
+ authorizedProjects: {
374
+ tenantId: string;
375
+ projectId: string;
376
+ }[];
377
+ nextActions: {
378
+ call: {
379
+ operation: "agent.grant";
380
+ grant: {
381
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
382
+ binary: string;
383
+ binaryDigest: string;
384
+ version: "0.164.0" | "0.165.0";
385
+ model: string;
386
+ reviewerLabel: string;
387
+ inference: "REMOTE_OPENAI";
388
+ remoteUseApproved: true;
389
+ projects: {
390
+ tenantId: string;
391
+ projectId: string;
392
+ }[];
393
+ expiresAt: string;
394
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
395
+ imageDisclosureApproved?: true | undefined;
396
+ };
397
+ approval: string;
398
+ } | {
399
+ operation: "agent.probe";
400
+ } | {
401
+ operation: "agent.revoke";
402
+ approval: string;
403
+ } | {
404
+ operation: "agent.prepare";
405
+ snapshot: {
406
+ basis: {
407
+ scope: {
408
+ tenantId: string & z.core.$brand<"TenantId">;
409
+ projectId: string & z.core.$brand<"ProjectId">;
410
+ productionId: string & z.core.$brand<"ProductionId">;
411
+ };
412
+ contextFingerprint: string;
413
+ target: {
414
+ kind: "IMAGE";
415
+ generationId: string;
416
+ };
417
+ };
418
+ productionRevision: number;
419
+ reviewVersion: number;
420
+ executionClass: "LIVE" | "TEST_ONLY";
421
+ media: {
422
+ artifactId: string;
423
+ representationId: string;
424
+ checksumSha256: string;
425
+ };
426
+ requirements: {
427
+ key: string;
428
+ expected: string;
429
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
430
+ intentPath?: string | undefined;
431
+ }[];
432
+ image?: {
433
+ contentType: "image/png";
434
+ byteSize: number;
435
+ width: number;
436
+ height: number;
437
+ } | undefined;
438
+ };
439
+ } | {
440
+ operation: "agent.start";
441
+ id: string;
442
+ expectedRevision: number;
443
+ approval: string;
444
+ } | {
445
+ operation: "agent.inspect";
446
+ id: string;
447
+ } | {
448
+ operation: "runtime.status";
449
+ } | {
450
+ operation: "runtime.doctor";
451
+ } | {
452
+ operation: "runtime.inventory";
453
+ } | {
454
+ operation: "session.issue";
455
+ projects: {
456
+ tenantId: string;
457
+ projectId: string;
458
+ }[];
459
+ expiresAt: string;
460
+ } | {
461
+ operation: "runtime.stop";
462
+ expectedRuntimeRevision: number;
463
+ } | {
464
+ operation: "execution.inspect";
465
+ input: {
466
+ tenantId: string;
467
+ projectId: string;
468
+ productionId: string;
469
+ runtimeJobId: string;
470
+ };
471
+ } | {
472
+ operation: "execution.list";
473
+ input: {
474
+ tenantId: string;
475
+ projectId: string;
476
+ after: string | null;
477
+ limit: number;
478
+ };
479
+ } | {
480
+ operation: "update.check";
481
+ } | {
482
+ operation: "update.prepare";
483
+ targetVersion: string;
484
+ expectedRuntimeRevision: number;
485
+ } | {
486
+ operation: "update.apply";
487
+ planId: string;
488
+ targetVersion: string;
489
+ expectedRuntimeRevision: number;
490
+ };
491
+ availability: "AVAILABLE" | "BLOCKED";
492
+ reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
493
+ }[];
494
+ } | {
495
+ binding: {
496
+ tenantId: string;
497
+ projectId: string;
498
+ productionId: string;
499
+ runtimeJobId: string;
500
+ attemptId: string;
501
+ assignmentRevision: number;
502
+ workerId: string;
503
+ workFingerprint: string;
504
+ toolchainFingerprint: string;
505
+ };
506
+ revision: number;
507
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
508
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
509
+ } | {
510
+ configured: boolean;
511
+ available: boolean;
512
+ reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
513
+ grantFingerprint: string | null;
514
+ inference: "REMOTE_OPENAI";
515
+ } | {
516
+ runtimeRevision: number;
517
+ descriptor: {
518
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
519
+ version: string;
520
+ node: {
521
+ major: 24;
522
+ minMinor: 12;
523
+ };
524
+ platform: {
525
+ os: "darwin" | "linux" | "win32";
526
+ architecture: "x64" | "arm64";
527
+ };
528
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
529
+ workProtocol: "NVS_LOCAL_WORK_V1";
530
+ journalSchema: 1;
531
+ rendererDigest: string;
532
+ profileDigest: string;
533
+ };
534
+ activeProcesses: number;
535
+ pendingExecutions: number;
536
+ pendingRequests: number;
537
+ pendingRenderers: string[];
538
+ } | {
539
+ mode: "MANAGED" | "INSTALLED";
540
+ availability: "UNAVAILABLE" | "AVAILABLE";
541
+ reason: "QUALIFIED_PROCESS_TOOLS" | "MANAGED_TOOLS_MISSING" | "TOOL_QUALIFICATION_FAILED";
542
+ nativeExecutionReady: boolean;
543
+ tools: {
544
+ name: "FFMPEG" | "FFPROBE";
545
+ path: string;
546
+ version: string;
547
+ digest: string;
548
+ }[];
549
+ } | {
550
+ items: {
551
+ binding: {
552
+ tenantId: string;
553
+ projectId: string;
554
+ productionId: string;
555
+ runtimeJobId: string;
556
+ attemptId: string;
557
+ assignmentRevision: number;
558
+ workerId: string;
559
+ workFingerprint: string;
560
+ toolchainFingerprint: string;
561
+ };
562
+ revision: number;
563
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
564
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
565
+ }[];
566
+ nextCursor: string | null;
567
+ } | {
568
+ state: "DRAINING";
569
+ inventory?: {
570
+ runtimeRevision: number;
571
+ descriptor: {
572
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
573
+ version: string;
574
+ node: {
575
+ major: 24;
576
+ minMinor: 12;
577
+ };
578
+ platform: {
579
+ os: "darwin" | "linux" | "win32";
580
+ architecture: "x64" | "arm64";
581
+ };
582
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
583
+ workProtocol: "NVS_LOCAL_WORK_V1";
584
+ journalSchema: 1;
585
+ rendererDigest: string;
586
+ profileDigest: string;
587
+ };
588
+ activeProcesses: number;
589
+ pendingExecutions: number;
590
+ pendingRequests: number;
591
+ pendingRenderers: string[];
592
+ } | undefined;
593
+ backupPath?: string | undefined;
594
+ } | null>;
595
+ reconcile(id: string, approval: string): Promise<{
596
+ rolledBack: boolean;
597
+ revision: number;
598
+ version: string | null;
599
+ recovered?: never;
600
+ } | {
601
+ recovered: boolean;
602
+ revision: number;
603
+ version: string;
604
+ rolledBack?: never;
605
+ }>;
606
+ grant(raw: unknown, output: string): Promise<{
607
+ granted: boolean;
608
+ projects: {
609
+ tenantId: string;
610
+ projectId: string;
611
+ }[];
612
+ expiresAt: string;
613
+ }>;
614
+ reconnect(): Promise<{
615
+ renewed: number;
616
+ blocked: number;
617
+ }>;
618
+ }
619
+ export type LocalManagerTrust = ReleaseTrust;
620
+ export type LocalManagerPlan = LocalUpdatePlan;