@nanobpm/nano-workforce 0.35.0 → 0.35.1
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/CHANGELOG.md +7 -0
- package/SPEC.md +12 -4
- package/app/version.ts +1 -1
- package/deno.json +1 -1
- package/deno.lock +2 -2
- package/nano.app.json +1 -1
- package/openapi.json +1 -1
- package/operations/getVersion.test.ts +2 -2
- package/operations/getVersion.ts +1 -1
- package/operations/listActivePrs.test.ts +2 -2
- package/operations/listActivePrs.ts +1 -1
- package/operations/postMessage.ts +1 -1
- package/operations/startConvergenceLoop.ts +1 -1
- package/operations/startPlanFanout.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.35.1](https://github.com/nanobpm/nano-workforce/compare/v0.35.0...v0.35.1) (2026-08-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **api:** move OpenAPI base off the reserved /app page-runtime namespace ([#103](https://github.com/nanobpm/nano-workforce/issues/103)) ([6dfb77f](https://github.com/nanobpm/nano-workforce/commit/6dfb77ff82b532965c4a9823d771d46d4ffa920e)), closes [#102](https://github.com/nanobpm/nano-workforce/issues/102)
|
|
7
|
+
|
|
1
8
|
# [0.35.0](https://github.com/nanobpm/nano-workforce/compare/v0.34.0...v0.35.0) (2026-08-10)
|
|
2
9
|
|
|
3
10
|
|
package/SPEC.md
CHANGED
|
@@ -261,13 +261,21 @@ child grids, a lazily-loaded transcript, and a conditional **answer** form shown
|
|
|
261
261
|
when the PR has an open escalation (`open_escalation_id`, denormalised onto the
|
|
262
262
|
row by migration `003`).
|
|
263
263
|
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
The app-specific business-logic endpoints are **OpenAPI operations** mounted
|
|
265
|
+
under `api.base` (`/app/api`), each implemented by a delegate module in
|
|
266
|
+
`operations/`, plus a `/hooks/*` webhook. The runtime serves them all; `main.ts`
|
|
267
|
+
only starts the runtime and the review-ready poller. The full, authoritative
|
|
268
|
+
contract is `openapi.json` (Swagger UI at `/app/api-docs`); the OpenAPI rows
|
|
269
|
+
below are the complete set of operations, `/hooks/submit` is one of the `/hooks/*`
|
|
270
|
+
webhooks:
|
|
266
271
|
|
|
267
272
|
| method | route | purpose |
|
|
268
273
|
|---|---|---|
|
|
269
|
-
| `
|
|
270
|
-
| `
|
|
274
|
+
| `GET` | `/app/api/status` | list tracked PRs + count |
|
|
275
|
+
| `GET` | `/app/api/version` | app + engine version |
|
|
276
|
+
| `POST` | `/app/api/actions/start/convergence-loop` | parse the PR ref → create the aggregate + start the process |
|
|
277
|
+
| `POST` | `/app/api/actions/start/plan-fanout` | start a plan fan-out run |
|
|
278
|
+
| `POST` | `/app/api/actions/message` (`escalation-answered`) | answer an open escalation → publish `escalation-answered` |
|
|
271
279
|
| `POST` | `/hooks/submit` | webhook submit (shared-secret auth) → start the process |
|
|
272
280
|
|
|
273
281
|
Everything else (`GET /`, `GET /app/pages/*`, `GET /app/data/*`, the renderer) is
|
package/app/version.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// debugging a stuck instance can confirm the process is on the code they think it is.
|
|
10
10
|
//
|
|
11
11
|
// Every probe is best-effort: a missing file or unavailable `.git` yields `null` for that field
|
|
12
|
-
// rather than throwing, so `/app/version` never fails just because one source is absent.
|
|
12
|
+
// rather than throwing, so `/app/api/version` never fails just because one source is absent.
|
|
13
13
|
import { readFileSync } from "node:fs";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
import { dirname, join, resolve, isAbsolute } from "node:path";
|
package/deno.json
CHANGED
package/deno.lock
CHANGED
|
@@ -1756,11 +1756,11 @@
|
|
|
1756
1756
|
},
|
|
1757
1757
|
"workspace": {
|
|
1758
1758
|
"dependencies": [
|
|
1759
|
-
"npm:@nanobpm/urban
|
|
1759
|
+
"npm:@nanobpm/urban@0.32"
|
|
1760
1760
|
],
|
|
1761
1761
|
"packageJson": {
|
|
1762
1762
|
"dependencies": [
|
|
1763
|
-
"npm:@nanobpm/urban
|
|
1763
|
+
"npm:@nanobpm/urban@0.32",
|
|
1764
1764
|
"npm:@semantic-release/changelog@^6.0.3",
|
|
1765
1765
|
"npm:@semantic-release/git@^10.0.1",
|
|
1766
1766
|
"npm:@semantic-release/npm@^13.1.5",
|
package/nano.app.json
CHANGED
package/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Nano Workforce control API",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
-
"description": "The externally-facing control surface an operator, an automation harness, or an LLM uses to observe and steer PR-convergence and planning runs. Contract-first (ADR 0058): the toolkit derives typed request/response contracts + runtime validators from this document and each `operationId` is implemented by a delegate module in `operations/`. Mounted under base `/app
|
|
6
|
+
"description": "The externally-facing control surface an operator, an automation harness, or an LLM uses to observe and steer PR-convergence and planning runs. Contract-first (ADR 0058): the toolkit derives typed request/response contracts + runtime validators from this document and each `operationId` is implemented by a delegate module in `operations/`. Mounted under base `/app/api`, kept off the framework-reserved `/app` page-runtime namespace (which owns `/app/runtime.js`, `/app/pages/*`, `/app/data/*`). The `/hooks/*` webhook endpoints stay on `actions[]` because they live outside the `/app` namespace."
|
|
7
7
|
},
|
|
8
8
|
"components": {
|
|
9
9
|
"securitySchemes": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Tests for GET /app/version → operation `getVersion` (ADR 0058 OpenAPI surface).
|
|
1
|
+
// Tests for GET /app/api/version → operation `getVersion` (ADR 0058 OpenAPI surface).
|
|
2
2
|
// Ported from the previous actions/version.test.ts. Method handling now belongs to the router
|
|
3
3
|
// (only GET is routed here), so there is no 405 case to test at the delegate level.
|
|
4
4
|
import { assert, assertEquals } from "jsr:@std/assert@1";
|
|
@@ -12,7 +12,7 @@ function input(headers: Record<string, string> = {}) {
|
|
|
12
12
|
return {
|
|
13
13
|
req: {
|
|
14
14
|
method: "GET",
|
|
15
|
-
path: "/app/version",
|
|
15
|
+
path: "/app/api/version",
|
|
16
16
|
query: new URLSearchParams(),
|
|
17
17
|
headers: new Headers(headers),
|
|
18
18
|
text: async () => "",
|
package/operations/getVersion.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GET /app/version → operationId `getVersion` (ADR 0058 OpenAPI surface, mounted under base /app).
|
|
1
|
+
// GET /app/api/version → operationId `getVersion` (ADR 0058 OpenAPI surface, mounted under base /app/api).
|
|
2
2
|
// The running app's identity (app + resolved @nanobpm/urban versions, git commit/branch, JS runtime,
|
|
3
3
|
// pid, uptime). Because the app runs its `.ts` sources directly from a checkout with no build step,
|
|
4
4
|
// restarts alone don't tell you whether a fix is live; this endpoint does.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Tests for GET /app/status → operation `listActivePrs` (ADR 0058 OpenAPI surface).
|
|
1
|
+
// Tests for GET /app/api/status → operation `listActivePrs` (ADR 0058 OpenAPI surface).
|
|
2
2
|
// Covers the happy path (count/prs projection) and the optional shared-secret guard. A minimal
|
|
3
3
|
// in-memory DataLayer backs `activePrs` (it reads the `pull_requests` table via `.all()`).
|
|
4
4
|
import { assert, assertEquals } from "jsr:@std/assert@1";
|
|
@@ -21,7 +21,7 @@ function input(headers: Record<string, string> = {}) {
|
|
|
21
21
|
return {
|
|
22
22
|
req: {
|
|
23
23
|
method: "GET",
|
|
24
|
-
path: "/app/status",
|
|
24
|
+
path: "/app/api/status",
|
|
25
25
|
query: new URLSearchParams(),
|
|
26
26
|
headers: new Headers(headers),
|
|
27
27
|
text: async () => "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GET /app/status → operationId `listActivePrs` (ADR 0058 OpenAPI surface, mounted under base /app).
|
|
1
|
+
// GET /app/api/status → operationId `listActivePrs` (ADR 0058 OpenAPI surface, mounted under base /app/api).
|
|
2
2
|
// List the PRs currently in flight (every tracked PR not converged/abandoned) so an operator or an
|
|
3
3
|
// external automation harness can see active work — and grab a `processKey` to cancel — without
|
|
4
4
|
// opening the DB or the UI. Read-only projection over the datasource.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// POST /app/actions/message → operationId `postMessage` (ADR 0058, base /app).
|
|
1
|
+
// POST /app/api/actions/message → operationId `postMessage` (ADR 0058, base /app/api).
|
|
2
2
|
// Replaces the hand-rolled action that overrode the generic publishMessage action. For the
|
|
3
3
|
// `escalation-answered` message we run the review answer flow, and for `feature-escalation-answered`
|
|
4
4
|
// (issue #25) the implementation-phase (per-task) answer flow: record the answer, resume the parked
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// POST /app/actions/start/convergence-loop → operationId `startConvergenceLoop` (ADR 0058, base /app).
|
|
1
|
+
// POST /app/api/actions/start/convergence-loop → operationId `startConvergenceLoop` (ADR 0058, base /app/api).
|
|
2
2
|
// Replaces the hand-rolled action that overrode the generic "start process" palette action: parse the
|
|
3
3
|
// PR reference and register/refresh the PR aggregate (idempotent on prKey) before starting the loop.
|
|
4
4
|
//
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// POST /app/actions/start/plan-fanout → operationId `startPlanFanout` (ADR 0058, base /app).
|
|
1
|
+
// POST /app/api/actions/start/plan-fanout → operationId `startPlanFanout` (ADR 0058, base /app/api).
|
|
2
2
|
// Replaces the hand-rolled action that overrode the generic "start process" palette action: parse the
|
|
3
3
|
// issue reference and register/refresh the plan aggregate (idempotent on planKey) before starting the
|
|
4
4
|
// planning fan-out. An unparseable reference is a 400; an already-running plan short-circuits.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-workforce",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"description": "Nano Workforce — an Agent Graph Orchestration application for Agentic SDLC: durable BPMN processes that coordinate a graph of AI agents across the software delivery lifecycle.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "main.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test": "deno test -A"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@nanobpm/urban": "^0.
|
|
43
|
+
"@nanobpm/urban": "^0.32.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@semantic-release/changelog": "^6.0.3",
|