Repository navigation
Conversation
…members removed folders The afterUpdate pair undid both opt-outs on every CLI update. install --auto always installed cua-driver next to each ardia skill and reset the marker's companions, ignoring "companions": [] from --no-cua and a deleted cua-driver folder. refresh then rewrote skills.json with only the folders still on disk, so a removed ardia folder was skipped once and reinstalled, with cua-driver, on the next update. install --auto now uses refresh's own rule for the companion: put it back only where the marker names it (or predates companions) and ardia's copy is there, or on a fresh install. refresh keeps a recorded folder that is gone, so the "removed after an earlier install" skip lasts. A plain install without --no-cua still installs cua-driver, so opting back in is one command. Refs ardia-browser/ardia#4769
… records the companion choice refresh kept a recorded folder only when it was ours or gone, so taking a copy over by deleting its marker dropped it from skills.json, and deleting the folder afterwards let the next update reinstall ardia and cua-driver. It now keeps every recorded folder; install --auto already skips one that is gone or not ours. A standalone install --auto next to someone else's cua-driver skill left the marker's companions unset, so removing that skill made the next install --auto put ardia's copy there. It now records the companion the way refresh does. wantsCompanion takes the marker refresh already read and checks for a link before reading through it.
…uto checks Keeping every recorded folder let skills.json grow with project folders that are no longer ardia's; past the 1 MiB read limit the record reads as empty and the opt-outs go with it, and each refresh kept printing "skipped" for them. install --auto only ever looks at the user-level folders, so refresh keeps those it recorded, removed or taken over, and prunes project folders as before.
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix · Severity of issue fixed: Medium Merge Risk:
|
Closes ardia-browser/ardia#4769
Ardia runs
ardia skills install --autoand thenardia skills refreshafter every CLI update, and between them they undid every opt-out.install --autoalways reinstalled cua-driver's skill and reset the marker to"companions": ["cua-driver"], even after--no-cuaor a deletedcua-driverfolder.refreshthen rewroteskills.jsonwith only the folders still on disk, so a removedardiafolder was skipped once and reinstalled, with cua-driver, on the next update.Now
install --autouses the rulerefreshalready had. Next to an existing copy, it puts cua-driver back only where the marker names it and ardia's copy is still there; a fresh folder gets it unless someone else's cua-driver skill is already there. Either way the marker records the choice.refreshkeeps the user-level folders it recorded (the only onesinstall --autolooks at), so a copy the user removed, or took over by deleting its.ardia-skill, stays skipped. Project folders that are gone or no longer ardia's are still pruned, as before. A plainardia skills installwithout--no-cuastill installs cua-driver, so opting back in is one command.docs/cli.mdsays all of this.Before and after. The CLI ran from source (
bun src/main.ts, Bun 1.4.5, Linux) against a throwawayHOMEwith~/.claudepresent andARDIA_CLI_HOMEset. Each "update" isskills install --autofollowed byskills refresh. The table shows the state after the second update.origin/main(d87fc6c)install --no-cua, then 2 updatescompanions: ["cua-driver"]companions: []install, deletecua-driver/, then 2 updatesinstall, deleteardia/andcua-driver/, then 2 updatesremoved after an earlier install),skills.jsonbecomes[], update 2 reinstalls bothskills.jsonkeeps the folderinstall --no-cua, delete.ardia-skill, update, deleteardia/, 2 updatesinstall --autonext to anothercua-driverskill, which is then removedOne output change: next to someone else's
cua-driverskill,install --autono longer prints thekept … cua-driver's own installer?line, because it no longer tries to install there. A plaininstallstill prints it (skills--install-cua-foreign-kept).Tested at 63294f7 on Linux:
bun run typecheckandtsrs --noEmit -p tests/m3: pass.tests/parity/cases/skills.json, throughtests/parity/engine.tsagainstscripts/build.sh's binary (Bun 1.3.14): pass.tests/skills-commit.test.tsandtests/after-update-stop.test.ts: 16 pass, 0 fail, 5 macOS-only skips.Not shown: the full
bun run testandbun run test:paritysuites and macOS. They weren't run locally; this PR's CI runs them on macos-15 and ubuntu-24.04.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit
--no-cuaor removing the companion keeps it absent during updates. A standard install without--no-cuacan add it again.