harnessed 5.0.15 → 5.1.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 +28 -0
- package/bin/harnessed-update-reminder-worker.mjs +18 -14
- package/bin/harnessed-update-reminder.mjs +1 -1
- package/dist/cli.mjs +1632 -336
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/manifests/skill-packs/planning-with-files.yaml +6 -1
- package/package.json +1 -1
- package/workflows/auto/SKILL.md +1 -1
- package/workflows/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/auto/SKILL.md +1 -1
- package/workflows/discuss/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/phase/SKILL.md +1 -1
- package/workflows/discuss/phase/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/strategic/SKILL.md +1 -1
- package/workflows/discuss/strategic/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/subtask/SKILL.md +1 -1
- package/workflows/discuss/subtask/SKILL.zh-Hans.md +1 -1
- package/workflows/harnessed-update/SKILL.md +1 -1
- package/workflows/harnessed-update/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/ai-integration/SKILL.md +1 -1
- package/workflows/plan/ai-integration/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/architecture/SKILL.md +1 -1
- package/workflows/plan/architecture/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/auto/SKILL.md +1 -1
- package/workflows/plan/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/phase/SKILL.md +1 -1
- package/workflows/plan/phase/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/secure/SKILL.md +1 -1
- package/workflows/plan/secure/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/spec/SKILL.md +1 -1
- package/workflows/plan/spec/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/ui/SKILL.md +1 -1
- package/workflows/plan/ui/SKILL.zh-Hans.md +1 -1
- package/workflows/research/SKILL.md +3 -1
- package/workflows/research/SKILL.zh-Hans.md +3 -1
- package/workflows/retro/SKILL.md +1 -1
- package/workflows/retro/SKILL.zh-Hans.md +1 -1
- package/workflows/role-prompts.yaml +6 -3
- package/workflows/role-prompts.zh-Hans.yaml +6 -3
- package/workflows/ship/auto/SKILL.md +1 -1
- package/workflows/ship/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/ship/preflight/SKILL.md +1 -1
- package/workflows/ship/preflight/SKILL.zh-Hans.md +1 -1
- package/workflows/task/auto/SKILL.md +1 -1
- package/workflows/task/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/task/clarify/SKILL.md +1 -1
- package/workflows/task/clarify/SKILL.zh-Hans.md +1 -1
- package/workflows/task/code/SKILL.md +1 -1
- package/workflows/task/code/SKILL.zh-Hans.md +1 -1
- package/workflows/task/deliver/SKILL.md +1 -1
- package/workflows/task/deliver/SKILL.zh-Hans.md +1 -1
- package/workflows/task/test/SKILL.md +1 -1
- package/workflows/task/test/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/auto/SKILL.md +1 -1
- package/workflows/verify/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/code-review/SKILL.md +1 -1
- package/workflows/verify/code-review/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/design/SKILL.md +1 -1
- package/workflows/verify/design/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/eval-review/SKILL.md +1 -1
- package/workflows/verify/eval-review/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/multispec/SKILL.md +1 -1
- package/workflows/verify/multispec/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/paranoid/SKILL.md +1 -1
- package/workflows/verify/paranoid/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/progress/SKILL.md +1 -1
- package/workflows/verify/progress/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/qa/SKILL.md +1 -1
- package/workflows/verify/qa/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/second-opinion/SKILL.md +1 -1
- package/workflows/verify/second-opinion/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/security/SKILL.md +1 -1
- package/workflows/verify/security/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/simplify/SKILL.md +1 -1
- package/workflows/verify/simplify/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/validate-phase/SKILL.md +1 -1
- package/workflows/verify/validate-phase/SKILL.zh-Hans.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [5.1.0] - 2026-12-06
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- New workflows can opt in to same-machine handoff between Claude Code and Codex with `harnessed checkpoint start <master> --plan <json> --handoff-ready`. The source freezes with `harnessed checkpoint handoff --to <host>`; the receiver claims the transfer with `harnessed checkpoint adopt --from <host> --transfer-id <id>` and resumes with `harnessed status --recover`. Only one receiving session can claim a transfer, and retrying from that session does not overwrite newer progress. Both hosts need a compatible version; ordinary `adopt` remains a copy for runs that did not opt in. See the [handoff runbook](docs/checkpoint-handoff.md).
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- `harnessed checkpoint complete` no longer accepts a previous attempt's result after a subtask is reopened, retried, or handed to another host. Reissue `harnessed prompt` and use the newly issued result file; copying an old result into the new location or passing `--force` does not make it current.
|
|
19
|
+
|
|
20
|
+
- Standalone `/research` no longer requires a GSD `.planning/STATE.md`. It defaults to a single report in the issued result file without creating planning notes at the project root. Managed workflows retain their planning checks.
|
|
21
|
+
- The Codex installer selects only the canonical `planning-with-files` skill at user scope, without installing localized variants or placing a copy in the project. The Claude Code marketplace channel is unchanged.
|
|
22
|
+
|
|
23
|
+
## [5.0.16] - 2026-12-05
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- Compiled binaries now build with `bun build --compile --minify`. A controlled same-source Windows measurement against the CI-pinned Bun 1.3.14 shows a 1,307,648-byte (~1.26%) size reduction; the embedded runtime still dominates the ~100MB binary, so this is a modest reduction rather than a size fix. No startup-time claims are made.
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- The legacy `~/.harnessed` → host-native `harnessed` state-root migration (`~/.claude/harnessed` or `~/.codex/harnessed`) no longer runs when `HARNESSED_ROOT_OVERRIDE` is set. The override redirects the caller's state root but not the migration's user-home targets, so even a `--version` invocation under an isolated root could move or rename the real legacy directory; ambient migration is now skipped entirely while the override is set. Unset or empty override values keep the existing migration behavior.
|
|
32
|
+
- `harnessed rollback` backups for JSON settings files now record only the keys the install actually changed. Every mutated file used to be byte-copied into `~/.claude/harnessed/backups/`, which swept unrelated `env` credentials out of `settings.json` into the backup dir and let a rollback clobber keys the install never touched — including edits made after install. When a plan's old and new images both parse as JSON objects, the backup now stores a scoped diff of the old values only (`kind: "json-subtree"`), and rollback reverts exactly those paths while preserving every other current key. Compatibility: scoped snapshots carry a `json-subtree-v1` format discriminator in place of the file checksum, so released rollbacks always refuse them with a checksum mismatch instead of writing diff JSON into the target file — restore scoped snapshots with this version or newer. Scoped backups and restores also refuse JSON containing numbers `JSON.stringify` cannot round-trip (non-finite values, integers beyond 2^53-1) rather than silently corrupting them; byte backups for non-JSON files are unchanged.
|
|
33
|
+
- The "you were updated" notice is now written on a real auto-update. The owned-state refresh that runs in the new binary launched the notice write without awaiting it, and the entry point exits the process the moment the refresh entry returns — so on every real update the notice write was killed mid-flight and the status file kept the half-written skeleton the worker records before the handover. The refresh itself always completed (it is awaited); only the notice was lost, which is why the defect was invisible to every test that keeps the process alive. The next session after an auto-update now prints the version change, the changelog excerpt and the restart hint exactly once, as designed.
|
|
34
|
+
- `harnessed update --rollback` can now find what an update banked. A self-update copied the replaced binary into `bin-backup/<version>/` under the exec's own filename (`harnessed`, `harnessed.exe`), while the rollback scan looked for the release asset name (`harnessed-windows-x64.exe`, …) — on a real install the two never match, so rollback reported "no rollback candidates" against a full `bin-backup/`. Every test world named the exec file exactly like the asset, which is why the mismatch never showed up. New banks are written under the asset name the contract documents, and the scan also accepts the exec basename so every backup banked since 4.32.20 stays reachable.
|
|
35
|
+
|
|
8
36
|
## [5.0.15] - 2026-11-09
|
|
9
37
|
|
|
10
38
|
### Fixed
|
|
@@ -65,7 +65,7 @@ var init_package = __esm({
|
|
|
65
65
|
'package.json'() {
|
|
66
66
|
package_default = {
|
|
67
67
|
name: 'harnessed',
|
|
68
|
-
version: '5.0
|
|
68
|
+
version: '5.1.0',
|
|
69
69
|
description: 'AI coding harness package manager + composition orchestrator',
|
|
70
70
|
type: 'module',
|
|
71
71
|
license: 'Apache-2.0',
|
|
@@ -3519,7 +3519,7 @@ async function runBinarySelfUpdate(deps, opts) {
|
|
|
3519
3519
|
try {
|
|
3520
3520
|
const dir = join6(deps.stateRoot(), 'bin-backup', deps.currentVersion)
|
|
3521
3521
|
await mkdir(dir, { recursive: true })
|
|
3522
|
-
await copyFile(bakPath, join6(dir,
|
|
3522
|
+
await copyFile(bakPath, join6(dir, asset))
|
|
3523
3523
|
backupDir = dir
|
|
3524
3524
|
copied = true
|
|
3525
3525
|
} catch (e) {
|
|
@@ -3563,20 +3563,25 @@ async function runBinaryRollback(deps, opts) {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
const asset = assetNameFor(deps.platform, deps.arch)
|
|
3565
3565
|
const backupsRoot = join6(deps.stateRoot(), 'bin-backup')
|
|
3566
|
-
|
|
3566
|
+
const execBase = basename(deps.execPath)
|
|
3567
|
+
const banked = /* @__PURE__ */ new Map()
|
|
3567
3568
|
try {
|
|
3568
3569
|
const entries = await readdir(backupsRoot, { withFileTypes: true })
|
|
3569
3570
|
for (const e of entries) {
|
|
3570
3571
|
if (!e.isDirectory()) continue
|
|
3571
|
-
const
|
|
3572
|
-
(
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3572
|
+
for (const name of asset === execBase ? [asset] : [asset, execBase]) {
|
|
3573
|
+
const has = await access(join6(backupsRoot, e.name, name)).then(
|
|
3574
|
+
() => true,
|
|
3575
|
+
() => false,
|
|
3576
|
+
)
|
|
3577
|
+
if (has) {
|
|
3578
|
+
banked.set(e.name, name)
|
|
3579
|
+
break
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3576
3582
|
}
|
|
3577
|
-
} catch {
|
|
3578
|
-
|
|
3579
|
-
}
|
|
3583
|
+
} catch {}
|
|
3584
|
+
const versions = [...banked.keys()]
|
|
3580
3585
|
if (versions.length === 0) {
|
|
3581
3586
|
return {
|
|
3582
3587
|
status: 'error',
|
|
@@ -3595,9 +3600,8 @@ async function runBinaryRollback(deps, opts) {
|
|
|
3595
3600
|
} else {
|
|
3596
3601
|
target = versions.reduce((a, b) => (compareVersions(a, b) === 'behind' ? b : a))
|
|
3597
3602
|
}
|
|
3598
|
-
const backupBin = join6(backupsRoot, target, asset)
|
|
3603
|
+
const backupBin = join6(backupsRoot, target, banked.get(target) ?? asset)
|
|
3599
3604
|
const execDir = dirname4(deps.execPath)
|
|
3600
|
-
const execBase = basename(deps.execPath)
|
|
3601
3605
|
const ext = deps.platform === 'win32' ? '.exe' : ''
|
|
3602
3606
|
const tempPath = join6(execDir, `.harnessed-rollback-${deps.pid}${ext}`)
|
|
3603
3607
|
const bakPath = join6(execDir, `${execBase}.bak-${deps.currentVersion}`)
|
|
@@ -3644,7 +3648,7 @@ async function runBinaryRollback(deps, opts) {
|
|
|
3644
3648
|
try {
|
|
3645
3649
|
const dir = join6(backupsRoot, deps.currentVersion)
|
|
3646
3650
|
await mkdir(dir, { recursive: true })
|
|
3647
|
-
await copyFile(bakPath, join6(dir,
|
|
3651
|
+
await copyFile(bakPath, join6(dir, asset))
|
|
3648
3652
|
copied = true
|
|
3649
3653
|
} catch (e) {
|
|
3650
3654
|
deps.log(`warning: could not bank the replaced binary (${e.message}) \u2014 keeping ${bakPath}`)
|
|
@@ -14,7 +14,7 @@ var init_package = __esm({
|
|
|
14
14
|
'package.json'() {
|
|
15
15
|
package_default = {
|
|
16
16
|
name: 'harnessed',
|
|
17
|
-
version: '5.0
|
|
17
|
+
version: '5.1.0',
|
|
18
18
|
description: 'AI coding harness package manager + composition orchestrator',
|
|
19
19
|
type: 'module',
|
|
20
20
|
license: 'Apache-2.0',
|