@bongos/core 1.21.36 → 1.21.38

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 (68) hide show
  1. package/.bongos-core.json +90 -70
  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 +3 -0
  6. package/clients/bongos-client/index.mjs +2 -0
  7. package/docs/api/openapi.json +77 -3
  8. package/docs/api-reference.md +3 -2
  9. package/docs/copy-inventory.md +8 -8
  10. package/docs/copy-registry.json +8 -8
  11. package/docs/module-api-changelog.md +4 -0
  12. package/docs/page-readings.json +234 -234
  13. package/modules/government/board-withdraw.js +38 -0
  14. package/modules/government/board.js +1 -0
  15. package/modules/government/db.js +20 -0
  16. package/modules/government/migrations/government_026_board_outcome_withdrawn.sql +29 -0
  17. package/modules/government/routes/government.js +26 -0
  18. package/modules/hall-ui/public/atlas.html +3 -3
  19. package/modules/hall-ui/public/blockers.html +3 -3
  20. package/modules/hall-ui/public/board-room.html +3 -3
  21. package/modules/hall-ui/public/city.html +3 -3
  22. package/modules/hall-ui/public/collab.html +3 -3
  23. package/modules/hall-ui/public/commands.html +3 -3
  24. package/modules/hall-ui/public/copy-desk.html +3 -3
  25. package/modules/hall-ui/public/craft-mode.js +44 -6
  26. package/modules/hall-ui/public/deploy.html +3 -3
  27. package/modules/hall-ui/public/diagrams.html +3 -3
  28. package/modules/hall-ui/public/drachmae.html +3 -3
  29. package/modules/hall-ui/public/fleet.html +3 -3
  30. package/modules/hall-ui/public/gate.html +3 -3
  31. package/modules/hall-ui/public/goal-map.html +3 -3
  32. package/modules/hall-ui/public/goals.html +3 -3
  33. package/modules/hall-ui/public/government.html +3 -3
  34. package/modules/hall-ui/public/idea.html +3 -3
  35. package/modules/hall-ui/public/ideas.html +3 -3
  36. package/modules/hall-ui/public/index.html +3 -3
  37. package/modules/hall-ui/public/modules.html +3 -3
  38. package/modules/hall-ui/public/primer.html +3 -3
  39. package/modules/hall-ui/public/profile.html +3 -3
  40. package/modules/hall-ui/public/project-settings.html +3 -3
  41. package/modules/hall-ui/public/ranks.html +3 -3
  42. package/modules/hall-ui/public/roadmap.html +3 -3
  43. package/modules/hall-ui/public/roster.html +3 -3
  44. package/modules/hall-ui/public/sessions.html +3 -3
  45. package/modules/hall-ui/public/settings.html +3 -3
  46. package/modules/hall-ui/public/street-card.js +16 -0
  47. package/modules/hall-ui/public/street-desk.js +2 -0
  48. package/modules/hall-ui/public/street.html +3 -3
  49. package/modules/hall-ui/public/street.js +1 -1
  50. package/modules/hall-ui/public/studio.html +3 -3
  51. package/modules/hall-ui/public/style.css +121 -2
  52. package/modules/hall-ui/public/task.html +3 -3
  53. package/modules/hall-ui/public/thinking.html +3 -3
  54. package/modules/hall-ui/public/tweak-editor.html +3 -3
  55. package/modules/hall-ui/public/watch.html +3 -3
  56. package/modules/hall-ui/public/work.html +3 -3
  57. package/modules/hall-ui/records/craft-mode.md +8 -0
  58. package/package-lock.json +2 -2
  59. package/package.json +1 -1
  60. package/release-notes.json +12 -0
  61. package/src/bongos/route-rank-check.js +4 -0
  62. package/src/module-api.js +1 -1
  63. package/tests/craft_mode_looks.mjs +170 -0
  64. package/tests/craft_mode_nav.mjs +7 -5
  65. package/tests/government_board_withdraw.mjs +144 -0
  66. package/tests/government_seed.mjs +1 -0
  67. package/tests/hall_street_desk.mjs +37 -0
  68. package/tests/hall_tweak_editor.mjs +1 -1
@@ -8846,6 +8846,61 @@
8846
8846
  ]
8847
8847
  }
8848
8848
  },
8849
+ "/government/board/items/{itemId}/withdraw": {
8850
+ "post": {
8851
+ "operationId": "post_government_board_items_itemId_withdraw",
8852
+ "tags": [
8853
+ "government"
8854
+ ],
8855
+ "summary": "POST /government/board/items/:itemId/withdraw",
8856
+ "description": "board.item.open — withdraw your own open sitting (task 1004564). The same atom as putting one up: taking it back is the proposer's half of the same act. The atom is only the coarse gate; the walls are in board-withdraw.js and repeated in its write — only the builder who opened the sitting, only while it is open and inside its clock, and only before anyone has voted. It closes with outcome 'withdrawn' (government_026).\n\n**Rank:** `metic+archon` — Metic or Archon rank (review/triage powers).\n\n**Permissions:** `board.item.open` (all required).",
8857
+ "x-rank": "metic+archon",
8858
+ "x-source": "modules/government/routes/government.js",
8859
+ "x-permissions": [
8860
+ "board.item.open"
8861
+ ],
8862
+ "parameters": [
8863
+ {
8864
+ "name": "itemId",
8865
+ "in": "path",
8866
+ "required": true,
8867
+ "schema": {
8868
+ "type": "string"
8869
+ },
8870
+ "description": "Path parameter `itemId`."
8871
+ }
8872
+ ],
8873
+ "responses": {
8874
+ "200": {
8875
+ "description": "Success.",
8876
+ "content": {
8877
+ "application/json": {
8878
+ "schema": {
8879
+ "$ref": "#/components/schemas/PostGovernmentBoardItemsItemIdWithdrawResponse"
8880
+ }
8881
+ }
8882
+ }
8883
+ },
8884
+ "400": {
8885
+ "$ref": "#/components/responses/BadRequest"
8886
+ },
8887
+ "401": {
8888
+ "$ref": "#/components/responses/Unauthorized"
8889
+ },
8890
+ "403": {
8891
+ "$ref": "#/components/responses/Forbidden"
8892
+ },
8893
+ "404": {
8894
+ "$ref": "#/components/responses/NotFound"
8895
+ }
8896
+ },
8897
+ "security": [
8898
+ {
8899
+ "builderSession": []
8900
+ }
8901
+ ]
8902
+ }
8903
+ },
8849
8904
  "/government/board/matters": {
8850
8905
  "post": {
8851
8906
  "operationId": "post_government_board_matters",
@@ -28701,6 +28756,25 @@
28701
28756
  ],
28702
28757
  "additionalProperties": false
28703
28758
  },
28759
+ "PostGovernmentBoardItemsItemIdWithdrawResponse": {
28760
+ "type": "object",
28761
+ "properties": {
28762
+ "ok": {
28763
+ "type": "boolean"
28764
+ },
28765
+ "item_closed": {
28766
+ "type": "boolean"
28767
+ },
28768
+ "outcome": {},
28769
+ "item": {}
28770
+ },
28771
+ "required": [
28772
+ "ok",
28773
+ "item_closed",
28774
+ "outcome",
28775
+ "item"
28776
+ ]
28777
+ },
28704
28778
  "PostGovernmentBoardItemsRequest": {
28705
28779
  "type": "object",
28706
28780
  "properties": {
@@ -32160,9 +32234,9 @@
32160
32234
  "description": "A required dependency/feature is not configured or is temporarily down."
32161
32235
  }
32162
32236
  },
32163
- "x-endpoint-count": 502,
32164
- "x-schema-count": 536,
32237
+ "x-endpoint-count": 503,
32238
+ "x-schema-count": 537,
32165
32239
  "x-undocumented-bodies": 12,
32166
- "x-response-schemas": 355,
32240
+ "x-response-schemas": 356,
32167
32241
  "x-generated-by": "scripts/gds/gen-api-docs.js"
32168
32242
  }
@@ -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. 502 endpoints across 92 route files.
5
+ > **Generated from the live route files** — the route file is authoritative. 503 endpoints across 92 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`.
@@ -340,7 +340,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
340
340
  | GET | `/api/bongos/goals/rollups` | `any-builder` | — | GET /goals/rollups?version= — one small row per goal: readiness counters, the last-activity timestamp, the craft set, and the next claima… |
341
341
  | GET | `/api/bongos/goals/suggestions` | `any-builder` | — | GET /goals/suggestions — "which goal should this draft live in?", answered before anything is created (task 1003062 / R07). |
342
342
 
343
- ## `government` (19)
343
+ ## `government` (20)
344
344
 
345
345
  | Method | Path | Rank | Body | Description |
346
346
  |---|---|---|---|---|
@@ -353,6 +353,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
353
353
  | GET | `/api/bongos/government/board/items` | `any-builder` | — | board.vote.cast — the Board Room view: open items with their clock, the OPEN BALLOT, the closed history (R16 of goal 1000069). |
354
354
  | POST | `/api/bongos/government/board/items` | `metic+archon` | `subject_type`, `proposal`, `rationale_md`, `acknowledge_self_removal` | board.item.open — put an AMENDMENT to the board (R14 of goal 1000069, ADR 0175 §7). |
355
355
  | POST | `/api/bongos/government/board/items/:itemId/votes` | `any-builder` | `direction`, `reason_md`, `section_key` | board.vote.cast — cast a vote on an open board item (R08 of goal 1000069, ADR 0175). |
356
+ | POST | `/api/bongos/government/board/items/:itemId/withdraw` | `metic+archon` | — | board.item.open — withdraw your own open sitting (task 1004564). |
356
357
  | POST | `/api/bongos/government/board/matters` | `metic+archon` | `area`, `title`, `detail_md`, `action` | board.item.open — put a MATTER to a building's sitting (task 1004529): the board's new subjects, one per building other than the charter. |
357
358
  | GET | `/api/bongos/government/constitution` | `any-builder` | — | board.vote.cast — the Constitution view (R18 of goal 1000069): the live board block plus the full amendment history, passed and returned … |
358
359
  | GET | `/api/bongos/government/docket` | `any-builder` | — | board.vote.cast — the governor's DOCKET (task 1004523, goal 1000125): ONE read of every matter waiting on, or moving for, a governor, whi… |
@@ -182,10 +182,10 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
182
182
  | `206acb4467a2` | certain | Archive this goal? | `modules/hall-ui/public/goals-render.js:1035` |
183
183
  | `d9dd46194f35` | certain | Argue from mechanism, not vibes. Always name the assumption a number rests on. | `modules/hall-ui/public/settings.html:270` |
184
184
  | `4d3b1bcae3eb` | certain | Artist Review Status | `modules/hall-ui/public/studio.html:125` |
185
- | `4a9385eeab33` | certain | Artists start on Artistry. | `modules/hall-ui/public/craft-mode.js:256` |
185
+ | `4a9385eeab33` | certain | Artists start on Artistry. | `modules/hall-ui/public/craft-mode.js:292` |
186
186
  | `5fcfdf8975cf` | certain | As configuration: | `modules/hall-ui/public/government.js:960` |
187
187
  | `01a0f29ff406` | certain | As first filed | `modules/hall-ui/public/idea.js:467` |
188
- | `fa86bf403775` | certain | Ask me again next session | `modules/hall-ui/public/craft-mode.js:254` |
188
+ | `fa86bf403775` | certain | Ask me again next session | `modules/hall-ui/public/craft-mode.js:290` |
189
189
  | `9b02ba5e6d23` | certain | Asked of others | `modules/hall-ui/public/collab.html:131` |
190
190
  | `688cc6dd38ee` | certain | Asked of you | `modules/hall-ui/public/collab.html:48` |
191
191
  | `688cc6dd38ee` | certain | Asked of you | `modules/hall-ui/public/collab.html:122` |
@@ -223,7 +223,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
223
223
  | `da910fee01d7` | certain | Browse goals → | `modules/hall-ui/public/goals.js:83` |
224
224
  | `1596210cea76` | certain | Build from your own machine — clone the repository, run the platform locally, and sign in from the terminal. | `modules/hall-ui/public/hall-render.js:810` |
225
225
  | `08bfcc9198ba` | certain | Builder id | `modules/hall-ui/public/government.html:109` |
226
- | `fd1903586e8e` | certain | Builders hall · this session | `modules/hall-ui/public/craft-mode.js:249` |
226
+ | `fd1903586e8e` | certain | Builders hall · this session | `modules/hall-ui/public/craft-mode.js:285` |
227
227
  | `306bc316184d` | certain | Builders you may know | `modules/hall-ui/public/profile-connections.js:158` |
228
228
  | `60b248791dc3` | certain | Builders — {{worldName}} | `modules/hall-ui/public/roster.html:6` |
229
229
  | `60b248791dc3` | certain | Builders — {{worldName}} | `modules/hall-ui/public/roster.html:6` |
@@ -269,7 +269,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
269
269
  | `6bf684ebc1c3` | certain | Choose the skills for {…} | `modules/hall-ui/public/settings-specialities.js:180` |
270
270
  | `2b504633779f` | certain | Choose which goals your own runner works while you are away. You can only choose from the goals the project al | `modules/hall-ui/public/settings.html:182` |
271
271
  | `6c88cdf417f1` | certain | Choose which sound plays for each build event — one when Claude waits for your input, another when a task ship | `modules/hall-ui/public/settings.html:387` |
272
- | `f7d8c25af75d` | certain | Choose your mode | `modules/hall-ui/public/craft-mode.js:167` |
272
+ | `f7d8c25af75d` | certain | Choose your mode | `modules/hall-ui/public/craft-mode.js:203` |
273
273
  | `b7d5648b66db` | certain | Claim it | `modules/hall-ui/public/task.js:714` |
274
274
  | `b7d5648b66db` | certain | Claim it | `modules/hall-ui/public/task.js:843` |
275
275
  | `c10806b50c61` | certain | Claim task {…} | `modules/hall-ui/public/builders.js:973` |
@@ -287,7 +287,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
287
287
  | `d12a2fb5730d` | certain | Close this flag | `modules/hall-ui/public/copy-desk.html:116` |
288
288
  | `9b9c2abeae90` | certain | Close this stage | `modules/hall-ui/public/genesis-home.js:209` |
289
289
  | `e6f1842afde1` | certain | Close transcript | `modules/hall-ui/public/sessions.html:99` |
290
- | `29e8c5e30095` | certain | Close without choosing | `modules/hall-ui/public/craft-mode.js:247` |
290
+ | `29e8c5e30095` | certain | Close without choosing | `modules/hall-ui/public/craft-mode.js:283` |
291
291
  | `3d148e19e03a` | certain | Closed. | `modules/hall-ui/public/copy-desk.js:510` |
292
292
  | `2654dc3ded21` | certain | Closing is a judgement too — say what you decided, so the next person does not re-litigate it. | `modules/hall-ui/public/copy-desk.js:495` |
293
293
  | `e5548861ad79` | certain | Coach the grader | `modules/hall-ui/public/studio.js:211` |
@@ -659,7 +659,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
659
659
  | `7c9b7a89353b` | certain | Leave goal | `modules/hall-ui/public/goals-render.js:967` |
660
660
  | `6137d2679912` | certain | Leave it off | `modules/hall-ui/public/settings-specialities.js:138` |
661
661
  | `f192ff6563f9` | certain | Leave your GitHub username and an Archon will let you in. No coding needed to start — once you're approved, si | `modules/hall-ui/public/hall-render.js:297` |
662
- | `cb6199ba00a0` | certain | Legacy mode · the hall as it was | `modules/hall-ui/public/craft-mode.js:257` |
662
+ | `cb6199ba00a0` | certain | Legacy mode · the hall as it was | `modules/hall-ui/public/craft-mode.js:293` |
663
663
  | `e14ebcf3eec5` | certain | Legislation has passed. Genesis is complete. | `modules/hall-ui/public/genesis-home.js:191` |
664
664
  | `d6a78b9e5368` | certain | Let it be for now | `modules/hall-ui/public/studio.js:233` |
665
665
  | `d6a78b9e5368` | certain | Let it be for now | `modules/hall-ui/public/studio.js:248` |
@@ -883,7 +883,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
883
883
  | `e1e10dc5e357` | certain | Permissions is the Archon administration surface. The Constitution and the Board Room are yours to read. | `modules/hall-ui/public/government.js:1030` |
884
884
  | `6bc03d97457b` | certain | Pick a priority first. | `modules/hall-ui/public/task.js:900` |
885
885
  | `fcf996d77050` | certain | Pick a rank to see what it may do. The four ladder ranks ship with the platform; a custom rank is yours to sha | `modules/hall-ui/public/government.html:76` |
886
- | `4f87d5b17b54` | certain | Pick one. You can switch any time from the top bar. | `modules/hall-ui/public/craft-mode.js:251` |
886
+ | `4f87d5b17b54` | certain | Pick one. You can switch any time from the top bar. | `modules/hall-ui/public/craft-mode.js:287` |
887
887
  | `45378ea261f6` | certain | Pick one… | `modules/hall-ui/public/settings.html:257` |
888
888
  | `25815a34d246` | certain | Plain speech | `modules/hall-ui/public/sessions.html:78` |
889
889
  | `07d7e62640d6` | certain | Post &amp; resolve | `modules/hall-ui/public/collab.js:170` |
@@ -1357,7 +1357,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
1357
1357
  | `c1fcfa9b48c2` | certain | Watch — {{worldName}} | `modules/hall-ui/public/watch.html:6` |
1358
1358
  | `0658f0358ffd` | certain | Welcome back, {…}. | `modules/hall-ui/public/hall-render.js:600` |
1359
1359
  | `04ef2f1bc4c4` | certain | Welcome, {…}. Claim and release tasks and follow work in progress — no terminal needed. | `modules/hall-ui/public/work.js:922` |
1360
- | `60853319f290` | certain | What are you doing now? | `modules/hall-ui/public/craft-mode.js:250` |
1360
+ | `60853319f290` | certain | What are you doing now? | `modules/hall-ui/public/craft-mode.js:286` |
1361
1361
  | `d6bae87dc29b` | certain | What builders will see | `modules/hall-ui/public/government.html:86` |
1362
1362
  | `f3d93a872a38` | certain | What counts | `modules/hall-ui/public/drachmae.js:107` |
1363
1363
  | `6bf049a0c943` | certain | What each project costs | `modules/hall-ui/public/fleet.html:35` |
@@ -3242,7 +3242,7 @@
3242
3242
  "surface": "builders-hall",
3243
3243
  "text": "Artists start on Artistry.",
3244
3244
  "file": "modules/hall-ui/public/craft-mode.js",
3245
- "line": 256,
3245
+ "line": 292,
3246
3246
  "origin": "js-markup",
3247
3247
  "confidence": "certain"
3248
3248
  },
@@ -3269,7 +3269,7 @@
3269
3269
  "surface": "builders-hall",
3270
3270
  "text": "Ask me again next session",
3271
3271
  "file": "modules/hall-ui/public/craft-mode.js",
3272
- "line": 254,
3272
+ "line": 290,
3273
3273
  "origin": "js-markup",
3274
3274
  "confidence": "certain"
3275
3275
  },
@@ -3611,7 +3611,7 @@
3611
3611
  "surface": "builders-hall",
3612
3612
  "text": "Builders hall · this session",
3613
3613
  "file": "modules/hall-ui/public/craft-mode.js",
3614
- "line": 249,
3614
+ "line": 285,
3615
3615
  "origin": "js-markup",
3616
3616
  "confidence": "certain"
3617
3617
  },
@@ -4025,7 +4025,7 @@
4025
4025
  "surface": "builders-hall",
4026
4026
  "text": "Choose your mode",
4027
4027
  "file": "modules/hall-ui/public/craft-mode.js",
4028
- "line": 167,
4028
+ "line": 203,
4029
4029
  "origin": "js-markup",
4030
4030
  "confidence": "certain"
4031
4031
  },
@@ -4187,7 +4187,7 @@
4187
4187
  "surface": "builders-hall",
4188
4188
  "text": "Close without choosing",
4189
4189
  "file": "modules/hall-ui/public/craft-mode.js",
4190
- "line": 247,
4190
+ "line": 283,
4191
4191
  "origin": "js-markup",
4192
4192
  "confidence": "certain"
4193
4193
  },
@@ -7535,7 +7535,7 @@
7535
7535
  "surface": "builders-hall",
7536
7536
  "text": "Legacy mode · the hall as it was",
7537
7537
  "file": "modules/hall-ui/public/craft-mode.js",
7538
- "line": 257,
7538
+ "line": 293,
7539
7539
  "origin": "js-markup",
7540
7540
  "confidence": "certain"
7541
7541
  },
@@ -9551,7 +9551,7 @@
9551
9551
  "surface": "builders-hall",
9552
9552
  "text": "Pick one. You can switch any time from the top bar.",
9553
9553
  "file": "modules/hall-ui/public/craft-mode.js",
9554
- "line": 251,
9554
+ "line": 287,
9555
9555
  "origin": "js-markup",
9556
9556
  "confidence": "certain"
9557
9557
  },
@@ -13817,7 +13817,7 @@
13817
13817
  "surface": "builders-hall",
13818
13818
  "text": "What are you doing now?",
13819
13819
  "file": "modules/hall-ui/public/craft-mode.js",
13820
- "line": 250,
13820
+ "line": 286,
13821
13821
  "origin": "js-markup",
13822
13822
  "confidence": "certain"
13823
13823
  },
@@ -2899,5 +2899,9 @@ is load-bearing: the script throws rather than guess if it is missing, and
2899
2899
  landed since 1.21.34 with no explicit bump. run 37159056871. (task 1002620)
2900
2900
  1.21.36 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
2901
2901
  landed since 1.21.35 with no explicit bump. run 37207566188. (task 1002620)
2902
+ 1.21.37 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
2903
+ landed since 1.21.36 with no explicit bump. run 37208699890. (task 1002620)
2904
+ 1.21.38 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
2905
+ landed since 1.21.37 with no explicit bump. run 37209756963. (task 1002620)
2902
2906
  ---------------------------------------------------------------------------
2903
2907
  ```