page-agent-sdk 3.8.0 → 3.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-agent-sdk",
3
- "version": "3.8.0",
3
+ "version": "3.9.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
@@ -722,7 +722,7 @@ export interface ChatSdkOptions {
722
722
  /** agent 实例 id(多 agent 共存隔离;不传则随机生成并告警,刷新后无法恢复) */
723
723
  id?: string;
724
724
  /** 持久化:默认关闭;赋值后端字符串('indexed'/'session'/'local'/'memory')或配置对象开启;false 关闭 */
725
- storage?: StorageBackendType | StorageConfig | false;
725
+ storage?: StorageBackendType | StorageConfig | false; // 3.9+ 默认 'memory'(纯内存多会话,不落盘);false 显式关闭;'indexed' 跨刷新
726
726
  /** 会话控制 */
727
727
  session?: SessionOptions;
728
728
  /** 共享上下文:默认 false;true 时同 id 复用同一核心(messages/agent/工作区) */