@ckanner/flywheel 0.22.0 → 0.22.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.22.1 (2026-09-14)
4
+
5
+ 修复 0.22.0 meta 包缺 bin shim:`bin/flywheel.js` 此前被 .gitignore 的 `/bin/`(postinstall 下载目录时代的遗留规则)挡在 git 之外——CI checkout 无此文件,发布的 meta 包只有 3 个文件、`flywheel` 命令不存在。本版将 shim 入库并全量 bump 版本;旧 0.22.0 meta 请勿使用。
6
+
3
7
  ## 0.22.0 (2026-09-12)
4
8
 
5
9
  三厂商 harness 定稿 + 完全自包含分发(安装用法人人一致,无需源码仓库)。
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+ // Copyright (c) 2026 ckanner. SPDX-License-Identifier: UNLICENSED
3
+ //
4
+ // npm bin shim(v0.22 平台包模式,esbuild 先例):按 platform/arch 解析
5
+ // optionalDependencies 里的平台二进制包并透传执行——无 postinstall、无网络
6
+ // 下载、无 checksum 步骤(npm 自身的包完整性承担校验)。安装即得二进制,
7
+ // 维护者与分用户用法完全一致。
8
+ "use strict";
9
+
10
+ const { spawnSync } = require("child_process");
11
+
12
+ const PLATFORM_MAP = { darwin: "darwin", linux: "linux" };
13
+ const ARCH_MAP = { arm64: "arm64", x64: "amd64" };
14
+
15
+ const platform = PLATFORM_MAP[process.platform];
16
+ const arch = ARCH_MAP[process.arch];
17
+ if (!platform || !arch) {
18
+ console.error(`flywheel: unsupported platform ${process.platform}/${process.arch}(支持 darwin/linux × amd64/arm64)`);
19
+ process.exit(1);
20
+ }
21
+
22
+ const pkg = `@ckanner/flywheel-${platform}-${arch}`;
23
+ let bin;
24
+ try {
25
+ bin = require.resolve(`${pkg}/flywheel`);
26
+ } catch (_) {
27
+ console.error(`flywheel: 平台包 ${pkg} 未安装。npm 会按 os/cpu 自动选取 optionalDependencies——`);
28
+ console.error(` 若被 --no-optional 跳过,请去掉该标志重装:npm i -g @ckanner/flywheel`);
29
+ process.exit(1);
30
+ }
31
+
32
+ const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
33
+ process.exit(result.status === null ? 1 : result.status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckanner/flywheel",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Flywheel — Loop Engineering orchestrator (Go). Deterministic orchestrator driving Plan/Execute/Review agent loops from frozen on-disk contracts. Platform binaries ride optionalDependencies (@ckanner/flywheel-<os>-<arch>).",
5
5
  "bin": {
6
6
  "flywheel": "bin/flywheel.js"
@@ -26,10 +26,10 @@
26
26
  "CHANGELOG.md"
27
27
  ],
28
28
  "optionalDependencies": {
29
- "@ckanner/flywheel-darwin-arm64": "0.22.0",
30
- "@ckanner/flywheel-darwin-amd64": "0.22.0",
31
- "@ckanner/flywheel-linux-arm64": "0.22.0",
32
- "@ckanner/flywheel-linux-amd64": "0.22.0"
29
+ "@ckanner/flywheel-darwin-arm64": "0.22.1",
30
+ "@ckanner/flywheel-darwin-amd64": "0.22.1",
31
+ "@ckanner/flywheel-linux-arm64": "0.22.1",
32
+ "@ckanner/flywheel-linux-amd64": "0.22.1"
33
33
  },
34
34
  "scripts": {
35
35
  "release:check": "node scripts/release-preflight.js"