@hecer/yoke 0.2.0 → 0.7.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.
- package/CHANGELOG.md +112 -0
- package/README.md +557 -494
- package/bench/.runs/claude-2026-07-09T22-34-01/.yoke/config.yaml +6 -0
- package/bench/.runs/claude-2026-07-09T22-34-01/.yoke/context/DECISIONS.md +9 -0
- package/bench/.runs/claude-2026-07-09T22-34-01/.yoke/prd.yaml +38 -0
- package/bench/.runs/claude-2026-07-09T22-34-01/bench-verify.mjs +15 -0
- package/bench/.runs/claude-2026-07-09T22-34-01/package.json +9 -0
- package/bench/.runs/claude-2026-07-09T22-34-01/src/index.mjs +48 -0
- package/bench/.runs/claude-2026-07-09T22-34-01/tests/STORY-1.test.mjs +24 -0
- package/bench/.runs/claude-2026-07-09T22-34-01/tests/STORY-2.test.mjs +28 -0
- package/bench/.runs/claude-2026-07-09T22-34-01/tests/STORY-3.test.mjs +25 -0
- package/bench/.runs/gemini-2026-07-09T22-34-02/.yoke/config.yaml +6 -0
- package/bench/.runs/gemini-2026-07-09T22-34-02/.yoke/prd.yaml +32 -0
- package/bench/.runs/gemini-2026-07-09T22-34-02/bench-verify.mjs +15 -0
- package/bench/.runs/gemini-2026-07-09T22-34-02/package.json +9 -0
- package/bench/.runs/gemini-2026-07-09T22-34-02/src/index.mjs +3 -0
- package/bench/.runs/gemini-2026-07-09T22-34-02/tests/STORY-1.test.mjs +24 -0
- package/bench/.runs/gemini-2026-07-09T22-34-02/tests/STORY-2.test.mjs +28 -0
- package/bench/.runs/gemini-2026-07-09T22-34-02/tests/STORY-3.test.mjs +25 -0
- package/bench/README.md +42 -0
- package/bench/RESULTS.md +36 -0
- package/bench/fixtures/string-kit/.yoke/config.yaml +6 -0
- package/bench/fixtures/string-kit/.yoke/prd.yaml +32 -0
- package/bench/fixtures/string-kit/bench-verify.mjs +15 -0
- package/bench/fixtures/string-kit/package.json +9 -0
- package/bench/fixtures/string-kit/src/index.mjs +3 -0
- package/bench/fixtures/string-kit/tests/STORY-1.test.mjs +24 -0
- package/bench/fixtures/string-kit/tests/STORY-2.test.mjs +28 -0
- package/bench/fixtures/string-kit/tests/STORY-3.test.mjs +25 -0
- package/bench/results/claude-2026-07-09T22-34-01.json +40 -0
- package/bench/run.mjs +115 -0
- package/canon/loop/loop-spec.md +5 -1
- package/canon/manifest.yaml +3 -0
- package/canon/skills/yoke-retrofit/SKILL.md +1 -0
- package/canon/tools/claude-mem.md +15 -0
- package/canon/tools/ui-ux-pro-max.md +15 -0
- package/dist/cli.js +32 -6
- package/dist/loop/cleanup.js +44 -3
- package/dist/loop/loop.js +27 -2
- package/dist/loop/reporter.js +21 -3
- package/dist/loop/run-command.js +19 -6
- package/dist/loop/runner.js +130 -13
- package/dist/loop/watchdog.js +67 -17
- package/dist/retrofit/apply.js +10 -3
- package/dist/retrofit/config.js +2 -0
- package/dist/retrofit/gitignore.js +2 -0
- package/dist/retrofit/planners/claude.js +4 -1
- package/dist/retrofit/planners/gemini.js +2 -1
- package/dist/retrofit/preserve.js +51 -0
- package/dist/update/check.js +86 -0
- package/dist/update/refresh.js +28 -0
- package/dist/update/upgrade.js +30 -0
- package/docs/PUBLISHING.md +41 -0
- package/docs/superpowers/plans/2026-06-27-forge-a-canon.md +815 -0
- package/docs/superpowers/plans/2026-06-27-forge-b1-retrofit-claude.md +842 -0
- package/docs/superpowers/plans/2026-06-27-forge-b2-codex-gemini-tools.md +884 -0
- package/docs/superpowers/plans/2026-06-27-forge-c1-loop-engine.md +891 -0
- package/docs/superpowers/plans/2026-06-28-baustein-e-context-layer.md +981 -0
- package/docs/superpowers/plans/2026-06-28-forge-b3-settings-merge.md +364 -0
- package/docs/superpowers/plans/2026-06-28-forge-c2-loop-verify.md +502 -0
- package/docs/superpowers/plans/2026-06-28-forge-c3-multi-agent-runners.md +377 -0
- package/docs/superpowers/plans/2026-06-28-forge-c4-worktree-isolation.md +413 -0
- package/docs/superpowers/plans/2026-06-28-forge-c5-review-iteration.md +419 -0
- package/docs/superpowers/plans/2026-06-28-forge-cleanup-dep0190.md +233 -0
- package/docs/superpowers/plans/2026-06-28-forge-d-codegraph-choice-minimal-code.md +523 -0
- package/docs/superpowers/plans/2026-06-29-baustein-f-routing.md +258 -0
- package/docs/superpowers/plans/2026-06-29-baustein-g-loop-observability.md +1006 -0
- package/docs/superpowers/plans/2026-06-29-baustein-h-loop-robustness.md +374 -0
- package/docs/superpowers/plans/2026-06-30-baustein-i-visual-design-verification.md +450 -0
- package/docs/superpowers/plans/2026-07-02-baustein-j-cross-model-review-gstack-compose.md +645 -0
- package/docs/superpowers/plans/2026-07-02-baustein-k-zero-to-100-bootstrap.md +1024 -0
- package/docs/superpowers/plans/2026-07-02-baustein-m-flow-smoke-proofs.md +574 -0
- package/docs/superpowers/specs/2026-06-27-forge-cross-agent-harness-design.md +144 -0
- package/docs/superpowers/specs/2026-06-28-baustein-e-context-layer-design.md +146 -0
- package/docs/superpowers/specs/2026-06-29-baustein-f-routing-design.md +106 -0
- package/docs/superpowers/specs/2026-06-29-baustein-g-loop-observability-design.md +186 -0
- package/docs/superpowers/specs/2026-06-29-baustein-h-loop-robustness-design.md +113 -0
- package/docs/superpowers/specs/2026-06-30-baustein-i-visual-design-verification-design.md +98 -0
- package/docs/superpowers/specs/2026-07-02-baustein-j-cross-model-review-gstack-compose-design.md +137 -0
- package/docs/superpowers/specs/2026-07-02-baustein-k-zero-to-100-bootstrap-design.md +200 -0
- package/docs/superpowers/specs/2026-07-02-baustein-m-flow-smoke-proofs-design.md +155 -0
- package/docs/superpowers/specs/2026-07-10-companion-tools-decision.md +33 -0
- package/docs/superpowers/specs/2026-07-10-multi-agent-parallel-loop-design.md +99 -0
- package/package.json +8 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.7.0 — 2026-07-17
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- **Update check + `yoke upgrade`.** Every CLI invocation ends with a non-blocking
|
|
7
|
+
version hint (npm/gh-style): a detached background refresher caches the registry's
|
|
8
|
+
latest at most once a day; when it is newer, a one-line stderr hint suggests
|
|
9
|
+
`yoke upgrade` (which runs `npm install -g @hecer/yoke@latest`). Silent in CI,
|
|
10
|
+
`--json` runs, non-TTY pipes, and under `YOKE_NO_UPDATE_CHECK=1`.
|
|
11
|
+
- **Opt-in auto-upgrade** (`update.auto: true` in `.yoke/config.yaml`): evaluated at
|
|
12
|
+
loop START only — never mid-run; the running process finishes on its version and
|
|
13
|
+
the upgrade applies from the next invocation. Deliberately NOT the default:
|
|
14
|
+
a gate harness must not change itself mid-project (determinism), and unreviewed
|
|
15
|
+
auto-installs are a supply-chain hazard.
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-07-17
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- **Project-scoped orphan reaping.** The watchdog now records its pids in the project's
|
|
21
|
+
`.yoke/runner.pid` (main dir and per-story worktrees; removed on clean exit), and
|
|
22
|
+
`yoke loop cleanup` kills exactly those recorded process trees — and only while no
|
|
23
|
+
live loop holds the lock. Background: without a scoped mechanism, users and agents
|
|
24
|
+
resorted to machine-wide pattern kills (every process matching
|
|
25
|
+
`dangerously-skip-permissions`), which took down *healthy* runners of other projects
|
|
26
|
+
mid-story and stalled their loops. Never kill by pattern; `yoke loop cleanup` is the
|
|
27
|
+
safe path. `.yoke/runner.pid` is gitignored by retrofit.
|
|
28
|
+
|
|
29
|
+
## 0.5.0 — 2026-07-17
|
|
30
|
+
|
|
31
|
+
Root-cause fixes for the two "yoke keeps hanging" failure modes observed in the field
|
|
32
|
+
(orphaned `claude.exe` runners piling up, healthy long stories dying at exactly the
|
|
33
|
+
idle window):
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
- **Watchdog now kills the whole process tree on Windows** (`taskkill /T /F`).
|
|
37
|
+
Previously it killed only the spawned shell (`shell: true`), orphaning the actual
|
|
38
|
+
agent process — which kept writing to the worktree (dirty-tree blocks, failing
|
|
39
|
+
worktree removal) and kept burning API tokens. Observed in the field as ~10
|
|
40
|
+
zombie `claude.exe` per machine plus surviving dev servers.
|
|
41
|
+
- **Claude runner always runs in stream-json mode.** Plain `-p` prints nothing until
|
|
42
|
+
the run finishes, so the idle watchdog mistook healthy >20-minute stories for dead
|
|
43
|
+
processes and killed them at exactly the idle timeout — while the user saw dead air.
|
|
44
|
+
The stream doubles as liveness; token usage is now reported on every run (not just
|
|
45
|
+
`--json` mode).
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
- README: operating notes for driving the loop from inside an agent session
|
|
49
|
+
(background execution, small `--max` batches, `yoke loop cleanup` after interrupts) —
|
|
50
|
+
outer shell-tool timeouts killing a foreground `yoke loop run` were the third
|
|
51
|
+
observed "hang" pattern.
|
|
52
|
+
|
|
53
|
+
## 0.4.0 — 2026-07-17
|
|
54
|
+
|
|
55
|
+
### Added
|
|
56
|
+
- **Hardened runner prompts** — distilled agent-harness patterns for headless runs:
|
|
57
|
+
scope discipline (nothing beyond the story), no unsolicited summary/plan/analysis
|
|
58
|
+
documents, root-cause fixes instead of gate bypasses, faithful outcome reporting,
|
|
59
|
+
bounded final messages (cuts output-token waste). Review prompts now ground verdicts
|
|
60
|
+
in observed evidence only and keep them brief.
|
|
61
|
+
|
|
62
|
+
### Fixed
|
|
63
|
+
- `.yoke/loop.pause` is now gitignored by retrofit. Previously the loop's own
|
|
64
|
+
`git add -A` story commit swept the pause control file into history in
|
|
65
|
+
un-retrofitted targets; removing it dirtied the tree and the clean-tree gate
|
|
66
|
+
blocked the resume run — the loop locked itself out.
|
|
67
|
+
|
|
68
|
+
> Note: 0.3.0 was tagged and released on GitHub but never reached npm (2FA re-login
|
|
69
|
+
> was pending), so for npm users 0.4.0 is the first release with the 0.3.0 changes below.
|
|
70
|
+
|
|
71
|
+
## 0.3.0 — 2026-07-10
|
|
72
|
+
|
|
73
|
+
### Added
|
|
74
|
+
- **Claude Code plugin packaging** — the repo is now its own plugin marketplace
|
|
75
|
+
(`.claude-plugin/plugin.json` + `marketplace.json`): `/plugin marketplace add HECer/yoke`,
|
|
76
|
+
then `/plugin install yoke@yoke` installs the full canon under the `yoke:` skill namespace.
|
|
77
|
+
- **Gemini CLI extension manifest** (`gemini-extension.json` + `GEMINI-EXTENSION.md`) —
|
|
78
|
+
installable via `gemini extensions install https://github.com/HECer/yoke`, listed in the
|
|
79
|
+
daily-crawled extensions gallery.
|
|
80
|
+
- **Benchmark harness** (`bench/`) — reproducible cross-runner benchmark (tokens · speed ·
|
|
81
|
+
quality) with a fixed fixture, pre-written objective tests, and committed result data.
|
|
82
|
+
- **Companion tool docs** — `canon/tools/claude-mem.md` (persistent memory; interactive
|
|
83
|
+
sessions only, explicitly kept out of loop runs) and `canon/tools/ui-ux-pro-max.md`
|
|
84
|
+
(design generation paired with Yoke's design verification gates).
|
|
85
|
+
- **Multi-agent parallel loop design** — evaluation + phased design for distributing PRD
|
|
86
|
+
stories across parallel workers (`needs` dependency field, claim files, merge queue,
|
|
87
|
+
heterogeneous cross-agent dispatch): `docs/superpowers/specs/2026-07-10-multi-agent-parallel-loop-design.md`.
|
|
88
|
+
|
|
89
|
+
### Fixed
|
|
90
|
+
- Agent-availability probe timeout raised 5s → 20s: Gemini CLI cold-starts in ~6s on
|
|
91
|
+
Windows, so the loop misreported an installed `gemini` as "not found on PATH"
|
|
92
|
+
(found by the new benchmark harness).
|
|
93
|
+
- Gemini runner invocation: dropped the bare `-p` flag — current Gemini CLI (0.33+)
|
|
94
|
+
requires a value after `-p` and errored with "Not enough arguments following: p".
|
|
95
|
+
Piped stdin selects headless mode by itself, so the runner now passes only `--yolo`
|
|
96
|
+
(also found by the benchmark harness).
|
|
97
|
+
|
|
98
|
+
### Changed
|
|
99
|
+
- README: npm install is now the primary quickstart path; documented plugin/extension
|
|
100
|
+
installs and optional companions.
|
|
101
|
+
- npm package now ships `CHANGELOG.md`, `bench/` (harness + result data), and
|
|
102
|
+
`docs/superpowers/` (all specs and plans, including the multi-agent parallel loop design).
|
|
103
|
+
|
|
104
|
+
## 0.2.0 — 2026-07-09
|
|
105
|
+
|
|
106
|
+
- First npm release as `@hecer/yoke`.
|
|
107
|
+
- Hyperflow integration surface: `yoke loop run --json` NDJSON stream, pause signal,
|
|
108
|
+
token-usage + model-id reporting for the claude runner.
|
|
109
|
+
- `yoke new` greenfield bootstrap, `yoke prd draft`, cross-model `yoke review`,
|
|
110
|
+
`yoke flow-smoke` browser gate with proof artifacts, `yoke design-scan`.
|
|
111
|
+
- Retrofit planners for Claude Code, Codex CLI, Gemini CLI; canon of 26 skills;
|
|
112
|
+
loop with worktree isolation, watchdog, single-flight lock, commit integrity.
|