page-agent-sdk 2.20.0 → 2.20.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/types/index.d.ts CHANGED
@@ -147,6 +147,8 @@ export interface SubagentConfig {
147
147
  temperature?: number;
148
148
  maxTokens?: number;
149
149
  maxToolRounds?: number;
150
+ /** 子 agent 可写路径前缀白名单(给子 agent 写权限;写工具包 path guard,越界 PATH_OUT_OF_SCOPE;整体 set 禁)。subagent-writable Phase 2 */
151
+ writablePaths?: string[];
150
152
  }
151
153
  export interface AgentInfo {
152
154
  id: string;
@@ -996,7 +998,15 @@ export interface SubagentsController {
996
998
  remove(id: string): boolean;
997
999
  get(): SubagentConfig[];
998
1000
  }
999
- export interface SubagentOptions { [k: string]: any }
1001
+ /** spawn_agent / spawn_agents 运行时选项(role/tools/writablePaths 等可运行时覆盖) */
1002
+ export interface SubagentOptions {
1003
+ role?: string;
1004
+ tools?: string[];
1005
+ /** 子 agent 可写路径前缀白名单(运行时覆盖;写工具包 path guard,越界 PATH_OUT_OF_SCOPE)。subagent-writable Phase 2 */
1006
+ writablePaths?: string[];
1007
+ model?: string;
1008
+ [k: string]: any;
1009
+ }
1000
1010
  export interface SubagentLlmConfig { [k: string]: any }
1001
1011
 
1002
1012
  // checkpoint / dataOps / permissions