mancode 0.4.2 → 0.5.1
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 +84 -16
- package/README.md +61 -17
- package/dist/{chunk-LYRYNJHW.js → chunk-SOZ5OUAG.js} +201 -28
- package/dist/chunk-SOZ5OUAG.js.map +1 -0
- package/dist/{chunk-3FOBYCF4.js → chunk-VHZI2WKD.js} +4 -2
- package/dist/{chunk-3FOBYCF4.js.map → chunk-VHZI2WKD.js.map} +1 -1
- package/dist/cli.js +1899 -792
- package/dist/cli.js.map +1 -1
- package/dist/{store-GCLUP5IO.js → store-EEWJJANB.js} +2 -2
- package/dist/{v3-adapter-E6VEEDCF.js → v3-adapter-CRSQO3XW.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-LYRYNJHW.js.map +0 -1
- /package/dist/{store-GCLUP5IO.js.map → store-EEWJJANB.js.map} +0 -0
- /package/dist/{v3-adapter-E6VEEDCF.js.map → v3-adapter-CRSQO3XW.js.map} +0 -0
package/README.en.md
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
13
|
Adapts to common coding agent tools, including Claude Code, Cursor, Codex in
|
|
14
|
-
the ChatGPT desktop app and CLI, GitHub Copilot, and
|
|
14
|
+
the ChatGPT desktop app and CLI, GitHub Copilot, ZCode, Kimi Code, and Qoder.
|
|
15
15
|
</p>
|
|
16
16
|
|
|
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="License: 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 version" /></a>
|
|
20
|
-
<img src="https://img.shields.io/badge/status-Continuity%20v0.
|
|
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="Platforms: Claude Code, Cursor, Codex in ChatGPT desktop and CLI, GitHub Copilot, ZCode" />
|
|
20
|
+
<img src="https://img.shields.io/badge/status-Continuity%20v0.5.1-2f855a?style=flat-square" alt="Status: mancode Continuity v0.5.1" />
|
|
21
|
+
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode%20%7C%20Kimi%20Code%20%7C%20Qoder-5865F2?style=flat-square" alt="Platforms: Claude Code, Cursor, Codex in ChatGPT desktop and CLI, GitHub Copilot, ZCode, Kimi Code, Qoder" />
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
@@ -41,7 +41,8 @@ conversations.
|
|
|
41
41
|
[Installation](#installation) · [Usage](#usage)
|
|
42
42
|
|
|
43
43
|
mancode ships with adapters for Claude Code, Cursor, Codex in the ChatGPT
|
|
44
|
-
desktop app and CLI, GitHub Copilot,
|
|
44
|
+
desktop app and CLI, GitHub Copilot, ZCode, Kimi Code (desktop/CLI), and Qoder
|
|
45
|
+
(IDE/CLI). It keeps the original `man*`
|
|
45
46
|
entries on every platform and connects them to one Context Pack and workflow
|
|
46
47
|
authority through static bootstraps.
|
|
47
48
|
|
|
@@ -124,7 +125,8 @@ CLI form above is useful for diagnostics, automation, or manual recovery.
|
|
|
124
125
|
|
|
125
126
|
mancode gives team projects stable TaskRefs, isolated sessions, governance
|
|
126
127
|
ledgers, worktree claims and handoffs, and optional git-ref coordination across
|
|
127
|
-
clones. Claude Code, Cursor, Codex, GitHub Copilot,
|
|
128
|
+
clones. Claude Code, Cursor, Codex, GitHub Copilot, ZCode, Kimi Code, and
|
|
129
|
+
Qoder use the same
|
|
128
130
|
workflow data through platform bootstraps; platform files do not hold task or
|
|
129
131
|
session copies.
|
|
130
132
|
|
|
@@ -172,13 +174,15 @@ By default, `mancode init` creates mancode workflow and platform integration fil
|
|
|
172
174
|
├── schema.json
|
|
173
175
|
├── shared/config.json
|
|
174
176
|
├── shared/context/project.json
|
|
177
|
+
├── shared/context/design-policy.json # optional; created by design configure
|
|
175
178
|
├── shared/team/
|
|
176
|
-
└── local/ # sessions, workflows,
|
|
179
|
+
└── local/ # sessions, workflows, scan reports, style cache
|
|
177
180
|
|
|
178
181
|
.claude/skills/ # Claude Code: bootstrap + original mode skills
|
|
179
182
|
.cursor/rules/ + commands/ # Cursor: bootstrap + original mode commands
|
|
180
|
-
AGENTS.md # Codex
|
|
181
|
-
.agents/skills/ # Codex / ZCode: original mode skills
|
|
183
|
+
AGENTS.md # Codex / ZCode / Kimi Code / Qoder: separate managed instruction blocks
|
|
184
|
+
.agents/skills/ # Codex / ZCode / Kimi Code: original mode skills
|
|
185
|
+
.qoder/commands/ # Qoder: original mode commands
|
|
182
186
|
.github/copilot-instructions.md # GitHub Copilot: managed instruction block
|
|
183
187
|
.github/prompts/ # GitHub Copilot: original mode prompts
|
|
184
188
|
```
|
|
@@ -206,7 +210,7 @@ the original mode entries, never task/session snapshots. `mancode init
|
|
|
206
210
|
- **Support team context**: use `/manteam` with confirmed typed entities under
|
|
207
211
|
`.mancode/shared/`.
|
|
208
212
|
- **Scan project health**: use `mancode manps` to detect stale TODOs, unused
|
|
209
|
-
dependencies, risky packages, and hardcoded design values.
|
|
213
|
+
dependencies, risky packages, mixed icon systems, and hardcoded design values.
|
|
210
214
|
|
|
211
215
|
## Best Fit
|
|
212
216
|
|
|
@@ -381,8 +385,8 @@ it should behave, and why previous decisions were made.
|
|
|
381
385
|
|
|
382
386
|
## Installation
|
|
383
387
|
|
|
384
|
-
**Status**: mancode Continuity v0.
|
|
385
|
-
desktop app and CLI, GitHub Copilot, and
|
|
388
|
+
**Status**: mancode Continuity v0.5.1. Claude Code, Cursor, Codex in the ChatGPT
|
|
389
|
+
desktop app and CLI, GitHub Copilot, ZCode, Kimi Code, and Qoder adapters are included.
|
|
386
390
|
|
|
387
391
|
Requires Node.js 20 or newer. macOS, Linux, Windows CMD, PowerShell, and Git Bash
|
|
388
392
|
are supported. Git is optional: without it, initialization continues with solo
|
|
@@ -408,6 +412,11 @@ Supported platforms:
|
|
|
408
412
|
- ZCode: managed `AGENTS.md` block and provisional `$man*` skills in
|
|
409
413
|
`.agents/skills/`; project skill discovery and slash commands pending verified
|
|
410
414
|
workspace paths
|
|
415
|
+
- Kimi Code (desktop app and CLI): managed `AGENTS.md` block plus
|
|
416
|
+
`/skill:man*` repo skills under `.agents/skills/`; host discovery paths
|
|
417
|
+
pending real-host verification
|
|
418
|
+
- Qoder (IDE and CLI): managed `AGENTS.md` block plus `/man*` repo commands
|
|
419
|
+
under `.qoder/commands/`; host discovery paths pending real-host verification
|
|
411
420
|
- Windsurf, Cline, Roo Code: planned later
|
|
412
421
|
|
|
413
422
|
### Install Options
|
|
@@ -418,7 +427,7 @@ mancode init --yes # Skip generic-project confirmation (use --platform in
|
|
|
418
427
|
mancode init --team # Force-enable team mode
|
|
419
428
|
mancode init --no-team # Force-disable team mode
|
|
420
429
|
mancode init --legacy --style NAME # Legacy only: save a default style preference
|
|
421
|
-
mancode init --platform PLATFORMS # One or more: claude-code,cursor,codex,copilot,zcode, or all
|
|
430
|
+
mancode init --platform PLATFORMS # One or more: claude-code,cursor,codex,copilot,zcode,kimi-code,qoder, or all
|
|
422
431
|
mancode init --empty # Allow a safe empty directory in non-interactive scripts
|
|
423
432
|
mancode init --lang zh-CN # Explicit initialization language (zh-CN or en)
|
|
424
433
|
mancode refresh-project # Refresh facts after Git or project files are added
|
|
@@ -453,7 +462,7 @@ mancode init --legacy
|
|
|
453
462
|
mancode status
|
|
454
463
|
mancode status --json
|
|
455
464
|
mancode status --brief --json
|
|
456
|
-
mancode install <claude-code|cursor|codex|copilot|zcode> --confirm --operation-id <operationId> --session <id> --client <client>
|
|
465
|
+
mancode install <claude-code|cursor|codex|copilot|zcode|kimi-code|qoder> --confirm --operation-id <operationId> --session <id> --client <client>
|
|
457
466
|
mancode adapter status [--platform <platform>] --json
|
|
458
467
|
mancode adapter upgrade <--all|--platform <platform>> --dry-run
|
|
459
468
|
mancode adapter upgrade <--all|--platform <platform>> --confirm --operation-id <operationId> --session <id> --client <client>
|
|
@@ -476,8 +485,12 @@ mancode workflow verify <namespace:ULID> apply --file <verification-ledger.json>
|
|
|
476
485
|
mancode workflow reframe <local:ULID> --expected-revision <n> --checkpoint-id <ULID> --session <id>
|
|
477
486
|
mancode workflow complete <namespace:ULID> --expected-revision <n> --session <id>
|
|
478
487
|
mancode manps [area]
|
|
488
|
+
mancode design status --json
|
|
489
|
+
mancode design context --json
|
|
490
|
+
mancode design configure --expected-revision <n> [options]
|
|
491
|
+
mancode design disable --expected-revision <n>
|
|
479
492
|
mancode refresh-project
|
|
480
|
-
mancode refresh-style
|
|
493
|
+
mancode refresh-style [--root <relative-path>]
|
|
481
494
|
mancode version
|
|
482
495
|
```
|
|
483
496
|
|
|
@@ -488,7 +501,7 @@ mancode version
|
|
|
488
501
|
Simplified output:
|
|
489
502
|
|
|
490
503
|
```text
|
|
491
|
-
mancode v0.
|
|
504
|
+
mancode v0.5.1
|
|
492
505
|
|
|
493
506
|
Project: my-app
|
|
494
507
|
Runtime: ready
|
|
@@ -502,6 +515,8 @@ mancode adapter status:
|
|
|
502
515
|
✓ Codex (ChatGPT desktop/CLI): ready
|
|
503
516
|
○ GitHub Copilot: not installed
|
|
504
517
|
○ ZCode: not installed
|
|
518
|
+
○ Kimi Code (desktop/CLI): not installed
|
|
519
|
+
○ Qoder (IDE/CLI): not installed
|
|
505
520
|
```
|
|
506
521
|
|
|
507
522
|
### `mancode manps deps`
|
|
@@ -578,6 +593,53 @@ Outputs:
|
|
|
578
593
|
.mancode/local/preseason-reports/<timestamp>-<area>.md
|
|
579
594
|
```
|
|
580
595
|
|
|
596
|
+
### `mancode design`
|
|
597
|
+
|
|
598
|
+
Project design policy is opt-in. `mancode init` does not create a policy. When
|
|
599
|
+
the policy is missing, disabled, or corrupt, `design context` safely resolves to
|
|
600
|
+
`preserve`; ordinary coding and workflow recovery continue normally.
|
|
601
|
+
Legacy projects can read this safe context, but only current Continuity projects
|
|
602
|
+
can configure the shared policy.
|
|
603
|
+
|
|
604
|
+
- `preserve` retains the existing hierarchy, layout, component system, and
|
|
605
|
+
interaction patterns while making only task-required UI changes.
|
|
606
|
+
- `refine` improves hierarchy, typography, spacing, states, and responsive
|
|
607
|
+
behavior without changing the product structure.
|
|
608
|
+
- `experimental` permits one coherent, product-appropriate visual direction
|
|
609
|
+
and more advanced composition or motion, but requires
|
|
610
|
+
`--confirm-experimental`. It never authorizes new product behavior,
|
|
611
|
+
information-architecture changes, or broader task scope.
|
|
612
|
+
|
|
613
|
+
For a new UI surface or aesthetic redesign, if the user has not selected a
|
|
614
|
+
visual direction, the agent first presents 2-3 distinct,
|
|
615
|
+
product-appropriate directions with concise tradeoffs and a recommendation,
|
|
616
|
+
then waits for the user to choose. Scoped UI fixes, changes within an existing
|
|
617
|
+
design system, and tasks with an already selected direction continue directly.
|
|
618
|
+
For brand, campaign, editorial, portfolio, and launch surfaces, `experimental`
|
|
619
|
+
emphasizes a memorable first viewport and a visual motif carried through the
|
|
620
|
+
full page; task-oriented products still prioritize workflow clarity.
|
|
621
|
+
|
|
622
|
+
The policy stores only strict enums for preset, icons, emoji, motion, and browser
|
|
623
|
+
validation, never free-form prompt text. Agents read code-generated guidance,
|
|
624
|
+
quality gates, and a sanitized style summary through `mancode design context
|
|
625
|
+
--json`. `--icons lucide` does not install Lucide; dependency changes still need
|
|
626
|
+
explicit task approval.
|
|
627
|
+
|
|
628
|
+
```bash
|
|
629
|
+
mancode design status --json
|
|
630
|
+
mancode design configure --expected-revision 0 --preset refine --icons lucide --emoji forbid-as-interface-icon --motion purposeful --browser-validation when-available
|
|
631
|
+
mancode design context --json
|
|
632
|
+
mancode design disable --expected-revision 1
|
|
633
|
+
|
|
634
|
+
# experimental always needs an extra confirmation
|
|
635
|
+
mancode design configure --expected-revision 0 --preset experimental --confirm-experimental
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
The policy lives at `.mancode/shared/context/design-policy.json` and should be
|
|
639
|
+
reviewed and committed like other repository configuration. `configure` and
|
|
640
|
+
`disable` update only the current checkout; they do not publish a git-ref remote
|
|
641
|
+
sync receipt.
|
|
642
|
+
|
|
581
643
|
### `mancode refresh-style`
|
|
582
644
|
|
|
583
645
|
Refreshes the project profile and, when UI assets are detected, rescans design
|
|
@@ -588,6 +650,11 @@ tokens. It updates:
|
|
|
588
650
|
.mancode/shared/context/project.json
|
|
589
651
|
```
|
|
590
652
|
|
|
653
|
+
For a monorepo, select one repository-relative UI root explicitly, for example
|
|
654
|
+
`mancode refresh-style --root apps/web`. Absolute paths, traversal, and symlinks
|
|
655
|
+
that escape the repository are rejected. Omitting `--root` preserves the
|
|
656
|
+
whole-repository scan behavior.
|
|
657
|
+
|
|
591
658
|
Platform adapters are static bootstraps that embed no task or style snapshot, so
|
|
592
659
|
refreshing project facts does not require reinstalling them.
|
|
593
660
|
|
|
@@ -677,7 +744,8 @@ platforms (Codex, ZCode, Copilot), the managed block in `AGENTS.md` or
|
|
|
677
744
|
|
|
678
745
|
### AGENTS.md or copilot-instructions.md managed block was accidentally deleted
|
|
679
746
|
|
|
680
|
-
Preview `mancode adapter upgrade --platform codex --dry-run` (or `zcode`,
|
|
747
|
+
Preview `mancode adapter upgrade --platform codex --dry-run` (or `zcode`,
|
|
748
|
+
`kimi-code`, `qoder`, or
|
|
681
749
|
`copilot`), then run it with the returned `--operation-id`, an active session,
|
|
682
750
|
and `--confirm` to reinsert the managed block. User-authored content outside the
|
|
683
751
|
relevant markers is preserved.
|
package/README.md
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
13
|
适配常见编程代理工具,包括 Claude Code、Cursor、ChatGPT 桌面端中的 Codex、
|
|
14
|
-
Codex CLI、GitHub Copilot 和
|
|
14
|
+
Codex CLI、GitHub Copilot、ZCode、Kimi Code 和 Qoder。
|
|
15
15
|
</p>
|
|
16
16
|
|
|
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-Continuity%20v0.
|
|
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" />
|
|
20
|
+
<img src="https://img.shields.io/badge/status-Continuity%20v0.5.1-2f855a?style=flat-square" alt="状态:mancode Continuity v0.5.1" />
|
|
21
|
+
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode%20%7C%20Kimi%20Code%20%7C%20Qoder-5865F2?style=flat-square" alt="平台:Claude Code、Cursor、ChatGPT 桌面端 Codex、Codex CLI、GitHub Copilot、ZCode、Kimi Code、Qoder" />
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
**mancode Continuity(跨会话与团队协作运行时)**负责把任务、决策和验证证据安全地带到后续对话,并协调多人或多 Agent 的任务权威。
|
|
40
40
|
|
|
41
41
|
mancode 当前支持 Claude Code、Cursor、ChatGPT 桌面端中的 Codex、Codex CLI、
|
|
42
|
-
GitHub Copilot
|
|
42
|
+
GitHub Copilot、ZCode、Kimi Code(桌面端/CLI)和 Qoder(IDE/CLI)。每个平台继续使用原来的 `man*` 入口,并通过静态
|
|
43
43
|
bootstrap 接入统一的 Context Pack 与 workflow authority。
|
|
44
44
|
|
|
45
45
|
mancode 会安装三类能力:
|
|
@@ -106,8 +106,8 @@ mancode context show --purpose orient --session <id> --client claude-code
|
|
|
106
106
|
## 跨客户端与团队协作
|
|
107
107
|
|
|
108
108
|
mancode 为团队项目提供稳定 TaskRef、隔离 session、治理账本、worktree claim/handoff,
|
|
109
|
-
以及可选的 git-ref 跨 clone 协调。Claude Code、Cursor、Codex、GitHub Copilot
|
|
110
|
-
ZCode 都通过 bootstrap 使用同一套工作流数据;平台文件本身不保存任务或 session 副本。
|
|
109
|
+
以及可选的 git-ref 跨 clone 协调。Claude Code、Cursor、Codex、GitHub Copilot、
|
|
110
|
+
ZCode、Kimi Code 和 Qoder 都通过 bootstrap 使用同一套工作流数据;平台文件本身不保存任务或 session 副本。
|
|
111
111
|
|
|
112
112
|
git-ref 下的 workflow create、requirements、plan、review 和 verification 使用显式的
|
|
113
113
|
延后发布边界:先不带 `--sync` 执行 mutation,将对应的 `.mancode/shared`
|
|
@@ -159,13 +159,15 @@ legacy `state.json` 与当前工作流权威数据。
|
|
|
159
159
|
├── schema.json
|
|
160
160
|
├── shared/config.json
|
|
161
161
|
├── shared/context/project.json
|
|
162
|
+
├── shared/context/design-policy.json # 可选:design configure 后创建
|
|
162
163
|
├── shared/team/
|
|
163
|
-
└── local/ # session、workflow
|
|
164
|
+
└── local/ # session、workflow、扫描报告和样式缓存
|
|
164
165
|
|
|
165
166
|
.claude/skills/ # Claude Code:bootstrap + 原 mode skills
|
|
166
167
|
.cursor/rules/ + commands/ # Cursor:bootstrap + 原 mode commands
|
|
167
|
-
AGENTS.md # Codex
|
|
168
|
-
.agents/skills/ # Codex / ZCode:原 mode skills
|
|
168
|
+
AGENTS.md # Codex / ZCode / Kimi Code / Qoder:各自托管 instructions block
|
|
169
|
+
.agents/skills/ # Codex / ZCode / Kimi Code:原 mode skills
|
|
170
|
+
.qoder/commands/ # Qoder:原 mode commands
|
|
169
171
|
.github/copilot-instructions.md # GitHub Copilot:托管 instruction block
|
|
170
172
|
.github/prompts/ # GitHub Copilot:原 mode prompts
|
|
171
173
|
```
|
|
@@ -182,7 +184,7 @@ AGENTS.md # Codex(ChatGPT 桌面端/CLI):托管 ins
|
|
|
182
184
|
- **自由选择执行强度**:计划确认后,可只保留计划、交给默认 `solo` 轻量开发,或继续完整 `/man` 的验证与有界风险审查。
|
|
183
185
|
- **保留工作流产物**:调研、计划、审查报告和总结会保存到 `.mancode/<namespace>/workflows/<ULID>/`。
|
|
184
186
|
- **支持团队上下文**:`/manteam` 通过 `.mancode/shared/` 的类型化实体共享已确认信息。
|
|
185
|
-
- **扫描项目健康度**:`mancode manps` 检测陈旧 TODO
|
|
187
|
+
- **扫描项目健康度**:`mancode manps` 检测陈旧 TODO、未使用依赖、风险依赖、混用图标系统和硬编码设计值。
|
|
186
188
|
|
|
187
189
|
## 适合什么项目?
|
|
188
190
|
|
|
@@ -335,8 +337,8 @@ src/components/
|
|
|
335
337
|
|
|
336
338
|
## 安装
|
|
337
339
|
|
|
338
|
-
**状态**:mancode Continuity v0.
|
|
339
|
-
Codex、Codex CLI、GitHub Copilot 和
|
|
340
|
+
**状态**:mancode Continuity v0.5.1。Claude Code、Cursor、ChatGPT 桌面端中的
|
|
341
|
+
Codex、Codex CLI、GitHub Copilot、ZCode、Kimi Code 和 Qoder adapter 均已接入。
|
|
340
342
|
|
|
341
343
|
需要 Node.js 20 或更高版本。原生支持 macOS、Linux、Windows CMD、
|
|
342
344
|
PowerShell 和 Git Bash。Git 是可选依赖:未安装时仍可初始化,只会把团队
|
|
@@ -360,6 +362,10 @@ mancode init --platform all
|
|
|
360
362
|
- GitHub Copilot:托管 instruction block 与 `.github/prompts/` 原 mode prompts
|
|
361
363
|
- ZCode:托管 `AGENTS.md` block,并暂按 `.agents/skills/` 生成 `$man*`
|
|
362
364
|
skills;项目级 skill 发现和 slash commands 仍需确认 workspace 路径后再发布承诺
|
|
365
|
+
- Kimi Code(桌面端、CLI):托管 `AGENTS.md` block,并在 `.agents/skills/`
|
|
366
|
+
下提供 `/skill:man*` 项目 skills;宿主发现路径仍需真实验证
|
|
367
|
+
- Qoder(IDE、CLI):托管 `AGENTS.md` block,并在 `.qoder/commands/` 下提供
|
|
368
|
+
`/man*` 项目 commands;宿主发现路径仍需真实验证
|
|
363
369
|
- Windsurf、Cline、Roo Code:后续计划
|
|
364
370
|
|
|
365
371
|
### 安装参数
|
|
@@ -370,7 +376,7 @@ mancode init --yes # 跳过通用项目确认(CI 中仍需 --platform
|
|
|
370
376
|
mancode init --team # 强制启用团队模式
|
|
371
377
|
mancode init --no-team # 强制禁用团队模式
|
|
372
378
|
mancode init --legacy --style NAME # 仅 legacy:保存默认审美偏好
|
|
373
|
-
mancode init --platform PLATFORMS # 一个或多个:claude-code,cursor,codex,copilot,zcode,或 all
|
|
379
|
+
mancode init --platform PLATFORMS # 一个或多个:claude-code,cursor,codex,copilot,zcode,kimi-code,qoder,或 all
|
|
374
380
|
mancode init --empty # 非交互脚本中允许安全的空目录
|
|
375
381
|
mancode init --lang zh-CN # 显式指定初始化语言(zh-CN 或 en)
|
|
376
382
|
mancode refresh-project # 后续加入 Git 或项目文件后刷新项目事实
|
|
@@ -405,7 +411,7 @@ mancode init --legacy
|
|
|
405
411
|
mancode status
|
|
406
412
|
mancode status --json
|
|
407
413
|
mancode status --brief --json
|
|
408
|
-
mancode install <claude-code|cursor|codex|copilot|zcode> --confirm --operation-id <operationId> --session <id> --client <client>
|
|
414
|
+
mancode install <claude-code|cursor|codex|copilot|zcode|kimi-code|qoder> --confirm --operation-id <operationId> --session <id> --client <client>
|
|
409
415
|
mancode adapter status [--platform <platform>] --json
|
|
410
416
|
mancode adapter upgrade <--all|--platform <platform>> --dry-run
|
|
411
417
|
mancode adapter upgrade <--all|--platform <platform>> --confirm --operation-id <operationId> --session <id> --client <client>
|
|
@@ -428,8 +434,12 @@ mancode workflow verify <namespace:ULID> apply --file <verification-ledger.json>
|
|
|
428
434
|
mancode workflow reframe <local:ULID> --expected-revision <n> --checkpoint-id <ULID> --session <id>
|
|
429
435
|
mancode workflow complete <namespace:ULID> --expected-revision <n> --session <id>
|
|
430
436
|
mancode manps [area]
|
|
437
|
+
mancode design status --json
|
|
438
|
+
mancode design context --json
|
|
439
|
+
mancode design configure --expected-revision <n> [options]
|
|
440
|
+
mancode design disable --expected-revision <n>
|
|
431
441
|
mancode refresh-project
|
|
432
|
-
mancode refresh-style
|
|
442
|
+
mancode refresh-style [--root <relative-path>]
|
|
433
443
|
mancode version
|
|
434
444
|
```
|
|
435
445
|
|
|
@@ -440,7 +450,7 @@ mancode version
|
|
|
440
450
|
以下是简化输出示例:
|
|
441
451
|
|
|
442
452
|
```text
|
|
443
|
-
mancode v0.
|
|
453
|
+
mancode v0.5.1
|
|
444
454
|
|
|
445
455
|
Project: my-app
|
|
446
456
|
Runtime: ready
|
|
@@ -454,6 +464,8 @@ mancode adapter status:
|
|
|
454
464
|
✓ Codex (ChatGPT desktop/CLI): ready
|
|
455
465
|
○ GitHub Copilot: not installed
|
|
456
466
|
○ ZCode: not installed
|
|
467
|
+
○ Kimi Code (desktop/CLI): not installed
|
|
468
|
+
○ Qoder (IDE/CLI): not installed
|
|
457
469
|
```
|
|
458
470
|
|
|
459
471
|
### `mancode manps deps`
|
|
@@ -527,6 +539,35 @@ mancode manps config
|
|
|
527
539
|
.mancode/local/preseason-reports/<timestamp>-<area>.md
|
|
528
540
|
```
|
|
529
541
|
|
|
542
|
+
### `mancode design`
|
|
543
|
+
|
|
544
|
+
项目设计策略是显式启用功能。`mancode init` 不会创建策略;策略缺失、禁用或损坏时,
|
|
545
|
+
`design context` 会安全降级为 `preserve`,普通编码和工作流恢复不受影响。
|
|
546
|
+
Legacy 项目也可读取这个安全上下文,但只有当前 Continuity 项目能配置共享策略。
|
|
547
|
+
|
|
548
|
+
- `preserve`:保持现有层级、布局、组件系统和交互模式,只完成任务要求的 UI 改动。
|
|
549
|
+
- `refine`:在不改变产品结构的前提下改善层级、排版、间距、状态和响应式行为。
|
|
550
|
+
- `experimental`:允许一个符合产品语境的统一视觉方向和更高级的构图/动效,但必须显式传入 `--confirm-experimental`;它不授权新增产品功能、改变信息架构或扩大任务范围。
|
|
551
|
+
|
|
552
|
+
新建 UI 或视觉重做时,如果用户尚未选定视觉方向,Agent 会先给出 2–3 个差异明确、符合产品语境的方向,简述取舍并推荐一个,等待用户选择后再实现。局部 UI 修复、既有设计系统内的改动,以及用户已经选定方向的任务不会被这一步打断。`experimental` 对品牌、活动、编辑、作品集和发布型页面强调首屏记忆点与贯穿全页的视觉母题;对任务型产品仍优先保证工作流清晰度。
|
|
553
|
+
|
|
554
|
+
策略只保存 preset、图标、表情、动效和浏览器验证的严格枚举,不保存自由文本提示词。
|
|
555
|
+
Agent 通过 `mancode design context --json` 获取代码生成的固定指导、质量门槛和经过清洗的
|
|
556
|
+
样式摘要。`--icons lucide` 不会自动安装 Lucide;依赖变更仍需任务明确授权。
|
|
557
|
+
|
|
558
|
+
```bash
|
|
559
|
+
mancode design status --json
|
|
560
|
+
mancode design configure --expected-revision 0 --preset refine --icons lucide --emoji forbid-as-interface-icon --motion purposeful --browser-validation when-available
|
|
561
|
+
mancode design context --json
|
|
562
|
+
mancode design disable --expected-revision 1
|
|
563
|
+
|
|
564
|
+
# experimental 必须额外确认
|
|
565
|
+
mancode design configure --expected-revision 0 --preset experimental --confirm-experimental
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
策略保存在 `.mancode/shared/context/design-policy.json`,应像其他仓库配置一样审查并提交。
|
|
569
|
+
`configure`/`disable` 只更新当前 checkout,不会发布 git-ref 远端同步回执。
|
|
570
|
+
|
|
530
571
|
### `mancode refresh-style`
|
|
531
572
|
|
|
532
573
|
刷新项目 profile;检测到 UI 资产时,还会重新扫描设计 token。它会更新:
|
|
@@ -536,6 +577,9 @@ mancode manps config
|
|
|
536
577
|
.mancode/shared/context/project.json
|
|
537
578
|
```
|
|
538
579
|
|
|
580
|
+
Monorepo 可显式选择一个仓库内 UI 根目录,例如 `mancode refresh-style --root apps/web`。
|
|
581
|
+
绝对路径、路径穿越和逃逸仓库的符号链接会被拒绝;不传 `--root` 时保持整仓扫描行为。
|
|
582
|
+
|
|
539
583
|
平台 adapter 是不嵌入 task/style 快照的静态 bootstrap,因此刷新项目事实后不需要重装。
|
|
540
584
|
|
|
541
585
|
## 项目文件
|
|
@@ -609,7 +653,7 @@ mancode/
|
|
|
609
653
|
|
|
610
654
|
### AGENTS.md 或 copilot-instructions.md 受控区被误删
|
|
611
655
|
|
|
612
|
-
运行 `mancode adapter upgrade --platform codex --dry-run`(或 `zcode`、`copilot`)
|
|
656
|
+
运行 `mancode adapter upgrade --platform codex --dry-run`(或 `zcode`、`kimi-code`、`qoder`、`copilot`)
|
|
613
657
|
检查差异,再用该预览返回的 `--operation-id` 和 active session 执行 `--confirm`
|
|
614
658
|
重新插入受控区。
|
|
615
659
|
对应 mancode 受控标记外的用户内容会被保留。
|