@aibyzero/cm-workflow 0.10.5 → 0.10.6

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-workflow",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "Spec-driven product development workflow for Codex: external research, PRD, implementation, read-only feature testing, review, QA, fixes, refactors, and documentation.",
5
5
  "author": {
6
6
  "name": "cm-workflow maintainers",
package/AGENTS.md CHANGED
@@ -20,6 +20,7 @@ This repository is the Codex-native source for a spec-driven development workflo
20
20
  - PRD review recovery fixture: `python3 scripts/test-cm-prd-review-gate.py`
21
21
  - Lint/safety: `python3 scripts/validate-public-repo.py`, `python3 scripts/scan-public-safety.py`, and `find . -type f -name '*.sh' -print0 | xargs -0 -n1 /bin/bash -n`
22
22
  - Plugin validation: `python3 ~/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py .`
23
+ - Release surface smoke: `./scripts/cm-release-smoke.sh` (requires local BYZ and Codex; uses a disposable HOME for Codex installation)
23
24
  - Pi/BYZ package install: `pi install git:github.com/kingxiaozhe/cm-workflow`
24
25
  - Codex local install: `./install-codex.sh`
25
26
  - Claude compatibility install: `./install.sh` (Windows: `powershell -ExecutionPolicy Bypass -File install.ps1`)
package/CONTRIBUTING.md CHANGED
@@ -33,7 +33,18 @@ python3 ~/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py .
33
33
  ```
34
34
 
35
35
  Changes to N1–N8, installers, or templates require the corresponding dogfood or
36
- isolated-install evidence described in `.claude/rules/testing.md`.
36
+ isolated-install evidence described in `.claude/rules/testing.md`. A release or
37
+ change to the Pi/BYZ or Codex distribution surface also requires, from a clean
38
+ checkout:
39
+
40
+ ```bash
41
+ ./scripts/cm-release-smoke.sh
42
+ ```
43
+
44
+ This command requires local BYZ and Codex installations. It validates the Pi
45
+ manifest, checks the local workflow root through BYZ, and installs the Codex
46
+ plugin under a disposable home; it does not modify the caller's normal Codex
47
+ plugin state.
37
48
 
38
49
  ## Skill trigger diagnostics
39
50
 
package/README.md CHANGED
@@ -44,7 +44,15 @@ $cm-ai ~/projects/my-app-specs ~/code/my-app
44
44
 
45
45
  准备好 **Git、Python 3.9+、Node.js 24.14+**,以及带有内置插件创建辅助工具的当前 Codex。安装器和部分共享工具的最低要求是 Node 18;默认 JS 开发流程需要 Node 24.14+。
46
46
 
47
- 以下主路径以 macOS 为准;其他环境先看[支持范围](#支持范围)。将源码克隆到独立目录,**不要放在 `~/plugins/cm-workflow`**,该目录由安装器管理。
47
+ 以下主路径以 macOS 为准;其他环境先看[支持范围](#支持范围)。安装与升级使用同一条命令:
48
+
49
+ ```bash
50
+ npx @aibyzero/cm-workflow@latest install
51
+ ```
52
+
53
+ 已有源码安装可以直接使用这条命令升级,无需先卸载;仍更新同一个 Codex 插件。首次安装可能出现 npm 下载确认,已有插件会另外询问是否覆盖。
54
+
55
+ 需要从 GitHub 源码安装时,将仓库克隆到独立目录,**不要放在 `~/plugins/cm-workflow`**,该目录由安装器管理:
48
56
 
49
57
  ```bash
50
58
  git clone https://github.com/kingxiaozhe/cm-workflow.git
@@ -62,11 +70,13 @@ $cm-check
62
70
 
63
71
  仓库直接分发 Skills 和脚本,无需在仓库根目录运行 `npm install` 或构建。完整安装行为、覆盖范围和卸载说明见[安装指南](docs/installation.md)。
64
72
 
65
- macOS Codex 的 npm 安装入口已加入源码,仍处于本地打包验证阶段,尚未通过本次变更发布到 npm。它复用上述安装器;源码安装用户升级时会替换同一个插件,无需先卸载。候选包验证方法见[安装指南](docs/installation.md#npm-candidate-macos-codex)。
73
+ 需要固定版本时可使用 `npx @aibyzero/cm-workflow@0.10.6 install`,请在 CM Workflow 源码仓库以外的目录执行,例如用户主目录。npm 安装入口复用原安装器,要求与覆盖范围见[安装指南](docs/installation.md#npm-installation-macos-codex)。
66
74
 
67
75
  ## 升级旧版本
68
76
 
69
- 升级仍然使用同一个安装器。在原来的**源码 checkout** 中先检查本地修改:
77
+ 推荐直接执行 `npx @aibyzero/cm-workflow@latest install`。升级仍然使用同一个安装器:替换其管理的插件目录,保留独立源码仓库、项目代码与规格。直接修改已安装插件的内容会被覆盖;之后再运行旧源码的安装器可能降级。
78
+
79
+ 继续使用源码升级时,在原来的 **源码 checkout** 中先检查本地修改:
70
80
 
71
81
  ```bash
72
82
  git status --short
@@ -194,7 +204,7 @@ CM 从磁盘记录恢复上下文,而不是只依赖聊天历史。
194
204
 
195
205
  | 环境 | 安装 / 入口 | JS 开发流程的当前边界 |
196
206
  | --- | --- | --- |
197
- | Codex · macOS | `./install-codex.sh`;`$cm-*` | 默认 JS 入口已接入,有本地安装与工具执行证据;不等于所有业务场景、真实模型审查都已验收 |
207
+ | Codex · macOS | `npx @aibyzero/cm-workflow@latest install` 或 `./install-codex.sh`;`$cm-*` | 默认 JS 入口已接入,有本地安装与工具执行证据;不等于所有业务场景、真实模型审查都已验收 |
198
208
  | Claude Code · macOS | `./install.sh`;`/cm-*` | 使用同一 JS 核心,当前会话入口已接入;完整真实双宿主业务验收仍待补齐 |
199
209
  | Linux / WSL2 | 对应 Bash 安装器 | runner 已有平台准入;尚缺目标环境端到端实测,Claude 隔离配置诊断目前限 macOS |
200
210
  | Claude Code · 原生 Windows | `install.ps1`;`/cm-*` | PowerShell 安装和共享工具有 CI 覆盖;原生 Windows JS runner 尚不支持 |
@@ -254,6 +264,12 @@ python3 scripts/validate-public-repo.py
254
264
  python3 scripts/scan-public-safety.py
255
265
  ```
256
266
 
267
+ 升版或修改 Pi/BYZ、Codex 分发面时,从干净 checkout 运行分发面冒烟;它校验 Pi manifest、用本机 BYZ 检查本地 workflow root,并把 Codex 安装隔离到一次性 HOME:
268
+
269
+ ```bash
270
+ ./scripts/cm-release-smoke.sh
271
+ ```
272
+
257
273
  按改动范围补充对应夹具与实跑,详见 [CONTRIBUTING.md](CONTRIBUTING.md)。版本以 `VERSION` 与插件 manifest 的基础版本为准;安装副本的 `+codex.*` 后缀用于刷新缓存。
258
274
 
259
275
  安全问题请按 [SECURITY.md](SECURITY.md) 私下报告。
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.5
1
+ 0.10.6
@@ -9,7 +9,8 @@
9
9
  - For Claude Code on Windows: Windows PowerShell 5.1 or newer, plus Git for
10
10
  Windows (Git Bash). WSL users can install and run the Bash entry inside WSL.
11
11
 
12
- Clone the repository somewhere other than `~/plugins/cm-workflow`:
12
+ For macOS Codex, npm installation below does not require a source checkout.
13
+ For source installation, clone the repository somewhere other than `~/plugins/cm-workflow`:
13
14
 
14
15
  ```bash
15
16
  git clone https://github.com/kingxiaozhe/cm-workflow.git
@@ -52,13 +53,21 @@ source, use `$cm-test`. The installed manual is available at
52
53
  The optional project configuration template is installed at
53
54
  `~/plugins/cm-workflow/templates/cm-workflow.yml`.
54
55
 
55
- ## npm candidate (macOS Codex)
56
+ ## npm installation (macOS Codex)
56
57
 
57
- The source includes a dependency-free `cm-workflow install [--yes]` command.
58
- This change has not yet been published to npm. Until a release is verified,
59
- continue using the source installation above; do not assume `@latest` includes
60
- this command. The npm entry requires macOS and Node.js 24.14+, plus the same
61
- Python and Codex plugin helpers as the source installer.
58
+ Install or upgrade with the same command:
59
+
60
+ ```bash
61
+ npx @aibyzero/cm-workflow@latest install
62
+ ```
63
+
64
+ To pin a version, use `npx @aibyzero/cm-workflow@0.10.6 install` from outside
65
+ the CM Workflow source checkout (for example, your home directory). Inside a
66
+ checkout with the same package name and version, npm can select the local
67
+ uninstalled package and report `cm-workflow: command not found`.
68
+ The dependency-free npm entry requires macOS and Node.js 24.14+, plus the same
69
+ Python 3.9+ and Codex plugin helpers as the source installer. It does not remove
70
+ these prerequisites or add Windows/Linux support to the npm command.
62
71
 
63
72
  Maintainers can inspect and try the actual local package:
64
73
 
@@ -68,14 +77,15 @@ npm pack --ignore-scripts
68
77
  npm exec --yes --package ./PACKAGE.tgz -- cm-workflow --help
69
78
  ```
70
79
 
71
- Explicitly running `cm-workflow install` through that package installs into the
80
+ Running `cm-workflow install` through npm installs into the
72
81
  same `~/plugins/cm-workflow` directory and personal marketplace as the source
73
82
  installer. Existing installations require confirmation; `install --yes` accepts
74
83
  replacement. The npm `--yes` before `--package` only accepts npm's package-fetch
75
84
  prompt; it does not accept plugin replacement. Direct edits to the managed
76
85
  plugin are overwritten; source checkouts, project code and specs remain outside
77
86
  the managed destination. Installing older source afterward can downgrade it.
78
- Start a new Codex task after an upgrade.
87
+ Start a new Codex task after an upgrade. `npx --yes` accepts npm's download
88
+ prompt only; `install --yes` separately accepts replacing the managed plugin.
79
89
 
80
90
  The isolated fixture is `python3 scripts/test-npm-install.py`. It packs the
81
91
  candidate, exercises the npm command, then relocates only installer path
package/install-codex.sh CHANGED
@@ -158,7 +158,7 @@ for part in .codex-plugin skills runtime templates scripts agents compat docs as
158
158
  mkdir -p "$STAGE/$part"
159
159
  cp -R "$SRC_DIR/$part/." "$STAGE/$part/"
160
160
  done
161
- for file in VERSION README.md AGENTS.md LICENSE THIRD_PARTY_NOTICES.md SECURITY.md CONTRIBUTING.md install-codex.sh install.sh install.ps1; do
161
+ for file in VERSION package.json README.md AGENTS.md LICENSE THIRD_PARTY_NOTICES.md SECURITY.md CONTRIBUTING.md install-codex.sh install.sh install.ps1; do
162
162
  [ -f "$SRC_DIR/$file" ] && cp "$SRC_DIR/$file" "$STAGE/$file"
163
163
  done
164
164
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibyzero/cm-workflow",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "Spec-driven business development workflow for Pi, Codex, and Claude Code",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -275,6 +275,7 @@ for module in \
275
275
  require_file "runtime/js/cm-ai/$module"
276
276
  done
277
277
  require_file "scripts/cm-check-runtime.ps1"
278
+ require_file "scripts/cm-release-smoke.sh"
278
279
  require_file "scripts/cm-ai-admission.mjs"
279
280
  require_file "scripts/cm-ai-run.mjs"
280
281
  require_file "scripts/cm-ai-run.test.mjs"