@nativestudio/cli 0.3.0-rc.1 → 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 (185) hide show
  1. package/COMPATIBILITY.json +33 -8
  2. package/LICENSE +201 -21
  3. package/components/runtime.json +29 -4
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/chunk-37PAJCKA.js +1 -0
  6. package/dist/_chunks/{chunk-G42IS5JF.js → chunk-3AVC742O.js} +1 -1
  7. package/dist/_chunks/chunk-4U4Y2K73.js +1 -0
  8. package/dist/_chunks/chunk-65FQPXKC.js +1 -0
  9. package/dist/_chunks/chunk-6DVZBKNV.js +1 -0
  10. package/dist/_chunks/{chunk-25EDDZQA.js → chunk-6LU6GJKW.js} +1 -1
  11. package/dist/_chunks/chunk-6N433ZWR.js +1 -0
  12. package/dist/_chunks/chunk-EGUJ2YRX.js +1 -0
  13. package/dist/_chunks/{chunk-MSOMVWKN.js → chunk-FU3524Z6.js} +1 -1
  14. package/dist/_chunks/chunk-GZBWA4YN.js +1 -0
  15. package/dist/_chunks/chunk-HR34UMPP.js +1 -0
  16. package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
  17. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  18. package/dist/_chunks/chunk-L543FEDK.js +1 -0
  19. package/dist/_chunks/chunk-LISB5W7B.js +1 -0
  20. package/dist/_chunks/chunk-LUAH3KAS.js +1 -0
  21. package/dist/_chunks/chunk-M2KVQQ4X.js +1 -0
  22. package/dist/_chunks/chunk-ODGPV7MM.js +1 -0
  23. package/dist/_chunks/chunk-PUBMDP4E.js +1 -0
  24. package/dist/_chunks/chunk-Q57YFNK5.js +1 -0
  25. package/dist/_chunks/chunk-QAJH4RJQ.js +1 -0
  26. package/dist/_chunks/chunk-WFRRNWO5.js +1 -0
  27. package/dist/_chunks/connect-5YMO6MAR.js +1 -0
  28. package/dist/_chunks/device-management-2OTGEBJQ.js +1 -0
  29. package/dist/_chunks/device-preflight-XPHFZGLO.js +1 -0
  30. package/dist/_chunks/devices-inventory-VWNTU5TE.js +1 -0
  31. package/dist/_chunks/devices-main-VQ4APRVS.js +1 -0
  32. package/dist/_chunks/{files-TBJVDQWU.js → files-TTIQ7LYJ.js} +1 -1
  33. package/dist/_chunks/host-main-H7DPLV7B.js +1 -0
  34. package/dist/_chunks/http-profile-MNJX6OXO.js +1 -0
  35. package/dist/_chunks/library-main-SAC3V2ML.js +1 -0
  36. package/dist/_chunks/local-main-D6B3APK6.js +1 -0
  37. package/dist/_chunks/local-mcp-ONCANLPH.js +1 -0
  38. package/dist/_chunks/main-PW6HB3NC.js +2 -0
  39. package/dist/_chunks/mcp-ZIGBYFUW.js +1 -0
  40. package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
  41. package/dist/_chunks/render-main-GYWKP72O.js +1 -0
  42. package/dist/_chunks/source-import-BC5GNCUZ.js +1 -0
  43. package/dist/_chunks/src-R6DNU336.js +1 -0
  44. package/dist/_chunks/{stdio-main-JEADWO7U.js → stdio-main-RIJS5REB.js} +1 -1
  45. package/dist/_chunks/workspace-main-GNSKHKBG.js +1 -0
  46. package/dist/_types/cli/local/desktop-contract.d.ts +1969 -1
  47. package/dist/_types/cli/local/desktop-device-contract.d.ts +779 -0
  48. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  49. package/dist/_types/cli/local/desktop-device-owner.d.ts +244 -0
  50. package/dist/_types/cli/local/desktop-device-state.d.ts +397 -0
  51. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  52. package/dist/_types/cli/local/desktop-owner.d.ts +735 -1
  53. package/dist/_types/cli/local/ledger.d.ts +64 -10
  54. package/dist/_types/cli/local/manager.d.ts +1146 -43
  55. package/dist/_types/cli/local/mcp-tools.d.ts +287 -46
  56. package/dist/_types/cli/local/releases.d.ts +28 -5
  57. package/dist/_types/cli/local-management.d.ts +5 -0
  58. package/dist/_types/cli/local-navigation.d.ts +1 -0
  59. package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
  60. package/dist/_types/contracts/audio.d.ts +4 -0
  61. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  62. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  63. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  64. package/dist/_types/contracts/composition-render.d.ts +8 -8
  65. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  66. package/dist/_types/contracts/composition-source-review.d.ts +12 -12
  67. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
  68. package/dist/_types/contracts/delivery-operations.d.ts +51 -3909
  69. package/dist/_types/contracts/delivery-summary.d.ts +2 -2
  70. package/dist/_types/contracts/delivery-validation.d.ts +23 -0
  71. package/dist/_types/contracts/device-render.d.ts +77 -0
  72. package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
  73. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
  74. package/dist/_types/contracts/external-agent-access.d.ts +4 -6
  75. package/dist/_types/contracts/final-ready.d.ts +22 -22
  76. package/dist/_types/contracts/final-render.d.ts +1569 -6940
  77. package/dist/_types/contracts/human-identity.d.ts +13 -0
  78. package/dist/_types/contracts/index.d.ts +4 -0
  79. package/dist/_types/contracts/interface/media-output.d.ts +28 -0
  80. package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
  81. package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
  82. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  83. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  84. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  85. package/dist/_types/contracts/local-execution/agent-review.d.ts +496 -64
  86. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  87. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  88. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  89. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  90. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  91. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  92. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  93. package/dist/_types/contracts/local-execution/device.d.ts +19 -51
  94. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  95. package/dist/_types/contracts/local-execution/index.d.ts +26 -0
  96. package/dist/_types/contracts/local-execution/ipc.d.ts +2756 -228
  97. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  98. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  99. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  100. package/dist/_types/contracts/local-execution/lifecycle.d.ts +242 -42
  101. package/dist/_types/contracts/local-execution/local-navigation.d.ts +275 -56
  102. package/dist/_types/contracts/local-execution/management.d.ts +400 -0
  103. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  104. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  105. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  106. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  107. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  108. package/dist/_types/contracts/local-execution/preview.d.ts +144 -3564
  109. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  110. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  111. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  112. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  113. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  114. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  115. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  116. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  117. package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
  118. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  119. package/dist/_types/contracts/local-execution/work.d.ts +111 -3403
  120. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  121. package/dist/_types/contracts/media-category.d.ts +11 -0
  122. package/dist/_types/contracts/media-observation.d.ts +929 -8
  123. package/dist/_types/contracts/navigation.d.ts +25 -15
  124. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  125. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  126. package/dist/_types/contracts/programmatic-exploration.d.ts +348 -5985
  127. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  128. package/dist/_types/contracts/provider-models.d.ts +16 -8
  129. package/dist/_types/contracts/provider.d.ts +66 -1
  130. package/dist/_types/contracts/reference-preview.d.ts +19 -0
  131. package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
  132. package/dist/_types/contracts/repair-plan.d.ts +16 -98
  133. package/dist/_types/contracts/repair-strategy.d.ts +162 -4481
  134. package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8139
  135. package/dist/_types/contracts/review-intelligence.d.ts +450 -11420
  136. package/dist/_types/contracts/rough-cut-manifest.d.ts +8 -3
  137. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  138. package/dist/_types/contracts/rough-cut-review.d.ts +134 -12494
  139. package/dist/_types/contracts/rough-cut.d.ts +1073 -5675
  140. package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
  141. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  142. package/dist/_types/contracts/speech.d.ts +149 -0
  143. package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
  144. package/dist/_types/contracts/timeline-audio.d.ts +1 -0
  145. package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
  146. package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
  147. package/dist/_types/contracts/timeline-v2.d.ts +4 -0
  148. package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
  149. package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
  150. package/dist/_types/contracts/timeline.d.ts +50 -4850
  151. package/dist/_types/contracts/transcription.d.ts +1 -1
  152. package/dist/_types/contracts/video-generation.d.ts +33 -0
  153. package/dist/_types/contracts/visual-layer-render.d.ts +58 -15
  154. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  155. package/dist/_types/contracts/workspace.d.ts +32 -0
  156. package/dist/_types/sdk/errors.d.ts +8 -3
  157. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  158. package/dist/_types/sdk/local-runtime/device-client.d.ts +127 -17
  159. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  160. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  161. package/dist/_types/sdk/local-runtime-client.d.ts +1773 -89
  162. package/dist/entry.js +1 -1
  163. package/dist/local-management.js +1 -1
  164. package/dist/local-navigation.js +1 -1
  165. package/dist/native/JobNative.cs +10 -0
  166. package/dist/native/JobRunner.cs +24 -3
  167. package/dist/native/NativeMain.cs +15 -0
  168. package/package.json +2 -8
  169. package/README.md +0 -78
  170. package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
  171. package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
  172. package/dist/_chunks/chunk-EAZKDCLD.js +0 -1
  173. package/dist/_chunks/chunk-GIEYSDCG.js +0 -1
  174. package/dist/_chunks/chunk-GJ7BZJLW.js +0 -1
  175. package/dist/_chunks/chunk-HLKERZIE.js +0 -1
  176. package/dist/_chunks/chunk-QC7RLTGU.js +0 -1
  177. package/dist/_chunks/chunk-RUMDDTON.js +0 -1
  178. package/dist/_chunks/chunk-U2UKGYGF.js +0 -1
  179. package/dist/_chunks/local-main-SOERK22D.js +0 -1
  180. package/dist/_chunks/local-mcp-JLPXXIDW.js +0 -1
  181. package/dist/_chunks/main-4SNF5EKE.js +0 -2
  182. package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
  183. package/dist/_chunks/oauth-257CEUQH.js +0 -1
  184. package/dist/_chunks/project-connect-6MH2QG6G.js +0 -1
  185. package/dist/_chunks/src-7F6ZEU3U.js +0 -1
@@ -20,10 +20,17 @@ declare const slotSchema: z.ZodObject<{
20
20
  }>;
21
21
  }, z.core.$strict>;
22
22
  ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
23
- workProtocol: z.ZodLiteral<"NVS_LOCAL_WORK_V1">;
23
+ workProtocol: z.ZodEnum<{
24
+ NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
25
+ NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
26
+ }>;
24
27
  journalSchema: z.ZodLiteral<1>;
25
28
  rendererDigest: z.ZodString;
26
29
  profileDigest: z.ZodString;
30
+ compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
+ rendererDigest: z.ZodString;
32
+ profileDigest: z.ZodString;
33
+ }, z.core.$strict>>>;
27
34
  }, z.core.$strict>;
28
35
  toolsConfigPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
29
36
  files: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -51,10 +58,17 @@ export declare const installationSchema: z.ZodObject<{
51
58
  }>;
52
59
  }, z.core.$strict>;
53
60
  ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
54
- workProtocol: z.ZodLiteral<"NVS_LOCAL_WORK_V1">;
61
+ workProtocol: z.ZodEnum<{
62
+ NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
63
+ NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
64
+ }>;
55
65
  journalSchema: z.ZodLiteral<1>;
56
66
  rendererDigest: z.ZodString;
57
67
  profileDigest: z.ZodString;
68
+ compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ rendererDigest: z.ZodString;
70
+ profileDigest: z.ZodString;
71
+ }, z.core.$strict>>>;
58
72
  }, z.core.$strict>;
59
73
  toolsConfigPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
60
74
  files: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -92,10 +106,17 @@ export declare const installationSchema: z.ZodObject<{
92
106
  }>;
93
107
  }, z.core.$strict>;
94
108
  ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
95
- workProtocol: z.ZodLiteral<"NVS_LOCAL_WORK_V1">;
109
+ workProtocol: z.ZodEnum<{
110
+ NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
111
+ NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
112
+ }>;
96
113
  journalSchema: z.ZodLiteral<1>;
97
114
  rendererDigest: z.ZodString;
98
115
  profileDigest: z.ZodString;
116
+ compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
117
+ rendererDigest: z.ZodString;
118
+ profileDigest: z.ZodString;
119
+ }, z.core.$strict>>>;
99
120
  }, z.core.$strict>;
100
121
  toolsConfigPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
101
122
  files: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -121,10 +142,17 @@ export declare const installationSchema: z.ZodObject<{
121
142
  }>;
122
143
  }, z.core.$strict>;
123
144
  ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
124
- workProtocol: z.ZodLiteral<"NVS_LOCAL_WORK_V1">;
145
+ workProtocol: z.ZodEnum<{
146
+ NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
147
+ NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
148
+ }>;
125
149
  journalSchema: z.ZodLiteral<1>;
126
150
  rendererDigest: z.ZodString;
127
151
  profileDigest: z.ZodString;
152
+ compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
153
+ rendererDigest: z.ZodString;
154
+ profileDigest: z.ZodString;
155
+ }, z.core.$strict>>>;
128
156
  }, z.core.$strict>;
129
157
  toolsConfigPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
130
158
  files: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -147,6 +175,8 @@ export declare class InstallationLedger {
147
175
  readonly root: string;
148
176
  private constructor();
149
177
  static open(path: string): Promise<InstallationLedger>;
178
+ /** 设备预检只打开已有安装账本,缺少账本时不创建目录。 */
179
+ static openExisting(root: string): Promise<InstallationLedger | null>;
150
180
  current(): Promise<{
151
181
  value: {
152
182
  revision: number;
@@ -164,10 +194,14 @@ export declare class InstallationLedger {
164
194
  architecture: "x64" | "arm64";
165
195
  };
166
196
  ipcProtocol: "NVS_LOCAL_IPC_V1";
167
- workProtocol: "NVS_LOCAL_WORK_V1";
197
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
168
198
  journalSchema: 1;
169
199
  rendererDigest: string;
170
200
  profileDigest: string;
201
+ compatibleRenderers?: {
202
+ rendererDigest: string;
203
+ profileDigest: string;
204
+ }[] | undefined;
171
205
  };
172
206
  toolsConfigPath: string | null;
173
207
  files: Record<string, string>;
@@ -191,10 +225,14 @@ export declare class InstallationLedger {
191
225
  architecture: "x64" | "arm64";
192
226
  };
193
227
  ipcProtocol: "NVS_LOCAL_IPC_V1";
194
- workProtocol: "NVS_LOCAL_WORK_V1";
228
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
195
229
  journalSchema: 1;
196
230
  rendererDigest: string;
197
231
  profileDigest: string;
232
+ compatibleRenderers?: {
233
+ rendererDigest: string;
234
+ profileDigest: string;
235
+ }[] | undefined;
198
236
  };
199
237
  toolsConfigPath: string | null;
200
238
  files: Record<string, string>;
@@ -213,10 +251,14 @@ export declare class InstallationLedger {
213
251
  architecture: "x64" | "arm64";
214
252
  };
215
253
  ipcProtocol: "NVS_LOCAL_IPC_V1";
216
- workProtocol: "NVS_LOCAL_WORK_V1";
254
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
217
255
  journalSchema: 1;
218
256
  rendererDigest: string;
219
257
  profileDigest: string;
258
+ compatibleRenderers?: {
259
+ rendererDigest: string;
260
+ profileDigest: string;
261
+ }[] | undefined;
220
262
  };
221
263
  toolsConfigPath: string | null;
222
264
  files: Record<string, string>;
@@ -243,10 +285,14 @@ export declare class InstallationLedger {
243
285
  architecture: "x64" | "arm64";
244
286
  };
245
287
  ipcProtocol: "NVS_LOCAL_IPC_V1";
246
- workProtocol: "NVS_LOCAL_WORK_V1";
288
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
247
289
  journalSchema: 1;
248
290
  rendererDigest: string;
249
291
  profileDigest: string;
292
+ compatibleRenderers?: {
293
+ rendererDigest: string;
294
+ profileDigest: string;
295
+ }[] | undefined;
250
296
  };
251
297
  toolsConfigPath: string | null;
252
298
  files: Record<string, string>;
@@ -270,10 +316,14 @@ export declare class InstallationLedger {
270
316
  architecture: "x64" | "arm64";
271
317
  };
272
318
  ipcProtocol: "NVS_LOCAL_IPC_V1";
273
- workProtocol: "NVS_LOCAL_WORK_V1";
319
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
274
320
  journalSchema: 1;
275
321
  rendererDigest: string;
276
322
  profileDigest: string;
323
+ compatibleRenderers?: {
324
+ rendererDigest: string;
325
+ profileDigest: string;
326
+ }[] | undefined;
277
327
  };
278
328
  toolsConfigPath: string | null;
279
329
  files: Record<string, string>;
@@ -292,10 +342,14 @@ export declare class InstallationLedger {
292
342
  architecture: "x64" | "arm64";
293
343
  };
294
344
  ipcProtocol: "NVS_LOCAL_IPC_V1";
295
- workProtocol: "NVS_LOCAL_WORK_V1";
345
+ workProtocol: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2";
296
346
  journalSchema: 1;
297
347
  rendererDigest: string;
298
348
  profileDigest: string;
349
+ compatibleRenderers?: {
350
+ rendererDigest: string;
351
+ profileDigest: string;
352
+ }[] | undefined;
299
353
  };
300
354
  toolsConfigPath: string | null;
301
355
  files: Record<string, string>;