page-agent-sdk 3.43.0 → 3.43.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-agent-sdk",
3
- "version": "3.43.0",
3
+ "version": "3.43.2",
4
4
  "type": "module",
5
5
  "description": "AI agent SDK for web pages — embed a chat assistant that edits page data via schema-validated tools. A lighter, framework-agnostic alternative to CopilotKit/LangChain for in-page JSON-editing agents. Vue-bundled; works with DeepSeek, OpenAI, MCP.",
6
6
  "main": "./dist/page-agent-sdk.umd.cjs",
@@ -318,7 +318,7 @@ export interface AgentInfo {
318
318
  memory: string;
319
319
  middleware: string[];
320
320
  todos: { id: string; content: string; status: string }[];
321
- /** 规划阶段防死循环状态(maxPlanRevisions 预算;planning 关闭时 inPlanning 恒 false) */
321
+ /** 规划阶段防死循环状态(rounds = 计划修订次数,调研轮不计;planning 关闭时 inPlanning 恒 false) */
322
322
  planPhase?: { inPlanning: boolean; rounds: number; limit: number };
323
323
  /** 当前任务目标锚点(mission 中间件;未开启/未 capture → undefined) */
324
324
  mission?: Mission;
@@ -818,9 +818,9 @@ export interface ChatSdkOptions {
818
818
  /** 内存中保留的对话轮数上限(默认 50);超限把最旧轮次压缩为摘要 system 消息(防 OOM);0 关闭 */
819
819
  maxMemoryRounds?: number;
820
820
  debug?: boolean;
821
- /** agent 工具调用轮次上限(默认 15);大 JSON 分块构建(draft_write×N + draft_commit + read 确认)是多轮场景,可能触顶被截断,建议调大到 20-30 */
821
+ /** agent 工具调用轮次上限(3.43 起默认 30);整页多组件搭建等计划规模天然需要多轮,预算吃紧时 SDK 自动注入两档轮次预算提示引导收口 */
822
822
  maxToolRounds?: number;
823
- /** 规划阶段总轮次预算(默认 5);planning 状态下超限 write_todos/update_todo 回灌,防"光规划不执行"死循环。与 maxIterations 正交 */
823
+ /** 计划修订次数上限(默认 5,只计 write_todos 调用,调研轮不计);超限改计划形态的调用回灌(update_todo 纯 status/evidence 进度跟踪放行),防"反复改计划不执行"死循环。与 maxIterations 正交 */
824
824
  maxPlanRevisions?: number;
825
825
  /** 模型调用失败自动重试次数(默认 2;网络/429/5xx 重试,4xx 与 abort 不重试) */
826
826
  maxRetries?: number;
package/types/index.d.ts CHANGED
@@ -654,7 +654,7 @@ export interface AgentInfo {
654
654
  memory: string;
655
655
  middleware: string[];
656
656
  todos: { id: string; content: string; status: string }[];
657
- /** 规划阶段防死循环状态(maxPlanRevisions 预算;planning 关闭时 inPlanning 恒 false) */
657
+ /** 规划阶段防死循环状态(rounds = 计划修订次数,调研轮不计;planning 关闭时 inPlanning 恒 false) */
658
658
  planPhase?: { inPlanning: boolean; rounds: number; limit: number };
659
659
  /** 当前任务目标锚点(mission 中间件;未开启/未 capture → undefined) */
660
660
  mission?: Mission;
@@ -1207,9 +1207,9 @@ export interface ChatSdkOptions {
1207
1207
  /** 内存中保留的对话轮数上限(默认 50);超限把最旧轮次压缩为摘要 system 消息(防 OOM);0 关闭 */
1208
1208
  maxMemoryRounds?: number;
1209
1209
  debug?: boolean;
1210
- /** agent 工具调用轮次上限(默认 15);大 JSON 分块构建(draft_write×N + draft_commit + read 确认)是多轮场景,可能触顶被截断,建议调大到 20-30 */
1210
+ /** agent 工具调用轮次上限(3.43 起默认 30);整页多组件搭建等计划规模天然需要多轮,预算吃紧时 SDK 自动注入两档轮次预算提示引导收口 */
1211
1211
  maxToolRounds?: number;
1212
- /** 规划阶段总轮次预算(默认 5);planning 状态下超限 write_todos/update_todo 回灌,防"光规划不执行"死循环。与 maxIterations 正交 */
1212
+ /** 计划修订次数上限(默认 5,只计 write_todos 调用,调研轮不计);超限改计划形态的调用回灌(update_todo 纯 status/evidence 进度跟踪放行),防"反复改计划不执行"死循环。与 maxIterations 正交 */
1213
1213
  maxPlanRevisions?: number;
1214
1214
  /** 模型调用失败自动重试次数(默认 2;网络/429/5xx 重试,4xx 与 abort 不重试) */
1215
1215
  maxRetries?: number;