@weadmin/overseas-tool 0.1.30 → 0.1.33

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.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* overseas-tool | Type declarations | Generated 2026-08-19T06:58:56.435Z */
1
+ /* overseas-tool | Type declarations | Generated 2026-08-24T07:19:54.466Z */
2
2
  import { AgentDefinition } from '@tencent-ai/agent-sdk';
3
3
  import { z } from 'zod';
4
4
 
@@ -52,12 +52,15 @@ export interface CreateSessionOptions {
52
52
  systemPrompt: string;
53
53
  agents: Record<string, AgentDefinition>;
54
54
  mcpServers: Record<string, McpServerSpec>;
55
+ /** 模型可见的完整内置工具面;不在此列表的工具不可调用。 */
56
+ tools: string[];
57
+ /** tools 中无需交互式权限提示、可直接执行的必要工具。 */
55
58
  allowedTools: string[];
56
59
  maxTurns: number;
57
60
  /** 拦截 AskUserQuestion 等工具,默认全部 allow */
58
61
  canUseTool?: ToolPolicy;
59
62
  /**
60
- * Deterministic guard that runs before Task/Agent even in
63
+ * Deterministic guard that runs before every executable localization tool even in
61
64
  * bypassPermissions mode. Unlike canUseTool, this is not a permission
62
65
  * prompt and therefore cannot be skipped by the SDK permission mode.
63
66
  */
@@ -924,7 +927,8 @@ export declare const PIPELINE_STAGES: readonly [
924
927
  ];
925
928
  export type PipelineStageId = (typeof PIPELINE_STAGES)[number]["id"];
926
929
  export type PipelineRunMode = I18nConfig["runMode"];
927
- export type PipelineRunStatus = "idle" | "preparing" | "running" | "waiting-approval" | "blocked" | "completed" | "failed" | "cancelled";
930
+ export type PipelineRunStatus = "idle" | "preparing" | "running" | "waiting-worker" | "waiting-input" | "waiting-approval" | "blocked" | "completed" | "failed" | "cancelled";
931
+ export type PipelineWorkerWaitPhase = "foreground" | "heartbeat";
928
932
  export type PipelineStageState = "pending" | "active" | "completed" | "blocked" | "failed";
929
933
  export type PipelineStepState = PipelineStageState | "skipped";
930
934
  export interface PipelineArtifact {
@@ -967,6 +971,10 @@ export interface PipelineSnapshot {
967
971
  runMode: PipelineRunMode;
968
972
  approvalMode: ApprovalMode;
969
973
  currentStage?: PipelineStageId;
974
+ /** CLI 正在模型轮次之外等待的真实 worker;此时绝不能展示用户输入框。 */
975
+ waitingWorkers?: string[];
976
+ /** 前两分钟为 foreground,仍未完成后转为 heartbeat,但 CLI 始终保持阻塞。 */
977
+ workerWaitPhase?: PipelineWorkerWaitPhase;
970
978
  stages: PipelineStageSnapshot[];
971
979
  updatedAt: string;
972
980
  error?: string;
@@ -1014,6 +1022,11 @@ export interface InspectOptions {
1014
1022
  error?: string;
1015
1023
  /** Runtime host 内存中的确认锁,优先于编排器可能短暂误写的配置。 */
1016
1024
  approvalStage?: 2 | 3 | 4;
1025
+ /** 活动请求携带的确认策略;配置落盘前也必须让 Panel 看到同一个值。 */
1026
+ approvalMode?: ApprovalMode;
1027
+ /** 模型轮次外正在等待的 worker,供 Panel 展示专用等待态。 */
1028
+ waitingWorkers?: readonly string[];
1029
+ workerWaitPhase?: PipelineWorkerWaitPhase;
1017
1030
  }
1018
1031
  export declare function inspectPipelineSnapshot(projectPath: string, opts?: InspectOptions): Promise<PipelineSnapshot>;
1019
1032
  /**