@intentius/behold 0.28.0 → 0.29.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 +27 -0
- package/dist/cli.js +570 -262
- package/package.json +1 -1
- package/web/app.js +141 -19
- package/web/kiosk.html +67 -0
- package/web/kiosk.js +385 -0
- package/web/operator.js +1 -0
- package/web/run-playhead.js +1 -0
- package/web/terragucci-change.js +423 -0
package/README.md
CHANGED
|
@@ -385,6 +385,33 @@ proxy's name with `--allow-host <name>` (or `BEHOLD_ALLOWED_HOSTS`); `--host`
|
|
|
385
385
|
(or `BEHOLD_HOST`) binds another address, which then needs `--allow-host` for
|
|
386
386
|
the names it is reached by.
|
|
387
387
|
|
|
388
|
+
`behold serve --public` is for a host anyone may load (#569). behold builds no
|
|
389
|
+
op runner at all, refuses every method but GET, HEAD and OPTIONS with 405,
|
|
390
|
+
refuses with 403 every read that runs a command or uses its credentials and
|
|
391
|
+
isn't part of the view (the op tools, the live overlay, plans, diffs, CI,
|
|
392
|
+
doctor, substrates and more; the docs' terragucci page lists them), and the
|
|
393
|
+
page shows no control that writes or asks for those reads. It serves one
|
|
394
|
+
project directory and can't be combined with `--env`, `--poll`, `--local` or
|
|
395
|
+
`--auto-sync`. It still binds 127.0.0.1, so put a
|
|
396
|
+
proxy in front that forwards the public name in `Host`, and pass that name:
|
|
397
|
+
|
|
398
|
+
```sh
|
|
399
|
+
npx @intentius/behold serve . --public --allow-host demo.example.com \
|
|
400
|
+
--terragucci s3://acme-terragucci-reports
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
With `--terragucci`, the poll defaults to 10 seconds under `--public`
|
|
404
|
+
(`--terragucci-poll` still sets it). The credentials behold runs with should
|
|
405
|
+
be read-only too: `GetObject` on the reports bucket, and a read-only key for
|
|
406
|
+
the repo's `origin`, which `chant/lifecycle` is fetched from.
|
|
407
|
+
|
|
408
|
+
`/kiosk` follows terragucci's looping demo (#569): it reads the `demo.json`
|
|
409
|
+
the demo's driver writes beside `index.json`, and narrates the scenario, the
|
|
410
|
+
step and the driver's next action with a countdown, next to the newest run of
|
|
411
|
+
that step (the pull request's plan, then the merge's waves) and back to the
|
|
412
|
+
start when the loop resets. It needs `--terragucci`, asks only GETs, and has
|
|
413
|
+
no control. The docs' terragucci page says what it shows.
|
|
414
|
+
|
|
388
415
|
In a declared workspace, the gates waiting on a person come from
|
|
389
416
|
`chant workspace status <env> --json`, keyed `member/op/gate` the way arugula's
|
|
390
417
|
workspace block keys them, so the two show the same set. Standalone, a gate's
|