@bongos/core 1.21.5 → 1.21.7

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 (82) hide show
  1. package/.bongos-core.json +152 -72
  2. package/clients/bongos-client/index.d.ts +1 -1
  3. package/docs/adr/0361-merges-publish-as-candidates-release-decides-what-others-are-offered.md +1 -0
  4. package/docs/api/openapi.json +2 -1
  5. package/docs/api-reference.md +1 -1
  6. package/docs/copy-inventory.md +156 -144
  7. package/docs/copy-registry.json +286 -158
  8. package/docs/module-api-changelog.md +4 -0
  9. package/docs/onboarding/diagrams/03-drachmae-karma.mmd +1 -1
  10. package/docs/onboarding/diagrams/assertions.json +1 -1
  11. package/docs/page-inventory.json +35 -6
  12. package/docs/page-readings.json +1056 -1013
  13. package/modules/autonomy/config-idle.js +192 -0
  14. package/modules/autonomy/routes/autonomy.js +22 -0
  15. package/modules/autonomy/runner-health.js +22 -1
  16. package/modules/hall-ui/public/city-draw.js +438 -0
  17. package/modules/hall-ui/public/city.css +110 -0
  18. package/modules/hall-ui/public/city.html +71 -0
  19. package/modules/hall-ui/public/city.js +177 -0
  20. package/modules/hall-ui/public/city.states.json +30 -0
  21. package/modules/hall-ui/public/gate.js +11 -4
  22. package/modules/hall-ui/public/profile.css +4 -0
  23. package/modules/hall-ui/public/profile.js +25 -1
  24. package/modules/hall-ui/public/settings-autobongos.js +19 -1
  25. package/modules/hall-ui/public/settings.css +26 -0
  26. package/modules/hall-ui/public/settings.html +8 -0
  27. package/modules/hall-ui/public/settings.js +43 -3
  28. package/modules/platform-identity/craft-rollup.js +72 -0
  29. package/modules/platform-identity/migrations/platform_identity_029_activity_crafts.sql +23 -0
  30. package/modules/platform-identity/platform-identity.js +12 -6
  31. package/modules/platform-identity/routes/sso.js +4 -0
  32. package/modules/platform-identity/tests/platform-identity.mjs +1 -1
  33. package/modules/provisioning/core-upgrade.js +34 -7
  34. package/modules/provisioning/module.json +2 -1
  35. package/modules/provisioning/seams.js +2 -0
  36. package/modules/public-landing/public/projects-hall-live.states.json +216 -0
  37. package/modules/public-landing/public/projects.html +43 -13
  38. package/modules/public-landing/public/projects.states.json +2 -1
  39. package/modules/ui-design/kit/fixtures/provisioning-instances-hall-live.json +106 -0
  40. package/package-lock.json +2 -2
  41. package/package.json +1 -1
  42. package/release-notes.json +64 -0
  43. package/scripts/gds/autobongos-grade-cap.js +187 -0
  44. package/scripts/gds/autobongos-loop.js +4 -0
  45. package/scripts/gds/autobongos-run.js +154 -13
  46. package/scripts/gds/autobongos-verify.js +211 -14
  47. package/scripts/gds/provision-core-upgrade.js +14 -2
  48. package/scripts/gds/provision-repo.js +77 -13
  49. package/scripts/gds/ship-flow.js +5 -0
  50. package/scripts/gds/ship-preflight-steps.js +2 -1
  51. package/scripts/gds/ship.js +10 -0
  52. package/scripts/gds/update-sweep.js +24 -8
  53. package/scripts/gds/upgrade-outcome.js +1 -0
  54. package/src/bongos/auth-admission.js +95 -13
  55. package/src/bongos/db-kernel.js +1 -1
  56. package/src/bongos/routes/core-update.js +27 -2
  57. package/src/bongos/serve-internal.js +14 -0
  58. package/src/bongos/software-update.js +3 -2
  59. package/src/module-api.js +1 -1
  60. package/tests/activity_rollup_order_db.mjs +3 -1
  61. package/tests/activity_snapshots_db.mjs +2 -0
  62. package/tests/autobongos_grade_cap.mjs +125 -0
  63. package/tests/autobongos_loop.mjs +230 -1
  64. package/tests/autobongos_verify.mjs +239 -3
  65. package/tests/autonomy_config_idle.mjs +272 -0
  66. package/tests/core_update_banner.mjs +29 -0
  67. package/tests/core_upgrade_door.mjs +31 -1
  68. package/tests/core_upgrade_runner.mjs +20 -0
  69. package/tests/hall_audit.mjs +10 -1
  70. package/tests/hall_city.mjs +369 -0
  71. package/tests/hall_page_gate_map.mjs +5 -0
  72. package/tests/hub_craft_rollup.mjs +350 -0
  73. package/tests/profile_rollup_consent.mjs +2 -0
  74. package/tests/profile_route.mjs +16 -2
  75. package/tests/project_invite_ui.mjs +65 -7
  76. package/tests/projects_hub_dns_ready.mjs +7 -1
  77. package/tests/provision.mjs +78 -0
  78. package/tests/settings_main_role.mjs +190 -0
  79. package/tests/software_update.mjs +56 -1
  80. package/tests/ui_design_kit.mjs +1 -1
  81. package/tests/update_subscription_engine.mjs +55 -3
  82. package/tests/wizard_physics_more.mjs +19 -0
@@ -460,7 +460,7 @@ export interface PostSpecialitiesIdOfferResponse { speciality: unknown }
460
460
  export interface PostSpecialitiesIdUnofferResponse { speciality: unknown }
461
461
  export interface PostSpecialitiesRequest { name: string; discipline: string; summary?: string; contract_md?: string; visibility?: string; sellable?: boolean; skills?: string[] }
462
462
  export interface PostSpecialitiesResponse { speciality: unknown }
463
- export interface PostSsoActivityRollupRequest { client_id: string; client_secret: string; github_id: StringifiableId; credits?: number; tasks_shipped?: number; karma?: number; rank?: string; disciplines?: unknown; recent_ships?: unknown }
463
+ export interface PostSsoActivityRollupRequest { client_id: string; client_secret: string; github_id: StringifiableId; credits?: number; tasks_shipped?: number; karma?: number; rank?: string; disciplines?: unknown; recent_ships?: unknown; crafts?: unknown }
464
464
  export interface PostSsoActivityRollupResponse { ok: boolean }
465
465
  export interface PostSsoApplicantProfileRequest { client_id: string; client_secret: string; github_id: StringifiableId }
466
466
  export interface PostSsoApplicantProfileResponse { profile: unknown }
@@ -40,6 +40,7 @@ The deploy page's **Release** section lists the versions this hall runs that are
40
40
  - The update sweep (ADR 0360) already follows `released` by default.
41
41
  - The "update available" banner (`src/bongos/core-update.js`) offers versions at or below `latest`, read from the same packument. With no readable label it has no answer.
42
42
  - The platform's upgrade runner for hosted projects (`scripts/gds/provision-core-upgrade.js`) offers a project the versions its follow admits. The follow comes from its hosting shape: the `control-plane` row is the platform hall and takes candidates; every other shape takes releases (`followForShape`). It is derived, not a column, because there is exactly one platform hall. A column someone could set on a tenant would be one more way to hand a project an unreleased version.
43
+ - **A new project is born on the release** ([task 1004299](https://cloudbongos.com/builders#/task/1004299)). The wizard vendors the core this hall runs (ADR 0292), which is a candidate once D1 is on. `projectCoreDecision` (`scripts/gds/provision-repo.js`) gives the project the `latest` version instead whenever the hall runs ahead of it, packed from the registry; the core-pin refresh that runs in the same provisioning pass uses the same target, so it cannot bump the new pin straight back. Level, or no readable label, keeps the byte-exact running core.
43
44
 
44
45
  ## Arming (owner steps, in this order)
45
46
 
@@ -30413,7 +30413,8 @@
30413
30413
  "maxLength": 32
30414
30414
  },
30415
30415
  "disciplines": {},
30416
- "recent_ships": {}
30416
+ "recent_ships": {},
30417
+ "crafts": {}
30417
30418
  },
30418
30419
  "required": [
30419
30420
  "client_id",
@@ -767,7 +767,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
767
767
 
768
768
  | Method | Path | Rank | Body | Description |
769
769
  |---|---|---|---|---|
770
- | POST | `/api/bongos/sso/activity/rollup` | `public` | `client_id`, `client_secret`, `github_id`, `credits`, `tasks_shipped`, `karma`, `rank`, `disciplines`, `recent_ships` | POST /sso/activity/rollup — a federated instance reports a builder's activity snapshot (ADR 0141 §4). |
770
+ | POST | `/api/bongos/sso/activity/rollup` | `public` | `client_id`, `client_secret`, `github_id`, `credits`, `tasks_shipped`, `karma`, `rank`, `disciplines`, `recent_ships`, `crafts` | POST /sso/activity/rollup — a federated instance reports a builder's activity snapshot (ADR 0141 §4). |
771
771
  | POST | `/api/bongos/sso/applicant-profile` | `public` | `client_id`, `client_secret`, `github_id` | POST /sso/applicant-profile — a federated instance resolves ONE applicant's profile view for its own reviewer queue, LIVE at render (priv… |
772
772
  | GET | `/api/bongos/sso/authorize` | `public` | — | GET /sso/authorize?client_id=&redirect_uri=&state= — the browser authorize leg. |
773
773
  | POST | `/api/bongos/sso/device/poll` | `public` | `device_code` | POST /sso/device/poll — poll the hub device flow. |