- src/host.js: ESM Cordis plugin; serve snapshots over the generic
Connection RPC channel /dsh-context (ctx.connection.rpc) instead of the
dynamic-runner harness.handle seat; lazily resolve sessions/sessionQuery.
- src/client.js: browser half in web-boot bundle shape (require('react'),
inject connection/slots/locale, plugin-owned style tag, setInterval poll).
- package.json: dsh.bundle (cordis.patch.yml layer) + dsh.client (web UI)
manifests, ./client export.
- cordis.patch.yml: inserts the dsh-context loader row.
- scripts/build.mjs: zero-dependency build of lib/index.js + lib/client.js
with smoke checks; scripts/test-host.mjs + scripts/test-client.mjs:
functional tests for both halves.
- scripts/publish.sh: npm publish driven by NPM_TOKEN, auto version bump.
11 lines
481 B
YAML
11 lines
481 B
YAML
# dsh-context — bundle patch layer.
|
|
#
|
|
# Installing this package into a profile (`dsh plugin --profile <name> add dsh-context`)
|
|
# appends it to `dsh.profile.bundles`; this patch is then applied as that
|
|
# bundle's layer. The row below loads the package's main entry as the host
|
|
# half (a plain Cordis plugin) and, because the package declares `dsh.client`,
|
|
# the web app also loads its `./client` bundle as the browser half.
|
|
- insert:
|
|
- id: dsh-context
|
|
name: dsh-context
|