@mutmutco/installer-launcher 1.0.1 → 1.2.0
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/README.md +17 -4
- package/dist/launcher.js +716 -174
- package/dist/launcher.sea.cjs +724 -181
- package/dist/refresh.js +335 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -15,13 +15,26 @@ registration, PKCE + browser, code exchange), adapted to the launcher's token st
|
|
|
15
15
|
```
|
|
16
16
|
launcher login [--config <path>] [--dir <path>] sign in (the ONLY command that opens a browser)
|
|
17
17
|
launcher logout wipe tokens AND payload
|
|
18
|
-
launcher install login if no token -> fetch+verify+unpack ->
|
|
19
|
-
launcher update
|
|
20
|
-
launcher
|
|
18
|
+
launcher install refresh the launcher, login if no token -> fetch+verify+unpack -> last mile
|
|
19
|
+
launcher update [--dry-run] refresh the launcher, then the payload; no-op when current
|
|
20
|
+
launcher status [--json] read-only: launcher, payload vs the release, sign-in, auto-update
|
|
21
|
+
launcher doctor launcher report (no network), then the payload's doctor
|
|
22
|
+
launcher autoupdate on|off|status hourly per-user schedule (hidden via wscript on Windows)
|
|
23
|
+
launcher <verb> [args…] forwarded untouched when payload.json declares it
|
|
21
24
|
launcher --run <file> [args…] run a payload ESM file with the launcher's own runtime
|
|
22
|
-
launcher --version
|
|
25
|
+
launcher --version `<bin> <payload version> (launcher <version>)`
|
|
23
26
|
```
|
|
24
27
|
|
|
28
|
+
Every screen that is not an install/update run is drawn by `@mutmutco/installer-face` (#7072):
|
|
29
|
+
usage, notices, the status/doctor report, and refusals (stderr). Launcher flags (`--config`,
|
|
30
|
+
`--dir`, `--json`, `--no-color`, `--dry-run`, `--help`, `--version`) are read before the command
|
|
31
|
+
and around the launcher's own verbs only. Only mutating verbs take the installation lock.
|
|
32
|
+
|
|
33
|
+
`@mutmutco/installer-launcher/refresh` exports `refreshLauncher` and `readLauncherRecord` (#7070):
|
|
34
|
+
the signed `GET <host>/release/launcher` record (manifest shape and signing) keeps the one-line
|
|
35
|
+
installer's launcher current from every update path. A SEA run records its own path in
|
|
36
|
+
`<productDir>/launcher.json` so the refresh finds it.
|
|
37
|
+
|
|
25
38
|
`--run <file> [args…]` runs a payload file with the launcher's OWN embedded runtime — no Node on
|
|
26
39
|
the machine. `<file>` resolves against the cwd and is loaded with `import()`; the file sees
|
|
27
40
|
`process.argv = [execPath, <abs file>, ...args]` and its `process.exitCode` is propagated. A
|