mancode 0.3.12 → 0.3.14
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 +89 -73
- package/README.md +82 -64
- package/dist/{chunk-CFC3HBNA.js → chunk-L3TKSX6R.js} +80 -46
- package/dist/chunk-L3TKSX6R.js.map +1 -0
- package/dist/{chunk-O3QAKAPJ.js → chunk-LMXUPBCN.js} +22 -13
- package/dist/chunk-LMXUPBCN.js.map +1 -0
- package/dist/cli.js +341 -101
- package/dist/cli.js.map +1 -1
- package/dist/{store-JUB2KAFT.js → store-DCTOW75Z.js} +2 -2
- package/dist/{v3-adapter-DDZB3Y6S.js → v3-adapter-CPZNFTJR.js} +2 -2
- package/package.json +3 -3
- package/dist/chunk-CFC3HBNA.js.map +0 -1
- package/dist/chunk-O3QAKAPJ.js.map +0 -1
- /package/dist/{store-JUB2KAFT.js.map → store-DCTOW75Z.js.map} +0 -0
- /package/dist/{v3-adapter-DDZB3Y6S.js.map → v3-adapter-CPZNFTJR.js.map} +0 -0
package/README.md
CHANGED
|
@@ -17,10 +17,8 @@
|
|
|
17
17
|
<p align="center">
|
|
18
18
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="许可证:AGPL-3.0" /></a>
|
|
19
19
|
<a href="https://www.npmjs.com/package/mancode"><img src="https://img.shields.io/npm/v/mancode?style=flat-square" alt="npm 版本" /></a>
|
|
20
|
-
<img src="https://img.shields.io/badge/status-
|
|
21
|
-
<img src="https://img.shields.io/badge/V3-%E8%B7%A8%20CLI%20%E5%9B%A2%E9%98%9F%20Beta-FB6A21?style=flat-square" alt="V3:跨 CLI 团队协作 Beta" />
|
|
20
|
+
<img src="https://img.shields.io/badge/status-V3%20beta%20v0.3.14-orange?style=flat-square" alt="状态:V3 Beta v0.3.14" />
|
|
22
21
|
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="平台:Claude Code、Cursor、ChatGPT 桌面端 Codex、Codex CLI、GitHub Copilot、ZCode" />
|
|
23
|
-
<img src="https://img.shields.io/badge/tests-passing-brightgreen?style=flat-square" alt="测试通过" />
|
|
24
22
|
</p>
|
|
25
23
|
|
|
26
24
|
<p align="center">
|
|
@@ -39,15 +37,15 @@
|
|
|
39
37
|
负责调研、计划、实现和审查。
|
|
40
38
|
|
|
41
39
|
mancode 当前支持 Claude Code、Cursor、ChatGPT 桌面端中的 Codex、Codex CLI、
|
|
42
|
-
GitHub Copilot 和 ZCode
|
|
43
|
-
bootstrap
|
|
40
|
+
GitHub Copilot 和 ZCode。每个平台继续使用原来的 `man*` 入口,并通过静态
|
|
41
|
+
bootstrap 接入统一的 Context Pack 与 workflow authority。
|
|
44
42
|
|
|
45
43
|
mancode 会安装三类能力:
|
|
46
44
|
|
|
47
|
-
1.
|
|
45
|
+
1. **工作流权威数据**:管理显式 session、TaskRef、Context Pack、workflow 和团队协调。
|
|
48
46
|
2. **Skills / modes**:提供 `solo`、`/manba`、`/man`、`/manteam`、`/manps`、
|
|
49
47
|
`/mansolo` 工作流模式。
|
|
50
|
-
3. **平台 bootstrap**:把原入口接到
|
|
48
|
+
3. **平台 bootstrap**:把原入口接到 mancode;只有 `--legacy` 才安装旧 hooks。
|
|
51
49
|
|
|
52
50
|
当 AI 编码代理写太多代码、忽略已有 UI 系统、跳过计划,或者关键改动需要稳定工程流程时,
|
|
53
51
|
mancode 可以作为一层本地工作流约束。
|
|
@@ -83,12 +81,31 @@ ChatGPT 桌面端、Codex CLI 和 Codex IDE 扩展会从 `.agents/skills/` 读
|
|
|
83
81
|
和 [slash command 文档](https://learn.chatgpt.com/docs/reference/slash-commands)。
|
|
84
82
|
已有 workflow 元数据继续兼容,不需要迁移。
|
|
85
83
|
|
|
86
|
-
##
|
|
84
|
+
## 跨会话继续工作
|
|
87
85
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
mancode 把目标、需求、计划、检查结果和交接信息保存在稳定 `TaskRef` 下。换一个聊天
|
|
87
|
+
窗口、重启编码 Agent,或者从另一个受支持的 CLI 继续时,新会话可以恢复同一项任务,
|
|
88
|
+
再按当前目的读取精简的 Context Pack,而不必依赖上一段对话仍然打开。
|
|
89
|
+
|
|
90
|
+
它续接的是**任务上下文**,不是原始聊天记录。不同客户端的 session 仍然隔离;新会话
|
|
91
|
+
必须使用自己的 client 身份,并显式恢复已有 TaskRef。这样既能延续工作,也不会把一个
|
|
92
|
+
窗口的临时状态误当成另一个窗口的身份。
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
mancode status --json
|
|
96
|
+
mancode context session new --client claude-code
|
|
97
|
+
mancode context resume <namespace:ULID> --session <id> --client claude-code
|
|
98
|
+
mancode context show --purpose orient --session <id> --client claude-code
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
原来的 `/man`、`/manba` 和 `/manteam` 入口会处理这些步骤。上面的 CLI 形式适合排查、
|
|
102
|
+
自动化或手工恢复任务。
|
|
103
|
+
|
|
104
|
+
## 跨客户端与团队协作
|
|
105
|
+
|
|
106
|
+
mancode 为团队项目提供稳定 TaskRef、隔离 session、治理账本、worktree claim/handoff,
|
|
107
|
+
以及可选的 git-ref 跨 clone 协调。Claude Code、Cursor、Codex、GitHub Copilot 和
|
|
108
|
+
ZCode 都通过 bootstrap 使用同一套工作流数据;平台文件本身不保存任务或 session 副本。
|
|
92
109
|
|
|
93
110
|
在全新项目中,从一个实际使用的平台开始:
|
|
94
111
|
|
|
@@ -99,30 +116,18 @@ mancode context session new --client claude-code
|
|
|
99
116
|
mancode list-platforms
|
|
100
117
|
```
|
|
101
118
|
|
|
102
|
-
普通 `mancode init`
|
|
103
|
-
`
|
|
104
|
-
`--v3` 仅保留为显式兼容别名;确实需要旧 `state.json` 架构时才使用
|
|
119
|
+
普通 `mancode init` 会生成原来的 `man`、`manba`、`manteam`、`manps`、
|
|
120
|
+
`mansolo` 平台命令,不需要改用另一套命令名。确实需要旧 `state.json` 架构时才使用
|
|
105
121
|
`mancode init --legacy`。
|
|
106
122
|
|
|
107
123
|
创建、恢复和协作均通过 CLI 完成:`mancode workflow create`、`mancode context resume`、
|
|
108
124
|
`mancode team claim` 和 `mancode team handoff`。已有项目先运行
|
|
109
125
|
`mancode migrate context --dry-run`,再按迁移报告确认 stage/activation;不要手工混写
|
|
110
|
-
legacy `state.json`
|
|
111
|
-
|
|
112
|
-
### Beta 的验证边界
|
|
113
|
-
|
|
114
|
-
- `main` 的 Windows 门禁会从 CMD、PowerShell 和 Git Bash 运行 smoke 测试。
|
|
115
|
-
- `mancode context beta --release-candidate <commit> --json` 会检查 activation、adapter、repair、worktree binding 和
|
|
116
|
-
五个平台的 session evidence;evidence 必须绑定同一个不可变发布候选,任何 blocker 都会阻止大范围启用。
|
|
117
|
-
- 每个平台都必须在真实宿主中证明两个窗口的 session 区分、子命令传播以及子 agent 继承(或记录明确的不适用原因)。
|
|
118
|
-
`context session spike` 只记录操作者报告的真实宿主结果,不会由临时环境变量自动推断传播成功;证据不保存原始 session key。
|
|
119
|
-
|
|
120
|
-
在门禁通过前,继续显式传入 `--session <id>`,不要把 host identity 视为已验证。这样可以
|
|
121
|
-
先试用 V3,同时避免把尚未证明的跨平台 session 行为当作事实。
|
|
126
|
+
legacy `state.json` 与当前工作流权威数据。
|
|
122
127
|
|
|
123
128
|
## 安装后创建哪些文件?
|
|
124
129
|
|
|
125
|
-
默认的 `mancode init` 会创建
|
|
130
|
+
默认的 `mancode init` 会创建 mancode 工作流目录和平台适配文件:
|
|
126
131
|
|
|
127
132
|
```text
|
|
128
133
|
.mancode/
|
|
@@ -140,7 +145,7 @@ AGENTS.md # Codex(ChatGPT 桌面端/CLI):托管 ins
|
|
|
140
145
|
.github/prompts/ # GitHub Copilot:原 mode prompts
|
|
141
146
|
```
|
|
142
147
|
|
|
143
|
-
`.mancode/`
|
|
148
|
+
`.mancode/` 把可共享的工作流数据与 checkout-local 的 session、workflow 和扫描报告分开。
|
|
144
149
|
平台文件只保存 bootstrap 和原模式入口,不保存 task/session 副本。
|
|
145
150
|
`mancode init --legacy` 才会创建旧的 `state.json` 布局。
|
|
146
151
|
|
|
@@ -150,7 +155,7 @@ AGENTS.md # Codex(ChatGPT 桌面端/CLI):托管 ins
|
|
|
150
155
|
- **在存在 UI 时匹配现有设计系统**:检查项目 UI 依赖、Tailwind 配置、CSS 变量和已有组件,让 agent 复用现有颜色、字体和交互模式。
|
|
151
156
|
- **先把需求和计划对齐**:`/man` 会调研项目、引导澄清会改变方案的需求、推荐可行选项并生成可确认的持久计划;计划完成后不会自动进入完整实施。
|
|
152
157
|
- **自由选择执行强度**:计划确认后,可只保留计划、交给默认 `solo` 轻量开发,或继续完整 `/man` 的验证与有界风险审查。
|
|
153
|
-
- **保留工作流产物**:调研、计划、审查报告和总结会保存到 `.mancode
|
|
158
|
+
- **保留工作流产物**:调研、计划、审查报告和总结会保存到 `.mancode/<namespace>/workflows/<ULID>/`。
|
|
154
159
|
- **支持团队上下文**:`/manteam` 通过 `.mancode/shared/` 的类型化实体共享已确认信息。
|
|
155
160
|
- **扫描项目健康度**:`mancode manps` 检测陈旧 TODO、未使用依赖、风险依赖和硬编码设计值。
|
|
156
161
|
|
|
@@ -159,7 +164,7 @@ AGENTS.md # Codex(ChatGPT 桌面端/CLI):托管 ins
|
|
|
159
164
|
mancode 适合:
|
|
160
165
|
|
|
161
166
|
- 正在使用 AI 编码代理的后端、Web、移动端、桌面端、CLI、库、数据或混合项目
|
|
162
|
-
- 希望在原 `man*` 命令中使用
|
|
167
|
+
- 希望在原 `man*` 命令中使用 Context Pack、skills 和显式治理的用户
|
|
163
168
|
- 希望 AI 代理复用已有组件和代码模式的团队
|
|
164
169
|
- 需要可重复 AI 辅助代码审查流程的项目
|
|
165
170
|
- 已有 UI 组件、主题、CSS 变量或设计约定的界面项目
|
|
@@ -205,8 +210,8 @@ mancode 不是 Claude Code、Cursor、Codex 或 Copilot 的替代品。它是在
|
|
|
205
210
|
|
|
206
211
|
## 使用方法
|
|
207
212
|
|
|
208
|
-
|
|
209
|
-
对话中调用原命令;入口会解析
|
|
213
|
+
mancode 不把“当前模式”写进持久状态。需要某种工作方式时,直接在 AI 编码代理的
|
|
214
|
+
对话中调用原命令;入口会解析 status、session、TaskRef 和 Context Pack:
|
|
210
215
|
|
|
211
216
|
| 模式 | 适合场景 | 做什么 |
|
|
212
217
|
|---|---|---|
|
|
@@ -215,7 +220,7 @@ V3 不再把“当前模式”写进持久状态。需要某种工作方式时
|
|
|
215
220
|
| `/man` | 需要需求对齐或正式计划的改动 · 季后赛 | 调研、方案推荐和持久计划;确认后选择 solo 轻量开发或完整 9 步治理 |
|
|
216
221
|
| `/manteam` | 团队项目 · 上场五人,一条心 | 共享记忆、决策记录、协作和 Conventional Commits |
|
|
217
222
|
| `/manps` | 清理和维护 · 季前赛 | 输出 Markdown 和 JSON 项目健康报告 |
|
|
218
|
-
| `/mansolo` | 回到轻量工作 | 不写 legacy mode;需要时执行显式
|
|
223
|
+
| `/mansolo` | 回到轻量工作 | 不写 legacy mode;需要时执行显式 handoff |
|
|
219
224
|
|
|
220
225
|
## `/man` 如何工作:季后赛模式
|
|
221
226
|
|
|
@@ -223,7 +228,7 @@ V3 不再把“当前模式”写进持久状态。需要某种工作方式时
|
|
|
223
228
|
`solo`,当用户要求先调研、给方案或出计划时,也会进入 `/man`。它会先了解项目,
|
|
224
229
|
只追问会改变范围、架构、成本或验收的问题;适合由系统推荐的决策会给出 2–3 个
|
|
225
230
|
方案、优缺点和明确建议。需求足够清楚后,计划才会写入
|
|
226
|
-
`.mancode/local/workflows/<
|
|
231
|
+
`.mancode/local/workflows/<ULID>/plan.md`。
|
|
227
232
|
|
|
228
233
|
计划完成不会自动开始完整开发。用户在计划关卡选择:交给 `solo` 按已确认计划
|
|
229
234
|
轻量开发、继续完整 `/man`、只保留计划,或修改计划。只有选择完整 `/man` 才继续
|
|
@@ -245,16 +250,16 @@ V3 不再把“当前模式”写进持久状态。需要某种工作方式时
|
|
|
245
250
|
|
|
246
251
|
### Bootstrap 和 Adapters
|
|
247
252
|
|
|
248
|
-
|
|
249
|
-
`man/manba/manteam/manps/mansolo` 入口;任务、模式和 session
|
|
250
|
-
为准。Claude Code 的内部 bootstrap
|
|
253
|
+
mancode 默认不假设任何 hook 已获批准。平台 adapter 只安装稳定 bootstrap 与原来的
|
|
254
|
+
`man/manba/manteam/manps/mansolo` 入口;任务、模式和 session 以 mancode 工作流数据
|
|
255
|
+
为准。Claude Code 的内部 bootstrap 对用户隐藏,不会增加额外的公共命令。
|
|
251
256
|
没有经真实宿主验证的 session 传播时,写命令必须显式传入 `--session`。
|
|
252
257
|
|
|
253
258
|
只有 `mancode init --legacy` 才安装读取 `.mancode/state.json` 的旧 Claude hooks。
|
|
254
259
|
|
|
255
260
|
### 设计 Token 感知
|
|
256
261
|
|
|
257
|
-
mancode
|
|
262
|
+
mancode 会把检测到的项目事实写入 `.mancode/shared/context/project.json`;
|
|
258
263
|
checkout-local 的设计 token 缓存位于 `.mancode/local/cache/`。它可用于后端服务、
|
|
259
264
|
Web、移动端、桌面端、CLI、库和混合仓库;不会预设 JavaScript 或 UI 技术栈。
|
|
260
265
|
|
|
@@ -286,7 +291,7 @@ src/components/
|
|
|
286
291
|
|
|
287
292
|
### 团队记忆
|
|
288
293
|
|
|
289
|
-
`/manteam`
|
|
294
|
+
`/manteam` 通过共享工作流数据读写经过确认的团队实体:
|
|
290
295
|
|
|
291
296
|
```text
|
|
292
297
|
.mancode/shared/
|
|
@@ -300,9 +305,9 @@ src/components/
|
|
|
300
305
|
|
|
301
306
|
## 安装
|
|
302
307
|
|
|
303
|
-
|
|
304
|
-
Codex CLI 和 GitHub Copilot
|
|
305
|
-
|
|
308
|
+
**状态**:V3 Beta v0.3.14。Claude Code、Cursor、ChatGPT 桌面端中的 Codex、
|
|
309
|
+
Codex CLI 和 GitHub Copilot 均已接入;ZCode adapter 已接入。正式稳定发布仍需
|
|
310
|
+
完成五平台真实宿主验收和 `context beta` B1 门禁。
|
|
306
311
|
|
|
307
312
|
需要 Node.js 20 或更高版本。原生支持 macOS、Linux、Windows CMD、
|
|
308
313
|
PowerShell 和 Git Bash。Git 是可选依赖:未安装时仍可初始化,只会把团队
|
|
@@ -319,7 +324,7 @@ mancode init --platform all
|
|
|
319
324
|
|
|
320
325
|
平台支持:
|
|
321
326
|
|
|
322
|
-
- Claude Code:隐藏 bootstrap 与原 mode skills
|
|
327
|
+
- Claude Code:隐藏 bootstrap 与原 mode skills;默认不依赖 hooks
|
|
323
328
|
- Cursor:`.cursor/rules/*.mdc` bootstrap 与 `.cursor/commands/` 原 mode commands
|
|
324
329
|
- Codex(ChatGPT 桌面端、CLI、IDE 扩展):托管 `AGENTS.md` block,并在
|
|
325
330
|
`.agents/skills/` 下提供 `$man*` 项目 skills
|
|
@@ -340,8 +345,8 @@ mancode init --platform PLATFORMS # 一个或多个:claude-code,cursor,codex,c
|
|
|
340
345
|
mancode init --empty # 非交互脚本中允许安全的空目录
|
|
341
346
|
mancode init --lang zh-CN # 显式指定初始化语言(zh-CN 或 en)
|
|
342
347
|
mancode refresh-project # 后续加入 Git 或项目文件后刷新项目事实
|
|
343
|
-
mancode install --force # 修复或重装所选
|
|
344
|
-
mancode install --minimal #
|
|
348
|
+
mancode install --force # 修复或重装所选 adapter
|
|
349
|
+
mancode install --minimal # bootstrap 已是最小形态;保留兼容参数
|
|
345
350
|
```
|
|
346
351
|
|
|
347
352
|
## Agent Modes
|
|
@@ -374,6 +379,8 @@ mancode list-platforms
|
|
|
374
379
|
mancode team identity create --name "<name>"
|
|
375
380
|
mancode context session new --client <platform>
|
|
376
381
|
mancode workflow create <man|manba|manteam> "<task>" --session <id>
|
|
382
|
+
mancode workflow list --json
|
|
383
|
+
mancode workflow show <namespace:ULID> --json
|
|
377
384
|
mancode context resume <local:ULID|shared:ULID> --session <id>
|
|
378
385
|
mancode workflow requirements <namespace:ULID> finalize --file <requirements.json> --expected-revision <n> --session <id>
|
|
379
386
|
mancode workflow plan <namespace:ULID> revise --file <plan.md> --expected-revision <n> --session <id>
|
|
@@ -392,19 +399,18 @@ mancode version
|
|
|
392
399
|
|
|
393
400
|
### `mancode status`
|
|
394
401
|
|
|
395
|
-
|
|
402
|
+
以下是简化输出示例:
|
|
396
403
|
|
|
397
404
|
```text
|
|
398
|
-
mancode v0.3.
|
|
405
|
+
mancode v0.3.14
|
|
399
406
|
|
|
400
407
|
Project: my-app
|
|
401
|
-
Activation: v3_active
|
|
402
408
|
Runtime: ready
|
|
403
409
|
Transport: local
|
|
404
410
|
Identity: not configured
|
|
405
411
|
Session evidence: explicit required
|
|
406
412
|
|
|
407
|
-
|
|
413
|
+
mancode adapter status:
|
|
408
414
|
○ Claude Code: not installed
|
|
409
415
|
○ Cursor: not installed
|
|
410
416
|
✓ Codex (ChatGPT desktop/CLI): ready
|
|
@@ -425,7 +431,7 @@ Issue DB: .mancode/local/preseason-issues.json
|
|
|
425
431
|
|
|
426
432
|
### `mancode init`
|
|
427
433
|
|
|
428
|
-
初始化
|
|
434
|
+
初始化 mancode 工作流数据,并把所选平台的原 mode 入口接到 Context Pack 与 workflow CLI。
|
|
429
435
|
不会创建 legacy `state.json`;旧架构需显式运行 `mancode init --legacy`。
|
|
430
436
|
|
|
431
437
|
```bash
|
|
@@ -434,7 +440,7 @@ mancode init
|
|
|
434
440
|
|
|
435
441
|
### `mancode status`
|
|
436
442
|
|
|
437
|
-
显示
|
|
443
|
+
显示 activation、runtime binding、identity/session evidence、transport 和各平台
|
|
438
444
|
bootstrap/原 mode 入口的实际就绪状态。
|
|
439
445
|
|
|
440
446
|
```bash
|
|
@@ -444,7 +450,7 @@ mancode status --json
|
|
|
444
450
|
|
|
445
451
|
### `mancode workflow`
|
|
446
452
|
|
|
447
|
-
创建和管理 `/manba`、`/man` 和 `/manteam` 使用的
|
|
453
|
+
创建和管理 `/manba`、`/man` 和 `/manteam` 使用的 workflow。每次写入使用
|
|
448
454
|
`namespace:ULID` TaskRef、显式 session 和最新 expected revision;requirements、plan、
|
|
449
455
|
review、verification 与 completion 各走专用命令,不再使用 legacy `--step` 协议。
|
|
450
456
|
|
|
@@ -454,9 +460,11 @@ mancode context session new --client codex
|
|
|
454
460
|
mancode workflow create man "refactor auth module" --session <id>
|
|
455
461
|
mancode workflow requirements <local:ULID> finalize --file requirements.json --expected-revision <n> --session <id>
|
|
456
462
|
mancode workflow plan <local:ULID> revise --file plan.md --expected-revision <n> --session <id>
|
|
463
|
+
mancode workflow plan <local:ULID> confirm --plan-decision <plan_only|governed_execution> --expected-revision <n> --session <id>
|
|
457
464
|
mancode workflow review <local:ULID> apply --file review-ledger.json --expected-revision <n> --session <id>
|
|
458
465
|
mancode workflow verify <local:ULID> apply --file verification-ledger.json --expected-revision <n> --session <id>
|
|
459
466
|
mancode workflow complete <local:ULID> --expected-revision <n> --session <id>
|
|
467
|
+
mancode context compact --dry-run
|
|
460
468
|
```
|
|
461
469
|
|
|
462
470
|
### `mancode manps`
|
|
@@ -488,7 +496,7 @@ mancode manps config
|
|
|
488
496
|
.mancode/shared/context/project.json
|
|
489
497
|
```
|
|
490
498
|
|
|
491
|
-
|
|
499
|
+
平台 adapter 是不嵌入 task/style 快照的静态 bootstrap,因此刷新项目事实后不需要重装。
|
|
492
500
|
|
|
493
501
|
## 项目文件
|
|
494
502
|
|
|
@@ -499,7 +507,7 @@ mancode/
|
|
|
499
507
|
│ ├── mancode status
|
|
500
508
|
│ └── mancode install <platform>
|
|
501
509
|
│
|
|
502
|
-
├──
|
|
510
|
+
├── Workflow authority
|
|
503
511
|
│ ├── shared/context + team
|
|
504
512
|
│ └── local/session + workflow + cache
|
|
505
513
|
│
|
|
@@ -571,23 +579,33 @@ mancode/
|
|
|
571
579
|
(context、practice、solo)在每次对话加载。模式规则(manba、man、manteam、
|
|
572
580
|
manps)按 description 触发——输入 `/manba` 等关键词即可激活。
|
|
573
581
|
|
|
574
|
-
###
|
|
582
|
+
### 如何重装 V3 适配器
|
|
575
583
|
|
|
576
584
|
```bash
|
|
577
|
-
mancode uninstall
|
|
578
|
-
mancode
|
|
579
|
-
mancode
|
|
585
|
+
mancode uninstall claude-code --force
|
|
586
|
+
mancode uninstall cursor --force
|
|
587
|
+
mancode uninstall codex --force
|
|
588
|
+
mancode uninstall copilot --force
|
|
589
|
+
mancode uninstall zcode --force
|
|
590
|
+
mancode install claude-code
|
|
591
|
+
mancode install cursor
|
|
592
|
+
mancode install codex
|
|
593
|
+
mancode install copilot
|
|
594
|
+
mancode install zcode
|
|
580
595
|
```
|
|
581
596
|
|
|
582
|
-
|
|
597
|
+
V3 authority 受保护,`mancode uninstall --all` 不会删除工作流权威数据。需要
|
|
598
|
+
清理运行时保留记录时,先用 `mancode context compact --dry-run` 检查候选。
|
|
599
|
+
|
|
600
|
+
### 如何移除 CLI
|
|
583
601
|
|
|
584
602
|
```bash
|
|
585
|
-
mancode uninstall --all --force
|
|
586
603
|
npm uninstall -g mancode
|
|
587
604
|
```
|
|
588
605
|
|
|
589
|
-
|
|
590
|
-
|
|
606
|
+
逐个平台卸载会移除对应的 mancode bootstrap,并保留用户自定义 rules、instructions
|
|
607
|
+
和 V3 工作流数据。旧项目若明确使用 `mancode init --legacy`,才支持 legacy 的
|
|
608
|
+
`mancode uninstall --all --force`。
|
|
591
609
|
|
|
592
610
|
## 常见问题
|
|
593
611
|
|
|
@@ -615,7 +633,7 @@ hooks。用户自定义的 rules 和 instructions 会被保留。
|
|
|
615
633
|
|
|
616
634
|
支持。mancode 通过静态 bootstrap 和原 mode 入口支持 Claude Code、Cursor、
|
|
617
635
|
ChatGPT 桌面端中的 Codex、Codex CLI、GitHub Copilot,并提供实验性 ZCode adapter。
|
|
618
|
-
|
|
636
|
+
mancode 默认不把任何平台的 hook 当成已批准能力。
|
|
619
637
|
|
|
620
638
|
### mancode 能改善前端一致性吗?
|
|
621
639
|
|