@bongos/core 1.17.2 → 1.17.3
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 +292 -32
- 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/api/openapi.json +65 -26
- package/docs/api-reference.md +3 -2
- package/modules/hall-ui/public/builders.js +96 -646
- package/modules/hall-ui/public/goal-inbox.js +67 -26
- package/modules/hall-ui/public/goals-page.js +4 -1
- package/modules/hall-ui/public/goals.html +8 -0
- package/modules/hall-ui/public/hall-kit.js +474 -0
- package/modules/hall-ui/public/hall-widgets.js +11 -15
- package/modules/hall-ui/public/instances-panel.js +24 -3
- package/modules/hall-ui/public/new-project-wizard.js +6 -5
- package/modules/hall-ui/public/style.css +125 -0
- package/modules/hall-ui/public/work.css +194 -0
- package/modules/hall-ui/public/work.html +46 -374
- package/modules/hall-ui/public/work.js +137 -102
- package/modules/lifecycle/criterion-suggest.js +80 -0
- package/modules/lifecycle/db.js +42 -5
- package/modules/lifecycle/routes/goals.js +26 -0
- package/modules/lifecycle/routes/tasks.js +21 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/scripts/hall-preview/README.md +103 -0
- package/scripts/hall-preview/fixtures/access-requests.json +1 -0
- package/scripts/hall-preview/fixtures/achievements.json +76 -0
- package/scripts/hall-preview/fixtures/analytics__builder.json +251 -0
- package/scripts/hall-preview/fixtures/audit-log.json +1 -0
- package/scripts/hall-preview/fixtures/boxes__cost-ledger.json +1 -0
- package/scripts/hall-preview/fixtures/builders__active-claims.json +1 -0
- package/scripts/hall-preview/fixtures/builders__directory.json +81 -0
- package/scripts/hall-preview/fixtures/builders__roster.json +1 -0
- package/scripts/hall-preview/fixtures/goals.json +502 -0
- package/scripts/hall-preview/fixtures/goals__25.json +96 -0
- package/scripts/hall-preview/fixtures/goals__26.json +67 -0
- package/scripts/hall-preview/fixtures/goals__3.json +103 -0
- package/scripts/hall-preview/fixtures/goals__35.json +49 -0
- package/scripts/hall-preview/fixtures/goals__conflicts.json +154 -0
- package/scripts/hall-preview/fixtures/goals__detail.json +96 -0
- package/scripts/hall-preview/fixtures/goals__inbox.json +5 -0
- package/scripts/hall-preview/fixtures/goals__requests.json +3 -0
- package/scripts/hall-preview/fixtures/grades__by-builder.json +1 -0
- package/scripts/hall-preview/fixtures/inbox.json +330 -0
- package/scripts/hall-preview/fixtures/instance.json +124 -0
- package/scripts/hall-preview/fixtures/leaderboard.json +184 -0
- package/scripts/hall-preview/fixtures/me.json +476 -0
- package/scripts/hall-preview/fixtures/me__recent-ships.json +304 -0
- package/scripts/hall-preview/fixtures/override-requests.json +1 -0
- package/scripts/hall-preview/fixtures/provisioning__fleet.json +1 -0
- package/scripts/hall-preview/fixtures/provisioning__fleet__cost-ledger.json +1 -0
- package/scripts/hall-preview/fixtures/provisioning__instances.json +1 -0
- package/scripts/hall-preview/fixtures/public__analytics__ecosystem.json +516 -0
- package/scripts/hall-preview/fixtures/public__bounty-table.json +37 -0
- package/scripts/hall-preview/fixtures/public__cost-summary.json +742 -0
- package/scripts/hall-preview/fixtures/public__estimation-drift.json +41 -0
- package/scripts/hall-preview/fixtures/public__grades.json +50 -0
- package/scripts/hall-preview/fixtures/public__progress.json +124 -0
- package/scripts/hall-preview/fixtures/public__recent-shipped.json +426 -0
- package/scripts/hall-preview/fixtures/public__repo-health.json +160 -0
- package/scripts/hall-preview/fixtures/public__repo-info.json +5 -0
- package/scripts/hall-preview/fixtures/security__docs.json +1 -0
- package/scripts/hall-preview/fixtures/security__reports.json +1 -0
- package/scripts/hall-preview/fixtures/sessions__search.json +1 -0
- package/scripts/hall-preview/fixtures/tasks.json +2420 -0
- package/scripts/hall-preview/fixtures/tasks__claimable.json +2555 -0
- package/scripts/hall-preview/fixtures/tasks__detail.json +111 -0
- package/scripts/hall-preview/fixtures/tasks__peer-votes__feed.json +330 -0
- package/scripts/hall-preview/fixtures/versions.json +89 -0
- package/scripts/hall-preview/refresh-fixtures.js +77 -0
- package/scripts/hall-preview/server.js +178 -0
- package/scripts/migrate.sh +29 -4
- package/src/bongos/optimizer.js +37 -2
- package/tests/criterion_suggest.mjs +106 -0
- package/tests/migrate_root_resolution.mjs +97 -0
package/docs/api/openapi.json
CHANGED
|
@@ -4589,6 +4589,58 @@
|
|
|
4589
4589
|
]
|
|
4590
4590
|
}
|
|
4591
4591
|
},
|
|
4592
|
+
"/goals/{id}/suggest-criteria": {
|
|
4593
|
+
"get": {
|
|
4594
|
+
"operationId": "get_goals_id_suggest_criteria",
|
|
4595
|
+
"tags": [
|
|
4596
|
+
"goals"
|
|
4597
|
+
],
|
|
4598
|
+
"summary": "GET /goals/:id/suggest-criteria",
|
|
4599
|
+
"description": "GET /goals/:id/suggest-criteria?title=&description=&limit= — task 2165. Rank THIS goal's unsatisfied criteria by lexical overlap with a candidate task, so a create flow can SUGGEST which done-when criterion to link (the author confirms/overrides — nothing is auto-linked). Read-only + advisory; rank: any-builder (same as GET /goals/:id).\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
|
|
4600
|
+
"x-rank": "any-builder",
|
|
4601
|
+
"x-source": "modules/lifecycle/routes/goals.js",
|
|
4602
|
+
"parameters": [
|
|
4603
|
+
{
|
|
4604
|
+
"name": "id",
|
|
4605
|
+
"in": "path",
|
|
4606
|
+
"required": true,
|
|
4607
|
+
"schema": {
|
|
4608
|
+
"type": "string"
|
|
4609
|
+
},
|
|
4610
|
+
"description": "Path parameter `id`."
|
|
4611
|
+
}
|
|
4612
|
+
],
|
|
4613
|
+
"responses": {
|
|
4614
|
+
"200": {
|
|
4615
|
+
"description": "Success.",
|
|
4616
|
+
"content": {
|
|
4617
|
+
"application/json": {
|
|
4618
|
+
"schema": {
|
|
4619
|
+
"$ref": "#/components/schemas/GetGoalsIdSuggestCriteriaResponse"
|
|
4620
|
+
}
|
|
4621
|
+
}
|
|
4622
|
+
}
|
|
4623
|
+
},
|
|
4624
|
+
"400": {
|
|
4625
|
+
"$ref": "#/components/responses/BadRequest"
|
|
4626
|
+
},
|
|
4627
|
+
"401": {
|
|
4628
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
4629
|
+
},
|
|
4630
|
+
"403": {
|
|
4631
|
+
"$ref": "#/components/responses/Forbidden"
|
|
4632
|
+
},
|
|
4633
|
+
"404": {
|
|
4634
|
+
"$ref": "#/components/responses/NotFound"
|
|
4635
|
+
}
|
|
4636
|
+
},
|
|
4637
|
+
"security": [
|
|
4638
|
+
{
|
|
4639
|
+
"builderSession": []
|
|
4640
|
+
}
|
|
4641
|
+
]
|
|
4642
|
+
}
|
|
4643
|
+
},
|
|
4592
4644
|
"/goals/{id}/tasks": {
|
|
4593
4645
|
"post": {
|
|
4594
4646
|
"operationId": "post_goals_id_tasks",
|
|
@@ -8464,14 +8516,7 @@
|
|
|
8464
8516
|
},
|
|
8465
8517
|
"responses": {
|
|
8466
8518
|
"200": {
|
|
8467
|
-
"description": "Success."
|
|
8468
|
-
"content": {
|
|
8469
|
-
"application/json": {
|
|
8470
|
-
"schema": {
|
|
8471
|
-
"$ref": "#/components/schemas/PostTasksResponse"
|
|
8472
|
-
}
|
|
8473
|
-
}
|
|
8474
|
-
}
|
|
8519
|
+
"description": "Success."
|
|
8475
8520
|
},
|
|
8476
8521
|
"400": {
|
|
8477
8522
|
"$ref": "#/components/responses/ValidationFailed"
|
|
@@ -10497,6 +10542,17 @@
|
|
|
10497
10542
|
"dependencies"
|
|
10498
10543
|
]
|
|
10499
10544
|
},
|
|
10545
|
+
"GetGoalsIdSuggestCriteriaResponse": {
|
|
10546
|
+
"type": "object",
|
|
10547
|
+
"properties": {
|
|
10548
|
+
"goal_id": {},
|
|
10549
|
+
"suggestions": {}
|
|
10550
|
+
},
|
|
10551
|
+
"required": [
|
|
10552
|
+
"goal_id",
|
|
10553
|
+
"suggestions"
|
|
10554
|
+
]
|
|
10555
|
+
},
|
|
10500
10556
|
"GetGoalsResponse": {
|
|
10501
10557
|
"type": "object",
|
|
10502
10558
|
"properties": {
|
|
@@ -13752,23 +13808,6 @@
|
|
|
13752
13808
|
],
|
|
13753
13809
|
"additionalProperties": false
|
|
13754
13810
|
},
|
|
13755
|
-
"PostTasksResponse": {
|
|
13756
|
-
"type": "object",
|
|
13757
|
-
"properties": {
|
|
13758
|
-
"task": {},
|
|
13759
|
-
"needs_migration": {},
|
|
13760
|
-
"criteria": {},
|
|
13761
|
-
"idempotent": {
|
|
13762
|
-
"type": "boolean"
|
|
13763
|
-
},
|
|
13764
|
-
"credits_reward": {}
|
|
13765
|
-
},
|
|
13766
|
-
"required": [
|
|
13767
|
-
"task",
|
|
13768
|
-
"needs_migration",
|
|
13769
|
-
"criteria"
|
|
13770
|
-
]
|
|
13771
|
-
},
|
|
13772
13811
|
"PostVersionsIdDoneWhenRequest": {
|
|
13773
13812
|
"type": "object",
|
|
13774
13813
|
"properties": {
|
|
@@ -14021,7 +14060,7 @@
|
|
|
14021
14060
|
"description": "A required dependency/feature is not configured or is temporarily down."
|
|
14022
14061
|
}
|
|
14023
14062
|
},
|
|
14024
|
-
"x-endpoint-count":
|
|
14063
|
+
"x-endpoint-count": 230,
|
|
14025
14064
|
"x-schema-count": 250,
|
|
14026
14065
|
"x-undocumented-bodies": 8,
|
|
14027
14066
|
"x-response-schemas": 170,
|
package/docs/api-reference.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# GDS 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. 230 endpoints across 38 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/<redacted>.md)): `public` < `any-builder` < `metic+archon` < `archon`.
|
|
@@ -181,7 +181,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/<redacted>
|
|
|
181
181
|
| GET | `/api/bongos/gate-approvals` | `archon` | — | GET /gate-approvals — open PRs awaiting owner approval (gate-review red), with the verdict + per-file reasons + changed files + diff link. |
|
|
182
182
|
| POST | `/api/bongos/gate-approvals/:pr/approve` | `archon` | — | POST /gate-approvals/:pr/approve — record owner approval for a stuck gate PR and re-run the gate-review check so it clears. |
|
|
183
183
|
|
|
184
|
-
## `goals` (
|
|
184
|
+
## `goals` (24)
|
|
185
185
|
|
|
186
186
|
| Method | Path | Rank | Body | Description |
|
|
187
187
|
|---|---|---|---|---|
|
|
@@ -203,6 +203,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/<redacted>
|
|
|
203
203
|
| POST | `/api/bongos/goals/:id/requests/:reqId/respond` | `any-builder` | `action` | POST /goals/:id/requests/:reqId/respond { action: approve\|deny } — an owner\| manager\|Archon resolves a pending join-request (task 1952). |
|
|
204
204
|
| POST | `/api/bongos/goals/:id/requests/:reqId/withdraw` | `any-builder` | — | POST /goals/:id/requests/:reqId/withdraw — the requester cancels their OWN pending join-request (task 1953): the symmetric self-served mi… |
|
|
205
205
|
| POST | `/api/bongos/goals/:id/scope` | `metic+archon` | `add` | POST /goals/:id/scope — "ask to widen": add module(s) to a goal's scope_modules (ADR 0086 §4 / BV1.R64). |
|
|
206
|
+
| GET | `/api/bongos/goals/:id/suggest-criteria` | `any-builder` | — | GET /goals/:id/suggest-criteria?title=&description=&limit= — task 2165. |
|
|
206
207
|
| POST | `/api/bongos/goals/:id/tasks` | `any-builder` | `title`, `description`, `touches`, `est_minutes`, `priority`, `kind`, `discipline`, `value_summary`, `parent_task_id` | POST /goals/:id/tasks — bounded task authoring within a goal's scope (BV1.R60 / ADR 0086 §3). |
|
|
207
208
|
| POST | `/api/bongos/goals/:id/transfer` | `any-builder` | `builder_id` | POST /goals/:id/transfer — hand the goal to a new owner (task 1735). |
|
|
208
209
|
| PATCH | `/api/bongos/goals/:id/visibility` | `any-builder` | `visibility` | PATCH /goals/:id/visibility — make a goal public\|private (task 1952 / ADR 0112). |
|