mancode 0.4.0 → 0.4.2
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 +28 -8
- package/README.md +20 -6
- package/dist/{chunk-S3BAOJPP.js → chunk-3FOBYCF4.js} +1 -5
- package/dist/{chunk-S3BAOJPP.js.map → chunk-3FOBYCF4.js.map} +1 -1
- package/dist/{chunk-K3MYY47M.js → chunk-LYRYNJHW.js} +3 -2
- package/dist/chunk-LYRYNJHW.js.map +1 -0
- package/dist/cli.js +162 -32
- package/dist/cli.js.map +1 -1
- package/dist/{store-LD5VRGON.js → store-GCLUP5IO.js} +2 -2
- package/dist/{v3-adapter-URAKH6BV.js → v3-adapter-E6VEEDCF.js} +2 -2
- package/package.json +4 -1
- package/dist/chunk-K3MYY47M.js.map +0 -1
- /package/dist/{store-LD5VRGON.js.map → store-GCLUP5IO.js.map} +0 -0
- /package/dist/{v3-adapter-URAKH6BV.js.map → v3-adapter-E6VEEDCF.js.map} +0 -0
package/README.en.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
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.4.
|
|
20
|
+
<img src="https://img.shields.io/badge/status-Continuity%20v0.4.2-2f855a?style=flat-square" alt="Status: mancode Continuity v0.4.2" />
|
|
21
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" />
|
|
22
22
|
</p>
|
|
23
23
|
|
|
@@ -128,6 +128,22 @@ clones. Claude Code, Cursor, Codex, GitHub Copilot, and ZCode use the same
|
|
|
128
128
|
workflow data through platform bootstraps; platform files do not hold task or
|
|
129
129
|
session copies.
|
|
130
130
|
|
|
131
|
+
Under git-ref transport, workflow create, requirements, plan, review, and
|
|
132
|
+
verification mutations use an explicit deferred publication boundary. Run the
|
|
133
|
+
mutation without `--sync`, commit the matching `.mancode/shared` changes with
|
|
134
|
+
the code baseline, then run
|
|
135
|
+
`mancode team sync push shared:<ULID> --expected-task-revision N`. Passing
|
|
136
|
+
`--sync` directly to those commands returns
|
|
137
|
+
`MANCODE_GIT_REF_DEFERRED_SYNC_REQUIRED`; cross-clone synchronization is
|
|
138
|
+
complete only after the push returns a receipt.
|
|
139
|
+
|
|
140
|
+
Atomic git-ref mutations that explicitly require `--sync`, such as
|
|
141
|
+
`workflow update`, complete the remote CAS before materializing the local
|
|
142
|
+
projection. If a resumable `in_progress` or `blocked` task leaves tracked
|
|
143
|
+
`.mancode/shared` changes, commit that projection and run the same
|
|
144
|
+
`team sync push` with the unchanged task revision to rebind the remote code
|
|
145
|
+
head. Another clone must not resume until this push returns a receipt.
|
|
146
|
+
|
|
131
147
|
For a new project, start with one platform you actually use:
|
|
132
148
|
|
|
133
149
|
```bash
|
|
@@ -365,7 +381,7 @@ it should behave, and why previous decisions were made.
|
|
|
365
381
|
|
|
366
382
|
## Installation
|
|
367
383
|
|
|
368
|
-
**Status**: mancode Continuity v0.4.
|
|
384
|
+
**Status**: mancode Continuity v0.4.2. Claude Code, Cursor, Codex in the ChatGPT
|
|
369
385
|
desktop app and CLI, GitHub Copilot, and ZCode adapters are included.
|
|
370
386
|
|
|
371
387
|
Requires Node.js 20 or newer. macOS, Linux, Windows CMD, PowerShell, and Git Bash
|
|
@@ -472,7 +488,7 @@ mancode version
|
|
|
472
488
|
Simplified output:
|
|
473
489
|
|
|
474
490
|
```text
|
|
475
|
-
mancode v0.4.
|
|
491
|
+
mancode v0.4.2
|
|
476
492
|
|
|
477
493
|
Project: my-app
|
|
478
494
|
Runtime: ready
|
|
@@ -619,14 +635,16 @@ mancode/
|
|
|
619
635
|
- Complete real-host session acceptance for Claude Code, Codex, Cursor,
|
|
620
636
|
GitHub Copilot, and ZCode on one release candidate; verified host sessions
|
|
621
637
|
and isolated explicit sessions are both valid evidence paths.
|
|
622
|
-
-
|
|
623
|
-
|
|
624
|
-
|
|
638
|
+
- Merge the final candidate into `main`, then run
|
|
639
|
+
`npm run release:check -- --candidate <full-commit-sha>` from that same
|
|
640
|
+
`origin/main` commit for the clean checkout, automated two-clone/legacy
|
|
641
|
+
checks, tarball SHA-256, and install smoke; complete cross-host recovery
|
|
642
|
+
separately.
|
|
625
643
|
- Confirm ZCode project-skill discovery and workspace-command paths; keep the
|
|
626
644
|
adapter provisional until then.
|
|
627
645
|
- Evaluate Windsurf, Cline, and Roo Code adapters based on real demand.
|
|
628
646
|
|
|
629
|
-
See [0.4.
|
|
647
|
+
See [0.4.2 Continuity Release Acceptance](./docs/release-acceptance.md) for the complete gate.
|
|
630
648
|
|
|
631
649
|
## Troubleshooting
|
|
632
650
|
|
|
@@ -651,7 +669,9 @@ hook architecture still uses `mancode init --legacy --force`.
|
|
|
651
669
|
This means the platform's target files are missing or their digest is stale.
|
|
652
670
|
Preview `mancode adapter upgrade --platform <platform> --dry-run`, inspect the
|
|
653
671
|
staged result, then run it with the returned `--operation-id`, an active session,
|
|
654
|
-
and `--confirm`.
|
|
672
|
+
and `--confirm`. A successful confirmation removes that operation's staging
|
|
673
|
+
preview so internal temporary files cannot make a later Git sync report a dirty
|
|
674
|
+
worktree. For managed-block
|
|
655
675
|
platforms (Codex, ZCode, Copilot), the managed block in `AGENTS.md` or
|
|
656
676
|
`.github/copilot-instructions.md` may have been manually edited or deleted.
|
|
657
677
|
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
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.4.
|
|
20
|
+
<img src="https://img.shields.io/badge/status-Continuity%20v0.4.2-2f855a?style=flat-square" alt="状态:mancode Continuity v0.4.2" />
|
|
21
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" />
|
|
22
22
|
</p>
|
|
23
23
|
|
|
@@ -109,6 +109,19 @@ mancode 为团队项目提供稳定 TaskRef、隔离 session、治理账本、wo
|
|
|
109
109
|
以及可选的 git-ref 跨 clone 协调。Claude Code、Cursor、Codex、GitHub Copilot 和
|
|
110
110
|
ZCode 都通过 bootstrap 使用同一套工作流数据;平台文件本身不保存任务或 session 副本。
|
|
111
111
|
|
|
112
|
+
git-ref 下的 workflow create、requirements、plan、review 和 verification 使用显式的
|
|
113
|
+
延后发布边界:先不带 `--sync` 执行 mutation,将对应的 `.mancode/shared`
|
|
114
|
+
变更与代码基线一起提交,再执行
|
|
115
|
+
`mancode team sync push shared:<ULID> --expected-task-revision N`。这些命令若直接带
|
|
116
|
+
`--sync` 会返回 `MANCODE_GIT_REF_DEFERRED_SYNC_REQUIRED`;只有拿到 push receipt
|
|
117
|
+
才表示跨 clone 同步完成。
|
|
118
|
+
|
|
119
|
+
`workflow update` 等明确要求 `--sync` 的原子 git-ref mutation 会先完成远端 CAS,
|
|
120
|
+
再 materialize 本地投影。如果仍需 resume 的 `in_progress` 或 `blocked` 任务因此产生
|
|
121
|
+
tracked `.mancode/shared` 变更,应先提交这些投影,再用不变的 task revision 执行同一条
|
|
122
|
+
`team sync push`,把远端 code head 重绑到新提交;另一个 clone 只能在这次 push 返回
|
|
123
|
+
receipt 后 resume。
|
|
124
|
+
|
|
112
125
|
在全新项目中,从一个实际使用的平台开始:
|
|
113
126
|
|
|
114
127
|
```bash
|
|
@@ -322,7 +335,7 @@ src/components/
|
|
|
322
335
|
|
|
323
336
|
## 安装
|
|
324
337
|
|
|
325
|
-
**状态**:mancode Continuity v0.4.
|
|
338
|
+
**状态**:mancode Continuity v0.4.2。Claude Code、Cursor、ChatGPT 桌面端中的
|
|
326
339
|
Codex、Codex CLI、GitHub Copilot 和 ZCode adapter 均已接入。
|
|
327
340
|
|
|
328
341
|
需要 Node.js 20 或更高版本。原生支持 macOS、Linux、Windows CMD、
|
|
@@ -427,7 +440,7 @@ mancode version
|
|
|
427
440
|
以下是简化输出示例:
|
|
428
441
|
|
|
429
442
|
```text
|
|
430
|
-
mancode v0.4.
|
|
443
|
+
mancode v0.4.2
|
|
431
444
|
|
|
432
445
|
Project: my-app
|
|
433
446
|
Runtime: ready
|
|
@@ -563,11 +576,11 @@ mancode/
|
|
|
563
576
|
## 仍在推进
|
|
564
577
|
|
|
565
578
|
- 在同一发布候选上完成 Claude Code、Codex、Cursor、GitHub Copilot 和 ZCode 的真实宿主 session 验收;宿主自动 session 和显式双 session 都是合法证据路径。
|
|
566
|
-
-
|
|
579
|
+
- 将最终候选合并到 `main`,并使用 `npm run release:check -- --candidate <完整提交 SHA>` 从同一个 `origin/main` 提交完成干净 checkout、自动双 clone/legacy、tarball SHA-256 和安装 smoke;另完成跨真实宿主恢复。
|
|
567
580
|
- 确认 ZCode 项目级 skill 发现和 workspace command 路径;完成前继续标记为 provisional。
|
|
568
581
|
- 根据真实需求评估 Windsurf、Cline 和 Roo Code adapter。
|
|
569
582
|
|
|
570
|
-
完整发布条件见 [0.4.
|
|
583
|
+
完整发布条件见 [0.4.2 Continuity 发布验收](./docs/release-acceptance.md)。
|
|
571
584
|
|
|
572
585
|
## 故障排查
|
|
573
586
|
|
|
@@ -589,7 +602,8 @@ mancode/
|
|
|
589
602
|
|
|
590
603
|
该平台的目标文件缺失或 digest 不匹配。先运行
|
|
591
604
|
`mancode adapter upgrade --platform <platform> --dry-run`,确认 staging 结果后再用
|
|
592
|
-
该预览返回的 `--operation-id` 和 active session 执行 `--confirm
|
|
605
|
+
该预览返回的 `--operation-id` 和 active session 执行 `--confirm`。确认成功后会删除
|
|
606
|
+
该 operation 的 staging 预览,避免内部临时文件让后续 Git 同步误判工作区不干净。
|
|
593
607
|
对于 Codex、ZCode 和 Copilot,`AGENTS.md` 或 `.github/copilot-instructions.md`
|
|
594
608
|
中的受控区可能被手动编辑或删除了。
|
|
595
609
|
|
|
@@ -3632,10 +3632,6 @@ var WorkflowPolicyVersionUnsupportedError = class extends Error {
|
|
|
3632
3632
|
this.requiredWriter = requiredWriter;
|
|
3633
3633
|
this.name = "WorkflowPolicyVersionUnsupportedError";
|
|
3634
3634
|
}
|
|
3635
|
-
component;
|
|
3636
|
-
observedVersion;
|
|
3637
|
-
supportedVersions;
|
|
3638
|
-
requiredWriter;
|
|
3639
3635
|
code = "MANCODE_POLICY_VERSION_UNSUPPORTED";
|
|
3640
3636
|
};
|
|
3641
3637
|
var TRANSITION_STATES = /* @__PURE__ */ new Set([
|
|
@@ -7275,4 +7271,4 @@ export {
|
|
|
7275
7271
|
V3ContextStore,
|
|
7276
7272
|
storedTaskAggregateDigest
|
|
7277
7273
|
};
|
|
7278
|
-
//# sourceMappingURL=chunk-
|
|
7274
|
+
//# sourceMappingURL=chunk-3FOBYCF4.js.map
|