bailian-cli-core 2.7.1 → 2.7.2

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/dist/index.d.mts CHANGED
@@ -1518,16 +1518,45 @@ export declare function signAcsRequest(cfg: AcsSignConfig): Record<string, strin
1518
1518
  //#region src/client/mcp.d.ts
1519
1519
  interface McpTool {
1520
1520
  name: string;
1521
+ /** Human-readable tool title, when the server declares one. */
1522
+ title?: string;
1521
1523
  description?: string;
1522
1524
  inputSchema?: Record<string, unknown>;
1525
+ /** JSON Schema for the tool output, when the server declares one. */
1526
+ outputSchema?: Record<string, unknown>;
1527
+ /** Server-provided behavioral hints (readOnlyHint, destructiveHint, …). */
1528
+ annotations?: Record<string, unknown>;
1529
+ /** Reserved extension slot, carried verbatim. */
1530
+ _meta?: Record<string, unknown>;
1531
+ /** Further standard fields the SDK validation retains. */
1532
+ [key: string]: unknown;
1533
+ }
1534
+ /**
1535
+ * One content block of an MCP tool result (text / image / audio / resource /
1536
+ * resource_link …). Mirrors the standard fields the SDK validation retains;
1537
+ * the index signature keeps further standard fields visible to consumers.
1538
+ */
1539
+ interface McpToolResultContent {
1540
+ type: string;
1541
+ /** `text` content payload. */
1542
+ text?: string;
1543
+ /** base64 payload of `image` / `audio` content. */
1544
+ data?: string;
1545
+ mimeType?: string;
1546
+ /** `resource_link` / embedded-resource identifiers. */
1547
+ uri?: string;
1548
+ name?: string;
1549
+ title?: string;
1550
+ description?: string;
1551
+ /** Embedded resource payload of `resource` content. */
1552
+ resource?: Record<string, unknown>;
1553
+ annotations?: Record<string, unknown>;
1554
+ [key: string]: unknown;
1523
1555
  }
1524
1556
  interface McpToolResult {
1525
- content: Array<{
1526
- type: string;
1527
- text?: string;
1528
- data?: string;
1529
- mimeType?: string;
1530
- }>;
1557
+ content: McpToolResultContent[];
1558
+ /** Structured tool output carried alongside `content`; preserved verbatim. */
1559
+ structuredContent?: Record<string, unknown>;
1531
1560
  isError?: boolean;
1532
1561
  }
1533
1562
  /**
@@ -1566,6 +1595,11 @@ type ConnectBailianMcpOptions = {
1566
1595
  * on 405/404 fall back to classic SSE on the same URL.
1567
1596
  */
1568
1597
  urlOverride?: string;
1598
+ /**
1599
+ * Overrides the `X-Dashscope-Service` attribution value on these connections
1600
+ * (default `bailian-cli`). AIGC "auto"-mode MCP calls pass `bailian-cli-call`.
1601
+ */
1602
+ serviceSource?: string;
1569
1603
  };
1570
1604
  /**
1571
1605
  * Connect via Streamable HTTP first; on 405 (except WebSearch), fall back to SSE.
@@ -1576,26 +1610,6 @@ export declare function connectBailianMcpWithFallback(options: ConnectBailianMcp
1576
1610
  client: McpConnectedClient;
1577
1611
  url: string;
1578
1612
  }>;
1579
- export declare class McpClient {
1580
- private url;
1581
- private sessionId;
1582
- private nextId;
1583
- private deps;
1584
- private authToken;
1585
- constructor(deps: HttpDeps, url: string, authToken?: string);
1586
- /** Initialize the MCP session. Must be called before any other method. */
1587
- initialize(): Promise<void>;
1588
- listTools(): Promise<McpTool[]>;
1589
- callTool(name: string, args: Record<string, unknown>): Promise<McpToolResult>;
1590
- private rpc;
1591
- private notify;
1592
- /**
1593
- * Read a JSON-RPC response by Content-Type: application/json or text/event-stream.
1594
- */
1595
- private readJsonRpcResponse;
1596
- private readJsonRpcFromSse;
1597
- private send;
1598
- }
1599
1613
  //#endregion
1600
1614
  //#region src/client/client.d.ts
1601
1615
  /** Client 的结构化依赖:身份 + 有效配置 + 各域凭证(按命令的 auth 注入)。 */
@@ -1690,13 +1704,23 @@ export declare class Client {
1690
1704
  defaultBaseUrl?: () => string;
1691
1705
  }): Promise<string>;
1692
1706
  usesTokenPlanEndpoint(): boolean;
1707
+ /**
1708
+ * True when the effective model-domain connection is a Token Plan one: either
1709
+ * the token-plan endpoint or a plan key (`sk-sp-`). Both shapes are verified
1710
+ * unable to reach Bailian MCP (the plan gateway has no `/api/v1/mcps` route —
1711
+ * bare 404 — and plan keys get 401 InvalidApiKey on the standard MCP path),
1712
+ * so callers routing through MCP (AIGC `auto` mode) reject up front.
1713
+ */
1714
+ usesTokenPlanConnection(): boolean;
1693
1715
  /** Open an MCP client. Accepts a path (prepended with the model baseUrl) or an absolute URL. */
1694
- mcp(pathOrUrl: string): McpClient;
1716
+ mcp(pathOrUrl: string): McpConnectedClient;
1695
1717
  /**
1696
1718
  * Connect to a Bailian MCP: try Streamable HTTP, then SSE on 405 (except WebSearch).
1697
1719
  * `urlOverride` maps to `--url`: Streamable first, then classic SSE on the same URL (405/404).
1720
+ * `serviceSource` overrides the `X-Dashscope-Service` attribution value (default
1721
+ * `bailian-cli`); AIGC "auto"-mode MCP calls pass `bailian-cli-call`.
1698
1722
  */
1699
- connectBailianMcp(serverCode: string, urlOverride?: string): Promise<{
1723
+ connectBailianMcp(serverCode: string, urlOverride?: string, serviceSource?: string): Promise<{
1700
1724
  client: McpConnectedClient;
1701
1725
  url: string;
1702
1726
  }>;
@@ -2471,14 +2495,25 @@ export declare function collectAsrTranscriptionItems(output: {
2471
2495
  //#endregion
2472
2496
  //#region src/client/headers.d.ts
2473
2497
  export declare const CHANNEL = "bailian-cli";
2498
+ /**
2499
+ * `X-Dashscope-Service` attribution value for AIGC "auto"-mode MCP tool calls,
2500
+ * letting the gateway separate CLI-originated MCP generation traffic from the
2501
+ * default {@link CHANNEL}. Only the AIGC auto path opts in; every other request
2502
+ * (REST, upload, other MCP commands) keeps {@link CHANNEL}.
2503
+ */
2504
+ export declare const MCP_CALL_SERVICE = "bailian-cli-call";
2474
2505
  /** Static source identifier advertised to the DashScope/Bailian OpenAPI gateway. */
2475
2506
  export declare const OPEN_API_SOURCE = "BailianCLI";
2476
2507
  /** Marketplace / service attribution header (HTTP names are case-insensitive). */
2477
2508
  export declare const DASHSCOPE_SERVICE_HEADER = "X-Dashscope-Service";
2478
2509
  type TrackingIdentity = Pick<Identity, "binName" | "version">;
2479
2510
  export declare function sourceConfig(identity: TrackingIdentity): string;
2480
- /** Tracking headers for Bailian/DashScope API requests. */
2481
- export declare function trackingHeaders(identity: TrackingIdentity): Record<string, string>;
2511
+ /**
2512
+ * Tracking headers for Bailian/DashScope API requests. `service` overrides the
2513
+ * `X-Dashscope-Service` attribution value (default {@link CHANNEL}); AIGC
2514
+ * "auto"-mode MCP calls pass {@link MCP_CALL_SERVICE}.
2515
+ */
2516
+ export declare function trackingHeaders(identity: TrackingIdentity, service?: string): Record<string, string>;
2482
2517
  //#endregion
2483
2518
  //#region src/client/security.d.ts
2484
2519
  /**
@@ -2568,6 +2603,155 @@ export declare function resetBailianControlPolicies4Agent(opts: BailianControlAu
2568
2603
  policyIndexList?: number[];
2569
2604
  }): Promise<OpenApiResponse>;
2570
2605
  //#endregion
2606
+ //#region src/client/mcp-sdk.d.ts
2607
+ /**
2608
+ * Low-level Streamable HTTP MCP client keeping the constructor and method
2609
+ * signatures published by earlier `bailian-cli-core` versions; delegates to
2610
+ * {@link SdkMcpAdapter}. It drives a single transport at a caller-supplied URL
2611
+ * and token — for the orchestrated entry (URL/credential resolution,
2612
+ * Streamable→SSE fallback, channel attribution) use `Client.connectBailianMcp`
2613
+ * / `connectBailianMcpWithFallback`.
2614
+ */
2615
+ export declare class McpClient implements McpConnectedClient {
2616
+ private readonly adapter;
2617
+ constructor(deps: HttpDeps, url: string, authToken?: string);
2618
+ /** Initialize the MCP session. Must be called before any other method. */
2619
+ initialize(): Promise<void>;
2620
+ listTools(): Promise<McpTool[]>;
2621
+ callTool(name: string, args: Record<string, unknown>): Promise<McpToolResult>;
2622
+ close(): void;
2623
+ }
2624
+ //#endregion
2625
+ //#region src/client/aigc-mcp.d.ts
2626
+ /** Bailian AIGC MCP server codes, keyed by modality. */
2627
+ export declare const AIGC_MCP_SERVER: {
2628
+ readonly image: "TextGenerateImage";
2629
+ readonly video: "VideoGenerate";
2630
+ readonly speech: "TextGenerateSpeech";
2631
+ readonly asr: "SpeechGenerateText";
2632
+ };
2633
+ /** Bailian AIGC MCP tool names. Only the tools listed in the switch-interface
2634
+ * requirements doc are mapped here (no `bailian_image_fusion`, no multichannel
2635
+ * ASR): multi-image edit and other out-of-scope usages are rejected by the gate. */
2636
+ export declare const AIGC_MCP_TOOL: {
2637
+ readonly imageGen: "bailian_image_gen";
2638
+ readonly imageEdit: "bailian_image_edit";
2639
+ readonly textToVideoSubmit: "bailian_text_to_video_submit_task";
2640
+ readonly imageToVideoSubmit: "bailian_image_to_video_submit_task";
2641
+ readonly videoFetchResult: "bailian_text_to_video_fetch_result";
2642
+ readonly tts: "bailian_tts";
2643
+ readonly speechToText: "bailian_speech_to_text";
2644
+ };
2645
+ /**
2646
+ * Extract and JSON-parse the inner payload carried by an AIGC MCP tool result.
2647
+ *
2648
+ * A tool-level `isError` is a server-side failure: its text is passed through
2649
+ * verbatim (AGENTS.md §3 — the CLI does not translate server errors). A missing
2650
+ * or non-object payload is an unexpected shape and fails as GENERAL.
2651
+ */
2652
+ export declare function parseAigcToolResult(result: McpToolResult): Record<string, unknown>;
2653
+ /** Input for `bailian_image_gen`. */
2654
+ interface AigcImageGenInput {
2655
+ prompt: string;
2656
+ size?: string;
2657
+ n?: number;
2658
+ negativePrompt?: string;
2659
+ promptExtend?: boolean;
2660
+ }
2661
+ /** Build `bailian_image_gen` arguments, omitting undefined optional params. */
2662
+ export declare function buildImageGenArgs(input: AigcImageGenInput): Record<string, unknown>;
2663
+ /** Input for `bailian_image_edit` (single source image only). */
2664
+ interface AigcImageEditInput {
2665
+ /** Public http(s) URL or inline base64 data URI; resolved by the command layer. */
2666
+ imageUrl: string;
2667
+ prompt: string;
2668
+ negativePrompt?: string;
2669
+ }
2670
+ /** Build `bailian_image_edit` arguments. */
2671
+ export declare function buildImageEditArgs(input: AigcImageEditInput): Record<string, unknown>;
2672
+ /** Input for the video submit tools (`bailian_text_to_video_submit_task` /
2673
+ * `bailian_image_to_video_submit_task`). */
2674
+ interface AigcVideoSubmitInput {
2675
+ prompt?: string;
2676
+ duration?: number;
2677
+ resolution?: string;
2678
+ /** Aspect ratio; text-to-video only. */
2679
+ ratio?: string;
2680
+ /** First-frame public URL or data URI; image-to-video only. */
2681
+ firstFrameUrl?: string;
2682
+ }
2683
+ /** Build `bailian_text_to_video_submit_task` arguments (text-to-video). */
2684
+ export declare function buildTextToVideoArgs(input: AigcVideoSubmitInput): Record<string, unknown>;
2685
+ /** Build `bailian_image_to_video_submit_task` arguments (image-to-video). */
2686
+ export declare function buildImageToVideoArgs(input: AigcVideoSubmitInput): Record<string, unknown>;
2687
+ /** Build `bailian_text_to_video_fetch_result` arguments. */
2688
+ export declare function buildVideoFetchArgs(taskId: string): Record<string, unknown>;
2689
+ /** Input for `bailian_tts`. */
2690
+ interface AigcTtsInput {
2691
+ text: string;
2692
+ /** Passed through verbatim; the MCP server validates the voice enum. */
2693
+ voice?: string;
2694
+ }
2695
+ /** Build `bailian_tts` arguments. */
2696
+ export declare function buildTtsArgs(input: AigcTtsInput): Record<string, unknown>;
2697
+ /** Build `bailian_speech_to_text` arguments (synchronous). */
2698
+ export declare function buildSpeechToTextArgs(fileUrls: string[]): Record<string, unknown>;
2699
+ /**
2700
+ * Aspect-ratio → pixel table for `bailian_image_gen`. The MCP tool only accepts
2701
+ * "width*height" strings (live inputSchema: 格式为宽*高, default 1328*1328), so
2702
+ * CLI ratios map onto the server's qwen-image preset resolutions; pixel input
2703
+ * passes through and anything else is rejected by the command layer before the
2704
+ * request goes out.
2705
+ */
2706
+ export declare const MCP_IMAGE_GEN_RATIO_SIZES: Readonly<Record<string, string>>;
2707
+ /**
2708
+ * Resolve an `auto`-mode `--size` value for `bailian_image_gen`: pixel input
2709
+ * (`W*H`, with `x` normalized to `*`) passes through, ratios map via
2710
+ * {@link MCP_IMAGE_GEN_RATIO_SIZES}. Returns `undefined` for values MCP cannot
2711
+ * accept so the command layer can reject them up front.
2712
+ */
2713
+ export declare function resolveMcpImageSize(size: string): string | undefined;
2714
+ /** `bailian_tts` voice enum, verbatim from the live tool inputSchema. */
2715
+ export declare const MCP_TTS_VOICES: readonly string[];
2716
+ /** True when `voice` is one of the MCP TTS enum values (REST voice IDs are not). */
2717
+ export declare function isMcpTtsVoice(voice: string): boolean;
2718
+ /**
2719
+ * Parse image generate/edit results into a URL list. The MCP shape is
2720
+ * `{ request_id, results: ["<signed url>", …] }` (bare strings, unlike REST's
2721
+ * `[{ url }]`); object entries are tolerated defensively. An empty list is
2722
+ * returned as-is so the caller can raise its own command-specific message.
2723
+ */
2724
+ export declare function parseAigcImageResults(inner: Record<string, unknown>): string[];
2725
+ /** Parsed `bailian_tts` result. */
2726
+ interface AigcTtsResult {
2727
+ audioUrl: string;
2728
+ requestId?: string;
2729
+ }
2730
+ /** Parse the TTS result `{ result: "<wav url>", request_id }`. */
2731
+ export declare function parseAigcTtsResult(inner: Record<string, unknown>): AigcTtsResult;
2732
+ /** Parse a video submit result `{ task_id }` into the task id. */
2733
+ export declare function parseAigcVideoTaskId(inner: Record<string, unknown>): string;
2734
+ /** Parsed `bailian_text_to_video_fetch_result` result. */
2735
+ interface AigcVideoTaskResult {
2736
+ /** RUNNING / SUCCEEDED / FAILED / UNKNOWN (server-provided). */
2737
+ taskStatus: string;
2738
+ videoUrl?: string;
2739
+ taskId?: string;
2740
+ /** Server-provided failure reason, verbatim (present on FAILED tasks). */
2741
+ message?: string;
2742
+ /** Server-provided failure code, verbatim. */
2743
+ code?: string;
2744
+ }
2745
+ /** Parse the video fetch result `{ task_status, video_url, task_id }`, keeping
2746
+ * the server's failure reason (`message` / `code`) verbatim when present. */
2747
+ export declare function parseAigcVideoTaskResult(inner: Record<string, unknown>): AigcVideoTaskResult;
2748
+ /**
2749
+ * Parse ASR results `{ request_id, results: ["<text>", …] }` into transcription
2750
+ * text lines. `auto` mode intentionally returns this simplified text (the MCP
2751
+ * tool exposes none of REST's sentence/speaker/timestamp structure).
2752
+ */
2753
+ export declare function parseAigcAsrTexts(inner: Record<string, unknown>): string[];
2754
+ //#endregion
2571
2755
  //#region src/client/stream.d.ts
2572
2756
  interface ServerSentEvent {
2573
2757
  event?: string;
@@ -2765,6 +2949,8 @@ interface UploadOptions {
2765
2949
  }
2766
2950
  /** Encode a local image as a Data URI. */
2767
2951
  export declare function imageFileToDataUri(filePath: string): string;
2952
+ /** Encode a local audio file as a Data URI (used by ASR `auto`/MCP input). */
2953
+ export declare function audioFileToDataUri(filePath: string): string;
2768
2954
  /** Keep dry-run output readable and avoid echoing the complete inline image. */
2769
2955
  export declare function redactDataUri(input: string): string;
2770
2956
  /**
@@ -6042,4 +6228,4 @@ export declare function installSkillWithFanout(name: string, entry: SkillIndexEn
6042
6228
  export declare function listSkillDirsOnDisk(): string[];
6043
6229
  export declare function computeSkillStatuses(index: SkillsIndex, lock: SkillLockFile, diskNames: string[]): SkillStatusRow[];
6044
6230
  //#endregion
6045
- export { type AcsQueryParams, type AcsSignConfig, type AgentResult, type AgentTarget, type AnyCommand, type ApiErrorBody, type ApiKeyCredential, type ApiKeyLoginKind, type ApiKeyResolutionSourceSelection, type AppCompletionRequest, type AppCompletionResponse, type AppStreamChunk, type AsrApiKind, type AsrApiRoute, type AsrContextMessage, type AsrFlashFamily, type AuthPersistPatch, type AuthRequirement, type AuthState, type AuthStore, type BailianControlAuth, type Budget, type BuildAsrFlashRequestOpts, type CallerAttribution, type Capability, type ChatChoice, type ChatMessage, type ChatMessageContent, type ChatRequest, type ChatResponse, type ChatResponseFormat, type ChatTool, type Clarification, type ClientOpenApiJsonOpts, type ClientOpenApiQueryOpts, type ClientRequestOpts, type Command, type CommandContext, type CommandNotice, type CommandPack, type CommandPackApiKeyContext, type CommandPackCommand, type CommandPackContext, type CommandPackCredentials, type CommandPackErrorOptions, type CommandPackErrors, type CommandPackManager, type CommandPackMeta, type CommandPackMutationResult, type CommandPackOutput, type CommandPackOutputOptions, type CommandPackReport, type CommandPreparation, type CommandRisk, type CommandRiskLevel, type Complexity, type ConfigFile, type ConfigProfiles, type ConfigStore, type ConnectBailianMcpOptions, type ConsoleCall, type ConsoleCredential, type ConsoleGatewayRequest, type ConsoleGatewayTarget, type ConsoleSite, type ContextNeed, type CreateUserReqDTO, type CredentialSource, type DashScopeASRRequest, type DashScopeASRTaskResult, type DashScopeASRTranscriptionItem, type DashScopeAsyncResponse, type DashScopeImageRequest, type DashScopeImageSyncResponse, type DashScopeTTSRequest, type DashScopeTTSResponse, type DashScopeTTSStreamChunk, type DashScopeTaskResponse, type DashScopeVideoEditRequest, type DashScopeVideoRefRequest, type DashScopeVideoRequest, type DataModality, type DatasetSchema, type Degradation, type IntentProfile as EngineIntentProfile, type RecommendResult as EngineRecommendResult, type RecommendSuccess as EngineRecommendSuccess, type RecommendSuccess, type Recommendation as EngineRecommendation, type StepRecommendation as EngineStepRecommendation, type ExecutionPlan, type FamilyProfile, type FanoutOutcome, type Feature, type FetchImplementation, type FlagDef, type FlagsDef, type HttpDeps, type Identity, type ImageApiKind, type ImageApiRoute, type ImageInputStyle, type ImageSizeProfile, type InstallMethod, type InstallMethodIdentity, type InstalledSkill, type IntentSegment, type Interaction, type KnowledgeChatContentPart, type KnowledgeChatMessage, type KnowledgeChatRequest, type KnowledgeChatStreamChunk, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type LLMClient, type LLMClientOptions, type LLMErrorKind, type LLMStage, type Language, type IntentProfile$1 as LegacyIntentProfile, type ModelProfile as LegacyModelProfile, type RecommendResult$1 as LegacyRecommendResult, type LinkResult, type LocalizedText, type McpConnectedClient, type McpTool, type McpToolResult, type MemoryAddAsyncResponse, type MemoryAddRequest, type MemoryContentPart, type MemoryEvent, type MemoryEventResourceType, type MemoryEventResponse, type MemoryEventResult, type MemoryEventStatus, type MemoryExtractScene, type MemoryMessage, type MemoryNode, type MemoryNodeDetailResponse, type MemoryNodeListResponse, type MemoryNodeUpdateRequest, type MemoryPlanVersion, type MemorySearchRequest, type MemorySearchResponse, type MemorySkillExportResponse, type MemoryToolCall, type MemoryType, type Modality, type ModelCategory, type ModelConnectionProvenance, type ModelGroup, type ModelGroupItem, type ModelGroupParams, type ModelGroupResult, type ModelListParams, type ModelListResult, type ModelOfflineInfo, type ModelOfflineNotice, type ModelPreference, type ModelPrice, type ModelPriceInfo, type ModelSampleCodeV2, type ModelSampleSnippet, type OpenApiCredential, type OutputFormat, type ParsedFlags, type PipelineResult, type PipelineStep, type PredictConfigEntry, type PreferenceMode, type ProfileAttribute, type ProfileSchemaAttribute, type ProfileSchemaAttributeOperation, type ProfileSchemaCreateRequest, type ProfileSchemaCreateResponse, type ProfileSchemaDetailResponse, type ProfileSchemaListResponse, type ProfileSchemaSummary, type ProfileSchemaUpdateRequest, type QpmLimit, type QualityPreference, type RagAddCategoryData, type RagAddCategoryResponse, type RagAddConnectorResponse, type RagAddFileData, type RagAddFileResponse, type RagAgentConfig, type RagAgentDetail, type RagAgentGetData, type RagAgentGetResponse, type RagAgentListData, type RagAgentListResponse, type RagAgentMutationData, type RagAgentMutationResponse, type RagAgentRow, type RagBatchUpdateTagResponse, type RagCategory, type RagChunkListData, type RagChunkListResponse, type RagChunkNode, type RagChunkNodeMetadata, type RagConnectorInfo, type RagConnectorResponse, type RagCreateIndexV2Data, type RagCreateIndexV2Response, type RagDataCenterFile, type RagDeleteFileData, type RagDeleteFileResponse, type RagDescribeFileResponse, type RagGetConnectorResponse, type RagIndexFileDetailRow, type RagIndexFileDetailsResponse, type RagIndexFileRow, type RagIndexFilesData, type RagIndexFilesResponse, type RagIndexJobDoc, type RagIndexJobStatusData, type RagIndexJobStatusResponse, type RagIndexListData, type RagIndexListResponse, type RagIndexRow, type RagJobCreateData, type RagJobCreateResponse, type RagListCategoryData, type RagListCategoryResponse, type RagListFileData, type RagListFileResponse, type RagMonitorData, type RagMonitorResponse, type RagMutationResponse, type RagOssImportData, type RagOssImportFileResult, type RagOssImportResponse, type RagQpsMonitorData, type RagResponse, type RagStorageMonitorData, type RagUploadLeaseData, type RagUploadLeaseParam, type RagUploadLeaseResponse, type RecommendDeps, type RecommendSession, type RecommendedModel, type Region, type RequestOpts, type ResolutionSources, type ResponsesOutputContent, type ResponsesOutputItem, type ResponsesRequest, type ResponsesResponse, type ResponsesStreamEvent, type SecurityAlert, type SecurityAlertList, type SecurityOverview, type SecurityRiskLevel, type SecurityScanStat, type SecurityToggle, type ServerSentEvent, type Settings, type SingleResult, type SkillIndexEntry, type SkillInstallRecord, type SkillLockEntry, type SkillLockFile, type SkillMeta, type SkillStatus, type SkillStatusRow, type SkillsIndex, type SourceFlags, type StreamChoice, type StreamChunk, type ToolDeps, type TrackingDeps, type TrackingEvent, type TrackingIdentity, type TrainingProfile, type TrajectoryEvent, type UserProfileAttribute, type UserProfileResponse, type UserProfileValueItem, type UserProfileValueUpdateRequest, type ValidateOpts, type ValidationIssue, type ValidationResult, type ValidationSeverity, type ValidationStats, type ValidatorSpec, type VocabularyEntry, type VocabularyEnvelope, type VocabularyListItem, type VocabularyRequest, analyzeIntent as analyzeEngineIntent, recommend as recommendEngine, route as routeEngine };
6231
+ export { type AcsQueryParams, type AcsSignConfig, type AgentResult, type AgentTarget, type AigcImageEditInput, type AigcImageGenInput, type AigcTtsInput, type AigcTtsResult, type AigcVideoSubmitInput, type AigcVideoTaskResult, type AnyCommand, type ApiErrorBody, type ApiKeyCredential, type ApiKeyLoginKind, type ApiKeyResolutionSourceSelection, type AppCompletionRequest, type AppCompletionResponse, type AppStreamChunk, type AsrApiKind, type AsrApiRoute, type AsrContextMessage, type AsrFlashFamily, type AuthPersistPatch, type AuthRequirement, type AuthState, type AuthStore, type BailianControlAuth, type Budget, type BuildAsrFlashRequestOpts, type CallerAttribution, type Capability, type ChatChoice, type ChatMessage, type ChatMessageContent, type ChatRequest, type ChatResponse, type ChatResponseFormat, type ChatTool, type Clarification, type ClientOpenApiJsonOpts, type ClientOpenApiQueryOpts, type ClientRequestOpts, type Command, type CommandContext, type CommandNotice, type CommandPack, type CommandPackApiKeyContext, type CommandPackCommand, type CommandPackContext, type CommandPackCredentials, type CommandPackErrorOptions, type CommandPackErrors, type CommandPackManager, type CommandPackMeta, type CommandPackMutationResult, type CommandPackOutput, type CommandPackOutputOptions, type CommandPackReport, type CommandPreparation, type CommandRisk, type CommandRiskLevel, type Complexity, type ConfigFile, type ConfigProfiles, type ConfigStore, type ConnectBailianMcpOptions, type ConsoleCall, type ConsoleCredential, type ConsoleGatewayRequest, type ConsoleGatewayTarget, type ConsoleSite, type ContextNeed, type CreateUserReqDTO, type CredentialSource, type DashScopeASRRequest, type DashScopeASRTaskResult, type DashScopeASRTranscriptionItem, type DashScopeAsyncResponse, type DashScopeImageRequest, type DashScopeImageSyncResponse, type DashScopeTTSRequest, type DashScopeTTSResponse, type DashScopeTTSStreamChunk, type DashScopeTaskResponse, type DashScopeVideoEditRequest, type DashScopeVideoRefRequest, type DashScopeVideoRequest, type DataModality, type DatasetSchema, type Degradation, type IntentProfile as EngineIntentProfile, type RecommendResult as EngineRecommendResult, type RecommendSuccess as EngineRecommendSuccess, type RecommendSuccess, type Recommendation as EngineRecommendation, type StepRecommendation as EngineStepRecommendation, type ExecutionPlan, type FamilyProfile, type FanoutOutcome, type Feature, type FetchImplementation, type FlagDef, type FlagsDef, type HttpDeps, type Identity, type ImageApiKind, type ImageApiRoute, type ImageInputStyle, type ImageSizeProfile, type InstallMethod, type InstallMethodIdentity, type InstalledSkill, type IntentSegment, type Interaction, type KnowledgeChatContentPart, type KnowledgeChatMessage, type KnowledgeChatRequest, type KnowledgeChatStreamChunk, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type LLMClient, type LLMClientOptions, type LLMErrorKind, type LLMStage, type Language, type IntentProfile$1 as LegacyIntentProfile, type ModelProfile as LegacyModelProfile, type RecommendResult$1 as LegacyRecommendResult, type LinkResult, type LocalizedText, type McpConnectedClient, type McpTool, type McpToolResult, type McpToolResultContent, type MemoryAddAsyncResponse, type MemoryAddRequest, type MemoryContentPart, type MemoryEvent, type MemoryEventResourceType, type MemoryEventResponse, type MemoryEventResult, type MemoryEventStatus, type MemoryExtractScene, type MemoryMessage, type MemoryNode, type MemoryNodeDetailResponse, type MemoryNodeListResponse, type MemoryNodeUpdateRequest, type MemoryPlanVersion, type MemorySearchRequest, type MemorySearchResponse, type MemorySkillExportResponse, type MemoryToolCall, type MemoryType, type Modality, type ModelCategory, type ModelConnectionProvenance, type ModelGroup, type ModelGroupItem, type ModelGroupParams, type ModelGroupResult, type ModelListParams, type ModelListResult, type ModelOfflineInfo, type ModelOfflineNotice, type ModelPreference, type ModelPrice, type ModelPriceInfo, type ModelSampleCodeV2, type ModelSampleSnippet, type OpenApiCredential, type OutputFormat, type ParsedFlags, type PipelineResult, type PipelineStep, type PredictConfigEntry, type PreferenceMode, type ProfileAttribute, type ProfileSchemaAttribute, type ProfileSchemaAttributeOperation, type ProfileSchemaCreateRequest, type ProfileSchemaCreateResponse, type ProfileSchemaDetailResponse, type ProfileSchemaListResponse, type ProfileSchemaSummary, type ProfileSchemaUpdateRequest, type QpmLimit, type QualityPreference, type RagAddCategoryData, type RagAddCategoryResponse, type RagAddConnectorResponse, type RagAddFileData, type RagAddFileResponse, type RagAgentConfig, type RagAgentDetail, type RagAgentGetData, type RagAgentGetResponse, type RagAgentListData, type RagAgentListResponse, type RagAgentMutationData, type RagAgentMutationResponse, type RagAgentRow, type RagBatchUpdateTagResponse, type RagCategory, type RagChunkListData, type RagChunkListResponse, type RagChunkNode, type RagChunkNodeMetadata, type RagConnectorInfo, type RagConnectorResponse, type RagCreateIndexV2Data, type RagCreateIndexV2Response, type RagDataCenterFile, type RagDeleteFileData, type RagDeleteFileResponse, type RagDescribeFileResponse, type RagGetConnectorResponse, type RagIndexFileDetailRow, type RagIndexFileDetailsResponse, type RagIndexFileRow, type RagIndexFilesData, type RagIndexFilesResponse, type RagIndexJobDoc, type RagIndexJobStatusData, type RagIndexJobStatusResponse, type RagIndexListData, type RagIndexListResponse, type RagIndexRow, type RagJobCreateData, type RagJobCreateResponse, type RagListCategoryData, type RagListCategoryResponse, type RagListFileData, type RagListFileResponse, type RagMonitorData, type RagMonitorResponse, type RagMutationResponse, type RagOssImportData, type RagOssImportFileResult, type RagOssImportResponse, type RagQpsMonitorData, type RagResponse, type RagStorageMonitorData, type RagUploadLeaseData, type RagUploadLeaseParam, type RagUploadLeaseResponse, type RecommendDeps, type RecommendSession, type RecommendedModel, type Region, type RequestOpts, type ResolutionSources, type ResponsesOutputContent, type ResponsesOutputItem, type ResponsesRequest, type ResponsesResponse, type ResponsesStreamEvent, type SecurityAlert, type SecurityAlertList, type SecurityOverview, type SecurityRiskLevel, type SecurityScanStat, type SecurityToggle, type ServerSentEvent, type Settings, type SingleResult, type SkillIndexEntry, type SkillInstallRecord, type SkillLockEntry, type SkillLockFile, type SkillMeta, type SkillStatus, type SkillStatusRow, type SkillsIndex, type SourceFlags, type StreamChoice, type StreamChunk, type ToolDeps, type TrackingDeps, type TrackingEvent, type TrackingIdentity, type TrainingProfile, type TrajectoryEvent, type UserProfileAttribute, type UserProfileResponse, type UserProfileValueItem, type UserProfileValueUpdateRequest, type ValidateOpts, type ValidationIssue, type ValidationResult, type ValidationSeverity, type ValidationStats, type ValidatorSpec, type VocabularyEntry, type VocabularyEnvelope, type VocabularyListItem, type VocabularyRequest, analyzeIntent as analyzeEngineIntent, recommend as recommendEngine, route as routeEngine };