claude-simple 0.2.25 → 0.2.27
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 +6 -3
- package/dist/app.0.2.27.min.js +1182 -0
- package/dist/index.html +2 -2
- package/dist/style.0.2.27.min.css +1851 -0
- package/package.json +1 -1
- package/public/api.js +9 -3
- package/public/app.js +1 -1
- package/public/chat.js +66 -23
- package/public/files.js +50 -0
- package/public/index.html +2 -2
- package/public/locks.js +139 -0
- package/public/privacy.html +111 -0
- package/public/shell/boot.js +3 -0
- package/public/shell/notes.js +6 -1
- package/public/shell/session-nav.js +4 -0
- package/public/shell/templates.js +7 -1
- package/public/shell.js +18 -5
- package/public/state.js +3 -0
- package/public/style.css +101 -3
- package/public/sw.js +3 -3
- package/public/ui.min.css +1 -1
- package/src/agents/meta-agent.js +89 -17
- package/src/agents/sessions.js +125 -0
- package/src/app.js +69 -18
- package/src/collab.js +84 -65
- package/src/runtime/protocol.js +8 -0
- package/dist/app.0.2.25.min.js +0 -1164
- package/dist/style.0.2.25.min.css +0 -1753
package/README.md
CHANGED
|
@@ -23,7 +23,8 @@ Design: [`docs/multiuser-portmap-design.md`](docs/multiuser-portmap-design.md).
|
|
|
23
23
|
| Roles | `owner` / `admin` / `editor` / `viewer` — live role on mutating APIs |
|
|
24
24
|
| Locks | Lease locks (`POST /api/collab/locks`, heartbeat/release/break). 423 if held. Auto-claim 30s on unguarded writes |
|
|
25
25
|
| Port map | `POST /api/collab/routes` then visit `/r/{slug}/…` — Hub tunnels to edge `host:port` (loopback by default) |
|
|
26
|
-
| Flutter | `app/` — login, machines, locks, routes, users; local JSON cache + sync |
|
|
26
|
+
| Flutter 轻应用 | `app/` — login, machines, locks, routes, users; local JSON cache + sync |
|
|
27
|
+
| 微信小程序 | `miniprogram/` — login, sessions, history and streaming chat over the same Hub APIs |
|
|
27
28
|
|
|
28
29
|
Hub stores users/locks/routes under `hub-data/`. Standalone uses `.collab.json` plus `.credentials.json` (`role` on each user). Invite users: `POST /api/collab/users` as admin/owner.
|
|
29
30
|
|
|
@@ -32,6 +33,8 @@ cd app && flutter run
|
|
|
32
33
|
# Hub URL e.g. http://127.0.0.1:8080
|
|
33
34
|
```
|
|
34
35
|
|
|
36
|
+
微信小程序可直接使用微信开发者工具导入 `miniprogram/`。开发工具中可临时关闭合法域名校验;上线前需要将 Hub 的 HTTPS/WSS 域名分别加到 request/socket 合法域名。完整说明见 [`miniprogram/README.md`](miniprogram/README.md)。
|
|
37
|
+
|
|
35
38
|
前端会探测 `GET /api/hub`:没有该接口即按单机模式工作,逻辑与多机无关。
|
|
36
39
|
|
|
37
40
|
```
|
|
@@ -160,7 +163,7 @@ Top bar **✦ Agent** — OpenAI-compatible tool agent (DeepSeek / OpenAI / loca
|
|
|
160
163
|
| **代码** | `write_file` + `run_command` 生成并运行(有危险命令拦截) |
|
|
161
164
|
| **VLM** | 粘贴/选图 → 上传为 `[imgN](路径)` 文本引用;需要时 `analyze_images`;`thread_id` 支持多轮追问 |
|
|
162
165
|
|
|
163
|
-
API Key
|
|
166
|
+
Meta Agent 由 **Hub** 托管;API Key、VLM Key、配置和会话数据都保存在 Hub 的持久化数据目录,不下发给 Edge 或 App(且不写入 Git)。配置接口只返回是否已配置,绝不回显 Key 明文。Hub 重启会中断进行中的 SSE,但不会删除已落盘的 Meta 会话或 VLM thread。
|
|
164
167
|
|
|
165
168
|
**Session 持久化(同一 sessionId;多图 = 多个 VLM thread 文件)**
|
|
166
169
|
|
|
@@ -178,7 +181,7 @@ API Key 存在服务端 `.ai_config.json`(已 gitignore)。配置入口:Ag
|
|
|
178
181
|
|
|
179
182
|
删除会话会整目录删除。旧版 `session.json`、`vlm.jsonl`、`vlm/*.json`、全局 `.ai/vlm/` 会自动迁移。
|
|
180
183
|
|
|
181
|
-
Meta Agent
|
|
184
|
+
Meta Agent 的 API 由 Hub 提供;旧版 Node/Edge 实现路径仅供迁移和历史参考。
|
|
182
185
|
|
|
183
186
|
## Multi-machine (optional)
|
|
184
187
|
|