page-agent-sdk 1.3.0 → 1.3.4

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
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/page-agent-sdk.svg)](https://www.npmjs.com/package/page-agent-sdk)
10
10
  [![license](https://img.shields.io/badge/license-ISC-blue.svg)](./LICENSE)
11
- [![tests](https://img.shields.io/badge/self%20tests-341%20asserts-brightgreen.svg)](#self-tests)
11
+ [![tests](https://img.shields.io/badge/self%20tests-364%20asserts-brightgreen.svg)](#self-tests)
12
12
 
13
13
  ---
14
14
 
@@ -367,7 +367,8 @@ Framework-agnostic integration: `demo/plain.html` (importmap + esm.sh).
367
367
  ## Self-tests
368
368
 
369
369
  ```bash
370
- npm test # 341 assertions, no LLM dependency
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
372
  ```
372
373
 
373
374
  ## Local npm package test
package/README.zh-CN.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/page-agent-sdk.svg)](https://www.npmjs.com/package/page-agent-sdk)
10
10
  [![license](https://img.shields.io/badge/license-ISC-blue.svg)](./LICENSE)
11
- [![tests](https://img.shields.io/badge/self%20tests-341%20asserts-brightgreen.svg)](#自测)
11
+ [![tests](https://img.shields.io/badge/self%20tests-364%20asserts-brightgreen.svg)](#自测)
12
12
 
13
13
  ---
14
14
 
@@ -312,7 +312,8 @@ createChatSdk({
312
312
  ## 自测
313
313
 
314
314
  ```bash
315
- npm test # 341 项断言,不依赖 LLM
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
317
  ```
317
318
 
318
319
  ## 本地 npm 包测试