@bongos/core 1.21.92 → 1.21.94
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 +86 -56
- 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 -2
- package/clients/bongos-client/index.mjs +2 -0
- package/docs/adr/0363-who-decides-what-is-a-table-changed-only-by-amendment.md +1 -0
- package/docs/api/openapi.json +38 -7
- package/docs/api-reference.md +4 -3
- package/docs/copy-inventory.md +354 -354
- package/docs/copy-registry.json +420 -420
- package/docs/design/project-startup-direction.md +7 -0
- package/docs/module-api-changelog.md +9 -0
- package/docs/page-readings.json +963 -992
- package/modules/autonomy/routes/autonomy.js +14 -5
- package/modules/government/decision-board.js +13 -3
- package/modules/government/decision-rules.js +61 -13
- package/modules/lifecycle/routes/done-when.js +2 -2
- package/modules/lifecycle/routes/gate-approvals.js +1 -1
- package/modules/lifecycle/routes/goals.js +4 -4
- package/modules/lifecycle/routes/project-settings.js +2 -2
- package/modules/lifecycle/routes/tasks.js +1 -1
- package/modules/lifecycle/routes/versions.js +1 -1
- package/modules/npm-release/routes/release.js +1 -0
- package/modules/onboarding/routes/access-requests.js +3 -3
- package/modules/provisioning/github-setup.js +129 -0
- package/modules/provisioning/module.json +2 -1
- package/modules/provisioning/provisioning.js +3 -0
- package/modules/provisioning/routes/callback-page.js +66 -1
- package/modules/provisioning/routes/core-upgrade.js +11 -0
- package/modules/provisioning/routes/github-setup.js +113 -0
- package/modules/provisioning/routes/provisioning.js +11 -45
- package/modules/public-landing/public/projects.html +105 -57
- package/modules/render-deploy/routes/act.js +1 -1
- package/modules/security/routes/reports.js +3 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +12 -0
- package/scripts/gds/fitness.js +7 -0
- package/scripts/gds/oauth-secret.js +4 -2
- package/scripts/gds/provision-github-setup.js +148 -0
- package/scripts/gds/provision.js +19 -5
- package/src/bongos/act-alone.js +84 -0
- package/src/bongos/routes/builders.js +6 -1
- package/src/module-api.js +7 -1
- package/tests/autonomy_fence_priority.mjs +3 -1
- package/tests/github_one_trip.mjs +297 -0
- package/tests/government_act_alone_buildings.mjs +430 -0
- package/tests/module_api.mjs +1 -0
- package/tests/npm_release_release.mjs +2 -1
- package/tests/projects_hub_dns_ready.mjs +2 -1
- package/tests/projects_hub_pre_uat.mjs +17 -9
- package/tests/provision.mjs +51 -9
- package/tests/provisioning_github_app_routes.mjs +94 -8
- package/tests/ship_mode.mjs +2 -1
- package/tests/wizard_github_feedback.mjs +8 -5
package/docs/api/openapi.json
CHANGED
|
@@ -16460,6 +16460,27 @@
|
|
|
16460
16460
|
"security": []
|
|
16461
16461
|
}
|
|
16462
16462
|
},
|
|
16463
|
+
"/provisioning/github-app/setup": {
|
|
16464
|
+
"get": {
|
|
16465
|
+
"operationId": "get_provisioning_github_app_setup",
|
|
16466
|
+
"tags": [
|
|
16467
|
+
"provisioning"
|
|
16468
|
+
],
|
|
16469
|
+
"summary": "GET /provisioning/github-app/setup",
|
|
16470
|
+
"description": "GET /provisioning/github-app/setup?installation_id=&setup_action=&state= — the App's setup_url (task 1004649). GitHub sends the founder's BROWSER here after they install the app (or change its repos), carrying the state we put on the install link. GitHub's own docs warn the installation_id can be spoofed, so this route trusts NOTHING it is handed: it records only that an install was REPORTED for the attempt — which makes the runner ask GitHub, with the app's own key, whether the app really is on the repo — and hands the founder back to the project page. A missing or unknown state gets the same way back, without the attempt. rank: public — a browser redirect with no session; no secret revealed, no authority changed, the only write an audit row.\n\n**Rank:** `public` — No authentication — any caller.",
|
|
16471
|
+
"x-rank": "public",
|
|
16472
|
+
"x-source": "modules/provisioning/routes/github-setup.js",
|
|
16473
|
+
"responses": {
|
|
16474
|
+
"200": {
|
|
16475
|
+
"description": "Success."
|
|
16476
|
+
},
|
|
16477
|
+
"400": {
|
|
16478
|
+
"$ref": "#/components/responses/BadRequest"
|
|
16479
|
+
}
|
|
16480
|
+
},
|
|
16481
|
+
"security": []
|
|
16482
|
+
}
|
|
16483
|
+
},
|
|
16463
16484
|
"/provisioning/github-app/status": {
|
|
16464
16485
|
"get": {
|
|
16465
16486
|
"operationId": "get_provisioning_github_app_status",
|
|
@@ -16467,9 +16488,9 @@
|
|
|
16467
16488
|
"provisioning"
|
|
16468
16489
|
],
|
|
16469
16490
|
"summary": "GET /provisioning/github-app/status",
|
|
16470
|
-
"description": "GET /provisioning/github-app/status?state=<> — the PUBLIC progress read
|
|
16491
|
+
"description": "GET /provisioning/github-app/status?state=<> — the PUBLIC progress read (task 1004548; the checklist since task 1004649). Reveals the manifest lifecycle status, the instance's own (already-public) domain and repo, the App's public slug, and the four-step checklist with the one-trip install link — never a secret. `ready` is true iff sign-in is verified (the auto-open signal). `terminal` now waits for the install too: a finished sign-in with the app not yet installed is not the end of the trip. rank: public — no session, no mutation, no secret; an unknown state is a 404 no-op.\n\n**Rank:** `public` — No authentication — any caller.",
|
|
16471
16492
|
"x-rank": "public",
|
|
16472
|
-
"x-source": "modules/provisioning/routes/
|
|
16493
|
+
"x-source": "modules/provisioning/routes/github-setup.js",
|
|
16473
16494
|
"responses": {
|
|
16474
16495
|
"200": {
|
|
16475
16496
|
"description": "Success.",
|
|
@@ -26764,7 +26785,11 @@
|
|
|
26764
26785
|
"terminal": {},
|
|
26765
26786
|
"domain": {},
|
|
26766
26787
|
"instance_status": {},
|
|
26767
|
-
"app_slug": {}
|
|
26788
|
+
"app_slug": {},
|
|
26789
|
+
"checklist": {},
|
|
26790
|
+
"install_url": {},
|
|
26791
|
+
"repo": {},
|
|
26792
|
+
"verifying": {}
|
|
26768
26793
|
},
|
|
26769
26794
|
"required": [
|
|
26770
26795
|
"ok",
|
|
@@ -26774,7 +26799,11 @@
|
|
|
26774
26799
|
"terminal",
|
|
26775
26800
|
"domain",
|
|
26776
26801
|
"instance_status",
|
|
26777
|
-
"app_slug"
|
|
26802
|
+
"app_slug",
|
|
26803
|
+
"checklist",
|
|
26804
|
+
"install_url",
|
|
26805
|
+
"repo",
|
|
26806
|
+
"verifying"
|
|
26778
26807
|
]
|
|
26779
26808
|
},
|
|
26780
26809
|
"GetProvisioningHealthResponse": {
|
|
@@ -26866,12 +26895,14 @@
|
|
|
26866
26895
|
"properties": {
|
|
26867
26896
|
"instance": {},
|
|
26868
26897
|
"open_intent": {},
|
|
26869
|
-
"github_app": {}
|
|
26898
|
+
"github_app": {},
|
|
26899
|
+
"github_setup": {}
|
|
26870
26900
|
},
|
|
26871
26901
|
"required": [
|
|
26872
26902
|
"instance",
|
|
26873
26903
|
"open_intent",
|
|
26874
|
-
"github_app"
|
|
26904
|
+
"github_app",
|
|
26905
|
+
"github_setup"
|
|
26875
26906
|
]
|
|
26876
26907
|
},
|
|
26877
26908
|
"GetProvisioningInstancesIdSettingsResponse": {
|
|
@@ -34222,7 +34253,7 @@
|
|
|
34222
34253
|
"description": "A required dependency/feature is not configured or is temporarily down."
|
|
34223
34254
|
}
|
|
34224
34255
|
},
|
|
34225
|
-
"x-endpoint-count":
|
|
34256
|
+
"x-endpoint-count": 534,
|
|
34226
34257
|
"x-schema-count": 574,
|
|
34227
34258
|
"x-undocumented-bodies": 12,
|
|
34228
34259
|
"x-response-schemas": 380,
|
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. 534 endpoints across 95 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`.
|
|
@@ -636,7 +636,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
|
|
|
636
636
|
| 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… |
|
|
637
637
|
| POST | `/api/bongos/projects/invite-guild` | `metic+archon` | `client_id`, `guild` | own-or-metic in effect, the SAME gate as POST /projects/invite above and for the same reasons (a non-inviter gets that route's unchanged … |
|
|
638
638
|
|
|
639
|
-
## `provisioning` (
|
|
639
|
+
## `provisioning` (43)
|
|
640
640
|
|
|
641
641
|
| Method | Path | Rank | Body | Description |
|
|
642
642
|
|---|---|---|---|---|
|
|
@@ -644,7 +644,8 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
|
|
|
644
644
|
| GET | `/api/bongos/provisioning/fleet` | `metic+archon` | — | GET /provisioning/fleet — the full instance roster across all owners. |
|
|
645
645
|
| GET | `/api/bongos/provisioning/fleet/cost-ledger` | `metic+archon` | — | GET /provisioning/fleet/cost-ledger — per-instance monthly cost to us + estimated cost to its owner, with totals. |
|
|
646
646
|
| GET | `/api/bongos/provisioning/github-app/callback` | `public` | — | GET /provisioning/github-app/callback?code=&state= — GitHub redirects the owner's BROWSER here after they approve the App Manifest (task … |
|
|
647
|
-
| GET | `/api/bongos/provisioning/github-app/
|
|
647
|
+
| GET | `/api/bongos/provisioning/github-app/setup` | `public` | — | GET /provisioning/github-app/setup?installation_id=&setup_action=&state= — the App's setup_url (task 1004649). |
|
|
648
|
+
| GET | `/api/bongos/provisioning/github-app/status` | `public` | — | GET /provisioning/github-app/status?state=<> — the PUBLIC progress read (task 1004548; the checklist since task 1004649). |
|
|
648
649
|
| GET | `/api/bongos/provisioning/health` | `public` | — | GET /provisioning/health — liveness + the core version this module mounted against. |
|
|
649
650
|
| GET | `/api/bongos/provisioning/instances` | `any-builder` | — | GET /provisioning/instances — the caller's own instances + each open intent. |
|
|
650
651
|
| 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`, `ship_mode` | POST /provisioning/instances — request a new instance. |
|