harnessed 5.0.14 → 5.0.16
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 +27 -0
- package/bin/harnessed-update-reminder-worker.mjs +18 -14
- package/bin/harnessed-update-reminder.mjs +1 -1
- package/dist/cli.mjs +489 -50
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/schemas/index.mjs +3 -0
- package/dist/schemas/index.mjs.map +1 -1
- package/manifests/skill-packs/design-taste-frontend.yaml +9 -0
- package/manifests/skill-packs/gsd.yaml +10 -3
- package/manifests/tools/playwright-test.yaml +8 -0
- package/manifests/tools/webapp-testing.yaml +8 -0
- package/package.json +1 -1
- package/schemas/manifest.v1.schema.json +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,33 @@ 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
|
+
## [5.0.16] - 2026-12-05
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- 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.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- 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.
|
|
17
|
+
- `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.
|
|
18
|
+
- 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.
|
|
19
|
+
- `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.
|
|
20
|
+
|
|
21
|
+
## [5.0.15] - 2026-11-09
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- `harnessed setup` can now update the components it installed, instead of refusing every one of them. Since v5.0.0 the force-update pass refused to replace anything whose existing source it could not prove: a skill pack, a marketplace plugin or a cloned checkout was kept exactly as it was, and the summary then told the user to re-run setup later — advice that could never work, because the same proof would fail again. The refusal itself was right; what was missing was the other half, a way to prove ownership. A skill pack now refreshes when its manifest declares the footprint it owns and every existing entry in that footprint passes the manifest's own marker check; a marketplace plugin refreshes when the host's plugin registry holds it under the exact qualified identity the install command installs (`name@marketplace`), which is the same source the official `claude plugin install` upgrades from; a cloned component refreshes when the checkout's git origin is the URL the manifest clones from. Everything that does not prove out is still refused: an undeclared source, a look-alike directory carrying somebody else's marker, a plugin registered under a different marketplace, a checkout whose origin points elsewhere, a pack whose declaration does not cover every skill it claims to install.
|
|
26
|
+
- A force update no longer fails on the ownership receipt it writes itself. The receipt records the paths an install created, so a refresh — which creates nothing new — had nothing to record, and the install failed on its own empty receipt. An authorized refresh now records the footprint it just proved, which is what it owns.
|
|
27
|
+
- The GSD pack's ownership declaration now matches what the pack actually ships. Its marker demanded the literal text `gsd-core` from every skill, agent and command it owns, and nine of its own skills plus four of its own agents never contain that text — so the declaration proved nothing and the pack was refused exactly like an undeclared one. The marker is now the artifact's own `gsd-` identity, which every file the declaration admits carries on both hosts.
|
|
28
|
+
- The update summary no longer promises a retry that cannot succeed. A component kept because its source is not provably ours is now reported as such, with the upstream tool named as the way to update it; the "re-run setup later" hint is kept only for the failures a retry can actually fix.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- Global npm tools (`ctx7`, `playwright-cli`) now take part in the force-update pass. They were excluded from it because a global npm install is a system-scope change and the system-scope gate asked for a flag the force pass never passes — so those two tools could never be updated by harnessed at all. The force pass is an explicit request to update the components that are already installed, and `npm install -g <pkg>` is the official upgrade path of a globally installed CLI: it writes into the npm global prefix, which is scoped per package name rather than a shared namespace. The force pass therefore runs that command for those components, and the confirmation prompt names them and the scope change before it starts. A tool the force pass upgraded is not offered a second time by the L4 rescue. The normal install pass is unchanged — installing a global tool still needs the explicit system-scope opt-in, and the documented `harnessed setup --system --non-interactive --update-installed` path still works as before.
|
|
33
|
+
- The manifest ownership contract learned a fifth root. A skill the `skills` CLI installs without `--global` lives in `~/.agents/skills` and is linked into the host's skills directory, and the link was deliberately invisible to the ownership check, because a link can point anywhere. The ownership roots now include `agents-skills`, so a manifest can declare the real files of such a pack; the `design-taste-frontend` pack does exactly that.
|
|
34
|
+
|
|
8
35
|
## [5.0.14] - 2026-11-09
|
|
9
36
|
|
|
10
37
|
### 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.0.16',
|
|
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.0.16',
|
|
18
18
|
description: 'AI coding harness package manager + composition orchestrator',
|
|
19
19
|
type: 'module',
|
|
20
20
|
license: 'Apache-2.0',
|