codexmate 0.0.26 → 0.0.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 +421 -416
- package/README.zh.md +354 -349
- package/cli/agents-files.js +224 -224
- package/cli/archive-helpers.js +446 -446
- package/cli/auth-profiles.js +375 -375
- package/cli/builtin-proxy.js +1299 -1079
- package/cli/claude-proxy.js +1022 -1022
- package/cli/config-bootstrap.js +384 -384
- package/cli/config-health.js +338 -338
- package/cli/doctor-core.js +903 -903
- package/cli/import-skills-url.js +356 -356
- package/cli/openai-bridge.js +1091 -997
- package/cli/openclaw-config.js +629 -629
- package/cli/session-convert-args.js +65 -65
- package/cli/session-convert-io.js +82 -82
- package/cli/session-convert.js +43 -43
- package/cli/session-usage.concurrent.js +28 -28
- package/cli/session-usage.js +118 -118
- package/cli/session-usage.models.js +176 -176
- package/cli/skills.js +1141 -1141
- package/cli/zip-commands.js +510 -510
- package/cli.js +15251 -15218
- package/lib/automation.js +404 -404
- package/lib/cli-file-utils.js +151 -151
- package/lib/cli-models-utils.js +379 -379
- package/lib/cli-network-utils.js +190 -190
- package/lib/cli-path-utils.js +85 -85
- package/lib/cli-session-utils.js +121 -121
- package/lib/cli-sessions.js +417 -417
- package/lib/cli-utils.js +155 -155
- package/lib/download-artifacts.js +92 -92
- package/lib/mcp-stdio.js +453 -453
- package/lib/task-orchestrator.js +869 -869
- package/lib/text-diff.js +303 -303
- package/lib/workflow-engine.js +340 -340
- package/package.json +1 -1
- package/plugins/README.md +20 -20
- package/plugins/README.zh-CN.md +20 -20
- package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
- package/plugins/prompt-templates/computed.mjs +253 -253
- package/plugins/prompt-templates/index.mjs +8 -8
- package/plugins/prompt-templates/manifest.mjs +15 -15
- package/plugins/prompt-templates/methods.mjs +619 -619
- package/plugins/prompt-templates/overview.mjs +90 -90
- package/plugins/prompt-templates/ownership.mjs +19 -19
- package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
- package/plugins/prompt-templates/storage.mjs +64 -64
- package/plugins/registry.mjs +16 -16
- package/web-ui/app.js +634 -625
- package/web-ui/index.html +35 -35
- package/web-ui/logic.agents-diff.mjs +386 -386
- package/web-ui/logic.claude.mjs +168 -168
- package/web-ui/logic.mjs +5 -5
- package/web-ui/logic.runtime.mjs +128 -128
- package/web-ui/logic.session-convert.mjs +70 -70
- package/web-ui/logic.sessions.mjs +765 -709
- package/web-ui/modules/api.mjs +90 -90
- package/web-ui/modules/app.computed.dashboard.mjs +171 -171
- package/web-ui/modules/app.computed.index.mjs +17 -17
- package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
- package/web-ui/modules/app.computed.session.mjs +994 -946
- package/web-ui/modules/app.constants.mjs +15 -15
- package/web-ui/modules/app.methods.agents.mjs +632 -632
- package/web-ui/modules/app.methods.claude-config.mjs +184 -179
- package/web-ui/modules/app.methods.codex-config.mjs +860 -860
- package/web-ui/modules/app.methods.index.mjs +92 -92
- package/web-ui/modules/app.methods.install.mjs +205 -205
- package/web-ui/modules/app.methods.navigation.mjs +743 -743
- package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
- package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
- package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
- package/web-ui/modules/app.methods.providers.mjs +404 -404
- package/web-ui/modules/app.methods.runtime.mjs +345 -345
- package/web-ui/modules/app.methods.session-actions.mjs +596 -596
- package/web-ui/modules/app.methods.session-browser.mjs +989 -985
- package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
- package/web-ui/modules/app.methods.session-trash.mjs +439 -424
- package/web-ui/modules/app.methods.startup-claude.mjs +526 -522
- package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
- package/web-ui/modules/config-mode.computed.mjs +124 -124
- package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
- package/web-ui/modules/i18n.dict.mjs +2131 -2113
- package/web-ui/modules/i18n.mjs +56 -56
- package/web-ui/modules/plugins.computed.mjs +3 -3
- package/web-ui/modules/plugins.methods.mjs +3 -3
- package/web-ui/modules/plugins.storage.mjs +11 -11
- package/web-ui/modules/sessions-filters-url.mjs +85 -85
- package/web-ui/modules/skills.computed.mjs +107 -107
- package/web-ui/modules/skills.methods.mjs +481 -481
- package/web-ui/partials/index/layout-footer.html +13 -13
- package/web-ui/partials/index/layout-header.html +475 -475
- package/web-ui/partials/index/modal-config-template-agents.html +174 -174
- package/web-ui/partials/index/modal-confirm-toast.html +32 -32
- package/web-ui/partials/index/modal-health-check.html +45 -45
- package/web-ui/partials/index/modal-openclaw-config.html +280 -280
- package/web-ui/partials/index/modal-skills.html +200 -200
- package/web-ui/partials/index/modals-basic.html +165 -165
- package/web-ui/partials/index/panel-config-claude.html +187 -184
- package/web-ui/partials/index/panel-config-codex.html +283 -283
- package/web-ui/partials/index/panel-config-openclaw.html +83 -83
- package/web-ui/partials/index/panel-dashboard.html +186 -186
- package/web-ui/partials/index/panel-docs.html +147 -147
- package/web-ui/partials/index/panel-market.html +177 -177
- package/web-ui/partials/index/panel-orchestration.html +391 -391
- package/web-ui/partials/index/panel-plugins.html +279 -279
- package/web-ui/partials/index/panel-sessions.html +326 -326
- package/web-ui/partials/index/panel-settings.html +274 -258
- package/web-ui/partials/index/panel-usage.html +371 -342
- package/web-ui/res/json5.min.js +1 -1
- package/web-ui/res/vue.global.prod.js +13 -13
- package/web-ui/session-helpers.mjs +576 -576
- package/web-ui/source-bundle.cjs +233 -233
- package/web-ui/styles/base-theme.css +268 -268
- package/web-ui/styles/controls-forms.css +423 -423
- package/web-ui/styles/dashboard.css +274 -274
- package/web-ui/styles/docs-panel.css +247 -247
- package/web-ui/styles/feedback.css +108 -108
- package/web-ui/styles/health-check-dialog.css +144 -144
- package/web-ui/styles/layout-shell.css +603 -603
- package/web-ui/styles/modals-core.css +464 -464
- package/web-ui/styles/navigation-panels.css +390 -390
- package/web-ui/styles/openclaw-structured.css +266 -266
- package/web-ui/styles/plugins-panel.css +523 -523
- package/web-ui/styles/responsive.css +454 -454
- package/web-ui/styles/sessions-list.css +415 -415
- package/web-ui/styles/sessions-preview.css +411 -411
- package/web-ui/styles/sessions-toolbar-trash.css +330 -330
- package/web-ui/styles/sessions-usage.css +1040 -945
- package/web-ui/styles/settings-panel.css +185 -166
- package/web-ui/styles/skills-list.css +303 -303
- package/web-ui/styles/skills-market.css +406 -406
- package/web-ui/styles/task-orchestration.css +822 -822
- package/web-ui/styles/titles-cards.css +408 -408
- package/web-ui/styles.css +21 -21
- package/web-ui.html +17 -17
package/README.zh.md
CHANGED
|
@@ -1,349 +1,354 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
<img src="site/.vitepress/public/images/logo.png" alt="Codex Mate logo" width="180" />
|
|
4
|
-
|
|
5
|
-
# Codex Mate
|
|
6
|
-
|
|
7
|
-
**本地优先的 CLI + Web UI:直接写入你的本地配置与会话文件,内置 Usage 统计,并提供可审计、可回滚的变更保护。**
|
|
8
|
-
|
|
9
|
-
[](https://github.com/SakuraByteCore/codexmate/actions/workflows/release.yml)
|
|
10
|
-
[](https://www.npmjs.com/package/codexmate)
|
|
11
|
-
[](https://www.npmjs.com/package/codexmate)
|
|
12
|
-
[](https://nodejs.org/)
|
|
13
|
-
[](LICENSE)
|
|
14
|
-
[](https://github.com/SakuraByteCore/codexmate/stargazers)
|
|
15
|
-
[](https://github.com/SakuraByteCore/codexmate/issues)
|
|
16
|
-
|
|
17
|
-
[文档](https://sakurabytecore.github.io/codexmate/) · [快速开始](#快速开始) · [命令速查](#命令速查) · [Web 界面](#web-界面) · [MCP](#mcp) · [English](README.md)
|
|
18
|
-
|
|
19
|
-
<br />
|
|
20
|
-
<img src="site/.vitepress/public/images/readme-hero.png" alt="Codex Mate 界面预览" width="960" />
|
|
21
|
-
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## 这是什么?
|
|
27
|
-
|
|
28
|
-
Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
|
|
29
|
-
|
|
30
|
-
- Codex 的 provider / model 切换与配置写入
|
|
31
|
-
-
|
|
32
|
-
- Claude Code
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
- Codex / Claude
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
npm
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
codexmate
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
#
|
|
187
|
-
npm install -g @
|
|
188
|
-
|
|
189
|
-
#
|
|
190
|
-
npm install -g @
|
|
191
|
-
|
|
192
|
-
#
|
|
193
|
-
npm install -g @
|
|
194
|
-
|
|
195
|
-
#
|
|
196
|
-
npm install -g @
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
|
233
|
-
|
|
|
234
|
-
| `codexmate
|
|
235
|
-
| `codexmate
|
|
236
|
-
| `codexmate
|
|
237
|
-
| `codexmate
|
|
238
|
-
| `codexmate
|
|
239
|
-
| `codexmate
|
|
240
|
-
| `codexmate
|
|
241
|
-
| `codexmate
|
|
242
|
-
| `codexmate
|
|
243
|
-
| `codexmate
|
|
244
|
-
| `codexmate
|
|
245
|
-
| `codexmate
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
-
|
|
265
|
-
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
-
|
|
271
|
-
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
-
|
|
276
|
-
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
-
|
|
283
|
-
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
-
|
|
287
|
-
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
-
|
|
291
|
-
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
-
|
|
297
|
-
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
- `~/.
|
|
322
|
-
- `~/.
|
|
323
|
-
- `~/.
|
|
324
|
-
- `~/.
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
|
334
|
-
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="site/.vitepress/public/images/logo.png" alt="Codex Mate logo" width="180" />
|
|
4
|
+
|
|
5
|
+
# Codex Mate
|
|
6
|
+
|
|
7
|
+
**本地优先的 CLI + Web UI:直接写入你的本地配置与会话文件,内置 Usage 统计,并提供可审计、可回滚的变更保护。**
|
|
8
|
+
|
|
9
|
+
[](https://github.com/SakuraByteCore/codexmate/actions/workflows/release.yml)
|
|
10
|
+
[](https://www.npmjs.com/package/codexmate)
|
|
11
|
+
[](https://www.npmjs.com/package/codexmate)
|
|
12
|
+
[](https://nodejs.org/)
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
[](https://github.com/SakuraByteCore/codexmate/stargazers)
|
|
15
|
+
[](https://github.com/SakuraByteCore/codexmate/issues)
|
|
16
|
+
|
|
17
|
+
[文档](https://sakurabytecore.github.io/codexmate/) · [快速开始](#快速开始) · [命令速查](#命令速查) · [Web 界面](#web-界面) · [MCP](#mcp) · [English](README.md)
|
|
18
|
+
|
|
19
|
+
<br />
|
|
20
|
+
<img src="site/.vitepress/public/images/readme-hero.png" alt="Codex Mate 界面预览" width="960" />
|
|
21
|
+
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 这是什么?
|
|
27
|
+
|
|
28
|
+
Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
|
|
29
|
+
|
|
30
|
+
- Codex 的 provider / model 切换与配置写入
|
|
31
|
+
- 面向 Codex Responses API 的 OpenAI 兼容桥接转换
|
|
32
|
+
- Claude Code 配置方案(写入 `~/.claude/settings.json`)
|
|
33
|
+
- Claude Code `CLAUDE.md` 编辑(写入 `~/.claude/CLAUDE.md`)
|
|
34
|
+
- OpenClaw JSON5 配置与 Workspace `AGENTS.md`
|
|
35
|
+
- Codex / Claude Code Skills 市场(安装目标切换、本地 skills 管理、跨应用导入、ZIP 分发)
|
|
36
|
+
- Codex / Claude / Gemini CLI / CodeBuddy Code 本地会话浏览、筛选、导出、删除与 Usage 统计概览
|
|
37
|
+
- 插件(提示词模板):模板复用、变量填写、一键复制
|
|
38
|
+
- 任务编排:规划 / 排队 / 执行 / 回看
|
|
39
|
+
|
|
40
|
+
项目不依赖云端托管,配置写入你的本地文件,便于审计和回滚。Skills 市场同样坚持本地优先,只操作本地目录,不依赖远程在线市场。
|
|
41
|
+
|
|
42
|
+
## 功能对比
|
|
43
|
+
|
|
44
|
+
| 维度 | Codex Mate | 手动维护配置 |
|
|
45
|
+
| --- | --- | --- |
|
|
46
|
+
| 多工具管理 | Codex + Claude Code + OpenClaw 统一入口 | 多文件、多目录分散修改 |
|
|
47
|
+
| 使用方式 | CLI + 本地 Web UI | 纯手改 TOML / JSON / JSON5 |
|
|
48
|
+
| 会话处理 | 支持浏览、筛选、Usage 统计、导出、批量清理 | 需要手动定位和处理文件 |
|
|
49
|
+
| Skills 复用 | 本地 Skills 市场 + 跨应用导入 + ZIP 分发 | 目录手动复制,容易遗漏 |
|
|
50
|
+
| 使用可见性 | 统一查看配置、会话、Usage 与运行状态 | 依赖手工翻文件和零散命令 |
|
|
51
|
+
| 可回滚性 | 首次接管前自动备份 | 易误覆盖、回滚成本高 |
|
|
52
|
+
| 自动化接入 | 提供 MCP stdio(默认只读) | 需自行封装脚本 |
|
|
53
|
+
|
|
54
|
+
## 核心特性
|
|
55
|
+
|
|
56
|
+
**配置管理**
|
|
57
|
+
- provider / model 切换(`switch` / `use`)
|
|
58
|
+
- Codex `config.toml` 模板确认后写入
|
|
59
|
+
- OpenAI 桥接 provider:将 Codex 写到本地 `/bridge/openai/<provider>/v1`,并为 OpenAI 兼容上游归一化 Responses API 请求
|
|
60
|
+
- Claude Code 多配置方案管理与一键应用
|
|
61
|
+
- Claude Code `CLAUDE.md` 编辑(写入 `~/.claude/CLAUDE.md`)
|
|
62
|
+
- 分享命令前缀切换(`npm start` / `codexmate`),用于复制 provider / Claude 导入命令
|
|
63
|
+
- OpenClaw JSON5 配置方案管理
|
|
64
|
+
|
|
65
|
+
**会话管理**
|
|
66
|
+
- 同页查看 Codex、Claude、Gemini CLI 与 CodeBuddy Code 会话
|
|
67
|
+
- 会话来源与默认路径(本地优先,可通过环境变量覆盖):
|
|
68
|
+
- Codex:`~/.codex/sessions/*.jsonl`(或 `$CODEX_HOME/sessions`、`$XDG_CONFIG_HOME/codex/sessions`)
|
|
69
|
+
- Claude:`~/.claude/projects/**/**/*.jsonl`(或 `$CLAUDE_HOME/projects`、`$XDG_CONFIG_HOME/claude/projects`)
|
|
70
|
+
- Gemini:`~/.gemini/tmp/*/chats/*.json`(或 `$GEMINI_HOME/tmp`、`$XDG_CONFIG_HOME/gemini/tmp`)
|
|
71
|
+
- CodeBuddy:`~/.codebuddy/projects/**/**/*.jsonl`(或 `$CODEBUDDY_CODE_HOME_DIR/projects`)
|
|
72
|
+
- 支持本地会话置顶,置顶状态持久化保存并优先排序显示
|
|
73
|
+
- 关键词搜索、来源筛选、cwd/角色/时间筛选,并支持复制筛选链接
|
|
74
|
+
- 复制恢复命令(Codex/Gemini/CodeBuddy):`codex resume <sessionId>` / `gemini -r <sessionId>` / `codebuddy -r <sessionId>`
|
|
75
|
+
- 搜索体验优化:短周期结果缓存,避免输入时重复扫描
|
|
76
|
+
- Usage 子页:近 7 天 / 近 30 天会话趋势、消息趋势、来源占比、高频路径
|
|
77
|
+
- 会话导出 Markdown(Web UI + `codexmate export-session`,支持 `--session-id` 或 `--file`)
|
|
78
|
+
- 会话与消息级删除(支持批量),并提供本地回收站用于恢复/彻底删除
|
|
79
|
+
- 大会话预览优化(快速 tail 预览路径)
|
|
80
|
+
|
|
81
|
+
**Skills 市场**
|
|
82
|
+
- 在 Codex 与 Claude Code 之间切换 skills 安装目标
|
|
83
|
+
- 查看本地已安装 skills、根目录与状态
|
|
84
|
+
- 扫描 `Codex` / `Claude Code` / `Agents` 可导入来源
|
|
85
|
+
- 支持跨应用导入、ZIP 导入 / 导出、批量删除
|
|
86
|
+
|
|
87
|
+
**插件**
|
|
88
|
+
- 提示词模板:本地保存/编辑/复用(支持变量)
|
|
89
|
+
- 编写 → 填参 → 一键复制的工作流(模板数据保存在浏览器存储)
|
|
90
|
+
|
|
91
|
+
**任务编排**
|
|
92
|
+
- DAG 节点拆分与波次并发
|
|
93
|
+
- 支持计划预览、执行、队列与运行详情
|
|
94
|
+
|
|
95
|
+
**工程能力**
|
|
96
|
+
- MCP stdio 能力(tools/resources/prompts)
|
|
97
|
+
- 自动化钩子(`/hooks/*`)+ 外发 webhook 通知
|
|
98
|
+
- Codex `/v1/responses` 的 OpenAI 桥接转换:优先尝试上游 `/responses`,必要时回退 `/chat/completions`,并归一化 function tools
|
|
99
|
+
- Zip 压缩/解压(优先系统工具,失败回退 JS 库)
|
|
100
|
+
|
|
101
|
+
## 自动化(信号 → 行动)
|
|
102
|
+
|
|
103
|
+
运行 `codexmate run` 后,可接收外部 webhook 并转为任务队列:
|
|
104
|
+
|
|
105
|
+
- 入口:`POST /hooks/<source>`(当前支持 `github`、`gitlab`)
|
|
106
|
+
- 规则:`~/.codex/codexmate-automation.json`
|
|
107
|
+
- 动作:`task.queue.add`(可选 `startQueue: true`)
|
|
108
|
+
- 通知:`notifiers[]` 支持 `type: "webhook"`(适配 Slack/飞书等入站 webhook)
|
|
109
|
+
|
|
110
|
+
## 架构总览
|
|
111
|
+
|
|
112
|
+
### 一图看懂(从“做什么”到“产生什么效果”)
|
|
113
|
+
|
|
114
|
+
```mermaid
|
|
115
|
+
flowchart LR
|
|
116
|
+
subgraph You["你"]
|
|
117
|
+
CLI["CLI 命令"]
|
|
118
|
+
WEB["Web UI"]
|
|
119
|
+
MCP["MCP 调用"]
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
subgraph Mate["Codex Mate(本地控制台)"]
|
|
123
|
+
API["本地 HTTP API"]
|
|
124
|
+
CFG["配置管理"]
|
|
125
|
+
SESS["会话/Usage 管理"]
|
|
126
|
+
SKL["Skills 管理"]
|
|
127
|
+
PLG["插件:提示词模板"]
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
subgraph Files["只操作你的本地文件(可审计/可回滚)"]
|
|
131
|
+
CODEX["~/.codex/*"]
|
|
132
|
+
CLAUDE["~/.claude/settings.json + CLAUDE.md"]
|
|
133
|
+
OPENCLAW["~/.openclaw/*.json5 + ~/.openclaw/openclaw.json + workspace/AGENTS.md"]
|
|
134
|
+
SKILLS["~/.{codex,claude,agents}/skills"]
|
|
135
|
+
SESSFILES["sessions / usage / trash / runs"]
|
|
136
|
+
BROWSER["浏览器存储(模板)"]
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
CLI --> API
|
|
140
|
+
WEB --> API
|
|
141
|
+
MCP --> API
|
|
142
|
+
WEB --> PLG
|
|
143
|
+
|
|
144
|
+
API --> CFG
|
|
145
|
+
API --> SESS
|
|
146
|
+
API --> SKL
|
|
147
|
+
PLG --> BROWSER
|
|
148
|
+
|
|
149
|
+
CFG --> CODEX
|
|
150
|
+
CFG --> CLAUDE
|
|
151
|
+
CFG --> OPENCLAW
|
|
152
|
+
SKL --> SKILLS
|
|
153
|
+
SESS --> SESSFILES
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### 能力 → 作用对象 → 用户收益(直观对照)
|
|
157
|
+
|
|
158
|
+
| 能力 | 作用对象(本地) | 你能直接得到什么 |
|
|
159
|
+
| --- | --- | --- |
|
|
160
|
+
| 配置管理(Codex / Claude / OpenClaw) | `~/.codex/*`、`~/.claude/settings.json`、`~/.claude/CLAUDE.md`、`~/.openclaw/*` | 一键切换 provider/model、管理多套配置、写入前后可控与可回滚 |
|
|
161
|
+
| 会话与 Usage | sessions / usage 聚合 / trash | 更快定位会话、筛选导出、批量清理、查看趋势与占比 |
|
|
162
|
+
| Skills 市场 | `~/.{codex,claude,agents}/skills` | 本地安装/导入/导出/分发(ZIP),跨应用复用更省事 |
|
|
163
|
+
| 插件(提示词模板) | 浏览器存储 | 可复用的提示词模板(变量 + 一键复制) |
|
|
164
|
+
| MCP(stdio) | 本地 API / 文件能力 | 让外部工具以“可控权限”调用本地能力(默认只读) |
|
|
165
|
+
|
|
166
|
+
## 快速开始
|
|
167
|
+
|
|
168
|
+
### npm 全局安装
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
npm install -g codexmate
|
|
172
|
+
codexmate setup
|
|
173
|
+
codexmate status
|
|
174
|
+
codexmate run
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
默认监听 `0.0.0.0:3737`,支持局域网访问,并尝试自动打开浏览器。
|
|
178
|
+
|
|
179
|
+
> 安全提示:默认监听会在当前局域网暴露未鉴权的管理界面。若包含 API Key、provider 配置或 skills 管理,请仅在可信网络中使用;如需仅本机访问,可设置 `CODEXMATE_HOST=127.0.0.1` 或启动时传入 `--host 127.0.0.1`。
|
|
180
|
+
|
|
181
|
+
### 安装 Codex CLI / Claude Code / Gemini CLI / CodeBuddy Code(可选)
|
|
182
|
+
|
|
183
|
+
Codex Mate 支持透传调用官方 CLI(例如 `codexmate codex ...`),建议先安装:
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
# Codex CLI(默认)
|
|
187
|
+
npm install -g @openai/codex
|
|
188
|
+
|
|
189
|
+
# Termux(Android)上的 Codex CLI
|
|
190
|
+
npm install -g @mmmbuto/codex-cli-termux@latest
|
|
191
|
+
|
|
192
|
+
# Claude Code
|
|
193
|
+
npm install -g @anthropic-ai/claude-code
|
|
194
|
+
|
|
195
|
+
# Gemini CLI
|
|
196
|
+
npm install -g @google/gemini-cli
|
|
197
|
+
|
|
198
|
+
# CodeBuddy Code
|
|
199
|
+
npm install -g @tencent-ai/codebuddy-code
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### 从源码运行
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
git clone https://github.com/SakuraByteCore/codexmate.git
|
|
206
|
+
cd codexmate
|
|
207
|
+
npm install
|
|
208
|
+
npm start run
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### 测试 / CI(只启动服务)
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
npm start run --no-browser
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
> 约定:自动化测试仅验证服务与 API,不依赖打开页面。
|
|
218
|
+
|
|
219
|
+
### 开发辅助脚本
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
npm run reset
|
|
223
|
+
npm run reset 79
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
- `npm run reset`:直接重置到默认 `origin/main`
|
|
227
|
+
- `npm run reset 79`:直接同步到 PR `#79` 的最新 head 快照
|
|
228
|
+
- 脚本会自动完成本地分支切换、工作区清理、未跟踪文件清理与最终状态校验
|
|
229
|
+
|
|
230
|
+
## 命令速查
|
|
231
|
+
|
|
232
|
+
| 命令 | 说明 |
|
|
233
|
+
| --- | --- |
|
|
234
|
+
| `codexmate status` | 查看当前配置状态 |
|
|
235
|
+
| `codexmate setup` | 交互式初始化 |
|
|
236
|
+
| `codexmate list` / `codexmate models` | 查看提供商 / 模型 |
|
|
237
|
+
| `codexmate switch <provider>` / `codexmate use <model>` | 切换 provider / model |
|
|
238
|
+
| `codexmate add <name> <URL> [API_KEY] [--bridge openai]` | 添加提供商;`--bridge openai` 会为 OpenAI 风格上游创建本地 Codex Responses 兼容桥接 |
|
|
239
|
+
| `codexmate delete <name>` | 删除提供商 |
|
|
240
|
+
| `codexmate claude <BaseURL> <API_KEY> [model]` | 写入 Claude Code 配置 |
|
|
241
|
+
| `codexmate workflow <list\|get\|validate\|run\|runs>` | MCP 工作流管理 |
|
|
242
|
+
| `codexmate codex [args...] [--follow-up <文本> 可重复]` | Codex CLI 透传入口(默认补 `--yolo`,可追加 queued follow-up) |
|
|
243
|
+
| `codexmate qwen [args...]` | Qwen CLI 透传入口 |
|
|
244
|
+
| `codexmate run [--host <HOST>] [--no-browser]` | 启动 Web UI |
|
|
245
|
+
| `codexmate mcp serve [--read-only\|--allow-write]` | 启动 MCP stdio 服务 |
|
|
246
|
+
| `codexmate export-session --source <codex\|claude\|gemini\|codebuddy> ...` | 导出会话为 Markdown |
|
|
247
|
+
| `codexmate zip <path> [--max:0-9]` / `codexmate unzip <zip> [out]` | 压缩 / 解压 |
|
|
248
|
+
| `codexmate unzip-ext <zip-dir> [out] [--ext:suffix[,suffix...]] [--no-recursive]` | 批量提取目录下 ZIP 内指定后缀文件(默认 `.json`,默认递归) |
|
|
249
|
+
|
|
250
|
+
### Codex follow-up 追加(可选)
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
codexmate codex --follow-up "先扫描项目" --follow-up "再修复失败测试"
|
|
254
|
+
codexmate codex --model gpt-5.3-codex --follow-up "步骤1" --follow-up "步骤2"
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
> 说明:`--follow-up` / `--queued-follow-up` 都可用,支持重复。
|
|
258
|
+
|
|
259
|
+
## Web 界面
|
|
260
|
+
|
|
261
|
+
### Codex 配置模式
|
|
262
|
+
- provider / model 切换
|
|
263
|
+
- 模型管理
|
|
264
|
+
- OpenAI 桥接 provider:将 Codex Responses API 转换给 OpenAI 兼容上游
|
|
265
|
+
- `~/.codex/AGENTS.md` 编辑
|
|
266
|
+
|
|
267
|
+
### Claude Code 配置模式
|
|
268
|
+
- 多配置方案管理
|
|
269
|
+
- 默认写入 `~/.claude/settings.json`
|
|
270
|
+
- `~/.claude/CLAUDE.md` 编辑
|
|
271
|
+
- 支持复制分享导入命令
|
|
272
|
+
|
|
273
|
+
### OpenClaw 配置模式
|
|
274
|
+
- JSON5 多方案管理
|
|
275
|
+
- 应用到 `~/.openclaw/openclaw.json`
|
|
276
|
+
- 管理 `~/.openclaw/workspace/AGENTS.md`
|
|
277
|
+
|
|
278
|
+
### Plugins 模式(提示词模板)
|
|
279
|
+
- 入口:顶部切到 **Plugins** → **提示词模板**
|
|
280
|
+
- 支持管理自定义模板(导入/导出 JSON)
|
|
281
|
+
- 变量管理:在 **管理** 中可“新增变量”(插入 `{{var}}`),并在 Variables 区填写变量值
|
|
282
|
+
- 生成与复制:变量填写后可在 **Preview** 里一键复制最终提示词
|
|
283
|
+
- 内置模板:仅提供一个“代码注释润色”,只读不可编辑
|
|
284
|
+
|
|
285
|
+
### 会话模式
|
|
286
|
+
- Codex + Claude 会话统一列表
|
|
287
|
+
- Browser / Usage 双子视图切换
|
|
288
|
+
- 支持本地会话置顶、持久化保存与置顶优先排序
|
|
289
|
+
- 搜索、筛选、导出、删除、批量清理
|
|
290
|
+
- Usage 视图提供近 7 天 / 近 30 天会话趋势、消息趋势、来源占比与高频路径统计
|
|
291
|
+
- 费用估算当前只统计可识别模型单价的非 Claude 会话
|
|
292
|
+
|
|
293
|
+
### Skills 市场标签页
|
|
294
|
+
- 在 `Codex` 与 `Claude Code` 之间切换 skills 安装目标
|
|
295
|
+
- 展示当前目标的本地 skills 根目录、已安装项和可导入项
|
|
296
|
+
- 扫描 `Codex` / `Claude Code` / `Agents` 目录中的可导入来源
|
|
297
|
+
- 支持跨应用导入、ZIP 导入 / 导出、批量删除
|
|
298
|
+
|
|
299
|
+
### 设置标签页
|
|
300
|
+
- 支持切换分享命令前缀:`npm start` / `codexmate`
|
|
301
|
+
- 影响 Web UI 中复制出来的 provider 分享命令与 Claude 导入命令
|
|
302
|
+
|
|
303
|
+
## MCP
|
|
304
|
+
|
|
305
|
+
> 传输:`stdio`
|
|
306
|
+
|
|
307
|
+
- 传输:仅 `stdio`
|
|
308
|
+
- 默认:只读工具集
|
|
309
|
+
- 写入开启:`--allow-write` 或 `CODEXMATE_MCP_ALLOW_WRITE=1`
|
|
310
|
+
- 包含域:`tools`、`resources`、`prompts`
|
|
311
|
+
|
|
312
|
+
示例:
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
codexmate mcp serve --read-only
|
|
316
|
+
codexmate mcp serve --allow-write
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
## 配置文件
|
|
320
|
+
|
|
321
|
+
- `~/.codex/config.toml`
|
|
322
|
+
- `~/.codex/auth.json`
|
|
323
|
+
- `~/.codex/models.json`
|
|
324
|
+
- `~/.codex/provider-current-models.json`
|
|
325
|
+
- `~/.codex/codexmate-openai-bridge.json`
|
|
326
|
+
- `~/.claude/settings.json`
|
|
327
|
+
- `~/.claude/CLAUDE.md`
|
|
328
|
+
- `~/.openclaw/openclaw.json`
|
|
329
|
+
- `~/.openclaw/workspace/AGENTS.md`
|
|
330
|
+
|
|
331
|
+
## 环境变量
|
|
332
|
+
|
|
333
|
+
| 变量 | 默认值 | 说明 |
|
|
334
|
+
| --- | --- | --- |
|
|
335
|
+
| `CODEXMATE_PORT` | `3737` | Web 服务端口 |
|
|
336
|
+
| `CODEXMATE_HOST` | `0.0.0.0` | Web 服务监听地址(如需仅本机访问,显式设为 `127.0.0.1`) |
|
|
337
|
+
| `CODEXMATE_NO_BROWSER` | 未设置 | 设为 `1` 后不自动打开浏览器 |
|
|
338
|
+
| `CODEXMATE_MCP_ALLOW_WRITE` | 未设置 | 设为 `1` 后默认允许 MCP 写工具 |
|
|
339
|
+
| `CODEXMATE_FORCE_RESET_EXISTING_CONFIG` | `0` | 设为 `1` 时首次可强制重建托管配置 |
|
|
340
|
+
|
|
341
|
+
## 技术栈
|
|
342
|
+
|
|
343
|
+
- Node.js
|
|
344
|
+
- Vue.js 3(Web UI)
|
|
345
|
+
- 原生 HTTP Server
|
|
346
|
+
- `@iarna/toml`、`json5`
|
|
347
|
+
|
|
348
|
+
## 参与贡献
|
|
349
|
+
|
|
350
|
+
Issue 与 Pull Request 可按需提交。
|
|
351
|
+
|
|
352
|
+
## License
|
|
353
|
+
|
|
354
|
+
Apache-2.0
|