codexmate 0.0.16 → 0.0.18
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.en.md +42 -24
- package/README.md +42 -24
- package/cli.js +1457 -157
- package/lib/text-diff.js +303 -0
- package/package.json +2 -2
- package/web-ui/app.js +1946 -247
- package/web-ui/index.html +321 -78
- package/web-ui/logic.mjs +503 -13
- package/web-ui/modules/skills.methods.mjs +7 -1
- package/web-ui/session-helpers.mjs +350 -0
- package/web-ui/styles.css +679 -31
package/README.en.md
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
**Local configuration and session manager for Codex / Claude Code / OpenClaw**
|
|
6
6
|
|
|
7
|
-
> Current version: `v0.0.16`
|
|
8
|
-
|
|
9
7
|
[](https://github.com/SakuraByteCore/codexmate/actions/workflows/release.yml)
|
|
10
8
|
[](https://www.npmjs.com/package/codexmate)
|
|
11
9
|
[](https://www.npmjs.com/package/codexmate)
|
|
@@ -26,7 +24,6 @@ Codex Mate is a local-first CLI + Web UI for unified management of:
|
|
|
26
24
|
- Claude Code profiles (writes to `~/.claude/settings.json`)
|
|
27
25
|
- OpenClaw JSON5 profiles and workspace `AGENTS.md`
|
|
28
26
|
- Local Codex/Claude sessions (list/filter/export/delete)
|
|
29
|
-
- `codexmate qwen` passthrough command
|
|
30
27
|
|
|
31
28
|
It works on local files directly and does not require cloud hosting.
|
|
32
29
|
|
|
@@ -50,6 +47,7 @@ It works on local files directly and does not require cloud hosting.
|
|
|
50
47
|
|
|
51
48
|
**Session Management**
|
|
52
49
|
- Unified Codex + Claude session list
|
|
50
|
+
- Local session pinning with persistent pinned state and pinned-first ordering
|
|
53
51
|
- Keyword/source/cwd filters
|
|
54
52
|
- Markdown export
|
|
55
53
|
- Session-level and message-level delete (supports batch)
|
|
@@ -58,31 +56,51 @@ It works on local files directly and does not require cloud hosting.
|
|
|
58
56
|
- MCP stdio domains (`tools`, `resources`, `prompts`)
|
|
59
57
|
- Built-in proxy controls (`proxy`)
|
|
60
58
|
- Auth profile management (`auth`)
|
|
61
|
-
- `codexmate qwen` compatibility entrypoint (passthrough with `--yolo`)
|
|
62
59
|
- Zip/unzip utilities
|
|
63
60
|
|
|
64
61
|
## Architecture
|
|
65
62
|
|
|
66
63
|
```mermaid
|
|
67
|
-
flowchart
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
subgraph
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
flowchart TB
|
|
65
|
+
subgraph Interfaces["Entry Surfaces"]
|
|
66
|
+
CLI["CLI"]
|
|
67
|
+
WEB["Web UI"]
|
|
68
|
+
MCP["MCP Client"]
|
|
69
|
+
OAI["Codex / OpenAI Client"]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
subgraph Runtime["Codex Mate Runtime"]
|
|
73
|
+
ENTRY["cli.js Entry"]
|
|
74
|
+
API["Local HTTP API"]
|
|
75
|
+
MCPS["MCP stdio Server"]
|
|
76
|
+
PROXY["Built-in Proxy"]
|
|
77
|
+
SERVICES["Config / Sessions / Skills / Workflow"]
|
|
78
|
+
CORE["File IO / Network / Diff / Session Utils"]
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
subgraph Data["Local Files"]
|
|
82
|
+
CODEX["~/.codex"]
|
|
83
|
+
CLAUDE["~/.claude"]
|
|
84
|
+
OPENCLAW["~/.openclaw"]
|
|
85
|
+
STATE["sessions / trash / workflow runs"]
|
|
80
86
|
end
|
|
81
87
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
CLI --> ENTRY
|
|
89
|
+
WEB -->|GET / + POST /api| API
|
|
90
|
+
MCP -->|stdio JSON-RPC| MCPS
|
|
91
|
+
OAI -->|HTTP /v1| PROXY
|
|
92
|
+
|
|
93
|
+
ENTRY --> SERVICES
|
|
94
|
+
API --> SERVICES
|
|
95
|
+
MCPS --> SERVICES
|
|
96
|
+
PROXY --> CORE
|
|
97
|
+
|
|
98
|
+
SERVICES --> CORE
|
|
99
|
+
|
|
100
|
+
CORE --> CODEX
|
|
101
|
+
CORE --> CLAUDE
|
|
102
|
+
CORE --> OPENCLAW
|
|
103
|
+
CORE --> STATE
|
|
86
104
|
```
|
|
87
105
|
|
|
88
106
|
## Quick Start
|
|
@@ -104,14 +122,13 @@ Default listen address is `127.0.0.1:3737`, and browser auto-open is enabled by
|
|
|
104
122
|
git clone https://github.com/SakuraByteCore/codexmate.git
|
|
105
123
|
cd codexmate
|
|
106
124
|
npm install
|
|
107
|
-
npm
|
|
108
|
-
codexmate run
|
|
125
|
+
npm start run
|
|
109
126
|
```
|
|
110
127
|
|
|
111
128
|
### Tests / CI (service only)
|
|
112
129
|
|
|
113
130
|
```bash
|
|
114
|
-
|
|
131
|
+
npm start run --no-browser
|
|
115
132
|
```
|
|
116
133
|
|
|
117
134
|
> Convention: automated tests validate service and API behavior only, without opening browser pages.
|
|
@@ -168,6 +185,7 @@ codexmate codex --model gpt-5.3-codex --follow-up "step1" --follow-up "step2"
|
|
|
168
185
|
|
|
169
186
|
### Sessions Mode
|
|
170
187
|
- Unified Codex + Claude sessions
|
|
188
|
+
- Local pin/unpin with persistent storage and pinned-first ordering
|
|
171
189
|
- Search, filter, export, delete, batch cleanup
|
|
172
190
|
|
|
173
191
|
## MCP
|
package/README.md
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
**Codex / Claude Code / OpenClaw 的本地配置与会话管理工具**
|
|
6
6
|
|
|
7
|
-
> 当前版本:`v0.0.16`
|
|
8
|
-
|
|
9
7
|
[](https://github.com/SakuraByteCore/codexmate/actions/workflows/release.yml)
|
|
10
8
|
[](https://www.npmjs.com/package/codexmate)
|
|
11
9
|
[](https://www.npmjs.com/package/codexmate)
|
|
@@ -26,7 +24,6 @@ Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
|
|
|
26
24
|
- Claude Code 配置方案(写入 `~/.claude/settings.json`)
|
|
27
25
|
- OpenClaw JSON5 配置与 Workspace `AGENTS.md`
|
|
28
26
|
- Codex / Claude 本地会话浏览、筛选、导出、删除
|
|
29
|
-
- `codexmate qwen` 快捷透传命令
|
|
30
27
|
|
|
31
28
|
项目不依赖云端托管,配置写入你的本地文件,便于审计和回滚。
|
|
32
29
|
|
|
@@ -50,6 +47,7 @@ Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
|
|
|
50
47
|
|
|
51
48
|
**会话管理**
|
|
52
49
|
- 同页查看 Codex 与 Claude 会话
|
|
50
|
+
- 支持本地会话置顶,置顶状态持久化保存并优先排序显示
|
|
53
51
|
- 关键词搜索、来源筛选、cwd 路径筛选
|
|
54
52
|
- 会话导出 Markdown
|
|
55
53
|
- 会话与消息级删除(支持批量)
|
|
@@ -58,31 +56,51 @@ Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
|
|
|
58
56
|
- MCP stdio 能力(tools/resources/prompts)
|
|
59
57
|
- 内建代理配置与状态控制(`proxy`)
|
|
60
58
|
- 认证档案管理(`auth`)
|
|
61
|
-
- `codexmate qwen` 兼容启动入口(默认透传 `--yolo`)
|
|
62
59
|
- Zip 压缩/解压(优先系统工具,失败回退 JS 库)
|
|
63
60
|
|
|
64
61
|
## 架构总览
|
|
65
62
|
|
|
66
63
|
```mermaid
|
|
67
|
-
flowchart
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
subgraph
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
flowchart TB
|
|
65
|
+
subgraph Interfaces["入口"]
|
|
66
|
+
CLI["CLI"]
|
|
67
|
+
WEB["Web UI"]
|
|
68
|
+
MCP["MCP Client"]
|
|
69
|
+
OAI["Codex / OpenAI Client"]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
subgraph Runtime["Codex Mate Runtime"]
|
|
73
|
+
ENTRY["cli.js Entry"]
|
|
74
|
+
API["Local HTTP API"]
|
|
75
|
+
MCPS["MCP stdio Server"]
|
|
76
|
+
PROXY["Built-in Proxy"]
|
|
77
|
+
SERVICES["Config / Sessions / Skills / Workflow"]
|
|
78
|
+
CORE["File IO / Network / Diff / Session Utils"]
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
subgraph State["Local State"]
|
|
82
|
+
CODEX["~/.codex"]
|
|
83
|
+
CLAUDE["~/.claude"]
|
|
84
|
+
OPENCLAW["~/.openclaw"]
|
|
85
|
+
STATE["sessions / trash / workflow runs"]
|
|
80
86
|
end
|
|
81
87
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
CLI --> ENTRY
|
|
89
|
+
WEB -->|GET / + POST /api| API
|
|
90
|
+
MCP -->|stdio JSON-RPC| MCPS
|
|
91
|
+
OAI -->|HTTP /v1| PROXY
|
|
92
|
+
|
|
93
|
+
ENTRY --> SERVICES
|
|
94
|
+
API --> SERVICES
|
|
95
|
+
MCPS --> SERVICES
|
|
96
|
+
PROXY --> CORE
|
|
97
|
+
|
|
98
|
+
SERVICES --> CORE
|
|
99
|
+
|
|
100
|
+
CORE --> CODEX
|
|
101
|
+
CORE --> CLAUDE
|
|
102
|
+
CORE --> OPENCLAW
|
|
103
|
+
CORE --> STATE
|
|
86
104
|
```
|
|
87
105
|
|
|
88
106
|
## 快速开始
|
|
@@ -104,14 +122,13 @@ codexmate run
|
|
|
104
122
|
git clone https://github.com/SakuraByteCore/codexmate.git
|
|
105
123
|
cd codexmate
|
|
106
124
|
npm install
|
|
107
|
-
npm
|
|
108
|
-
codexmate run
|
|
125
|
+
npm start run
|
|
109
126
|
```
|
|
110
127
|
|
|
111
128
|
### 测试 / CI(只启动服务)
|
|
112
129
|
|
|
113
130
|
```bash
|
|
114
|
-
|
|
131
|
+
npm start run --no-browser
|
|
115
132
|
```
|
|
116
133
|
|
|
117
134
|
> 约定:自动化测试仅验证服务与 API,不依赖打开页面。
|
|
@@ -168,6 +185,7 @@ codexmate codex --model gpt-5.3-codex --follow-up "步骤1" --follow-up "步骤2
|
|
|
168
185
|
|
|
169
186
|
### 会话模式
|
|
170
187
|
- Codex + Claude 会话统一列表
|
|
188
|
+
- 支持本地会话置顶、持久化保存与置顶优先排序
|
|
171
189
|
- 搜索、筛选、导出、删除、批量清理
|
|
172
190
|
|
|
173
191
|
## MCP
|