dominus-sdk-nodejs 11.0.5 → 11.0.7
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/README.md +351 -351
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/namespaces/artifacts.d.ts.map +1 -1
- package/dist/namespaces/artifacts.js +13 -2
- package/dist/namespaces/artifacts.js.map +1 -1
- package/dist/namespaces/browser.d.ts +2 -0
- package/dist/namespaces/browser.d.ts.map +1 -1
- package/dist/namespaces/browser.js.map +1 -1
- package/dist/namespaces/recipes.d.ts +17 -1
- package/dist/namespaces/recipes.d.ts.map +1 -1
- package/dist/namespaces/recipes.js +23 -2
- package/dist/namespaces/recipes.js.map +1 -1
- package/dist/refs/grammar.d.ts +54 -0
- package/dist/refs/grammar.d.ts.map +1 -0
- package/dist/refs/grammar.js +179 -0
- package/dist/refs/grammar.js.map +1 -0
- package/dist/refs/resolve.d.ts +49 -0
- package/dist/refs/resolve.d.ts.map +1 -0
- package/dist/refs/resolve.js +129 -0
- package/dist/refs/resolve.js.map +1 -0
- package/dist/refs/types.d.ts +56 -0
- package/dist/refs/types.d.ts.map +1 -0
- package/dist/refs/types.js +15 -0
- package/dist/refs/types.js.map +1 -0
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/00-reading-order.md +35 -35
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/01-purpose-and-boundaries.md +48 -48
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/02-repo-map-and-entrypoints.md +46 -46
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/03-api-surface.md +59 -59
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/04-data-state-and-storage.md +36 -36
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/05-integrations-and-runtime.md +40 -40
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/06-workflows-commands-and-ci.md +58 -58
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/07-operations-release-and-live-proof.md +40 -40
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/08-security-privacy-and-secrets.md +38 -38
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/09-known-risks-and-debt.md +34 -34
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/10-agent-playbook.md +48 -48
- package/docs/agent-guide/2026-08-04-sdk-nodejs/00-reading-order.md +11 -11
- package/docs/agent-guide/2026-08-04-sdk-nodejs/01-purpose-and-boundaries.md +14 -14
- package/docs/agent-guide/2026-08-04-sdk-nodejs/03-api-surface.md +16 -16
- package/docs/agent-guide/2026-08-04-sdk-nodejs/10-agent-playbook.md +14 -14
- package/docs/agent-guide/INDEX.md +14 -14
- package/docs/agent-guide/current.md +22 -22
- package/docs/architecture.md +119 -119
- package/docs/atlas/2026-07-24-1231-sdk-nodejs-blockers.md +15 -15
- package/docs/atlas/2026-07-24-1231-sdk-nodejs-proof-ladder.md +25 -25
- package/docs/atlas/2026-07-24-1231-sdk-nodejs-truthmap.md +43 -43
- package/docs/atlas/2026-08-04-sdk-nodejs-blockers.md +12 -12
- package/docs/atlas/2026-08-04-sdk-nodejs-proof-ladder.md +9 -9
- package/docs/atlas/2026-08-04-sdk-nodejs-truthmap.md +21 -21
- package/docs/atlas/INDEX.md +26 -26
- package/docs/janitor/2026-06-27-0849-sdk-orient-cleanup-audit.md +102 -102
- package/docs/janitor/2026-08-04-sdk-nodejs-cleanup-audit.md +14 -14
- package/docs/plans/2026-08-04-pending-work-fruition-summary.md +46 -46
- package/docs/routes-services.md +85 -80
- package/docs/usage-reference.md +713 -698
- package/docs/workflow-hard-cut-release.md +24 -24
- package/package.json +55 -55
package/docs/routes-services.md
CHANGED
|
@@ -1,80 +1,85 @@
|
|
|
1
|
-
# Routes, Services, and Endpoints Assessment
|
|
2
|
-
|
|
3
|
-
This assessment is derived from all public namespace methods under `src/namespaces/` and their configured routes in SDK request calls.
|
|
4
|
-
|
|
5
|
-
Audited commands: **~450** (hand-counted) across **27** top-level namespace files in `src/namespaces/`. The Service Matrix below lists **29** namespace surfaces because it expands dotted sub-namespaces (e.g. `ai.*` and `auth.*`) into their own rows, so the surface count is intentionally higher than the file count, not a typo. These totals are hand-maintained — re-derive from source before quoting.
|
|
6
|
-
|
|
7
|
-
## Service Matrix
|
|
8
|
-
|
|
9
|
-
| Service | Commands | Namespaces | Distinct Route Expressions | Notes |
|
|
10
|
-
|---|---:|---|---:|---|
|
|
11
|
-
| `guardian` | 146 | dominus.auth | 146 | HTTP API routes via Dominus client. |
|
|
12
|
-
| `agent-runtime` | 53 | dominus.ai, dominus.ai.artifacts, dominus.ai.rag, dominus.ai.results, dominus.ai.tools, dominus.ai.workflow | 51 | HTTP API routes via Dominus client. |
|
|
13
|
-
| `workflow-manager` | 38 | dominus.workflow | 36 | HTTP API routes via Dominus client. |
|
|
14
|
-
| `authority` | 33 | dominus.authority | 33 | Hard-cut app/org/env Authority surface. |
|
|
15
|
-
| `platform-worker` | 16 | dominus.platform | 16 | Gateway `/svc/platform/*` group/repository policy surface; policy helpers accept actor attribution headers. |
|
|
16
|
-
| `coder-runtime` | 11 | dominus.coder | 11 | Gateway `/svc/coder/*` run lifecycle surface; launch requires exactly one workflow or pipeline recipe ref. |
|
|
17
|
-
| `browser-worker` | 11 | dominus.browser | 10 | Authenticated `/svc/browser/*` browser automation primitive; Cloudflare Browser Run default, Browserbase fallback. |
|
|
18
|
-
| `portal-worker` | 22 | dominus.portal | 22 | HTTP API routes via Dominus client. |
|
|
19
|
-
| `db-worker` | 20 | dominus.db, dominus.ddl | 19 | HTTP API routes via Dominus client. |
|
|
20
|
-
| `smith` | 15 | dominus.ddl | 15 | HTTP API routes via Dominus client. |
|
|
21
|
-
| `b2-worker` | 14 | dominus.files | 14 | HTTP API routes via Dominus client. |
|
|
22
|
-
| `redis-worker` | 14 | dominus.redis | 14 | HTTP API routes via Dominus client. |
|
|
23
|
-
| `logs-worker` | 9 | dominus.logs | 4 | HTTP API routes via Dominus client; tail filters include `machine_id`. |
|
|
24
|
-
| `scribe` | 7 | dominus.secure | 7 | HTTP API routes via Dominus client. |
|
|
25
|
-
| `job-worker` | 8 | dominus.jobs | 6 | HTTP API routes via Dominus client. |
|
|
26
|
-
| `artifact-worker` | 6 | dominus.artifacts | 6 | HTTP API routes via Dominus client. |
|
|
27
|
-
| `stash-worker` managed tables | 6 | dominus.stash.tables | 6 | Typed self/group table routes through the authenticated gateway. |
|
|
28
|
-
| `admin-worker` | 5 | dominus.admin, dominus.files | 5 | HTTP API routes via Dominus client. |
|
|
29
|
-
| `warden` | 4 | dominus.secrets | 1 | Selected-scope grant semantics live in this group. |
|
|
30
|
-
| `courier-worker` | 5 | dominus.courier | 2 | HTTP API routes via Dominus client. |
|
|
31
|
-
| `gateway-local` | 4 | dominus.auth, dominus.health | 3 | Gateway `/health`, `/v1/ping`, and `/jwt/jwks` helpers. |
|
|
32
|
-
| `processor-service` | 3 | dominus.processor | 3 | HTTP API routes via Dominus client. |
|
|
33
|
-
| `sync-worker` | 2 | dominus.sync | 2 | HTTP API routes via Dominus client. |
|
|
34
|
-
| `local-jwt` | 1 | dominus.auth | 1 | Local JWT parsing/validation helpers in auth namespace. |
|
|
35
|
-
| `
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
| `/api/
|
|
43
|
-
| `/api/
|
|
44
|
-
| `/api/
|
|
45
|
-
| `/api/
|
|
46
|
-
| `/api/
|
|
47
|
-
| `/api/
|
|
48
|
-
| `/api/
|
|
49
|
-
| `/api/
|
|
50
|
-
| `/api/
|
|
51
|
-
| `/api/
|
|
52
|
-
| `/api/
|
|
53
|
-
| `/api/
|
|
54
|
-
| `/api/
|
|
55
|
-
| `/
|
|
56
|
-
| `/
|
|
57
|
-
| `/api/
|
|
58
|
-
| `/api/
|
|
59
|
-
| `/api/
|
|
60
|
-
| `/api/
|
|
61
|
-
| `/
|
|
62
|
-
| `/api/
|
|
63
|
-
| `/
|
|
64
|
-
| `/api/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- `dominus.
|
|
73
|
-
- `dominus.
|
|
74
|
-
- `dominus.
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
|
|
1
|
+
# Routes, Services, and Endpoints Assessment
|
|
2
|
+
|
|
3
|
+
This assessment is derived from all public namespace methods under `src/namespaces/` and their configured routes in SDK request calls.
|
|
4
|
+
|
|
5
|
+
Audited commands: **~450** (hand-counted) across **27** top-level namespace files in `src/namespaces/`. The Service Matrix below lists **29** namespace surfaces because it expands dotted sub-namespaces (e.g. `ai.*` and `auth.*`) into their own rows, so the surface count is intentionally higher than the file count, not a typo. These totals are hand-maintained — re-derive from source before quoting.
|
|
6
|
+
|
|
7
|
+
## Service Matrix
|
|
8
|
+
|
|
9
|
+
| Service | Commands | Namespaces | Distinct Route Expressions | Notes |
|
|
10
|
+
|---|---:|---|---:|---|
|
|
11
|
+
| `guardian` | 146 | dominus.auth | 146 | HTTP API routes via Dominus client. |
|
|
12
|
+
| `agent-runtime` | 53 | dominus.ai, dominus.ai.artifacts, dominus.ai.rag, dominus.ai.results, dominus.ai.tools, dominus.ai.workflow | 51 | HTTP API routes via Dominus client. |
|
|
13
|
+
| `workflow-manager` | 38 | dominus.workflow | 36 | HTTP API routes via Dominus client. |
|
|
14
|
+
| `authority` | 33 | dominus.authority | 33 | Hard-cut app/org/env Authority surface. |
|
|
15
|
+
| `platform-worker` | 16 | dominus.platform | 16 | Gateway `/svc/platform/*` group/repository policy surface; policy helpers accept actor attribution headers. |
|
|
16
|
+
| `coder-runtime` | 11 | dominus.coder | 11 | Gateway `/svc/coder/*` run lifecycle surface; launch requires exactly one workflow or pipeline recipe ref. |
|
|
17
|
+
| `browser-worker` | 11 | dominus.browser | 10 | Authenticated `/svc/browser/*` browser automation primitive; Cloudflare Browser Run default, Browserbase fallback. |
|
|
18
|
+
| `portal-worker` | 22 | dominus.portal | 22 | HTTP API routes via Dominus client. |
|
|
19
|
+
| `db-worker` | 20 | dominus.db, dominus.ddl | 19 | HTTP API routes via Dominus client. |
|
|
20
|
+
| `smith` | 15 | dominus.ddl | 15 | HTTP API routes via Dominus client. |
|
|
21
|
+
| `b2-worker` | 14 | dominus.files | 14 | HTTP API routes via Dominus client. |
|
|
22
|
+
| `redis-worker` | 14 | dominus.redis | 14 | HTTP API routes via Dominus client. |
|
|
23
|
+
| `logs-worker` | 9 | dominus.logs | 4 | HTTP API routes via Dominus client; tail filters include `machine_id`. |
|
|
24
|
+
| `scribe` | 7 | dominus.secure | 7 | HTTP API routes via Dominus client. |
|
|
25
|
+
| `job-worker` | 8 | dominus.jobs | 6 | HTTP API routes via Dominus client. |
|
|
26
|
+
| `artifact-worker` | 6 | dominus.artifacts | 6 | HTTP API routes via Dominus client. |
|
|
27
|
+
| `stash-worker` managed tables | 6 | dominus.stash.tables | 6 | Typed self/group table routes through the authenticated gateway. |
|
|
28
|
+
| `admin-worker` | 5 | dominus.admin, dominus.files | 5 | HTTP API routes via Dominus client. |
|
|
29
|
+
| `warden` | 4 | dominus.secrets | 1 | Selected-scope grant semantics live in this group. |
|
|
30
|
+
| `courier-worker` | 5 | dominus.courier | 2 | HTTP API routes via Dominus client. |
|
|
31
|
+
| `gateway-local` | 4 | dominus.auth, dominus.health | 3 | Gateway `/health`, `/v1/ping`, and `/jwt/jwks` helpers. |
|
|
32
|
+
| `processor-service` | 3 | dominus.processor | 3 | HTTP API routes via Dominus client. |
|
|
33
|
+
| `sync-worker` | 2 | dominus.sync | 2 | HTTP API routes via Dominus client. |
|
|
34
|
+
| `local-jwt` | 1 | dominus.auth | 1 | Local JWT parsing/validation helpers in auth namespace. |
|
|
35
|
+
| `ref-resolver` | 2 | dominus.refs | 3 | `ar://` → artifact-worker V2 retrieve; `recipe://` → stash `get` probe with recipe-worker fall-through. |
|
|
36
|
+
| `retired-stt` | 0 | (retired) | 0 | Legacy streaming STT namespace/routes are removed in hard cutover. |
|
|
37
|
+
|
|
38
|
+
## Route Prefix Mapping
|
|
39
|
+
|
|
40
|
+
| Prefix | Primary Namespace(s) | Expected Backend |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| `/api/warden/*` | secrets | `warden` |
|
|
43
|
+
| `/api/guardian/*` | auth | `guardian` |
|
|
44
|
+
| `/api/authority/*` | authority | `authority` |
|
|
45
|
+
| `/api/platform/*` and `/svc/platform/*` | platform | `platform-worker` |
|
|
46
|
+
| `/api/coder/*` and `/svc/coder/*` | coder | `coder-runtime` |
|
|
47
|
+
| `/api/browser/*` | browser | `browser-worker` |
|
|
48
|
+
| `/api/portal/*` | portal | `portal-worker` |
|
|
49
|
+
| `/api/database/* and /api/provision/*` | db, ddl (builder + provisioning) | `db-worker` |
|
|
50
|
+
| `/api/scribe/*` | secure, open | `scribe` |
|
|
51
|
+
| `/api/smith/*` | ddl | `smith` |
|
|
52
|
+
| `/api/redis/*` | redis | `redis-worker` |
|
|
53
|
+
| `/api/b2/*` | files | `b2-worker` |
|
|
54
|
+
| `/api/courier/*` | courier | `courier-worker` |
|
|
55
|
+
| `/api/logs/*` | logs | `logs-worker` |
|
|
56
|
+
| `/health`, `/v1/ping` | health | `gateway-local` |
|
|
57
|
+
| `/api/admin/*` | admin | `admin-worker` |
|
|
58
|
+
| `/api/sync/*` | sync | `sync-worker` |
|
|
59
|
+
| `/api/job/*` | jobs | `job-worker` |
|
|
60
|
+
| `/api/processor/*` | processor | `processor-service` |
|
|
61
|
+
| `/api/artifact/*` | artifacts | `artifact-worker` |
|
|
62
|
+
| `/api/artifact/v2/retrieve` | refs (ar:// lane) | `artifact-worker` |
|
|
63
|
+
| `/svc/stash/get` | refs (recipe:// stash lane) | `stash-worker` |
|
|
64
|
+
| `/api/recipe/recipes/*` | refs (recipe:// fall-through lane) | `recipe-worker` |
|
|
65
|
+
| `/svc/stash/tables/*` | stash.tables | `stash-worker` |
|
|
66
|
+
| `/api/rag/*, /api/agent/*, /api/llm/*, /api/results/*, /api/orchestration/*, /api/session/*` | ai, ai.rag, ai.tools, ai.workflow, ai.results | `agent-runtime` |
|
|
67
|
+
| `/api/workflow/*` | workflow | `workflow-manager` |
|
|
68
|
+
| `/api/agent/stt` | ai.stt | `agent-runtime` |
|
|
69
|
+
|
|
70
|
+
## Local and Helper Operations
|
|
71
|
+
|
|
72
|
+
- `dominus.auth.validateJwt` performs local payload checks and expiry validation; it is not a full remote introspection endpoint.
|
|
73
|
+
- `dominus.auth.getJwks` fetches and caches public signing keys from `/jwt/jwks`.
|
|
74
|
+
- `dominus.health.check` uses direct `fetch` to the gateway `/health` route for low-level availability checks.
|
|
75
|
+
- `dominus.ai.stt` sends binary audio to `POST /api/agent/stt` for batch transcription.
|
|
76
|
+
- `dominus.authority.*` uses the cutover `appSlug` / `env` / `targetOrgId` / `targetAppSlug` / `targetEnv` vocabulary; `contextResolve()` and `mintSelectedScopeJwt()` now send the canonical `org_id` / `app_slug` / `env` and `target_org_id` / `target_env` wire payloads expected by live gateway routes.
|
|
77
|
+
- `dominus.browser.*` routes through `/api/browser/*` with `useGateway: true`, producing authenticated gateway paths under `/svc/browser/*`. Browser run metadata remains worker runtime state; Artifact V2 is only for sanitized result/capture payloads.
|
|
78
|
+
- `dominus.platform.*` and `dominus.coder.*` call `/svc/platform/*` and `/svc/coder/*` through `gatewayFetch`. Policy/Coder helpers accept actor context and forward it as `X-Actor-Type` / `X-Actor-Id`; `dominus.coder.ensureRun()` requires exactly one of `workflowRecipeRef` or `pipelineRecipeRef`.
|
|
79
|
+
- Convenience wrappers like `dominus.courier.sendWelcome` delegate to core routes (for example `/api/courier/send`).
|
|
80
|
+
|
|
81
|
+
## Coverage Notes
|
|
82
|
+
|
|
83
|
+
- Gateway routing is enabled per method via `useGateway: true` in namespace implementations; direct calls still target `/api/*` and are transformed by the client when gateway mode is on.
|
|
84
|
+
- `dominus.refs.resolve` is the two-lane ref overlay: `ar://` refs cross the wire verbatim to `POST /api/artifact/v2/retrieve`; `recipe://` refs probe `POST /svc/stash/get` and fall through to `GET /api/recipe/recipes/{type}/{name}` on a typed `stash.not_found.*` / `stash.forbidden.scope_not_allowed` miss. `dominus.refs.parse` is local grammar with no I/O.
|
|
85
|
+
- The exhaustive per-command listing with params/returns/routes is documented in [usage-reference.md](./usage-reference.md).
|