@nativestudio/sdk 0.3.0-rc.2 → 0.3.0-rc.21

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 (282) hide show
  1. package/COMPATIBILITY.json +4 -4
  2. package/LICENSE +201 -21
  3. package/dist/_chunks/chunk-2QDPFLIO.js +1 -0
  4. package/dist/_chunks/chunk-7DXSLHXW.js +1 -0
  5. package/dist/_chunks/chunk-AFUVP2DC.js +1 -0
  6. package/dist/_chunks/chunk-ASUZJSEP.js +1 -0
  7. package/dist/_chunks/chunk-K3TIFCD3.js +1 -0
  8. package/dist/_chunks/chunk-NNDKZ5H5.js +1 -0
  9. package/dist/_chunks/chunk-Q53Q74OP.js +1 -0
  10. package/dist/_chunks/chunk-QVP4AMRJ.js +1 -0
  11. package/dist/_chunks/chunk-TT7IA5HB.js +1 -0
  12. package/dist/_chunks/chunk-UKPD77FB.js +1 -0
  13. package/dist/_chunks/chunk-V636KA7B.js +1 -0
  14. package/dist/_chunks/chunk-VXBIT7XN.js +1 -0
  15. package/dist/_chunks/chunk-WNXKJRZ6.js +1 -0
  16. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +55 -43
  17. package/dist/_types/contracts/agent-execution-oauth.d.ts +2 -2
  18. package/dist/_types/contracts/agent-execution-registration.d.ts +59 -15
  19. package/dist/_types/contracts/agent-execution-selection.d.ts +7 -7
  20. package/dist/_types/contracts/agent-host-contract.d.ts +189 -0
  21. package/dist/_types/contracts/agent-host-execution.d.ts +92 -61
  22. package/dist/_types/contracts/agent-host-generic-transport.d.ts +4 -4
  23. package/dist/_types/contracts/agent-host-legacy-release.d.ts +31 -0
  24. package/dist/_types/contracts/agent-host-protocol.d.ts +71 -0
  25. package/dist/_types/contracts/agent-host-wire.d.ts +263 -0
  26. package/dist/_types/contracts/agent-host.d.ts +126 -65
  27. package/dist/_types/contracts/artifact-discovery.d.ts +143 -11
  28. package/dist/_types/contracts/audio.d.ts +166 -0
  29. package/dist/_types/contracts/component-status.d.ts +241 -0
  30. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  31. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  32. package/dist/_types/contracts/composition-observation.d.ts +1 -1
  33. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  34. package/dist/_types/contracts/composition-render.d.ts +8 -8
  35. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  36. package/dist/_types/contracts/composition-source-review.d.ts +13 -13
  37. package/dist/_types/contracts/consistency-profile.d.ts +102 -6
  38. package/dist/_types/contracts/continuity-evaluation.d.ts +1 -1
  39. package/dist/_types/contracts/delivery-completion.d.ts +1 -1
  40. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
  41. package/dist/_types/contracts/delivery-operations.d.ts +207 -3915
  42. package/dist/_types/contracts/delivery-summary.d.ts +4 -4
  43. package/dist/_types/contracts/delivery-validation.d.ts +25 -2
  44. package/dist/_types/contracts/device-onboarding.d.ts +35 -0
  45. package/dist/_types/contracts/device-render.d.ts +113 -0
  46. package/dist/_types/contracts/editor-intelligence.d.ts +392 -2531
  47. package/dist/_types/contracts/enterprise-brand.d.ts +302 -0
  48. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
  49. package/dist/_types/contracts/external-agent-access.d.ts +4 -6
  50. package/dist/_types/contracts/federation-event-link-receiver.d.ts +200 -0
  51. package/dist/_types/contracts/federation-event-link.d.ts +485 -0
  52. package/dist/_types/contracts/federation-result.d.ts +239 -0
  53. package/dist/_types/contracts/final-ready.d.ts +24 -24
  54. package/dist/_types/contracts/final-render.d.ts +1742 -6949
  55. package/dist/_types/contracts/human-identity.d.ts +13 -0
  56. package/dist/_types/contracts/human-links.d.ts +58 -0
  57. package/dist/_types/contracts/index.d.ts +26 -0
  58. package/dist/_types/contracts/interface/common.d.ts +18 -0
  59. package/dist/_types/contracts/interface/execution-output.d.ts +9 -6
  60. package/dist/_types/contracts/interface/media-output.d.ts +118 -0
  61. package/dist/_types/contracts/interface/operation.d.ts +89 -0
  62. package/dist/_types/contracts/interface/production-snapshot.d.ts +106 -199
  63. package/dist/_types/contracts/interface/query.d.ts +85 -0
  64. package/dist/_types/contracts/keyframe-generation.d.ts +31 -2
  65. package/dist/_types/contracts/keyframe-review.d.ts +7 -7
  66. package/dist/_types/contracts/lifecycle-event-projections.d.ts +19 -4
  67. package/dist/_types/contracts/lifecycle-events.d.ts +54 -2
  68. package/dist/_types/contracts/local-execution/agent-component-status.d.ts +109 -0
  69. package/dist/_types/contracts/local-execution/agent-context.d.ts +385 -0
  70. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  71. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  72. package/dist/_types/contracts/local-execution/agent-review.d.ts +529 -71
  73. package/dist/_types/contracts/local-execution/audio-profile.d.ts +6 -0
  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/components.d.ts +45 -0
  77. package/dist/_types/contracts/local-execution/cpu-preparation.d.ts +46 -0
  78. package/dist/_types/contracts/local-execution/cpu-resources.d.ts +55 -0
  79. package/dist/_types/contracts/local-execution/cpu-speech-job.d.ts +70 -0
  80. package/dist/_types/contracts/local-execution/cpu-speech.d.ts +161 -0
  81. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  82. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  83. package/dist/_types/contracts/local-execution/device-inventory.d.ts +108 -0
  84. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  85. package/dist/_types/contracts/local-execution/device.d.ts +24 -55
  86. package/dist/_types/contracts/local-execution/enrollment-credential.d.ts +141 -0
  87. package/dist/_types/contracts/local-execution/enrollment-handoff.d.ts +44 -0
  88. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  89. package/dist/_types/contracts/local-execution/index.d.ts +36 -0
  90. package/dist/_types/contracts/local-execution/ipc.d.ts +2809 -231
  91. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  92. package/dist/_types/contracts/local-execution/library-result.d.ts +428 -0
  93. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  94. package/dist/_types/contracts/local-execution/lifecycle.d.ts +262 -48
  95. package/dist/_types/contracts/local-execution/local-navigation.d.ts +304 -67
  96. package/dist/_types/contracts/local-execution/management.d.ts +407 -0
  97. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  98. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  99. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  100. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  101. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  102. package/dist/_types/contracts/local-execution/preview.d.ts +177 -3561
  103. package/dist/_types/contracts/local-execution/processor-capability.d.ts +49 -0
  104. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  105. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1194 -0
  106. package/dist/_types/contracts/local-execution/processor-toolchain.d.ts +47 -0
  107. package/dist/_types/contracts/local-execution/processor.d.ts +6424 -0
  108. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  109. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  110. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  111. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  112. package/dist/_types/contracts/local-execution/tool-selection.d.ts +71 -5
  113. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  114. package/dist/_types/contracts/local-execution/work.d.ts +124 -3402
  115. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  116. package/dist/_types/contracts/mcp-capabilities.d.ts +16 -0
  117. package/dist/_types/contracts/media-category.d.ts +11 -0
  118. package/dist/_types/contracts/media-observation.d.ts +930 -9
  119. package/dist/_types/contracts/native-speech-model.d.ts +53 -0
  120. package/dist/_types/contracts/native-speech-options.d.ts +25 -0
  121. package/dist/_types/contracts/native-tool-authority.d.ts +25 -21
  122. package/dist/_types/contracts/native-tool-execution.d.ts +60 -39
  123. package/dist/_types/contracts/navigation-context.d.ts +76 -8
  124. package/dist/_types/contracts/navigation-groups.d.ts +2 -2
  125. package/dist/_types/contracts/navigation.d.ts +79 -26
  126. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  127. package/dist/_types/contracts/production-creation.d.ts +30 -0
  128. package/dist/_types/contracts/production-feedback.d.ts +452 -0
  129. package/dist/_types/contracts/production.d.ts +30 -0
  130. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  131. package/dist/_types/contracts/programmatic-exploration.d.ts +362 -5999
  132. package/dist/_types/contracts/programmatic-video-review.d.ts +5 -5
  133. package/dist/_types/contracts/project-library.d.ts +30 -0
  134. package/dist/_types/contracts/project.d.ts +30 -0
  135. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  136. package/dist/_types/contracts/provider-models.d.ts +209 -8
  137. package/dist/_types/contracts/provider.d.ts +66 -1
  138. package/dist/_types/contracts/reference-preview.d.ts +20 -0
  139. package/dist/_types/contracts/render-readiness.d.ts +175 -0
  140. package/dist/_types/contracts/repair-lifecycle.d.ts +64 -396
  141. package/dist/_types/contracts/repair-plan.d.ts +18 -100
  142. package/dist/_types/contracts/repair-strategy.d.ts +163 -4478
  143. package/dist/_types/contracts/review-intelligence-final-output.d.ts +418 -8150
  144. package/dist/_types/contracts/review-intelligence.d.ts +455 -11423
  145. package/dist/_types/contracts/review1-repair-source.d.ts +6 -6
  146. package/dist/_types/contracts/review1-repair-strategy.d.ts +4 -4
  147. package/dist/_types/contracts/rough-cut-manifest.d.ts +27 -7
  148. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  149. package/dist/_types/contracts/rough-cut-review.d.ts +144 -12495
  150. package/dist/_types/contracts/rough-cut.d.ts +1170 -5673
  151. package/dist/_types/contracts/series-canon.d.ts +97 -0
  152. package/dist/_types/contracts/series-character.d.ts +23 -0
  153. package/dist/_types/contracts/series-improvement.d.ts +1639 -0
  154. package/dist/_types/contracts/series-standard.d.ts +1641 -0
  155. package/dist/_types/contracts/shares.d.ts +135 -0
  156. package/dist/_types/contracts/shot-preparation-basis.d.ts +2 -2
  157. package/dist/_types/contracts/shot-preparation.d.ts +4 -4
  158. package/dist/_types/contracts/sound-making-plan.d.ts +210 -2
  159. package/dist/_types/contracts/speech-cost.d.ts +96 -0
  160. package/dist/_types/contracts/speech-parameters.d.ts +39 -0
  161. package/dist/_types/contracts/speech.d.ts +603 -23
  162. package/dist/_types/contracts/temporal-evidence-operation.d.ts +2 -1
  163. package/dist/_types/contracts/timeline-audio.d.ts +20 -4
  164. package/dist/_types/contracts/timeline-manifest.d.ts +40 -8
  165. package/dist/_types/contracts/timeline-source-sound.d.ts +42 -4
  166. package/dist/_types/contracts/timeline-v2.d.ts +124 -16
  167. package/dist/_types/contracts/timeline-version-reader.d.ts +288 -40
  168. package/dist/_types/contracts/timeline-visual-layers.d.ts +124 -16
  169. package/dist/_types/contracts/timeline.d.ts +50 -4850
  170. package/dist/_types/contracts/transcription.d.ts +1 -1
  171. package/dist/_types/contracts/video-generation.d.ts +35 -2
  172. package/dist/_types/contracts/video-review.d.ts +7 -7
  173. package/dist/_types/contracts/visual-exploration.d.ts +3 -3
  174. package/dist/_types/contracts/visual-layer-render.d.ts +298 -47
  175. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  176. package/dist/_types/contracts/voice-consistency.d.ts +183 -0
  177. package/dist/_types/contracts/voice-profile/contracts.d.ts +821 -0
  178. package/dist/_types/contracts/voice-profile/identity.d.ts +27 -0
  179. package/dist/_types/contracts/voice-profile/interface.d.ts +89 -0
  180. package/dist/_types/contracts/voice-profile/reference.d.ts +106 -0
  181. package/dist/_types/contracts/voice-review.d.ts +1194 -0
  182. package/dist/_types/contracts/workspace.d.ts +83 -0
  183. package/dist/_types/sdk/account.d.ts +13 -0
  184. package/dist/_types/sdk/auxiliary-media.d.ts +1 -0
  185. package/dist/_types/sdk/catalog/agent-host-execution.d.ts +324 -112
  186. package/dist/_types/sdk/catalog/agent-host.d.ts +222 -70
  187. package/dist/_types/sdk/catalog/assembly.d.ts +26 -37628
  188. package/dist/_types/sdk/catalog/audio-caption.d.ts +126 -22
  189. package/dist/_types/sdk/catalog/canonical-repair.d.ts +132 -132
  190. package/dist/_types/sdk/catalog/carriers.d.ts +59 -0
  191. package/dist/_types/sdk/catalog/composition-source.d.ts +14 -14
  192. package/dist/_types/sdk/catalog/composition.d.ts +17 -2813
  193. package/dist/_types/sdk/catalog/core.d.ts +636 -18
  194. package/dist/_types/sdk/catalog/delivery.d.ts +12 -14167
  195. package/dist/_types/sdk/catalog/device-library.d.ts +1024 -0
  196. package/dist/_types/sdk/catalog/device-management.d.ts +921 -0
  197. package/dist/_types/sdk/catalog/discovery.d.ts +38 -4
  198. package/dist/_types/sdk/catalog/editor.d.ts +23 -6538
  199. package/dist/_types/sdk/catalog/enterprise-brand.d.ts +462 -0
  200. package/dist/_types/sdk/catalog/federation.d.ts +4164 -0
  201. package/dist/_types/sdk/catalog/generation.d.ts +284 -8
  202. package/dist/_types/sdk/catalog/imported-visual.d.ts +246 -816
  203. package/dist/_types/sdk/catalog/keyframe-review.d.ts +10 -10
  204. package/dist/_types/sdk/catalog/lifecycle-events.d.ts +442 -16
  205. package/dist/_types/sdk/catalog/mcp.d.ts +115 -7
  206. package/dist/_types/sdk/catalog/media-descriptors.d.ts +214 -11
  207. package/dist/_types/sdk/catalog/media-observation.d.ts +1031 -14
  208. package/dist/_types/sdk/catalog/native-tool-authority.d.ts +54 -24
  209. package/dist/_types/sdk/catalog/navigation.d.ts +379 -28
  210. package/dist/_types/sdk/catalog/planning-intelligence.d.ts +136 -8
  211. package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +327 -9853
  212. package/dist/_types/sdk/catalog/programmatic-review.d.ts +8 -8
  213. package/dist/_types/sdk/catalog/provider.d.ts +394 -20
  214. package/dist/_types/sdk/catalog/reference-preview.d.ts +94 -30
  215. package/dist/_types/sdk/catalog/repair-strategy.d.ts +180 -8914
  216. package/dist/_types/sdk/catalog/reviewer.d.ts +276 -23131
  217. package/dist/_types/sdk/catalog/series-standard.d.ts +5402 -0
  218. package/dist/_types/sdk/catalog/shares.d.ts +305 -0
  219. package/dist/_types/sdk/catalog/shot-preparation.d.ts +51 -2972
  220. package/dist/_types/sdk/catalog/sound-making-plan.d.ts +6 -1776
  221. package/dist/_types/sdk/catalog/source-sync.d.ts +8 -498
  222. package/dist/_types/sdk/catalog/spec.d.ts +10 -2
  223. package/dist/_types/sdk/catalog/speech.d.ts +856 -4
  224. package/dist/_types/sdk/catalog/temporal-evidence.d.ts +4 -2
  225. package/dist/_types/sdk/catalog/video-review.d.ts +10 -10
  226. package/dist/_types/sdk/catalog/visual-exploration.d.ts +556 -440
  227. package/dist/_types/sdk/catalog/voice-profile.d.ts +1547 -0
  228. package/dist/_types/sdk/catalog/voice-review.d.ts +1125 -0
  229. package/dist/_types/sdk/client.d.ts +30 -3
  230. package/dist/_types/sdk/desktop-previews.d.ts +3 -3
  231. package/dist/_types/sdk/desktop-releases.d.ts +2 -2
  232. package/dist/_types/sdk/device-enrollment-handoff.d.ts +249 -0
  233. package/dist/_types/sdk/device-renders.d.ts +3751 -0
  234. package/dist/_types/sdk/direct-source.d.ts +147 -0
  235. package/dist/_types/sdk/errors.d.ts +9 -3
  236. package/dist/_types/sdk/federation-notice-result.d.ts +22 -0
  237. package/dist/_types/sdk/feedback-observer.d.ts +10 -0
  238. package/dist/_types/sdk/host-protocol.d.ts +8 -0
  239. package/dist/_types/sdk/image-media.d.ts +2 -2
  240. package/dist/_types/sdk/immutable-media.d.ts +24 -0
  241. package/dist/_types/sdk/index.d.ts +16 -1
  242. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  243. package/dist/_types/sdk/local-runtime/device-client.d.ts +181 -19
  244. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  245. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  246. package/dist/_types/sdk/local-runtime-client.d.ts +1934 -96
  247. package/dist/_types/sdk/mcp-client.d.ts +13 -5
  248. package/dist/_types/sdk/mcp-discovery.d.ts +14 -0
  249. package/dist/_types/sdk/mcp-image.d.ts +4 -4
  250. package/dist/_types/sdk/mcp-port.d.ts +73 -0
  251. package/dist/_types/sdk/media.d.ts +11 -9
  252. package/dist/_types/sdk/navigation-client.d.ts +56 -122
  253. package/dist/_types/sdk/navigation-facade.d.ts +191 -17
  254. package/dist/_types/sdk/observe.d.ts +31 -0
  255. package/dist/_types/sdk/runtime-authority.d.ts +18 -8
  256. package/dist/_types/sdk/transport/http.d.ts +2 -0
  257. package/dist/_types/sdk/webhook-receiver.d.ts +38 -0
  258. package/dist/account.js +1 -1
  259. package/dist/errors.js +1 -1
  260. package/dist/host-protocol.d.ts +1 -0
  261. package/dist/host-protocol.js +1 -0
  262. package/dist/index.d.ts +2 -2
  263. package/dist/index.js +1 -1
  264. package/dist/local-runtime.js +1 -1
  265. package/dist/mcp-discovery.d.ts +1 -0
  266. package/dist/mcp-discovery.js +1 -0
  267. package/dist/native/helper.exe +0 -0
  268. package/dist/native/helper.json +1 -0
  269. package/dist/runtime-authority.js +1 -1
  270. package/package.json +10 -8
  271. package/README.md +0 -75
  272. package/dist/_chunks/chunk-34KSWLCI.js +0 -1
  273. package/dist/_chunks/chunk-4IOFVNFG.js +0 -1
  274. package/dist/_chunks/chunk-4M3AGNTZ.js +0 -1
  275. package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
  276. package/dist/_chunks/chunk-7YCEMDNZ.js +0 -1
  277. package/dist/native/Bootstrap.ps1 +0 -90
  278. package/dist/native/JobNative.cs +0 -127
  279. package/dist/native/JobRunner.cs +0 -360
  280. package/dist/native/NativeMain.cs +0 -146
  281. package/dist/native/PipeBridge.cs +0 -260
  282. package/dist/native/PrivateAccess.cs +0 -152
@@ -1,6 +1,7 @@
1
+ import { NativeStudioDeviceRenders } from "./device-renders.js";
1
2
  import { NativeStudioNavigationFacade } from "./navigation-facade.js";
2
3
  import { type SdkImageMediaInput } from "./image-media.js";
3
- import type { Client } from "@modelcontextprotocol/client";
4
+ import type { McpClientPort } from "./mcp-port.js";
4
5
  import { type SdkOperation, type SdkInput, type SdkOutput } from "./client.js";
5
6
  import type { SdkRequestOptions } from "./transport/http.js";
6
7
  import { type SdkEvidenceImageInput } from "./evidence-image.js";
@@ -8,15 +9,22 @@ import type { SdkMediaIdentity } from "./media.js";
8
9
  import { type SdkAuxiliaryMediaInput } from "./auxiliary-media.js";
9
10
  import { type SdkMcpImageInput } from "./mcp-image.js";
10
11
  export interface NativeStudioMcpOptions {
12
+ /** Delegated Runtime gateways retain their separate native tool contract. */
13
+ mode?: "member" | "native";
11
14
  tenantId: string;
12
- /** A connected, authenticated modern MCP session. Its owner controls transport setup and close. */
13
- client: Pick<Client, "callTool">;
15
+ /** 调用方提供已连接/认证的会话,连接与关闭继续由外部所有者负责。 */
16
+ client: McpClientPort;
14
17
  timeoutMs?: number;
15
18
  maxJsonBytes?: number;
16
19
  }
17
- /** Calls native tools directly; never executes CLI or wraps the native HTTP API. */
20
+ export interface NativeStudioMcpRequestOptions extends SdkRequestOptions {
21
+ /** Optional version from the authorized member capability description. */
22
+ capabilityVersion?: string | undefined;
23
+ }
24
+ /** Preserves typed native semantics over compact member or explicit internal native MCP. */
18
25
  export declare class NativeStudioMcpClient {
19
26
  private readonly config;
27
+ readonly deviceRenders: NativeStudioDeviceRenders;
20
28
  readonly navigation: NativeStudioNavigationFacade;
21
29
  readonly tenantId: string;
22
30
  private readonly timeout;
@@ -51,5 +59,5 @@ export declare class NativeStudioMcpClient {
51
59
  checksumSha256: string;
52
60
  etag: null;
53
61
  }>;
54
- call<K extends SdkOperation>(key: K, raw: SdkInput<K>, options?: SdkRequestOptions): Promise<SdkOutput<K>>;
62
+ call<K extends SdkOperation>(key: K, raw: SdkInput<K>, options?: NativeStudioMcpRequestOptions): Promise<SdkOutput<K>>;
55
63
  }
@@ -0,0 +1,14 @@
1
+ import type { McpToolDefinition } from "./mcp-port.js";
2
+ /** 宿主仅提供既有认证会话的原生调用;产品发现规则不进入宿主业务映射。 */
3
+ export interface McpDiscoveryContext {
4
+ options: unknown;
5
+ signal: AbortSignal;
6
+ callTool(name: string, args: Record<string, unknown>): Promise<unknown>;
7
+ }
8
+ /** Fixed small entry points; descriptions never install new server or host tools. */
9
+ export interface McpDiscovery {
10
+ initial(): Promise<readonly McpToolDefinition[]>;
11
+ afterCall(name: string, args: unknown, result: unknown): Promise<void>;
12
+ }
13
+ /** Discovery reuses native navigation without turning metadata into a dynamic tool menu. */
14
+ export declare function createMcpDiscovery(context: McpDiscoveryContext): McpDiscovery;
@@ -13,13 +13,13 @@ declare const inputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
13
  generationId: z.core.$ZodBranded<z.ZodUUID, "VideoGenerationId", "out">;
14
14
  kind: z.ZodLiteral<"VIDEO_POSTER">;
15
15
  }, z.core.$strict>, z.ZodObject<{
16
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
17
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
16
+ tenantId: typeof import("../contracts/index.js").TenantIdSchema;
17
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
18
18
  renderId: z.ZodUUID;
19
19
  kind: z.ZodLiteral<"ROUGH_CUT_POSTER">;
20
20
  }, z.core.$strict>, z.ZodObject<{
21
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
22
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
21
+ tenantId: typeof import("../contracts/index.js").TenantIdSchema;
22
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
23
23
  renderId: z.ZodUUID;
24
24
  kind: z.ZodLiteral<"FINAL_POSTER">;
25
25
  }, z.core.$strict>, z.ZodObject<{
@@ -0,0 +1,73 @@
1
+ /** 标准JSON值保持递归结构,提示不能携带函数、undefined或宿主对象。 */
2
+ export type McpJsonValue = string | number | boolean | null | McpJsonValue[] | {
3
+ [key: string]: McpJsonValue;
4
+ };
5
+ /** SDK只依赖已认证会话的调用载体;公开声明不加载整个MCP框架/认证类型图。 */
6
+ export interface McpObjectSchema {
7
+ type: "object";
8
+ properties?: Record<string, McpJsonValue> | undefined;
9
+ required?: string[] | undefined;
10
+ [key: string]: unknown;
11
+ }
12
+ export interface McpToolDefinition {
13
+ name: string;
14
+ inputSchema: McpObjectSchema;
15
+ title?: string | undefined;
16
+ description?: string | undefined;
17
+ outputSchema?: McpObjectSchema | undefined;
18
+ annotations?: {
19
+ title?: string | undefined;
20
+ readOnlyHint?: boolean | undefined;
21
+ destructiveHint?: boolean | undefined;
22
+ idempotentHint?: boolean | undefined;
23
+ openWorldHint?: boolean | undefined;
24
+ } | undefined;
25
+ execution?: {
26
+ taskSupport?: "forbidden" | "optional" | "required" | undefined;
27
+ } | undefined;
28
+ icons?: {
29
+ src: string;
30
+ mimeType?: string | undefined;
31
+ sizes?: string[] | undefined;
32
+ theme?: "light" | "dark" | undefined;
33
+ }[] | undefined;
34
+ _meta?: Record<string, unknown> | undefined;
35
+ }
36
+ export type McpContent = {
37
+ type: "text";
38
+ text: string;
39
+ } | {
40
+ type: "image";
41
+ data: string;
42
+ mimeType: string;
43
+ } | {
44
+ type: "audio";
45
+ data: string;
46
+ mimeType: string;
47
+ } | {
48
+ type: "resource";
49
+ resource: unknown;
50
+ } | {
51
+ type: "resource_link";
52
+ uri: string;
53
+ name: string;
54
+ };
55
+ export interface McpToolResult {
56
+ content: McpContent[];
57
+ structuredContent?: unknown;
58
+ isError?: boolean | undefined;
59
+ }
60
+ export interface McpClientPort {
61
+ callTool(params: {
62
+ name: string;
63
+ arguments?: Record<string, unknown>;
64
+ }, options?: {
65
+ signal?: AbortSignal;
66
+ timeout?: number;
67
+ toolDefinition?: McpToolDefinition;
68
+ /** Local transport classification; never a server authorization grant. */
69
+ nativeReadOnly?: boolean;
70
+ /** Consumed by the member gateway adapter as outer invocation metadata. */
71
+ capabilityVersion?: string;
72
+ }): Promise<McpToolResult>;
73
+ }
@@ -2,11 +2,12 @@ import { z } from "zod";
2
2
  import type { NativeStudioHttpTransport, SdkRequestOptions } from "./transport/http.js";
3
3
  declare const mediaInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
4
  productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
5
+ versionId: z.ZodUUID;
5
6
  purpose: z.ZodEnum<{
6
7
  VOICEOVER: "VOICEOVER";
7
8
  MUSIC: "MUSIC";
9
+ VOICE_SAMPLE: "VOICE_SAMPLE";
8
10
  }>;
9
- versionId: z.ZodUUID;
10
11
  kind: z.ZodLiteral<"AUDIO">;
11
12
  }, z.core.$strict>, z.ZodObject<{
12
13
  format: z.ZodEnum<{
@@ -17,9 +18,9 @@ declare const mediaInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
17
18
  versionId: z.ZodUUID;
18
19
  kind: z.ZodLiteral<"CAPTION">;
19
20
  }, z.core.$strict>, z.ZodObject<{
20
- artifactId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactId">, string & z.core.$brand<"ArtifactId">>>;
21
- representationId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactRepresentationId">, string & z.core.$brand<"ArtifactRepresentationId">>>;
22
- projectId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">, z.ZodTransform<string & z.core.$brand<"ProjectId">, string & z.core.$brand<"ProjectId">>>;
21
+ artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
22
+ representationId: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
23
+ projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
23
24
  kind: z.ZodLiteral<"DISCOVERED_ARTIFACT">;
24
25
  contentType: z.ZodEnum<{
25
26
  "application/json": "application/json";
@@ -34,11 +35,12 @@ declare const mediaInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
34
35
  }>;
35
36
  }, z.core.$strict>, z.ZodObject<{
36
37
  productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
38
+ versionId: z.ZodUUID;
37
39
  purpose: z.ZodEnum<{
38
40
  VOICEOVER: "VOICEOVER";
39
41
  MUSIC: "MUSIC";
42
+ VOICE_SAMPLE: "VOICE_SAMPLE";
40
43
  }>;
41
- versionId: z.ZodUUID;
42
44
  kind: z.ZodLiteral<"AUDIO_WAV">;
43
45
  }, z.core.$strict>, z.ZodObject<{
44
46
  productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
@@ -68,11 +70,11 @@ declare const mediaInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
68
70
  }>;
69
71
  }, z.core.$strict>, z.ZodObject<{
70
72
  renderId: z.ZodUUID;
71
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
73
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
72
74
  kind: z.ZodLiteral<"CODE_VIDEO">;
73
75
  }, z.core.$strict>, z.ZodObject<{
74
76
  renderId: z.ZodUUID;
75
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
77
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
76
78
  kind: z.ZodEnum<{
77
79
  ROUGH_CUT_VIDEO: "ROUGH_CUT_VIDEO";
78
80
  ROUGH_CUT_POSTER: "ROUGH_CUT_POSTER";
@@ -80,10 +82,10 @@ declare const mediaInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
80
82
  FINAL_POSTER: "FINAL_POSTER";
81
83
  }>;
82
84
  }, z.core.$strict>, z.ZodObject<{
83
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
85
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
84
86
  kind: z.ZodLiteral<"DELIVERED_VIDEO">;
85
87
  }, z.core.$strict>, z.ZodObject<{
86
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
88
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
87
89
  manifestId: z.ZodUUID;
88
90
  kind: z.ZodLiteral<"DELIVERY_MANIFEST">;
89
91
  }, z.core.$strict>], "kind">;
@@ -1,4 +1,4 @@
1
- import type { Client } from "@modelcontextprotocol/client";
1
+ import type { McpToolDefinition as Tool } from "./mcp-port.js";
2
2
  import { NativeStudioMcpClient, type NativeStudioMcpOptions } from "./mcp-client.js";
3
3
  import type { SdkRequestOptions } from "./transport/http.js";
4
4
  /** Client-local schema hints. Standard discovery and all command authority stay on the server. */
@@ -7,135 +7,69 @@ export declare class NativeStudioNavigationClient {
7
7
  readonly native: NativeStudioMcpClient;
8
8
  private readonly definitions;
9
9
  private readonly contexts;
10
- constructor(config: NativeStudioMcpOptions & {
11
- client: Pick<Client, "callTool" | "listTools">;
12
- });
10
+ constructor(config: NativeStudioMcpOptions);
13
11
  entrypoints(options?: SdkRequestOptions): Promise<{
14
- tools: {
15
- inputSchema: {
16
- [x: string]: unknown;
17
- type: "object";
18
- properties?: {
19
- [x: string]: string | number | boolean | {
20
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
21
- } | (string | number | boolean | {
22
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
23
- } | (string | number | boolean | {
24
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
25
- } | (string | number | boolean | {
26
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
27
- } | (string | number | boolean | {
28
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
29
- } | (string | number | boolean | {
30
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
31
- } | (string | number | boolean | {
32
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
33
- } | (string | number | boolean | {
34
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
35
- } | (string | number | boolean | {
36
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
37
- } | (string | number | boolean | {
38
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
39
- } | (string | number | boolean | {
40
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
41
- } | (string | number | boolean | {
42
- [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
43
- } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
44
- } | undefined;
45
- required?: string[] | undefined;
46
- };
47
- name: string;
48
- description?: string | undefined;
49
- outputSchema?: {
50
- [x: string]: unknown;
51
- $schema?: string | undefined;
52
- } | undefined;
53
- annotations?: {
54
- title?: string | undefined;
55
- readOnlyHint?: boolean | undefined;
56
- destructiveHint?: boolean | undefined;
57
- idempotentHint?: boolean | undefined;
58
- openWorldHint?: boolean | undefined;
59
- } | undefined;
60
- execution?: {
61
- taskSupport?: "required" | "optional" | "forbidden" | undefined;
62
- } | undefined;
63
- _meta?: {
64
- [x: string]: unknown;
65
- } | undefined;
66
- icons?: {
67
- src: string;
68
- mimeType?: string | undefined;
69
- sizes?: string[] | undefined;
70
- theme?: "light" | "dark" | undefined;
71
- }[] | undefined;
72
- title?: string | undefined;
73
- }[];
12
+ tools: Tool[];
74
13
  }>;
75
14
  selectedSchema(reference: string, expectedTool: string, options?: SdkRequestOptions & {
76
15
  projectId?: string;
77
16
  }): Promise<{
78
- tools: {
79
- inputSchema: {
80
- [x: string]: unknown;
81
- type: "object";
82
- properties?: {
83
- [x: string]: string | number | boolean | {
84
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
85
- } | (string | number | boolean | {
86
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
87
- } | (string | number | boolean | {
88
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
89
- } | (string | number | boolean | {
90
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
91
- } | (string | number | boolean | {
92
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
93
- } | (string | number | boolean | {
94
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
95
- } | (string | number | boolean | {
96
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
97
- } | (string | number | boolean | {
98
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
99
- } | (string | number | boolean | {
100
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
101
- } | (string | number | boolean | {
102
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
103
- } | (string | number | boolean | {
104
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
105
- } | (string | number | boolean | {
106
- [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
107
- } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
108
- } | undefined;
109
- required?: string[] | undefined;
110
- };
17
+ tool: string;
18
+ title: string;
19
+ description: string;
20
+ family: string;
21
+ readOnly: boolean;
22
+ registration: "REGISTERED";
23
+ tenantId: string & import("zod").$brand<"TenantId">;
24
+ catalogVersion: string;
25
+ outputContract: "DECLARED" | "NOT_DECLARED";
26
+ schemaCursor: string;
27
+ definition: {
111
28
  name: string;
112
- description?: string | undefined;
113
- outputSchema?: {
114
- [x: string]: unknown;
115
- $schema?: string | undefined;
116
- } | undefined;
117
- annotations?: {
118
- title?: string | undefined;
119
- readOnlyHint?: boolean | undefined;
120
- destructiveHint?: boolean | undefined;
121
- idempotentHint?: boolean | undefined;
122
- openWorldHint?: boolean | undefined;
123
- } | undefined;
124
- execution?: {
125
- taskSupport?: "required" | "optional" | "forbidden" | undefined;
126
- } | undefined;
127
- _meta?: {
128
- [x: string]: unknown;
129
- } | undefined;
130
- icons?: {
131
- src: string;
132
- mimeType?: string | undefined;
133
- sizes?: string[] | undefined;
134
- theme?: "light" | "dark" | undefined;
135
- }[] | undefined;
29
+ inputSchema: Record<string, unknown>;
136
30
  title?: string | undefined;
137
- }[];
31
+ description?: string | undefined;
32
+ outputSchema?: Record<string, unknown> | undefined;
33
+ annotations?: Record<string, unknown> | undefined;
34
+ execution?: Record<string, unknown> | undefined;
35
+ _meta?: Record<string, unknown> | undefined;
36
+ icons?: Record<string, unknown>[] | undefined;
37
+ };
38
+ guidance: "Use this bounded definition as client-local schema metadata. Standard tools/list stays stable; commands revalidate authority and current state.";
39
+ group?: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified" | undefined;
40
+ invocationTool?: "studio_capability_query" | "studio_capability_invoke" | undefined;
41
+ capabilityVersion?: string | undefined;
138
42
  }>;
43
+ /** Cache an acquired capability definition; never return an expanded host tool menu. */
44
+ selectDescription(raw: unknown, expectedTool: string, options?: {
45
+ projectId?: string;
46
+ }): {
47
+ tool: string;
48
+ title: string;
49
+ description: string;
50
+ family: string;
51
+ readOnly: boolean;
52
+ registration: "REGISTERED";
53
+ tenantId: string & import("zod").$brand<"TenantId">;
54
+ catalogVersion: string;
55
+ outputContract: "DECLARED" | "NOT_DECLARED";
56
+ schemaCursor: string;
57
+ definition: {
58
+ name: string;
59
+ inputSchema: Record<string, unknown>;
60
+ title?: string | undefined;
61
+ description?: string | undefined;
62
+ outputSchema?: Record<string, unknown> | undefined;
63
+ annotations?: Record<string, unknown> | undefined;
64
+ execution?: Record<string, unknown> | undefined;
65
+ _meta?: Record<string, unknown> | undefined;
66
+ icons?: Record<string, unknown>[] | undefined;
67
+ };
68
+ guidance: "Use this bounded definition as client-local schema metadata. Standard tools/list stays stable; commands revalidate authority and current state.";
69
+ group?: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified" | undefined;
70
+ invocationTool?: "studio_capability_query" | "studio_capability_invoke" | undefined;
71
+ capabilityVersion?: string | undefined;
72
+ };
139
73
  private remember;
140
74
  private invalid;
141
75
  }