@blastlauncher/web 3.0.0-alpha.2 → 3.0.0-alpha.3

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 CHANGED
@@ -5,12 +5,8 @@ second origin you host, so it cannot reach your page's DOM, cookies or data.
5
5
 
6
6
  ## Quickstart
7
7
 
8
- The package is not on npm until the next prerelease. Build it from source
9
- (`bun run release:build` in a checkout) and install its tarball with the
10
- `client-core` and `protocol` ones it depends on:
11
-
12
8
  ```sh
13
- npm install ../blast/.cache/release/tarballs/blastlauncher-{web,client-core,protocol}-*.tgz
9
+ npm install @blastlauncher/web@next
14
10
  ```
15
11
 
16
12
  Serve two directories from the package as static files, unchanged:
@@ -60,6 +56,9 @@ Hooks for hosts with their own UI (`examples/browser-demo` uses all of them):
60
56
  with code 0 (`exit`); `view` is its last view (HUD, toast). No-view commands
61
57
  report `exit` only. Without it the session returns to its root.
62
58
  - `commandTitle`: navigation title until the command sets one.
59
+ - `arguments`: manifest argument values for `command` (`LaunchProps.arguments`).
60
+ The session does not ask for missing required arguments. A command launched
61
+ with `launchCommand({ arguments })` gets the values it was given.
63
62
  - `esbuild` may be a loader (`() => Promise<esbuild>`) so the wasm loads only
64
63
  when a command needs bundling.
65
64
  - `bundlesUrl`: a prebuilt `bundles.json` (see `examples/browser-demo/prebuild.ts`).
@@ -83,4 +82,5 @@ Browser-only (decision 0015): the package never imports the Node engine, and
83
82
  `packages/web/build/assets.ts` builds `assets/` and `sandbox/` for
84
83
  `release:build`, the browser demo and the examples. After `release:build`,
85
84
  `bun run release:web:e2e` installs the tarball and runs the quickstart page
86
- against two loopback origins.
85
+ against two loopback origins; `bun run release:web:e2e --from-npm <version>`
86
+ does the same with a published version.