page-agent-sdk 1.3.4 → 1.3.6

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/README.md CHANGED
@@ -368,7 +368,7 @@ Framework-agnostic integration: `demo/plain.html` (importmap + esm.sh).
368
368
 
369
369
  ```bash
370
370
  npm test # 364 assertions (tsx, source-level; no LLM dependency)
371
- npm run test:e2e # 48 integration assertions (node, built dist; createChatSdk top-level API: default systemPrompt(capability overview) / dynamic register / inspect(tools/middleware reflect caps) / subagents declared / hook/onEvent)
371
+ npm run test:e2e # 120 integration assertions (node, built dist; covers APIs/options/modules/simple&complex scenes: default systemPrompt(capability overview) / dynamic register + inspect sync / inspect(tools/middleware/subagent/verify/mcp/todos/lastCompression/checkpoints reflect config) / custom tools/middleware/skills/memory injection / switchSession(on/off) / shareContext on/off sharing/independent / storage backends + object config / presets(3) / checkpoint / exports complete(39+ fns/components) / util fns usable(isQuotaError/estimateTokens/jpEval/searchJson) / source=builtin / mount boundary / hook multi-listener / llm config / error scenes)
372
372
  ```
373
373
 
374
374
  ## Local npm package test
package/README.zh-CN.md CHANGED
@@ -313,7 +313,7 @@ createChatSdk({
313
313
 
314
314
  ```bash
315
315
  npm test # 364 项断言(tsx 源码级,不依赖 LLM)
316
- npm run test:e2e # 48 项集成断言(node 跑构建产物 dist;createChatSdk 顶层 API:默认 systemPrompt(含能力概述) / 动态注册 / inspect(tools/middleware 反映 caps) / subagents 预声明 / hook/onEvent 联动)
316
+ npm run test:e2e # 120 项集成断言(node 跑构建产物 dist;覆盖各 API/配置项/功能模块/简单与复杂场景:默认 systemPrompt(含能力概述) / 动态注册与 inspect 同步 / inspect(tools/middleware/subagent/verify/mcp/todos/lastCompression/checkpoints 反映配置) / 自定义 tools/middleware/skills/memory 注入 / switchSession(开/未开) / shareContext 开/关共享独立 / storage 后端+对象配置 / presets 三预设 / checkpoint / 导出项完整(39+ 函数/组件) / 工具函数可用(isQuotaError/estimateTokens/jpEval/searchJson) / source=builtin / mount 边界 / hook 多监听器 / llm 配置 / 错误场景)
317
317
  ```
318
318
 
319
319
  ## 本地 npm 包测试
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-agent-sdk",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
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",