page-agent-sdk 4.12.0 → 4.14.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/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)](https://github.com/whyymj/page-agent-sdk/blob/master/LICENSE)
11
- [![tests](https://img.shields.io/badge/self%20tests-3465%20asserts-brightgreen.svg)](#self-tests)
11
+ [![tests](https://img.shields.io/badge/self%20tests-3473%20asserts-brightgreen.svg)](#self-tests)
12
12
 
13
13
  ---
14
14
 
@@ -113,6 +113,8 @@ At its core, it gives the AI a **standardized, safe JSON-operation channel**. AI
113
113
  npm install page-agent-sdk zod @langchain/openai @langchain/core
114
114
  ```
115
115
 
116
+ > Note: `@langchain/openai` is a **de-facto required dependency** (statically imported by the SDK — needed even for Anthropic-only setups; optional-peer conversion was evaluated and rejected). `@langchain/anthropic` / `@modelcontextprotocol/sdk` are truly optional (dynamic import).
117
+
116
118
  ```ts
117
119
  import { createChatSdk } from 'page-agent-sdk'
118
120
  import { z } from 'zod'
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)](https://github.com/whyymj/page-agent-sdk/blob/master/LICENSE)
11
- [![tests](https://img.shields.io/badge/self%20tests-3465%20asserts-brightgreen.svg)](#自测)
11
+ [![tests](https://img.shields.io/badge/self%20tests-3473%20asserts-brightgreen.svg)](#自测)
12
12
 
13
13
  ---
14
14
 
@@ -113,6 +113,8 @@
113
113
  npm install page-agent-sdk zod @langchain/openai @langchain/core
114
114
  ```
115
115
 
116
+ > 注:`@langchain/openai` 为**事实必需依赖**(SDK 静态引用,Anthropic-only 用户也需安装;optional peer 化已评估否决)。`@langchain/anthropic` / `@modelcontextprotocol/sdk` 为真可选(动态 import)。
117
+
116
118
  ```ts
117
119
  import { createChatSdk } from 'page-agent-sdk'
118
120
  import { z } from 'zod'