@ckanner/flywheel 0.32.1 → 0.33.0

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.
Files changed (133) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/README.md +7 -0
  3. package/README.zh-CN.md +5 -0
  4. package/THIRD_PARTY_NOTICES.md +42 -0
  5. package/bin/runtime.js +25 -31
  6. package/cordis.patch.yml +5 -0
  7. package/dist/bridge.mjs +421 -0
  8. package/dist/claude-code-pro-bridge.mjs +82 -0
  9. package/dist/claude-code-pro-worker.mjs +5 -0
  10. package/dist/client.js +4078 -0
  11. package/dist/codex-pro-bridge.mjs +75 -0
  12. package/dist/codex-pro-worker.mjs +5 -0
  13. package/dist/console-read.mjs +51 -0
  14. package/dist/control.mjs +218 -0
  15. package/dist/index.mjs +185 -0
  16. package/dist/installation.mjs +56 -0
  17. package/dist/machine-worker.mjs +241 -0
  18. package/dist/policy.mjs +91 -0
  19. package/dist/prewarm.mjs +136 -0
  20. package/dist/protocol.mjs +260 -0
  21. package/dist/task-association.mjs +127 -0
  22. package/dist/worker.mjs +52 -0
  23. package/dist/workspaces.mjs +42 -0
  24. package/docs/README.md +1 -1
  25. package/docs/README.zh-CN.md +1 -1
  26. package/docs/design.md +7 -4
  27. package/docs/en/configuration.md +1 -1
  28. package/docs/en/contributing.md +5 -6
  29. package/docs/en/flow-console.md +1 -1
  30. package/docs/en/getting-started.md +9 -2
  31. package/docs/en/releasing.md +132 -174
  32. package/docs/validation/2026-11-13-release-0.32.1.md +83 -0
  33. package/docs/validation/2026-11-14-single-package.md +60 -0
  34. package/docs/validation/README.md +2 -0
  35. package/docs/zh-CN/configuration.md +1 -1
  36. package/docs/zh-CN/contributing.md +4 -5
  37. package/docs/zh-CN/flow-console.md +1 -1
  38. package/docs/zh-CN/getting-started.md +7 -3
  39. package/docs/zh-CN/releasing.md +97 -81
  40. package/native/darwin-amd64/flywheel +0 -0
  41. package/native/darwin-arm64/flywheel +0 -0
  42. package/native/linux-amd64/flywheel +0 -0
  43. package/native/linux-arm64/flywheel +0 -0
  44. package/native/manifest.json +22 -0
  45. package/node_modules/dsh-subagent-codex-pro/CHANGELOG.md +403 -0
  46. package/node_modules/dsh-subagent-codex-pro/LICENSE +21 -0
  47. package/node_modules/dsh-subagent-codex-pro/README.md +557 -0
  48. package/node_modules/dsh-subagent-codex-pro/cordis.patch.yml +30 -0
  49. package/node_modules/dsh-subagent-codex-pro/docs/README.zh.md +355 -0
  50. package/node_modules/dsh-subagent-codex-pro/docs/machine-lifecycle-validation.md +65 -0
  51. package/node_modules/dsh-subagent-codex-pro/docs/machine-lifecycle.md +144 -0
  52. package/node_modules/dsh-subagent-codex-pro/docs/machine-lifecycle.zh.md +98 -0
  53. package/node_modules/dsh-subagent-codex-pro/docs/machine.md +194 -0
  54. package/node_modules/dsh-subagent-codex-pro/docs/orchestration.zh.md +86 -0
  55. package/node_modules/dsh-subagent-codex-pro/lib/codex-exec.js +68 -0
  56. package/node_modules/dsh-subagent-codex-pro/lib/codex-exec.js.map +1 -0
  57. package/node_modules/dsh-subagent-codex-pro/lib/dsh-types.js +15 -0
  58. package/node_modules/dsh-subagent-codex-pro/lib/dsh-types.js.map +1 -0
  59. package/node_modules/dsh-subagent-codex-pro/lib/index.js +830 -0
  60. package/node_modules/dsh-subagent-codex-pro/lib/index.js.map +1 -0
  61. package/node_modules/dsh-subagent-codex-pro/lib/jobs.js +35 -0
  62. package/node_modules/dsh-subagent-codex-pro/lib/jobs.js.map +1 -0
  63. package/node_modules/dsh-subagent-codex-pro/lib/jsonrpc.js +229 -0
  64. package/node_modules/dsh-subagent-codex-pro/lib/jsonrpc.js.map +1 -0
  65. package/node_modules/dsh-subagent-codex-pro/lib/machine-cli.js +101 -0
  66. package/node_modules/dsh-subagent-codex-pro/lib/machine-cli.js.map +1 -0
  67. package/node_modules/dsh-subagent-codex-pro/lib/machine-local.js +122 -0
  68. package/node_modules/dsh-subagent-codex-pro/lib/machine-local.js.map +1 -0
  69. package/node_modules/dsh-subagent-codex-pro/lib/machine-recovery.js +167 -0
  70. package/node_modules/dsh-subagent-codex-pro/lib/machine-recovery.js.map +1 -0
  71. package/node_modules/dsh-subagent-codex-pro/lib/machine-supervision.js +141 -0
  72. package/node_modules/dsh-subagent-codex-pro/lib/machine-supervision.js.map +1 -0
  73. package/node_modules/dsh-subagent-codex-pro/lib/machine-supervisor.js +128 -0
  74. package/node_modules/dsh-subagent-codex-pro/lib/machine-supervisor.js.map +1 -0
  75. package/node_modules/dsh-subagent-codex-pro/lib/machine.js +104 -0
  76. package/node_modules/dsh-subagent-codex-pro/lib/machine.js.map +1 -0
  77. package/node_modules/dsh-subagent-codex-pro/lib/process-guardian.js +156 -0
  78. package/node_modules/dsh-subagent-codex-pro/lib/process-guardian.js.map +1 -0
  79. package/node_modules/dsh-subagent-codex-pro/lib/run.js +842 -0
  80. package/node_modules/dsh-subagent-codex-pro/lib/run.js.map +1 -0
  81. package/node_modules/dsh-subagent-codex-pro/lib/structured.js +329 -0
  82. package/node_modules/dsh-subagent-codex-pro/lib/structured.js.map +1 -0
  83. package/node_modules/dsh-subagent-codex-pro/lib/tool.js +295 -0
  84. package/node_modules/dsh-subagent-codex-pro/lib/tool.js.map +1 -0
  85. package/node_modules/dsh-subagent-codex-pro/lib/types/codex-exec.d.ts +88 -0
  86. package/node_modules/dsh-subagent-codex-pro/lib/types/codex-exec.d.ts.map +1 -0
  87. package/node_modules/dsh-subagent-codex-pro/lib/types/dsh-types.d.ts +179 -0
  88. package/node_modules/dsh-subagent-codex-pro/lib/types/dsh-types.d.ts.map +1 -0
  89. package/node_modules/dsh-subagent-codex-pro/lib/types/index.d.ts +266 -0
  90. package/node_modules/dsh-subagent-codex-pro/lib/types/index.d.ts.map +1 -0
  91. package/node_modules/dsh-subagent-codex-pro/lib/types/jobs.d.ts +34 -0
  92. package/node_modules/dsh-subagent-codex-pro/lib/types/jobs.d.ts.map +1 -0
  93. package/node_modules/dsh-subagent-codex-pro/lib/types/jsonrpc.d.ts +113 -0
  94. package/node_modules/dsh-subagent-codex-pro/lib/types/jsonrpc.d.ts.map +1 -0
  95. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-cli.d.ts +3 -0
  96. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-cli.d.ts.map +1 -0
  97. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-local.d.ts +4 -0
  98. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-local.d.ts.map +1 -0
  99. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-recovery.d.ts +53 -0
  100. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-recovery.d.ts.map +1 -0
  101. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-supervision.d.ts +8 -0
  102. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-supervision.d.ts.map +1 -0
  103. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-supervisor.d.ts +2 -0
  104. package/node_modules/dsh-subagent-codex-pro/lib/types/machine-supervisor.d.ts.map +1 -0
  105. package/node_modules/dsh-subagent-codex-pro/lib/types/machine.d.ts +70 -0
  106. package/node_modules/dsh-subagent-codex-pro/lib/types/machine.d.ts.map +1 -0
  107. package/node_modules/dsh-subagent-codex-pro/lib/types/process-guardian.d.ts +22 -0
  108. package/node_modules/dsh-subagent-codex-pro/lib/types/process-guardian.d.ts.map +1 -0
  109. package/node_modules/dsh-subagent-codex-pro/lib/types/run.d.ts +386 -0
  110. package/node_modules/dsh-subagent-codex-pro/lib/types/run.d.ts.map +1 -0
  111. package/node_modules/dsh-subagent-codex-pro/lib/types/structured.d.ts +35 -0
  112. package/node_modules/dsh-subagent-codex-pro/lib/types/structured.d.ts.map +1 -0
  113. package/node_modules/dsh-subagent-codex-pro/lib/types/tool.d.ts +107 -0
  114. package/node_modules/dsh-subagent-codex-pro/lib/types/tool.d.ts.map +1 -0
  115. package/node_modules/dsh-subagent-codex-pro/lib/types/usage.d.ts +131 -0
  116. package/node_modules/dsh-subagent-codex-pro/lib/types/usage.d.ts.map +1 -0
  117. package/node_modules/dsh-subagent-codex-pro/lib/types/wire.d.ts +321 -0
  118. package/node_modules/dsh-subagent-codex-pro/lib/types/wire.d.ts.map +1 -0
  119. package/node_modules/dsh-subagent-codex-pro/lib/usage.js +356 -0
  120. package/node_modules/dsh-subagent-codex-pro/lib/usage.js.map +1 -0
  121. package/node_modules/dsh-subagent-codex-pro/lib/wire.js +986 -0
  122. package/node_modules/dsh-subagent-codex-pro/lib/wire.js.map +1 -0
  123. package/node_modules/dsh-subagent-codex-pro/package.json +76 -0
  124. package/npm/install.js +59 -6
  125. package/package.json +74 -12
  126. package/plugins/dsh/LICENSE +21 -0
  127. package/plugins/dsh/PROTOCOL.md +607 -0
  128. package/plugins/dsh/README.en.md +4 -0
  129. package/plugins/dsh/README.md +342 -0
  130. package/plugins/dsh/README.zh-CN.md +279 -0
  131. package/plugins/dsh/THIRD_PARTY_NOTICES.md +42 -0
  132. package/plugins/dsh/vendor/README.md +17 -0
  133. package/plugins/dsh/vendor/codex-pro.json +16 -0
@@ -2,70 +2,59 @@
2
2
 
3
3
  [Documentation](../README.md) · English · [简体中文](../zh-CN/releasing.md)
4
4
 
5
- This runbook is for maintainers. Users should follow
6
- [getting started](getting-started.md). A source commit, GitHub Release, or
7
- successful `npm pack` does not establish that a version is available from npm.
8
- Actual releases and verification limits belong in the
9
- [validation records](../validation/README.md).
5
+ This runbook is for maintainers. Users should follow [getting started](getting-started.md).
6
+ A commit, tag, or successful pack is not a registry release. Record actual source,
7
+ installation, registry and desktop results separately in [validation records](../validation/README.md).
10
8
 
11
- ## 1. Release identity and prerequisites
9
+ ## 1. One complete package
12
10
 
13
- One release contains six packages at the same exact version, published in
14
- the following order:
11
+ From 0.33, publish only **`@ckanner/flywheel`**. One tarball contains:
15
12
 
16
- | Order | Package | Contents |
17
- | --- | --- | --- |
18
- | 1–4 | `@ckanner/flywheel-{darwin,linux}-{arm64,amd64}` | Four platform-specific Go binaries |
19
- | 5 | `@ckanner/dsh-plugin-flywheel` | Desktop plugin and workers |
20
- | 6 | `@ckanner/flywheel` | User-facing CLI, installer, and documentation |
13
+ - The CLI and explicit installer in `bin/` and `npm/`.
14
+ - DSH host, client and machine workers in `dist/`; the Node modules use `.mjs`.
15
+ - Four Go executables under `native/{darwin,linux}-{arm64,amd64}/flywheel`.
16
+ - `native/manifest.json`, identifying their version, sizes and SHA-256 hashes.
17
+ - Embedded skills/templates, paired guides, the MIT license and third-party notices.
21
18
 
22
- The meta package pins all five dependencies. Every Flywheel package declares
23
- MIT and includes its `LICENSE`; the plugin retains third-party notices.
24
- The Codex Pro dependency is pinned to 0.9.0 and bundled from the
25
- [recorded source candidate](https://github.com/ckanner/flywheel/blob/main/plugins/dsh/vendor/README.md). Claude Code
26
- Pro 0.4.0 remains an optional peer, not a seventh Flywheel release package.
19
+ The launcher selects and verifies its own platform binary; it does not download a
20
+ binary on first use or resolve an old platform/worker package. `plugins/dsh` is a
21
+ **private source/build/test harness**, never a second publication target. The four
22
+ old platform packages and `@ckanner/dsh-plugin-flywheel` are historical releases;
23
+ this flow neither uploads new versions of them nor unpublishes their existing bytes.
27
24
 
28
- Use Git, Go **1.27**, Node **24.22.1**, and npm **12.2.1**, matching the
29
- repository workflows. The end-user Node requirement is lower; the release
30
- toolchain is deliberately fixed. The reviewed source must be clean, all six
31
- versions must agree, and the exact `vX.Y.Z` tag must point to HEAD. Never move
32
- an existing release tag or replace already-published package bytes.
25
+ Codex Pro 0.9.0 remains bundled from its [reviewed source candidate](https://github.com/ckanner/flywheel/blob/main/plugins/dsh/vendor/README.md).
26
+ The root and source-harness locks retain that tarball's real integrity. Claude Code
27
+ Pro 0.4.0 is an optional external peer. Provider CLIs and account credentials are
28
+ not included. Ordinary npm installation only places files; `install`/`setup` owns
29
+ user setup, with no profile or credential changes hidden in postinstall.
33
30
 
34
- `candidate.json` records the source commit, tree, snapshot SHA-256, and each
35
- tarball's SHA-512 integrity. Build once, then verify, test, and publish those
36
- same tarballs. A candidate with `source.dirty: true` is for development only.
31
+ ## 2. Source and validation
37
32
 
38
- ## 2. Validate the release source
33
+ Use Go **1.27**, Node **24.22.1** and npm **12.2.1**, matching the workflows.
34
+ Require reviewed source, a clean checkout, and `vX.Y.Z` pointing at exact HEAD.
35
+ Never move a release tag, relabel a dirty candidate, or rebuild different bytes
36
+ for an already uploaded version.
39
37
 
40
- Run the checks required by the [contribution guide](contributing.md) and
41
- the current [CI workflow](https://github.com/ckanner/flywheel/blob/main/.github/workflows/ci.yml):
38
+ Run applicable [contribution checks](contributing.md):
42
39
 
43
- | Area | Required evidence |
40
+ | Area | Evidence |
44
41
  | --- | --- |
45
- | Go | `make quality-gate` and the workflow's core-package race checks |
46
- | DSH plugin | Locked dependency installation, build, and behavior tests |
47
- | Backend boundary | DSH, Codex Pro, and Claude Code Pro offline bridge tests |
48
- | npm | `npm test` and real installation of the six-package candidate |
49
- | Native CLI | Build, version/help, and JSON configuration checks |
50
- | Session policies | `npm run test:sessions` with the built native binary |
51
- | Documentation | Links, language parity, packaged guides, and licenses |
52
-
53
- Prepare the exact optional Claude tarball using the workflow's pinned source
54
- SHA and SHA-256 check. For plugin/bridge tests, the workflow temporarily
55
- installs it as a development dependency and restores the source manifests.
56
- Export `FLYWHEEL_CLAUDE_CODE_PRO_TARBALL` as the absolute path to that verified
57
- tarball before running candidate installation tests.
58
- An absent optional peer does not count as a passed Claude backend check.
59
-
60
- These checks use isolated profiles and offline model fixtures. They do not
61
- establish live account readiness, model quality, or physical desktop layout.
62
- Record the actual platforms tested; cross-compilation does not establish
63
- runtime verification on the target platform.
64
-
65
- ## 3. Build one candidate
66
-
67
- From the clean checkout of the reviewed release tag, run each command and
68
- stop on failure:
42
+ | Go changes | `make quality-gate`, retaining per-function 100% coverage, and core race checks |
43
+ | DSH and workers | Locked source-harness build/tests and real Go→Node offline bridges |
44
+ | npm and release | `npm test`, one complete candidate build, and actual installation of that tarball |
45
+ | Native/session changes | Native CLI checks and `npm run test:sessions` as applicable |
46
+ | Migration | Fresh install, split-package upgrade, failure/rollback/cancellation and repeat setup |
47
+ | Documentation | Paired guides, valid links, packaged documents and licenses |
48
+
49
+ Install the exact reviewed Claude source tarball for its backend tests; absence
50
+ or a skipped optional peer does not count as a pass. Set
51
+ `FLYWHEEL_CLAUDE_CODE_PRO_TARBALL` to that tarball before installation tests.
52
+ Source tests use isolated homes/profiles and offline model fixtures. They do not
53
+ prove live account access, model quality, or physical desktop behavior.
54
+
55
+ ## 3. Build once and test the same artifact
56
+
57
+ From the final clean tagged checkout, stop on any failure:
69
58
 
70
59
  ```sh
71
60
  FLYWHEEL_RELEASE_VERSION=$(node -p "require('./package.json').version")
@@ -76,132 +65,101 @@ node scripts/release-publish.js verify-candidate --directory dist-npm --source-s
76
65
  FLYWHEEL_NPM_PACKAGES_DIR=dist-npm npm run test:install
77
66
  ```
78
67
 
79
- Set the Claude tarball environment variable described above before the final
80
- command. The build installs locked plugin dependencies inside an isolated
81
- source snapshot, with lifecycle scripts disabled, then builds the workers and
82
- four Go binaries. It does not reuse the caller's `node_modules` or `dist`.
83
- Root-level `npm install` is not required.
68
+ The builder captures an isolated source snapshot, installs both locked dependency
69
+ sets without lifecycle scripts, builds the plugin and four native binaries, and
70
+ packs the root exactly once. It never reuses caller `dist/` or `node_modules/`.
71
+ Candidate **format 2** records the source commit/tree/snapshot, dirty status and
72
+ one tarball's SHA-512 integrity. Verification also opens the tarball and checks
73
+ all four native hashes, required entry points, licenses and bundled adapter identity.
74
+ Linux and macOS must install the same candidate, not separately repack it.
84
75
 
85
- Preserve `dist-npm/`, its `candidate.json`, source identity, toolchain versions,
86
- and validation results. Verify all six packed MIT licenses and the root and
87
- plugin language editions. If source changes before any upload, prepare a new
88
- candidate from the new reviewed source. After any upload, retain the original
89
- candidate and follow the recovery rules below.
76
+ Keep `dist-npm/`, `candidate.json`, toolchain identity and results. Source changes
77
+ before upload require a new reviewed candidate. After upload, retain those exact
78
+ bytes; a source fix requires a new version.
90
79
 
91
- ## 4. GitHub Actions publication
80
+ ## 4. Automatic GitHub Actions publication
92
81
 
93
82
  Pushing the reviewed tag triggers [publish.yml](https://github.com/ckanner/flywheel/blob/main/.github/workflows/publish.yml).
94
- An existing tag can also be supplied to its manual dispatch. Linux and macOS
95
- verify the same candidate artifact; the publish job refreshes remote refs and
96
- requires the tag to still identify the checked source.
97
-
98
- GitHub access and npm publication rights are separate. Configure trusted
99
- publishing for each of the six packages with owner `ckanner`, repository
100
- `flywheel`, workflow `publish.yml`, and no environment unless the workflow is
101
- changed to use one. Both **npm publish** and **npm dist-tag** permissions are
102
- needed. The workflow also supports an authorized `NPM_TOKEN` fallback.
103
-
104
- New packages require npm's initial package-creation authorization before
105
- their trusted publisher can be configured. Use the normal authorized npm
106
- flow; do not upload different placeholder bytes under the release version.
107
- See the official [trusted publisher](https://docs.npmjs.com/trusted-publishers/)
108
- and [dist-tag](https://docs.npmjs.com/adding-dist-tags-to-packages/) documentation
109
- for account setup. `npm whoami` identifies an account, not its publishing rights.
110
-
111
- Publication requires explicit repository visibility: `public` requires
112
- provenance; `private` disables unsupported private-source provenance. Choose
113
- the repository's actual visibility. Publishing a package does not change
114
- repository visibility, and OIDC authentication is separate from provenance.
115
-
116
- ## 5. Publish locally from private source
117
-
118
- A maintainer can build from a normal Git checkout. With the current release
119
- policy, new uploads from a public repository must use section 4: the publisher
120
- requires provenance, which npm generates only in a supported cloud CI/CD
121
- environment, not an ordinary local browser-login session. See
122
- [npm provenance requirements](https://docs.npmjs.com/generating-provenance-statements/).
123
- The local upload example below applies only when the source repository is
124
- actually private. Do not label a public repository private to bypass this
125
- requirement. No downloaded archive is required. Complete source review and
126
- the checks above first. If Actions cannot run, record the maintainer's
127
- authorization, actual local results, and checks that were not performed;
128
- do not report unavailable CI as passing.
129
-
130
- From the same clean tagged source and its original candidate:
83
+ Manual dispatch accepts an exact existing tag. Build and both OS checks precede
84
+ the publication job, which rechecks source and tag identity.
131
85
 
132
- ```sh
133
- npm login --auth-type=web --scope=@ckanner --registry=https://registry.npmjs.org/
134
- npm run release:local -- --repository-visibility private
135
- ```
86
+ Configure **one** npm Trusted Publisher for `@ckanner/flywheel`:
136
87
 
137
- Complete the normal browser/2FA prompts in the terminal. The publisher
138
- requires a TTY; do not pipe its output through `tee`.
139
-
140
- `release:local` performs these steps:
141
-
142
- 1. Recheck clean source, exact local and remote tag, tree, snapshot, candidate
143
- manifest, and package integrity.
144
- 2. Run candidate installation, then verify the source and candidate again.
145
- 3. Upload platform packages, plugin, and meta under `candidate-X-Y-Z`.
146
- 4. Install the exact version from the official npm registry.
147
- 5. Recheck source and remote tag, promote `latest` in the same order, and
148
- verify all six tags and integrities.
149
-
150
- The command uses the repository's existing release checks. Only npm publish
151
- and dist-tag writes inherit terminal I/O; registry queries retain strict JSON
152
- parsing and bounded timeouts. The command does not log in, create or move
153
- tags, or change account security settings.
154
-
155
- For a reviewed older release that needs newer tooling, `--source-directory`
156
- can point at its exact tagged worktree and `--directory` at its original
157
- candidate. The source defaults to the tooling checkout; the candidate
158
- directory defaults to `dist-npm/` inside the selected source directory. Explicit
159
- relative paths resolve from the invocation directory. Do not copy newer
160
- tooling into old release source or rebuild an already-published version.
161
-
162
- ## 6. Visibility, promotion, and retry behavior
163
-
164
- Packages first use the candidate tag. All exact versions and integrities must
165
- be visible and registry installation must succeed before `latest` moves.
166
- Platform packages are promoted first, the plugin next, and the user-facing
167
- meta package last. npm has no atomic six-package tag transaction.
168
-
169
- Only a structured E404 means a queried version is absent. Authentication,
170
- transport, cancellation, malformed output, or missing integrity fails the
171
- operation. Registry queries accept the supported scalar and single-element
172
- array response shapes; multiple results are rejected.
173
-
174
- After upload, visibility checks have a 180-second budget per package, with
175
- E404 backoff from 2 seconds to at most 15 seconds. Each read is bounded by
176
- 30 seconds and the remaining budget. Promotion verification uses the same
177
- bounded approach for `latest` and integrity. It repeats reads, not writes,
178
- and refuses a newer `latest`, conflicting integrity, or invalid version.
88
+ | Setting | Value |
89
+ | --- | --- |
90
+ | Provider | GitHub Actions |
91
+ | Organization/user | `ckanner` |
92
+ | Repository | `flywheel` |
93
+ | Workflow filename | `publish.yml` |
94
+ | Environment | Empty, matching the workflow |
95
+ | Permissions | Allow `npm publish` and `npm dist-tag` |
96
+
97
+ The publication job uses OIDC only, with an empty npm user config; it does not
98
+ fall back to a stored `NPM_TOKEN` or interactive browser authentication. The
99
+ account's 2FA policy remains independent. Creating the trust relationship can
100
+ require a maintainer security-key confirmation; that is initial setup, not a
101
+ per-release approval. npm may mark a new connection pending validation until its
102
+ first real CI publication. Saved settings or `npm publish --dry-run` do not prove
103
+ that publication has succeeded. See [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/).
104
+
105
+ The public source repository requires provenance. Private-source publication
106
+ explicitly disables unsupported provenance; it must never falsely claim that a
107
+ public repository is private. If Actions is blocked by billing or another runner
108
+ failure, report that separately from local checks. A successful CI verification
109
+ of existing packages is not proof that fresh OIDC writes work.
110
+
111
+ ## 5. Publication order and recovery
112
+
113
+ Publish the complete tarball under `candidate-X-Y-Z`, verify its exact registry
114
+ integrity, and run the actual registry installation before moving `latest`.
115
+ Finally verify `latest` and integrity. There is one package upload and one tag
116
+ promotion, both authenticated by the CI identity; no six-package transaction is needed.
117
+
118
+ Only a structured E404 means a version is absent. Authentication, transport,
119
+ cancellation, malformed JSON and mismatched integrity fail visibly. Existing
120
+ versions must match the saved candidate, and a newer `latest` must never be downgraded.
121
+ Visibility checks retain their bounded 180-second window and repeat reads, not writes.
122
+ If npm has accepted an upload but is still validating it, retain the artifact and
123
+ wait for the exact version to become visible before resuming.
179
124
 
180
125
  | Failure | Recovery |
181
126
  | --- | --- |
182
- | Authentication or browser approval | Resolve the authorized npm login; retain the candidate. |
183
- | Some packages uploaded | Retry the original candidate; existing versions must match its integrity. |
184
- | Registry visibility timeout | Preserve the artifact and retry after the external issue is resolved. |
185
- | Installation or tag promotion failed | Resume with the same candidate; do not downgrade a newer `latest`. |
186
- | Source must change after upload | Use a new uniform version and a new reviewed tag. |
187
- | Original candidate is missing | Recover it; do not assume a rebuild has identical bytes. |
188
-
189
- With Actions, rerun failed jobs using the original artifact. Locally, rerun
190
- the final `release:local` command against the preserved source and candidate.
191
-
192
- ## 7. Record completion
193
-
194
- Publication is complete only after all six exact versions and integrities,
195
- registry installation, and final `latest` checks have passed. Record those
196
- results separately from source review, local tests, CI, and desktop acceptance.
197
- For an additional exact-version installation check:
198
-
199
- ```sh
200
- FLYWHEEL_NPM_VERSION=X.Y.Z npm run test:registry
201
- ```
202
-
203
- Replace `X.Y.Z` with the released version. Record source SHA, candidate
204
- identity, actual platforms, failures/retries, and remaining limits in a dated
205
- validation record and release notes. See the
206
- [0.30.2 release record](../validation/2026-11-11-release-0.30.2.md) for a
207
- historical example; it is evidence for that release, not a live registry status.
127
+ | OIDC authorization | Verify the exact package/repository/workflow and both allowed actions |
128
+ | Interrupted upload | Read registry identity first; resume the same saved tarball |
129
+ | Registry visibility timeout | Preserve accepted bytes and retry read-only verification |
130
+ | Registry installation or promotion fails | Resume the same candidate; keep newer tags intact |
131
+ | Code must change after upload | Use a new version and reviewed tag |
132
+ | Candidate is missing | Recover the original artifact; do not assume a rebuild is identical |
133
+
134
+ For an explicitly authorized **private-source** emergency only, `npm run release:local --
135
+ --repository-visibility private` retains source/tag/candidate/installation checks and
136
+ normal interactive npm authorization. It requires a TTY. An older release must use
137
+ its own tooling, exact tagged worktree and original artifact format. Do not invoke
138
+ the new single-package publisher against historical format-1 six-package candidates.
139
+
140
+ ## 6. User migration and acceptance
141
+
142
+ `npx -y @ckanner/flywheel@latest install` remains the entry point. Wait for active Flywheel tasks to settle and quit DSH before
143
+ migrating a split installation. Setup installs and verifies the complete desktop
144
+ package, then removes the old `@ckanner/dsh-plugin-flywheel` through the official
145
+ DSH CLI and verifies only the new identity remains. It preserves user configuration,
146
+ modified skills and task histories; it does not rewrite `state.json`.
147
+
148
+ A custom file/git legacy source fails before desktop-profile mutation; earlier
149
+ completed installer steps remain in the report. If migration fails, report
150
+ its actual partial state. Roll back only a replacement added by this attempt when
151
+ the original old package is still confirmed present. Cancellation does not start
152
+ new rollback processes; retry reads the profile again and completes the remaining
153
+ work. Never report success while both identities remain. Existing global launcher
154
+ records and explicit `flywheelBinary` overrides retain their checks and precedence.
155
+ Without a record, the installed plugin can resolve its own bundled CLI; Node still
156
+ needs to be available to the host.
157
+
158
+ A complete release record includes source/candidate/registry identities, installation
159
+ results and limitations. Separately verify CLI, skills, the installed desktop package,
160
+ configuration and the reloaded native view. Running tasks must not be interrupted just
161
+ to claim desktop acceptance; record a pending reload when necessary.
162
+
163
+ An existing managed launcher must match the installed package version. After updating
164
+ only the DSH copy, run setup for that version to refresh the managed installation;
165
+ a stale record is reported instead of mixing a newer view with an older engine.
@@ -0,0 +1,83 @@
1
+ # 0.32.1:DSH 兼容系列范围与发行
2
+
3
+ 用户在将桌面升级到 DSH 0.2.2-rc.3 后要求检查并修复 Flywheel,明确要求结束逐 rc
4
+ 修改版本白名单的方式。本次沿用已授权的发布与安装流程。
5
+
6
+ ## 原因与修复
7
+
8
+ 原生插件详情确认 0.32.0 被 `engines.dsh` 的精确白名单标为未运行。四项 SDK 探测
9
+ 也失败;直接读取无推理 worker 回执,确认 SDK 同样拒绝加载该包的权限确认组件,
10
+ 随后因缺少 `policy.json` 返回 TRANSPORT。没有通过版本豁免绕过此检查。
11
+
12
+ 0.32.1 将宿主范围改为 `>=0.2.1-rc.5 <0.3.0-0`。DSH 判断范围时包含预发布版本,
13
+ 因此 0.2 系列后续 rc/补丁可自动准入;0.3 系列及其预发布版保持拒绝。
14
+ 宿主提供的 optional DSH peer 范围同时覆盖已有预发布系列,测试依赖锁定真实发布的
15
+ 0.2.2-rc.3。运行时所需服务、权限回执、会话身份与清理检查均未删除。
16
+
17
+ 测试中的上游兼容检查实现与 DSH rc.3 源码
18
+ `38a6a5c965aa99ab525161efb7cc5cf1fe62fced` 比对未发生变化。版本范围测试覆盖后续 rc、
19
+ 正式版及补丁版准入、最低版本以下和下一 minor 预发布版拒绝;同时验证 npm 的
20
+ 默认 prerelease 匹配规则。范围是兼容策略,不代表所有未来宿主均已实测。
21
+
22
+ ## 发行身份
23
+
24
+ - 源码/标签 `v0.32.1`:`0b26f59f70030d5fe51cd65d37b7ac1e6e9047b3`。
25
+ - Git tree:`7d22489891dddd9eb8414d683d74b68708d3b420`。
26
+ - 源码 snapshot SHA256:`249b85f88c1a20caa228ebcd48f220b9e1e98e05a5f4c2efddc421d1c92b2719`。
27
+ - 候选清单 SHA256:`2cf9a845b07bde0a1fb62a41b663e37eb5e39784e7bbdd787fd3c61421859851`。
28
+
29
+ 六包从干净源码隔离构建、打包一次,认证重试始终复用原始产物。
30
+ 全部 `candidate-0-32-1` 精确版本与 integrity 校验、官方 registry 安装通过后,
31
+ 再逐包提升 latest。最终六包 latest 及 integrity 均复核为 0.32.1。
32
+ 候选清单和原始 tarball 见 [v0.32.1 Release](https://github.com/ckanner/flywheel/releases/tag/v0.32.1)。
33
+
34
+ ## 实际检查
35
+
36
+ | 检查 | 结果与范围 |
37
+ | --- | --- |
38
+ | 兼容范围回归 | 原实现 2 项失败、1 项通过;修复后 3/3 通过 |
39
+ | macOS / Linux arm64 插件完整检查 | 各 304/304;旧 rc.5 宿主各 10/10;零跳过 |
40
+ | 两平台跨进程桥接 | DSH、Codex Pro、Claude Code Pro 均通过,无跳过 |
41
+ | 两平台 npm 单元与发行协议 | 各 142/142 通过 |
42
+ | 同一正式候选安装 | macOS arm64、Linux arm64 各 10/10,无跳过 |
43
+ | 官方 registry 真实安装 | 精确 0.32.1、原生 CLI、11 个 Skill 通过;桌面注册部分为 CLI 协议桩 |
44
+ | 实际 rc.3 SDK | 隔离候选 worker 和安装后 worker 的四项无推理探测均 pass |
45
+ | 安装内容完整性 | 入口包 151 文件、全局插件 106、桌面插件 106、当前平台包 3,与原始 tarball 逐文件一致 |
46
+ | 已安装技能 | 11 个 Skill 的 13 个内容文件与发行 tag 一致 |
47
+
48
+ `cmd/`、`internal/`、`templates/`、`skills/` 相对 v0.32.0 没有差异。
49
+ 本轮没有重跑未改变的 Go 全量覆盖率、核心 race 或会话实验;其精确源文件对应的证据见
50
+ [0.32.0 发行记录](2026-11-13-release-0.32.0.md)。本轮重新运行了受 rc.3 测试依赖影响的
51
+ 插件、公开 SDK、桥接和实际安装检查。Codex Pro vendor integrity 保持不变;可选
52
+ Claude 0.4.0 使用 SHA256 为
53
+ `125951f39d27a87072a9dc20c622a19089ad7ba84b69ba6228e1fbb03f46f581` 的已审查原包。
54
+
55
+ ## 本机状态
56
+
57
+ CLI 和 desktop profile 插件均已安装 0.32.1,安装报告 `ok:true`、`ready:true`。
58
+ 默认模板未改动;用户配置原始字节保持一致,SHA256 为
59
+ `20fae2b10ad725bf5f7c06080201d1b37142f08ec74d835c053f7106d07006e9`。
60
+ 安装前七个配置、安装与 profile 元数据文件已备份并核对摘要,目录为
61
+ `~/.config/flywheel/backups/pre-0.32.1-20261114T015927Z/`,后缀为 UTC 时间。
62
+ 未添加 0.32.1 的精确版本豁免,未修改用户账号或模型设置。
63
+
64
+ **桌面重载与新版原生画布验收仍待完成。** 曾观察到上一轮会话结束,但正常退出前
65
+ 再次读取桌面时发现用户已启动新一轮对话,因而没有退出 DSH。磁盘安装和 SDK 探测
66
+ 不等于当前桌面进程已经换版;继续遵守用户先前“等现有任务结束后再重载”的要求。
67
+
68
+ ## 保留的失败与限制
69
+
70
+ - 初次更新测试锁文件遇到 rc.2/rc.3 传递 peer 冲突;移除旧 DSH 测试依赖解析记录后
71
+ 重新正常解析,没有使用 force 或 legacy-peer-deps。非 DSH 锁条目没有变化。
72
+ - 首包与插件包曾发生 npm 认证会话失效(authId 404)。实际 registry 核对后续发,
73
+ 未更换候选。首包被接受后超过 180 秒尚不可见,发行器按规则停止;其余无依赖
74
+ 平台包上传使用相同源码、标签、候选及 integrity 前置检查,四个平台全部公开并
75
+ 核对后才恢复标准发行器上传插件和入口包。
76
+ - [发布 Actions 43469804204](https://github.com/ckanner/flywheel/actions/runs/43469804204)
77
+ 和 [CI 43469804576](https://github.com/ckanner/flywheel/actions/runs/43469804576) 未通过。
78
+ 发布 preflight 没有执行步骤;annotation 指明账号付款或 spending limit 问题。
79
+ 本机验证不冒充 Actions 通过。
80
+ - SDK 探测 `inferenceTested:false`;账号授权/额度、真实模型质量、全部任务恢复场景
81
+ 和未来 DSH 版本的实际接口兼容性不由此建立。
82
+
83
+ 本记录为发行后文档,不移动 tag,不改写已发布 tarball。
@@ -0,0 +1,60 @@
1
+ # 0.33.0 单包分发工程验证
2
+
3
+ [验证索引](README.md) · [发行指南](../zh-CN/releasing.md)
4
+
5
+ ## 范围与身份
6
+
7
+ 基于 `63d8781ee1ece0cce443fa2e1ead62d1d6288817`,将 Flywheel 自身的六个发行包
8
+ 合并为一个 `@ckanner/flywheel@0.33.0`。`plugins/dsh` 保留为 private 源码测试区;
9
+ CLI、Host、Client、worker 和四个平台引擎装在同一个 tarball,skills 和模板继续内嵌。
10
+ 不改 Go 状态机、模型默认值、权限或用户账号,不修改历史 npm 版本及其标签。
11
+
12
+ 开发候选:candidate format 2,dirty=true,snapshot
13
+ `e2dfdcf243c0c77fdafc96f9c077e9059c2233d30e6eff3527434eecbd8d963a`,
14
+ 唯一 tarball `ckanner-flywheel-0.33.0.tgz` 为 18,621,751 bytes,integrity:
15
+
16
+ ```
17
+ sha512-NJzZPwy6qBJaVBLwsw0xlfcKDkWMYmVkC7pQkVjd1h0jwmDZkqQP9UD9exo3PHaCu8fL4knRw9bYiVtwXEtnIA==
18
+ ```
19
+
20
+ 该候选仅用于工程检查;后续文档与 changelog 整理不回写此身份。正式发行必须从
21
+ 干净标签另建一次正式候选,双 OS 验证并上传原始 tarball。本记录不声明已发布。
22
+
23
+ ## 检查
24
+
25
+ 工具链 Node 24.22.1 / npm 12.2.1 / Go 1.27.3。Claude 使用已审查的真实 0.4.0
26
+ 源码包,SHA-256 `125951f39d27a87072a9dc20c622a19089ad7ba84b69ba6228e1fbb03f46f581`;
27
+ Codex 0.9.0 维持 vendor 锁定及 bundle,未假设它们已在 registry 发布。
28
+
29
+ - macOS 根 npm 单元及协议检查:151 通过,无跳过。
30
+ - macOS 插件 304 通过,旧宿主兼容检查 10 通过,无跳过。
31
+ - macOS 同候选:公开 Host/Client 10 通过,真实 npm 安装 13 通过,无跳过。
32
+ 覆盖完整包入口、四引擎完整性、DSH SDK、Codex/Claude Machine、旧包迁移和重复安装。
33
+ - Linux 非 root 容器:插件 304、旧宿主 10、根 npm 151、打包 Host/Client 10、
34
+ 同候选安装 13 全部通过,无跳过;三项 Go → Node 桥接通过。
35
+ - macOS 三项 Go → Node 离线桥接通过;Go 源码无改动,正式 CI 仍跑全量质量门禁。
36
+ - 真实 DSH CLI 在隔离 HOME/DSH_HOME 完成旧 0.32.1 插件 → 完整包 → 移除旧名,
37
+ profile 最终只登记新包。该早期开发候选检查不代替最终正式候选和用户桌面验收。
38
+ - 已改动且随包分发的 Markdown 相对链接检查通过;Git diff 空白检查通过。
39
+
40
+ ## 自审
41
+
42
+ - 启动器只使用本包引擎和 worker,缺失、版本或摘要不匹配明确失败。
43
+ - DSH 的模块 ID、Remote descriptor、bundle 与安装名一致;实际 tarball 的 `.mjs`
44
+ 与客户端 bundle 经过真实公开 Host API 测试,而非只测源码区的 `.js`。
45
+ - 迁移先安装并确认替代包,再移除旧名;损坏列表、定制来源、取消、部分失败均不报成功。
46
+ 回退只移除已确认由本次新增且身份未变的替代包;预存或并发替换的包保持不动。
47
+ - 显式 flywheelBinary 保持优先。完整包无受管记录时用自带 CLI;旧版受管记录必须
48
+ 重新 setup,不混用新版界面和旧引擎。现有配置、skills 修改和任务数据保持原归属规则。
49
+ - 正式 publish 使用 OIDC、同候选和 provenance;精确 registry 安装成功后才推进 latest。
50
+ 保存 Trusted Publisher 设置不等于已完成首次自动发布,须以实际 CI 回执为准。
51
+
52
+ ## 初始失败及限制
53
+
54
+ 早期开发全量 npm 检查出现一次原有 registry 超时 fixture 的 pid marker 缺失;
55
+ 未改该用例、deadline 或断言,单独复查与后续全量 151 条均通过。此处保留初次
56
+ 失败,不据重跑断言其时序根因已消除。开发安装用例曾使用旧 `.js` 名及 macOS
57
+ `/var` 别名断言,已分别更新为打包入口和物理路径后通过。
58
+
59
+ 尚未完成的交付项:精确提交 CI、正式标签候选、npm OIDC 发布/latest、用户 profile
60
+ 迁移与 DSH 重载后界面验收。离线协议检查不代表真实模型推理、计费或质量结论。
@@ -11,6 +11,8 @@ Historical records retain their original language and findings.
11
11
 
12
12
  | Date | Record |
13
13
  | --- | --- |
14
+ | 2026-11-14 | [0.33.0 单包分发工程验证](2026-11-14-single-package.md) |
15
+ | 2026-11-13 | [0.32.1:DSH 兼容系列范围与发行(桌面重载待完成)](2026-11-13-release-0.32.1.md) |
14
16
  | 2026-11-13 | [0.32.0 正式发行与本机安装(桌面重载待完成)](2026-11-13-release-0.32.0.md) |
15
17
  | 2026-11-13 | [DSH 预热回执大小与 TTL 测试同步修复](2026-11-13-prewarm-receipts-and-expiry-tests.md) |
16
18
  | 2026-11-13 | [DSH 设置开关与最新工作台整合复核](2026-11-13-dsh-settings-controls.md) |
@@ -581,7 +581,7 @@ full-access 核对 `danger-full-access`/`dangerFullAccess`,不将其称为
581
581
 
582
582
  | 环境变量 | 用途 |
583
583
  |---|---|
584
- | `FLYWHEEL_DSH_WORKER` | 可选 DSH worker 路径;npm 启动器通常解析同版本依赖 |
584
+ | `FLYWHEEL_DSH_WORKER` | 可选 DSH worker 路径;npm 启动器通常解析自身包内的 worker |
585
585
  | `FLYWHEEL_DSH_BIN` | DSH 命令,默认 PATH 中的 `dsh` |
586
586
  | `FLYWHEEL_DSH_PROFILE` | SDK profile,默认 `sdk`,不能为 `desktop` |
587
587
  | `DSH_HOME` | DSH 自身解释的配置根目录 |
@@ -80,7 +80,7 @@ FLYWHEEL_NPM_PACKAGES_DIR=dist-npm npm run test:install
80
80
  |---|---|
81
81
  | Go 引擎 | `make quality-gate`:vet、格式、测试和覆盖率 |
82
82
  | DSH 插件或 worker | 插件检查及适用的 Go → Node 跨进程桥接 |
83
- | npm 安装或发行 | 根 npm 测试、六包候选构建、安装同一批 tarball |
83
+ | npm 安装或发行 | 根 npm 测试、单包候选构建、安装同一个 tarball |
84
84
  | 文档 | 链接、锚点、代码围栏、可运行示例、翻译一致性,以及受影响的内嵌/包内容 |
85
85
 
86
86
  Claude 桥接要求 worker 的依赖树中存在精确 0.4.0 optional machine API;因未安装 peer
@@ -230,11 +230,10 @@ hash、输入、平台以及通过/失败/跳过/未运行结果。修正
230
230
 
231
231
  ## 发行改动
232
232
 
233
- 遵循[发行指南](releasing.md)。六个 Flywheel 包保持同一精确版本、精确内部依赖和固定
234
- Codex Pro runtime。从最终干净源码构建一次,测试同一批 tarball;保留 source commit、tree、
233
+ 遵循[发行指南](releasing.md)。Flywheel 只发布一个完整包,包含四个平台引擎和固定的 Codex Pro runtime;
234
+ private DSH 源码构建区不单独发布。从最终干净源码构建一次,测试同一批 tarball;保留 source commit、tree、
235
235
  snapshot hash 和各包 integrity,release tag 必须指向该源码。不能把 dirty 候选改称正式
236
236
  发行,也不能为已发布版本重新构建不同字节。
237
237
 
238
- 使用仓库已有脚本完成候选检查、上传、registry 验证和 promotion。先发布平台包与插件,再发
239
- meta 包;移动 `latest` 前安装验证精确 registry 版本,最后核对六包标签和 integrity。部分
238
+ 使用仓库已有脚本完成候选检查、上传、registry 验证和 promotion。只上传完整候选包;移动 `latest` 前安装验证精确 registry 版本,最后核对标签和 integrity。部分
240
239
  发布失败后继续使用原候选。手动发布需要对应的明确授权,并准确记录已完成与不可用的检查。
@@ -3,7 +3,7 @@
3
3
  [文档首页](../README.zh-CN.md) · [English](../en/flow-console.md) · 简体中文
4
4
 
5
5
  DSH 的 Flywheel 视图集中提供当前任务、流程阶段、配置、会话交互与交付。
6
- CLI、平台包和 DSH 插件应保持同一版本。安装步骤见[快速开始](getting-started.md)。
6
+ CLI、内置引擎和 DSH 插件应保持同一版本。安装步骤见[快速开始](getting-started.md)。
7
7
 
8
8
  ## 找到任务,不必填写路径
9
9
 
@@ -3,11 +3,16 @@
3
3
  [文档首页](../README.zh-CN.md) · [English](../en/getting-started.md) · 简体中文
4
4
 
5
5
  先安装 Flywheel,配置实际要使用的后端,再运行一个小任务。本文对应当前仓库,安装时
6
- 应核对所选 npm 版本与本机版本;源码合并不会更新已有安装。CLI、平台包和 DSH 插件
6
+ 应核对所选 npm 版本与本机版本;源码合并不会更新已有安装。CLI、内置引擎和 DSH 插件
7
7
  须保持同一版本。
8
8
 
9
9
  任务分支、契约与 PR 审阅的完整流程见[工作流指南](workflow.md)。
10
10
 
11
+ 从 0.33 起,`@ckanner/flywheel` 一个包包含 CLI、DSH 界面/worker、内嵌技能和
12
+ 四个平台引擎,不再需要独立平台包或首次运行下载引擎。从 0.32.x 升级前先退出 DSH,
13
+ 再运行原来的安装命令;安装器替换旧桌面包登记,保留配置和任务历史,完成后重载 DSH。
14
+ 历史 npm 版本继续保留。
15
+
11
16
  ## 1. 准备运行环境
12
17
 
13
18
  | 依赖 | 用途 |
@@ -130,8 +135,7 @@ web 工具。原生会话视图不会恢复这些 worker 能力,也不会把
130
135
  ### 桌面启动器
131
136
 
132
137
  Setup 写入 `~/.config/flywheel/npm-launcher` 和安装记录,保存绝对 Node/CLI 路径
133
- 及已核实的 DSH 入口。显式 `flywheelBinary` 优先于托管启动器;记录缺失可使用旧 PATH
134
- 查找,记录损坏或 launcher 被改动则明确失败。
138
+ 及已核实的 DSH 入口。显式 `flywheelBinary` 优先于托管启动器;记录缺失时使用本包 CLI,记录损坏或 launcher 被改动则明确失败。
135
139
 
136
140
  移动 Node/npm prefix,或安装原先缺失的工具后,在能找到它们的终端中保留原参数,
137
141
  重跑 `flywheel setup --no-global`。处理冲突前先保留定制 launcher。终端 export 不会