page-agent-sdk 4.8.3 → 4.9.1
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 +2 -2
- package/README.zh-CN.md +2 -2
- package/dist/page-agent-sdk.headless.js +2652 -2526
- package/dist/page-agent-sdk.iife.js +140 -141
- package/dist/page-agent-sdk.js +5634 -5508
- package/dist/page-agent-sdk.legacy.js +15239 -15103
- package/dist/page-agent-sdk.umd.cjs +111 -112
- package/package.json +1 -1
- package/types/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "page-agent-sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.1",
|
|
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
|
@@ -1354,6 +1354,8 @@ export interface Focus {
|
|
|
1354
1354
|
path: string;
|
|
1355
1355
|
/** 人类可读标签,如「导航栏」(注入目标提示 + ChatDialog chip 显示;可选) */
|
|
1356
1356
|
label?: string;
|
|
1357
|
+
/** 元素稳定锚(4.9.2):聚焦时从最近数组元素祖先捕获的 __pgId;调序后消费面按它跟随元素(锚「值」不锚「位置」)。非 codeAsset 数据恒 undefined */
|
|
1358
|
+
pgId?: string;
|
|
1357
1359
|
}
|
|
1358
1360
|
|
|
1359
1361
|
export interface ChatSdk {
|