dominus-sdk-nodejs 6.1.0 → 6.1.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/README.md +14 -1
- package/dist/namespaces/coder.d.ts +12 -3
- package/dist/namespaces/coder.d.ts.map +1 -1
- package/dist/namespaces/coder.js +41 -8
- package/dist/namespaces/coder.js.map +1 -1
- package/dist/namespaces/platform.d.ts +9 -3
- package/dist/namespaces/platform.d.ts.map +1 -1
- package/dist/namespaces/platform.js +22 -5
- package/dist/namespaces/platform.js.map +1 -1
- package/docs/routes-services.md +6 -1
- package/docs/usage-reference.md +43 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,6 +84,17 @@ const machineLogs = await dominus.logs.tail({
|
|
|
84
84
|
since: '2026-04-11T08:33:00Z',
|
|
85
85
|
level: 'error',
|
|
86
86
|
});
|
|
87
|
+
const policy = await dominus.platform.ensurePolicyDecision({
|
|
88
|
+
group: 'dominus',
|
|
89
|
+
repository: 'carebridgesystems/dominus-platform-worker',
|
|
90
|
+
}, { type: 'user', id: 'operator-1' });
|
|
91
|
+
const coderRun = await dominus.coder.ensureRun({
|
|
92
|
+
policyDecisionId: String(policy.data.policy_decision.decision_id),
|
|
93
|
+
workflowRecipeRef: 'recipe://workflow-recipe-v1/coder-feature@head',
|
|
94
|
+
repository: 'carebridgesystems/dominus-platform-worker',
|
|
95
|
+
instructions: 'Fix failing tests',
|
|
96
|
+
actorContext: { type: 'user', id: 'operator-1' },
|
|
97
|
+
});
|
|
87
98
|
const verifyArchive = await dominus.authority.verifyTimelineArchiveManifests({
|
|
88
99
|
since: '2026-04-01T00:00:00Z',
|
|
89
100
|
until: '2026-04-02T00:00:00Z',
|
|
@@ -177,7 +188,9 @@ Optional:
|
|
|
177
188
|
|
|
178
189
|
SDK singleton namespaces available on `dominus`:
|
|
179
190
|
|
|
180
|
-
- `secrets`, `db`, `secure`, `redis`, `files`, `auth`, `ddl`, `logs`, `portal`, `courier`, `open`, `health`, `admin`, `ai`, `workflow`, `sync`, `jobs`, `processor`, `artifacts`, `authority`, `browser`, `deployer`, `warden`
|
|
191
|
+
- `secrets`, `db`, `secure`, `redis`, `files`, `auth`, `ddl`, `logs`, `portal`, `courier`, `open`, `health`, `admin`, `ai`, `workflow`, `sync`, `jobs`, `processor`, `artifacts`, `authority`, `browser`, `deployer`, `warden`, `platform`, `coder`
|
|
192
|
+
|
|
193
|
+
The `platform` and `coder` namespaces are the policy-to-execution pair for controlled Coder work. Use `dominus.platform.ensurePolicyDecision(...)` to obtain a policy decision, then `dominus.coder.ensureRun(...)` with exactly one `workflowRecipeRef` or `pipelineRecipeRef`. Pass `actorContext: { type, id }` on Platform/Coder calls that mutate or read operator-scoped state so the SDK forwards `X-Actor-Type` / `X-Actor-Id` for attribution.
|
|
181
194
|
|
|
182
195
|
The `admin` namespace now covers both admin-category maintenance and the operator maintenance surface (`exportApps`, `exportTokens`, `seedKV`, `listKvKeys`, `getKvValue`, `putKvValue`, `deleteKvKey`), so Mothership and other operator tools do not need bespoke raw gateway glue for those routes.
|
|
183
196
|
|
|
@@ -5,6 +5,12 @@ export interface CoderRequestOptions {
|
|
|
5
5
|
headers?: Record<string, string>;
|
|
6
6
|
timeout?: number;
|
|
7
7
|
}
|
|
8
|
+
export interface CoderActorContext {
|
|
9
|
+
type?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
actor_type?: string;
|
|
12
|
+
actor_id?: string;
|
|
13
|
+
}
|
|
8
14
|
export type CoderRunMode = 'blocking' | 'async' | 'ensure_only';
|
|
9
15
|
export interface CoderRunEnsureOptions {
|
|
10
16
|
policyDecisionId: string;
|
|
@@ -22,11 +28,13 @@ export interface CoderRunEnsureOptions {
|
|
|
22
28
|
instructions?: string;
|
|
23
29
|
inputs?: Record<string, unknown>;
|
|
24
30
|
metadata?: Record<string, unknown>;
|
|
31
|
+
actorContext?: CoderActorContext;
|
|
25
32
|
}
|
|
26
33
|
export interface CoderRunMutationOptions {
|
|
27
34
|
reason?: string;
|
|
28
35
|
idempotencyKey?: string;
|
|
29
36
|
metadata?: Record<string, unknown>;
|
|
37
|
+
actorContext?: CoderActorContext;
|
|
30
38
|
}
|
|
31
39
|
export interface CoderRunListOptions {
|
|
32
40
|
status?: string;
|
|
@@ -34,6 +42,7 @@ export interface CoderRunListOptions {
|
|
|
34
42
|
repository?: string;
|
|
35
43
|
limit?: number;
|
|
36
44
|
offset?: number;
|
|
45
|
+
actorContext?: CoderActorContext;
|
|
37
46
|
}
|
|
38
47
|
/**
|
|
39
48
|
* Coder namespace.
|
|
@@ -50,11 +59,11 @@ export declare class CoderNamespace {
|
|
|
50
59
|
ready(): Promise<Record<string, unknown>>;
|
|
51
60
|
ensureRun(options: CoderRunEnsureOptions): Promise<Record<string, unknown>>;
|
|
52
61
|
listRuns(options?: CoderRunListOptions): Promise<Record<string, unknown>>;
|
|
53
|
-
getRun(runId: string): Promise<Record<string, unknown>>;
|
|
62
|
+
getRun(runId: string, actorContext?: CoderActorContext): Promise<Record<string, unknown>>;
|
|
54
63
|
cancelRun(runId: string, options?: CoderRunMutationOptions): Promise<Record<string, unknown>>;
|
|
55
64
|
retryRun(runId: string, options?: CoderRunMutationOptions): Promise<Record<string, unknown>>;
|
|
56
65
|
nudgeRun(runId: string, options?: CoderRunMutationOptions): Promise<Record<string, unknown>>;
|
|
57
|
-
getRunSummary(runId: string): Promise<Record<string, unknown>>;
|
|
58
|
-
getRunArtifacts(runId: string): Promise<Record<string, unknown>>;
|
|
66
|
+
getRunSummary(runId: string, actorContext?: CoderActorContext): Promise<Record<string, unknown>>;
|
|
67
|
+
getRunArtifacts(runId: string, actorContext?: CoderActorContext): Promise<Record<string, unknown>>;
|
|
59
68
|
}
|
|
60
69
|
//# sourceMappingURL=coder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coder.d.ts","sourceRoot":"","sources":["../../src/namespaces/coder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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AO,CAAC,CAAC;IAQhG,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAOhG,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAMzG"}
|
package/dist/namespaces/coder.js
CHANGED
|
@@ -39,6 +39,21 @@ function mutationBody(options) {
|
|
|
39
39
|
metadata: options.metadata,
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
+
function actorHeaders(actorContext) {
|
|
43
|
+
if (!actorContext)
|
|
44
|
+
return undefined;
|
|
45
|
+
const actorType = String(actorContext.type ?? actorContext.actor_type ?? '').trim();
|
|
46
|
+
const actorId = String(actorContext.id ?? actorContext.actor_id ?? '').trim();
|
|
47
|
+
if (!actorType || !actorId)
|
|
48
|
+
return undefined;
|
|
49
|
+
return { 'X-Actor-Type': actorType, 'X-Actor-Id': actorId };
|
|
50
|
+
}
|
|
51
|
+
function assertOneLaunchSource(workflowRecipeRef, pipelineRecipeRef) {
|
|
52
|
+
const count = [workflowRecipeRef, pipelineRecipeRef].filter((ref) => typeof ref === 'string' && ref.trim()).length;
|
|
53
|
+
if (count !== 1) {
|
|
54
|
+
throw new Error('ensureRun requires exactly one of workflowRecipeRef or pipelineRecipeRef');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
42
57
|
/**
|
|
43
58
|
* Coder namespace.
|
|
44
59
|
*
|
|
@@ -64,6 +79,7 @@ export class CoderNamespace {
|
|
|
64
79
|
if (!options.policyDecisionId) {
|
|
65
80
|
throw new Error('ensureRun requires policyDecisionId');
|
|
66
81
|
}
|
|
82
|
+
assertOneLaunchSource(options.workflowRecipeRef, options.pipelineRecipeRef);
|
|
67
83
|
const body = compactObject({
|
|
68
84
|
policy_decision_id: options.policyDecisionId,
|
|
69
85
|
idempotency_key: options.idempotencyKey,
|
|
@@ -81,7 +97,12 @@ export class CoderNamespace {
|
|
|
81
97
|
inputs: options.inputs,
|
|
82
98
|
metadata: options.metadata,
|
|
83
99
|
});
|
|
84
|
-
return this.request('/runs/ensure', {
|
|
100
|
+
return this.request('/runs/ensure', {
|
|
101
|
+
method: 'POST',
|
|
102
|
+
body,
|
|
103
|
+
headers: actorHeaders(options.actorContext),
|
|
104
|
+
timeout: 600000,
|
|
105
|
+
});
|
|
85
106
|
}
|
|
86
107
|
async listRuns(options = {}) {
|
|
87
108
|
const qs = buildQueryString({
|
|
@@ -91,34 +112,46 @@ export class CoderNamespace {
|
|
|
91
112
|
limit: options.limit,
|
|
92
113
|
offset: options.offset,
|
|
93
114
|
});
|
|
94
|
-
return this.request(`/runs${qs}`, { method: 'GET' });
|
|
115
|
+
return this.request(`/runs${qs}`, { method: 'GET', headers: actorHeaders(options.actorContext) });
|
|
95
116
|
}
|
|
96
|
-
async getRun(runId) {
|
|
97
|
-
return this.request(`/runs/${encodeURIComponent(runId)}`, {
|
|
117
|
+
async getRun(runId, actorContext) {
|
|
118
|
+
return this.request(`/runs/${encodeURIComponent(runId)}`, {
|
|
119
|
+
method: 'GET',
|
|
120
|
+
headers: actorHeaders(actorContext),
|
|
121
|
+
});
|
|
98
122
|
}
|
|
99
123
|
async cancelRun(runId, options = {}) {
|
|
100
124
|
return this.request(`/runs/${encodeURIComponent(runId)}/cancel`, {
|
|
101
125
|
method: 'POST',
|
|
102
126
|
body: mutationBody(options),
|
|
127
|
+
headers: actorHeaders(options.actorContext),
|
|
103
128
|
});
|
|
104
129
|
}
|
|
105
130
|
async retryRun(runId, options = {}) {
|
|
106
131
|
return this.request(`/runs/${encodeURIComponent(runId)}/retry`, {
|
|
107
132
|
method: 'POST',
|
|
108
133
|
body: mutationBody(options),
|
|
134
|
+
headers: actorHeaders(options.actorContext),
|
|
109
135
|
});
|
|
110
136
|
}
|
|
111
137
|
async nudgeRun(runId, options = {}) {
|
|
112
138
|
return this.request(`/runs/${encodeURIComponent(runId)}/nudge`, {
|
|
113
139
|
method: 'POST',
|
|
114
140
|
body: mutationBody(options),
|
|
141
|
+
headers: actorHeaders(options.actorContext),
|
|
115
142
|
});
|
|
116
143
|
}
|
|
117
|
-
async getRunSummary(runId) {
|
|
118
|
-
return this.request(`/runs/${encodeURIComponent(runId)}/summary`, {
|
|
144
|
+
async getRunSummary(runId, actorContext) {
|
|
145
|
+
return this.request(`/runs/${encodeURIComponent(runId)}/summary`, {
|
|
146
|
+
method: 'GET',
|
|
147
|
+
headers: actorHeaders(actorContext),
|
|
148
|
+
});
|
|
119
149
|
}
|
|
120
|
-
async getRunArtifacts(runId) {
|
|
121
|
-
return this.request(`/runs/${encodeURIComponent(runId)}/artifacts`, {
|
|
150
|
+
async getRunArtifacts(runId, actorContext) {
|
|
151
|
+
return this.request(`/runs/${encodeURIComponent(runId)}/artifacts`, {
|
|
152
|
+
method: 'GET',
|
|
153
|
+
headers: actorHeaders(actorContext),
|
|
154
|
+
});
|
|
122
155
|
}
|
|
123
156
|
}
|
|
124
157
|
//# sourceMappingURL=coder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coder.js","sourceRoot":"","sources":["../../src/namespaces/coder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coder.js","sourceRoot":"","sources":["../../src/namespaces/coder.ts"],"names":[],"mappings":"AAqDA,SAAS,aAAa,CAAC,KAA8B;IACnD,MAAM,GAAG,GAA4B,EAAE,CAAC;IACxC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;YAAE,SAAS;QACpD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;YAAE,SAAS;QAC/D,GAAG,CAAC,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YAAY,CAAC,OAAO,CAAC;YAC3B,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,KAAa,EAAE,UAAmC,EAAE;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,kBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE;YAC9D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC;YAC3B,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,KAAa,EAAE,YAAgC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,kBAAkB,CAAC,KAAK,CAAC,UAAU,EAAE;YAChE,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC;SACpC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,KAAa,EAAE,YAAgC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,kBAAkB,CAAC,KAAK,CAAC,YAAY,EAAE;YAClE,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC;SACpC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -5,6 +5,12 @@ export interface PlatformRequestOptions {
|
|
|
5
5
|
headers?: Record<string, string>;
|
|
6
6
|
timeout?: number;
|
|
7
7
|
}
|
|
8
|
+
export interface PlatformActorContext {
|
|
9
|
+
type?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
actor_type?: string;
|
|
12
|
+
actor_id?: string;
|
|
13
|
+
}
|
|
8
14
|
export type PlatformGroupKind = 'product' | 'build' | 'system';
|
|
9
15
|
export type PlatformRecordStatus = 'active' | 'disabled';
|
|
10
16
|
export type PlatformRepoStatus = 'active' | 'disabled' | 'archived';
|
|
@@ -118,13 +124,13 @@ export declare class PlatformNamespace {
|
|
|
118
124
|
updateRepository(repositoryId: string, repository: PlatformRepositoryRecord): Promise<PlatformEnvelope<{
|
|
119
125
|
repository: PlatformRepositoryRecord;
|
|
120
126
|
}>>;
|
|
121
|
-
ensurePolicyDecision(options: PlatformPolicyDecisionRequest): Promise<PlatformEnvelope<{
|
|
127
|
+
ensurePolicyDecision(options: PlatformPolicyDecisionRequest, actorContext?: PlatformActorContext): Promise<PlatformEnvelope<{
|
|
122
128
|
policy_decision: PlatformPolicyDecision;
|
|
123
129
|
}>>;
|
|
124
|
-
getPolicyDecision(decisionId: string): Promise<PlatformEnvelope<{
|
|
130
|
+
getPolicyDecision(decisionId: string, actorContext?: PlatformActorContext): Promise<PlatformEnvelope<{
|
|
125
131
|
policy_decision: PlatformPolicyDecision;
|
|
126
132
|
}>>;
|
|
127
|
-
rehydratePolicyDecision(decisionId: string, options?: PlatformPolicyRehydrateRequest): Promise<PlatformEnvelope<{
|
|
133
|
+
rehydratePolicyDecision(decisionId: string, options?: PlatformPolicyRehydrateRequest, actorContext?: PlatformActorContext): Promise<PlatformEnvelope<{
|
|
128
134
|
policy_decision: PlatformPolicyDecision;
|
|
129
135
|
}>>;
|
|
130
136
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/namespaces/platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC/D,MAAM,MAAM,oBAAoB,G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AAO,CAAC,gBAAgB,CAAC;QAAE,eAAe,EAAE,sBAAsB,CAAA;KAAE,CAAC,CAAC;IAQnE,iBAAiB,CACrB,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,oBAAoB,GAClC,OAAO,CAAC,gBAAgB,CAAC;QAAE,eAAe,EAAE,sBAAsB,CAAA;KAAE,CAAC,CAAC;IAOnE,uBAAuB,CAC3B,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,8BAAmC,EAC5C,YAAY,CAAC,EAAE,oBAAoB,GAClC,OAAO,CAAC,gBAAgB,CAAC;QAAE,eAAe,EAAE,sBAAsB,CAAA;KAAE,CAAC,CAAC;CAO1E"}
|
|
@@ -9,6 +9,15 @@ function normalizePlatformPath(path) {
|
|
|
9
9
|
}
|
|
10
10
|
return `/svc/platform${normalized}`;
|
|
11
11
|
}
|
|
12
|
+
function actorHeaders(actorContext) {
|
|
13
|
+
if (!actorContext)
|
|
14
|
+
return undefined;
|
|
15
|
+
const actorType = String(actorContext.type ?? actorContext.actor_type ?? '').trim();
|
|
16
|
+
const actorId = String(actorContext.id ?? actorContext.actor_id ?? '').trim();
|
|
17
|
+
if (!actorType || !actorId)
|
|
18
|
+
return undefined;
|
|
19
|
+
return { 'X-Actor-Type': actorType, 'X-Actor-Id': actorId };
|
|
20
|
+
}
|
|
12
21
|
/**
|
|
13
22
|
* Platform namespace.
|
|
14
23
|
*
|
|
@@ -69,16 +78,24 @@ export class PlatformNamespace {
|
|
|
69
78
|
body: repository,
|
|
70
79
|
});
|
|
71
80
|
}
|
|
72
|
-
async ensurePolicyDecision(options) {
|
|
73
|
-
return this.request('/policy/decisions/ensure', {
|
|
81
|
+
async ensurePolicyDecision(options, actorContext) {
|
|
82
|
+
return this.request('/policy/decisions/ensure', {
|
|
83
|
+
method: 'POST',
|
|
84
|
+
body: options,
|
|
85
|
+
headers: actorHeaders(actorContext),
|
|
86
|
+
});
|
|
74
87
|
}
|
|
75
|
-
async getPolicyDecision(decisionId) {
|
|
76
|
-
return this.request(`/policy/decisions/${encodeURIComponent(decisionId)}`, {
|
|
88
|
+
async getPolicyDecision(decisionId, actorContext) {
|
|
89
|
+
return this.request(`/policy/decisions/${encodeURIComponent(decisionId)}`, {
|
|
90
|
+
method: 'GET',
|
|
91
|
+
headers: actorHeaders(actorContext),
|
|
92
|
+
});
|
|
77
93
|
}
|
|
78
|
-
async rehydratePolicyDecision(decisionId, options = {}) {
|
|
94
|
+
async rehydratePolicyDecision(decisionId, options = {}, actorContext) {
|
|
79
95
|
return this.request(`/policy/decisions/${encodeURIComponent(decisionId)}/rehydrate`, {
|
|
80
96
|
method: 'POST',
|
|
81
97
|
body: options,
|
|
98
|
+
headers: actorHeaders(actorContext),
|
|
82
99
|
});
|
|
83
100
|
}
|
|
84
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/namespaces/platform.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/namespaces/platform.ts"],"names":[],"mappings":"AA4FA,SAAS,qBAAqB,CAAC,IAAY;IACzC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;IAErE,IAAI,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,IAAI,UAAU,KAAK,eAAe,EAAE,CAAC;QAC9E,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,IAAI,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,IAAI,UAAU,KAAK,eAAe,EAAE,CAAC;QAC9E,OAAO,UAAU,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,gBAAgB,UAAU,EAAE,CAAC;AACtC,CAAC;AAED,SA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OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,YAAoB,EACpB,UAAoC;QAEpC,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,kBAAkB,CAAC,YAAY,CAAC,EAAE,EAAE;YACvE,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,OAAsC,EACtC,YAAmC;QAEnC,OAAO,IAAI,CAAC,OAAO,CAAC,0BAA0B,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC;SACpC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,UAAkB,EAClB,YAAmC;QAEnC,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,kBAAkB,CAAC,UAAU,CAAC,EAAE,EAAE;YACzE,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC;SACpC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,uBAAuB,CAC3B,UAAkB,EAClB,UAA0C,EAAE,EAC5C,YAAmC;QAEnC,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,kBAAkB,CAAC,UAAU,CAAC,YAAY,EAAE;YACnF,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC;SACpC,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/docs/routes-services.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This assessment is derived from all public namespace methods under `src/namespaces/` and their configured routes in SDK request calls.
|
|
4
4
|
|
|
5
|
-
Audited commands: **
|
|
5
|
+
Audited commands: **450** across **29** namespace surfaces.
|
|
6
6
|
|
|
7
7
|
## Service Matrix
|
|
8
8
|
|
|
@@ -12,6 +12,8 @@ Audited commands: **423** across **27** namespace surfaces.
|
|
|
12
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
13
|
| `workflow-manager` | 38 | dominus.workflow | 36 | HTTP API routes via Dominus client. |
|
|
14
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. |
|
|
15
17
|
| `browser-worker` | 11 | dominus.browser | 10 | Authenticated `/svc/browser/*` browser automation primitive; Cloudflare Browser Run default, Browserbase fallback. |
|
|
16
18
|
| `portal-worker` | 22 | dominus.portal | 22 | HTTP API routes via Dominus client. |
|
|
17
19
|
| `db-worker` | 20 | dominus.db, dominus.ddl | 19 | HTTP API routes via Dominus client. |
|
|
@@ -38,6 +40,8 @@ Audited commands: **423** across **27** namespace surfaces.
|
|
|
38
40
|
| `/api/warden/*` | secrets | `warden` |
|
|
39
41
|
| `/api/guardian/*` | auth | `guardian` |
|
|
40
42
|
| `/api/authority/*` | authority | `authority` |
|
|
43
|
+
| `/api/platform/*` and `/svc/platform/*` | platform | `platform-worker` |
|
|
44
|
+
| `/api/coder/*` and `/svc/coder/*` | coder | `coder-runtime` |
|
|
41
45
|
| `/api/browser/*` | browser | `browser-worker` |
|
|
42
46
|
| `/api/portal/*` | portal | `portal-worker` |
|
|
43
47
|
| `/api/database/* and /api/provision/*` | db, ddl (builder + provisioning) | `db-worker` |
|
|
@@ -65,6 +69,7 @@ Audited commands: **423** across **27** namespace surfaces.
|
|
|
65
69
|
- `dominus.ai.stt` sends binary audio to `POST /api/agent/stt` for batch transcription.
|
|
66
70
|
- `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.
|
|
67
71
|
- `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.
|
|
72
|
+
- `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`.
|
|
68
73
|
- Convenience wrappers like `dominus.courier.sendWelcome` delegate to core routes (for example `/api/courier/send`).
|
|
69
74
|
|
|
70
75
|
## Coverage Notes
|
package/docs/usage-reference.md
CHANGED
|
@@ -409,6 +409,49 @@ Source: `src/namespaces/health.ts` (HealthNamespace)
|
|
|
409
409
|
| `dominus.health.check` | `none` | `Promise<HealthStatus>` | `GET /health (direct gateway fetch)` | Probe the live gateway health route. |
|
|
410
410
|
| `dominus.health.ping` | `none` | `Promise<{ status: string }>` | `GET /v1/ping` | Probe the live gateway ping route and normalize the pong payload. |
|
|
411
411
|
|
|
412
|
+
## dominus.platform
|
|
413
|
+
|
|
414
|
+
Source: `src/namespaces/platform.ts` (PlatformNamespace)
|
|
415
|
+
|
|
416
|
+
Platform helpers call Gateway `/svc/platform/*` routes. Policy decision helpers accept an optional actor context (`{ type, id }` or `{ actor_type, actor_id }`) and forward it as `X-Actor-Type` / `X-Actor-Id`.
|
|
417
|
+
|
|
418
|
+
| Command | Params | Returns | Route | What it does |
|
|
419
|
+
|---|---|---|---|---|
|
|
420
|
+
| `dominus.platform.health` | `none` | `Promise<Record<string, unknown>>` | `GET /svc/platform/health` | Probe platform worker health. |
|
|
421
|
+
| `dominus.platform.ready` | `none` | `Promise<Record<string, unknown>>` | `GET /svc/platform/ready` | Probe platform worker readiness. |
|
|
422
|
+
| `dominus.platform.listGroups` | `none` | `Promise<PlatformEnvelope<{ groups: PlatformGroupRecord[] }>>` | `GET /svc/platform/groups` | List policy groups. |
|
|
423
|
+
| `dominus.platform.getGroup` | `groupSlug: string` | `Promise<PlatformEnvelope<{ group: PlatformGroupRecord }>>` | `GET /svc/platform/groups/${groupSlug}` | Get one policy group. |
|
|
424
|
+
| `dominus.platform.upsertGroup` | `group: PlatformGroupRecord` | `Promise<PlatformEnvelope<{ group: PlatformGroupRecord }>>` | `POST /svc/platform/groups` | Create or update a policy group. |
|
|
425
|
+
| `dominus.platform.updateGroup` | `groupSlug: string, group: PlatformGroupRecord` | `Promise<PlatformEnvelope<{ group: PlatformGroupRecord }>>` | `PATCH /svc/platform/groups/${groupSlug}` | Patch one policy group. |
|
|
426
|
+
| `dominus.platform.addGroupMember` | `groupSlug: string, subjectId: string` | `Promise<PlatformEnvelope<{ group: string; subject_id: string }>>` | `POST /svc/platform/groups/${groupSlug}/members` | Add a subject to a policy group. |
|
|
427
|
+
| `dominus.platform.linkGroupRepository` | `groupSlug: string, repository: string` | `Promise<PlatformEnvelope<{ group: string; repository: string }>>` | `POST /svc/platform/groups/${groupSlug}/repositories` | Link a repository to a policy group. |
|
|
428
|
+
| `dominus.platform.listRepositories` | `none` | `Promise<PlatformEnvelope<{ repositories: PlatformRepositoryRecord[] }>>` | `GET /svc/platform/repositories` | List platform repositories. |
|
|
429
|
+
| `dominus.platform.getRepository` | `repositoryId: string` | `Promise<PlatformEnvelope<{ repository: PlatformRepositoryRecord }>>` | `GET /svc/platform/repositories/${repositoryId}` | Get one platform repository. |
|
|
430
|
+
| `dominus.platform.upsertRepository` | `repository: PlatformRepositoryRecord` | `Promise<PlatformEnvelope<{ repository: PlatformRepositoryRecord }>>` | `POST /svc/platform/repositories` | Create or update a repository record. |
|
|
431
|
+
| `dominus.platform.updateRepository` | `repositoryId: string, repository: PlatformRepositoryRecord` | `Promise<PlatformEnvelope<{ repository: PlatformRepositoryRecord }>>` | `PATCH /svc/platform/repositories/${repositoryId}` | Patch one repository record. |
|
|
432
|
+
| `dominus.platform.ensurePolicyDecision` | `options: PlatformPolicyDecisionRequest, actorContext?: PlatformActorContext` | `Promise<PlatformEnvelope<{ policy_decision: PlatformPolicyDecision }>>` | `POST /svc/platform/policy/decisions/ensure` | Ensure an executor policy decision with optional actor attribution. |
|
|
433
|
+
| `dominus.platform.getPolicyDecision` | `decisionId: string, actorContext?: PlatformActorContext` | `Promise<PlatformEnvelope<{ policy_decision: PlatformPolicyDecision }>>` | `GET /svc/platform/policy/decisions/${decisionId}` | Read a policy decision with optional actor attribution. |
|
|
434
|
+
| `dominus.platform.rehydratePolicyDecision` | `decisionId: string, options?: PlatformPolicyRehydrateRequest, actorContext?: PlatformActorContext` | `Promise<PlatformEnvelope<{ policy_decision: PlatformPolicyDecision }>>` | `POST /svc/platform/policy/decisions/${decisionId}/rehydrate` | Rehydrate a policy decision after run linkage. |
|
|
435
|
+
|
|
436
|
+
## dominus.coder
|
|
437
|
+
|
|
438
|
+
Source: `src/namespaces/coder.ts` (CoderNamespace)
|
|
439
|
+
|
|
440
|
+
Coder helpers call Gateway `/svc/coder/*` routes. `ensureRun` requires a Platform `policyDecisionId` and exactly one Authority launch source: `workflowRecipeRef` or `pipelineRecipeRef`. Run helpers accept optional actor context and forward it as `X-Actor-Type` / `X-Actor-Id`.
|
|
441
|
+
|
|
442
|
+
| Command | Params | Returns | Route | What it does |
|
|
443
|
+
|---|---|---|---|---|
|
|
444
|
+
| `dominus.coder.health` | `none` | `Promise<Record<string, unknown>>` | `GET /svc/coder/health` | Probe Coder runtime health. |
|
|
445
|
+
| `dominus.coder.ready` | `none` | `Promise<Record<string, unknown>>` | `GET /svc/coder/ready` | Probe Coder runtime readiness. |
|
|
446
|
+
| `dominus.coder.ensureRun` | `options: CoderRunEnsureOptions` | `Promise<Record<string, unknown>>` | `POST /svc/coder/runs/ensure` | Ensure a Coder run from a policy decision and one workflow or pipeline recipe ref. |
|
|
447
|
+
| `dominus.coder.listRuns` | `options?: CoderRunListOptions` | `Promise<Record<string, unknown>>` | `GET /svc/coder/runs` | List Coder runs. |
|
|
448
|
+
| `dominus.coder.getRun` | `runId: string, actorContext?: CoderActorContext` | `Promise<Record<string, unknown>>` | `GET /svc/coder/runs/${runId}` | Read a Coder run. |
|
|
449
|
+
| `dominus.coder.cancelRun` | `runId: string, options?: CoderRunMutationOptions` | `Promise<Record<string, unknown>>` | `POST /svc/coder/runs/${runId}/cancel` | Cancel a Coder run. |
|
|
450
|
+
| `dominus.coder.retryRun` | `runId: string, options?: CoderRunMutationOptions` | `Promise<Record<string, unknown>>` | `POST /svc/coder/runs/${runId}/retry` | Retry a Coder run. |
|
|
451
|
+
| `dominus.coder.nudgeRun` | `runId: string, options?: CoderRunMutationOptions` | `Promise<Record<string, unknown>>` | `POST /svc/coder/runs/${runId}/nudge` | Nudge a Coder run. |
|
|
452
|
+
| `dominus.coder.getRunSummary` | `runId: string, actorContext?: CoderActorContext` | `Promise<Record<string, unknown>>` | `GET /svc/coder/runs/${runId}/summary` | Read a Coder run summary. |
|
|
453
|
+
| `dominus.coder.getRunArtifacts` | `runId: string, actorContext?: CoderActorContext` | `Promise<Record<string, unknown>>` | `GET /svc/coder/runs/${runId}/artifacts` | Read Coder run artifacts. |
|
|
454
|
+
|
|
412
455
|
## dominus.stt (retired)
|
|
413
456
|
|
|
414
457
|
The legacy streaming STT namespace is removed in hard cutover.
|