@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.
- package/COMPATIBILITY.json +4 -4
- package/LICENSE +201 -21
- package/dist/_chunks/chunk-2QDPFLIO.js +1 -0
- package/dist/_chunks/chunk-7DXSLHXW.js +1 -0
- package/dist/_chunks/chunk-AFUVP2DC.js +1 -0
- package/dist/_chunks/chunk-ASUZJSEP.js +1 -0
- package/dist/_chunks/chunk-K3TIFCD3.js +1 -0
- package/dist/_chunks/chunk-NNDKZ5H5.js +1 -0
- package/dist/_chunks/chunk-Q53Q74OP.js +1 -0
- package/dist/_chunks/chunk-QVP4AMRJ.js +1 -0
- package/dist/_chunks/chunk-TT7IA5HB.js +1 -0
- package/dist/_chunks/chunk-UKPD77FB.js +1 -0
- package/dist/_chunks/chunk-V636KA7B.js +1 -0
- package/dist/_chunks/chunk-VXBIT7XN.js +1 -0
- package/dist/_chunks/chunk-WNXKJRZ6.js +1 -0
- package/dist/_types/contracts/agent-execution-lifecycle.d.ts +55 -43
- package/dist/_types/contracts/agent-execution-oauth.d.ts +2 -2
- package/dist/_types/contracts/agent-execution-registration.d.ts +59 -15
- package/dist/_types/contracts/agent-execution-selection.d.ts +7 -7
- package/dist/_types/contracts/agent-host-contract.d.ts +189 -0
- package/dist/_types/contracts/agent-host-execution.d.ts +92 -61
- package/dist/_types/contracts/agent-host-generic-transport.d.ts +4 -4
- package/dist/_types/contracts/agent-host-legacy-release.d.ts +31 -0
- package/dist/_types/contracts/agent-host-protocol.d.ts +71 -0
- package/dist/_types/contracts/agent-host-wire.d.ts +263 -0
- package/dist/_types/contracts/agent-host.d.ts +126 -65
- package/dist/_types/contracts/artifact-discovery.d.ts +143 -11
- package/dist/_types/contracts/audio.d.ts +166 -0
- package/dist/_types/contracts/component-status.d.ts +241 -0
- package/dist/_types/contracts/composition-authoring.d.ts +8 -8
- package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
- package/dist/_types/contracts/composition-observation.d.ts +1 -1
- package/dist/_types/contracts/composition-render-base.d.ts +5 -4
- package/dist/_types/contracts/composition-render.d.ts +8 -8
- package/dist/_types/contracts/composition-repair.d.ts +10 -10
- package/dist/_types/contracts/composition-source-review.d.ts +13 -13
- package/dist/_types/contracts/consistency-profile.d.ts +102 -6
- package/dist/_types/contracts/continuity-evaluation.d.ts +1 -1
- package/dist/_types/contracts/delivery-completion.d.ts +1 -1
- package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
- package/dist/_types/contracts/delivery-operations.d.ts +207 -3915
- package/dist/_types/contracts/delivery-summary.d.ts +4 -4
- package/dist/_types/contracts/delivery-validation.d.ts +25 -2
- package/dist/_types/contracts/device-onboarding.d.ts +35 -0
- package/dist/_types/contracts/device-render.d.ts +113 -0
- package/dist/_types/contracts/editor-intelligence.d.ts +392 -2531
- package/dist/_types/contracts/enterprise-brand.d.ts +302 -0
- package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
- package/dist/_types/contracts/external-agent-access.d.ts +4 -6
- package/dist/_types/contracts/federation-event-link-receiver.d.ts +200 -0
- package/dist/_types/contracts/federation-event-link.d.ts +485 -0
- package/dist/_types/contracts/federation-result.d.ts +239 -0
- package/dist/_types/contracts/final-ready.d.ts +24 -24
- package/dist/_types/contracts/final-render.d.ts +1742 -6949
- package/dist/_types/contracts/human-identity.d.ts +13 -0
- package/dist/_types/contracts/human-links.d.ts +58 -0
- package/dist/_types/contracts/index.d.ts +26 -0
- package/dist/_types/contracts/interface/common.d.ts +18 -0
- package/dist/_types/contracts/interface/execution-output.d.ts +9 -6
- package/dist/_types/contracts/interface/media-output.d.ts +118 -0
- package/dist/_types/contracts/interface/operation.d.ts +89 -0
- package/dist/_types/contracts/interface/production-snapshot.d.ts +106 -199
- package/dist/_types/contracts/interface/query.d.ts +85 -0
- package/dist/_types/contracts/keyframe-generation.d.ts +31 -2
- package/dist/_types/contracts/keyframe-review.d.ts +7 -7
- package/dist/_types/contracts/lifecycle-event-projections.d.ts +19 -4
- package/dist/_types/contracts/lifecycle-events.d.ts +54 -2
- package/dist/_types/contracts/local-execution/agent-component-status.d.ts +109 -0
- package/dist/_types/contracts/local-execution/agent-context.d.ts +385 -0
- package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
- package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
- package/dist/_types/contracts/local-execution/agent-review.d.ts +529 -71
- package/dist/_types/contracts/local-execution/audio-profile.d.ts +6 -0
- package/dist/_types/contracts/local-execution/common.d.ts +12 -11
- package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
- package/dist/_types/contracts/local-execution/components.d.ts +45 -0
- package/dist/_types/contracts/local-execution/cpu-preparation.d.ts +46 -0
- package/dist/_types/contracts/local-execution/cpu-resources.d.ts +55 -0
- package/dist/_types/contracts/local-execution/cpu-speech-job.d.ts +70 -0
- package/dist/_types/contracts/local-execution/cpu-speech.d.ts +161 -0
- package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
- package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
- package/dist/_types/contracts/local-execution/device-inventory.d.ts +108 -0
- package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
- package/dist/_types/contracts/local-execution/device.d.ts +24 -55
- package/dist/_types/contracts/local-execution/enrollment-credential.d.ts +141 -0
- package/dist/_types/contracts/local-execution/enrollment-handoff.d.ts +44 -0
- package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
- package/dist/_types/contracts/local-execution/index.d.ts +36 -0
- package/dist/_types/contracts/local-execution/ipc.d.ts +2809 -231
- package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
- package/dist/_types/contracts/local-execution/library-result.d.ts +428 -0
- package/dist/_types/contracts/local-execution/library.d.ts +873 -0
- package/dist/_types/contracts/local-execution/lifecycle.d.ts +262 -48
- package/dist/_types/contracts/local-execution/local-navigation.d.ts +304 -67
- package/dist/_types/contracts/local-execution/management.d.ts +407 -0
- package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
- package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
- package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
- package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
- package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
- package/dist/_types/contracts/local-execution/preview.d.ts +177 -3561
- package/dist/_types/contracts/local-execution/processor-capability.d.ts +49 -0
- package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
- package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1194 -0
- package/dist/_types/contracts/local-execution/processor-toolchain.d.ts +47 -0
- package/dist/_types/contracts/local-execution/processor.d.ts +6424 -0
- package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
- package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
- package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
- package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
- package/dist/_types/contracts/local-execution/tool-selection.d.ts +71 -5
- package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
- package/dist/_types/contracts/local-execution/work.d.ts +124 -3402
- package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
- package/dist/_types/contracts/mcp-capabilities.d.ts +16 -0
- package/dist/_types/contracts/media-category.d.ts +11 -0
- package/dist/_types/contracts/media-observation.d.ts +930 -9
- package/dist/_types/contracts/native-speech-model.d.ts +53 -0
- package/dist/_types/contracts/native-speech-options.d.ts +25 -0
- package/dist/_types/contracts/native-tool-authority.d.ts +25 -21
- package/dist/_types/contracts/native-tool-execution.d.ts +60 -39
- package/dist/_types/contracts/navigation-context.d.ts +76 -8
- package/dist/_types/contracts/navigation-groups.d.ts +2 -2
- package/dist/_types/contracts/navigation.d.ts +79 -26
- package/dist/_types/contracts/observation-profile.d.ts +3 -3
- package/dist/_types/contracts/production-creation.d.ts +30 -0
- package/dist/_types/contracts/production-feedback.d.ts +452 -0
- package/dist/_types/contracts/production.d.ts +30 -0
- package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
- package/dist/_types/contracts/programmatic-exploration.d.ts +362 -5999
- package/dist/_types/contracts/programmatic-video-review.d.ts +5 -5
- package/dist/_types/contracts/project-library.d.ts +30 -0
- package/dist/_types/contracts/project.d.ts +30 -0
- package/dist/_types/contracts/provider-catalog.d.ts +3 -3
- package/dist/_types/contracts/provider-models.d.ts +209 -8
- package/dist/_types/contracts/provider.d.ts +66 -1
- package/dist/_types/contracts/reference-preview.d.ts +20 -0
- package/dist/_types/contracts/render-readiness.d.ts +175 -0
- package/dist/_types/contracts/repair-lifecycle.d.ts +64 -396
- package/dist/_types/contracts/repair-plan.d.ts +18 -100
- package/dist/_types/contracts/repair-strategy.d.ts +163 -4478
- package/dist/_types/contracts/review-intelligence-final-output.d.ts +418 -8150
- package/dist/_types/contracts/review-intelligence.d.ts +455 -11423
- package/dist/_types/contracts/review1-repair-source.d.ts +6 -6
- package/dist/_types/contracts/review1-repair-strategy.d.ts +4 -4
- package/dist/_types/contracts/rough-cut-manifest.d.ts +27 -7
- package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
- package/dist/_types/contracts/rough-cut-review.d.ts +144 -12495
- package/dist/_types/contracts/rough-cut.d.ts +1170 -5673
- package/dist/_types/contracts/series-canon.d.ts +97 -0
- package/dist/_types/contracts/series-character.d.ts +23 -0
- package/dist/_types/contracts/series-improvement.d.ts +1639 -0
- package/dist/_types/contracts/series-standard.d.ts +1641 -0
- package/dist/_types/contracts/shares.d.ts +135 -0
- package/dist/_types/contracts/shot-preparation-basis.d.ts +2 -2
- package/dist/_types/contracts/shot-preparation.d.ts +4 -4
- package/dist/_types/contracts/sound-making-plan.d.ts +210 -2
- package/dist/_types/contracts/speech-cost.d.ts +96 -0
- package/dist/_types/contracts/speech-parameters.d.ts +39 -0
- package/dist/_types/contracts/speech.d.ts +603 -23
- package/dist/_types/contracts/temporal-evidence-operation.d.ts +2 -1
- package/dist/_types/contracts/timeline-audio.d.ts +20 -4
- package/dist/_types/contracts/timeline-manifest.d.ts +40 -8
- package/dist/_types/contracts/timeline-source-sound.d.ts +42 -4
- package/dist/_types/contracts/timeline-v2.d.ts +124 -16
- package/dist/_types/contracts/timeline-version-reader.d.ts +288 -40
- package/dist/_types/contracts/timeline-visual-layers.d.ts +124 -16
- package/dist/_types/contracts/timeline.d.ts +50 -4850
- package/dist/_types/contracts/transcription.d.ts +1 -1
- package/dist/_types/contracts/video-generation.d.ts +35 -2
- package/dist/_types/contracts/video-review.d.ts +7 -7
- package/dist/_types/contracts/visual-exploration.d.ts +3 -3
- package/dist/_types/contracts/visual-layer-render.d.ts +298 -47
- package/dist/_types/contracts/visual-sequence.d.ts +22 -0
- package/dist/_types/contracts/voice-consistency.d.ts +183 -0
- package/dist/_types/contracts/voice-profile/contracts.d.ts +821 -0
- package/dist/_types/contracts/voice-profile/identity.d.ts +27 -0
- package/dist/_types/contracts/voice-profile/interface.d.ts +89 -0
- package/dist/_types/contracts/voice-profile/reference.d.ts +106 -0
- package/dist/_types/contracts/voice-review.d.ts +1194 -0
- package/dist/_types/contracts/workspace.d.ts +83 -0
- package/dist/_types/sdk/account.d.ts +13 -0
- package/dist/_types/sdk/auxiliary-media.d.ts +1 -0
- package/dist/_types/sdk/catalog/agent-host-execution.d.ts +324 -112
- package/dist/_types/sdk/catalog/agent-host.d.ts +222 -70
- package/dist/_types/sdk/catalog/assembly.d.ts +26 -37628
- package/dist/_types/sdk/catalog/audio-caption.d.ts +126 -22
- package/dist/_types/sdk/catalog/canonical-repair.d.ts +132 -132
- package/dist/_types/sdk/catalog/carriers.d.ts +59 -0
- package/dist/_types/sdk/catalog/composition-source.d.ts +14 -14
- package/dist/_types/sdk/catalog/composition.d.ts +17 -2813
- package/dist/_types/sdk/catalog/core.d.ts +636 -18
- package/dist/_types/sdk/catalog/delivery.d.ts +12 -14167
- package/dist/_types/sdk/catalog/device-library.d.ts +1024 -0
- package/dist/_types/sdk/catalog/device-management.d.ts +921 -0
- package/dist/_types/sdk/catalog/discovery.d.ts +38 -4
- package/dist/_types/sdk/catalog/editor.d.ts +23 -6538
- package/dist/_types/sdk/catalog/enterprise-brand.d.ts +462 -0
- package/dist/_types/sdk/catalog/federation.d.ts +4164 -0
- package/dist/_types/sdk/catalog/generation.d.ts +284 -8
- package/dist/_types/sdk/catalog/imported-visual.d.ts +246 -816
- package/dist/_types/sdk/catalog/keyframe-review.d.ts +10 -10
- package/dist/_types/sdk/catalog/lifecycle-events.d.ts +442 -16
- package/dist/_types/sdk/catalog/mcp.d.ts +115 -7
- package/dist/_types/sdk/catalog/media-descriptors.d.ts +214 -11
- package/dist/_types/sdk/catalog/media-observation.d.ts +1031 -14
- package/dist/_types/sdk/catalog/native-tool-authority.d.ts +54 -24
- package/dist/_types/sdk/catalog/navigation.d.ts +379 -28
- package/dist/_types/sdk/catalog/planning-intelligence.d.ts +136 -8
- package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +327 -9853
- package/dist/_types/sdk/catalog/programmatic-review.d.ts +8 -8
- package/dist/_types/sdk/catalog/provider.d.ts +394 -20
- package/dist/_types/sdk/catalog/reference-preview.d.ts +94 -30
- package/dist/_types/sdk/catalog/repair-strategy.d.ts +180 -8914
- package/dist/_types/sdk/catalog/reviewer.d.ts +276 -23131
- package/dist/_types/sdk/catalog/series-standard.d.ts +5402 -0
- package/dist/_types/sdk/catalog/shares.d.ts +305 -0
- package/dist/_types/sdk/catalog/shot-preparation.d.ts +51 -2972
- package/dist/_types/sdk/catalog/sound-making-plan.d.ts +6 -1776
- package/dist/_types/sdk/catalog/source-sync.d.ts +8 -498
- package/dist/_types/sdk/catalog/spec.d.ts +10 -2
- package/dist/_types/sdk/catalog/speech.d.ts +856 -4
- package/dist/_types/sdk/catalog/temporal-evidence.d.ts +4 -2
- package/dist/_types/sdk/catalog/video-review.d.ts +10 -10
- package/dist/_types/sdk/catalog/visual-exploration.d.ts +556 -440
- package/dist/_types/sdk/catalog/voice-profile.d.ts +1547 -0
- package/dist/_types/sdk/catalog/voice-review.d.ts +1125 -0
- package/dist/_types/sdk/client.d.ts +30 -3
- package/dist/_types/sdk/desktop-previews.d.ts +3 -3
- package/dist/_types/sdk/desktop-releases.d.ts +2 -2
- package/dist/_types/sdk/device-enrollment-handoff.d.ts +249 -0
- package/dist/_types/sdk/device-renders.d.ts +3751 -0
- package/dist/_types/sdk/direct-source.d.ts +147 -0
- package/dist/_types/sdk/errors.d.ts +9 -3
- package/dist/_types/sdk/federation-notice-result.d.ts +22 -0
- package/dist/_types/sdk/feedback-observer.d.ts +10 -0
- package/dist/_types/sdk/host-protocol.d.ts +8 -0
- package/dist/_types/sdk/image-media.d.ts +2 -2
- package/dist/_types/sdk/immutable-media.d.ts +24 -0
- package/dist/_types/sdk/index.d.ts +16 -1
- package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
- package/dist/_types/sdk/local-runtime/device-client.d.ts +181 -19
- package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
- package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
- package/dist/_types/sdk/local-runtime-client.d.ts +1934 -96
- package/dist/_types/sdk/mcp-client.d.ts +13 -5
- package/dist/_types/sdk/mcp-discovery.d.ts +14 -0
- package/dist/_types/sdk/mcp-image.d.ts +4 -4
- package/dist/_types/sdk/mcp-port.d.ts +73 -0
- package/dist/_types/sdk/media.d.ts +11 -9
- package/dist/_types/sdk/navigation-client.d.ts +56 -122
- package/dist/_types/sdk/navigation-facade.d.ts +191 -17
- package/dist/_types/sdk/observe.d.ts +31 -0
- package/dist/_types/sdk/runtime-authority.d.ts +18 -8
- package/dist/_types/sdk/transport/http.d.ts +2 -0
- package/dist/_types/sdk/webhook-receiver.d.ts +38 -0
- package/dist/account.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/host-protocol.d.ts +1 -0
- package/dist/host-protocol.js +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/local-runtime.js +1 -1
- package/dist/mcp-discovery.d.ts +1 -0
- package/dist/mcp-discovery.js +1 -0
- package/dist/native/helper.exe +0 -0
- package/dist/native/helper.json +1 -0
- package/dist/runtime-authority.js +1 -1
- package/package.json +10 -8
- package/README.md +0 -75
- package/dist/_chunks/chunk-34KSWLCI.js +0 -1
- package/dist/_chunks/chunk-4IOFVNFG.js +0 -1
- package/dist/_chunks/chunk-4M3AGNTZ.js +0 -1
- package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
- package/dist/_chunks/chunk-7YCEMDNZ.js +0 -1
- package/dist/native/Bootstrap.ps1 +0 -90
- package/dist/native/JobNative.cs +0 -127
- package/dist/native/JobRunner.cs +0 -360
- package/dist/native/NativeMain.cs +0 -146
- package/dist/native/PipeBridge.cs +0 -260
- 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 {
|
|
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
|
-
/**
|
|
13
|
-
client:
|
|
15
|
+
/** 调用方提供已连接/认证的会话,连接与关闭继续由外部所有者负责。 */
|
|
16
|
+
client: McpClientPort;
|
|
14
17
|
timeoutMs?: number;
|
|
15
18
|
maxJsonBytes?: number;
|
|
16
19
|
}
|
|
17
|
-
|
|
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?:
|
|
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:
|
|
17
|
-
productionId:
|
|
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:
|
|
22
|
-
productionId:
|
|
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.
|
|
21
|
-
representationId: z.
|
|
22
|
-
projectId: z.
|
|
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:
|
|
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:
|
|
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:
|
|
85
|
+
productionId: typeof import("../contracts/index.js").ProductionIdSchema;
|
|
84
86
|
kind: z.ZodLiteral<"DELIVERED_VIDEO">;
|
|
85
87
|
}, z.core.$strict>, z.ZodObject<{
|
|
86
|
-
productionId:
|
|
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 {
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
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
|
}
|