harnessed 5.0.11 → 5.0.13

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 (84) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README-en.md +1 -0
  3. package/README-zh.md +1 -0
  4. package/README.md +1 -0
  5. package/bin/harnessed-check-docs.mjs +15 -0
  6. package/bin/harnessed-update-reminder-worker.mjs +2598 -134
  7. package/bin/harnessed-update-reminder.mjs +636 -61
  8. package/dist/cli.mjs +1597 -546
  9. package/dist/cli.mjs.map +1 -1
  10. package/dist/index.mjs +1 -1
  11. package/dist/index.mjs.map +1 -1
  12. package/messages/en.json +15 -1
  13. package/messages/zh-Hans.json +15 -1
  14. package/package.json +1 -1
  15. package/workflows/auto/SKILL.md +10 -18
  16. package/workflows/auto/SKILL.zh-Hans.md +8 -18
  17. package/workflows/discuss/auto/SKILL.md +4 -7
  18. package/workflows/discuss/auto/SKILL.zh-Hans.md +2 -7
  19. package/workflows/discuss/phase/SKILL.md +4 -7
  20. package/workflows/discuss/phase/SKILL.zh-Hans.md +2 -7
  21. package/workflows/discuss/strategic/SKILL.md +4 -8
  22. package/workflows/discuss/strategic/SKILL.zh-Hans.md +2 -8
  23. package/workflows/discuss/subtask/SKILL.md +4 -7
  24. package/workflows/discuss/subtask/SKILL.zh-Hans.md +2 -7
  25. package/workflows/harnessed-update/SKILL.md +9 -8
  26. package/workflows/harnessed-update/SKILL.zh-Hans.md +7 -8
  27. package/workflows/host-primitives.yaml +8 -8
  28. package/workflows/host-primitives.zh-Hans.yaml +8 -8
  29. package/workflows/plan/ai-integration/SKILL.md +7 -7
  30. package/workflows/plan/ai-integration/SKILL.zh-Hans.md +7 -7
  31. package/workflows/plan/architecture/SKILL.md +7 -13
  32. package/workflows/plan/architecture/SKILL.zh-Hans.md +7 -13
  33. package/workflows/plan/auto/SKILL.md +8 -14
  34. package/workflows/plan/auto/SKILL.zh-Hans.md +8 -14
  35. package/workflows/plan/phase/SKILL.md +7 -13
  36. package/workflows/plan/phase/SKILL.zh-Hans.md +7 -13
  37. package/workflows/plan/secure/SKILL.md +7 -7
  38. package/workflows/plan/secure/SKILL.zh-Hans.md +7 -7
  39. package/workflows/plan/spec/SKILL.md +7 -7
  40. package/workflows/plan/spec/SKILL.zh-Hans.md +7 -7
  41. package/workflows/plan/ui/SKILL.md +7 -7
  42. package/workflows/plan/ui/SKILL.zh-Hans.md +7 -7
  43. package/workflows/research/SKILL.md +7 -7
  44. package/workflows/research/SKILL.zh-Hans.md +7 -7
  45. package/workflows/retro/SKILL.md +8 -15
  46. package/workflows/retro/SKILL.zh-Hans.md +7 -15
  47. package/workflows/ship/auto/SKILL.md +8 -14
  48. package/workflows/ship/auto/SKILL.zh-Hans.md +8 -14
  49. package/workflows/ship/preflight/SKILL.md +7 -9
  50. package/workflows/ship/preflight/SKILL.zh-Hans.md +7 -9
  51. package/workflows/task/auto/SKILL.md +8 -15
  52. package/workflows/task/auto/SKILL.zh-Hans.md +8 -15
  53. package/workflows/task/clarify/SKILL.md +2 -10
  54. package/workflows/task/clarify/SKILL.zh-Hans.md +2 -10
  55. package/workflows/task/code/SKILL.md +7 -15
  56. package/workflows/task/code/SKILL.zh-Hans.md +7 -15
  57. package/workflows/task/deliver/SKILL.md +7 -17
  58. package/workflows/task/deliver/SKILL.zh-Hans.md +7 -17
  59. package/workflows/task/test/SKILL.md +7 -14
  60. package/workflows/task/test/SKILL.zh-Hans.md +7 -14
  61. package/workflows/verify/auto/SKILL.md +9 -14
  62. package/workflows/verify/auto/SKILL.zh-Hans.md +9 -14
  63. package/workflows/verify/code-review/SKILL.md +8 -13
  64. package/workflows/verify/code-review/SKILL.zh-Hans.md +8 -13
  65. package/workflows/verify/design/SKILL.md +8 -12
  66. package/workflows/verify/design/SKILL.zh-Hans.md +7 -12
  67. package/workflows/verify/eval-review/SKILL.md +8 -12
  68. package/workflows/verify/eval-review/SKILL.zh-Hans.md +7 -12
  69. package/workflows/verify/multispec/SKILL.md +8 -15
  70. package/workflows/verify/multispec/SKILL.zh-Hans.md +7 -15
  71. package/workflows/verify/paranoid/SKILL.md +7 -14
  72. package/workflows/verify/paranoid/SKILL.zh-Hans.md +7 -14
  73. package/workflows/verify/progress/SKILL.md +8 -13
  74. package/workflows/verify/progress/SKILL.zh-Hans.md +8 -13
  75. package/workflows/verify/qa/SKILL.md +7 -13
  76. package/workflows/verify/qa/SKILL.zh-Hans.md +7 -13
  77. package/workflows/verify/second-opinion/SKILL.md +8 -12
  78. package/workflows/verify/second-opinion/SKILL.zh-Hans.md +7 -12
  79. package/workflows/verify/security/SKILL.md +8 -12
  80. package/workflows/verify/security/SKILL.zh-Hans.md +7 -12
  81. package/workflows/verify/simplify/SKILL.md +8 -12
  82. package/workflows/verify/simplify/SKILL.zh-Hans.md +7 -12
  83. package/workflows/verify/validate-phase/SKILL.md +8 -12
  84. package/workflows/verify/validate-phase/SKILL.zh-Hans.md +7 -12
package/CHANGELOG.md CHANGED
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [5.0.13] - 2026-11-08
11
+
12
+ ### Added
13
+
14
+ - Parallel sub-workflows now have a completion signal that does not depend on a chat notification. `harnessed prompt <sub>` prints the exact result file the sub must write (its final result plus the verbatim `<promise>COMPLETE</promise>` line), and `harnessed checkpoint complete <sub> --result-file <path> --wait <seconds>` waits for that file with a bounded poll instead of an unbounded wait. A sub that never signals now fails closed with `result-wait-timeout` and leaves the ledger pending, so a lost or mis-routed completion message can no longer hang the orchestrator. The wait uses the same predicate as the promise gate, so it bounds how long the orchestrator waits without inventing a second notion of "done".
15
+ - The binary channel can now update itself in the background. With `harnessed auto-update on`, a new release is detected by the existing update-reminder worker, downloaded in the background (resumable — a dropped transfer continues from the bytes already on disk instead of starting over), verified (sha256 + ed25519 signature), swapped in under the same lock the manual `harnessed update` takes, and the new binary then refreshes the owned skills and hooks. The next session prints a one-time notice with the version change, the changelog excerpt and the restart hint. The consent lives in `update-reminder-preferences.json` as `autoUpdate` and is off by default; the reminder consent and the auto-update consent are independent, so silencing the reminder no longer silences the auto-update. `harnessed auto-update status` shows the consent, the resolved host, both file paths and the last run. Only the binary channel self-replaces — the npm and bun channels keep reminding, and the status says so.
16
+
17
+ ### Changed
18
+
19
+ - The workflow skills harnessed installs now describe themselves in one uniform voice. Every description used to carry the workflow's internal bookkeeping — the schema version, the delegated sub-workflows, the applied disciplines, the available tools, the phase and ADR numbers it was bumped in, and the note that it is triggered by a slash command — and that is what the model reads when it decides whether to invoke a skill, and what the user sees in the skill list. The descriptions now say what the skill does and when to use it, in the same plain sentence style the upstream plugin skills already use, and the steps that only run under a condition say so explicitly. Nothing was dropped from the machine-readable surface: the authoritative metadata stays in the workflow's `workflow.yaml` and the behavioral detail stays in the skill body.
20
+
21
+ ### Fixed
22
+
23
+ - `harnessed gates` no longer asks for an Agent Team on a machine that cannot form one. The parallelism decision was a pure function of the routing judgment, so it told the orchestrator to spawn teammates even when `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` was off — an instruction that cannot be executed — while on a machine with agent-teams enabled it said nothing about the known claude-code behaviour where a named subagent can be re-parented under a live teammate and its completion notification never reaches the orchestrator. The plan now carries the real capability probe (`teams_active`) plus the transport contract (`transport`, `result_contract`, `bounded_wait`), and team escalation is refused unless the capability is actually present.
24
+ - `harnessed setup` no longer fails the `playwright-cli` component on Windows with `npm error code EINVALIDPACKAGENAME`. A manifest install command that quotes a package specifier — `npm install -g "@playwright/cli@^0.1.22" && playwright-cli install-browser chromium` — reached npm with its quotes doubled (`""@playwright/cli@^0.1.22""`), because the command was handed to `cmd.exe` through Node's argument escaping, which escapes a quote as `\"`, a convention `cmd.exe` does not share. The command string now reaches `cmd.exe` verbatim, so the quotes reach npm exactly as the manifest wrote them. The quotes stay in the manifest: without them `cmd.exe` eats the caret of the version range.
25
+ - `harnessed setup` no longer fails a component because another component held the settings transaction lock. The settings transaction lock and the install-ownership lock locked the same target, so `proper-lockfile` kept one registry entry for both: the first release marked the other lock released (the component died with `settings transaction lock failed: Lock is already released`) and removed the wrong lock directory, so every later contender failed with `settings transaction lock failed: Lock file is already being held` — the Agent Teams step and the user-language step of the setup were skipped for that reason. Each lock now has its own target, contention is retried with the same bounded backoff the install-ownership lock already uses, and releasing a lock that is no longer held is a no-op instead of a failed component.
26
+ - `harnessed doctor` no longer reports the oldest cached copy of the `planning-with-files` plugin as the installed one. The presence check walked the plugin cache directory in listing order and took the first version directory it found, while `claude plugin update` keeps the previous version directories next to the new one — so a host that had updated the plugin was told it was still on 2.34.0. The cached versions are now probed from the newest down, and the version is compared by numeric segment, so the report names the version that is actually installed. The `mattpocock-skills` presence check walked the plugin cache the same way and reported the oldest cached copy too; it now probes the newest version first as well.
27
+
28
+ ## [5.0.12] - 2026-11-03
29
+
30
+ ### Fixed
31
+
32
+ - The compiled-binary self-update now survives a slow link and says what actually failed. The release-metadata hop gets a 30 s budget instead of 10 s and reports the stage it failed in — a timeout, a network error, an HTTP status, or an unparsable response — instead of one generic "could not reach GitHub releases" line, and the "the release may still be publishing" hint is now shown only for the case it describes. The binary asset is streamed to disk instead of being buffered in memory (it is ≈99 MB), the transfer aborts if no data arrives for 120 s, a progress line reports the downloaded size and rate while it runs, and a failed download states how many bytes arrived, how long it took and the average rate.
33
+ - `harnessed doctor` no longer reports a second install channel that is not installed. Channel presence is decided by what exists on disk, so running from a source checkout no longer counts as an npm-global install, and the single-channel line names the channel that is actually installed.
34
+
10
35
  ## [5.0.11] - 2026-11-03
11
36
 
12
37
  ### Fixed
package/README-en.md CHANGED
@@ -529,6 +529,7 @@ planning-with-files /plan (cross-cutting tool) → write artifacts to .planning/
529
529
  | `harnessed status` | Current phase + lock holder |
530
530
  | `harnessed doctor` | Health check (Node / MCP / jq / Win bash / routing / token budget / skill integrity / GateGuard conflict / update-available / stale hooks, etc.). The **stale hooks** check flags orphaned harnessed `Stop`/`UserPromptSubmit` entries in `~/.claude/settings.json` that point at a deleted `bin/*.mjs` — the cause of a `MODULE_NOT_FOUND` error on every prompt after a raw `npm uninstall -g harnessed`. Fix: run `harnessed uninstall` (it strips them) **before** removing the package. |
531
531
  | `harnessed update [--check\|--dry-run\|--rollback [version]\|--all\|--upstreams\|--migration-report] [--json] [--platform <host>] [--non-interactive] [--repair --yes]` | Self-update, channel-aware: binary installs replace themselves in place from GitHub releases (sha256 + ed25519-signature verified — releases ship `<asset>.sha256.sig`, signed-release contract since 4.32.19; the replaced version is banked for rollback); npm installs run `npm i -g harnessed@latest`. `--check` reports versions without installing; `--dry-run` previews without writing; `--rollback [version]` (binary installs only) atomically restores a banked previous binary — npm installs are pointed at `npm i -g harnessed@<version>`; `--all` (alias `--upstreams`) requests fresh-runtime closure, including owned assets and reviewed third-party updates; `--json` emits one structured result; `--platform <host>` selects `claude` or `codex`; `--non-interactive` skips prompts, and repair automation additionally requires explicit `--repair --yes`; `--repair --yes` invokes a bounded, user-authorized agent repair and then deterministic verification; `--migration-report` is a read-only stale-state inventory |
532
+ | `harnessed auto-update on\|off\|status` | Auto-update consent + status: `on` and `off` set the background self-update consent in the host's preferences file (every other key is preserved); `status` merges that consent with the last run state. `--platform claude\|codex` picks the host; `--json` emits the merged result as one JSON object. The default host is the detected one; on a machine with both hosts installed, pass `--platform` to write the other host's root. |
532
533
  | `harnessed release-preflight [--release-version <semver>]` | Read-only release-readiness gate (CHANGELOG `[Unreleased]` / version / git-clean / tag-absent); `--release-version` overrides manifest discovery; exits 1 if not ready. The Ship-stage gate. |
533
534
  | `harnessed retro --done` | Reset the retro-reminder phase counter after running `/retro` (clears the per-turn RETRO-DUE nudge). |
534
535
  | `harnessed install <name>` | Install an upstream manifest |
package/README-zh.md CHANGED
@@ -525,6 +525,7 @@ planning-with-files /plan (cross-cutting tool) → write artifacts to .planning/
525
525
  | `harnessed status` | 当前 phase + lock holder |
526
526
  | `harnessed doctor` | 健康检查 (Node / MCP / jq / Win bash / routing / token budget / skill 完整性 / GateGuard 冲突 / update-available 等) |
527
527
  | `harnessed update [--check\|--dry-run\|--rollback [version]\|--all\|--upstreams\|--migration-report] [--json] [--platform <host>] [--non-interactive] [--repair --yes]` | 自更新,按安装通道分流:二进制安装从 GitHub releases 原地自替换(sha256 + ed25519 签名双重校验 —— releases 附带 `<asset>.sha256.sig`,4.32.19 起为签名发布契约;被替换的版本存档备回滚);npm 安装执行 `npm i -g harnessed@latest`。`--check` 报告版本但不安装;`--dry-run` 预览不写盘;`--rollback [version]`(仅二进制安装)原子恢复已存档的上一版二进制 —— npm 安装则被指引执行 `npm i -g harnessed@<version>`;`--all`(别名 `--upstreams`)请求 fresh-runtime closure,包含自有 assets 和 reviewed 第三方更新;`--json` 输出单个结构化结果;`--platform <host>` 选择 `claude` 或 `codex`;`--non-interactive` 跳过 prompt,而 repair 自动化还必须显式使用 `--repair --yes`;`--repair --yes` 启动有边界且经过用户授权的 agent repair,随后执行确定性验证;`--migration-report` 为只读陈旧状态盘点 |
528
+ | `harnessed auto-update on\|off\|status` | 自动更新的授权开关与状态:`on` 与 `off` 在宿主机的 preferences 文件里读写 `autoUpdate` 授权(其余键全部保留);`status` 把该授权与上次运行状态合并输出。`--platform claude\|codex` 选择宿主机;`--json` 以单个 JSON 对象输出合并结果。默认宿主机 = 检测到的那个;两个宿主都装了的机器,用 `--platform` 指定另一个宿主机的根。 |
528
529
  | `harnessed release-preflight [--release-version <semver>]` | Read-only 发布就绪关卡 (CHANGELOG `[Unreleased]` / version / git-clean / tag-absent);`--release-version` 可覆盖 manifest 自动发现;未就绪则 exit 1。即 Ship-stage 关卡 |
529
530
  | `harnessed retro --done` | 跑完 `/retro` 后重置 retro-reminder phase 计数器 (清掉每轮的 RETRO-DUE 提醒) |
530
531
  | `harnessed install <name>` | 装上游 manifest |
package/README.md CHANGED
@@ -527,6 +527,7 @@ planning-with-files /plan (cross-cutting tool) → write artifacts to .planning/
527
527
  | `harnessed status` | Current phase + lock holder |
528
528
  | `harnessed doctor` | Health check (Node / MCP / jq / Win bash / routing / token budget / skill integrity / GateGuard conflict / update-available / stale hooks, etc.). The **stale hooks** check flags orphaned harnessed `Stop`/`UserPromptSubmit` entries in `~/.claude/settings.json` that point at a deleted `bin/*.mjs` — the cause of a `MODULE_NOT_FOUND` error on every prompt after a raw `npm uninstall -g harnessed`. Fix: run `harnessed uninstall` (it strips them) **before** removing the package. |
529
529
  | `harnessed update [--check\|--dry-run\|--rollback [version]\|--all\|--upstreams\|--migration-report] [--json] [--platform <host>] [--non-interactive] [--repair --yes]` | Self-update, channel-aware: binary installs replace themselves in place from GitHub releases (sha256 + ed25519-signature verified — releases ship `<asset>.sha256.sig`, signed-release contract since 4.32.19; the replaced version is banked for rollback); npm installs run `npm i -g harnessed@latest`. `--check` reports versions without installing; `--dry-run` previews without writing; `--rollback [version]` (binary installs only) atomically restores a banked previous binary — npm installs are pointed at `npm i -g harnessed@<version>`; `--all` (alias `--upstreams`) requests fresh-runtime closure, including owned assets and reviewed third-party updates; `--json` emits one structured result; `--platform <host>` selects `claude` or `codex`; `--non-interactive` skips prompts, and repair automation additionally requires explicit `--repair --yes`; `--repair --yes` invokes a bounded, user-authorized agent repair and then deterministic verification; `--migration-report` is a read-only stale-state inventory |
530
+ | `harnessed auto-update on\|off\|status` | Auto-update consent + status: `on` and `off` set the background self-update consent in the host's preferences file (every other key is preserved); `status` merges that consent with the last run state. `--platform claude\|codex` picks the host; `--json` emits the merged result as one JSON object. The default host is the detected one; on a machine with both hosts installed, pass `--platform` to write the other host's root. |
530
531
  | `harnessed release-preflight [--release-version <semver>]` | Read-only release-readiness gate (CHANGELOG `[Unreleased]` / version / git-clean / tag-absent); `--release-version` overrides manifest discovery; exits 1 if not ready. The Ship-stage gate. |
531
532
  | `harnessed retro --done` | Reset the retro-reminder phase counter after running `/retro` (clears the per-turn RETRO-DUE nudge). |
532
533
  | `harnessed install <name>` | Install an upstream manifest |
@@ -183,6 +183,21 @@ var en_default = {
183
183
  '[manifest-add] EE-5 gate passed (dry-run); would write {{path}}',
184
184
  'resume.fail': '\u2717 {{error}}',
185
185
  'resume.corrupt': '\u2717 {{error}}\n path: {{path}}',
186
+ 'auto_update.consent_on': '[harnessed] auto-update ON',
187
+ 'auto_update.consent_off': '[harnessed] auto-update OFF',
188
+ 'auto_update.preferences_replaced':
189
+ '[harnessed] the preferences file was unreadable (invalid JSON) \u2014 it has been replaced.',
190
+ 'auto_update.reminder_off_note': `[harnessed] the update reminder is OFF \u2014 the "new version available" notice will not be printed. Use 'harnessed auto-update status' to check on it.`,
191
+ 'auto_update.path.host': ' host: {{host}}',
192
+ 'auto_update.path.preferences': ' preferences: {{path}}',
193
+ 'auto_update.path.status': ' status: {{path}}',
194
+ 'auto_update.error.unsupported_host': 'unsupported host: {{host}} (expected claude or codex)',
195
+ 'auto_update.error.runtime': 'could not resolve the {{host}} update-reminder runtime',
196
+ 'auto_update.notice.updated_from': 'harnessed updated {{from}} -> {{to}}.',
197
+ 'auto_update.notice.updated_to': 'harnessed updated to {{to}}.',
198
+ 'auto_update.notice.restart': 'Restart {{host}} so the new version + hooks take effect.',
199
+ 'auto_update.notice.codex_trust':
200
+ "Codex hooks still need your trust confirmed \u2014 approve the harness hook registration in Codex (or run 'harnessed setup' there).",
186
201
  }
187
202
 
188
203
  // src/i18n/index.ts