docs(adr): put install and update ownership in pi2d (ADR 0004)
Two owners for one artifact broke exactly as expected: on a machine with the standalone pi2, the plugin's npm copy sat on a lower rung of the resolution ladder, so `:PiWebUpdate` upgraded a copy nobody ran and reported success while the daemon kept the old version. ADR 0004 records the fix. The standalone artifact is the one self-updating channel (`install.sh` + `pi2 update`, built on ADR 0003's receipt); npm, Homebrew and the AUR stay as distributions whose upgrades belong to their package manager — `pi2 update` refuses them with the right command, the uv model. The plugin becomes a pure client: resolve, delegate, print. docs/install.md and README.md are reordered to match: the standalone installer is the recommended path, the package managers are alternatives that upgrade themselves. ADR 0002 §2.1 keeps its survey but is marked amended where it had left `:PiWebInstall` as a plugin-side npm installer.
This commit is contained in:
1 parent
2240289426
commit
086cac8c8e
4 files changed
+183
-96
No files matched your search
@@ -1,6 +1,7 @@
|
||||
# ADR 0002 — Installation and run model: CLI first, service-owned daemon, plugin attaches
|
||||
|
||||
- Status: accepted (implementing)
|
||||
- Status: accepted (implementing), partially superseded by [ADR 0004](0004-one-self-updating-channel.md)
|
||||
(the plugin no longer installs; the standalone artifact is the one self-updating channel)
|
||||
- Date: 2026-10-28
|
||||
- Supersedes: the implicit "the plugin installs and spawns the daemon" default in
|
||||
`README.md` §Install and the resolution table (explicit path → `PATH` → plugin
|
||||
@@ -108,6 +109,10 @@ The plugin's `:PiWebInstall` becomes an explicit convenience command that prompt
|
||||
confirmation before installing `@yuez/pi2d@latest` (an optional `<version>` argument
|
||||
pins one) into `<stdpath("data")>/pi2d`. It never runs `npx`.
|
||||
|
||||
> **Amended by [ADR 0004](0004-one-self-updating-channel.md)**: `:PiWebInstall` no longer installs
|
||||
> anything. The npm package keeps publishing, but the package manager owns its upgrades; the
|
||||
> plugin prints commands and delegates to `pi2 update` (standalone channel only).
|
||||
|
||||
### 2.2 Run: the daemon owns its own lifecycle
|
||||
|
||||
| Mode | Who starts it | When to use |
|
||||
|
||||
Reference in new issue
Block a user