@treeseed/sdk 0.13.0-rc.121 → 0.13.0-rc.122
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/dist/.treeseed-build-complete.json +1 -1
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1594 -922
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +22 -1
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +40 -40
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -59
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -1
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +1 -1
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +18 -20
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +1 -1
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +0 -67
- package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
- package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
- package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +8 -8
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -23
- package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
- package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
- package/dist/agent-capacity/contracts/support/execution-graph.d.ts +176 -176
- package/dist/agent-capacity/contracts/support/execution-graph.js +1 -1
- package/dist/agent-capacity/contracts/support/financial-records.d.ts +1 -6
- package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
- package/dist/agent-capacity/grant.d.ts +34 -0
- package/dist/agent-capacity/grant.js +4 -0
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1042 -1042
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +11 -11
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
- package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
- package/dist/agent-capacity/validation/assignment-records.js +4 -35
- package/dist/agent-capacity/validation/configuration.d.ts +1 -1
- package/dist/agent-capacity/validation/configuration.js +2 -6
- package/dist/agent-capacity/validation/grant.d.ts +11 -0
- package/dist/agent-capacity/validation/grant.js +31 -0
- package/dist/capacity/agents/agent-capacity.d.ts +2 -4
- package/dist/capacity/agents/agent-capacity.js +1 -3
- package/dist/capacity-provider/capability-ontology.d.ts +138 -138
- package/dist/capacity-provider/client.d.ts +1 -2
- package/dist/capacity-provider/client.js +0 -6
- package/dist/capacity-provider/contracts/environment-profiles.d.ts +8 -8
- package/dist/capacity-provider/core-capability-catalog.d.ts +4 -4
- package/dist/capacity-provider/environment-catalog.d.ts +166 -166
- package/dist/capacity-provider/install-configuration.d.ts +2 -2
- package/dist/capacity-provider/sandbox-contracts.d.ts +52 -52
- package/dist/capacity-provider/source-workspace.d.ts +102 -4
- package/dist/capacity-provider/source-workspace.js +5 -1
- package/dist/content/validation/agent-operational-content-schemas.d.ts +108 -108
- package/dist/content/validation/auxiliary-content-schemas.d.ts +108 -108
- package/dist/content/validation/content-model-schemas.d.ts +9473 -6284
- package/dist/content/validation/content-model-schemas.js +116 -48
- package/dist/content/validation/portable-content-data.d.ts +351 -181
- package/dist/content/validation/portable-content-data.js +6 -1
- package/dist/deployment/ai/storage.d.ts +14 -14
- package/dist/deployment/ai-hosting.d.ts +10 -10
- package/dist/deployment/ai-instance.d.ts +14 -14
- package/dist/deployment/ai-mode.d.ts +82 -82
- package/dist/deployment/hosted-topology-template.d.ts +24 -24
- package/dist/deployment/hosted-topology.d.ts +219 -219
- package/dist/deployment/postgres/contracts.d.ts +52 -52
- package/dist/deployment/postgres/transfer.d.ts +4 -4
- package/dist/deployment/schemas.d.ts +780 -780
- package/dist/development/schemas.d.ts +439 -439
- package/dist/knowledge/contracts.d.ts +9 -2
- package/dist/knowledge/contracts.js +2 -2
- package/dist/model-registry/discussion-models.js +0 -1
- package/dist/operator-contracts/canonical-command-tree.js +3 -1
- package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +2 -2
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +17 -17
- package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +4 -4
- package/dist/operator-contracts/catalog/communication-operations.d.ts +100 -100
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +40 -40
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +54 -54
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +5 -5
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
- package/dist/operator-contracts/catalog/services/secret-operations.d.ts +8 -8
- package/dist/operator-contracts/communication/contracts.d.ts +273 -273
- package/dist/operator-contracts/control-plane-operations.d.ts +236 -242
- package/dist/operator-contracts/control-plane-operations.js +0 -2
- package/dist/operator-contracts/inbox/contracts.d.ts +204 -204
- package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
- package/dist/platform/agent-schema-verification.d.ts +3 -0
- package/dist/platform/agent-schema-verification.js +94 -0
- package/dist/platform/verification.js +6 -0
- package/dist/sdk-types/support/planning-policy.d.ts +1 -1
- package/dist/secrets-capability/shared-access.d.ts +2 -2
- package/dist/secrets-capability/shared-resources.d.ts +46 -46
- package/dist/secrets-capability/vault-contracts.d.ts +2 -2
- package/dist/security/encrypted-envelope.d.ts +8 -8
- package/package.json +3 -2
- package/dist/agent-capacity/allocation.d.ts +0 -183
- package/dist/agent-capacity/allocation.js +0 -5
- package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
- package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
- package/dist/agent-capacity/artifacts.d.ts +0 -123
- package/dist/agent-capacity/artifacts.js +0 -39
- package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
- package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
- package/dist/agent-capacity/validation/allocation.d.ts +0 -12
- package/dist/agent-capacity/validation/allocation.js +0 -115
|
@@ -20,13 +20,13 @@ export declare const aiModeRequestSchema: z.ZodObject<{
|
|
|
20
20
|
drainTimeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
21
21
|
}, "strict", z.ZodTypeAny, {
|
|
22
22
|
schemaVersion: "treeseed.ai-mode-request/v1";
|
|
23
|
-
target: "awake" | "sleep";
|
|
24
23
|
idempotencyKey: string;
|
|
24
|
+
target: "awake" | "sleep";
|
|
25
25
|
drainTimeoutSeconds: number;
|
|
26
26
|
}, {
|
|
27
27
|
schemaVersion: "treeseed.ai-mode-request/v1";
|
|
28
|
-
target: "awake" | "sleep";
|
|
29
28
|
idempotencyKey: string;
|
|
29
|
+
target: "awake" | "sleep";
|
|
30
30
|
drainTimeoutSeconds?: number | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
export declare const aiModeTransitionStepSchema: z.ZodObject<{
|
|
@@ -35,11 +35,11 @@ export declare const aiModeTransitionStepSchema: z.ZodObject<{
|
|
|
35
35
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
36
36
|
}, "strict", z.ZodTypeAny, {
|
|
37
37
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
38
|
-
state: "pending" | "failed" | "running" | "
|
|
38
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
39
39
|
completedAt: string | null;
|
|
40
40
|
}, {
|
|
41
41
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
42
|
-
state: "pending" | "failed" | "running" | "
|
|
42
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
43
43
|
completedAt: string | null;
|
|
44
44
|
}>;
|
|
45
45
|
export declare const aiModeTransitionReceiptSchema: z.ZodObject<{
|
|
@@ -68,57 +68,57 @@ export declare const aiModeTransitionReceiptSchema: z.ZodObject<{
|
|
|
68
68
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
69
69
|
}, "strict", z.ZodTypeAny, {
|
|
70
70
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
71
|
-
state: "pending" | "failed" | "running" | "
|
|
71
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
72
72
|
completedAt: string | null;
|
|
73
73
|
}, {
|
|
74
74
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
75
|
-
state: "pending" | "failed" | "running" | "
|
|
75
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
76
76
|
completedAt: string | null;
|
|
77
77
|
}>, "many">;
|
|
78
78
|
startedAt: z.ZodString;
|
|
79
79
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
80
80
|
}, "strict", z.ZodTypeAny, {
|
|
81
81
|
resource: "ai-gpu";
|
|
82
|
-
state: "
|
|
82
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
83
83
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
84
84
|
steps: {
|
|
85
85
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
86
|
-
state: "pending" | "failed" | "running" | "
|
|
86
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
87
87
|
completedAt: string | null;
|
|
88
88
|
}[];
|
|
89
|
-
|
|
89
|
+
startedAt: string;
|
|
90
90
|
idempotencyKey: string;
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
completedAt: string | null;
|
|
92
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
93
93
|
from: "awake" | "sleep";
|
|
94
94
|
to: "awake" | "sleep";
|
|
95
|
-
|
|
95
|
+
transitionId: string;
|
|
96
|
+
requestedBy: "operator" | "ai-lab";
|
|
96
97
|
fingerprint: {
|
|
97
98
|
inferenceRuntimeDigest: string;
|
|
98
99
|
trainingRuntimeDigest: string;
|
|
99
100
|
};
|
|
100
|
-
startedAt: string;
|
|
101
101
|
}, {
|
|
102
102
|
resource: "ai-gpu";
|
|
103
|
-
state: "
|
|
103
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
104
104
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
105
105
|
steps: {
|
|
106
106
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
107
|
-
state: "pending" | "failed" | "running" | "
|
|
107
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
108
108
|
completedAt: string | null;
|
|
109
109
|
}[];
|
|
110
|
-
|
|
110
|
+
startedAt: string;
|
|
111
111
|
idempotencyKey: string;
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
completedAt: string | null;
|
|
113
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
114
114
|
from: "awake" | "sleep";
|
|
115
115
|
to: "awake" | "sleep";
|
|
116
|
-
|
|
116
|
+
transitionId: string;
|
|
117
|
+
requestedBy: "operator" | "ai-lab";
|
|
117
118
|
fingerprint: {
|
|
118
119
|
inferenceRuntimeDigest: string;
|
|
119
120
|
trainingRuntimeDigest: string;
|
|
120
121
|
};
|
|
121
|
-
startedAt: string;
|
|
122
122
|
}>;
|
|
123
123
|
export declare const aiModeStatusSchema: z.ZodObject<{
|
|
124
124
|
schemaVersion: z.ZodLiteral<"treeseed.ai-mode-status/v1">;
|
|
@@ -161,57 +161,57 @@ export declare const aiModeStatusSchema: z.ZodObject<{
|
|
|
161
161
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
162
162
|
}, "strict", z.ZodTypeAny, {
|
|
163
163
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
164
|
-
state: "pending" | "failed" | "running" | "
|
|
164
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
165
165
|
completedAt: string | null;
|
|
166
166
|
}, {
|
|
167
167
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
168
|
-
state: "pending" | "failed" | "running" | "
|
|
168
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
169
169
|
completedAt: string | null;
|
|
170
170
|
}>, "many">;
|
|
171
171
|
startedAt: z.ZodString;
|
|
172
172
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
173
173
|
}, "strict", z.ZodTypeAny, {
|
|
174
174
|
resource: "ai-gpu";
|
|
175
|
-
state: "
|
|
175
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
176
176
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
177
177
|
steps: {
|
|
178
178
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
179
|
-
state: "pending" | "failed" | "running" | "
|
|
179
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
180
180
|
completedAt: string | null;
|
|
181
181
|
}[];
|
|
182
|
-
|
|
182
|
+
startedAt: string;
|
|
183
183
|
idempotencyKey: string;
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
completedAt: string | null;
|
|
185
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
186
186
|
from: "awake" | "sleep";
|
|
187
187
|
to: "awake" | "sleep";
|
|
188
|
-
|
|
188
|
+
transitionId: string;
|
|
189
|
+
requestedBy: "operator" | "ai-lab";
|
|
189
190
|
fingerprint: {
|
|
190
191
|
inferenceRuntimeDigest: string;
|
|
191
192
|
trainingRuntimeDigest: string;
|
|
192
193
|
};
|
|
193
|
-
startedAt: string;
|
|
194
194
|
}, {
|
|
195
195
|
resource: "ai-gpu";
|
|
196
|
-
state: "
|
|
196
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
197
197
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
198
198
|
steps: {
|
|
199
199
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
200
|
-
state: "pending" | "failed" | "running" | "
|
|
200
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
201
201
|
completedAt: string | null;
|
|
202
202
|
}[];
|
|
203
|
-
|
|
203
|
+
startedAt: string;
|
|
204
204
|
idempotencyKey: string;
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
completedAt: string | null;
|
|
206
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
207
207
|
from: "awake" | "sleep";
|
|
208
208
|
to: "awake" | "sleep";
|
|
209
|
-
|
|
209
|
+
transitionId: string;
|
|
210
|
+
requestedBy: "operator" | "ai-lab";
|
|
210
211
|
fingerprint: {
|
|
211
212
|
inferenceRuntimeDigest: string;
|
|
212
213
|
trainingRuntimeDigest: string;
|
|
213
214
|
};
|
|
214
|
-
startedAt: string;
|
|
215
215
|
}>>;
|
|
216
216
|
lastReceipt: z.ZodNullable<z.ZodObject<{
|
|
217
217
|
schemaVersion: z.ZodLiteral<"treeseed.ai-mode-transition-receipt/v1">;
|
|
@@ -239,163 +239,163 @@ export declare const aiModeStatusSchema: z.ZodObject<{
|
|
|
239
239
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
240
240
|
}, "strict", z.ZodTypeAny, {
|
|
241
241
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
242
|
-
state: "pending" | "failed" | "running" | "
|
|
242
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
243
243
|
completedAt: string | null;
|
|
244
244
|
}, {
|
|
245
245
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
246
|
-
state: "pending" | "failed" | "running" | "
|
|
246
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
247
247
|
completedAt: string | null;
|
|
248
248
|
}>, "many">;
|
|
249
249
|
startedAt: z.ZodString;
|
|
250
250
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
251
251
|
}, "strict", z.ZodTypeAny, {
|
|
252
252
|
resource: "ai-gpu";
|
|
253
|
-
state: "
|
|
253
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
254
254
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
255
255
|
steps: {
|
|
256
256
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
257
|
-
state: "pending" | "failed" | "running" | "
|
|
257
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
258
258
|
completedAt: string | null;
|
|
259
259
|
}[];
|
|
260
|
-
|
|
260
|
+
startedAt: string;
|
|
261
261
|
idempotencyKey: string;
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
completedAt: string | null;
|
|
263
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
264
264
|
from: "awake" | "sleep";
|
|
265
265
|
to: "awake" | "sleep";
|
|
266
|
-
|
|
266
|
+
transitionId: string;
|
|
267
|
+
requestedBy: "operator" | "ai-lab";
|
|
267
268
|
fingerprint: {
|
|
268
269
|
inferenceRuntimeDigest: string;
|
|
269
270
|
trainingRuntimeDigest: string;
|
|
270
271
|
};
|
|
271
|
-
startedAt: string;
|
|
272
272
|
}, {
|
|
273
273
|
resource: "ai-gpu";
|
|
274
|
-
state: "
|
|
274
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
275
275
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
276
276
|
steps: {
|
|
277
277
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
278
|
-
state: "pending" | "failed" | "running" | "
|
|
278
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
279
279
|
completedAt: string | null;
|
|
280
280
|
}[];
|
|
281
|
-
|
|
281
|
+
startedAt: string;
|
|
282
282
|
idempotencyKey: string;
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
completedAt: string | null;
|
|
284
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
285
285
|
from: "awake" | "sleep";
|
|
286
286
|
to: "awake" | "sleep";
|
|
287
|
-
|
|
287
|
+
transitionId: string;
|
|
288
|
+
requestedBy: "operator" | "ai-lab";
|
|
288
289
|
fingerprint: {
|
|
289
290
|
inferenceRuntimeDigest: string;
|
|
290
291
|
trainingRuntimeDigest: string;
|
|
291
292
|
};
|
|
292
|
-
startedAt: string;
|
|
293
293
|
}>>;
|
|
294
294
|
}, "strict", z.ZodTypeAny, {
|
|
295
295
|
resource: "ai-gpu";
|
|
296
296
|
schemaVersion: "treeseed.ai-mode-status/v1";
|
|
297
297
|
available: boolean;
|
|
298
|
-
mode: "degraded" | "awake" | "sleep" | "transitioning-awake" | "transitioning-sleep"
|
|
298
|
+
mode: "degraded" | "unavailable" | "awake" | "sleep" | "transitioning-awake" | "transitioning-sleep";
|
|
299
299
|
fingerprint: {
|
|
300
300
|
inferenceRuntimeDigest: string;
|
|
301
301
|
trainingRuntimeDigest: string;
|
|
302
302
|
} | null;
|
|
303
303
|
activeTransition: {
|
|
304
304
|
resource: "ai-gpu";
|
|
305
|
-
state: "
|
|
305
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
306
306
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
307
307
|
steps: {
|
|
308
308
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
309
|
-
state: "pending" | "failed" | "running" | "
|
|
309
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
310
310
|
completedAt: string | null;
|
|
311
311
|
}[];
|
|
312
|
-
|
|
312
|
+
startedAt: string;
|
|
313
313
|
idempotencyKey: string;
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
completedAt: string | null;
|
|
315
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
316
316
|
from: "awake" | "sleep";
|
|
317
317
|
to: "awake" | "sleep";
|
|
318
|
-
|
|
318
|
+
transitionId: string;
|
|
319
|
+
requestedBy: "operator" | "ai-lab";
|
|
319
320
|
fingerprint: {
|
|
320
321
|
inferenceRuntimeDigest: string;
|
|
321
322
|
trainingRuntimeDigest: string;
|
|
322
323
|
};
|
|
323
|
-
startedAt: string;
|
|
324
324
|
} | null;
|
|
325
325
|
lastReceipt: {
|
|
326
326
|
resource: "ai-gpu";
|
|
327
|
-
state: "
|
|
327
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
328
328
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
329
329
|
steps: {
|
|
330
330
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
331
|
-
state: "pending" | "failed" | "running" | "
|
|
331
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
332
332
|
completedAt: string | null;
|
|
333
333
|
}[];
|
|
334
|
-
|
|
334
|
+
startedAt: string;
|
|
335
335
|
idempotencyKey: string;
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
completedAt: string | null;
|
|
337
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
338
338
|
from: "awake" | "sleep";
|
|
339
339
|
to: "awake" | "sleep";
|
|
340
|
-
|
|
340
|
+
transitionId: string;
|
|
341
|
+
requestedBy: "operator" | "ai-lab";
|
|
341
342
|
fingerprint: {
|
|
342
343
|
inferenceRuntimeDigest: string;
|
|
343
344
|
trainingRuntimeDigest: string;
|
|
344
345
|
};
|
|
345
|
-
startedAt: string;
|
|
346
346
|
} | null;
|
|
347
347
|
}, {
|
|
348
348
|
resource: "ai-gpu";
|
|
349
349
|
schemaVersion: "treeseed.ai-mode-status/v1";
|
|
350
350
|
available: boolean;
|
|
351
|
-
mode: "degraded" | "awake" | "sleep" | "transitioning-awake" | "transitioning-sleep"
|
|
351
|
+
mode: "degraded" | "unavailable" | "awake" | "sleep" | "transitioning-awake" | "transitioning-sleep";
|
|
352
352
|
fingerprint: {
|
|
353
353
|
inferenceRuntimeDigest: string;
|
|
354
354
|
trainingRuntimeDigest: string;
|
|
355
355
|
} | null;
|
|
356
356
|
activeTransition: {
|
|
357
357
|
resource: "ai-gpu";
|
|
358
|
-
state: "
|
|
358
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
359
359
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
360
360
|
steps: {
|
|
361
361
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
362
|
-
state: "pending" | "failed" | "running" | "
|
|
362
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
363
363
|
completedAt: string | null;
|
|
364
364
|
}[];
|
|
365
|
-
|
|
365
|
+
startedAt: string;
|
|
366
366
|
idempotencyKey: string;
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
completedAt: string | null;
|
|
368
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
369
369
|
from: "awake" | "sleep";
|
|
370
370
|
to: "awake" | "sleep";
|
|
371
|
-
|
|
371
|
+
transitionId: string;
|
|
372
|
+
requestedBy: "operator" | "ai-lab";
|
|
372
373
|
fingerprint: {
|
|
373
374
|
inferenceRuntimeDigest: string;
|
|
374
375
|
trainingRuntimeDigest: string;
|
|
375
376
|
};
|
|
376
|
-
startedAt: string;
|
|
377
377
|
} | null;
|
|
378
378
|
lastReceipt: {
|
|
379
379
|
resource: "ai-gpu";
|
|
380
|
-
state: "
|
|
380
|
+
state: "running" | "degraded" | "planned" | "succeeded" | "postponed" | "rolled-back";
|
|
381
381
|
schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
|
|
382
382
|
steps: {
|
|
383
383
|
id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
|
|
384
|
-
state: "pending" | "failed" | "running" | "
|
|
384
|
+
state: "pending" | "failed" | "running" | "skipped" | "succeeded";
|
|
385
385
|
completedAt: string | null;
|
|
386
386
|
}[];
|
|
387
|
-
|
|
387
|
+
startedAt: string;
|
|
388
388
|
idempotencyKey: string;
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
completedAt: string | null;
|
|
390
|
+
reason: "active-inference" | "active-training" | "transition-failed" | "recovery-failed" | null;
|
|
391
391
|
from: "awake" | "sleep";
|
|
392
392
|
to: "awake" | "sleep";
|
|
393
|
-
|
|
393
|
+
transitionId: string;
|
|
394
|
+
requestedBy: "operator" | "ai-lab";
|
|
394
395
|
fingerprint: {
|
|
395
396
|
inferenceRuntimeDigest: string;
|
|
396
397
|
trainingRuntimeDigest: string;
|
|
397
398
|
};
|
|
398
|
-
startedAt: string;
|
|
399
399
|
} | null;
|
|
400
400
|
}>;
|
|
401
401
|
export declare const aiModeInternalControlSchema: z.ZodObject<{
|
|
@@ -90,8 +90,8 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
90
90
|
externalIdInput?: string | undefined;
|
|
91
91
|
}>;
|
|
92
92
|
}, "strict", z.ZodTypeAny, {
|
|
93
|
-
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "
|
|
94
|
-
provider: "
|
|
93
|
+
kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
|
|
94
|
+
provider: "railway" | "cloudflare";
|
|
95
95
|
id: string;
|
|
96
96
|
dependsOn: string[];
|
|
97
97
|
parameters: Record<string, {
|
|
@@ -112,8 +112,8 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
112
112
|
externalIdInput?: string | undefined;
|
|
113
113
|
};
|
|
114
114
|
}, {
|
|
115
|
-
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "
|
|
116
|
-
provider: "
|
|
115
|
+
kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
|
|
116
|
+
provider: "railway" | "cloudflare";
|
|
117
117
|
id: string;
|
|
118
118
|
adoption: {
|
|
119
119
|
mode: "adopt-or-create";
|
|
@@ -138,8 +138,8 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
138
138
|
id: string;
|
|
139
139
|
schemaVersion: "treeseed.hosted-topology-template/v1";
|
|
140
140
|
resources: {
|
|
141
|
-
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "
|
|
142
|
-
provider: "
|
|
141
|
+
kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
|
|
142
|
+
provider: "railway" | "cloudflare";
|
|
143
143
|
id: string;
|
|
144
144
|
dependsOn: string[];
|
|
145
145
|
parameters: Record<string, {
|
|
@@ -160,14 +160,14 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
160
160
|
externalIdInput?: string | undefined;
|
|
161
161
|
};
|
|
162
162
|
}[];
|
|
163
|
+
environment: "staging" | "production";
|
|
163
164
|
mutation: "agent-authorized";
|
|
164
|
-
environment: "production" | "staging";
|
|
165
165
|
deploymentId: string;
|
|
166
166
|
stackId: string;
|
|
167
167
|
stateBackend: {
|
|
168
168
|
connectionRef: string;
|
|
169
169
|
};
|
|
170
|
-
providerConnections: Partial<Record<"
|
|
170
|
+
providerConnections: Partial<Record<"railway" | "cloudflare", {
|
|
171
171
|
connectionRef: string;
|
|
172
172
|
}>>;
|
|
173
173
|
artifactBindings: Record<string, {
|
|
@@ -178,8 +178,8 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
178
178
|
id: string;
|
|
179
179
|
schemaVersion: "treeseed.hosted-topology-template/v1";
|
|
180
180
|
resources: {
|
|
181
|
-
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "
|
|
182
|
-
provider: "
|
|
181
|
+
kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
|
|
182
|
+
provider: "railway" | "cloudflare";
|
|
183
183
|
id: string;
|
|
184
184
|
adoption: {
|
|
185
185
|
mode: "adopt-or-create";
|
|
@@ -200,14 +200,14 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
200
200
|
literal: string | number | boolean;
|
|
201
201
|
}> | undefined;
|
|
202
202
|
}[];
|
|
203
|
+
environment: "staging" | "production";
|
|
203
204
|
mutation: "agent-authorized";
|
|
204
|
-
environment: "production" | "staging";
|
|
205
205
|
deploymentId: string;
|
|
206
206
|
stackId: string;
|
|
207
207
|
stateBackend: {
|
|
208
208
|
connectionRef: string;
|
|
209
209
|
};
|
|
210
|
-
providerConnections: Partial<Record<"
|
|
210
|
+
providerConnections: Partial<Record<"railway" | "cloudflare", {
|
|
211
211
|
connectionRef: string;
|
|
212
212
|
}>>;
|
|
213
213
|
artifactBindings: Record<string, {
|
|
@@ -218,8 +218,8 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
218
218
|
id: string;
|
|
219
219
|
schemaVersion: "treeseed.hosted-topology-template/v1";
|
|
220
220
|
resources: {
|
|
221
|
-
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "
|
|
222
|
-
provider: "
|
|
221
|
+
kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
|
|
222
|
+
provider: "railway" | "cloudflare";
|
|
223
223
|
id: string;
|
|
224
224
|
dependsOn: string[];
|
|
225
225
|
parameters: Record<string, {
|
|
@@ -240,14 +240,14 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
240
240
|
externalIdInput?: string | undefined;
|
|
241
241
|
};
|
|
242
242
|
}[];
|
|
243
|
+
environment: "staging" | "production";
|
|
243
244
|
mutation: "agent-authorized";
|
|
244
|
-
environment: "production" | "staging";
|
|
245
245
|
deploymentId: string;
|
|
246
246
|
stackId: string;
|
|
247
247
|
stateBackend: {
|
|
248
248
|
connectionRef: string;
|
|
249
249
|
};
|
|
250
|
-
providerConnections: Partial<Record<"
|
|
250
|
+
providerConnections: Partial<Record<"railway" | "cloudflare", {
|
|
251
251
|
connectionRef: string;
|
|
252
252
|
}>>;
|
|
253
253
|
artifactBindings: Record<string, {
|
|
@@ -258,8 +258,8 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
258
258
|
id: string;
|
|
259
259
|
schemaVersion: "treeseed.hosted-topology-template/v1";
|
|
260
260
|
resources: {
|
|
261
|
-
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "
|
|
262
|
-
provider: "
|
|
261
|
+
kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
|
|
262
|
+
provider: "railway" | "cloudflare";
|
|
263
263
|
id: string;
|
|
264
264
|
adoption: {
|
|
265
265
|
mode: "adopt-or-create";
|
|
@@ -280,14 +280,14 @@ export declare const hostedTopologyTemplateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
280
280
|
literal: string | number | boolean;
|
|
281
281
|
}> | undefined;
|
|
282
282
|
}[];
|
|
283
|
+
environment: "staging" | "production";
|
|
283
284
|
mutation: "agent-authorized";
|
|
284
|
-
environment: "production" | "staging";
|
|
285
285
|
deploymentId: string;
|
|
286
286
|
stackId: string;
|
|
287
287
|
stateBackend: {
|
|
288
288
|
connectionRef: string;
|
|
289
289
|
};
|
|
290
|
-
providerConnections: Partial<Record<"
|
|
290
|
+
providerConnections: Partial<Record<"railway" | "cloudflare", {
|
|
291
291
|
connectionRef: string;
|
|
292
292
|
}>>;
|
|
293
293
|
artifactBindings: Record<string, {
|
|
@@ -394,8 +394,8 @@ export declare function compileHostedTopologyTemplate(input: {
|
|
|
394
394
|
id: string;
|
|
395
395
|
schemaVersion: "treeseed.hosted-topology/v1";
|
|
396
396
|
resources: {
|
|
397
|
-
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "
|
|
398
|
-
provider: "
|
|
397
|
+
kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
|
|
398
|
+
provider: "railway" | "cloudflare";
|
|
399
399
|
id: string;
|
|
400
400
|
dependsOn: string[];
|
|
401
401
|
parameters: Record<string, {
|
|
@@ -421,8 +421,8 @@ export declare function compileHostedTopologyTemplate(input: {
|
|
|
421
421
|
repository: "treeseed-ai/platform";
|
|
422
422
|
commit: string;
|
|
423
423
|
};
|
|
424
|
+
environment: "staging" | "production";
|
|
424
425
|
mutation: "agent-authorized";
|
|
425
|
-
environment: "production" | "staging";
|
|
426
426
|
artifacts: Record<string, {
|
|
427
427
|
kind: "archive";
|
|
428
428
|
digest: string;
|
|
@@ -443,7 +443,7 @@ export declare function compileHostedTopologyTemplate(input: {
|
|
|
443
443
|
stateBackend: {
|
|
444
444
|
connectionRef: string;
|
|
445
445
|
};
|
|
446
|
-
providerConnections: Partial<Record<"
|
|
446
|
+
providerConnections: Partial<Record<"railway" | "cloudflare", {
|
|
447
447
|
connectionRef: string;
|
|
448
448
|
}>>;
|
|
449
449
|
};
|