dsh-home-hosted 0.9.1 → 0.9.2
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/docs/DESIGN.md +2 -2
- package/docs/PANEL.md +16 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/home-hosted/resolve.d.ts +2 -2
- package/package.json +2 -2
package/docs/DESIGN.md
CHANGED
|
@@ -38,8 +38,8 @@ its page.
|
|
|
38
38
|
`onPortConflict: kill` (0.6.0), `persistent` (0.6.3), `restart <id>` (0.7.13) and the nullable-`label`
|
|
39
39
|
patch (0.7.21) all predate the release this plugin pins. The plugin used to consult the answering
|
|
40
40
|
panel's version and refuse or drop those keys (`KILL_UNSUPPORTED`), and later to retry a `restart` as a
|
|
41
|
-
stop-then-start pair. Both are gone: it pins `home-hosted@^0.9.0
|
|
42
|
-
outright, so neither check could ever fire again.
|
|
41
|
+
stop-then-start pair. Both are gone: it pins `home-hosted@^0.9.x` — 0.9.0 at the time of writing —
|
|
42
|
+
which refuses an older panel outright, so neither check could ever fire again.
|
|
43
43
|
|
|
44
44
|
An old state root is upgraded by running the latest 0.7.x **once, before installing 0.8** — its first
|
|
45
45
|
run moves the state into `.hh/`. A root a 0.8-era panel left on config schema 1 needs
|
package/docs/PANEL.md
CHANGED
|
@@ -108,6 +108,22 @@ recreating its own log, an unflushed log batch, a Windows test skip — touch no
|
|
|
108
108
|
no `.proxy/proxy.json`, `ProxyService`, `terminatePid`, or `DELETE /api/logs`, and `serverSchema`,
|
|
109
109
|
`CONFIG_SCHEMA`, `/_hh` and the CLI are unchanged.
|
|
110
110
|
|
|
111
|
+
**0.9.4 also needs no adaptation, and that was checked by use.** It adds no command and no required
|
|
112
|
+
field: `PUT /api/servers/:id`, `POST /api/servers/orphans/:id/stop`, presets and restore reporting are
|
|
113
|
+
new routes and UI, none of which this plugin calls; `stoppedByPanel`, `orphans`, `healthRestarts` and
|
|
114
|
+
the action-result `code` are new *optional* fields. `serverSchema`, `editableFields`, the merge keys,
|
|
115
|
+
`CONFIG_SCHEMA` (still 2), the four `/_hh` routes and every CLI subcommand and flag are unchanged, so
|
|
116
|
+
the pin moved and the floor did not. Verified by diffing the published sourcemaps of 0.9.2 and 0.9.4
|
|
117
|
+
(34 changed files) and by driving a real 0.9.4 panel: this plugin's client lists, creates, patches,
|
|
118
|
+
starts, stops and deletes an entry, and reads workspaces and settings, exactly as on 0.9.2.
|
|
119
|
+
|
|
120
|
+
Two 0.9.4 behaviour changes reach the page without breaking it. `/healthz` now answers 503 for **any**
|
|
121
|
+
crashed server rather than only an `autostart` one — measured, and harmless here because `probePanel`
|
|
122
|
+
asks whether the panel answered at all, not whether it said 200. And the supervisor now bounds health
|
|
123
|
+
force-restarts and then **stops** the entry, reporting it as `stopped` with `stoppedByPanel: true`; the
|
|
124
|
+
page renders that as a plain `stopped`, so it reads like a deliberate stop. That is a fidelity gap in
|
|
125
|
+
the status chip, not a break: the reason is still on the panel's own card and in `lastError`.
|
|
126
|
+
|
|
111
127
|
That copy resolves to a pnpm path carrying a version and a peer hash, which moves on the next install
|
|
112
128
|
and disappears when the profile is rebuilt. A boot entry that baked it in would fail exactly when it
|
|
113
129
|
matters. So the entry runs a generated launcher in the plugin state dir (`bin/home-hosted.mjs`,
|
package/lib/index.js
CHANGED
|
@@ -3017,7 +3017,7 @@ function buildHomeHostedBootSpec(facts, launch, options) {
|
|
|
3017
3017
|
}
|
|
3018
3018
|
|
|
3019
3019
|
// src/home-hosted/resolve.ts
|
|
3020
|
-
var EXPECTED_RANGE = "^0.9.
|
|
3020
|
+
var EXPECTED_RANGE = "^0.9.4";
|
|
3021
3021
|
var MIN_SUPPORTED_VERSION = "0.9.0";
|
|
3022
3022
|
function pinnedManifestPath() {
|
|
3023
3023
|
try {
|