@bongos/core 1.20.60 → 1.20.62

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 (45) hide show
  1. package/.bongos-core.json +95 -40
  2. package/clients/bongos-client/README.md +1 -1
  3. package/clients/bongos-client/bongos-client.global.js +2 -0
  4. package/clients/bongos-client/index.cjs +2 -0
  5. package/clients/bongos-client/index.d.ts +6 -2
  6. package/clients/bongos-client/index.mjs +2 -0
  7. package/docs/adr/0357-the-update-rule-set-on-deploy-is-the-one-the-sweep-follows.md +2 -0
  8. package/docs/api/openapi.json +112 -3
  9. package/docs/api-reference.md +5 -4
  10. package/docs/copy-inventory.md +377 -328
  11. package/docs/copy-registry.json +894 -421
  12. package/docs/module-api-changelog.md +4 -0
  13. package/docs/page-inventory.json +4 -1
  14. package/docs/page-readings.json +546 -483
  15. package/docs/recipes/upgrading-the-core.md +30 -1
  16. package/modules/autonomy/db.js +13 -6
  17. package/modules/autonomy/migrations/autonomy_004_runner_identity.sql +30 -0
  18. package/modules/autonomy/routes/autonomy.js +16 -0
  19. package/modules/autonomy/runner-health.js +66 -5
  20. package/modules/hall-ui/public/gate.js +24 -8
  21. package/modules/provisioning/demo.js +176 -0
  22. package/modules/provisioning/migrations/provisioning_035_demo.sql +26 -0
  23. package/modules/provisioning/module.json +5 -3
  24. package/modules/provisioning/pollers/demo-archive.js +61 -0
  25. package/modules/provisioning/provisioning.js +2 -2
  26. package/modules/provisioning/routes/demo.js +54 -0
  27. package/modules/provisioning/routes/provisioning.js +7 -4
  28. package/modules/public-landing/public/projects-demo.states.json +53 -0
  29. package/modules/public-landing/public/projects.html +300 -23
  30. package/modules/public-landing/public/projects.probes.json +3 -3
  31. package/modules/public-landing/public/projects.states.json +2 -1
  32. package/modules/ui-design/kit/fixtures/provisioning-instances-demo.json +114 -0
  33. package/package-lock.json +2 -2
  34. package/package.json +1 -1
  35. package/release-notes.json +20 -0
  36. package/scripts/gds/autobongos-run.js +43 -2
  37. package/scripts/gds/update-channel.js +11 -2
  38. package/scripts/gds/update-sweep.js +717 -0
  39. package/src/module-api.js +1 -1
  40. package/tests/autonomy_runner_identity.mjs +215 -0
  41. package/tests/update_channel_db.mjs +13 -6
  42. package/tests/update_subscription_engine.mjs +5 -5
  43. package/tests/update_sweep_home.mjs +100 -0
  44. package/tests/wizard_demo.mjs +264 -0
  45. package/tests/wizard_front_door.mjs +16 -20
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Bongos API reference
4
4
 
5
- > **Generated from the live route files** — the route file is authoritative. 483 endpoints across 87 route files.
5
+ > **Generated from the live route files** — the route file is authoritative. 484 endpoints across 88 route files.
6
6
  > Machine-readable spec: [`docs/api/openapi.json`](api/openapi.json) (OpenAPI 3.1). Rendered docs site: **`/docs`** (e.g. `cloudbongos.com/docs`).
7
7
 
8
8
  Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust-boundary-server-enforced-permissions.md)): `public` < `any-builder` < `metic+archon` < `archon`.
@@ -90,7 +90,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
90
90
  | POST | `/api/bongos/autonomy/fence/goals` | `archon` | `goal_id`, `note` | Add a goal to the allowlist. |
91
91
  | DELETE | `/api/bongos/autonomy/fence/goals/:goalId` | `archon` | — | Revoke one. |
92
92
  | POST | `/api/bongos/autonomy/fence/priority` | `archon` | `goal_id` | The priority goal (task 1004453): which allowlisted goal the runner works first. |
93
- | POST | `/api/bongos/autonomy/heartbeat` | `any-builder` | `host`, `pid`, `started_at`, `mode`, `consecutive_failures`, `last_event`, `working_task_id`, `working_goal_id` | The runner's check-in, once per loop. |
93
+ | POST | `/api/bongos/autonomy/heartbeat` | `any-builder` | `host`, `pid`, `started_at`, `mode`, `consecutive_failures`, `last_event`, `working_task_id`, `working_goal_id`, `head`, `disk_head`, `main_head`, `claude_account` | The runner's check-in, once per loop. |
94
94
  | GET | `/api/bongos/autonomy/precheck` | `metic+archon` | — | |
95
95
  | GET | `/api/bongos/autonomy/runners` | `any-builder` | — | What the hall renders: the CALLER'S OWN runners, with the pure verdict attached so the page and any future alert cannot disagree about wh… |
96
96
  | GET | `/api/bongos/autonomy/runs` | `metic+archon` | — | The gate's past decisions — did a routine fire, and what did it decide, and why (task 1002669). |
@@ -587,7 +587,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
587
587
  | GET | `/api/bongos/projects/featured` | `public` | — | the public map of projects; no auth by design. |
588
588
  | POST | `/api/bongos/projects/invite` | `metic+archon` | `client_id`, `github_login` | own-or-metic in effect: where to invite a builder into a project, asked by a `project.curate` holder OR the project's OWN OWNER (task 100… |
589
589
 
590
- ## `provisioning` (40)
590
+ ## `provisioning` (41)
591
591
 
592
592
  | Method | Path | Rank | Body | Description |
593
593
  |---|---|---|---|---|
@@ -598,10 +598,11 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
598
598
  | GET | `/api/bongos/provisioning/github-app/status` | `public` | — | GET /provisioning/github-app/status?state=<> — the PUBLIC progress read the onboarding callback page polls (task 2096) to know when setup… |
599
599
  | GET | `/api/bongos/provisioning/health` | `public` | — | GET /provisioning/health — liveness + the core version this module mounted against. |
600
600
  | GET | `/api/bongos/provisioning/instances` | `any-builder` | — | GET /provisioning/instances — the caller's own instances + each open intent. |
601
- | POST | `/api/bongos/provisioning/instances` | `any-builder` | `slug`, `target_ref`, `hosting_shape`, `domain`, `no_address`, `tier`, `onboard_mode`, `type`, `description`, `detail`, `modules`, `terms_acknowledged` | POST /provisioning/instances — request a new instance. |
601
+ | POST | `/api/bongos/provisioning/instances` | `any-builder` | `slug`, `target_ref`, `hosting_shape`, `domain`, `no_address`, `tier`, `onboard_mode`, `type`, `description`, `detail`, `modules`, `terms_acknowledged`, `demo` | POST /provisioning/instances — request a new instance. |
602
602
  | GET | `/api/bongos/provisioning/instances/:id` | `any-builder` | — | GET /provisioning/instances/:id — read one instance (the manage page's read). |
603
603
  | GET | `/api/bongos/provisioning/instances/:id/core-upgrade` | `archon` | — | GET the same path — step ONE of the two-step (ADR 0293 D4): what a move would do. |
604
604
  | POST | `/api/bongos/provisioning/instances/:id/core-upgrade` | `archon` | — | POST /provisioning/instances/:id/core-upgrade — move the core pin. |
605
+ | POST | `/api/bongos/provisioning/instances/:id/demo` | `any-builder` | `outcome` | |
605
606
  | PATCH | `/api/bongos/provisioning/instances/:id/detail` | `any-builder` | `description`, `detail`, `modules`, `type` | ── The optional project detail (task 1002334, goal 1000046) ────────────── PATCH /provisioning/instances/:id/detail — answer (or re-answe… |
606
607
  | POST | `/api/bongos/provisioning/instances/:id/disconnect` | `any-builder` | `confirm_slug` | POST /provisioning/instances/:id/disconnect — rank: any authenticated builder (own resource); an archon may disconnect any project. |
607
608
  | POST | `/api/bongos/provisioning/instances/:id/domain` | `any-builder` | `domain` | POST /provisioning/instances/:id/domain — give the caller's OWN instance its address (task 1002692, gap 5: no path existed to add a domai… |