@tom2012/cc-web 1.5.96 → 1.5.97
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A self-hosted web application (distributed as npm package) that provides a browser-based interface for [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI sessions. Create projects, each with a persistent terminal running Claude Code, and interact with them through a real-time terminal UI.
|
|
4
4
|
|
|
5
|
-
**Current version**: v1.5.
|
|
5
|
+
**Current version**: v1.5.97 | [GitHub](https://github.com/zbc0315/cc-web) | MIT License
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/memory-pool/templates.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,IAAI,MAAM,CAgGvC;AAED,wBAAgB,kBAAkB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/memory-pool/templates.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,IAAI,MAAM,CAgGvC;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAkF3C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAiB9C"}
|
|
@@ -107,9 +107,16 @@ function generateQuickRefMd() {
|
|
|
107
107
|
> AI 日常操作记忆池时读取此文档。完整规范见 SPEC.md。
|
|
108
108
|
> 所有操作通过 ccweb API 完成,**不要直接读写 pool.json**。
|
|
109
109
|
|
|
110
|
-
##
|
|
110
|
+
## 连接发现
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
1. 读取 \`~/.ccweb/port\` 获取当前端口号(如 \`3001\`)
|
|
113
|
+
2. BASE URL: \`http://localhost:{port}/api/memory-pool/{projectId}\`
|
|
114
|
+
3. \`{projectId}\` = 当前项目目录的 URL-encoded 绝对路径(如 \`%2FUsers%2Ftom%2FProjects%2Fmy-app\`)
|
|
115
|
+
|
|
116
|
+
示例:若端口为 3001,项目路径为 \`/Users/tom/Projects/my-app\`:
|
|
117
|
+
\`\`\`
|
|
118
|
+
curl http://localhost:3001/api/memory-pool/%2FUsers%2Ftom%2FProjects%2Fmy-app/surface
|
|
119
|
+
\`\`\`
|
|
113
120
|
|
|
114
121
|
## 对话开始
|
|
115
122
|
|
|
@@ -183,8 +190,8 @@ function generateClaudeMdBlock() {
|
|
|
183
190
|
本项目已启用记忆池系统,通过 ccweb API 管理。
|
|
184
191
|
|
|
185
192
|
**每次对话开始时:**
|
|
186
|
-
1. 读取 \`.memory-pool/QUICK-REF.md\` 了解 API
|
|
187
|
-
2.
|
|
193
|
+
1. 读取 \`.memory-pool/QUICK-REF.md\` 了解 API 操作规范(含连接发现方式)
|
|
194
|
+
2. 读取 \`~/.ccweb/port\` 获取端口,拼接 \`http://localhost:{port}/api/memory-pool/{projectId}/surface\` 获取活跃层记忆
|
|
188
195
|
3. 按需调用 \`POST /balls/{ballId}/hit\` 获取具体球内容
|
|
189
196
|
|
|
190
197
|
**对话过程中:**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/memory-pool/templates.ts"],"names":[],"mappings":";AAAA,uCAAuC;;AAEvC,wCAgGC;AAED,
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/memory-pool/templates.ts"],"names":[],"mappings":";AAAA,uCAAuC;;AAEvC,wCAgGC;AAED,gDAkFC;AAED,sDAiBC;AAvMD,SAAgB,cAAc;IAC5B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FR,CAAC;AACF,CAAC;AAED,SAAgB,kBAAkB;IAChC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFR,CAAC;AACF,CAAC;AAED,SAAgB,qBAAqB;IACnC,OAAO;;;;;;;;;;;;;;;CAeR,CAAC;AACF,CAAC"}
|