@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
|
@@ -43,8 +43,8 @@ export declare const integrationLockSchema: z.ZodObject<{
|
|
|
43
43
|
digest: z.ZodString;
|
|
44
44
|
}, "strict", z.ZodTypeAny, {
|
|
45
45
|
schemaVersion: "treeseed.platform-integration-lock/v1";
|
|
46
|
-
digest: string;
|
|
47
46
|
release: string;
|
|
47
|
+
digest: string;
|
|
48
48
|
components: {
|
|
49
49
|
id: string;
|
|
50
50
|
version: string;
|
|
@@ -54,8 +54,8 @@ export declare const integrationLockSchema: z.ZodObject<{
|
|
|
54
54
|
}[];
|
|
55
55
|
}, {
|
|
56
56
|
schemaVersion: "treeseed.platform-integration-lock/v1";
|
|
57
|
-
digest: string;
|
|
58
57
|
release: string;
|
|
58
|
+
digest: string;
|
|
59
59
|
components: {
|
|
60
60
|
id: string;
|
|
61
61
|
version: string;
|
|
@@ -94,29 +94,29 @@ export declare const hostTemplateSchema: z.ZodObject<{
|
|
|
94
94
|
}, "strict", z.ZodTypeAny, {
|
|
95
95
|
id: string;
|
|
96
96
|
schemaVersion: "treeseed.platform-host-template/v1";
|
|
97
|
-
profiles: string[];
|
|
98
|
-
integration: {
|
|
99
|
-
id: string;
|
|
100
|
-
digest: string;
|
|
101
|
-
};
|
|
102
97
|
inputs: {
|
|
103
98
|
name: string;
|
|
104
99
|
required: boolean;
|
|
105
100
|
sensitive: boolean;
|
|
106
101
|
}[];
|
|
107
|
-
}, {
|
|
108
|
-
id: string;
|
|
109
|
-
schemaVersion: "treeseed.platform-host-template/v1";
|
|
110
102
|
profiles: string[];
|
|
111
103
|
integration: {
|
|
112
104
|
id: string;
|
|
113
105
|
digest: string;
|
|
114
106
|
};
|
|
107
|
+
}, {
|
|
108
|
+
id: string;
|
|
109
|
+
schemaVersion: "treeseed.platform-host-template/v1";
|
|
115
110
|
inputs: {
|
|
116
111
|
name: string;
|
|
117
112
|
required: boolean;
|
|
118
113
|
sensitive?: boolean | undefined;
|
|
119
114
|
}[];
|
|
115
|
+
profiles: string[];
|
|
116
|
+
integration: {
|
|
117
|
+
id: string;
|
|
118
|
+
digest: string;
|
|
119
|
+
};
|
|
120
120
|
}>;
|
|
121
121
|
export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
122
122
|
schemaVersion: z.ZodLiteral<"treeseed.platform-project-create-plan/v1">;
|
|
@@ -141,23 +141,23 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
141
141
|
visibility: z.ZodEnum<["public", "private"]>;
|
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
|
143
143
|
name: string;
|
|
144
|
+
visibility: "private" | "public";
|
|
144
145
|
owner: string;
|
|
145
|
-
visibility: "public" | "private";
|
|
146
146
|
}, {
|
|
147
147
|
name: string;
|
|
148
|
+
visibility: "private" | "public";
|
|
148
149
|
owner: string;
|
|
149
|
-
visibility: "public" | "private";
|
|
150
150
|
}>;
|
|
151
151
|
steps: z.ZodArray<z.ZodEnum<["project", "repository", "template", "library", "inventory"]>, "many">;
|
|
152
152
|
actions: z.ZodArray<z.ZodObject<{
|
|
153
153
|
step: z.ZodEnum<["project", "repository", "template", "library", "inventory"]>;
|
|
154
154
|
action: z.ZodEnum<["create", "adopt", "apply", "bind", "publish", "noop", "blocked"]>;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
action: "
|
|
157
|
-
step: "project" | "
|
|
156
|
+
action: "create" | "blocked" | "noop" | "adopt" | "apply" | "bind" | "publish";
|
|
157
|
+
step: "project" | "repository" | "library" | "template" | "inventory";
|
|
158
158
|
}, {
|
|
159
|
-
action: "
|
|
160
|
-
step: "project" | "
|
|
159
|
+
action: "create" | "blocked" | "noop" | "adopt" | "apply" | "bind" | "publish";
|
|
160
|
+
step: "project" | "repository" | "library" | "template" | "inventory";
|
|
161
161
|
}>, "many">;
|
|
162
162
|
observationDigest: z.ZodString;
|
|
163
163
|
planDigest: z.ZodString;
|
|
@@ -165,48 +165,48 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
165
165
|
blockers: z.ZodArray<z.ZodString, "many">;
|
|
166
166
|
}, "strict", z.ZodTypeAny, {
|
|
167
167
|
schemaVersion: "treeseed.platform-project-create-plan/v1";
|
|
168
|
-
slug: string;
|
|
169
168
|
repository: {
|
|
170
169
|
name: string;
|
|
170
|
+
visibility: "private" | "public";
|
|
171
171
|
owner: string;
|
|
172
|
-
visibility: "public" | "private";
|
|
173
172
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
planDigest: string;
|
|
173
|
+
team: string;
|
|
174
|
+
slug: string;
|
|
177
175
|
template: {
|
|
178
176
|
id: string;
|
|
179
177
|
version: string;
|
|
180
178
|
digest: string;
|
|
181
179
|
};
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
blockers: string[];
|
|
181
|
+
ok: boolean;
|
|
182
|
+
planDigest: string;
|
|
183
|
+
steps: ("project" | "repository" | "library" | "template" | "inventory")[];
|
|
184
184
|
actions: {
|
|
185
|
-
action: "
|
|
186
|
-
step: "project" | "
|
|
185
|
+
action: "create" | "blocked" | "noop" | "adopt" | "apply" | "bind" | "publish";
|
|
186
|
+
step: "project" | "repository" | "library" | "template" | "inventory";
|
|
187
187
|
}[];
|
|
188
188
|
observationDigest: string;
|
|
189
189
|
}, {
|
|
190
190
|
schemaVersion: "treeseed.platform-project-create-plan/v1";
|
|
191
|
-
slug: string;
|
|
192
191
|
repository: {
|
|
193
192
|
name: string;
|
|
193
|
+
visibility: "private" | "public";
|
|
194
194
|
owner: string;
|
|
195
|
-
visibility: "public" | "private";
|
|
196
195
|
};
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
planDigest: string;
|
|
196
|
+
team: string;
|
|
197
|
+
slug: string;
|
|
200
198
|
template: {
|
|
201
199
|
id: string;
|
|
202
200
|
version: string;
|
|
203
201
|
digest: string;
|
|
204
202
|
};
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
blockers: string[];
|
|
204
|
+
ok: boolean;
|
|
205
|
+
planDigest: string;
|
|
206
|
+
steps: ("project" | "repository" | "library" | "template" | "inventory")[];
|
|
207
207
|
actions: {
|
|
208
|
-
action: "
|
|
209
|
-
step: "project" | "
|
|
208
|
+
action: "create" | "blocked" | "noop" | "adopt" | "apply" | "bind" | "publish";
|
|
209
|
+
step: "project" | "repository" | "library" | "template" | "inventory";
|
|
210
210
|
}[];
|
|
211
211
|
observationDigest: string;
|
|
212
212
|
}>;
|
|
@@ -234,12 +234,12 @@ export declare const projectCreateReceiptSchema: z.ZodObject<{
|
|
|
234
234
|
visibility: z.ZodEnum<["public", "private"]>;
|
|
235
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
236
|
name: string;
|
|
237
|
+
visibility: "private" | "public";
|
|
237
238
|
owner: string;
|
|
238
|
-
visibility: "public" | "private";
|
|
239
239
|
}, {
|
|
240
240
|
name: string;
|
|
241
|
+
visibility: "private" | "public";
|
|
241
242
|
owner: string;
|
|
242
|
-
visibility: "public" | "private";
|
|
243
243
|
}>;
|
|
244
244
|
projectId: z.ZodString;
|
|
245
245
|
repositoryUrl: z.ZodString;
|
|
@@ -249,55 +249,55 @@ export declare const projectCreateReceiptSchema: z.ZodObject<{
|
|
|
249
249
|
step: z.ZodEnum<["project", "repository", "template", "library", "inventory"]>;
|
|
250
250
|
action: z.ZodEnum<["create", "adopt", "apply", "bind", "publish", "noop", "blocked"]>;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
252
|
-
action: "
|
|
253
|
-
step: "project" | "
|
|
252
|
+
action: "create" | "blocked" | "noop" | "adopt" | "apply" | "bind" | "publish";
|
|
253
|
+
step: "project" | "repository" | "library" | "template" | "inventory";
|
|
254
254
|
}, {
|
|
255
|
-
action: "
|
|
256
|
-
step: "project" | "
|
|
255
|
+
action: "create" | "blocked" | "noop" | "adopt" | "apply" | "bind" | "publish";
|
|
256
|
+
step: "project" | "repository" | "library" | "template" | "inventory";
|
|
257
257
|
}>, "many">;
|
|
258
258
|
}, "strict", z.ZodTypeAny, {
|
|
259
259
|
schemaVersion: "treeseed.platform-project-create-receipt/v1";
|
|
260
|
-
slug: string;
|
|
261
260
|
repository: {
|
|
262
261
|
name: string;
|
|
262
|
+
visibility: "private" | "public";
|
|
263
263
|
owner: string;
|
|
264
|
-
visibility: "public" | "private";
|
|
265
264
|
};
|
|
266
|
-
|
|
265
|
+
team: string;
|
|
266
|
+
slug: string;
|
|
267
|
+
projectId: string;
|
|
267
268
|
template: {
|
|
268
269
|
id: string;
|
|
269
270
|
version: string;
|
|
270
271
|
digest: string;
|
|
271
272
|
};
|
|
272
|
-
|
|
273
|
+
planDigest: string;
|
|
273
274
|
actions: {
|
|
274
|
-
action: "
|
|
275
|
-
step: "project" | "
|
|
275
|
+
action: "create" | "blocked" | "noop" | "adopt" | "apply" | "bind" | "publish";
|
|
276
|
+
step: "project" | "repository" | "library" | "template" | "inventory";
|
|
276
277
|
}[];
|
|
277
|
-
projectId: string;
|
|
278
278
|
repositoryUrl: string;
|
|
279
279
|
libraryBindingId: string;
|
|
280
280
|
inventoryVersion: number;
|
|
281
281
|
}, {
|
|
282
282
|
schemaVersion: "treeseed.platform-project-create-receipt/v1";
|
|
283
|
-
slug: string;
|
|
284
283
|
repository: {
|
|
285
284
|
name: string;
|
|
285
|
+
visibility: "private" | "public";
|
|
286
286
|
owner: string;
|
|
287
|
-
visibility: "public" | "private";
|
|
288
287
|
};
|
|
289
|
-
|
|
288
|
+
team: string;
|
|
289
|
+
slug: string;
|
|
290
|
+
projectId: string;
|
|
290
291
|
template: {
|
|
291
292
|
id: string;
|
|
292
293
|
version: string;
|
|
293
294
|
digest: string;
|
|
294
295
|
};
|
|
295
|
-
|
|
296
|
+
planDigest: string;
|
|
296
297
|
actions: {
|
|
297
|
-
action: "
|
|
298
|
-
step: "project" | "
|
|
298
|
+
action: "create" | "blocked" | "noop" | "adopt" | "apply" | "bind" | "publish";
|
|
299
|
+
step: "project" | "repository" | "library" | "template" | "inventory";
|
|
299
300
|
}[];
|
|
300
|
-
projectId: string;
|
|
301
301
|
repositoryUrl: string;
|
|
302
302
|
libraryBindingId: string;
|
|
303
303
|
inventoryVersion: number;
|
|
@@ -311,21 +311,21 @@ export declare const providerRegistrationRequestSchema: z.ZodObject<{
|
|
|
311
311
|
state: z.ZodEnum<["pending-approval", "approved", "rejected", "revoked"]>;
|
|
312
312
|
createdAt: z.ZodString;
|
|
313
313
|
}, "strict", z.ZodTypeAny, {
|
|
314
|
-
state: "
|
|
314
|
+
state: "revoked" | "rejected" | "approved" | "pending-approval";
|
|
315
315
|
schemaVersion: "treeseed.provider-registration-request/v1";
|
|
316
|
-
requestId: string;
|
|
317
|
-
teamId: string;
|
|
318
|
-
publicKey: string;
|
|
319
316
|
capabilities: string[];
|
|
320
317
|
createdAt: string;
|
|
321
|
-
}, {
|
|
322
|
-
state: "pending-approval" | "approved" | "rejected" | "revoked";
|
|
323
|
-
schemaVersion: "treeseed.provider-registration-request/v1";
|
|
324
|
-
requestId: string;
|
|
325
318
|
teamId: string;
|
|
319
|
+
requestId: string;
|
|
326
320
|
publicKey: string;
|
|
321
|
+
}, {
|
|
322
|
+
state: "revoked" | "rejected" | "approved" | "pending-approval";
|
|
323
|
+
schemaVersion: "treeseed.provider-registration-request/v1";
|
|
327
324
|
capabilities: string[];
|
|
328
325
|
createdAt: string;
|
|
326
|
+
teamId: string;
|
|
327
|
+
requestId: string;
|
|
328
|
+
publicKey: string;
|
|
329
329
|
}>;
|
|
330
330
|
export declare const providerSessionSchema: z.ZodObject<{
|
|
331
331
|
schemaVersion: z.ZodLiteral<"treeseed.provider-session/v1">;
|
|
@@ -337,17 +337,17 @@ export declare const providerSessionSchema: z.ZodObject<{
|
|
|
337
337
|
}, "strict", z.ZodTypeAny, {
|
|
338
338
|
expiresAt: string;
|
|
339
339
|
schemaVersion: "treeseed.provider-session/v1";
|
|
340
|
+
token: string;
|
|
340
341
|
providerId: string;
|
|
341
|
-
scope: string[];
|
|
342
342
|
issuedAt: string;
|
|
343
|
-
|
|
343
|
+
scope: string[];
|
|
344
344
|
}, {
|
|
345
345
|
expiresAt: string;
|
|
346
346
|
schemaVersion: "treeseed.provider-session/v1";
|
|
347
|
+
token: string;
|
|
347
348
|
providerId: string;
|
|
348
|
-
scope: string[];
|
|
349
349
|
issuedAt: string;
|
|
350
|
-
|
|
350
|
+
scope: string[];
|
|
351
351
|
}>;
|
|
352
352
|
export declare const environmentProfileDescriptorSchema: z.ZodObject<{
|
|
353
353
|
schemaVersion: z.ZodLiteral<"treeseed.provider-environment-profile/v1">;
|
|
@@ -401,23 +401,23 @@ export declare const assignmentEnvironmentGrantSchema: z.ZodObject<{
|
|
|
401
401
|
}, "strict", z.ZodTypeAny, {
|
|
402
402
|
expiresAt: string;
|
|
403
403
|
schemaVersion: "treeseed.assignment-environment-grant/v1";
|
|
404
|
-
variables: string[];
|
|
405
|
-
assignmentId: string;
|
|
406
|
-
profileId: string;
|
|
407
404
|
network: {
|
|
408
405
|
allowed: boolean;
|
|
409
406
|
destinations: string[];
|
|
410
407
|
};
|
|
408
|
+
assignmentId: string;
|
|
409
|
+
variables: string[];
|
|
410
|
+
profileId: string;
|
|
411
411
|
}, {
|
|
412
412
|
expiresAt: string;
|
|
413
413
|
schemaVersion: "treeseed.assignment-environment-grant/v1";
|
|
414
|
-
variables: string[];
|
|
415
|
-
assignmentId: string;
|
|
416
|
-
profileId: string;
|
|
417
414
|
network: {
|
|
418
415
|
allowed: boolean;
|
|
419
416
|
destinations?: string[] | undefined;
|
|
420
417
|
};
|
|
418
|
+
assignmentId: string;
|
|
419
|
+
variables: string[];
|
|
420
|
+
profileId: string;
|
|
421
421
|
}>;
|
|
422
422
|
export type IntegrationLock = z.infer<typeof integrationLockSchema>;
|
|
423
423
|
export type HostTemplate = z.infer<typeof hostTemplateSchema>;
|
|
@@ -1,4 +1,112 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const repositoryBindingSchema: z.ZodObject<{
|
|
3
|
+
repository: z.ZodString;
|
|
4
|
+
defaultBranch: z.ZodString;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
repository: string;
|
|
7
|
+
defaultBranch: string;
|
|
8
|
+
}, {
|
|
9
|
+
repository: string;
|
|
10
|
+
defaultBranch: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const treeDxBindingSchema: z.ZodObject<{
|
|
13
|
+
repository: z.ZodString;
|
|
14
|
+
collection: z.ZodString;
|
|
15
|
+
protectedRef: z.ZodString;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
repository: string;
|
|
18
|
+
collection: string;
|
|
19
|
+
protectedRef: string;
|
|
20
|
+
}, {
|
|
21
|
+
repository: string;
|
|
22
|
+
collection: string;
|
|
23
|
+
protectedRef: string;
|
|
24
|
+
}>;
|
|
25
|
+
/** Durable portfolio identity, distinct from installer inventory selection. */
|
|
26
|
+
export declare const teamRecordSchema: z.ZodObject<{
|
|
27
|
+
schemaVersion: z.ZodLiteral<"treeseed.team/v1">;
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
slug: z.ZodString;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
active: z.ZodBoolean;
|
|
32
|
+
}, "strict", z.ZodTypeAny, {
|
|
33
|
+
id: string;
|
|
34
|
+
active: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
schemaVersion: "treeseed.team/v1";
|
|
37
|
+
slug: string;
|
|
38
|
+
}, {
|
|
39
|
+
id: string;
|
|
40
|
+
active: boolean;
|
|
41
|
+
name: string;
|
|
42
|
+
schemaVersion: "treeseed.team/v1";
|
|
43
|
+
slug: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const projectRecordSchema: z.ZodObject<{
|
|
46
|
+
schemaVersion: z.ZodLiteral<"treeseed.project/v1">;
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
teamId: z.ZodString;
|
|
49
|
+
slug: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
source: z.ZodObject<{
|
|
52
|
+
repository: z.ZodString;
|
|
53
|
+
defaultBranch: z.ZodString;
|
|
54
|
+
}, "strict", z.ZodTypeAny, {
|
|
55
|
+
repository: string;
|
|
56
|
+
defaultBranch: string;
|
|
57
|
+
}, {
|
|
58
|
+
repository: string;
|
|
59
|
+
defaultBranch: string;
|
|
60
|
+
}>;
|
|
61
|
+
treeDx: z.ZodObject<{
|
|
62
|
+
repository: z.ZodString;
|
|
63
|
+
collection: z.ZodString;
|
|
64
|
+
protectedRef: z.ZodString;
|
|
65
|
+
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
repository: string;
|
|
67
|
+
collection: string;
|
|
68
|
+
protectedRef: string;
|
|
69
|
+
}, {
|
|
70
|
+
repository: string;
|
|
71
|
+
collection: string;
|
|
72
|
+
protectedRef: string;
|
|
73
|
+
}>;
|
|
74
|
+
active: z.ZodBoolean;
|
|
75
|
+
}, "strict", z.ZodTypeAny, {
|
|
76
|
+
id: string;
|
|
77
|
+
active: boolean;
|
|
78
|
+
name: string;
|
|
79
|
+
schemaVersion: "treeseed.project/v1";
|
|
80
|
+
source: {
|
|
81
|
+
repository: string;
|
|
82
|
+
defaultBranch: string;
|
|
83
|
+
};
|
|
84
|
+
slug: string;
|
|
85
|
+
teamId: string;
|
|
86
|
+
treeDx: {
|
|
87
|
+
repository: string;
|
|
88
|
+
collection: string;
|
|
89
|
+
protectedRef: string;
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
id: string;
|
|
93
|
+
active: boolean;
|
|
94
|
+
name: string;
|
|
95
|
+
schemaVersion: "treeseed.project/v1";
|
|
96
|
+
source: {
|
|
97
|
+
repository: string;
|
|
98
|
+
defaultBranch: string;
|
|
99
|
+
};
|
|
100
|
+
slug: string;
|
|
101
|
+
teamId: string;
|
|
102
|
+
treeDx: {
|
|
103
|
+
repository: string;
|
|
104
|
+
collection: string;
|
|
105
|
+
protectedRef: string;
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
108
|
+
export type TeamRecord = z.infer<typeof teamRecordSchema>;
|
|
109
|
+
export type ProjectRecord = z.infer<typeof projectRecordSchema>;
|
|
2
110
|
export declare const repositorySchema: z.ZodObject<{
|
|
3
111
|
key: z.ZodString;
|
|
4
112
|
project: z.ZodString;
|
|
@@ -807,21 +915,21 @@ export declare const worksetEntrySchema: z.ZodObject<{
|
|
|
807
915
|
blockers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
808
916
|
}, "strip", z.ZodTypeAny, {
|
|
809
917
|
path: string;
|
|
810
|
-
project: string;
|
|
811
|
-
gitUrl: string;
|
|
812
|
-
repository: string;
|
|
813
918
|
branch: string;
|
|
919
|
+
project: string;
|
|
814
920
|
commit: string;
|
|
815
|
-
|
|
921
|
+
repository: string;
|
|
922
|
+
gitUrl: string;
|
|
923
|
+
action: "blocked" | "clone" | "fast-forward" | "noop";
|
|
816
924
|
blockers: string[];
|
|
817
925
|
}, {
|
|
818
926
|
path: string;
|
|
819
|
-
project: string;
|
|
820
|
-
gitUrl: string;
|
|
821
|
-
repository: string;
|
|
822
927
|
branch: string;
|
|
928
|
+
project: string;
|
|
823
929
|
commit: string;
|
|
824
|
-
|
|
930
|
+
repository: string;
|
|
931
|
+
gitUrl: string;
|
|
932
|
+
action: "blocked" | "clone" | "fast-forward" | "noop";
|
|
825
933
|
blockers?: string[] | undefined;
|
|
826
934
|
}>;
|
|
827
935
|
export declare const worksetPlanSchema: z.ZodObject<{
|
|
@@ -853,33 +961,33 @@ export declare const worksetPlanSchema: z.ZodObject<{
|
|
|
853
961
|
blockers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
854
962
|
}, "strip", z.ZodTypeAny, {
|
|
855
963
|
path: string;
|
|
856
|
-
project: string;
|
|
857
|
-
gitUrl: string;
|
|
858
|
-
repository: string;
|
|
859
964
|
branch: string;
|
|
965
|
+
project: string;
|
|
860
966
|
commit: string;
|
|
861
|
-
|
|
967
|
+
repository: string;
|
|
968
|
+
gitUrl: string;
|
|
969
|
+
action: "blocked" | "clone" | "fast-forward" | "noop";
|
|
862
970
|
blockers: string[];
|
|
863
971
|
}, {
|
|
864
972
|
path: string;
|
|
865
|
-
project: string;
|
|
866
|
-
gitUrl: string;
|
|
867
|
-
repository: string;
|
|
868
973
|
branch: string;
|
|
974
|
+
project: string;
|
|
869
975
|
commit: string;
|
|
870
|
-
|
|
976
|
+
repository: string;
|
|
977
|
+
gitUrl: string;
|
|
978
|
+
action: "blocked" | "clone" | "fast-forward" | "noop";
|
|
871
979
|
blockers?: string[] | undefined;
|
|
872
980
|
}>, "many">;
|
|
873
981
|
ok: z.ZodBoolean;
|
|
874
982
|
}, "strip", z.ZodTypeAny, {
|
|
875
983
|
entries: {
|
|
876
984
|
path: string;
|
|
877
|
-
project: string;
|
|
878
|
-
gitUrl: string;
|
|
879
|
-
repository: string;
|
|
880
985
|
branch: string;
|
|
986
|
+
project: string;
|
|
881
987
|
commit: string;
|
|
882
|
-
|
|
988
|
+
repository: string;
|
|
989
|
+
gitUrl: string;
|
|
990
|
+
action: "blocked" | "clone" | "fast-forward" | "noop";
|
|
883
991
|
blockers: string[];
|
|
884
992
|
}[];
|
|
885
993
|
schemaVersion: "treeseed.platform-workset-plan/v1";
|
|
@@ -895,12 +1003,12 @@ export declare const worksetPlanSchema: z.ZodObject<{
|
|
|
895
1003
|
}, {
|
|
896
1004
|
entries: {
|
|
897
1005
|
path: string;
|
|
898
|
-
project: string;
|
|
899
|
-
gitUrl: string;
|
|
900
|
-
repository: string;
|
|
901
1006
|
branch: string;
|
|
1007
|
+
project: string;
|
|
902
1008
|
commit: string;
|
|
903
|
-
|
|
1009
|
+
repository: string;
|
|
1010
|
+
gitUrl: string;
|
|
1011
|
+
action: "blocked" | "clone" | "fast-forward" | "noop";
|
|
904
1012
|
blockers?: string[] | undefined;
|
|
905
1013
|
}[];
|
|
906
1014
|
schemaVersion: "treeseed.platform-workset-plan/v1";
|
|
@@ -931,29 +1039,29 @@ export declare const worksetReceiptSchema: z.ZodObject<{
|
|
|
931
1039
|
action: z.ZodEnum<["clone", "fast-forward", "noop"]>;
|
|
932
1040
|
}, "strip", z.ZodTypeAny, {
|
|
933
1041
|
path: string;
|
|
934
|
-
project: string;
|
|
935
|
-
gitUrl: string;
|
|
936
|
-
repository: string;
|
|
937
1042
|
branch: string;
|
|
1043
|
+
project: string;
|
|
938
1044
|
commit: string;
|
|
1045
|
+
repository: string;
|
|
1046
|
+
gitUrl: string;
|
|
939
1047
|
action: "clone" | "fast-forward" | "noop";
|
|
940
1048
|
}, {
|
|
941
1049
|
path: string;
|
|
942
|
-
project: string;
|
|
943
|
-
gitUrl: string;
|
|
944
|
-
repository: string;
|
|
945
1050
|
branch: string;
|
|
1051
|
+
project: string;
|
|
946
1052
|
commit: string;
|
|
1053
|
+
repository: string;
|
|
1054
|
+
gitUrl: string;
|
|
947
1055
|
action: "clone" | "fast-forward" | "noop";
|
|
948
1056
|
}>, "many">;
|
|
949
1057
|
}, "strip", z.ZodTypeAny, {
|
|
950
1058
|
entries: {
|
|
951
1059
|
path: string;
|
|
952
|
-
project: string;
|
|
953
|
-
gitUrl: string;
|
|
954
|
-
repository: string;
|
|
955
1060
|
branch: string;
|
|
1061
|
+
project: string;
|
|
956
1062
|
commit: string;
|
|
1063
|
+
repository: string;
|
|
1064
|
+
gitUrl: string;
|
|
957
1065
|
action: "clone" | "fast-forward" | "noop";
|
|
958
1066
|
}[];
|
|
959
1067
|
schemaVersion: "treeseed.platform-workset-receipt/v1";
|
|
@@ -962,11 +1070,11 @@ export declare const worksetReceiptSchema: z.ZodObject<{
|
|
|
962
1070
|
}, {
|
|
963
1071
|
entries: {
|
|
964
1072
|
path: string;
|
|
965
|
-
project: string;
|
|
966
|
-
gitUrl: string;
|
|
967
|
-
repository: string;
|
|
968
1073
|
branch: string;
|
|
1074
|
+
project: string;
|
|
969
1075
|
commit: string;
|
|
1076
|
+
repository: string;
|
|
1077
|
+
gitUrl: string;
|
|
970
1078
|
action: "clone" | "fast-forward" | "noop";
|
|
971
1079
|
}[];
|
|
972
1080
|
schemaVersion: "treeseed.platform-workset-receipt/v1";
|
package/dist/platform/schemas.js
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { leaseSchema } from "../agent-capacity/contracts/capacity/assignments/agent-execution.js";
|
|
3
|
+
const identifier = leaseSchema.shape.id;
|
|
4
|
+
const slug = z.string().min(1).max(100).regex(/^[a-z0-9]+(?:[._/-][a-z0-9]+)*$/u);
|
|
5
|
+
const repositoryBindingSchema = z.object({ repository: z.string().min(1), defaultBranch: z.string().min(1) }).strict();
|
|
6
|
+
const treeDxBindingSchema = z.object({ repository: z.string().min(1), collection: z.string().min(1), protectedRef: z.string().min(1) }).strict();
|
|
7
|
+
const teamRecordSchema = z.object({
|
|
8
|
+
schemaVersion: z.literal("treeseed.team/v1"),
|
|
9
|
+
id: identifier,
|
|
10
|
+
slug,
|
|
11
|
+
name: z.string().min(1),
|
|
12
|
+
active: z.boolean()
|
|
13
|
+
}).strict();
|
|
14
|
+
const projectRecordSchema = z.object({
|
|
15
|
+
schemaVersion: z.literal("treeseed.project/v1"),
|
|
16
|
+
id: identifier,
|
|
17
|
+
teamId: identifier,
|
|
18
|
+
slug,
|
|
19
|
+
name: z.string().min(1),
|
|
20
|
+
source: repositoryBindingSchema,
|
|
21
|
+
treeDx: treeDxBindingSchema,
|
|
22
|
+
active: z.boolean()
|
|
23
|
+
}).strict();
|
|
2
24
|
const repositorySchema = z.object({
|
|
3
25
|
key: z.string().min(1),
|
|
4
26
|
project: z.string().min(1),
|
|
@@ -64,8 +86,12 @@ const worksetReceiptSchema = z.object({
|
|
|
64
86
|
export {
|
|
65
87
|
inventorySchema,
|
|
66
88
|
profileSchema,
|
|
89
|
+
projectRecordSchema,
|
|
67
90
|
projectSchema,
|
|
91
|
+
repositoryBindingSchema,
|
|
68
92
|
repositorySchema,
|
|
93
|
+
teamRecordSchema,
|
|
94
|
+
treeDxBindingSchema,
|
|
69
95
|
worksetEntrySchema,
|
|
70
96
|
worksetPlanSchema,
|
|
71
97
|
worksetReceiptSchema,
|
|
@@ -102,6 +102,10 @@ function verifyPlatformRepository(root = process.cwd()) {
|
|
|
102
102
|
hash.update(relative(absoluteRoot, fullPath)).update("\0").update(source);
|
|
103
103
|
if (personalPath.test(source.toString("utf8"))) diagnostics.push({ code: "personal_path_forbidden", path, message: "Committed home-directory paths are forbidden." });
|
|
104
104
|
}
|
|
105
|
+
const agentSchemaPath = "docs/agent.schema.yml";
|
|
106
|
+
if (existsSync(resolve(absoluteRoot, agentSchemaPath)) && !listed.includes(agentSchemaPath)) {
|
|
107
|
+
diagnostics.push({ code: "agent_schema_untracked", path: agentSchemaPath, message: "Canonical execution authority must be tracked, never silently omitted." });
|
|
108
|
+
}
|
|
105
109
|
diagnostics.push(...semanticDiagnostics(absoluteRoot, new Set(listed)));
|
|
106
110
|
return { schemaVersion: "treeseed.platform-verification/v1", root: absoluteRoot, digest: `sha256:${hash.digest("hex")}`, ok: diagnostics.length === 0, diagnostics };
|
|
107
111
|
}
|
|
@@ -65,7 +65,7 @@ export interface SdkModelDefinition {
|
|
|
65
65
|
}
|
|
66
66
|
export type SdkModelRegistry = Record<string, SdkModelDefinition>;
|
|
67
67
|
export type SdkGraphNodeType = 'File' | 'Section' | 'Agent' | 'Objective' | 'Question' | 'Note' | 'Proposal' | 'Decision' | 'Knowledge' | 'Book' | 'Page' | 'Person' | 'Group' | 'Series' | 'Reference' | 'Entity';
|
|
68
|
-
export type SdkGraphEdgeType = 'HAS_SECTION' | 'BELONGS_TO_FILE' | 'PARENT_SECTION' | 'CHILD_SECTION' | 'NEXT_SECTION' | 'PREV_SECTION' | 'LINKS_TO' | 'REFERENCES' | 'MENTIONS' | 'HAS_GROUP' | 'EFFECTIVE_GROUP' | 'GROUP_RELATION' | 'IN_SERIES' | 'SAME_DIRECTORY' | 'SAME_COLLECTION' | 'DEFINES' | 'DEFINED_BY' | 'RELATES_TO' | 'DEPENDS_ON' | 'IMPLEMENTS' | 'EXTENDS' | 'SUPERSEDES' | 'BELONGS_TO' | 'ABOUT' | 'USED_BY' | 'GENERATED_FROM';
|
|
68
|
+
export type SdkGraphEdgeType = 'HAS_SECTION' | 'BELONGS_TO_FILE' | 'PARENT_SECTION' | 'CHILD_SECTION' | 'NEXT_SECTION' | 'PREV_SECTION' | 'LINKS_TO' | 'REFERENCES' | 'MENTIONS' | 'HAS_GROUP' | 'EFFECTIVE_GROUP' | 'GROUP_RELATION' | 'IN_SERIES' | 'SAME_DIRECTORY' | 'SAME_COLLECTION' | 'DEFINES' | 'DEFINED_BY' | 'RELATES_TO' | 'DEPENDS_ON' | 'IMPLEMENTS' | 'EXTENDS' | 'SUPERSEDES' | 'BELONGS_TO' | 'ABOUT' | 'USED_BY' | 'GENERATED_FROM' | 'PARENT_OF' | 'DERIVED_FROM' | 'GROUP_SOURCE' | 'GROUP_TARGET' | 'GUIDED_BY';
|
|
69
69
|
export interface SdkGraphReferenceFieldConfig {
|
|
70
70
|
field: string;
|
|
71
71
|
edgeType?: Exclude<SdkGraphEdgeType, 'HAS_SECTION' | 'BELONGS_TO_FILE' | 'PARENT_SECTION' | 'CHILD_SECTION' | 'NEXT_SECTION' | 'PREV_SECTION' | 'LINKS_TO' | 'MENTIONS' | 'SAME_DIRECTORY' | 'SAME_COLLECTION' | 'DEFINES' | 'DEFINED_BY'>;
|
|
@@ -73,7 +73,7 @@ export interface SdkGraphReferenceFieldConfig {
|
|
|
73
73
|
multiple?: boolean;
|
|
74
74
|
}
|
|
75
75
|
export interface SdkGraphModelConfig {
|
|
76
|
-
entityType?:
|
|
76
|
+
entityType?: string;
|
|
77
77
|
referenceFields?: SdkGraphReferenceFieldConfig[];
|
|
78
78
|
groupField?: string;
|
|
79
79
|
seriesField?: string;
|
|
@@ -8,14 +8,14 @@ export declare const secretScopeSchema: z.ZodObject<{
|
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
9
|
name: string;
|
|
10
10
|
project: string;
|
|
11
|
-
team: string;
|
|
12
11
|
purpose: string;
|
|
12
|
+
team: string;
|
|
13
13
|
environment: string;
|
|
14
14
|
}, {
|
|
15
15
|
name: string;
|
|
16
16
|
project: string;
|
|
17
|
-
team: string;
|
|
18
17
|
purpose: string;
|
|
18
|
+
team: string;
|
|
19
19
|
environment: string;
|
|
20
20
|
}>;
|
|
21
21
|
export type SecretScope = z.infer<typeof secretScopeSchema>;
|
|
@@ -41,8 +41,8 @@ export declare function selectServiceBinding(request: BindingSelection, pinned:
|
|
|
41
41
|
}): {
|
|
42
42
|
id: string;
|
|
43
43
|
version: number;
|
|
44
|
-
projectId: string;
|
|
45
44
|
teamId: string;
|
|
45
|
+
projectId: string;
|
|
46
46
|
grantId: string | null;
|
|
47
47
|
capability: string;
|
|
48
48
|
environment: "staging" | "production" | "shared";
|