page-agent-sdk 4.11.0 → 4.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-agent-sdk",
3
- "version": "4.11.0",
3
+ "version": "4.12.0",
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",
@@ -348,6 +348,10 @@ export interface AgentInfo {
348
348
  workingMemory?: WorkingMemory;
349
349
  /** 写驱动过期读失效会话累计(stale-read-invalidation;写后旧 read/query/search 结果被替换为占位的次数) */
350
350
  staleReadsInvalidated?: number;
351
+ /** 模型调用重试会话累计(retry-visibility;启动/body 阶段自动重试次数 —— 环境故障 vs SDK 回归的第一判据) */
352
+ llmRetries?: number;
353
+ /** 模型调用最终失败会话累计(retry-visibility;重试耗尽/不可重试类终败次数) */
354
+ llmCallFailures?: number;
351
355
  /** 当前上下文聚焦焦点(focus 中间件;兼容:首个;未聚焦/未开启 → undefined) */
352
356
  focus?: Focus;
353
357
  /** 全部聚焦焦点(multi-focus;空数组=未聚焦) */
package/types/index.d.ts CHANGED
@@ -683,6 +683,10 @@ export interface AgentInfo {
683
683
  workingMemory?: WorkingMemory;
684
684
  /** 写驱动过期读失效会话累计(stale-read-invalidation;写后旧 read/query/search 结果被替换为占位的次数) */
685
685
  staleReadsInvalidated?: number;
686
+ /** 模型调用重试会话累计(retry-visibility;启动/body 阶段自动重试次数 —— 环境故障 vs SDK 回归的第一判据) */
687
+ llmRetries?: number;
688
+ /** 模型调用最终失败会话累计(retry-visibility;重试耗尽/不可重试类终败次数) */
689
+ llmCallFailures?: number;
686
690
  /** 当前上下文聚焦焦点(focus 中间件;兼容:首个;未聚焦/未开启 → undefined) */
687
691
  focus?: Focus;
688
692
  /** 全部聚焦焦点(multi-focus;空数组=未聚焦) */