zywlagent 0.1.7 → 0.1.8

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
@@ -20,13 +20,14 @@ import { mountCallerAgentChat } from "zywlagent";
20
20
  const cleanup = mountCallerAgentChat({
21
21
  buttonId: "my-agent-button",
22
22
  GIS_AGENT_PLATFORM_URL: "http://服务器IP:8135",
23
+ accountId: "user-10001",
23
24
  style: { right: "24px", bottom: "80px", width: "520px", height: "700px" },
24
25
  onEvent(event) { console.log(event); },
25
26
  });
26
27
  // 页面卸载时调用 cleanup()
27
28
  ```
28
29
 
29
- 新包需与更新后的 Platform 后端一起部署。不同 IP 的 HTTP 直连会自动使用请求头会话,当前标签页刷新后可继续;同源接入仍使用 Cookie。打包和更新 GIS 依赖由接入方执行,详见 docs/接入说明.md。
30
+ 传入稳定的 `accountId` 后,同一账号在不同机器上可读取同一份历史;未传时沿用匿名会话。新包需与更新后的 Platform 后端一起部署。打包和更新 GIS 依赖由接入方执行,详见 docs/接入说明.md。
30
31
 
31
32
  ## 目录
32
33