@nativestudio/cli 0.3.0-rc.6 → 0.3.0-rc.7

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 (162) hide show
  1. package/COMPATIBILITY.json +7 -7
  2. package/LICENSE +201 -21
  3. package/components/runtime.json +3 -3
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/{chunk-CA54SKBO.js → chunk-6SYHA2B4.js} +1 -1
  6. package/dist/_chunks/{chunk-GJ7BZJLW.js → chunk-A7EUJNCL.js} +1 -1
  7. package/dist/_chunks/chunk-AJ7S73M4.js +1 -0
  8. package/dist/_chunks/chunk-DRHPICBU.js +1 -0
  9. package/dist/_chunks/chunk-FCHO4AVP.js +1 -0
  10. package/dist/_chunks/chunk-JH5QP6PC.js +1 -0
  11. package/dist/_chunks/chunk-LF442QV6.js +1 -0
  12. package/dist/_chunks/chunk-LUBHPAPW.js +1 -0
  13. package/dist/_chunks/chunk-OZ5KZSTM.js +1 -0
  14. package/dist/_chunks/chunk-RJ4QQF7E.js +1 -0
  15. package/dist/_chunks/chunk-RT5PFKYS.js +1 -0
  16. package/dist/_chunks/chunk-SIJPJIBO.js +1 -0
  17. package/dist/_chunks/{chunk-KNFUMWDY.js → chunk-TCZJLYSR.js} +1 -1
  18. package/dist/_chunks/chunk-TTFDNLQE.js +1 -0
  19. package/dist/_chunks/chunk-URKX77KR.js +1 -0
  20. package/dist/_chunks/chunk-XRYARPEL.js +1 -0
  21. package/dist/_chunks/device-management-4XIITODX.js +1 -0
  22. package/dist/_chunks/device-preflight-SDA7Q3LH.js +1 -0
  23. package/dist/_chunks/devices-inventory-RVHGI2YW.js +1 -0
  24. package/dist/_chunks/devices-main-WOILNAGY.js +1 -0
  25. package/dist/_chunks/http-profile-XCHTSJV4.js +1 -0
  26. package/dist/_chunks/library-main-ZQKJQNHE.js +1 -0
  27. package/dist/_chunks/local-main-DX47PKHX.js +1 -0
  28. package/dist/_chunks/local-mcp-HMS5ODZN.js +1 -0
  29. package/dist/_chunks/main-HQGVZ2O2.js +2 -0
  30. package/dist/_chunks/mcp-6Q4ALHN6.js +1 -0
  31. package/dist/_chunks/project-connect-U2IHGC5W.js +1 -0
  32. package/dist/_chunks/render-main-A2AABFAG.js +1 -0
  33. package/dist/_chunks/source-import-5N4KZMTC.js +1 -0
  34. package/dist/_chunks/src-NIMTPR5W.js +1 -0
  35. package/dist/_chunks/{stdio-main-4Z2JVCMO.js → stdio-main-JJCNIY4H.js} +1 -1
  36. package/dist/_chunks/workspace-main-ZIZO4WRI.js +1 -0
  37. package/dist/_types/cli/local/desktop-contract.d.ts +1077 -564
  38. package/dist/_types/cli/local/desktop-device-contract.d.ts +170 -556
  39. package/dist/_types/cli/local/desktop-device-owner.d.ts +16 -50
  40. package/dist/_types/cli/local/desktop-device-state.d.ts +198 -31
  41. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  42. package/dist/_types/cli/local/desktop-owner.d.ts +220 -39
  43. package/dist/_types/cli/local/ledger.d.ts +2 -0
  44. package/dist/_types/cli/local/manager.d.ts +352 -22
  45. package/dist/_types/cli/local/mcp-tools.d.ts +218 -39
  46. package/dist/_types/cli/local/project-render-tools.d.ts +8742 -77
  47. package/dist/_types/cli/local-management.d.ts +2 -1
  48. package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
  49. package/dist/_types/contracts/audio.d.ts +4 -0
  50. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  51. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  52. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  53. package/dist/_types/contracts/composition-render.d.ts +8 -8
  54. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  55. package/dist/_types/contracts/composition-source-review.d.ts +12 -12
  56. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11765
  57. package/dist/_types/contracts/delivery-operations.d.ts +51 -3921
  58. package/dist/_types/contracts/delivery-summary.d.ts +2 -2
  59. package/dist/_types/contracts/delivery-validation.d.ts +23 -0
  60. package/dist/_types/contracts/device-render.d.ts +67 -0
  61. package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
  62. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11655
  63. package/dist/_types/contracts/external-agent-access.d.ts +9 -3
  64. package/dist/_types/contracts/final-ready.d.ts +22 -22
  65. package/dist/_types/contracts/final-render.d.ts +1569 -6949
  66. package/dist/_types/contracts/human-identity.d.ts +13 -0
  67. package/dist/_types/contracts/index.d.ts +3 -0
  68. package/dist/_types/contracts/interface/media-output.d.ts +28 -0
  69. package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
  70. package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
  71. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +2 -2
  72. package/dist/_types/contracts/local-execution/agent-grant.d.ts +2 -2
  73. package/dist/_types/contracts/local-execution/agent-review.d.ts +30 -285
  74. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  75. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  76. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  77. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  78. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  79. package/dist/_types/contracts/local-execution/device.d.ts +19 -59
  80. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  81. package/dist/_types/contracts/local-execution/index.d.ts +19 -0
  82. package/dist/_types/contracts/local-execution/ipc.d.ts +1517 -711
  83. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  84. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  85. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  86. package/dist/_types/contracts/local-execution/lifecycle.d.ts +21 -5
  87. package/dist/_types/contracts/local-execution/local-navigation.d.ts +161 -44
  88. package/dist/_types/contracts/local-execution/management.d.ts +214 -208
  89. package/dist/_types/contracts/local-execution/media-recipe.d.ts +5 -1
  90. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  91. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  92. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  93. package/dist/_types/contracts/local-execution/preview.d.ts +120 -10988
  94. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  95. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  96. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  97. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  98. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  99. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  100. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  101. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  102. package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
  103. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  104. package/dist/_types/contracts/local-execution/work.d.ts +69 -10741
  105. package/dist/_types/contracts/local-execution/workspace.d.ts +5 -0
  106. package/dist/_types/contracts/media-category.d.ts +11 -0
  107. package/dist/_types/contracts/media-observation.d.ts +929 -8
  108. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  109. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  110. package/dist/_types/contracts/programmatic-exploration.d.ts +348 -6009
  111. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  112. package/dist/_types/contracts/provider-models.d.ts +16 -8
  113. package/dist/_types/contracts/provider.d.ts +66 -1
  114. package/dist/_types/contracts/reference-preview.d.ts +19 -0
  115. package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
  116. package/dist/_types/contracts/repair-plan.d.ts +16 -98
  117. package/dist/_types/contracts/repair-strategy.d.ts +162 -4505
  118. package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8163
  119. package/dist/_types/contracts/review-intelligence.d.ts +450 -11468
  120. package/dist/_types/contracts/rough-cut-manifest.d.ts +1 -0
  121. package/dist/_types/contracts/rough-cut-review.d.ts +134 -12566
  122. package/dist/_types/contracts/rough-cut.d.ts +1076 -5731
  123. package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
  124. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  125. package/dist/_types/contracts/speech.d.ts +149 -0
  126. package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
  127. package/dist/_types/contracts/timeline-audio.d.ts +1 -0
  128. package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
  129. package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
  130. package/dist/_types/contracts/timeline-v2.d.ts +4 -0
  131. package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
  132. package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
  133. package/dist/_types/contracts/timeline.d.ts +50 -4850
  134. package/dist/_types/contracts/transcription.d.ts +1 -1
  135. package/dist/_types/contracts/video-generation.d.ts +33 -0
  136. package/dist/_types/contracts/visual-layer-render.d.ts +37 -6
  137. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  138. package/dist/_types/contracts/workspace.d.ts +22 -0
  139. package/dist/_types/sdk/errors.d.ts +1 -1
  140. package/dist/_types/sdk/local-runtime/device-client.d.ts +7 -33
  141. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  142. package/dist/_types/sdk/local-runtime/workspace.d.ts +9 -4
  143. package/dist/_types/sdk/local-runtime-client.d.ts +477 -32
  144. package/dist/entry.js +1 -1
  145. package/dist/local-management.js +1 -1
  146. package/dist/local-navigation.js +1 -1
  147. package/package.json +2 -8
  148. package/README.md +0 -119
  149. package/dist/_chunks/chunk-D533YC7J.js +0 -1
  150. package/dist/_chunks/chunk-HKD6F6M6.js +0 -1
  151. package/dist/_chunks/chunk-INLSOHAK.js +0 -1
  152. package/dist/_chunks/chunk-N6S6HCWE.js +0 -1
  153. package/dist/_chunks/chunk-PBEHCYR7.js +0 -1
  154. package/dist/_chunks/chunk-RVGDXRPK.js +0 -1
  155. package/dist/_chunks/chunk-YKOJPJZR.js +0 -1
  156. package/dist/_chunks/local-main-J2G7OU5E.js +0 -1
  157. package/dist/_chunks/local-mcp-LCHXL2IE.js +0 -1
  158. package/dist/_chunks/main-PPA76ARV.js +0 -2
  159. package/dist/_chunks/mcp-P7W623FE.js +0 -1
  160. package/dist/_chunks/project-connect-7L2HRJUN.js +0 -1
  161. package/dist/_chunks/render-main-ZW6UJHGN.js +0 -1
  162. package/dist/_chunks/src-BXLFLNRG.js +0 -1
@@ -5,7 +5,7 @@ export declare const ExternalGrantQuerySchema: z.ZodObject<{
5
5
  export declare const ExternalGrantPageSchema: z.ZodObject<{
6
6
  items: z.ZodArray<z.ZodObject<{
7
7
  grantId: z.ZodUUID;
8
- projectId: z.ZodUUID;
8
+ projectId: z.ZodNullable<z.ZodUUID>;
9
9
  displayName: z.ZodString;
10
10
  scopes: z.ZodArray<z.ZodEnum<{
11
11
  "nvs:read": "nvs:read";
@@ -24,9 +24,15 @@ export declare const ExternalProjectScopeSchema: z.ZodObject<{
24
24
  tenantId: z.ZodUUID;
25
25
  projectId: z.ZodUUID;
26
26
  }, z.core.$strict>;
27
+ /** 普通 Agent 的授权固定 tenant;project 仅用于历史单项目授权兼容。 */
28
+ export declare const ExternalAgentScopeSchema: z.ZodObject<{
29
+ tenantId: z.ZodUUID;
30
+ projectId: z.ZodOptional<z.ZodUUID>;
31
+ }, z.core.$strict>;
32
+ export type ExternalAgentScope = z.infer<typeof ExternalAgentScopeSchema>;
27
33
  export declare const RegisterExternalClientSchema: z.ZodObject<{
28
34
  tenantId: z.ZodUUID;
29
- projectId: z.ZodUUID;
35
+ projectId: z.ZodOptional<z.ZodUUID>;
30
36
  displayName: z.ZodString;
31
37
  redirectUris: z.ZodArray<z.ZodString>;
32
38
  }, z.core.$strict>;
@@ -83,7 +89,7 @@ export interface ExternalClient extends RegisterExternalClient {
83
89
  enabled: boolean;
84
90
  registrationMode: "MAINTAINED" | "DYNAMIC";
85
91
  }
86
- export interface ExternalAccessSession extends ExternalProjectScope {
92
+ export interface ExternalAccessSession extends ExternalAgentScope {
87
93
  grantId: string;
88
94
  tokenHash: string;
89
95
  principalId: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const DecideFinalReadySchema: z.ZodObject<{
3
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
4
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
3
+ tenantId: typeof import("./ids.js").TenantIdSchema;
4
+ productionId: typeof import("./ids.js").ProductionIdSchema;
5
5
  renderId: z.ZodUUID;
6
6
  reviewId: z.ZodUUID;
7
7
  basisFingerprint: z.ZodString;
@@ -16,8 +16,8 @@ export declare const DecideFinalReadySchema: z.ZodObject<{
16
16
  idempotencyKey: z.ZodString;
17
17
  }, z.core.$strict>;
18
18
  export declare const RevokeFinalReadySchema: z.ZodObject<{
19
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
20
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
19
+ tenantId: typeof import("./ids.js").TenantIdSchema;
20
+ productionId: typeof import("./ids.js").ProductionIdSchema;
21
21
  selectionId: z.ZodUUID;
22
22
  expectedFinalReadyVersion: z.ZodInt;
23
23
  expectedProductionRevision: z.ZodInt;
@@ -25,8 +25,8 @@ export declare const RevokeFinalReadySchema: z.ZodObject<{
25
25
  idempotencyKey: z.ZodString;
26
26
  }, z.core.$strict>;
27
27
  export declare const FinalReadyDecisionSchema: z.ZodObject<{
28
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
29
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
28
+ tenantId: typeof import("./ids.js").TenantIdSchema;
29
+ productionId: typeof import("./ids.js").ProductionIdSchema;
30
30
  id: z.ZodUUID;
31
31
  projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
32
32
  version: z.ZodInt;
@@ -60,8 +60,8 @@ export declare const FinalReadyDecisionSchema: z.ZodObject<{
60
60
  createdAt: z.ZodISODateTime;
61
61
  }, z.core.$strict>;
62
62
  export declare const FinalReadyViewSchema: z.ZodObject<{
63
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
64
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
63
+ tenantId: typeof import("./ids.js").TenantIdSchema;
64
+ productionId: typeof import("./ids.js").ProductionIdSchema;
65
65
  version: z.ZodInt;
66
66
  status: z.ZodEnum<{
67
67
  NONE: "NONE";
@@ -69,8 +69,8 @@ export declare const FinalReadyViewSchema: z.ZodObject<{
69
69
  STALE: "STALE";
70
70
  }>;
71
71
  selection: z.ZodNullable<z.ZodObject<{
72
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
73
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
72
+ tenantId: typeof import("./ids.js").TenantIdSchema;
73
+ productionId: typeof import("./ids.js").ProductionIdSchema;
74
74
  id: z.ZodUUID;
75
75
  projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
76
76
  version: z.ZodInt;
@@ -106,15 +106,15 @@ export declare const FinalReadyViewSchema: z.ZodObject<{
106
106
  staleReasons: z.ZodArray<z.ZodString>;
107
107
  }, z.core.$strict>;
108
108
  export declare const FinalReadyQuerySchema: z.ZodObject<{
109
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
110
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
109
+ tenantId: typeof import("./ids.js").TenantIdSchema;
110
+ productionId: typeof import("./ids.js").ProductionIdSchema;
111
111
  limit: z.ZodDefault<z.ZodInt>;
112
112
  next: z.ZodOptional<z.ZodString>;
113
113
  }, z.core.$strict>;
114
114
  export declare const FinalReadyPageSchema: z.ZodObject<{
115
115
  items: z.ZodArray<z.ZodObject<{
116
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
117
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
116
+ tenantId: typeof import("./ids.js").TenantIdSchema;
117
+ productionId: typeof import("./ids.js").ProductionIdSchema;
118
118
  id: z.ZodUUID;
119
119
  projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
120
120
  version: z.ZodInt;
@@ -155,8 +155,8 @@ export declare const FinalReadyPageSchema: z.ZodObject<{
155
155
  export declare const FinalReadyReceiptSchema: z.ZodObject<{
156
156
  semanticStatus: z.ZodLiteral<"SUCCESS">;
157
157
  decision: z.ZodObject<{
158
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
159
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
158
+ tenantId: typeof import("./ids.js").TenantIdSchema;
159
+ productionId: typeof import("./ids.js").ProductionIdSchema;
160
160
  id: z.ZodUUID;
161
161
  projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
162
162
  version: z.ZodInt;
@@ -212,8 +212,8 @@ export declare const RoughCutReviewSnapshotSchema: z.ZodObject<{
212
212
  warnings: z.ZodInt;
213
213
  }, z.core.$strict>;
214
214
  finalReady: z.ZodObject<{
215
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
216
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
215
+ tenantId: typeof import("./ids.js").TenantIdSchema;
216
+ productionId: typeof import("./ids.js").ProductionIdSchema;
217
217
  version: z.ZodInt;
218
218
  status: z.ZodEnum<{
219
219
  NONE: "NONE";
@@ -221,8 +221,8 @@ export declare const RoughCutReviewSnapshotSchema: z.ZodObject<{
221
221
  STALE: "STALE";
222
222
  }>;
223
223
  selection: z.ZodNullable<z.ZodObject<{
224
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
225
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
224
+ tenantId: typeof import("./ids.js").TenantIdSchema;
225
+ productionId: typeof import("./ids.js").ProductionIdSchema;
226
226
  id: z.ZodUUID;
227
227
  projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
228
228
  version: z.ZodInt;
@@ -258,8 +258,8 @@ export declare const RoughCutReviewSnapshotSchema: z.ZodObject<{
258
258
  staleReasons: z.ZodArray<z.ZodString>;
259
259
  }, z.core.$strict>;
260
260
  latestDecision: z.ZodNullable<z.ZodObject<{
261
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
262
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
261
+ tenantId: typeof import("./ids.js").TenantIdSchema;
262
+ productionId: typeof import("./ids.js").ProductionIdSchema;
263
263
  id: z.ZodUUID;
264
264
  projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
265
265
  version: z.ZodInt;