page-agent-sdk 3.4.0 → 3.5.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 +4 -4
- package/README.zh-CN.md +4 -4
- package/dist/page-agent-sdk.headless.js +1934 -1876
- package/dist/page-agent-sdk.iife.js +148 -144
- package/dist/page-agent-sdk.js +3705 -3647
- package/dist/page-agent-sdk.umd.cjs +102 -98
- package/package.json +1 -1
- package/types/index.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "page-agent-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.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",
|
package/types/index.d.ts
CHANGED
|
@@ -1424,6 +1424,12 @@ export interface CreateHtmlSubagentOptions {
|
|
|
1424
1424
|
codeField?: string;
|
|
1425
1425
|
/** 自动注入主 agent 委派编排段(含正确 use_<id>);默认 true,false=不注入 */
|
|
1426
1426
|
orchestratorPrompt?: boolean;
|
|
1427
|
+
/**
|
|
1428
|
+
* 组件工匠笔记;默认 true:子 agent 收口回复 [note] 行沉淀为组件 __pgNotes(随 data 持久化),
|
|
1429
|
+
* 下次委派同组件经文件地图注入("前任的交接":设计决策/用户偏好/踩坑)—— 同组件跨委派设计意图持续。
|
|
1430
|
+
* false 关闭(零沉淀零注入)
|
|
1431
|
+
*/
|
|
1432
|
+
craftNotes?: boolean;
|
|
1427
1433
|
[k: string]: any;
|
|
1428
1434
|
}
|
|
1429
1435
|
export declare function createRagSubagent(options: CreateRagSubagentOptions): SubagentConfig;
|