Sync upstream v3.2.4: slim install refs, a crash-safe installer, Change project restarts the agent (v3.2.4)

AI Assisted
This commit is contained in:
jparkerweb committed 2026-12-03 15:17:47 -08:00
1 parent 50319aa332
commit f997a82c4d
45 files changed
+7851 -306

No files matched your search

+4 -15
View File
@@ -46,12 +46,6 @@
- About: src/web-console/public/loop-parts.js
- Noted: 2026-11-28, implement-review
### A test run of node install.js with a temp HOME still writes the plan2code shims into the real npm global bin, because npm's prefix does not follow HOME; also set npm_config_prefix to a temp folder.
- Kind: correction
- About: install.js
- Why: A piped --update test run repointed the real plan2code shims at a temp folder until they were fixed by hand.
- Noted: 2026-11-17, implement-review
### An extra review round in a loop phase reaches the driver through loop_driver::note_page: a Review page goes to rec.round_wait, because rec.sid still holds the phase's own session.
- Kind: how-it-works
- About: plan2code-app/src-tauri/src/loop_driver.rs
@@ -63,10 +57,10 @@
- Why: The new tools fold-out reused git-tools and the Branches row's flex rule laid it out side by side.
- Noted: 2026-11-17, quick-task
### Each recordInstalled() in install.js stamps the version being installed into install.json, so a failed update must restore the old one with setRecordVersion(), or a retry says Already on.
- Kind: how-it-works
- About: install.js
- Noted: 2026-11-17, implement-review
### Before test-app-meter.mjs on a fresh checkout, run npm ci and node scripts/vendor.mjs in plan2code-app/: without ui/vendor/, app.js stops at its top-level await.
- Kind: command
- About: scripts/test-app-meter.mjs, plan2code-app/scripts/vendor.mjs
- Noted: 2026-12-03, implement-review
### Every heading and .md-h gets text-wrap: balance from tokens.css, so a long heading such as a lesson title splits into two even halves; set text-wrap: wrap where a heading runs longer than a line.
- Kind: how-it-works
@@ -94,11 +88,6 @@
- About: src/web-console/public/screens/agents
- Noted: 2026-11-17, implement-review
### The app's webview data sits outside ~/.plan2code, in Tauri's app_local_data_dir() on Windows and Linux (%LOCALAPPDATA%/com.plan2code.desktop); appWebviewDirs() in install.js lists it per OS.
- Kind: how-it-works
- About: install.js
- Noted: 2026-11-17, implement-review
### The desktop app's CSP allows no inline script, so anything that must run before the first paint (the saved theme and accent) goes in the classic head script ui/theme-early.js, not in app.js.
- Kind: convention
- About: plan2code-app/ui/theme-early.js
+45
View File
@@ -0,0 +1,45 @@
# Installer
Paths: install.js, src/installer/**, scripts/bench-install-update.mjs, scripts/publish-install-refs.mjs, scripts/test-install-*.mjs, scripts/install-*.mjs
### A new src/installer/ module that install.js requires must join the file list npxCopy() copies in scripts/test-install-update.mjs, or every release redirect test fails.
- Kind: convention
- About: scripts/test-install-update.mjs, install.js
- Why: Adding skills-cli.js and canonical-skills.js failed five release redirect tests until npxCopy() copied them too.
- Noted: 2026-12-03, implement-review
### A test run of node install.js with a temp HOME still writes the plan2code shims into the real npm global bin, because npm's prefix does not follow HOME; also set npm_config_prefix to a temp folder.
- Kind: correction
- About: install.js
- Why: A piped --update test run repointed the real plan2code shims at a temp folder until they were fixed by hand.
- Noted: 2026-11-17, implement-review
### A test that calls install() must point APPDATA and LOCALAPPDATA at the temp HOME first: its cleanLegacyPaths() sweep reads the VS Code prompts and Crush skills folders from them, outside HOME.
- Kind: how-it-works
- About: install.js, scripts/test-install-update.mjs
- Noted: 2026-12-03, implement-review
### An install-ref fixture test checks each fixture's own root for cleanup, never a count of p2c-install-refs-* in the temp dir: other test files build fixtures in parallel.
- Kind: correction
- About: scripts/test-install-refs.mjs, scripts/install-ref-fixtures.mjs
- Why: The cleanup test counted the temp dir and failed once other test files built fixtures alongside it.
- Noted: 2026-12-03, implement-review
### Each recordInstalled() in install.js stamps the version being installed into install.json, so a failed update must restore the old one with setRecordVersion(), or a retry says Already on.
- Kind: how-it-works
- About: install.js
- Noted: 2026-11-17, implement-review
### Give bench-install-update.mjs no --workdir whose path holds a UUID, since npm 12 redacts UUIDs in paths to *** and every isolated path breaks; the default temp workdir is safe.
- Kind: how-it-works
- About: scripts/bench-install-update.mjs
- Noted: 2026-12-03, implement-review
### skills@1.5.x skips every agent link when skills add gets the canonical store as its source, so agentLinkSource() gives that pin the built skills/ folder.
- Kind: how-it-works
- About: src/installer/skills-cli.js, install.js
- Noted: 2026-12-03, implement-review
### The app's webview data sits outside ~/.plan2code, in Tauri's app_local_data_dir() on Windows and Linux (%LOCALAPPDATA%/com.plan2code.desktop); appWebviewDirs() in install.js lists it per OS.
- Kind: how-it-works
- About: install.js
- Noted: 2026-11-17, implement-review