codexmate 0.0.17 → 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 -23
- package/README.md +42 -23
- package/cli.js +1447 -157
- package/lib/text-diff.js +303 -0
- package/package.json +1 -1
- package/web-ui/app.js +1728 -202
- package/web-ui/index.html +306 -77
- package/web-ui/logic.mjs +390 -0
- package/web-ui/modules/skills.methods.mjs +7 -1
- package/web-ui/session-helpers.mjs +350 -0
- package/web-ui/styles.css +481 -11
package/README.en.md
CHANGED
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
**Local configuration and session manager for Codex / Claude Code / OpenClaw**
|
|
6
6
|
|
|
7
|
-
Current version: `v0.0.17`
|
|
8
|
-
|
|
9
|
-
|
|
10
7
|
[](https://github.com/SakuraByteCore/codexmate/actions/workflows/release.yml)
|
|
11
8
|
[](https://www.npmjs.com/package/codexmate)
|
|
12
9
|
[](https://www.npmjs.com/package/codexmate)
|
|
@@ -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)
|
|
@@ -63,25 +61,46 @@ It works on local files directly and does not require cloud hosting.
|
|
|
63
61
|
## Architecture
|
|
64
62
|
|
|
65
63
|
```mermaid
|
|
66
|
-
flowchart
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
subgraph
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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"]
|
|
79
86
|
end
|
|
80
87
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
|
85
104
|
```
|
|
86
105
|
|
|
87
106
|
## Quick Start
|
|
@@ -103,14 +122,13 @@ Default listen address is `127.0.0.1:3737`, and browser auto-open is enabled by
|
|
|
103
122
|
git clone https://github.com/SakuraByteCore/codexmate.git
|
|
104
123
|
cd codexmate
|
|
105
124
|
npm install
|
|
106
|
-
npm
|
|
107
|
-
codexmate run
|
|
125
|
+
npm start run
|
|
108
126
|
```
|
|
109
127
|
|
|
110
128
|
### Tests / CI (service only)
|
|
111
129
|
|
|
112
130
|
```bash
|
|
113
|
-
|
|
131
|
+
npm start run --no-browser
|
|
114
132
|
```
|
|
115
133
|
|
|
116
134
|
> Convention: automated tests validate service and API behavior only, without opening browser pages.
|
|
@@ -167,6 +185,7 @@ codexmate codex --model gpt-5.3-codex --follow-up "step1" --follow-up "step2"
|
|
|
167
185
|
|
|
168
186
|
### Sessions Mode
|
|
169
187
|
- Unified Codex + Claude sessions
|
|
188
|
+
- Local pin/unpin with persistent storage and pinned-first ordering
|
|
170
189
|
- Search, filter, export, delete, batch cleanup
|
|
171
190
|
|
|
172
191
|
## MCP
|
package/README.md
CHANGED
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
**Codex / Claude Code / OpenClaw 的本地配置与会话管理工具**
|
|
6
6
|
|
|
7
|
-
当前版本:`v0.0.17`
|
|
8
|
-
|
|
9
|
-
|
|
10
7
|
[](https://github.com/SakuraByteCore/codexmate/actions/workflows/release.yml)
|
|
11
8
|
[](https://www.npmjs.com/package/codexmate)
|
|
12
9
|
[](https://www.npmjs.com/package/codexmate)
|
|
@@ -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
|
- 会话与消息级删除(支持批量)
|
|
@@ -63,25 +61,46 @@ Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
|
|
|
63
61
|
## 架构总览
|
|
64
62
|
|
|
65
63
|
```mermaid
|
|
66
|
-
flowchart
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
subgraph
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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"]
|
|
79
86
|
end
|
|
80
87
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
|
85
104
|
```
|
|
86
105
|
|
|
87
106
|
## 快速开始
|
|
@@ -103,14 +122,13 @@ codexmate run
|
|
|
103
122
|
git clone https://github.com/SakuraByteCore/codexmate.git
|
|
104
123
|
cd codexmate
|
|
105
124
|
npm install
|
|
106
|
-
npm
|
|
107
|
-
codexmate run
|
|
125
|
+
npm start run
|
|
108
126
|
```
|
|
109
127
|
|
|
110
128
|
### 测试 / CI(只启动服务)
|
|
111
129
|
|
|
112
130
|
```bash
|
|
113
|
-
|
|
131
|
+
npm start run --no-browser
|
|
114
132
|
```
|
|
115
133
|
|
|
116
134
|
> 约定:自动化测试仅验证服务与 API,不依赖打开页面。
|
|
@@ -167,6 +185,7 @@ codexmate codex --model gpt-5.3-codex --follow-up "步骤1" --follow-up "步骤2
|
|
|
167
185
|
|
|
168
186
|
### 会话模式
|
|
169
187
|
- Codex + Claude 会话统一列表
|
|
188
|
+
- 支持本地会话置顶、持久化保存与置顶优先排序
|
|
170
189
|
- 搜索、筛选、导出、删除、批量清理
|
|
171
190
|
|
|
172
191
|
## MCP
|