@intentius/behold 0.30.1 → 0.30.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.
Files changed (56) hide show
  1. package/AGENTS.md +31 -1
  2. package/README.md +11 -6
  3. package/dist/cli.js +1516 -840
  4. package/example-choudoufu-estate/chant.workspace.json +1 -1
  5. package/example-terraform-estate/README.md +1 -1
  6. package/example-terraform-estate/chant.workspace.json +1 -1
  7. package/example-terralith/README.md +1 -1
  8. package/example-three-cloud/package-lock.json +19 -19
  9. package/example-three-cloud/package.json +4 -4
  10. package/package.json +5 -5
  11. package/web/app.js +263 -16
  12. package/web/embed.js +2 -2
  13. package/web/event-help-modal.js +18 -12
  14. package/web/event-help-modal.test.js +28 -1
  15. package/web/index.html +18 -0
  16. package/web/kiosk-ask-layout.js +85 -0
  17. package/web/kiosk-ask-layout.test.js +83 -0
  18. package/web/kiosk-ask-tips.js +467 -0
  19. package/web/kiosk-ask-tips.test.js +359 -0
  20. package/web/kiosk-ask.js +774 -0
  21. package/web/kiosk-ask.test.js +593 -0
  22. package/web/kiosk-banner.js +108 -0
  23. package/web/kiosk-banner.test.js +72 -0
  24. package/web/kiosk-center-cards.test.js +110 -0
  25. package/web/kiosk-estate-scene.js +203 -0
  26. package/web/kiosk-estate-scene.test.js +21 -0
  27. package/web/kiosk-event-help.js +4 -1
  28. package/web/kiosk-graph-pane.js +63 -0
  29. package/web/kiosk-graph-pane.test.js +105 -0
  30. package/web/kiosk-light-frame.js +196 -0
  31. package/web/kiosk-light.js +509 -0
  32. package/web/kiosk-light.test.js +297 -0
  33. package/web/kiosk-metrics.js +7 -4
  34. package/web/kiosk-modal-sticky.test.js +2 -1
  35. package/web/kiosk-refit.test.js +81 -0
  36. package/web/kiosk-reset.js +49 -0
  37. package/web/kiosk-reset.test.js +11 -0
  38. package/web/kiosk-shot.js +40 -2
  39. package/web/kiosk-shot.test.js +23 -1
  40. package/web/kiosk-vendor.js +85 -7
  41. package/web/kiosk-vendor.test.js +9 -9
  42. package/web/kiosk-watch.js +8 -4
  43. package/web/kiosk.html +107 -1
  44. package/web/kiosk.js +149 -23
  45. package/web/kiosk.test.js +25 -1
  46. package/web/small-stage.test.js +4 -0
  47. package/web/terragucci-change.js +30 -13
  48. package/web/tool-mark.js +4 -4
  49. package/web/tool-mark.test.js +1 -1
  50. package/web/vendors/atmos.svg +1 -0
  51. package/web/vendors/chant.svg +1 -0
  52. package/web/vendors/choudoufu.svg +1 -0
  53. package/web/vendors/terragrunt.svg +9 -0
  54. package/web/vendors/terragucci.svg +1 -0
  55. package/web/vendors/choudoufu-128.png +0 -0
  56. package/web/vendors/choudoufu-64.png +0 -0
package/AGENTS.md CHANGED
@@ -369,6 +369,34 @@ checkout declares no Terraform root (`controlRepo` in
369
369
  structural check otherwise. The page (`web/terragucci-estate.js`) draws it
370
370
  in a layer over the graph area.
371
371
 
372
+
373
+ ### The kiosk's prompt pane (#936)
374
+
375
+ A step of terragucci's `demo.json` may carry an `ask` (or `asks`, a list of
376
+ them played in order), and the file may carry `opening` and `closing` strings
377
+ (src/terragucci-demo.ts parses them; a field of the wrong type is null, and an
378
+ ask with none of a prompt, an action and a reply is dropped; a reply alone prints with no line of the person's, as an applied step's does). While a step has an ask,
379
+ the pane (`#k-ask`, web/kiosk-ask.js) takes the place of `#bar` and
380
+ `#k-caption` in Watch: a big monospace block at the foot of the screen. A
381
+ `prompt` is typed after `>` at 40 ms a character; an `action` shows at once
382
+ after a check mark; the `reply` prints after it, with `{roots}`, `{creates}`,
383
+ `{updates}`, `{deletes}` and `{error}` filled from the step's report (an
384
+ unknown token, or one without a value, is empty). The last three entries stay
385
+ above, faded. `opening` shows once at the scenario's first step
386
+ (`pull-request` or `planned`), `closing` at `applied`. While a job runs
387
+ (`pull-request`, `approved`, `merged`, `applying`, `resumed`) a status line
388
+ gives what is happening, the time since `started_at`, and `next`. With
389
+ `prefers-reduced-motion` everything shows at once. The pane's height is fixed
390
+ and replaces the caption in `captionRoomPx`, so it never covers the graph. A
391
+ step without an ask looks as it always did.
392
+
393
+ The pane tells the page through window events, each with detail
394
+ `{ ask, step, scenario }`: `behold:ask-start` before a beat is typed,
395
+ `behold:ask-done` when its reply has printed, and `behold:ask-clear` on a new
396
+ step with no ask. `{dependents}` is left to the lighting: it sets
397
+ `window.beholdAskTokens = { dependents: n }` on `behold:ask-start`, and the
398
+ reply reads it when it prints.
399
+
372
400
  ## Releases per environment, from the release ledger (#525)
373
401
 
374
402
  `GET /api/lifecycle/releases[?fresh=1]` (src/lifecycle-releases.ts) reads
@@ -990,7 +1018,9 @@ folder's scratch project. Each capability has its `name`, `meaning`,
990
1018
  it leaves `notEvaluated`, its `rule`, and per lexicon whether it is
991
1019
  supplied. A chant below 0.124.46 answers 422 `code: "chant-too-old"`
992
1020
  (`CAPABILITIES_CHANT_FLOOR`). behold mcp's `capabilities` tool returns the
993
- same text.
1021
+ same text. behold keeps the document per checkout and commit, so a second
1022
+ read of an unmoved checkout runs no chant; a `--public` serve refuses the
1023
+ route with 403 (#978).
994
1024
 
995
1025
  ```
996
1026
  GET /api/capabilities
package/README.md CHANGED
@@ -446,12 +446,17 @@ log, which the loop driver copies into the bucket under `runs/`. It needs
446
446
  `--terragucci`, asks only GETs, and has no control.
447
447
  The docs' terragucci page says what it shows.
448
448
 
449
- Each tool in the loop has a page of its own at `/<tool>`: `/terraform`,
450
- `/terragrunt`, `/cdk-terrain` and `/choudoufu` (behold#571). It shows that
451
- tool's scenario and runs alone, with a footer saying who makes the tool.
452
- While another tool's scenario runs, the page replays the tool's latest cycle at
453
- the pace it ran (`cycles/<tool>/latest.json` beside `demo.json`), and says so in
454
- a banner. Any other short path answers 404 with a link to `/kiosk`.
449
+ The demo is served at `/`: the live demo's page, else the first listed one.
450
+ `/kiosk` redirects to `/`. The listed demos are the multi-state plan-and-apply
451
+ ones, each at a path of its own (`/choudoufu-compose`, `/terragrunt-choudoufu`,
452
+ `/atmos-choudoufu`, `/chant-compose`); one is listed once its tool has a published cycle
453
+ (`cycles/<tool>/latest.json` beside `demo.json`) or is live, and
454
+ `/api/terragucci/demos` says which. A page shows the demo's live run, or replays
455
+ its latest cycle, under a banner with the example's name, its products, a link to
456
+ its code in INTENTIUS/terragucci, and a switcher when more than one is listed.
457
+ The older tools' URLs (`/terraform`, `/terragrunt`, `/cdk-terrain`, `/choudoufu`,
458
+ `/chant`, and the fan-out pages) redirect to `/`. Any other short path answers
459
+ 404 with a link to the front page.
455
460
 
456
461
  In a declared workspace, the gates waiting on a person come from
457
462
  `chant workspace status <env> --json`, keyed `member/op/gate` the way arugula's