zywlagent 0.1.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 ADDED
@@ -0,0 +1,39 @@
1
+ # GIS Agent
2
+
3
+ 独立维护的前端 npm 包:zywlgis-agent。
4
+
5
+ ## 本地维护
6
+
7
+ ```sh
8
+ npm install
9
+ npm test
10
+ npm run build
11
+ npm run pack
12
+ ```
13
+
14
+ 也可使用 pnpm install / pnpm test / pnpm build / pnpm pack,但团队应统一锁文件管理器;本项目提供 npm package-lock.json。需要 Node 22.13+。npm run dev 启动独立预览。
15
+
16
+ ## 接入方
17
+
18
+ ```js
19
+ import { mountCallerAgentChat } from "zywlgis-agent";
20
+ const cleanup = mountCallerAgentChat({
21
+ buttonId: "my-agent-button",
22
+ GIS_AGENT_PLATFORM_URL: "http://服务器IP:8135",
23
+ style: { right: "24px", bottom: "80px", width: "520px", height: "700px" },
24
+ onEvent(event) { console.log(event); },
25
+ });
26
+ // 页面卸载时调用 cleanup()
27
+ ```
28
+
29
+ 先用 npm install ./zywlgis-agent-0.1.0.tgz 安装交付包;正式发布后可按包名安装。详见 docs/接入说明.md。
30
+
31
+ ## 目录
32
+
33
+ - src/AgentChat:Platform 聊天 UI、请求客户端、按钮桥接。
34
+ - src/assets:随包构建的头像。
35
+ - examples:独立预览。
36
+ - scripts:请求与入口回归测试。
37
+ - dist:构建输出,必须完整交付。
38
+
39
+ 此项目不引用原 GIS 源码,不包含 Platform/MCP 后端;Agent 改动以本目录为准。