@bongos/core 1.19.1026 → 1.19.1027

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.
@@ -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. 420 endpoints across 72 route files.
5
+ > **Generated from the live route files** — the route file is authoritative. 437 endpoints across 74 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`.
@@ -332,6 +332,31 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
332
332
  |---|---|---|---|---|
333
333
  | GET | `/api/bongos/grades/by-builder` | `metic+archon` | — | GET /grades/by-builder?days=30 — per-builder grade breakdown (task 726). |
334
334
 
335
+ ## `guild-requests` (3)
336
+
337
+ | Method | Path | Rank | Body | Description |
338
+ |---|---|---|---|---|
339
+ | DELETE | `/api/bongos/guild-requests/:id` | `any-builder` | — | cancel a row I opened: my request, or (as owner) an invite my guild sent. |
340
+ | POST | `/api/bongos/guild-requests/:id/accept` | `any-builder` | `visibility`, `counted_in_totals` | accept an invite addressed to ME, or (as the guild's owner) a request to join it. |
341
+ | POST | `/api/bongos/guild-requests/:id/decline` | `any-builder` | — | decline an invite to ME, or (as owner) a request to my guild. |
342
+
343
+ ## `guilds` (12)
344
+
345
+ | Method | Path | Rank | Body | Description |
346
+ |---|---|---|---|---|
347
+ | POST | `/api/bongos/guilds` | `any-builder` | `slug`, `name`, `description`, `visibility` | create a guild. |
348
+ | GET | `/api/bongos/guilds/:slug` | `public` | — | a public guild's page data. |
349
+ | PATCH | `/api/bongos/guilds/:slug` | `any-builder` | `name`, `description`, `visibility` | owner: edit name, description or visibility. |
350
+ | DELETE | `/api/bongos/guilds/:slug` | `any-builder` | — | owner: dissolve. |
351
+ | POST | `/api/bongos/guilds/:slug/invites` | `any-builder` | `handles` | owner: invite up to INVITE_BATCH_MAX builders by handle, each an ordinary individual invite (ADR 0336 D3). |
352
+ | GET | `/api/bongos/guilds/:slug/members` | `any-builder` | — | the members' roster, for members only (the own-scope door to an unlisted guild, ADR 0336 D4). |
353
+ | DELETE | `/api/bongos/guilds/:slug/members/:handle` | `any-builder` | — | owner: remove a member (never the owner). |
354
+ | PATCH | `/api/bongos/guilds/:slug/membership` | `any-builder` | `shown_publicly`, `counted_in_totals` | MY switches in one guild: shown on its public page (ADR 0336 D4) and counted in its totals (ADR 0337 D4.4). |
355
+ | DELETE | `/api/bongos/guilds/:slug/membership` | `any-builder` | — | leave. |
356
+ | GET | `/api/bongos/guilds/:slug/requests` | `any-builder` | — | owner: the join requests to decide and the invites still out. |
357
+ | POST | `/api/bongos/guilds/:slug/requests` | `any-builder` | `counted_in_totals` | ask to join. |
358
+ | POST | `/api/bongos/guilds/:slug/transfer` | `any-builder` | `handle` | owner: hand ownership to an existing member. |
359
+
335
360
  ## `healthz` (1)
336
361
 
337
362
  | Method | Path | Rank | Body | Description |
@@ -406,7 +431,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
406
431
  | POST | `/api/bongos/llm-cache/lookup` | `metic+archon` | `cache_key`, `tokens_saved_est` | POST /llm-cache/lookup — hit/miss + atomic hit_count bump. |
407
432
  | POST | `/api/bongos/llm-cache/store` | `metic+archon` | `spec`, `result_stdout`, `result_cost_usd` | POST /llm-cache/store — upsert a freshly-produced result. |
408
433
 
409
- ## `me` (32)
434
+ ## `me` (34)
410
435
 
411
436
  | Method | Path | Rank | Body | Description |
412
437
  |---|---|---|---|---|
@@ -421,6 +446,8 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
421
446
  | PATCH | `/api/bongos/me/display-name` | `any-builder` | _undocumented_ | PATCH the display name. |
422
447
  | GET | `/api/bongos/me/event-sound-prefs` | `any-builder` | — | Per-builder per-event sound variant selection (task 582, migration 164). |
423
448
  | PATCH | `/api/bongos/me/event-sound-prefs` | `any-builder` | _undocumented_ | PATCH a partial set of event sound overrides. |
449
+ | GET | `/api/bongos/me/guild-requests` | `any-builder` | — | MY queue: invites addressed to me, each carrying the card (the guild's current visibility, which an accept must echo back), and the join … |
450
+ | GET | `/api/bongos/me/guilds` | `any-builder` | — | MY guilds, each with my own two switches. |
424
451
  | PATCH | `/api/bongos/me/handle` | `any-builder` | `handle` | rename the caller's OWN handle (own data, keyed on the authenticated github_id). |
425
452
  | GET | `/api/bongos/me/interaction` | `any-builder` | — | Per-builder INTERACTION PROFILE (task 2010, shares the behavior_prefs jsonb / migration 119). |
426
453
  | PATCH | `/api/bongos/me/interaction` | `any-builder` | _undocumented_ | PATCH the interaction profile. |
@@ -1850,7 +1850,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
1850
1850
  | `485c565b5745` | certain | How people join | `modules/public-landing/public/projects.html:801` |
1851
1851
  | `4b542b000afa` | certain | How this project is drawn: on the sky, in your list, at the top of this page and on its card. A planet is a | `modules/public-landing/public/projects.html:921` |
1852
1852
  | `9f31eaed8252` | certain | If you grant repository access while creating a project, that permission is used to create or adopt your repos | `modules/public-landing/public/privacy.html:55` |
1853
- | `2a1b87d28a9c` | certain | If your account already existed when this version took effect, the platform accepted it on your behalf, rather | `modules/public-landing/public/terms.html:71` |
1853
+ | `3b1cbe9e33aa` | certain | If your account already existed when this version took effect, the platform accepted it on your behalf, rather | `modules/public-landing/public/terms.html:71` |
1854
1854
  | `607551ae732b` | certain | Invite a builder | `modules/public-landing/public/projects.html:894` |
1855
1855
  | `20786b02f47a` | certain | Invite builders | `modules/public-landing/public/projects.html:1305` |
1856
1856
  | `a1256030d879` | certain | Invite only | `modules/public-landing/public/projects.html:805` |
@@ -1885,7 +1885,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
1885
1885
  | `837fdaa0936a` | certain | Nothing matches that. | `modules/public-landing/public/projects.html:649` |
1886
1886
  | `1bc11853e893` | certain | On the map | `modules/public-landing/public/projects.html:820` |
1887
1887
  | `b4ac8f44710c` | certain | On the public map | `modules/public-landing/public/projects.html:742` |
1888
- | `69400ca12477` | certain | Once you have signed in here and accepted these terms, your profile and that record are public by default: at | `modules/public-landing/public/terms.html:68` |
1888
+ | `7fe31ce20c09` | certain | Once you have signed in to a project with your platform account and accepted these terms, your profile and tha | `modules/public-landing/public/terms.html:68` |
1889
1889
  | `8329bb1a3693` | certain | One tap files the request and the platform starts standing your project up — server, database, address. Here's | `modules/public-landing/public/projects.html:1277` |
1890
1890
  | `86cde1930d84` | certain | Only mine | `modules/public-landing/public/projects.html:419` |
1891
1891
  | `f82fe1982ab3` | certain | Open an issue on the repository | `modules/public-landing/public/contact.html:52` |
@@ -1981,7 +1981,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
1981
1981
  | `fb416bf1a26b` | certain | The handle names your project on the platform — and its address comes with it. Once it stands up, a few GitHub | `modules/public-landing/public/projects.html:1245` |
1982
1982
  | `a954f0dce9a3` | certain | The platform | `modules/public-landing/public/contact.html:65` |
1983
1983
  | `4fd8f5746cc5` | certain | The platform is run as a non-profit, capture-resistant commons. | `modules/public-landing/public/terms.html:50` |
1984
- | `666291db6ac3` | certain | The platform stores the date you accepted these terms, and which version, on your account. It is written by si | `modules/public-landing/public/terms.html:70` |
1984
+ | `dede132846fe` | certain | The platform stores the date you accepted these terms, and which version, on your account. It is written when | `modules/public-landing/public/terms.html:70` |
1985
1985
  | `20fcebaa85c4` | certain | The project hub needs JavaScript — the map, your projects, and starting a new one all live here. You can read | `modules/public-landing/public/projects.html:472` |
1986
1986
  | `4a740b5afe73` | certain | The project map | `modules/public-landing/public/projects.html:482` |
1987
1987
  | `345fec12e5d8` | certain | The repository | `modules/public-landing/public/contact.html:50` |
@@ -17160,9 +17160,9 @@
17160
17160
  "confidence": "certain"
17161
17161
  },
17162
17162
  {
17163
- "id": "2a1b87d28a9c",
17163
+ "id": "3b1cbe9e33aa",
17164
17164
  "surface": "landing",
17165
- "text": "If your account already existed when this version took effect, the platform accepted it on your behalf, rather than waiting for you to sign in, and dated it the day that was done. The record marks that acceptance as grandfathered, so it is never mistaken for one you gave, and your own acceptance replaces it the next time you sign in.",
17165
+ "text": "If your account already existed when this version took effect, the platform accepted it on your behalf, rather than waiting for you to sign in, and dated it the day that was done. The record marks that acceptance as grandfathered, so it is never mistaken for one you gave, and your own acceptance replaces it the next time you sign in to a project.",
17166
17166
  "file": "modules/public-landing/public/terms.html",
17167
17167
  "line": 71,
17168
17168
  "origin": "html-text",
@@ -17475,9 +17475,9 @@
17475
17475
  "confidence": "certain"
17476
17476
  },
17477
17477
  {
17478
- "id": "69400ca12477",
17478
+ "id": "7fe31ce20c09",
17479
17479
  "surface": "landing",
17480
- "text": "Once you have signed in here and accepted these terms, your profile and that record are public by default: at your handle&rsquo;s page, in the people directory, to project owners looking for people to work with, and to search engines. An account that has never signed in here stays provisional and is published nowhere.",
17480
+ "text": "Once you have signed in to a project with your platform account and accepted these terms, your profile and that record are public by default: at your handle&rsquo;s page, in the people directory, to project owners looking for people to work with, and to search engines. An account that has never signed in to a project that way stays provisional and is published nowhere.",
17481
17481
  "file": "modules/public-landing/public/terms.html",
17482
17482
  "line": 68,
17483
17483
  "origin": "html-text",
@@ -18339,9 +18339,9 @@
18339
18339
  "confidence": "certain"
18340
18340
  },
18341
18341
  {
18342
- "id": "666291db6ac3",
18342
+ "id": "dede132846fe",
18343
18343
  "surface": "landing",
18344
- "text": "The platform stores the date you accepted these terms, and which version, on your account. It is written by signing in here, and only once &mdash; signing in again does not change the original date. This is version",
18344
+ "text": "The platform stores the date you accepted these terms, and which version, on your account. It is written when you sign in to a project with your platform account, and only once &mdash; signing in again does not change the date you accepted. This is version",
18345
18345
  "file": "modules/public-landing/public/terms.html",
18346
18346
  "line": 70,
18347
18347
  "origin": "html-text",
@@ -2531,5 +2531,7 @@ is load-bearing: the script throws rather than guess if it is missing, and
2531
2531
  landed since 1.19.1024 with no explicit bump. run 36185386905. (task 1002620)
2532
2532
  1.19.1026 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
2533
2533
  landed since 1.19.1025 with no explicit bump. run 36186644421. (task 1002620)
2534
+ 1.19.1027 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
2535
+ landed since 1.19.1026 with no explicit bump. run 36187742785. (task 1002620)
2534
2536
  ---------------------------------------------------------------------------
2535
2537
  ```
@@ -561,6 +561,7 @@ module.exports = {
561
561
  DEGREE_MAX,
562
562
  FANOUT_1,
563
563
  FANOUT_2,
564
+ neighboursSql,
564
565
  findAccountByHandle,
565
566
  isConnectedTo,
566
567
  requestConnection,