page-agent-sdk 1.3.12 → 1.3.13

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": "1.3.12",
3
+ "version": "1.3.13",
4
4
  "type": "module",
5
5
  "description": "框架无关的页面内 Agent JS SDK —— 以对话框形态挂载到任意网页,通过自定义 tool 读写宿主 window 属性(GET 抓文档),具备 planning/skills/虚拟工作区/快照回退/context 管理能力。Vue 打包进库,使用者无需安装 Vue。",
6
6
  "main": "./dist/page-agent-sdk.umd.cjs",
package/types/index.d.ts CHANGED
@@ -419,6 +419,8 @@ export declare const fetchTools: any[];
419
419
  export declare function defineWindowToolset(props: WindowPropSpec[], opts?: WindowOpsOptions): any[];
420
420
  export declare function defineSkill(spec: SkillSpec): SkillSpec;
421
421
  export declare function createAgent(options: any): any;
422
+ /** 检测模型把工具调用写成文本(伪 XML/标签)而非标准 tool_calls 的异常格式;主循环据此回灌 feedback 自纠 */
423
+ export declare function detectGarbledToolCall(content: string): boolean;
422
424
  export declare function createSubagentMiddleware(opts: any): any;
423
425
  export declare function createVerifyMiddleware(opts: VerifyMiddlewareOptions): any;
424
426
  export declare function createWriteBackCheck(opts?: WriteBackCheckOptions): VerifyCheck;