bailian-cli-core 2.4.0 → 2.5.1

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
@@ -405,40 +405,166 @@ interface AppStreamChunk {
405
405
  usage?: AppCompletionResponse["usage"];
406
406
  request_id: string;
407
407
  }
408
- interface MemoryMessage {
409
- role: "user" | "assistant";
410
- content: string;
408
+ /**
409
+ * Multimodal message part. The memory API reference only documents `content`
410
+ * as `string | array` without pinning the element shape, so this mirrors the
411
+ * sibling Knowledge Chat contract (`KnowledgeChatContentPart`).
412
+ */
413
+ type MemoryContentPart = {
414
+ type: "text";
415
+ text: string;
416
+ } | {
417
+ type: "image_url";
418
+ image_url: {
419
+ url: string;
420
+ };
421
+ };
422
+ /** OpenAI-standard tool call item carried by an assistant message. */
423
+ interface MemoryToolCall {
424
+ id: string;
425
+ type?: "function";
426
+ function: {
427
+ name: string;
428
+ arguments?: string;
429
+ };
411
430
  }
431
+ interface MemoryMessage {
432
+ role: "user" | "assistant" | "tool";
433
+ content?: string | MemoryContentPart[];
434
+ /** assistant 消息可携带的 OpenAI 标准 tool_calls */
435
+ tool_calls?: MemoryToolCall[];
436
+ /** role=tool 消息必带:对应 tool_calls 里的 id */
437
+ tool_call_id?: string;
438
+ }
439
+ /** 记忆抽取策略版本:pro 开启 Rerank,lite 关闭(单价不同)。 */
440
+ type MemoryPlanVersion = "pro" | "lite";
441
+ /** 记忆节点类型:observation 事实记忆 / skill 技能记忆。 */
442
+ type MemoryType = "observation" | "skill";
412
443
  interface MemoryAddRequest {
413
444
  user_id: string;
414
445
  messages?: MemoryMessage[];
415
446
  custom_content?: string;
416
447
  profile_schema?: string;
417
448
  memory_library_id?: string;
449
+ /** 消息抽取项目 ID 数组,最多五项;与 project_id 互斥 */
450
+ project_ids?: string[];
451
+ /** 自定义内容仅允许单个项目 */
452
+ project_id?: string;
453
+ extract_mode?: "profile_only";
454
+ meta_data?: Record<string, unknown>;
455
+ /** skill 三件套:skill 项目 + custom_content 时服务端强制,all-or-nothing */
456
+ skill_name?: string;
457
+ skill_description?: string;
458
+ skill_tags?: string[];
459
+ }
460
+ /**
461
+ * PENDING / RUNNING 是进行态;SUCCEEDED 是已验证的成功终态。
462
+ * SUCCESS 仅为旧契约兼容值,本轮线上未出现。
463
+ */
464
+ type MemoryEventStatus = "RUNNING" | "PENDING" | "SUCCEEDED" | "SUCCESS" | "FAILED" | "UNRECORDED";
465
+ /** 任务来源类型:一次 add-async 可能同时产生 observation/skill/user_profile/custom_observation/custom_skill event。 */
466
+ type MemoryEventResourceType = "observation" | "skill" | "user_profile" | "custom_observation" | "custom_skill";
467
+ /** 事件结果使用 snake_case;画像变更含属性 name,无 memory_node_id。 */
468
+ interface MemoryEventResult {
469
+ memory_type?: MemoryType | "user_profile";
470
+ name?: string;
471
+ /** ADD 时为添加内容,UPDATE 时为新内容,DELETE 时为旧内容 */
472
+ content?: string;
473
+ event?: "ADD" | "UPDATE" | "DELETE";
474
+ /** observation/skill 时为记忆节点 id;user_profile 时不存在 */
475
+ memory_node_id?: string;
476
+ /** 仅 UPDATE 时存在:旧节点内容 */
477
+ old_content?: string;
478
+ }
479
+ interface MemoryEvent {
480
+ created_at?: number;
481
+ event_id?: string;
482
+ event_type?: string;
483
+ memory_library_id?: string;
484
+ /** 执行任务的来源 id(project/profile 相应 id) */
485
+ resource_id?: string;
486
+ /** 已知值见 MemoryEventResourceType;保留未知服务端值 */
487
+ resource_type?: string;
488
+ /** 已知值见 MemoryEventStatus;未知状态继续轮询至超时 */
489
+ status?: string;
490
+ updated_at?: number;
491
+ user_id?: string;
492
+ /** 提交/运行中为空数组,完成后包含变更结果 */
493
+ result?: MemoryEventResult[];
494
+ }
495
+ /** POST /add-async 响应:提交回执,events 初始均为 PENDING。 */
496
+ interface MemoryAddAsyncResponse {
497
+ request_id: string;
498
+ event_id?: string;
499
+ events?: MemoryEvent[];
418
500
  }
419
- interface MemoryAddResponse {
501
+ /** GET /events/{event_id} 响应(CLI 内部轮询消费,不对外透出命令)。 */
502
+ interface MemoryEventResponse {
420
503
  request_id: string;
421
- memory_ids?: string[];
504
+ events?: MemoryEvent[];
422
505
  }
423
506
  interface MemorySearchRequest {
424
507
  user_id: string;
425
508
  messages?: MemoryMessage[];
426
- query?: string;
427
509
  top_k?: number;
510
+ /** 最小相似度阈值,值域 [0,1] */
511
+ min_score?: number;
512
+ plan_version?: MemoryPlanVersion;
428
513
  memory_library_id?: string;
514
+ /** 记忆片段规则 ID 数组,可多规则混合检索 */
515
+ project_ids?: string[];
516
+ /** @deprecated Use project_ids. */
517
+ project_id?: string;
518
+ /** 搜索筛选记忆类型;不传时服务端默认 ["observation"] */
519
+ memory_types?: MemoryType[];
520
+ /** @deprecated Use memory_types. */
521
+ memory_type?: MemoryType;
429
522
  }
430
523
  interface MemoryNode {
431
524
  memory_node_id: string;
432
525
  content: string;
433
526
  user_id?: string;
434
527
  meta_data?: Record<string, unknown>;
435
- created_at?: string;
436
- updated_at?: string;
528
+ /** 秒级 Unix 时间戳 */
529
+ created_at?: number;
530
+ /** 秒级 Unix 时间戳 */
531
+ updated_at?: number;
532
+ /** 记忆的相关时间(秒级):如 5-01 记录“明天有会议”,这里是 5-02 */
533
+ timestamp?: number;
534
+ /** add/update 时指定的项目 ID,可能为空 */
535
+ project_id?: string;
536
+ memory_type?: string;
537
+ /** 记忆节点状态(契约未给全枚举,示例为 "valid") */
538
+ status?: string;
539
+ /** 搜索分数(仅 search 响应) */
540
+ score?: number;
541
+ /** 多模态信息描述 */
542
+ media_desc?: string;
543
+ /** 多模态资源链接列表 */
544
+ media_urls?: string[];
545
+ /** 存在时返回;元素结构尚未通过多模态实测 */
546
+ multimodal_medias?: unknown[];
437
547
  }
438
548
  interface MemorySearchResponse {
439
549
  request_id: string;
550
+ /** 本次搜索生效的收费计划(回显) */
551
+ plan_version?: MemoryPlanVersion;
440
552
  memory_nodes: MemoryNode[];
441
553
  }
554
+ /** GET /memory_nodes/{id} 响应;skill content 保留 frontmatter。 */
555
+ interface MemoryNodeDetailResponse {
556
+ request_id: string;
557
+ memory_node?: MemoryNode;
558
+ }
559
+ /** Skill export strips frontmatter from content and exposes its metadata separately. */
560
+ interface MemorySkillExportResponse {
561
+ request_id: string;
562
+ memory_node?: MemoryNode & {
563
+ skill_name?: string;
564
+ skill_description?: string;
565
+ skill_tags?: string[];
566
+ };
567
+ }
442
568
  interface MemoryNodeListResponse {
443
569
  request_id: string;
444
570
  memory_nodes: MemoryNode[];
@@ -447,58 +573,114 @@ interface MemoryNodeListResponse {
447
573
  page_size?: number;
448
574
  }
449
575
  interface MemoryNodeUpdateRequest {
450
- user_id: string;
451
576
  custom_content: string;
452
577
  /** 非默认记忆库时必填(与控制台记忆库 ID 一致) */
453
578
  memory_library_id?: string;
579
+ /** 用户自定义信息(增量更新) */
580
+ meta_data?: Record<string, unknown>;
581
+ /** skill 三件套:节点为 skill 类型时服务端强制,all-or-nothing */
582
+ skill_name?: string;
583
+ skill_description?: string;
584
+ skill_tags?: string[];
454
585
  }
586
+ type MemoryExtractScene = "efficient" | "intelligent";
455
587
  interface ProfileAttribute {
456
588
  name: string;
457
- description: string;
458
- value?: string;
589
+ /** 内部字段;true 时需要 default_value */
590
+ immutable?: boolean;
591
+ description?: string;
592
+ default_value?: string;
459
593
  }
460
594
  interface ProfileSchemaCreateRequest {
595
+ extract_scene?: MemoryExtractScene;
461
596
  name: string;
462
597
  description?: string;
463
598
  attributes: ProfileAttribute[];
599
+ memory_library_id?: string;
600
+ plan_version?: MemoryPlanVersion;
464
601
  }
465
602
  interface ProfileSchemaCreateResponse {
466
603
  request_id: string;
467
604
  profile_schema_id: string;
468
605
  }
469
- interface UserProfileResponse {
606
+ interface ProfileSchemaSummary {
607
+ extract_scene?: MemoryExtractScene;
608
+ profile_schema_id: string;
609
+ name: string;
610
+ description?: string;
611
+ plan_version?: MemoryPlanVersion;
612
+ }
613
+ interface ProfileSchemaListResponse {
470
614
  request_id: string;
471
- profile: {
472
- schema_id: string;
473
- user_id: string;
474
- attributes: ProfileAttribute[];
475
- };
615
+ profile_schemas?: ProfileSchemaSummary[];
616
+ total?: number;
476
617
  }
477
- interface DashScopeKnowledgeRetrieveRequest {
478
- index_id: string;
479
- query: string;
480
- search_filters?: Array<Record<string, unknown>>;
481
- dense_similarity_top_k?: number;
482
- sparse_similarity_top_k?: number;
483
- enable_reranking?: boolean;
484
- rerank_top_n?: number;
485
- rerank?: Array<{
486
- model_name: string;
487
- rerank_mode?: string;
488
- rerank_instruct?: string;
489
- }>;
618
+ /** GetProfileSchema:属性带 attribute_id,是 UpdateProfileSchema 的操作句柄 */
619
+ interface ProfileSchemaAttribute extends ProfileAttribute {
620
+ attribute_id: string;
490
621
  }
491
- interface DashScopeKnowledgeRetrieveResponse {
622
+ interface ProfileSchemaDetailResponse {
623
+ extract_scene?: MemoryExtractScene;
624
+ plan_version?: MemoryPlanVersion;
492
625
  request_id: string;
493
- data: {
494
- total: number;
495
- nodes: Array<{
496
- text: string;
497
- score: number;
498
- metadata: Record<string, unknown>;
499
- }>;
626
+ name?: string;
627
+ description?: string;
628
+ attributes?: ProfileSchemaAttribute[];
629
+ }
630
+ interface ProfileSchemaAttributeOperation {
631
+ /** 内部字段,仅 op=add 支持 */
632
+ immutable?: boolean;
633
+ op: "add" | "update" | "delete";
634
+ /** op 为 update / delete 时必填 */
635
+ attribute_id?: string;
636
+ /** op 为 add 时必填 */
637
+ name?: string;
638
+ description?: string;
639
+ default_value?: string | null;
640
+ }
641
+ interface ProfileSchemaUpdateRequest {
642
+ extract_scene?: MemoryExtractScene;
643
+ name?: string;
644
+ description?: string;
645
+ attributes_operations?: ProfileSchemaAttributeOperation[];
646
+ memory_library_id?: string;
647
+ plan_version?: MemoryPlanVersion;
648
+ }
649
+ /** need_detail 模式下的单个画像值项。 */
650
+ interface UserProfileValueItem {
651
+ item_id?: number;
652
+ status?: string;
653
+ value?: string;
654
+ }
655
+ /** GetUserProfile 的属性:value 未提取时字段缺失;need_detail 时返回 value_items 列表 */
656
+ interface UserProfileAttribute {
657
+ id: string;
658
+ name: string;
659
+ description?: string;
660
+ value?: string;
661
+ value_items?: UserProfileValueItem[];
662
+ }
663
+ /** GetUserProfile 两种模式均为 snake_case,JSON 输出原样透传。 */
664
+ interface UserProfileResponse {
665
+ request_id: string;
666
+ profile?: {
667
+ schema_name?: string;
668
+ schema_description?: string;
669
+ attributes?: UserProfileAttribute[];
500
670
  };
501
671
  }
672
+ /** PATCH /profile_schemas/{id}/profile_values 请求体(画像值项增删改)。 */
673
+ interface UserProfileValueUpdateRequest {
674
+ /** 实体 ID,用户画像场景传 user_id */
675
+ entity_id: string;
676
+ attribute_id: string;
677
+ op_type: "add" | "update" | "delete";
678
+ /** op_type 为 update/delete 时必填 */
679
+ item_id?: number;
680
+ /** op_type 为 add/update 时使用 */
681
+ value?: string;
682
+ memory_library_id?: string;
683
+ }
502
684
  interface KnowledgeSearchRequest {
503
685
  query: string;
504
686
  agent_id: string;
@@ -1854,7 +2036,47 @@ export declare function resolveOpenApi(s: ResolutionSources): OpenApiCredential;
1854
2036
  /** Full auth snapshot from sources — what would resolve per domain (or undefined). */
1855
2037
  export declare function describeAuthState(s: ResolutionSources): AuthState;
1856
2038
  //#endregion
2039
+ //#region src/console/gateway.d.ts
2040
+ type ConsoleSite = "domestic" | "international";
2041
+ /**
2042
+ * Resolved console gateway settings (same defaults as {@link callConsoleGateway}).
2043
+ * 参数只需 settings 的 console 三元组;dry-run 展示分支直接传 settings。
2044
+ */
2045
+ export declare function effectiveConsoleGatewayConfig(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent">): {
2046
+ consoleRegion: string;
2047
+ consoleSite: ConsoleSite;
2048
+ consoleSwitchAgent?: number;
2049
+ };
2050
+ interface ConsoleGatewayRequest {
2051
+ /** Console API name, e.g. zeldaEasy.broadscope-bailian.freeTrial.queryFreeTierQuota */
2052
+ api: string;
2053
+ data: Record<string, unknown>;
2054
+ }
2055
+ /** Console-call signature shared by catalog helpers (`client.console` or an anonymous call). */
2056
+ type ConsoleCall = (api: string, data: Record<string, unknown>) => Promise<unknown>;
2057
+ /**
2058
+ * Build an anonymous (token-less) gateway caller for public catalog APIs such
2059
+ * as `listFoundationModels` — no console login required.
2060
+ */
2061
+ export declare function anonymousConsoleCall(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent" | "timeout">): ConsoleCall;
2062
+ /**
2063
+ * Invoke a Bailian **console** OpenAPI via the CLI gateway (`/cli/api.json`).
2064
+ * 目标(region/site/switchAgent)与 token 均由调用方解析后传入:Client.console 传
2065
+ * ConsoleCredential;公共目录类 API(如 advisor 的模型目录)可不带 token 匿名调用。
2066
+ */
2067
+ interface ConsoleGatewayTarget {
2068
+ region: string;
2069
+ site: ConsoleSite;
2070
+ switchAgent?: number;
2071
+ token?: string;
2072
+ }
2073
+ export declare function callConsoleGateway(target: ConsoleGatewayTarget, timeoutSec: number, { api, data }: ConsoleGatewayRequest, settings?: Pick<Settings, "verbose">): Promise<unknown>;
2074
+ //#endregion
1857
2075
  //#region src/auth/refresh-token.d.ts
2076
+ /** Console 目标优先;仅在地域缺省时从已知模型域名推导,不猜测未知站点。 */
2077
+ export declare function resolveCLIAccessTokenTarget(settings: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent">, baseUrl: string): Omit<ConsoleGatewayTarget, "token">;
2078
+ /** 首次登录只读验证;直接调用网关,避免错误触发递归刷新。 */
2079
+ export declare function validateConsoleAccessToken(target: ConsoleGatewayTarget, settings: Settings): Promise<void>;
1858
2080
  export declare function generateCLIAccessToken(opts: {
1859
2081
  identity: Identity;
1860
2082
  settings: Settings;
@@ -1862,7 +2084,10 @@ export declare function generateCLIAccessToken(opts: {
1862
2084
  accessKeyId: string;
1863
2085
  accessKeySecret: string;
1864
2086
  securityToken?: string;
1865
- }): Promise<any>;
2087
+ }): Promise<{
2088
+ cliAccessToken: string;
2089
+ Success?: boolean;
2090
+ }>;
1866
2091
  /**
1867
2092
  * Try to refresh the console access_token using stored AK/SK.
1868
2093
  * Returns the new token on success, or null if AK/SK are not available.
@@ -1871,6 +2096,8 @@ export declare function refreshAccessToken(opts: {
1871
2096
  identity: Identity;
1872
2097
  settings: Settings;
1873
2098
  baseUrl: string;
2099
+ /** 重试原请求作为验证;独立调用时默认通过只读 loginInfo 校验。 */
2100
+ validateToken?: (token: string) => Promise<void>;
1874
2101
  }): Promise<string | null>;
1875
2102
  //#endregion
1876
2103
  //#region src/client/endpoints.d.ts
@@ -1892,16 +2119,23 @@ export declare function taskPath(taskId: string): string;
1892
2119
  export declare function modelsLimitsPath(): string;
1893
2120
  export declare function modelsPermissionsPath(): string;
1894
2121
  export declare function appCompletionPath(appId: string): string;
1895
- export declare function memoryAddPath(): string;
2122
+ export declare function memoryEndpoint(workspaceId: string, path: string): string;
2123
+ export declare function memoryAddAsyncPath(): string;
2124
+ /** GET /api/v2/apps/memory/events/{event_id} — async add task status (internal polling). */
2125
+ export declare function memoryEventPath(eventId: string): string;
1896
2126
  export declare function memorySearchPath(): string;
1897
2127
  export declare function memoryListPath(): string;
1898
2128
  export declare function memoryNodePath(nodeId: string): string;
2129
+ /** GET /api/v2/apps/memory/skill/export/{memory_node_id} — skill memory export. */
2130
+ export declare function memorySkillExportPath(nodeId: string): string;
1899
2131
  export declare function speechSynthesizePath(): string;
1900
2132
  export declare function speechRecognizePath(): string;
1901
2133
  export declare function speechVocabularyPath(): string;
1902
2134
  export declare function profileSchemaPath(): string;
2135
+ export declare function profileSchemaItemPath(schemaId: string): string;
1903
2136
  export declare function userProfilePath(schemaId: string): string;
1904
- export declare function knowledgeRetrievePath(): string;
2137
+ /** PATCH /api/v2/apps/memory/profile_schemas/{id}/profile_values — value item add/update/delete. */
2138
+ export declare function userProfileValuesPath(schemaId: string): string;
1905
2139
  export declare function workspaceMaaSBaseUrl(workspaceId: string, region?: string): string;
1906
2140
  export declare function knowledgeSearchEndpoint(workspaceId: string): string;
1907
2141
  export declare function knowledgeChatEndpoint(workspaceId: string): string;
@@ -2238,42 +2472,6 @@ interface ServerSentEvent {
2238
2472
  }
2239
2473
  export declare function parseSSE(response: Response): AsyncGenerator<ServerSentEvent>;
2240
2474
  //#endregion
2241
- //#region src/console/gateway.d.ts
2242
- type ConsoleSite = "domestic" | "international";
2243
- /**
2244
- * Resolved console gateway settings (same defaults as {@link callConsoleGateway}).
2245
- * 参数只需 settings 的 console 三元组;dry-run 展示分支直接传 settings。
2246
- */
2247
- export declare function effectiveConsoleGatewayConfig(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent">): {
2248
- consoleRegion: string;
2249
- consoleSite: ConsoleSite;
2250
- consoleSwitchAgent?: number;
2251
- };
2252
- interface ConsoleGatewayRequest {
2253
- /** Console API name, e.g. zeldaEasy.broadscope-bailian.freeTrial.queryFreeTierQuota */
2254
- api: string;
2255
- data: Record<string, unknown>;
2256
- }
2257
- /** Console-call signature shared by catalog helpers (`client.console` or an anonymous call). */
2258
- type ConsoleCall = (api: string, data: Record<string, unknown>) => Promise<unknown>;
2259
- /**
2260
- * Build an anonymous (token-less) gateway caller for public catalog APIs such
2261
- * as `listFoundationModels` — no console login required.
2262
- */
2263
- export declare function anonymousConsoleCall(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent" | "timeout">): ConsoleCall;
2264
- /**
2265
- * Invoke a Bailian **console** OpenAPI via the CLI gateway (`/cli/api.json`).
2266
- * 目标(region/site/switchAgent)与 token 均由调用方解析后传入:Client.console 传
2267
- * ConsoleCredential;公共目录类 API(如 advisor 的模型目录)可不带 token 匿名调用。
2268
- */
2269
- interface ConsoleGatewayTarget {
2270
- region: string;
2271
- site: ConsoleSite;
2272
- switchAgent?: number;
2273
- token?: string;
2274
- }
2275
- export declare function callConsoleGateway(target: ConsoleGatewayTarget, timeoutSec: number, { api, data }: ConsoleGatewayRequest, settings?: Pick<Settings, "verbose">): Promise<unknown>;
2276
- //#endregion
2277
2475
  //#region src/console/models.d.ts
2278
2476
  export declare const MODEL_LIST_API = "zeldaHttp.dashscopeModel./zelda/api/v1/modelCenter/listFoundationModels";
2279
2477
  export declare const PREDICT_CONFIG_API = "zeldaEasy.bmp.modelPredictRpcService.getPredictParamConfig";
@@ -4349,6 +4547,19 @@ export declare function resolveBooleanFlag(flagValue: unknown, defaultWhenUnset:
4349
4547
  /** Resolve `--watermark`; command flag overrides config, then defaults to true. */
4350
4548
  export declare function resolveWatermark(flagValue: unknown, configuredValue?: boolean): boolean;
4351
4549
  //#endregion
4550
+ //#region src/telemetry/caller.d.ts
4551
+ /** Parse BAILIAN_CALLER_*. Only an explicit agent is `agent`; everything else is `unknown`. */
4552
+ type CallerAttribution = {
4553
+ callerType: "unknown";
4554
+ } | {
4555
+ callerType: "agent";
4556
+ callerName: string;
4557
+ skillName?: string;
4558
+ skillVersion?: string;
4559
+ };
4560
+ /** Env-only attribution; no TTY or install-path heuristics. */
4561
+ export declare function readCaller(env: NodeJS.ProcessEnv): CallerAttribution;
4562
+ //#endregion
4352
4563
  //#region src/telemetry/event.d.ts
4353
4564
  interface TrackingEvent {
4354
4565
  command: string;
@@ -4364,6 +4575,11 @@ interface TrackingEvent {
4364
4575
  os: string;
4365
4576
  authMethod?: AuthRequirement;
4366
4577
  params?: Record<string, unknown>;
4578
+ /** Always present on new CLI events: `agent` or `unknown`. */
4579
+ callerType: CallerAttribution["callerType"];
4580
+ callerName?: string;
4581
+ skillName?: string;
4582
+ skillVersion?: string;
4367
4583
  }
4368
4584
  export declare function createTrackingEvent(opts: {
4369
4585
  command: string;
@@ -4378,6 +4594,7 @@ export declare function createTrackingEvent(opts: {
4378
4594
  cliVersion: string;
4379
4595
  authMethod?: AuthRequirement;
4380
4596
  params?: Record<string, unknown>;
4597
+ caller: CallerAttribution;
4381
4598
  }): TrackingEvent;
4382
4599
  //#endregion
4383
4600
  //#region src/telemetry/sink.d.ts
@@ -4401,6 +4618,8 @@ interface TrackingDeps {
4401
4618
  identity: Identity;
4402
4619
  settings: Settings;
4403
4620
  authMethod?: AuthRequirement;
4621
+ /** From `readCaller(process.env)` in telemetryStage. */
4622
+ caller: CallerAttribution;
4404
4623
  }
4405
4624
  export declare function trackCommandExecution(deps: TrackingDeps, commandPath: string[], flags: Record<string, unknown>, fn: () => Promise<void>): Promise<void>;
4406
4625
  //#endregion
@@ -5035,4 +5254,4 @@ export declare function installSkillWithFanout(name: string, entry: SkillIndexEn
5035
5254
  export declare function listSkillDirsOnDisk(): string[];
5036
5255
  export declare function computeSkillStatuses(index: SkillsIndex, lock: SkillLockFile, diskNames: string[]): SkillStatusRow[];
5037
5256
  //#endregion
5038
- 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, DashScopeKnowledgeRetrieveRequest, DashScopeKnowledgeRetrieveResponse, 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, MemoryAddRequest, MemoryAddResponse, MemoryMessage, MemoryNode, MemoryNodeListResponse, MemoryNodeUpdateRequest, MemorySearchRequest, MemorySearchResponse, 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, ProfileSchemaCreateRequest, ProfileSchemaCreateResponse, 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, UserProfileResponse, ValidateOpts, ValidationIssue, ValidationResult, ValidationSeverity, ValidationStats, ValidatorSpec, VocabularyEntry, VocabularyEnvelope, VocabularyListItem, VocabularyRequest };
5257
+ 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, 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, TrackingDeps, TrackingEvent, TrackingIdentity, TrainingProfile, UserProfileAttribute, UserProfileResponse, UserProfileValueItem, UserProfileValueUpdateRequest, ValidateOpts, ValidationIssue, ValidationResult, ValidationSeverity, ValidationStats, ValidatorSpec, VocabularyEntry, VocabularyEnvelope, VocabularyListItem, VocabularyRequest };