codexmate 0.0.12 → 0.0.13
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 +24 -2
- package/README.zh-CN.md +24 -2
- package/{src/cli.js → cli.js} +2689 -256
- package/doc/CHANGELOG.md +6 -0
- package/doc/CHANGELOG.zh-CN.md +6 -0
- package/lib/mcp-stdio.js +440 -0
- package/package.json +56 -53
- package/web-ui/app.js +903 -10
- package/web-ui/index.html +350 -55
- package/web-ui/styles.css +394 -49
- package/src/lib/cli-file-utils.js +0 -151
- package/src/lib/cli-models-utils.js +0 -152
- package/src/lib/cli-network-utils.js +0 -148
- package/src/lib/cli-session-utils.js +0 -121
- package/src/lib/cli-utils.js +0 -139
- package/src/res/json5.min.js +0 -1
- package/src/res/logo.png +0 -0
- package/src/res/screenshot.png +0 -0
- package/src/res/vue.global.js +0 -18552
- package/src/web-ui/app.js +0 -2970
- package/src/web-ui/index.html +0 -1310
- package/src/web-ui/logic.mjs +0 -157
- package/src/web-ui/styles.css +0 -2868
- /package/{src/web-ui.html → web-ui.html} +0 -0
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ One tool to switch Codex/Claude Code providers & models and manage/browse local
|
|
|
33
33
|
- Lightweight Web UI instead of heavy clients
|
|
34
34
|
- Unified session browser (view/export/resume when available)
|
|
35
35
|
- Session management: list/filter/export/delete local sessions; keyword search supports Codex and Claude
|
|
36
|
-
- New in 0.0.
|
|
36
|
+
- New in 0.0.10: Claude sessions are searchable by keywords (e.g., `claude code`, `claude-code`, numeric tokens)
|
|
37
37
|
|
|
38
38
|
## Feature Overview
|
|
39
39
|
|
|
@@ -169,8 +169,30 @@ npm link
|
|
|
169
169
|
| `codexmate add-model <model>` | Add a model |
|
|
170
170
|
| `codexmate delete-model <model>` | Delete a model |
|
|
171
171
|
| `codexmate run` | Start the Web UI |
|
|
172
|
+
| `codexmate mcp [serve] [--transport stdio] [--allow-write\|--read-only]` | Start MCP server over stdio (default read-only) |
|
|
172
173
|
| `codexmate export-session --source <codex|claude> (--session-id <ID>|--file <PATH>) [--output <PATH>] [--max-messages <N|all|Infinity>]` | Export a session to Markdown |
|
|
173
174
|
|
|
175
|
+
## MCP (stdio)
|
|
176
|
+
|
|
177
|
+
- Transport: `stdio` only
|
|
178
|
+
- Default mode: read-only tool set
|
|
179
|
+
- Write tools: enable by `--allow-write` or `CODEXMATE_MCP_ALLOW_WRITE=1`
|
|
180
|
+
- Sensitive fields in `codexmate.claude.settings.get` are returned as masked values
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
# Read-only (recommended for external agents)
|
|
184
|
+
codexmate mcp serve --read-only
|
|
185
|
+
|
|
186
|
+
# Enable write tools explicitly
|
|
187
|
+
codexmate mcp serve --allow-write
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Provided MCP domains:
|
|
191
|
+
|
|
192
|
+
- `tools`: status/provider/model/session/auth/proxy and config operations
|
|
193
|
+
- `resources`: status/providers/sessions snapshots
|
|
194
|
+
- `prompts`: built-in diagnose/switch/export templates
|
|
195
|
+
|
|
174
196
|
## Web UI
|
|
175
197
|
|
|
176
198
|
Start the Web UI (auto opens browser):
|
|
@@ -371,7 +393,7 @@ Note: 7-Zip is optional. If missing, the built-in JS library is used. `--max` on
|
|
|
371
393
|
|
|
372
394
|
## Release (GitHub Actions)
|
|
373
395
|
|
|
374
|
-
Create a tag that matches `package.json` (for example `v0.0.
|
|
396
|
+
Create a tag that matches `package.json` (for example `v0.0.9`). Then run the `release` workflow in GitHub Actions and input that tag. It will create a GitHub Release and attach the `npm pack` `.tgz` artifact.
|
|
375
397
|
|
|
376
398
|
## License
|
|
377
399
|
|
package/README.zh-CN.md
CHANGED
|
@@ -33,7 +33,7 @@ Codex Mate 让 Codex 与 Claude Code 的提供商/模型切换变成“一条命
|
|
|
33
33
|
- 可视化 Web 操作,降低命令行负担
|
|
34
34
|
- 配置变更可回溯、有备份
|
|
35
35
|
- Codex + Claude Code 统一会话浏览(查看/导出/可用时复制恢复命令)
|
|
36
|
-
- 0.0.
|
|
36
|
+
- 0.0.10 新增:Claude 会话支持关键词搜索(含 `claude code` / `claude-code` / 数字关键词)
|
|
37
37
|
|
|
38
38
|
## 概览
|
|
39
39
|
|
|
@@ -175,8 +175,30 @@ npm link
|
|
|
175
175
|
| `codexmate add-model <模型名称>` | 添加模型 |
|
|
176
176
|
| `codexmate delete-model <模型名称>` | 删除模型 |
|
|
177
177
|
| `codexmate run` | 启动 Web 界面 |
|
|
178
|
+
| `codexmate mcp [serve] [--transport stdio] [--allow-write\|--read-only]` | 启动 MCP stdio 服务(默认只读) |
|
|
178
179
|
| `codexmate export-session --source <codex|claude> (--session-id <ID>|--file <PATH>) [--output <PATH>] [--max-messages <N|all|Infinity>]` | 导出指定会话为 Markdown |
|
|
179
180
|
|
|
181
|
+
## MCP(stdio)
|
|
182
|
+
|
|
183
|
+
- 传输方式:仅支持 `stdio`
|
|
184
|
+
- 默认模式:只读工具集
|
|
185
|
+
- 写入工具开启方式:`--allow-write` 或 `CODEXMATE_MCP_ALLOW_WRITE=1`
|
|
186
|
+
- `codexmate.claude.settings.get` 的敏感字段默认脱敏返回
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
# 只读(推荐给外部 Agent 接入)
|
|
190
|
+
codexmate mcp serve --read-only
|
|
191
|
+
|
|
192
|
+
# 显式开启写工具
|
|
193
|
+
codexmate mcp serve --allow-write
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
当前提供的 MCP 能力:
|
|
197
|
+
|
|
198
|
+
- `tools`:状态/提供商/模型/会话/认证/代理/配置等操作
|
|
199
|
+
- `resources`:status/providers/sessions 快照资源
|
|
200
|
+
- `prompts`:诊断/安全切换/会话导出模板
|
|
201
|
+
|
|
180
202
|
## Web 界面
|
|
181
203
|
|
|
182
204
|
启动 Web 界面(自动打开浏览器):
|
|
@@ -377,7 +399,7 @@ codexmate unzip ./backup.zip D:/restored
|
|
|
377
399
|
|
|
378
400
|
## 发布(GitHub Actions)
|
|
379
401
|
|
|
380
|
-
创建与 `package.json` 版本一致的标签(例如 `v0.0.
|
|
402
|
+
创建与 `package.json` 版本一致的标签(例如 `v0.0.9`)。然后在 GitHub Actions 中手动运行 `release` 工作流并输入该标签,系统会创建 GitHub Release,并附带 `npm pack` 生成的 `.tgz` 产物。
|
|
381
403
|
|
|
382
404
|
## 许可证
|
|
383
405
|
|