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

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 +77 -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-25EDDZQA.js +1 -0
  8. package/dist/_chunks/chunk-2UYKJ6YN.js +1 -0
  9. package/dist/_chunks/chunk-6NVIN2NI.js +1 -0
  10. package/dist/_chunks/chunk-E57YVMQ4.js +1 -0
  11. package/dist/_chunks/chunk-EAZKDCLD.js +1 -0
  12. package/dist/_chunks/chunk-G42IS5JF.js +1 -0
  13. package/dist/_chunks/chunk-GIEYSDCG.js +1 -0
  14. package/dist/_chunks/chunk-GJ7BZJLW.js +1 -0
  15. package/dist/_chunks/chunk-HLKERZIE.js +1 -0
  16. package/dist/_chunks/chunk-JFC6ZIGA.js +1 -0
  17. package/dist/_chunks/chunk-MSOMVWKN.js +1 -0
  18. package/dist/_chunks/chunk-PUNG4ND7.js +1 -0
  19. package/dist/_chunks/chunk-QC7RLTGU.js +1 -0
  20. package/dist/_chunks/chunk-RUMDDTON.js +1 -0
  21. package/dist/_chunks/chunk-U2UKGYGF.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-TBJVDQWU.js +1 -0
  25. package/dist/_chunks/local-main-SOERK22D.js +1 -0
  26. package/dist/_chunks/local-mcp-JLPXXIDW.js +1 -0
  27. package/dist/_chunks/main-4SNF5EKE.js +2 -0
  28. package/dist/_chunks/mcp-EIMXNRH3.js +1 -0
  29. package/dist/_chunks/oauth-257CEUQH.js +1 -0
  30. package/dist/_chunks/project-connect-6MH2QG6G.js +1 -0
  31. package/dist/_chunks/src-7F6ZEU3U.js +1 -0
  32. package/dist/_chunks/stdio-main-JEADWO7U.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 +208 -0
  35. package/dist/_types/cli/local/desktop-node.d.ts +1 -0
  36. package/dist/_types/cli/local/desktop-owner.d.ts +32 -0
  37. package/dist/_types/cli/local/ledger.d.ts +309 -0
  38. package/dist/_types/cli/local/manager.d.ts +592 -0
  39. package/dist/_types/cli/local/mcp-tools.d.ts +419 -0
  40. package/dist/_types/cli/local/releases.d.ts +100 -0
  41. package/dist/_types/cli/local-management.d.ts +11 -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 +319 -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,592 @@
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): 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
+ }>;
155
+ plan(id: string): Promise<{
156
+ protocol: "NVS_LOCAL_UPDATE_PLAN_V1";
157
+ planId: string;
158
+ installationRevision: number;
159
+ runtimeRevision: number | null;
160
+ catalogueFingerprint: string;
161
+ release: {
162
+ descriptor: {
163
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
164
+ version: string;
165
+ node: {
166
+ major: 24;
167
+ minMinor: 12;
168
+ };
169
+ platform: {
170
+ os: "darwin" | "linux" | "win32";
171
+ architecture: "x64" | "arm64";
172
+ };
173
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
174
+ workProtocol: "NVS_LOCAL_WORK_V1";
175
+ journalSchema: 1;
176
+ rendererDigest: string;
177
+ profileDigest: string;
178
+ };
179
+ package: {
180
+ url: string;
181
+ byteSize: number;
182
+ sha512: string;
183
+ };
184
+ tools: {
185
+ ffmpeg: {
186
+ url: string;
187
+ byteSize: number;
188
+ sha512: string;
189
+ sha256: string;
190
+ };
191
+ ffprobe: {
192
+ url: string;
193
+ byteSize: number;
194
+ sha512: string;
195
+ sha256: string;
196
+ };
197
+ } | null;
198
+ };
199
+ fingerprint: string;
200
+ createdAt: string;
201
+ expiresAt: string;
202
+ }>;
203
+ private transition;
204
+ apply(id: string, approval: string): Promise<{
205
+ activated: boolean;
206
+ revision: number;
207
+ version: string;
208
+ }>;
209
+ private startSlot;
210
+ start(): Promise<{
211
+ clients: {
212
+ renewed: number;
213
+ blocked: number;
214
+ };
215
+ updateNotice: unknown;
216
+ runtimeRevision: number;
217
+ descriptor: {
218
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
219
+ version: string;
220
+ node: {
221
+ major: 24;
222
+ minMinor: 12;
223
+ };
224
+ platform: {
225
+ os: "darwin" | "linux" | "win32";
226
+ architecture: "x64" | "arm64";
227
+ };
228
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
229
+ workProtocol: "NVS_LOCAL_WORK_V1";
230
+ journalSchema: 1;
231
+ rendererDigest: string;
232
+ profileDigest: string;
233
+ };
234
+ activeProcesses: number;
235
+ pendingExecutions: number;
236
+ pendingRequests: number;
237
+ pendingRenderers: string[];
238
+ }>;
239
+ stop(): Promise<{
240
+ plan: {
241
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1";
242
+ id: string;
243
+ grantFingerprint: string;
244
+ snapshot: {
245
+ basis: {
246
+ scope: {
247
+ tenantId: string & z.core.$brand<"TenantId">;
248
+ projectId: string & z.core.$brand<"ProjectId">;
249
+ productionId: string & z.core.$brand<"ProductionId">;
250
+ };
251
+ contextFingerprint: string;
252
+ target: {
253
+ kind: "IMAGE";
254
+ generationId: string;
255
+ };
256
+ };
257
+ productionRevision: number;
258
+ reviewVersion: number;
259
+ executionClass: "LIVE" | "TEST_ONLY";
260
+ media: {
261
+ artifactId: string;
262
+ representationId: string;
263
+ checksumSha256: string;
264
+ };
265
+ requirements: {
266
+ key: string;
267
+ expected: string;
268
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
269
+ intentPath?: string | undefined;
270
+ }[];
271
+ image?: {
272
+ contentType: "image/png";
273
+ byteSize: number;
274
+ width: number;
275
+ height: number;
276
+ } | undefined;
277
+ };
278
+ expiresAt: string;
279
+ fingerprint: string;
280
+ };
281
+ revision: number;
282
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
283
+ answer: {
284
+ summary: string;
285
+ observations: {
286
+ key: string;
287
+ observed: string;
288
+ }[];
289
+ } | {
290
+ summary: string;
291
+ imageReadback: string;
292
+ observations: {
293
+ key: string;
294
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
295
+ confidence: "CLEAR" | "UNCERTAIN";
296
+ observed: string;
297
+ }[];
298
+ } | null;
299
+ provenance: {
300
+ adapter: "CODEX_METADATA_V1";
301
+ binaryDigest: string;
302
+ version: "0.164.0" | "0.165.0";
303
+ model: string;
304
+ reviewerLabel: string;
305
+ inference: "REMOTE_OPENAI";
306
+ evidence: "IMAGE_PIXELS" | "METADATA_ONLY";
307
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
308
+ };
309
+ imageReceipt?: {
310
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
311
+ draftId: string;
312
+ media: {
313
+ artifactId: string;
314
+ representationId: string;
315
+ checksumSha256: string;
316
+ };
317
+ byteSize: number;
318
+ contentType: "image/png";
319
+ width: number;
320
+ height: number;
321
+ } | undefined;
322
+ } | {
323
+ protocol: "NVS_LOCAL_CONNECTOR_V1";
324
+ stateDirectory: string;
325
+ credential: string;
326
+ expiresAt: string;
327
+ projects: {
328
+ tenantId: string;
329
+ projectId: string;
330
+ }[];
331
+ } | {
332
+ protocol: "NVS_LOCAL_IPC_V1";
333
+ runtimeRevision: number;
334
+ state: "RECOVERY_REQUIRED" | "IDLE" | "EXECUTING" | "DRAINING";
335
+ journalSchemaVersion: 1;
336
+ workProtocols: "NVS_LOCAL_WORK_V1"[];
337
+ versions: {
338
+ component: "CLI" | "SDK" | "MCP" | "RUNTIME" | "MEDIA_TOOLS";
339
+ installedVersion: string | null;
340
+ runningVersion: string | null;
341
+ availableVersion: string | null;
342
+ executablePath: string | null;
343
+ installOwner: "UNKNOWN" | "PROJECT" | "NPM_GLOBAL" | "NPX" | "MANAGED" | "TARBALL";
344
+ }[];
345
+ authorizedProjects: {
346
+ tenantId: string;
347
+ projectId: string;
348
+ }[];
349
+ nextActions: {
350
+ call: {
351
+ operation: "agent.grant";
352
+ grant: {
353
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
354
+ binary: string;
355
+ binaryDigest: string;
356
+ version: "0.164.0" | "0.165.0";
357
+ model: string;
358
+ reviewerLabel: string;
359
+ inference: "REMOTE_OPENAI";
360
+ remoteUseApproved: true;
361
+ projects: {
362
+ tenantId: string;
363
+ projectId: string;
364
+ }[];
365
+ expiresAt: string;
366
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
367
+ imageDisclosureApproved?: true | undefined;
368
+ };
369
+ approval: string;
370
+ } | {
371
+ operation: "agent.probe";
372
+ } | {
373
+ operation: "agent.revoke";
374
+ approval: string;
375
+ } | {
376
+ operation: "agent.prepare";
377
+ snapshot: {
378
+ basis: {
379
+ scope: {
380
+ tenantId: string & z.core.$brand<"TenantId">;
381
+ projectId: string & z.core.$brand<"ProjectId">;
382
+ productionId: string & z.core.$brand<"ProductionId">;
383
+ };
384
+ contextFingerprint: string;
385
+ target: {
386
+ kind: "IMAGE";
387
+ generationId: string;
388
+ };
389
+ };
390
+ productionRevision: number;
391
+ reviewVersion: number;
392
+ executionClass: "LIVE" | "TEST_ONLY";
393
+ media: {
394
+ artifactId: string;
395
+ representationId: string;
396
+ checksumSha256: string;
397
+ };
398
+ requirements: {
399
+ key: string;
400
+ expected: string;
401
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
402
+ intentPath?: string | undefined;
403
+ }[];
404
+ image?: {
405
+ contentType: "image/png";
406
+ byteSize: number;
407
+ width: number;
408
+ height: number;
409
+ } | undefined;
410
+ };
411
+ } | {
412
+ operation: "agent.start";
413
+ id: string;
414
+ expectedRevision: number;
415
+ approval: string;
416
+ } | {
417
+ operation: "agent.inspect";
418
+ id: string;
419
+ } | {
420
+ operation: "runtime.status";
421
+ } | {
422
+ operation: "runtime.doctor";
423
+ } | {
424
+ operation: "runtime.inventory";
425
+ } | {
426
+ operation: "session.issue";
427
+ projects: {
428
+ tenantId: string;
429
+ projectId: string;
430
+ }[];
431
+ expiresAt: string;
432
+ } | {
433
+ operation: "runtime.stop";
434
+ expectedRuntimeRevision: number;
435
+ } | {
436
+ operation: "execution.inspect";
437
+ input: {
438
+ tenantId: string;
439
+ projectId: string;
440
+ productionId: string;
441
+ runtimeJobId: string;
442
+ };
443
+ } | {
444
+ operation: "execution.list";
445
+ input: {
446
+ tenantId: string;
447
+ projectId: string;
448
+ after: string | null;
449
+ limit: number;
450
+ };
451
+ } | {
452
+ operation: "update.check";
453
+ } | {
454
+ operation: "update.prepare";
455
+ targetVersion: string;
456
+ expectedRuntimeRevision: number;
457
+ } | {
458
+ operation: "update.apply";
459
+ planId: string;
460
+ targetVersion: string;
461
+ expectedRuntimeRevision: number;
462
+ };
463
+ availability: "AVAILABLE" | "BLOCKED";
464
+ reason: "READY" | "INSTALL_REQUIRED" | "AUTHORIZATION_REQUIRED" | "VERSION_INCOMPATIBLE" | "UPDATE_AVAILABLE" | "RECOVERY_REQUIRED";
465
+ }[];
466
+ } | {
467
+ binding: {
468
+ tenantId: string;
469
+ projectId: string;
470
+ productionId: string;
471
+ runtimeJobId: string;
472
+ attemptId: string;
473
+ assignmentRevision: number;
474
+ workerId: string;
475
+ workFingerprint: string;
476
+ toolchainFingerprint: string;
477
+ };
478
+ revision: number;
479
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
480
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
481
+ } | {
482
+ configured: boolean;
483
+ available: boolean;
484
+ reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
485
+ grantFingerprint: string | null;
486
+ inference: "REMOTE_OPENAI";
487
+ } | {
488
+ runtimeRevision: number;
489
+ descriptor: {
490
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
491
+ version: string;
492
+ node: {
493
+ major: 24;
494
+ minMinor: 12;
495
+ };
496
+ platform: {
497
+ os: "darwin" | "linux" | "win32";
498
+ architecture: "x64" | "arm64";
499
+ };
500
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
501
+ workProtocol: "NVS_LOCAL_WORK_V1";
502
+ journalSchema: 1;
503
+ rendererDigest: string;
504
+ profileDigest: string;
505
+ };
506
+ activeProcesses: number;
507
+ pendingExecutions: number;
508
+ pendingRequests: number;
509
+ pendingRenderers: string[];
510
+ } | {
511
+ mode: "MANAGED" | "INSTALLED";
512
+ availability: "UNAVAILABLE" | "AVAILABLE";
513
+ reason: "QUALIFIED_PROCESS_TOOLS" | "MANAGED_TOOLS_MISSING" | "TOOL_QUALIFICATION_FAILED";
514
+ nativeExecutionReady: boolean;
515
+ tools: {
516
+ name: "FFMPEG" | "FFPROBE";
517
+ path: string;
518
+ version: string;
519
+ digest: string;
520
+ }[];
521
+ } | {
522
+ items: {
523
+ binding: {
524
+ tenantId: string;
525
+ projectId: string;
526
+ productionId: string;
527
+ runtimeJobId: string;
528
+ attemptId: string;
529
+ assignmentRevision: number;
530
+ workerId: string;
531
+ workFingerprint: string;
532
+ toolchainFingerprint: string;
533
+ };
534
+ revision: number;
535
+ phase: "RUNNING" | "RECOVERY_REQUIRED" | "STAGED" | "OUTPUT_PENDING" | "RECEIPT_RECORDED" | "FENCED";
536
+ checkpoint: "ADOPTED" | "SOURCES_READY" | "PROCESS_STARTED" | "OUTPUT_STAGED";
537
+ }[];
538
+ nextCursor: string | null;
539
+ } | {
540
+ state: "DRAINING";
541
+ inventory?: {
542
+ runtimeRevision: number;
543
+ descriptor: {
544
+ protocol: "NVS_RUNTIME_DESCRIPTOR_V1";
545
+ version: string;
546
+ node: {
547
+ major: 24;
548
+ minMinor: 12;
549
+ };
550
+ platform: {
551
+ os: "darwin" | "linux" | "win32";
552
+ architecture: "x64" | "arm64";
553
+ };
554
+ ipcProtocol: "NVS_LOCAL_IPC_V1";
555
+ workProtocol: "NVS_LOCAL_WORK_V1";
556
+ journalSchema: 1;
557
+ rendererDigest: string;
558
+ profileDigest: string;
559
+ };
560
+ activeProcesses: number;
561
+ pendingExecutions: number;
562
+ pendingRequests: number;
563
+ pendingRenderers: string[];
564
+ } | undefined;
565
+ backupPath?: string | undefined;
566
+ } | null>;
567
+ reconcile(id: string, approval: string): Promise<{
568
+ rolledBack: boolean;
569
+ revision: number;
570
+ version: string | null;
571
+ recovered?: never;
572
+ } | {
573
+ recovered: boolean;
574
+ revision: number;
575
+ version: string;
576
+ rolledBack?: never;
577
+ }>;
578
+ grant(raw: unknown, output: string): Promise<{
579
+ granted: boolean;
580
+ projects: {
581
+ tenantId: string;
582
+ projectId: string;
583
+ }[];
584
+ expiresAt: string;
585
+ }>;
586
+ reconnect(): Promise<{
587
+ renewed: number;
588
+ blocked: number;
589
+ }>;
590
+ }
591
+ export type LocalManagerTrust = ReleaseTrust;
592
+ export type LocalManagerPlan = LocalUpdatePlan;