bailian-cli-core 2.5.0 → 2.6.0
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 +162 -57
- package/dist/index.mjs +17 -17
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -682,6 +682,10 @@ interface UserProfileValueUpdateRequest {
|
|
|
682
682
|
memory_library_id?: string;
|
|
683
683
|
}
|
|
684
684
|
interface KnowledgeSearchRequest {
|
|
685
|
+
kb_search_configs?: Array<{
|
|
686
|
+
id: string;
|
|
687
|
+
search_filters?: unknown[];
|
|
688
|
+
}>;
|
|
685
689
|
query: string;
|
|
686
690
|
agent_id: string;
|
|
687
691
|
/** "beta" targets the debug draft; a numeric version targets that published version; defaults to the latest published version */
|
|
@@ -706,8 +710,15 @@ interface KnowledgeSearchResponse {
|
|
|
706
710
|
doc_url?: string;
|
|
707
711
|
pipeline_id?: string;
|
|
708
712
|
workspace_id?: string;
|
|
709
|
-
page_number?: number;
|
|
710
|
-
image_url?: string;
|
|
713
|
+
page_number?: number | number[];
|
|
714
|
+
image_url?: string | string[];
|
|
715
|
+
video_url?: string[];
|
|
716
|
+
audio_url?: string[];
|
|
717
|
+
clip_start_time?: number;
|
|
718
|
+
clip_end_time?: number;
|
|
719
|
+
clip_description?: string;
|
|
720
|
+
audio_segments?: Array<Record<string, unknown>>;
|
|
721
|
+
[key: string]: unknown;
|
|
711
722
|
_knowledge_type?: string;
|
|
712
723
|
_citation_index?: number;
|
|
713
724
|
_score?: number;
|
|
@@ -725,16 +736,22 @@ type KnowledgeChatContentPart = {
|
|
|
725
736
|
};
|
|
726
737
|
};
|
|
727
738
|
interface KnowledgeChatMessage {
|
|
728
|
-
role: "user" | "assistant";
|
|
739
|
+
role: "user" | "assistant" | "tool";
|
|
740
|
+
tool_call_id?: string;
|
|
741
|
+
tool_calls?: unknown[];
|
|
742
|
+
[key: string]: unknown;
|
|
729
743
|
content: string | KnowledgeChatContentPart[];
|
|
730
744
|
}
|
|
731
745
|
interface KnowledgeChatRequest {
|
|
732
746
|
input: {
|
|
733
747
|
messages: KnowledgeChatMessage[];
|
|
748
|
+
request_id?: string;
|
|
734
749
|
};
|
|
735
750
|
parameters: {
|
|
736
751
|
agent_options: {
|
|
737
752
|
agent_id: string;
|
|
753
|
+
session_files?: string[];
|
|
754
|
+
enable_cache_control?: boolean;
|
|
738
755
|
/** "beta" targets the debug draft; a numeric version targets that published version; defaults to the latest published version */
|
|
739
756
|
agent_version?: string;
|
|
740
757
|
user?: {
|
|
@@ -746,24 +763,35 @@ interface KnowledgeChatRequest {
|
|
|
746
763
|
stream: boolean;
|
|
747
764
|
}
|
|
748
765
|
interface KnowledgeChatStreamChunk {
|
|
749
|
-
output
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
766
|
+
output?: {
|
|
767
|
+
request_id?: string;
|
|
768
|
+
choices?: Array<{
|
|
769
|
+
message?: {
|
|
770
|
+
role?: string;
|
|
771
|
+
content?: string | KnowledgeChatContentPart[];
|
|
754
772
|
tool_calls?: unknown[];
|
|
773
|
+
additional_kwargs?: {
|
|
774
|
+
extra_json?: Record<string, unknown> | string;
|
|
775
|
+
[key: string]: unknown;
|
|
776
|
+
};
|
|
755
777
|
extra?: {
|
|
756
778
|
group?: string;
|
|
757
779
|
step_change?: string;
|
|
758
780
|
step?: string;
|
|
781
|
+
[key: string]: unknown;
|
|
759
782
|
};
|
|
783
|
+
[key: string]: unknown;
|
|
760
784
|
};
|
|
761
|
-
finish_reason
|
|
785
|
+
finish_reason?: string;
|
|
786
|
+
[key: string]: unknown;
|
|
762
787
|
}>;
|
|
788
|
+
[key: string]: unknown;
|
|
763
789
|
};
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
790
|
+
usage?: Record<string, unknown>;
|
|
791
|
+
code?: string | number;
|
|
792
|
+
message?: string;
|
|
793
|
+
request_id?: string;
|
|
794
|
+
[key: string]: unknown;
|
|
767
795
|
}
|
|
768
796
|
interface DashScopeTTSRequest {
|
|
769
797
|
model: string;
|
|
@@ -918,6 +946,9 @@ interface RagIndexRow {
|
|
|
918
946
|
name: string;
|
|
919
947
|
description?: string;
|
|
920
948
|
dataType?: string;
|
|
949
|
+
knowledgeType?: string | null;
|
|
950
|
+
knowledgeScene?: string | null;
|
|
951
|
+
multimodalEmbeddingModelName?: string | null;
|
|
921
952
|
embeddingModelName?: string;
|
|
922
953
|
embeddingDimension?: number;
|
|
923
954
|
chunkSize?: number;
|
|
@@ -937,7 +968,7 @@ interface RagIndexRow {
|
|
|
937
968
|
}
|
|
938
969
|
interface RagIndexListData {
|
|
939
970
|
rows?: RagIndexRow[];
|
|
940
|
-
|
|
971
|
+
total_count?: number;
|
|
941
972
|
[key: string]: unknown;
|
|
942
973
|
}
|
|
943
974
|
type RagIndexListResponse = RagResponse<RagIndexListData>;
|
|
@@ -957,6 +988,24 @@ interface RagIndexFilesData {
|
|
|
957
988
|
[key: string]: unknown;
|
|
958
989
|
}
|
|
959
990
|
type RagIndexFilesResponse = RagResponse<RagIndexFilesData>;
|
|
991
|
+
/** POST list/index/file/details, preserving the server's mixed field casing. */
|
|
992
|
+
interface RagIndexFileDetailRow extends RagIndexFileRow {
|
|
993
|
+
chunkSize?: number;
|
|
994
|
+
overlapSize?: number;
|
|
995
|
+
separator?: string;
|
|
996
|
+
chunkMode?: string;
|
|
997
|
+
enableHeaders?: boolean;
|
|
998
|
+
categoryId?: string;
|
|
999
|
+
categoryName?: string;
|
|
1000
|
+
tags?: string[];
|
|
1001
|
+
}
|
|
1002
|
+
type RagIndexFileDetailsResponse = RagResponse<{
|
|
1003
|
+
rows?: RagIndexFileDetailRow[];
|
|
1004
|
+
total_count?: number;
|
|
1005
|
+
page_number?: number;
|
|
1006
|
+
page_size?: number;
|
|
1007
|
+
[key: string]: unknown;
|
|
1008
|
+
}>;
|
|
960
1009
|
/**
|
|
961
1010
|
* GET index_job/status (verified against the live API)
|
|
962
1011
|
* Gotcha: the overall job state lives in `ingestion_status` (PENDING/RUNNING/COMPLETED,
|
|
@@ -1713,6 +1762,13 @@ type ParsedFlags<F extends FlagsDef> = { [K in keyof F as IsRequired<F[K]> exten
|
|
|
1713
1762
|
type AuthRequirement = "apiKey" | "console" | "openapi" | "none";
|
|
1714
1763
|
/** 所有命令都可用的全局 flag。 */
|
|
1715
1764
|
export declare const GLOBAL_FLAGS: {
|
|
1765
|
+
introspect: {
|
|
1766
|
+
type: "switch";
|
|
1767
|
+
description: {
|
|
1768
|
+
"en-US": string;
|
|
1769
|
+
"zh-CN": string;
|
|
1770
|
+
};
|
|
1771
|
+
};
|
|
1716
1772
|
output: {
|
|
1717
1773
|
type: "string";
|
|
1718
1774
|
valueHint: string;
|
|
@@ -1887,7 +1943,11 @@ export declare function credentialFlagDefs(cmd: {
|
|
|
1887
1943
|
* resolved configuration surface, `identity` for product identity, and `flags`
|
|
1888
1944
|
* for parsed arguments. Never handle tokens or baseUrl.
|
|
1889
1945
|
*/
|
|
1890
|
-
interface CommandContext<F extends FlagsDef = FlagsDef> {
|
|
1946
|
+
interface CommandContext<F extends FlagsDef = FlagsDef, Prepared = undefined> {
|
|
1947
|
+
/** Resolve a unique registered product path; older hosts may omit this capability. */
|
|
1948
|
+
commandPath?: (command: AnyCommand) => string[] | undefined;
|
|
1949
|
+
/** Read-only preparation result, supplied only after the runtime confirmation gate. */
|
|
1950
|
+
prepared?: Prepared;
|
|
1891
1951
|
/** 静态产品身份(binName/version/npmPackage/clientName)。 */
|
|
1892
1952
|
identity: Identity;
|
|
1893
1953
|
/**
|
|
@@ -1920,8 +1980,20 @@ type CommandRiskLevel = "high";
|
|
|
1920
1980
|
interface CommandRisk {
|
|
1921
1981
|
level: CommandRiskLevel;
|
|
1922
1982
|
message: LocalizedText;
|
|
1983
|
+
reason?: "destructive" | "billing";
|
|
1923
1984
|
}
|
|
1924
|
-
interface
|
|
1985
|
+
interface CommandNotice {
|
|
1986
|
+
code: string;
|
|
1987
|
+
message: LocalizedText;
|
|
1988
|
+
url?: string;
|
|
1989
|
+
}
|
|
1990
|
+
interface CommandPreparation<Prepared> {
|
|
1991
|
+
data: Prepared;
|
|
1992
|
+
preview: unknown;
|
|
1993
|
+
risk: CommandRisk | null;
|
|
1994
|
+
notices: readonly CommandNotice[];
|
|
1995
|
+
}
|
|
1996
|
+
interface Command<F extends FlagsDef = FlagsDef, Prepared = undefined> {
|
|
1925
1997
|
description: LocalizedText;
|
|
1926
1998
|
/** Credential this command requires. See {@link AuthRequirement}. */
|
|
1927
1999
|
auth: AuthRequirement;
|
|
@@ -1932,6 +2004,8 @@ interface Command<F extends FlagsDef = FlagsDef> {
|
|
|
1932
2004
|
* remote request or local write; runtime only owns the confirmation gate.
|
|
1933
2005
|
*/
|
|
1934
2006
|
risk?: CommandRisk;
|
|
2007
|
+
/** Authenticated, read-only planning. Never write files, request leases, or mutate resources. */
|
|
2008
|
+
prepare?: (ctx: CommandContext<F>) => Promise<CommandPreparation<Prepared>>;
|
|
1935
2009
|
/** Usage line arg portion, e.g. "--prompt <text> [flags]". Manually written. */
|
|
1936
2010
|
usageArgs?: string;
|
|
1937
2011
|
/** Example args (without the `<bin> <path>` prefix). */
|
|
@@ -1946,13 +2020,13 @@ interface Command<F extends FlagsDef = FlagsDef> {
|
|
|
1946
2020
|
* May be async for read-only local preflight. Runtime awaits it before auth
|
|
1947
2021
|
* and confirmation. Do not perform remote requests or local writes here.
|
|
1948
2022
|
*/
|
|
1949
|
-
validate?: (flags: ParsedFlags<F>) =>
|
|
1950
|
-
run: (ctx: CommandContext<F>) => Promise<void>;
|
|
2023
|
+
validate?: (flags: ParsedFlags<F>) => LocalizedText | undefined | Promise<LocalizedText | undefined>;
|
|
2024
|
+
run: (ctx: CommandContext<F, Prepared>) => Promise<void>;
|
|
1951
2025
|
}
|
|
1952
2026
|
/** Type-erased command for heterogeneous storage (registry / context). */
|
|
1953
|
-
type AnyCommand = Command<any>;
|
|
2027
|
+
type AnyCommand = Command<any, any>;
|
|
1954
2028
|
/** Identity wrapper whose only job is to infer `F` from `spec.flags`. */
|
|
1955
|
-
export declare function defineCommand<F extends FlagsDef>(spec: Command<F>): Command<F>;
|
|
2029
|
+
export declare function defineCommand<F extends FlagsDef, Prepared = undefined>(spec: Command<F, Prepared>): Command<F, Prepared>;
|
|
1956
2030
|
//#endregion
|
|
1957
2031
|
//#region src/config/loader.d.ts
|
|
1958
2032
|
/**
|
|
@@ -2036,7 +2110,47 @@ export declare function resolveOpenApi(s: ResolutionSources): OpenApiCredential;
|
|
|
2036
2110
|
/** Full auth snapshot from sources — what would resolve per domain (or undefined). */
|
|
2037
2111
|
export declare function describeAuthState(s: ResolutionSources): AuthState;
|
|
2038
2112
|
//#endregion
|
|
2113
|
+
//#region src/console/gateway.d.ts
|
|
2114
|
+
type ConsoleSite = "domestic" | "international";
|
|
2115
|
+
/**
|
|
2116
|
+
* Resolved console gateway settings (same defaults as {@link callConsoleGateway}).
|
|
2117
|
+
* 参数只需 settings 的 console 三元组;dry-run 展示分支直接传 settings。
|
|
2118
|
+
*/
|
|
2119
|
+
export declare function effectiveConsoleGatewayConfig(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent">): {
|
|
2120
|
+
consoleRegion: string;
|
|
2121
|
+
consoleSite: ConsoleSite;
|
|
2122
|
+
consoleSwitchAgent?: number;
|
|
2123
|
+
};
|
|
2124
|
+
interface ConsoleGatewayRequest {
|
|
2125
|
+
/** Console API name, e.g. zeldaEasy.broadscope-bailian.freeTrial.queryFreeTierQuota */
|
|
2126
|
+
api: string;
|
|
2127
|
+
data: Record<string, unknown>;
|
|
2128
|
+
}
|
|
2129
|
+
/** Console-call signature shared by catalog helpers (`client.console` or an anonymous call). */
|
|
2130
|
+
type ConsoleCall = (api: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
2131
|
+
/**
|
|
2132
|
+
* Build an anonymous (token-less) gateway caller for public catalog APIs such
|
|
2133
|
+
* as `listFoundationModels` — no console login required.
|
|
2134
|
+
*/
|
|
2135
|
+
export declare function anonymousConsoleCall(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent" | "timeout">): ConsoleCall;
|
|
2136
|
+
/**
|
|
2137
|
+
* Invoke a Bailian **console** OpenAPI via the CLI gateway (`/cli/api.json`).
|
|
2138
|
+
* 目标(region/site/switchAgent)与 token 均由调用方解析后传入:Client.console 传
|
|
2139
|
+
* ConsoleCredential;公共目录类 API(如 advisor 的模型目录)可不带 token 匿名调用。
|
|
2140
|
+
*/
|
|
2141
|
+
interface ConsoleGatewayTarget {
|
|
2142
|
+
region: string;
|
|
2143
|
+
site: ConsoleSite;
|
|
2144
|
+
switchAgent?: number;
|
|
2145
|
+
token?: string;
|
|
2146
|
+
}
|
|
2147
|
+
export declare function callConsoleGateway(target: ConsoleGatewayTarget, timeoutSec: number, { api, data }: ConsoleGatewayRequest, settings?: Pick<Settings, "verbose">): Promise<unknown>;
|
|
2148
|
+
//#endregion
|
|
2039
2149
|
//#region src/auth/refresh-token.d.ts
|
|
2150
|
+
/** Console 目标优先;仅在地域缺省时从已知模型域名推导,不猜测未知站点。 */
|
|
2151
|
+
export declare function resolveCLIAccessTokenTarget(settings: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent">, baseUrl: string): Omit<ConsoleGatewayTarget, "token">;
|
|
2152
|
+
/** 首次登录只读验证;直接调用网关,避免错误触发递归刷新。 */
|
|
2153
|
+
export declare function validateConsoleAccessToken(target: ConsoleGatewayTarget, settings: Settings): Promise<void>;
|
|
2040
2154
|
export declare function generateCLIAccessToken(opts: {
|
|
2041
2155
|
identity: Identity;
|
|
2042
2156
|
settings: Settings;
|
|
@@ -2044,7 +2158,10 @@ export declare function generateCLIAccessToken(opts: {
|
|
|
2044
2158
|
accessKeyId: string;
|
|
2045
2159
|
accessKeySecret: string;
|
|
2046
2160
|
securityToken?: string;
|
|
2047
|
-
}): Promise<
|
|
2161
|
+
}): Promise<{
|
|
2162
|
+
cliAccessToken: string;
|
|
2163
|
+
Success?: boolean;
|
|
2164
|
+
}>;
|
|
2048
2165
|
/**
|
|
2049
2166
|
* Try to refresh the console access_token using stored AK/SK.
|
|
2050
2167
|
* Returns the new token on success, or null if AK/SK are not available.
|
|
@@ -2053,6 +2170,8 @@ export declare function refreshAccessToken(opts: {
|
|
|
2053
2170
|
identity: Identity;
|
|
2054
2171
|
settings: Settings;
|
|
2055
2172
|
baseUrl: string;
|
|
2173
|
+
/** 重试原请求作为验证;独立调用时默认通过只读 loginInfo 校验。 */
|
|
2174
|
+
validateToken?: (token: string) => Promise<void>;
|
|
2056
2175
|
}): Promise<string | null>;
|
|
2057
2176
|
//#endregion
|
|
2058
2177
|
//#region src/client/endpoints.d.ts
|
|
@@ -2139,6 +2258,7 @@ export declare const RAG_PATHS: {
|
|
|
2139
2258
|
readonly indexUpdate: "/api/v1/indices/rag/index/update";
|
|
2140
2259
|
readonly indexDelete: "/api/v1/indices/rag/index/delete";
|
|
2141
2260
|
readonly indexMonitor: "/api/v1/indices/rag/index/monitor";
|
|
2261
|
+
readonly indexFileDetails: "/api/v1/indices/rag/list/index/file/details";
|
|
2142
2262
|
readonly indexFiles: "/api/v1/indices/rag/index/files";
|
|
2143
2263
|
readonly indexDeleteFile: "/api/v1/indices/rag/index/delete_file";
|
|
2144
2264
|
readonly indexJobCreate: "/api/v1/indices/rag/index/job/create";
|
|
@@ -2427,42 +2547,6 @@ interface ServerSentEvent {
|
|
|
2427
2547
|
}
|
|
2428
2548
|
export declare function parseSSE(response: Response): AsyncGenerator<ServerSentEvent>;
|
|
2429
2549
|
//#endregion
|
|
2430
|
-
//#region src/console/gateway.d.ts
|
|
2431
|
-
type ConsoleSite = "domestic" | "international";
|
|
2432
|
-
/**
|
|
2433
|
-
* Resolved console gateway settings (same defaults as {@link callConsoleGateway}).
|
|
2434
|
-
* 参数只需 settings 的 console 三元组;dry-run 展示分支直接传 settings。
|
|
2435
|
-
*/
|
|
2436
|
-
export declare function effectiveConsoleGatewayConfig(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent">): {
|
|
2437
|
-
consoleRegion: string;
|
|
2438
|
-
consoleSite: ConsoleSite;
|
|
2439
|
-
consoleSwitchAgent?: number;
|
|
2440
|
-
};
|
|
2441
|
-
interface ConsoleGatewayRequest {
|
|
2442
|
-
/** Console API name, e.g. zeldaEasy.broadscope-bailian.freeTrial.queryFreeTierQuota */
|
|
2443
|
-
api: string;
|
|
2444
|
-
data: Record<string, unknown>;
|
|
2445
|
-
}
|
|
2446
|
-
/** Console-call signature shared by catalog helpers (`client.console` or an anonymous call). */
|
|
2447
|
-
type ConsoleCall = (api: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
2448
|
-
/**
|
|
2449
|
-
* Build an anonymous (token-less) gateway caller for public catalog APIs such
|
|
2450
|
-
* as `listFoundationModels` — no console login required.
|
|
2451
|
-
*/
|
|
2452
|
-
export declare function anonymousConsoleCall(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent" | "timeout">): ConsoleCall;
|
|
2453
|
-
/**
|
|
2454
|
-
* Invoke a Bailian **console** OpenAPI via the CLI gateway (`/cli/api.json`).
|
|
2455
|
-
* 目标(region/site/switchAgent)与 token 均由调用方解析后传入:Client.console 传
|
|
2456
|
-
* ConsoleCredential;公共目录类 API(如 advisor 的模型目录)可不带 token 匿名调用。
|
|
2457
|
-
*/
|
|
2458
|
-
interface ConsoleGatewayTarget {
|
|
2459
|
-
region: string;
|
|
2460
|
-
site: ConsoleSite;
|
|
2461
|
-
switchAgent?: number;
|
|
2462
|
-
token?: string;
|
|
2463
|
-
}
|
|
2464
|
-
export declare function callConsoleGateway(target: ConsoleGatewayTarget, timeoutSec: number, { api, data }: ConsoleGatewayRequest, settings?: Pick<Settings, "verbose">): Promise<unknown>;
|
|
2465
|
-
//#endregion
|
|
2466
2550
|
//#region src/console/models.d.ts
|
|
2467
2551
|
export declare const MODEL_LIST_API = "zeldaHttp.dashscopeModel./zelda/api/v1/modelCenter/listFoundationModels";
|
|
2468
2552
|
export declare const PREDICT_CONFIG_API = "zeldaEasy.bmp.modelPredictRpcService.getPredictParamConfig";
|
|
@@ -4538,6 +4622,19 @@ export declare function resolveBooleanFlag(flagValue: unknown, defaultWhenUnset:
|
|
|
4538
4622
|
/** Resolve `--watermark`; command flag overrides config, then defaults to true. */
|
|
4539
4623
|
export declare function resolveWatermark(flagValue: unknown, configuredValue?: boolean): boolean;
|
|
4540
4624
|
//#endregion
|
|
4625
|
+
//#region src/telemetry/caller.d.ts
|
|
4626
|
+
/** Parse BAILIAN_CALLER_*. Only an explicit agent is `agent`; everything else is `unknown`. */
|
|
4627
|
+
type CallerAttribution = {
|
|
4628
|
+
callerType: "unknown";
|
|
4629
|
+
} | {
|
|
4630
|
+
callerType: "agent";
|
|
4631
|
+
callerName: string;
|
|
4632
|
+
skillName?: string;
|
|
4633
|
+
skillVersion?: string;
|
|
4634
|
+
};
|
|
4635
|
+
/** Env-only attribution; no TTY or install-path heuristics. */
|
|
4636
|
+
export declare function readCaller(env: NodeJS.ProcessEnv): CallerAttribution;
|
|
4637
|
+
//#endregion
|
|
4541
4638
|
//#region src/telemetry/event.d.ts
|
|
4542
4639
|
interface TrackingEvent {
|
|
4543
4640
|
command: string;
|
|
@@ -4553,6 +4650,11 @@ interface TrackingEvent {
|
|
|
4553
4650
|
os: string;
|
|
4554
4651
|
authMethod?: AuthRequirement;
|
|
4555
4652
|
params?: Record<string, unknown>;
|
|
4653
|
+
/** Always present on new CLI events: `agent` or `unknown`. */
|
|
4654
|
+
callerType: CallerAttribution["callerType"];
|
|
4655
|
+
callerName?: string;
|
|
4656
|
+
skillName?: string;
|
|
4657
|
+
skillVersion?: string;
|
|
4556
4658
|
}
|
|
4557
4659
|
export declare function createTrackingEvent(opts: {
|
|
4558
4660
|
command: string;
|
|
@@ -4567,6 +4669,7 @@ export declare function createTrackingEvent(opts: {
|
|
|
4567
4669
|
cliVersion: string;
|
|
4568
4670
|
authMethod?: AuthRequirement;
|
|
4569
4671
|
params?: Record<string, unknown>;
|
|
4672
|
+
caller: CallerAttribution;
|
|
4570
4673
|
}): TrackingEvent;
|
|
4571
4674
|
//#endregion
|
|
4572
4675
|
//#region src/telemetry/sink.d.ts
|
|
@@ -4590,6 +4693,8 @@ interface TrackingDeps {
|
|
|
4590
4693
|
identity: Identity;
|
|
4591
4694
|
settings: Settings;
|
|
4592
4695
|
authMethod?: AuthRequirement;
|
|
4696
|
+
/** From `readCaller(process.env)` in telemetryStage. */
|
|
4697
|
+
caller: CallerAttribution;
|
|
4593
4698
|
}
|
|
4594
4699
|
export declare function trackCommandExecution(deps: TrackingDeps, commandPath: string[], flags: Record<string, unknown>, fn: () => Promise<void>): Promise<void>;
|
|
4595
4700
|
//#endregion
|
|
@@ -5224,4 +5329,4 @@ export declare function installSkillWithFanout(name: string, entry: SkillIndexEn
|
|
|
5224
5329
|
export declare function listSkillDirsOnDisk(): string[];
|
|
5225
5330
|
export declare function computeSkillStatuses(index: SkillsIndex, lock: SkillLockFile, diskNames: string[]): SkillStatusRow[];
|
|
5226
5331
|
//#endregion
|
|
5227
|
-
export type { AcsQueryParams, AcsSignConfig, AgentTarget, AnyCommand, ApiErrorBody, ApiKeyCredential, ApiKeyLoginKind, ApiKeyResolutionSourceSelection, AppCompletionRequest, AppCompletionResponse, AppStreamChunk, AsrApiKind, AsrApiRoute, AsrContextMessage, AsrFlashFamily, AuthPersistPatch, AuthRequirement, AuthState, AuthStore, BailianControlAuth, Budget, BuildAsrFlashRequestOpts, Capability, ChatChoice, ChatMessage, ChatMessageContent, ChatRequest, ChatResponse, ChatResponseFormat, ChatTool, ClientOpenApiJsonOpts, ClientOpenApiQueryOpts, ClientRequestOpts, Command, CommandContext, CommandPack, CommandPackApiKeyContext, CommandPackCommand, CommandPackContext, CommandPackCredentials, CommandPackErrorOptions, CommandPackErrors, CommandPackManager, CommandPackMeta, CommandPackMutationResult, CommandPackOutput, CommandPackOutputOptions, CommandPackReport, CommandRisk, CommandRiskLevel, Complexity, ConfigFile, ConfigProfiles, ConfigStore, ConnectBailianMcpOptions, ConsoleCall, ConsoleCredential, ConsoleGatewayRequest, ConsoleGatewayTarget, ConsoleSite, ContextNeed, CreateUserReqDTO, CredentialSource, DashScopeASRRequest, DashScopeASRTaskResult, DashScopeASRTranscriptionItem, DashScopeAsyncResponse, DashScopeImageRequest, DashScopeImageSyncResponse, DashScopeTTSRequest, DashScopeTTSResponse, DashScopeTTSStreamChunk, DashScopeTaskResponse, DashScopeVideoEditRequest, DashScopeVideoRefRequest, DashScopeVideoRequest, DataModality, DatasetSchema, FanoutOutcome, Feature, FetchImplementation, FlagDef, FlagsDef, GetModelsOptions, HttpDeps, Identity, ImageApiKind, ImageApiRoute, ImageInputStyle, ImageSizeProfile, InstallMethod, InstallMethodIdentity, InstalledSkill, IntentProfile, IntentSegment, KnowledgeChatContentPart, KnowledgeChatMessage, KnowledgeChatRequest, KnowledgeChatStreamChunk, KnowledgeSearchRequest, KnowledgeSearchResponse, Language, LinkResult, LocalizedText, McpConnectedClient, McpTool, McpToolResult, MemoryAddAsyncResponse, MemoryAddRequest, MemoryContentPart, MemoryEvent, MemoryEventResourceType, MemoryEventResponse, MemoryEventResult, MemoryEventStatus, MemoryExtractScene, MemoryMessage, MemoryNode, MemoryNodeDetailResponse, MemoryNodeListResponse, MemoryNodeUpdateRequest, MemoryPlanVersion, MemorySearchRequest, MemorySearchResponse, MemorySkillExportResponse, MemoryToolCall, MemoryType, Modality, ModelCategory, ModelGroup, ModelGroupItem, ModelGroupParams, ModelGroupResult, ModelListParams, ModelListResult, ModelOfflineInfo, ModelOfflineNotice, ModelPreference, ModelPrice, ModelPriceInfo, ModelProfile, ModelSampleCodeV2, ModelSampleSnippet, ModelSource, OpenApiCredential, OutputFormat, ParsedFlags, PipelineResult, PipelineStep, PredictConfigEntry, PreferenceMode, ProfileAttribute, ProfileSchemaAttribute, ProfileSchemaAttributeOperation, ProfileSchemaCreateRequest, ProfileSchemaCreateResponse, ProfileSchemaDetailResponse, ProfileSchemaListResponse, ProfileSchemaSummary, ProfileSchemaUpdateRequest, QpmLimit, QualityPreference, RagAddCategoryData, RagAddCategoryResponse, RagAddConnectorResponse, RagAddFileData, RagAddFileResponse, RagAgentConfig, RagAgentDetail, RagAgentGetData, RagAgentGetResponse, RagAgentListData, RagAgentListResponse, RagAgentMutationData, RagAgentMutationResponse, RagAgentRow, RagBatchUpdateTagResponse, RagCategory, RagChunkListData, RagChunkListResponse, RagChunkNode, RagChunkNodeMetadata, RagConnectorInfo, RagConnectorResponse, RagCreateIndexV2Data, RagCreateIndexV2Response, RagDataCenterFile, RagDeleteFileData, RagDeleteFileResponse, RagDescribeFileResponse, RagGetConnectorResponse, RagIndexFileRow, RagIndexFilesData, RagIndexFilesResponse, RagIndexJobDoc, RagIndexJobStatusData, RagIndexJobStatusResponse, RagIndexListData, RagIndexListResponse, RagIndexRow, RagJobCreateData, RagJobCreateResponse, RagListCategoryData, RagListCategoryResponse, RagListFileData, RagListFileResponse, RagMonitorData, RagMonitorResponse, RagMutationResponse, RagOssImportData, RagOssImportFileResult, RagOssImportResponse, RagQpsMonitorData, RagResponse, RagStorageMonitorData, RagUploadLeaseData, RagUploadLeaseParam, RagUploadLeaseResponse, RecommendOptions, RecommendResult, RecommendedModel, Region, RequestOpts, ResolutionSources, ResponsesOutputContent, ResponsesOutputItem, ResponsesRequest, ResponsesResponse, ResponsesStreamEvent, ScoredCandidate, SecurityAlert, SecurityAlertList, SecurityOverview, SecurityRiskLevel, SecurityScanStat, SecurityToggle, ServerSentEvent, Settings, SingleResult, SkillIndexEntry, SkillInstallRecord, SkillLockEntry, SkillLockFile, SkillMeta, SkillStatus, SkillStatusRow, SkillsIndex, SourceFlags, StreamChoice, StreamChunk, TrackingEvent, TrackingIdentity, TrainingProfile, UserProfileAttribute, UserProfileResponse, UserProfileValueItem, UserProfileValueUpdateRequest, ValidateOpts, ValidationIssue, ValidationResult, ValidationSeverity, ValidationStats, ValidatorSpec, VocabularyEntry, VocabularyEnvelope, VocabularyListItem, VocabularyRequest };
|
|
5332
|
+
export type { AcsQueryParams, AcsSignConfig, AgentTarget, AnyCommand, ApiErrorBody, ApiKeyCredential, ApiKeyLoginKind, ApiKeyResolutionSourceSelection, AppCompletionRequest, AppCompletionResponse, AppStreamChunk, AsrApiKind, AsrApiRoute, AsrContextMessage, AsrFlashFamily, AuthPersistPatch, AuthRequirement, AuthState, AuthStore, BailianControlAuth, Budget, BuildAsrFlashRequestOpts, CallerAttribution, Capability, ChatChoice, ChatMessage, ChatMessageContent, ChatRequest, ChatResponse, ChatResponseFormat, ChatTool, ClientOpenApiJsonOpts, ClientOpenApiQueryOpts, ClientRequestOpts, Command, CommandContext, CommandNotice, CommandPack, CommandPackApiKeyContext, CommandPackCommand, CommandPackContext, CommandPackCredentials, CommandPackErrorOptions, CommandPackErrors, CommandPackManager, CommandPackMeta, CommandPackMutationResult, CommandPackOutput, CommandPackOutputOptions, CommandPackReport, CommandPreparation, CommandRisk, CommandRiskLevel, Complexity, ConfigFile, ConfigProfiles, ConfigStore, ConnectBailianMcpOptions, ConsoleCall, ConsoleCredential, ConsoleGatewayRequest, ConsoleGatewayTarget, ConsoleSite, ContextNeed, CreateUserReqDTO, CredentialSource, DashScopeASRRequest, DashScopeASRTaskResult, DashScopeASRTranscriptionItem, DashScopeAsyncResponse, DashScopeImageRequest, DashScopeImageSyncResponse, DashScopeTTSRequest, DashScopeTTSResponse, DashScopeTTSStreamChunk, DashScopeTaskResponse, DashScopeVideoEditRequest, DashScopeVideoRefRequest, DashScopeVideoRequest, DataModality, DatasetSchema, FanoutOutcome, Feature, FetchImplementation, FlagDef, FlagsDef, GetModelsOptions, HttpDeps, Identity, ImageApiKind, ImageApiRoute, ImageInputStyle, ImageSizeProfile, InstallMethod, InstallMethodIdentity, InstalledSkill, IntentProfile, IntentSegment, KnowledgeChatContentPart, KnowledgeChatMessage, KnowledgeChatRequest, KnowledgeChatStreamChunk, KnowledgeSearchRequest, KnowledgeSearchResponse, Language, LinkResult, LocalizedText, McpConnectedClient, McpTool, McpToolResult, MemoryAddAsyncResponse, MemoryAddRequest, MemoryContentPart, MemoryEvent, MemoryEventResourceType, MemoryEventResponse, MemoryEventResult, MemoryEventStatus, MemoryExtractScene, MemoryMessage, MemoryNode, MemoryNodeDetailResponse, MemoryNodeListResponse, MemoryNodeUpdateRequest, MemoryPlanVersion, MemorySearchRequest, MemorySearchResponse, MemorySkillExportResponse, MemoryToolCall, MemoryType, Modality, ModelCategory, ModelGroup, ModelGroupItem, ModelGroupParams, ModelGroupResult, ModelListParams, ModelListResult, ModelOfflineInfo, ModelOfflineNotice, ModelPreference, ModelPrice, ModelPriceInfo, ModelProfile, ModelSampleCodeV2, ModelSampleSnippet, ModelSource, OpenApiCredential, OutputFormat, ParsedFlags, PipelineResult, PipelineStep, PredictConfigEntry, PreferenceMode, ProfileAttribute, ProfileSchemaAttribute, ProfileSchemaAttributeOperation, ProfileSchemaCreateRequest, ProfileSchemaCreateResponse, ProfileSchemaDetailResponse, ProfileSchemaListResponse, ProfileSchemaSummary, ProfileSchemaUpdateRequest, QpmLimit, QualityPreference, RagAddCategoryData, RagAddCategoryResponse, RagAddConnectorResponse, RagAddFileData, RagAddFileResponse, RagAgentConfig, RagAgentDetail, RagAgentGetData, RagAgentGetResponse, RagAgentListData, RagAgentListResponse, RagAgentMutationData, RagAgentMutationResponse, RagAgentRow, RagBatchUpdateTagResponse, RagCategory, RagChunkListData, RagChunkListResponse, RagChunkNode, RagChunkNodeMetadata, RagConnectorInfo, RagConnectorResponse, RagCreateIndexV2Data, RagCreateIndexV2Response, RagDataCenterFile, RagDeleteFileData, RagDeleteFileResponse, RagDescribeFileResponse, RagGetConnectorResponse, RagIndexFileDetailRow, RagIndexFileDetailsResponse, RagIndexFileRow, RagIndexFilesData, RagIndexFilesResponse, RagIndexJobDoc, RagIndexJobStatusData, RagIndexJobStatusResponse, RagIndexListData, RagIndexListResponse, RagIndexRow, RagJobCreateData, RagJobCreateResponse, RagListCategoryData, RagListCategoryResponse, RagListFileData, RagListFileResponse, RagMonitorData, RagMonitorResponse, RagMutationResponse, RagOssImportData, RagOssImportFileResult, RagOssImportResponse, RagQpsMonitorData, RagResponse, RagStorageMonitorData, RagUploadLeaseData, RagUploadLeaseParam, RagUploadLeaseResponse, RecommendOptions, RecommendResult, RecommendedModel, Region, RequestOpts, ResolutionSources, ResponsesOutputContent, ResponsesOutputItem, ResponsesRequest, ResponsesResponse, ResponsesStreamEvent, ScoredCandidate, SecurityAlert, SecurityAlertList, SecurityOverview, SecurityRiskLevel, SecurityScanStat, SecurityToggle, ServerSentEvent, Settings, SingleResult, SkillIndexEntry, SkillInstallRecord, SkillLockEntry, SkillLockFile, SkillMeta, SkillStatus, SkillStatusRow, SkillsIndex, SourceFlags, StreamChoice, StreamChunk, TrackingDeps, TrackingEvent, TrackingIdentity, TrainingProfile, UserProfileAttribute, UserProfileResponse, UserProfileValueItem, UserProfileValueUpdateRequest, ValidateOpts, ValidationIssue, ValidationResult, ValidationSeverity, ValidationStats, ValidatorSpec, VocabularyEntry, VocabularyEnvelope, VocabularyListItem, VocabularyRequest };
|