@bongos/core 1.20.52 → 1.20.54
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/.bongos-core.json +61 -36
- package/clients/bongos-client/README.md +1 -1
- package/clients/bongos-client/bongos-client.global.js +2 -0
- package/clients/bongos-client/index.cjs +2 -0
- package/clients/bongos-client/index.d.ts +4 -0
- package/clients/bongos-client/index.mjs +2 -0
- package/docs/api/openapi.json +92 -3
- package/docs/api-reference.md +3 -2
- package/docs/copy-inventory.md +37 -27
- package/docs/copy-registry.json +119 -29
- package/docs/module-api-changelog.md +4 -0
- package/docs/page-readings.json +58 -46
- package/migrations/core_267_page_tweak_author_of_record.sql +41 -0
- package/modules/government/board.js +15 -21
- package/modules/government/recommendations.js +218 -0
- package/modules/government/routes/government.js +47 -1
- package/modules/hall-ui/public/builders.js +3 -1
- package/modules/hall-ui/public/government.js +125 -2
- package/modules/lifecycle/db-analytics.js +6 -1
- package/modules/lifecycle/db-ship.js +10 -3
- package/modules/lifecycle/page-tweak-artist.js +86 -0
- package/modules/lifecycle/page-tweak-reads.js +7 -5
- package/modules/lifecycle/routes/tasks.js +3 -0
- package/modules/sessions/db.js +8 -0
- package/modules/status-ui/public/status.js +3 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +12 -0
- package/src/bongos/route-rank-check.js +1 -0
- package/src/module-api.js +1 -1
- package/tests/government_charter_library.mjs +11 -5
- package/tests/government_constitution_view.mjs +4 -1
- package/tests/government_recommendations.mjs +119 -0
- package/tests/government_routes.mjs +35 -0
- package/tests/page_tweak_artist.mjs +236 -0
package/.bongos-core.json
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
"artifact": "bongos-core",
|
|
3
3
|
"manifest_schema": 1,
|
|
4
4
|
"generator": "scripts/gds/package-core.js",
|
|
5
|
-
"core_version": "1.20.
|
|
6
|
-
"core_contract": "1.20.
|
|
7
|
-
"source_commit": "
|
|
5
|
+
"core_version": "1.20.54",
|
|
6
|
+
"core_contract": "1.20.54",
|
|
7
|
+
"source_commit": "0fb32cfd989215446812f0ee1f953d35325b8606",
|
|
8
8
|
"source_ref": "HEAD",
|
|
9
|
-
"built_at": "2026-10-
|
|
9
|
+
"built_at": "2026-10-01T05:26:34.110Z",
|
|
10
10
|
"redaction": {
|
|
11
11
|
"model": "docs-redacted+functional-verbatim",
|
|
12
12
|
"docs_redacted": 569,
|
|
13
13
|
"agent_docs_stubbed": 27,
|
|
14
|
-
"functional_verbatim":
|
|
14
|
+
"functional_verbatim": 2737,
|
|
15
15
|
"rules": 3,
|
|
16
16
|
"gate_literals": 3,
|
|
17
17
|
"gate": "passed"
|
|
18
18
|
},
|
|
19
|
-
"file_count":
|
|
20
|
-
"tree_sha256": "
|
|
19
|
+
"file_count": 3334,
|
|
20
|
+
"tree_sha256": "18a0716b2420187019ac58ed948d1c70ab971cc342734b0d628faf68167191ea",
|
|
21
21
|
"files": [
|
|
22
22
|
{
|
|
23
23
|
"path": ".claude/skills/ask-for-help/SKILL.md",
|
|
@@ -317,12 +317,12 @@
|
|
|
317
317
|
{
|
|
318
318
|
"path": "clients/bongos-client/README.md",
|
|
319
319
|
"mode": "0000644",
|
|
320
|
-
"sha256": "
|
|
320
|
+
"sha256": "28f87d79e9de55edb439d81378f05f20855559794539b3e7448811774f4d24a1"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
"path": "clients/bongos-client/bongos-client.global.js",
|
|
324
324
|
"mode": "0000644",
|
|
325
|
-
"sha256": "
|
|
325
|
+
"sha256": "61ece1e6a1f1be458cbbc3ec71a0d785f56d480be38674a0f4cb6091daa09072"
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
"path": "clients/bongos-client/examples/hello-world.mjs",
|
|
@@ -332,17 +332,17 @@
|
|
|
332
332
|
{
|
|
333
333
|
"path": "clients/bongos-client/index.cjs",
|
|
334
334
|
"mode": "0000644",
|
|
335
|
-
"sha256": "
|
|
335
|
+
"sha256": "324ae726115efc4b9c99f9832e50ed6a8b27c56f8ef0638db8c9492f4215532d"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"path": "clients/bongos-client/index.d.ts",
|
|
339
339
|
"mode": "0000644",
|
|
340
|
-
"sha256": "
|
|
340
|
+
"sha256": "73a4b25142f386e59c961fedac96cbd62355c1c70ceab94f25ac6517c717bc83"
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
"path": "clients/bongos-client/index.mjs",
|
|
344
344
|
"mode": "0000644",
|
|
345
|
-
"sha256": "
|
|
345
|
+
"sha256": "299861a409c2c5ef7524b12c8473c652fbac044d6b393da33ce28a5d4a6f7dcf"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
"path": "clients/bongos-client/package.json",
|
|
@@ -2257,12 +2257,12 @@
|
|
|
2257
2257
|
{
|
|
2258
2258
|
"path": "docs/api-reference.md",
|
|
2259
2259
|
"mode": "0000644",
|
|
2260
|
-
"sha256": "
|
|
2260
|
+
"sha256": "295379e5a7bb51d2784a582fb3d487c699e603886eb19cd55d50f37da599e234"
|
|
2261
2261
|
},
|
|
2262
2262
|
{
|
|
2263
2263
|
"path": "docs/api/openapi.json",
|
|
2264
2264
|
"mode": "0000644",
|
|
2265
|
-
"sha256": "
|
|
2265
|
+
"sha256": "4238f2436b519afbefc20478ef6ba0f400e9702f0b555362fc8d948f7924751f"
|
|
2266
2266
|
},
|
|
2267
2267
|
{
|
|
2268
2268
|
"path": "docs/architecture.md",
|
|
@@ -2287,12 +2287,12 @@
|
|
|
2287
2287
|
{
|
|
2288
2288
|
"path": "docs/copy-inventory.md",
|
|
2289
2289
|
"mode": "0000644",
|
|
2290
|
-
"sha256": "
|
|
2290
|
+
"sha256": "432295beaf30da14491132723fe17f9334b21cf323243c4dae889b87065068b9"
|
|
2291
2291
|
},
|
|
2292
2292
|
{
|
|
2293
2293
|
"path": "docs/copy-registry.json",
|
|
2294
2294
|
"mode": "0000644",
|
|
2295
|
-
"sha256": "
|
|
2295
|
+
"sha256": "36b5e5a089e407b68cbb30eaa3f27955abb90de934c44b3f466529b752e99c2a"
|
|
2296
2296
|
},
|
|
2297
2297
|
{
|
|
2298
2298
|
"path": "docs/design/apex-pass-2-direction.md",
|
|
@@ -2797,7 +2797,7 @@
|
|
|
2797
2797
|
{
|
|
2798
2798
|
"path": "docs/module-api-changelog.md",
|
|
2799
2799
|
"mode": "0000644",
|
|
2800
|
-
"sha256": "
|
|
2800
|
+
"sha256": "a7fa1446d5105ab6ed15cd26c615671b427efc4d55aae6eb9bf47bfe574f390d"
|
|
2801
2801
|
},
|
|
2802
2802
|
{
|
|
2803
2803
|
"path": "docs/modules-contract.md",
|
|
@@ -2887,7 +2887,7 @@
|
|
|
2887
2887
|
{
|
|
2888
2888
|
"path": "docs/page-readings.json",
|
|
2889
2889
|
"mode": "0000644",
|
|
2890
|
-
"sha256": "
|
|
2890
|
+
"sha256": "ecc0b9355b0d07faaf9911d22b44db5d9b7652f5e01a45910a5bf2c2cb08eb4f"
|
|
2891
2891
|
},
|
|
2892
2892
|
{
|
|
2893
2893
|
"path": "docs/project-context.template.md",
|
|
@@ -3984,6 +3984,11 @@
|
|
|
3984
3984
|
"mode": "0000644",
|
|
3985
3985
|
"sha256": "e7dcf016492ab9d011bd0021ac866edd502bf68f2fe06a04365ecb2b49ccbfaa"
|
|
3986
3986
|
},
|
|
3987
|
+
{
|
|
3988
|
+
"path": "migrations/core_267_page_tweak_author_of_record.sql",
|
|
3989
|
+
"mode": "0000644",
|
|
3990
|
+
"sha256": "09070e79b3e4781a185263d1bb2be364dd1225dcf6f79bdf9c21cc498fb009dd"
|
|
3991
|
+
},
|
|
3987
3992
|
{
|
|
3988
3993
|
"path": "modules/agents/CLAUDE.md",
|
|
3989
3994
|
"mode": "0000644",
|
|
@@ -4727,7 +4732,7 @@
|
|
|
4727
4732
|
{
|
|
4728
4733
|
"path": "modules/government/board.js",
|
|
4729
4734
|
"mode": "0000644",
|
|
4730
|
-
"sha256": "
|
|
4735
|
+
"sha256": "47e1be362fd399ce3a4e29bca26a7001d20e83f868fe84f989e679393859ff12"
|
|
4731
4736
|
},
|
|
4732
4737
|
{
|
|
4733
4738
|
"path": "modules/government/catalog.js",
|
|
@@ -4914,6 +4919,11 @@
|
|
|
4914
4919
|
"mode": "0000644",
|
|
4915
4920
|
"sha256": "fb0903c3b885a81c99136cc6f080aaf7fc00f86bd1c45c235e37c7c45a462ffc"
|
|
4916
4921
|
},
|
|
4922
|
+
{
|
|
4923
|
+
"path": "modules/government/recommendations.js",
|
|
4924
|
+
"mode": "0000644",
|
|
4925
|
+
"sha256": "2ae0e7f49aacbf966d466ca75a8dac4ab526496107fa491563890f310a8e24d4"
|
|
4926
|
+
},
|
|
4917
4927
|
{
|
|
4918
4928
|
"path": "modules/government/resolver.js",
|
|
4919
4929
|
"mode": "0000644",
|
|
@@ -4922,7 +4932,7 @@
|
|
|
4922
4932
|
{
|
|
4923
4933
|
"path": "modules/government/routes/government.js",
|
|
4924
4934
|
"mode": "0000644",
|
|
4925
|
-
"sha256": "
|
|
4935
|
+
"sha256": "2e901a13f0d5624c246add50c66ed95e345a1979440d62c027c51d24cab6b16d"
|
|
4926
4936
|
},
|
|
4927
4937
|
{
|
|
4928
4938
|
"path": "modules/government/routes/rank-sync.js",
|
|
@@ -5182,7 +5192,7 @@
|
|
|
5182
5192
|
{
|
|
5183
5193
|
"path": "modules/hall-ui/public/builders.js",
|
|
5184
5194
|
"mode": "0000644",
|
|
5185
|
-
"sha256": "
|
|
5195
|
+
"sha256": "565573d6b3a055e9ae18751c954b3d0d7da0383fe0e37c17a24edfec9529c69f"
|
|
5186
5196
|
},
|
|
5187
5197
|
{
|
|
5188
5198
|
"path": "modules/hall-ui/public/bulk-toolbar.js",
|
|
@@ -5477,7 +5487,7 @@
|
|
|
5477
5487
|
{
|
|
5478
5488
|
"path": "modules/hall-ui/public/government.js",
|
|
5479
5489
|
"mode": "0000644",
|
|
5480
|
-
"sha256": "
|
|
5490
|
+
"sha256": "1d74433b5971c17bfe84c7fd80ff7888ea6fdbea60413e7ad5fc0eca7f36ecc8"
|
|
5481
5491
|
},
|
|
5482
5492
|
{
|
|
5483
5493
|
"path": "modules/hall-ui/public/government.states.json",
|
|
@@ -6377,7 +6387,7 @@
|
|
|
6377
6387
|
{
|
|
6378
6388
|
"path": "modules/lifecycle/db-analytics.js",
|
|
6379
6389
|
"mode": "0000644",
|
|
6380
|
-
"sha256": "
|
|
6390
|
+
"sha256": "8e8aedb44b8773760ebe0ea87b8c4f0aa98b838a69be6ae1a40c3c2e7e28b656"
|
|
6381
6391
|
},
|
|
6382
6392
|
{
|
|
6383
6393
|
"path": "modules/lifecycle/db-claim-reads.js",
|
|
@@ -6432,7 +6442,7 @@
|
|
|
6432
6442
|
{
|
|
6433
6443
|
"path": "modules/lifecycle/db-ship.js",
|
|
6434
6444
|
"mode": "0000644",
|
|
6435
|
-
"sha256": "
|
|
6445
|
+
"sha256": "1b2c55becb653ff92eea3bc202bdef855b0b46c2cdb247a2e738eb5b626d2c22"
|
|
6436
6446
|
},
|
|
6437
6447
|
{
|
|
6438
6448
|
"path": "modules/lifecycle/db-tasks.js",
|
|
@@ -6669,6 +6679,11 @@
|
|
|
6669
6679
|
"mode": "0000644",
|
|
6670
6680
|
"sha256": "ffd912f5d88e729f7d6cb86235737788b62deebde24551a21e349d164f24d0cf"
|
|
6671
6681
|
},
|
|
6682
|
+
{
|
|
6683
|
+
"path": "modules/lifecycle/page-tweak-artist.js",
|
|
6684
|
+
"mode": "0000644",
|
|
6685
|
+
"sha256": "78c704a21d784de68b61826cca9f1faa1a30065c326746b4d75c80feed7bddda"
|
|
6686
|
+
},
|
|
6672
6687
|
{
|
|
6673
6688
|
"path": "modules/lifecycle/page-tweak-claim.js",
|
|
6674
6689
|
"mode": "0000644",
|
|
@@ -6682,7 +6697,7 @@
|
|
|
6682
6697
|
{
|
|
6683
6698
|
"path": "modules/lifecycle/page-tweak-reads.js",
|
|
6684
6699
|
"mode": "0000644",
|
|
6685
|
-
"sha256": "
|
|
6700
|
+
"sha256": "7606154d0aa95475e0cd59b753d38bd00c2ce65928d843191738dcf9bdd93f72"
|
|
6686
6701
|
},
|
|
6687
6702
|
{
|
|
6688
6703
|
"path": "modules/lifecycle/page-tweak-write.js",
|
|
@@ -6847,7 +6862,7 @@
|
|
|
6847
6862
|
{
|
|
6848
6863
|
"path": "modules/lifecycle/routes/tasks.js",
|
|
6849
6864
|
"mode": "0000644",
|
|
6850
|
-
"sha256": "
|
|
6865
|
+
"sha256": "4019166678703aee51179d0b92a5aaefa728a5f992b7b472703e61c1e55c30f7"
|
|
6851
6866
|
},
|
|
6852
6867
|
{
|
|
6853
6868
|
"path": "modules/lifecycle/routes/version-route-authz.js",
|
|
@@ -8822,7 +8837,7 @@
|
|
|
8822
8837
|
{
|
|
8823
8838
|
"path": "modules/sessions/db.js",
|
|
8824
8839
|
"mode": "0000644",
|
|
8825
|
-
"sha256": "
|
|
8840
|
+
"sha256": "3957caae2ab5028096f74428503db5915ff72eb945bb965b518a0be2791b9e57"
|
|
8826
8841
|
},
|
|
8827
8842
|
{
|
|
8828
8843
|
"path": "modules/sessions/module.json",
|
|
@@ -8952,7 +8967,7 @@
|
|
|
8952
8967
|
{
|
|
8953
8968
|
"path": "modules/status-ui/public/status.js",
|
|
8954
8969
|
"mode": "0000644",
|
|
8955
|
-
"sha256": "
|
|
8970
|
+
"sha256": "1a056ec1ddd690dc41057193fe18af6dda6cdf2ad211875b198f945ff1ca5317"
|
|
8956
8971
|
},
|
|
8957
8972
|
{
|
|
8958
8973
|
"path": "modules/status-ui/public/style.css",
|
|
@@ -9227,12 +9242,12 @@
|
|
|
9227
9242
|
{
|
|
9228
9243
|
"path": "package-lock.json",
|
|
9229
9244
|
"mode": "0000644",
|
|
9230
|
-
"sha256": "
|
|
9245
|
+
"sha256": "7f75af0db1642a139e780c4668c28ef7d4dd94d23606688cc932de869c92eb77"
|
|
9231
9246
|
},
|
|
9232
9247
|
{
|
|
9233
9248
|
"path": "package.json",
|
|
9234
9249
|
"mode": "0000644",
|
|
9235
|
-
"sha256": "
|
|
9250
|
+
"sha256": "21aa86d2d5532b61965e866c80e9ccb6bb081f680b2c0ec6ec1c301029924750"
|
|
9236
9251
|
},
|
|
9237
9252
|
{
|
|
9238
9253
|
"path": "public-docs/index.html",
|
|
@@ -9252,7 +9267,7 @@
|
|
|
9252
9267
|
{
|
|
9253
9268
|
"path": "release-notes.json",
|
|
9254
9269
|
"mode": "0000644",
|
|
9255
|
-
"sha256": "
|
|
9270
|
+
"sha256": "ebfd2ffffb89ec082dc9d5ebda46442a68adc7afab70f78b015f95ed2ba8eb84"
|
|
9256
9271
|
},
|
|
9257
9272
|
{
|
|
9258
9273
|
"path": "scripts/bongos-mcp.js",
|
|
@@ -11262,7 +11277,7 @@
|
|
|
11262
11277
|
{
|
|
11263
11278
|
"path": "src/bongos/route-rank-check.js",
|
|
11264
11279
|
"mode": "0000644",
|
|
11265
|
-
"sha256": "
|
|
11280
|
+
"sha256": "3d7c62d9c3925bc1ebafeae7d90ff09fc22a09c75c2ec47382e12bcff8d017ad"
|
|
11266
11281
|
},
|
|
11267
11282
|
{
|
|
11268
11283
|
"path": "src/bongos/routes.js",
|
|
@@ -11417,7 +11432,7 @@
|
|
|
11417
11432
|
{
|
|
11418
11433
|
"path": "src/module-api.js",
|
|
11419
11434
|
"mode": "0000644",
|
|
11420
|
-
"sha256": "
|
|
11435
|
+
"sha256": "e894e0d14143f77b8d933b1a192250dc098db1883b839306ac2a40e39719a514"
|
|
11421
11436
|
},
|
|
11422
11437
|
{
|
|
11423
11438
|
"path": "src/module-loader/catalog.js",
|
|
@@ -13252,7 +13267,7 @@
|
|
|
13252
13267
|
{
|
|
13253
13268
|
"path": "tests/government_charter_library.mjs",
|
|
13254
13269
|
"mode": "0000644",
|
|
13255
|
-
"sha256": "
|
|
13270
|
+
"sha256": "021bdf3fd8e394cec3b4aea203768ca09424e84b313f4a65fe64f943c1329259"
|
|
13256
13271
|
},
|
|
13257
13272
|
{
|
|
13258
13273
|
"path": "tests/government_claim_eligibility.mjs",
|
|
@@ -13277,7 +13292,7 @@
|
|
|
13277
13292
|
{
|
|
13278
13293
|
"path": "tests/government_constitution_view.mjs",
|
|
13279
13294
|
"mode": "0000644",
|
|
13280
|
-
"sha256": "
|
|
13295
|
+
"sha256": "1121e9fc07e9b6cf42f6206ef07465d7d1f0236efd19982dcd65f007f35108d6"
|
|
13281
13296
|
},
|
|
13282
13297
|
{
|
|
13283
13298
|
"path": "tests/government_fold.mjs",
|
|
@@ -13329,6 +13344,11 @@
|
|
|
13329
13344
|
"mode": "0000644",
|
|
13330
13345
|
"sha256": "d4bd68c98f6e4bbec59890dde225f27f1daf380397f39d329b447fb77fd51c14"
|
|
13331
13346
|
},
|
|
13347
|
+
{
|
|
13348
|
+
"path": "tests/government_recommendations.mjs",
|
|
13349
|
+
"mode": "0000644",
|
|
13350
|
+
"sha256": "b915086865be9029ccc605a468937434f5916561a51f45a03b34cffeacf4249f"
|
|
13351
|
+
},
|
|
13332
13352
|
{
|
|
13333
13353
|
"path": "tests/government_require_permission.mjs",
|
|
13334
13354
|
"mode": "0000644",
|
|
@@ -13342,7 +13362,7 @@
|
|
|
13342
13362
|
{
|
|
13343
13363
|
"path": "tests/government_routes.mjs",
|
|
13344
13364
|
"mode": "0000644",
|
|
13345
|
-
"sha256": "
|
|
13365
|
+
"sha256": "c04df68f34c55f13c908d4565d6d38116341738e611c14dba6577724725e9e85"
|
|
13346
13366
|
},
|
|
13347
13367
|
{
|
|
13348
13368
|
"path": "tests/government_seed.mjs",
|
|
@@ -14744,6 +14764,11 @@
|
|
|
14744
14764
|
"mode": "0000644",
|
|
14745
14765
|
"sha256": "2d86f24827327f8015feec80de6fb1089d7f5d5589847a1c0cf4fad59412d307"
|
|
14746
14766
|
},
|
|
14767
|
+
{
|
|
14768
|
+
"path": "tests/page_tweak_artist.mjs",
|
|
14769
|
+
"mode": "0000644",
|
|
14770
|
+
"sha256": "bd2127c6133c89d4a6aaa761f7aa70bc4cc01c0e29560b01ed70f85bde667ea6"
|
|
14771
|
+
},
|
|
14747
14772
|
{
|
|
14748
14773
|
"path": "tests/page_tweak_hold.mjs",
|
|
14749
14774
|
"mode": "0000644",
|
|
@@ -5,7 +5,7 @@ A **generated**, zero-dependency typed client for the Bongos API — produced fr
|
|
|
5
5
|
by hand; it regenerates when the spec changes, so it can never drift from the routes.
|
|
6
6
|
|
|
7
7
|
- API version: **v1** (served at `/api/bongos/v1`)
|
|
8
|
-
-
|
|
8
|
+
- 472 operations across 72 resource groups
|
|
9
9
|
|
|
10
10
|
## Use it from your project
|
|
11
11
|
|
|
@@ -489,6 +489,8 @@ function createClient(opts = {}) {
|
|
|
489
489
|
getGovernmentConstitution: (args) => request("GET", "/government/constitution", { hasBody: false }, args),
|
|
490
490
|
// GET /government/permissions — rank: archon — GET /government/permissions
|
|
491
491
|
getGovernmentPermissions: (args) => request("GET", "/government/permissions", { hasBody: false }, args),
|
|
492
|
+
// POST /government/rank-sets/apply — rank: archon — POST /government/rank-sets/apply
|
|
493
|
+
postGovernmentRankSetsApply: (args) => request("POST", "/government/rank-sets/apply", { hasBody: true }, args),
|
|
492
494
|
// GET /government/ranks — rank: archon — GET /government/ranks
|
|
493
495
|
getGovernmentRanks: (args) => request("GET", "/government/ranks", { hasBody: false }, args),
|
|
494
496
|
// POST /government/ranks — rank: archon — POST /government/ranks
|
|
@@ -488,6 +488,8 @@ function createClient(opts = {}) {
|
|
|
488
488
|
getGovernmentConstitution: (args) => request("GET", "/government/constitution", { hasBody: false }, args),
|
|
489
489
|
// GET /government/permissions — rank: archon — GET /government/permissions
|
|
490
490
|
getGovernmentPermissions: (args) => request("GET", "/government/permissions", { hasBody: false }, args),
|
|
491
|
+
// POST /government/rank-sets/apply — rank: archon — POST /government/rank-sets/apply
|
|
492
|
+
postGovernmentRankSetsApply: (args) => request("POST", "/government/rank-sets/apply", { hasBody: true }, args),
|
|
491
493
|
// GET /government/ranks — rank: archon — GET /government/ranks
|
|
492
494
|
getGovernmentRanks: (args) => request("GET", "/government/ranks", { hasBody: false }, args),
|
|
493
495
|
// POST /government/ranks — rank: archon — POST /government/ranks
|
|
@@ -339,6 +339,8 @@ export interface PostGovernmentBoardCharterResponse { ok: boolean; amendment: un
|
|
|
339
339
|
export interface PostGovernmentBoardItemsItemIdVotesRequest { direction: string; reason_md?: string; section_key?: string }
|
|
340
340
|
export interface PostGovernmentBoardItemsRequest { subject_type: string; proposal: Record<string, unknown>; rationale_md?: string; acknowledge_self_removal?: boolean }
|
|
341
341
|
export interface PostGovernmentBoardItemsResponse { ok: boolean; amendment: unknown; item: unknown }
|
|
342
|
+
export interface PostGovernmentRankSetsApplyRequest { type?: string; headcount: number }
|
|
343
|
+
export interface PostGovernmentRankSetsApplyResponse { ok: boolean; type: unknown; size: unknown; created: unknown; skipped: unknown }
|
|
342
344
|
export interface PostGovernmentRanksRankKeyResetResponse { ok: boolean; rank_key: unknown; seeded_rank: unknown; permission_count: unknown }
|
|
343
345
|
export interface PostGovernmentRanksRequest { rank_key: string; label: string; description?: string }
|
|
344
346
|
export interface PostGovernmentRanksResponse { rank: unknown }
|
|
@@ -925,6 +927,8 @@ export interface BongosClient {
|
|
|
925
927
|
getGovernmentConstitution(args?: RequestArgs): Promise<ApiResponse>;
|
|
926
928
|
/** GET /government/permissions — rank: archon */
|
|
927
929
|
getGovernmentPermissions(args?: RequestArgs): Promise<GetGovernmentPermissionsResponse>;
|
|
930
|
+
/** POST /government/rank-sets/apply — rank: archon */
|
|
931
|
+
postGovernmentRankSetsApply(args: RequestArgs & { body: PostGovernmentRankSetsApplyRequest }): Promise<PostGovernmentRankSetsApplyResponse>;
|
|
928
932
|
/** GET /government/ranks — rank: archon */
|
|
929
933
|
getGovernmentRanks(args?: RequestArgs): Promise<GetGovernmentRanksResponse>;
|
|
930
934
|
/** POST /government/ranks — rank: archon */
|
|
@@ -485,6 +485,8 @@ export function createClient(opts = {}) {
|
|
|
485
485
|
getGovernmentConstitution: (args) => request("GET", "/government/constitution", { hasBody: false }, args),
|
|
486
486
|
// GET /government/permissions — rank: archon — GET /government/permissions
|
|
487
487
|
getGovernmentPermissions: (args) => request("GET", "/government/permissions", { hasBody: false }, args),
|
|
488
|
+
// POST /government/rank-sets/apply — rank: archon — POST /government/rank-sets/apply
|
|
489
|
+
postGovernmentRankSetsApply: (args) => request("POST", "/government/rank-sets/apply", { hasBody: true }, args),
|
|
488
490
|
// GET /government/ranks — rank: archon — GET /government/ranks
|
|
489
491
|
getGovernmentRanks: (args) => request("GET", "/government/ranks", { hasBody: false }, args),
|
|
490
492
|
// POST /government/ranks — rank: archon — POST /government/ranks
|
package/docs/api/openapi.json
CHANGED
|
@@ -8335,6 +8335,58 @@
|
|
|
8335
8335
|
]
|
|
8336
8336
|
}
|
|
8337
8337
|
},
|
|
8338
|
+
"/government/rank-sets/apply": {
|
|
8339
|
+
"post": {
|
|
8340
|
+
"operationId": "post_government_rank_sets_apply",
|
|
8341
|
+
"tags": [
|
|
8342
|
+
"government"
|
|
8343
|
+
],
|
|
8344
|
+
"summary": "POST /government/rank-sets/apply",
|
|
8345
|
+
"description": "government.manage — add a RECOMMENDED RANK SET (task 1004400): the custom ranks recommendations.js names for a project type and size, each with its grants. It is the create form and the grant toggle run in a loop, under the same checks: a rank that already exists is LEFT ALONE (never re-granted, never relabelled — an owner may have edited it), and every grant is re-checked with catalog.isGrantableTo, so a set can never write what the toggle would refuse. Re-applying is safe; the reply says what was added.\n\n**Rank:** `archon` — Archon only (rank and identity management + the escalation keys — the trust boundary).\n\n**Permissions:** `government.manage` (all required).",
|
|
8346
|
+
"x-rank": "archon",
|
|
8347
|
+
"x-source": "modules/government/routes/government.js",
|
|
8348
|
+
"x-permissions": [
|
|
8349
|
+
"government.manage"
|
|
8350
|
+
],
|
|
8351
|
+
"requestBody": {
|
|
8352
|
+
"required": true,
|
|
8353
|
+
"content": {
|
|
8354
|
+
"application/json": {
|
|
8355
|
+
"schema": {
|
|
8356
|
+
"$ref": "#/components/schemas/PostGovernmentRankSetsApplyRequest"
|
|
8357
|
+
}
|
|
8358
|
+
}
|
|
8359
|
+
},
|
|
8360
|
+
"x-validated": true
|
|
8361
|
+
},
|
|
8362
|
+
"responses": {
|
|
8363
|
+
"200": {
|
|
8364
|
+
"description": "Success.",
|
|
8365
|
+
"content": {
|
|
8366
|
+
"application/json": {
|
|
8367
|
+
"schema": {
|
|
8368
|
+
"$ref": "#/components/schemas/PostGovernmentRankSetsApplyResponse"
|
|
8369
|
+
}
|
|
8370
|
+
}
|
|
8371
|
+
}
|
|
8372
|
+
},
|
|
8373
|
+
"400": {
|
|
8374
|
+
"$ref": "#/components/responses/ValidationFailed"
|
|
8375
|
+
},
|
|
8376
|
+
"401": {
|
|
8377
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
8378
|
+
},
|
|
8379
|
+
"403": {
|
|
8380
|
+
"$ref": "#/components/responses/Forbidden"
|
|
8381
|
+
}
|
|
8382
|
+
},
|
|
8383
|
+
"security": [
|
|
8384
|
+
{
|
|
8385
|
+
"builderSession": []
|
|
8386
|
+
}
|
|
8387
|
+
]
|
|
8388
|
+
}
|
|
8389
|
+
},
|
|
8338
8390
|
"/government/ranks": {
|
|
8339
8391
|
"get": {
|
|
8340
8392
|
"operationId": "get_government_ranks",
|
|
@@ -27011,6 +27063,43 @@
|
|
|
27011
27063
|
"item"
|
|
27012
27064
|
]
|
|
27013
27065
|
},
|
|
27066
|
+
"PostGovernmentRankSetsApplyRequest": {
|
|
27067
|
+
"type": "object",
|
|
27068
|
+
"properties": {
|
|
27069
|
+
"type": {
|
|
27070
|
+
"type": "string",
|
|
27071
|
+
"maxLength": 32
|
|
27072
|
+
},
|
|
27073
|
+
"headcount": {
|
|
27074
|
+
"type": "integer",
|
|
27075
|
+
"minimum": 0,
|
|
27076
|
+
"maximum": 100000
|
|
27077
|
+
}
|
|
27078
|
+
},
|
|
27079
|
+
"required": [
|
|
27080
|
+
"headcount"
|
|
27081
|
+
],
|
|
27082
|
+
"additionalProperties": false
|
|
27083
|
+
},
|
|
27084
|
+
"PostGovernmentRankSetsApplyResponse": {
|
|
27085
|
+
"type": "object",
|
|
27086
|
+
"properties": {
|
|
27087
|
+
"ok": {
|
|
27088
|
+
"type": "boolean"
|
|
27089
|
+
},
|
|
27090
|
+
"type": {},
|
|
27091
|
+
"size": {},
|
|
27092
|
+
"created": {},
|
|
27093
|
+
"skipped": {}
|
|
27094
|
+
},
|
|
27095
|
+
"required": [
|
|
27096
|
+
"ok",
|
|
27097
|
+
"type",
|
|
27098
|
+
"size",
|
|
27099
|
+
"created",
|
|
27100
|
+
"skipped"
|
|
27101
|
+
]
|
|
27102
|
+
},
|
|
27014
27103
|
"PostGovernmentRanksRankKeyResetResponse": {
|
|
27015
27104
|
"type": "object",
|
|
27016
27105
|
"properties": {
|
|
@@ -30136,9 +30225,9 @@
|
|
|
30136
30225
|
"description": "A required dependency/feature is not configured or is temporarily down."
|
|
30137
30226
|
}
|
|
30138
30227
|
},
|
|
30139
|
-
"x-endpoint-count":
|
|
30140
|
-
"x-schema-count":
|
|
30228
|
+
"x-endpoint-count": 472,
|
|
30229
|
+
"x-schema-count": 505,
|
|
30141
30230
|
"x-undocumented-bodies": 12,
|
|
30142
|
-
"x-response-schemas":
|
|
30231
|
+
"x-response-schemas": 340,
|
|
30143
30232
|
"x-generated-by": "scripts/gds/gen-api-docs.js"
|
|
30144
30233
|
}
|
package/docs/api-reference.md
CHANGED
|
@@ -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.
|
|
5
|
+
> **Generated from the live route files** — the route file is authoritative. 472 endpoints across 85 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`.
|
|
@@ -323,7 +323,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
|
|
|
323
323
|
| 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… |
|
|
324
324
|
| 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). |
|
|
325
325
|
|
|
326
|
-
## `government` (
|
|
326
|
+
## `government` (16)
|
|
327
327
|
|
|
328
328
|
| Method | Path | Rank | Body | Description |
|
|
329
329
|
|---|---|---|---|---|
|
|
@@ -337,6 +337,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
|
|
|
337
337
|
| 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). |
|
|
338
338
|
| 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 … |
|
|
339
339
|
| GET | `/api/bongos/government/permissions` | `archon` | — | government.manage — the permission catalog + principals, straight from code (the catalog is CODE, not a table); no DB read. |
|
|
340
|
+
| POST | `/api/bongos/government/rank-sets/apply` | `archon` | `type`, `headcount` | government.manage — add a RECOMMENDED RANK SET (task 1004400): the custom ranks recommendations.js names for a project type and size, eac… |
|
|
340
341
|
| GET | `/api/bongos/government/ranks` | `archon` | — | government.manage — the full rank list with each rank's grants. |
|
|
341
342
|
| POST | `/api/bongos/government/ranks` | `archon` | `rank_key`, `label`, `description` | government.manage — create a CUSTOM rank (is_system false, no seeded_rank — the seeded four exist only via governance_002). |
|
|
342
343
|
| PUT | `/api/bongos/government/ranks/:rankKey/permissions/:permissionKey` | `archon` | — | government.manage — grant one permission to a rank (the toggle's ON half). |
|