@treeseed/sdk 0.13.0-rc.122 → 0.13.0-rc.124
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/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1392 -974
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +72 -27
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +34 -34
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -0
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -1
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -3
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +21 -15
- package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +3 -42
- package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +8 -8
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +227 -66
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +54 -19
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +214 -5
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
- package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +47 -47
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -0
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
- package/dist/agent-capacity/contracts/support/execution-graph.d.ts +434 -230
- package/dist/agent-capacity/contracts/support/execution-graph.js +20 -18
- package/dist/agent-capacity/contracts/support/financial-records.d.ts +2 -0
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +286 -254
- package/dist/agent-capacity/validation/agent-definition-schema.js +22 -28
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +1 -1
- package/dist/agent-capacity/validation/assignment-records.js +45 -0
- package/dist/capacity/agents/agent-capacity.d.ts +1 -0
- package/dist/capacity/agents/agent-capacity.js +1 -0
- package/dist/capacity-provider/capability-ontology.d.ts +102 -102
- package/dist/capacity-provider/client.d.ts +14 -7
- package/dist/capacity-provider/client.js +1 -4
- package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
- package/dist/capacity-provider/contracts/environment-profiles.d.ts +40 -40
- package/dist/capacity-provider/contracts/governance.d.ts +2 -17
- package/dist/capacity-provider/contracts/index.d.ts +2 -0
- package/dist/capacity-provider/contracts/index.js +2 -0
- package/dist/capacity-provider/core-capability-catalog.d.ts +7 -7
- package/dist/capacity-provider/environment-catalog.d.ts +22 -22
- package/dist/capacity-provider/environment-catalog.js +1 -1
- package/dist/capacity-provider/install-configuration.d.ts +4 -4
- package/dist/capacity-provider/sandbox-contracts.d.ts +54 -54
- package/dist/capacity-provider/source-workspace.d.ts +76 -76
- package/dist/capacity-provider/validation.d.ts +10 -2
- package/dist/capacity-provider/validation.js +52 -22
- package/dist/content/validation/agent-operational-content-schemas.d.ts +120 -118
- package/dist/content/validation/agent-operational-content-schemas.js +2 -0
- package/dist/content/validation/auxiliary-content-schemas.d.ts +92 -92
- package/dist/content/validation/content-model-schemas.d.ts +3155 -2512
- package/dist/content/validation/content-model-schemas.js +97 -87
- package/dist/content/validation/portable-content-data.d.ts +173 -168
- package/dist/content/validation/schema-constraints.d.ts +78 -0
- package/dist/content/validation/schema-constraints.js +149 -0
- package/dist/deployment/ai/storage.d.ts +20 -20
- package/dist/deployment/ai-hosting.d.ts +12 -12
- package/dist/deployment/ai-instance.d.ts +12 -12
- package/dist/deployment/ai-mode.d.ts +34 -34
- package/dist/deployment/hosted-topology-template.d.ts +25 -25
- package/dist/deployment/hosted-topology.d.ts +146 -146
- package/dist/deployment/postgres/transfer.d.ts +2 -2
- package/dist/deployment/schemas.d.ts +504 -504
- package/dist/development/schemas.d.ts +325 -325
- package/dist/graph/context-query-contracts.js +1 -1
- package/dist/guarantees/index.d.ts +26 -2
- package/dist/identity/contracts.js +6 -1
- package/dist/operator-contracts/canonical-command-tree.js +22 -8
- package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +27 -27
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +25 -25
- package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +11 -9
- package/dist/operator-contracts/catalog/communication-operations.d.ts +108 -90
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +33 -33
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +27 -27
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +4 -4
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +5 -5
- package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +3 -3
- package/dist/operator-contracts/catalog/services/secret-operations.d.ts +16 -8
- package/dist/operator-contracts/catalog/services/secret-operations.js +2 -1
- package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +11 -11
- package/dist/operator-contracts/catalog/workdays/selection-commands.js +7 -6
- package/dist/operator-contracts/communication/contracts.d.ts +340 -198
- package/dist/operator-contracts/communication/contracts.js +6 -1
- package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
- package/dist/operator-contracts/control-plane-operation.js +6 -0
- package/dist/operator-contracts/control-plane-operations.d.ts +469 -442
- package/dist/operator-contracts/control-plane-operations.js +26 -10
- package/dist/operator-contracts/inbox/contracts.d.ts +100 -100
- package/dist/operator-contracts/knowledge/contracts.d.ts +6 -6
- package/dist/operator-contracts/mcp.js +4 -3
- package/dist/operator-contracts/workday-lifecycle.d.ts +192 -2
- package/dist/operator-contracts/workday-lifecycle.js +108 -45
- package/dist/platform/agent-schema-verification.js +316 -33
- package/dist/platform/contracts.d.ts +72 -72
- package/dist/platform/schemas.d.ts +144 -36
- package/dist/platform/schemas.js +26 -0
- package/dist/platform/verification.js +4 -0
- package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
- package/dist/secrets-capability/secret-contracts.d.ts +2 -2
- package/dist/secrets-capability/shared-access.d.ts +1 -1
- package/dist/secrets-capability/shared-resources.d.ts +30 -30
- package/dist/security/encrypted-envelope.d.ts +6 -6
- package/dist/treedx/client.d.ts +4 -4
- package/dist/treedx/index.d.ts +1 -1
- package/dist/treedx/index.js +1 -0
- package/dist/treedx/types.d.ts +286 -0
- package/dist/treedx/types.js +44 -0
- package/dist/types/agents/agent-activity-profile.d.ts +1 -0
- package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
- package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
- package/guarantees/agent/golden/product.guarantee.yaml +12 -0
- package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +837 -0
- package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
- package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
- package/guarantees/verifiers/golden.verifiers.yaml +1429 -0
- package/package.json +10 -5
- package/tests/acceptance/golden-product.test.ts +205 -0
- package/tests/acceptance/golden-product.ts +404 -0
- package/tests/acceptance/product/base-red.ts +73 -0
- package/tests/acceptance/product/documentation-examples.ts +68 -0
- package/tests/acceptance/product/intent-runtime.ts +145 -0
- package/tests/acceptance/product/release-output.ts +160 -0
- package/tests/acceptance/product/research-artifact.ts +87 -0
- package/tests/acceptance/product/research-revision.ts +82 -0
- package/tests/acceptance/product/research-source.ts +91 -0
- package/tests/acceptance/product/test-chain.ts +192 -0
- package/treeseed.package.yaml +147 -0
- package/dist/.treeseed-build-complete.json +0 -1
|
@@ -58,7 +58,7 @@ class ProviderProtocolClient {
|
|
|
58
58
|
return response.data;
|
|
59
59
|
} catch (error) {
|
|
60
60
|
if (error instanceof CapacityProviderApiError) throw error;
|
|
61
|
-
if (error instanceof ControlPlaneClientError) throw new CapacityProviderApiError(error.message
|
|
61
|
+
if (error instanceof ControlPlaneClientError) throw new CapacityProviderApiError(`${operation.descriptor.operationId}: ${error.message}`, error.status, error.problem);
|
|
62
62
|
const timedOut = controller.signal.aborted || error instanceof Error && error.name === "AbortError";
|
|
63
63
|
throw new CapacityProviderApiError(
|
|
64
64
|
timedOut ? `Capacity provider request timed out after ${this.requestTimeoutMs}ms.` : error instanceof Error ? error.message : String(error),
|
|
@@ -161,9 +161,6 @@ class ProviderProtocolClient {
|
|
|
161
161
|
createAssignmentEvent(assignmentId, request) {
|
|
162
162
|
return this.invoke(CONTROL_PLANE_OPERATIONS.providers.createEvent, { path: { assignmentId }, body: request });
|
|
163
163
|
}
|
|
164
|
-
publishAssignmentSignal(assignmentId, request) {
|
|
165
|
-
return this.invoke(CONTROL_PLANE_OPERATIONS.providers.publishSignal, { path: { assignmentId }, body: request });
|
|
166
|
-
}
|
|
167
164
|
dispatchAssignmentWorkflowOperation(assignmentId, operationId, request) {
|
|
168
165
|
return this.invoke(CONTROL_PLANE_OPERATIONS.providers.dispatchWorkflow, { path: { assignmentId, operationId }, body: request });
|
|
169
166
|
}
|
|
@@ -8,15 +8,15 @@ export declare const providerRegistrationCodeStatusSchema: z.ZodObject<{
|
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
9
|
schemaVersion: "treeseed.provider-registration-code-status/v1";
|
|
10
10
|
teamId: string;
|
|
11
|
-
rotatedAt: string;
|
|
12
11
|
generation: number;
|
|
13
12
|
codePrefix: string;
|
|
13
|
+
rotatedAt: string;
|
|
14
14
|
}, {
|
|
15
15
|
schemaVersion: "treeseed.provider-registration-code-status/v1";
|
|
16
16
|
teamId: string;
|
|
17
|
-
rotatedAt: string;
|
|
18
17
|
generation: number;
|
|
19
18
|
codePrefix: string;
|
|
19
|
+
rotatedAt: string;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const providerRegistrationCodeReceiptSchema: z.ZodObject<{
|
|
22
22
|
schemaVersion: z.ZodLiteral<"treeseed.provider-registration-code-receipt/v1">;
|
|
@@ -28,16 +28,16 @@ export declare const providerRegistrationCodeReceiptSchema: z.ZodObject<{
|
|
|
28
28
|
}, "strict", z.ZodTypeAny, {
|
|
29
29
|
schemaVersion: "treeseed.provider-registration-code-receipt/v1";
|
|
30
30
|
teamId: string;
|
|
31
|
-
rotatedAt: string;
|
|
32
31
|
generation: number;
|
|
33
32
|
codePrefix: string;
|
|
33
|
+
rotatedAt: string;
|
|
34
34
|
registrationCode: string;
|
|
35
35
|
}, {
|
|
36
36
|
schemaVersion: "treeseed.provider-registration-code-receipt/v1";
|
|
37
37
|
teamId: string;
|
|
38
|
-
rotatedAt: string;
|
|
39
38
|
generation: number;
|
|
40
39
|
codePrefix: string;
|
|
40
|
+
rotatedAt: string;
|
|
41
41
|
registrationCode: string;
|
|
42
42
|
}>;
|
|
43
43
|
export declare const providerEnvironmentVariableDescriptorSchema: z.ZodObject<{
|
|
@@ -74,43 +74,43 @@ export declare const providerEnvironmentProfileDescriptorSchema: z.ZodEffects<z.
|
|
|
74
74
|
}, "strict", z.ZodTypeAny, {
|
|
75
75
|
id: string;
|
|
76
76
|
schemaVersion: "treeseed.provider-environment-profile/v1";
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
generation: number;
|
|
77
79
|
variables: {
|
|
78
80
|
name: string;
|
|
79
81
|
available: boolean;
|
|
80
82
|
rotatedAt?: string | undefined;
|
|
81
83
|
}[];
|
|
82
|
-
updatedAt: string;
|
|
83
|
-
generation: number;
|
|
84
84
|
}, {
|
|
85
85
|
id: string;
|
|
86
86
|
schemaVersion: "treeseed.provider-environment-profile/v1";
|
|
87
|
+
updatedAt: string;
|
|
88
|
+
generation: number;
|
|
87
89
|
variables: {
|
|
88
90
|
name: string;
|
|
89
91
|
available: boolean;
|
|
90
92
|
rotatedAt?: string | undefined;
|
|
91
93
|
}[];
|
|
92
|
-
updatedAt: string;
|
|
93
|
-
generation: number;
|
|
94
94
|
}>, {
|
|
95
95
|
id: string;
|
|
96
96
|
schemaVersion: "treeseed.provider-environment-profile/v1";
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
generation: number;
|
|
97
99
|
variables: {
|
|
98
100
|
name: string;
|
|
99
101
|
available: boolean;
|
|
100
102
|
rotatedAt?: string | undefined;
|
|
101
103
|
}[];
|
|
102
|
-
updatedAt: string;
|
|
103
|
-
generation: number;
|
|
104
104
|
}, {
|
|
105
105
|
id: string;
|
|
106
106
|
schemaVersion: "treeseed.provider-environment-profile/v1";
|
|
107
|
+
updatedAt: string;
|
|
108
|
+
generation: number;
|
|
107
109
|
variables: {
|
|
108
110
|
name: string;
|
|
109
111
|
available: boolean;
|
|
110
112
|
rotatedAt?: string | undefined;
|
|
111
113
|
}[];
|
|
112
|
-
updatedAt: string;
|
|
113
|
-
generation: number;
|
|
114
114
|
}>;
|
|
115
115
|
export declare const assignmentEnvironmentGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
116
116
|
schemaVersion: z.ZodLiteral<"treeseed.assignment-environment-grant/v1">;
|
|
@@ -158,18 +158,17 @@ export declare const assignmentEnvironmentGrantSchema: z.ZodEffects<z.ZodObject<
|
|
|
158
158
|
}, "strict", z.ZodTypeAny, {
|
|
159
159
|
expiresAt: string;
|
|
160
160
|
schemaVersion: "treeseed.assignment-environment-grant/v1";
|
|
161
|
-
projectId: string;
|
|
162
|
-
teamId: string;
|
|
163
|
-
providerId: string;
|
|
164
|
-
issuedAt: string;
|
|
165
|
-
variables: string[];
|
|
166
|
-
assignmentId: string;
|
|
167
|
-
profileId: string;
|
|
168
161
|
network: {
|
|
169
162
|
allowed: boolean;
|
|
170
163
|
destinations: string[];
|
|
171
164
|
};
|
|
165
|
+
assignmentId: string;
|
|
166
|
+
teamId: string;
|
|
167
|
+
projectId: string;
|
|
168
|
+
providerId: string;
|
|
169
|
+
variables: string[];
|
|
172
170
|
grantId: string;
|
|
171
|
+
profileId: string;
|
|
173
172
|
policy: {
|
|
174
173
|
handlerDeclarationDigest: string;
|
|
175
174
|
providerOfferDigest: string;
|
|
@@ -178,21 +177,21 @@ export declare const assignmentEnvironmentGrantSchema: z.ZodEffects<z.ZodObject<
|
|
|
178
177
|
assignmentGrantDigest: string;
|
|
179
178
|
sandboxPolicyDigest: string;
|
|
180
179
|
};
|
|
180
|
+
issuedAt: string;
|
|
181
181
|
}, {
|
|
182
182
|
expiresAt: string;
|
|
183
183
|
schemaVersion: "treeseed.assignment-environment-grant/v1";
|
|
184
|
-
projectId: string;
|
|
185
|
-
teamId: string;
|
|
186
|
-
providerId: string;
|
|
187
|
-
issuedAt: string;
|
|
188
|
-
variables: string[];
|
|
189
|
-
assignmentId: string;
|
|
190
|
-
profileId: string;
|
|
191
184
|
network: {
|
|
192
185
|
allowed: boolean;
|
|
193
186
|
destinations: string[];
|
|
194
187
|
};
|
|
188
|
+
assignmentId: string;
|
|
189
|
+
teamId: string;
|
|
190
|
+
projectId: string;
|
|
191
|
+
providerId: string;
|
|
192
|
+
variables: string[];
|
|
195
193
|
grantId: string;
|
|
194
|
+
profileId: string;
|
|
196
195
|
policy: {
|
|
197
196
|
handlerDeclarationDigest: string;
|
|
198
197
|
providerOfferDigest: string;
|
|
@@ -201,21 +200,21 @@ export declare const assignmentEnvironmentGrantSchema: z.ZodEffects<z.ZodObject<
|
|
|
201
200
|
assignmentGrantDigest: string;
|
|
202
201
|
sandboxPolicyDigest: string;
|
|
203
202
|
};
|
|
203
|
+
issuedAt: string;
|
|
204
204
|
}>, {
|
|
205
205
|
expiresAt: string;
|
|
206
206
|
schemaVersion: "treeseed.assignment-environment-grant/v1";
|
|
207
|
-
projectId: string;
|
|
208
|
-
teamId: string;
|
|
209
|
-
providerId: string;
|
|
210
|
-
issuedAt: string;
|
|
211
|
-
variables: string[];
|
|
212
|
-
assignmentId: string;
|
|
213
|
-
profileId: string;
|
|
214
207
|
network: {
|
|
215
208
|
allowed: boolean;
|
|
216
209
|
destinations: string[];
|
|
217
210
|
};
|
|
211
|
+
assignmentId: string;
|
|
212
|
+
teamId: string;
|
|
213
|
+
projectId: string;
|
|
214
|
+
providerId: string;
|
|
215
|
+
variables: string[];
|
|
218
216
|
grantId: string;
|
|
217
|
+
profileId: string;
|
|
219
218
|
policy: {
|
|
220
219
|
handlerDeclarationDigest: string;
|
|
221
220
|
providerOfferDigest: string;
|
|
@@ -224,21 +223,21 @@ export declare const assignmentEnvironmentGrantSchema: z.ZodEffects<z.ZodObject<
|
|
|
224
223
|
assignmentGrantDigest: string;
|
|
225
224
|
sandboxPolicyDigest: string;
|
|
226
225
|
};
|
|
226
|
+
issuedAt: string;
|
|
227
227
|
}, {
|
|
228
228
|
expiresAt: string;
|
|
229
229
|
schemaVersion: "treeseed.assignment-environment-grant/v1";
|
|
230
|
-
projectId: string;
|
|
231
|
-
teamId: string;
|
|
232
|
-
providerId: string;
|
|
233
|
-
issuedAt: string;
|
|
234
|
-
variables: string[];
|
|
235
|
-
assignmentId: string;
|
|
236
|
-
profileId: string;
|
|
237
230
|
network: {
|
|
238
231
|
allowed: boolean;
|
|
239
232
|
destinations: string[];
|
|
240
233
|
};
|
|
234
|
+
assignmentId: string;
|
|
235
|
+
teamId: string;
|
|
236
|
+
projectId: string;
|
|
237
|
+
providerId: string;
|
|
238
|
+
variables: string[];
|
|
241
239
|
grantId: string;
|
|
240
|
+
profileId: string;
|
|
242
241
|
policy: {
|
|
243
242
|
handlerDeclarationDigest: string;
|
|
244
243
|
providerOfferDigest: string;
|
|
@@ -247,6 +246,7 @@ export declare const assignmentEnvironmentGrantSchema: z.ZodEffects<z.ZodObject<
|
|
|
247
246
|
assignmentGrantDigest: string;
|
|
248
247
|
sandboxPolicyDigest: string;
|
|
249
248
|
};
|
|
249
|
+
issuedAt: string;
|
|
250
250
|
}>;
|
|
251
251
|
export type ProviderRegistrationCodeStatus = z.infer<typeof providerRegistrationCodeStatusSchema>;
|
|
252
252
|
export type ProviderRegistrationCodeReceipt = z.infer<typeof providerRegistrationCodeReceiptSchema>;
|
|
@@ -253,7 +253,6 @@ export interface CapacityProviderLane {
|
|
|
253
253
|
timeoutSeconds: number;
|
|
254
254
|
capabilities: string[];
|
|
255
255
|
maxConcurrentWorkers: number;
|
|
256
|
-
minimumAssignmentDuration?: MinimumAssignmentDuration;
|
|
257
256
|
metadata?: Record<string, unknown>;
|
|
258
257
|
createdAt: string;
|
|
259
258
|
updatedAt: string;
|
|
@@ -270,30 +269,18 @@ export interface ProviderLaneSnapshot {
|
|
|
270
269
|
capabilities: string[];
|
|
271
270
|
maxConcurrentWorkers: number;
|
|
272
271
|
activeWorkers: number;
|
|
273
|
-
minimumAssignmentDuration?: MinimumAssignmentDuration;
|
|
274
272
|
}
|
|
275
|
-
export type MinimumAssignmentDuration = {
|
|
276
|
-
amount: number;
|
|
277
|
-
unit: 'seconds';
|
|
278
|
-
} | {
|
|
279
|
-
amount: number;
|
|
280
|
-
unit: 'business-days';
|
|
281
|
-
calendar: {
|
|
282
|
-
timeZone: string;
|
|
283
|
-
weekdays?: number[];
|
|
284
|
-
holidayDates?: string[];
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
273
|
export interface ProviderExecutionAdapterSnapshot {
|
|
288
274
|
id: string;
|
|
289
275
|
adapter: string;
|
|
276
|
+
runtimeBuild: string;
|
|
277
|
+
offers: CapabilityOffer[];
|
|
290
278
|
isolation: 'microvm' | 'process' | 'worker';
|
|
291
279
|
status: 'available' | 'degraded' | 'unavailable';
|
|
292
280
|
capabilities: string[];
|
|
293
281
|
laneIds: string[];
|
|
294
282
|
maxConcurrentWorkers: number;
|
|
295
283
|
activeWorkers: number;
|
|
296
|
-
minimumAssignmentDuration?: MinimumAssignmentDuration;
|
|
297
284
|
nativeLimits: Record<string, unknown>;
|
|
298
285
|
observations?: Record<string, unknown>;
|
|
299
286
|
accountingObservation?: {
|
|
@@ -431,7 +418,6 @@ export interface CapacityProviderManifestV5 {
|
|
|
431
418
|
reclaimPolicy: 'admission';
|
|
432
419
|
queueLimit: number;
|
|
433
420
|
timeoutSeconds: number;
|
|
434
|
-
minimumAssignmentDuration?: MinimumAssignmentDuration;
|
|
435
421
|
capabilities?: string[];
|
|
436
422
|
}>;
|
|
437
423
|
sandbox: {
|
|
@@ -459,7 +445,6 @@ export interface CapacityProviderManifestV5 {
|
|
|
459
445
|
healthProbe?: string;
|
|
460
446
|
versionConstraint?: string;
|
|
461
447
|
configurationDigest?: string;
|
|
462
|
-
minimumAssignmentDuration?: MinimumAssignmentDuration;
|
|
463
448
|
nativeLimits: Record<string, unknown>;
|
|
464
449
|
researchSourcePolicy?: ResearchSourcePolicy;
|
|
465
450
|
offers: Array<{
|
|
@@ -5,18 +5,18 @@ export declare const CORE_CAPABILITY_DEFINITIONS: {
|
|
|
5
5
|
id: string;
|
|
6
6
|
version: string;
|
|
7
7
|
schemaVersion: "treeseed.capability-definition/v1";
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
createdAt: string;
|
|
8
11
|
digest: string;
|
|
12
|
+
family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
|
|
13
|
+
features: string[];
|
|
9
14
|
inputs: {
|
|
10
15
|
id: string;
|
|
11
16
|
version: string;
|
|
12
17
|
digest: string;
|
|
13
18
|
mediaTypes: string[];
|
|
14
19
|
}[];
|
|
15
|
-
createdAt: string;
|
|
16
|
-
title: string;
|
|
17
|
-
description: string;
|
|
18
|
-
family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
|
|
19
|
-
features: string[];
|
|
20
20
|
outputs: {
|
|
21
21
|
id: string;
|
|
22
22
|
version: string;
|
|
@@ -24,9 +24,9 @@ export declare const CORE_CAPABILITY_DEFINITIONS: {
|
|
|
24
24
|
mediaTypes: string[];
|
|
25
25
|
}[];
|
|
26
26
|
configuration: {
|
|
27
|
-
key: string;
|
|
28
|
-
description: string;
|
|
29
27
|
schema: Record<string, unknown>;
|
|
28
|
+
description: string;
|
|
29
|
+
key: string;
|
|
30
30
|
requirementSupport: ("required" | "preferred")[];
|
|
31
31
|
securityCritical: boolean;
|
|
32
32
|
}[];
|
|
@@ -7,13 +7,13 @@ export declare const sandboxEnvironmentContractSchema: z.ZodObject<{
|
|
|
7
7
|
}, "strict", z.ZodTypeAny, {
|
|
8
8
|
id: string;
|
|
9
9
|
version: string;
|
|
10
|
-
digest: string;
|
|
11
10
|
capabilities: string[];
|
|
11
|
+
digest: string;
|
|
12
12
|
}, {
|
|
13
13
|
id: string;
|
|
14
14
|
version: string;
|
|
15
|
-
digest: string;
|
|
16
15
|
capabilities: string[];
|
|
16
|
+
digest: string;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
19
19
|
id: z.ZodString;
|
|
@@ -27,13 +27,13 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
27
27
|
}, "strict", z.ZodTypeAny, {
|
|
28
28
|
id: string;
|
|
29
29
|
version: string;
|
|
30
|
-
digest: string;
|
|
31
30
|
capabilities: string[];
|
|
31
|
+
digest: string;
|
|
32
32
|
}, {
|
|
33
33
|
id: string;
|
|
34
34
|
version: string;
|
|
35
|
-
digest: string;
|
|
36
35
|
capabilities: string[];
|
|
36
|
+
digest: string;
|
|
37
37
|
}>;
|
|
38
38
|
image: z.ZodObject<{
|
|
39
39
|
reference: z.ZodString;
|
|
@@ -139,8 +139,8 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
139
139
|
contract: {
|
|
140
140
|
id: string;
|
|
141
141
|
version: string;
|
|
142
|
-
digest: string;
|
|
143
142
|
capabilities: string[];
|
|
143
|
+
digest: string;
|
|
144
144
|
};
|
|
145
145
|
provenance: {
|
|
146
146
|
signature: {
|
|
@@ -180,8 +180,8 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
180
180
|
contract: {
|
|
181
181
|
id: string;
|
|
182
182
|
version: string;
|
|
183
|
-
digest: string;
|
|
184
183
|
capabilities: string[];
|
|
184
|
+
digest: string;
|
|
185
185
|
};
|
|
186
186
|
provenance: {
|
|
187
187
|
signature: {
|
|
@@ -221,8 +221,8 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
221
221
|
contract: {
|
|
222
222
|
id: string;
|
|
223
223
|
version: string;
|
|
224
|
-
digest: string;
|
|
225
224
|
capabilities: string[];
|
|
225
|
+
digest: string;
|
|
226
226
|
};
|
|
227
227
|
provenance: {
|
|
228
228
|
signature: {
|
|
@@ -262,8 +262,8 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
262
262
|
contract: {
|
|
263
263
|
id: string;
|
|
264
264
|
version: string;
|
|
265
|
-
digest: string;
|
|
266
265
|
capabilities: string[];
|
|
266
|
+
digest: string;
|
|
267
267
|
};
|
|
268
268
|
provenance: {
|
|
269
269
|
signature: {
|
|
@@ -312,13 +312,13 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
312
312
|
}, "strict", z.ZodTypeAny, {
|
|
313
313
|
id: string;
|
|
314
314
|
version: string;
|
|
315
|
-
digest: string;
|
|
316
315
|
capabilities: string[];
|
|
316
|
+
digest: string;
|
|
317
317
|
}, {
|
|
318
318
|
id: string;
|
|
319
319
|
version: string;
|
|
320
|
-
digest: string;
|
|
321
320
|
capabilities: string[];
|
|
321
|
+
digest: string;
|
|
322
322
|
}>;
|
|
323
323
|
image: z.ZodObject<{
|
|
324
324
|
reference: z.ZodString;
|
|
@@ -424,8 +424,8 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
424
424
|
contract: {
|
|
425
425
|
id: string;
|
|
426
426
|
version: string;
|
|
427
|
-
digest: string;
|
|
428
427
|
capabilities: string[];
|
|
428
|
+
digest: string;
|
|
429
429
|
};
|
|
430
430
|
provenance: {
|
|
431
431
|
signature: {
|
|
@@ -465,8 +465,8 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
465
465
|
contract: {
|
|
466
466
|
id: string;
|
|
467
467
|
version: string;
|
|
468
|
-
digest: string;
|
|
469
468
|
capabilities: string[];
|
|
469
|
+
digest: string;
|
|
470
470
|
};
|
|
471
471
|
provenance: {
|
|
472
472
|
signature: {
|
|
@@ -506,8 +506,8 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
506
506
|
contract: {
|
|
507
507
|
id: string;
|
|
508
508
|
version: string;
|
|
509
|
-
digest: string;
|
|
510
509
|
capabilities: string[];
|
|
510
|
+
digest: string;
|
|
511
511
|
};
|
|
512
512
|
provenance: {
|
|
513
513
|
signature: {
|
|
@@ -547,8 +547,8 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
547
547
|
contract: {
|
|
548
548
|
id: string;
|
|
549
549
|
version: string;
|
|
550
|
-
digest: string;
|
|
551
550
|
capabilities: string[];
|
|
551
|
+
digest: string;
|
|
552
552
|
};
|
|
553
553
|
provenance: {
|
|
554
554
|
signature: {
|
|
@@ -604,8 +604,8 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
604
604
|
contract: {
|
|
605
605
|
id: string;
|
|
606
606
|
version: string;
|
|
607
|
-
digest: string;
|
|
608
607
|
capabilities: string[];
|
|
608
|
+
digest: string;
|
|
609
609
|
};
|
|
610
610
|
provenance: {
|
|
611
611
|
signature: {
|
|
@@ -659,8 +659,8 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
659
659
|
contract: {
|
|
660
660
|
id: string;
|
|
661
661
|
version: string;
|
|
662
|
-
digest: string;
|
|
663
662
|
capabilities: string[];
|
|
663
|
+
digest: string;
|
|
664
664
|
};
|
|
665
665
|
provenance: {
|
|
666
666
|
signature: {
|
|
@@ -714,8 +714,8 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
714
714
|
contract: {
|
|
715
715
|
id: string;
|
|
716
716
|
version: string;
|
|
717
|
-
digest: string;
|
|
718
717
|
capabilities: string[];
|
|
718
|
+
digest: string;
|
|
719
719
|
};
|
|
720
720
|
provenance: {
|
|
721
721
|
signature: {
|
|
@@ -769,8 +769,8 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
769
769
|
contract: {
|
|
770
770
|
id: string;
|
|
771
771
|
version: string;
|
|
772
|
-
digest: string;
|
|
773
772
|
capabilities: string[];
|
|
773
|
+
digest: string;
|
|
774
774
|
};
|
|
775
775
|
provenance: {
|
|
776
776
|
signature: {
|
|
@@ -823,7 +823,7 @@ export declare const providerSandboxEnvironmentAvailabilitySchema: z.ZodObject<{
|
|
|
823
823
|
checkedAt: z.ZodString;
|
|
824
824
|
reason: z.ZodNullable<z.ZodString>;
|
|
825
825
|
}, "strict", z.ZodTypeAny, {
|
|
826
|
-
status: "
|
|
826
|
+
status: "failed" | "ready" | "quarantined" | "pulling";
|
|
827
827
|
version: string;
|
|
828
828
|
reason: string | null;
|
|
829
829
|
contractDigest: string;
|
|
@@ -831,7 +831,7 @@ export declare const providerSandboxEnvironmentAvailabilitySchema: z.ZodObject<{
|
|
|
831
831
|
entryId: string;
|
|
832
832
|
checkedAt: string;
|
|
833
833
|
}, {
|
|
834
|
-
status: "
|
|
834
|
+
status: "failed" | "ready" | "quarantined" | "pulling";
|
|
835
835
|
version: string;
|
|
836
836
|
reason: string | null;
|
|
837
837
|
contractDigest: string;
|
|
@@ -841,7 +841,7 @@ export declare const providerSandboxEnvironmentAvailabilitySchema: z.ZodObject<{
|
|
|
841
841
|
}>, "many">;
|
|
842
842
|
}, "strict", z.ZodTypeAny, {
|
|
843
843
|
entries: {
|
|
844
|
-
status: "
|
|
844
|
+
status: "failed" | "ready" | "quarantined" | "pulling";
|
|
845
845
|
version: string;
|
|
846
846
|
reason: string | null;
|
|
847
847
|
contractDigest: string;
|
|
@@ -855,7 +855,7 @@ export declare const providerSandboxEnvironmentAvailabilitySchema: z.ZodObject<{
|
|
|
855
855
|
catalogGeneration: number;
|
|
856
856
|
}, {
|
|
857
857
|
entries: {
|
|
858
|
-
status: "
|
|
858
|
+
status: "failed" | "ready" | "quarantined" | "pulling";
|
|
859
859
|
version: string;
|
|
860
860
|
reason: string | null;
|
|
861
861
|
contractDigest: string;
|
|
@@ -102,7 +102,7 @@ function verifySandboxEnvironmentCatalog(value, publicJwk) {
|
|
|
102
102
|
const catalog = sandboxEnvironmentCatalogSchema.parse(value);
|
|
103
103
|
const { catalogDigest, signature: _signature, ...material } = catalog;
|
|
104
104
|
if (sandboxEnvironmentCatalogDigest(material) !== catalogDigest) throw new Error("Sandbox environment catalog digest does not match its canonical content.");
|
|
105
|
-
if (!verify(null, sandboxEnvironmentCatalogSigningBytes(catalog), createPublicKey({ key: publicJwk, format: "jwk" }), Buffer.from(catalog.signature.value, "base64url"))) throw new Error("Sandbox environment catalog signature is invalid.");
|
|
105
|
+
if (!verify(null, sandboxEnvironmentCatalogSigningBytes(catalog), createPublicKey({ key: { ...publicJwk }, format: "jwk" }), Buffer.from(catalog.signature.value, "base64url"))) throw new Error("Sandbox environment catalog signature is invalid.");
|
|
106
106
|
return catalog;
|
|
107
107
|
}
|
|
108
108
|
export {
|
|
@@ -18,22 +18,22 @@ export declare const capacityInstallConfigurationSchema: z.ZodObject<{
|
|
|
18
18
|
}>;
|
|
19
19
|
}, "strict", z.ZodTypeAny, {
|
|
20
20
|
schemaVersion: "treeseed.capacity-install-configuration/v1";
|
|
21
|
+
teamId: string;
|
|
21
22
|
inputs: {
|
|
22
23
|
controlPlaneUrl: string;
|
|
23
24
|
teamRegistrationCode: string;
|
|
24
25
|
};
|
|
25
|
-
teamId: string;
|
|
26
|
-
generatedAt: string;
|
|
27
26
|
profile: "capacity-provider";
|
|
27
|
+
generatedAt: string;
|
|
28
28
|
registrationGeneration: number;
|
|
29
29
|
}, {
|
|
30
30
|
schemaVersion: "treeseed.capacity-install-configuration/v1";
|
|
31
|
+
teamId: string;
|
|
31
32
|
inputs: {
|
|
32
33
|
controlPlaneUrl: string;
|
|
33
34
|
teamRegistrationCode: string;
|
|
34
35
|
};
|
|
35
|
-
teamId: string;
|
|
36
|
-
generatedAt: string;
|
|
37
36
|
profile: "capacity-provider";
|
|
37
|
+
generatedAt: string;
|
|
38
38
|
registrationGeneration: number;
|
|
39
39
|
}>;
|