@treeseed/sdk 0.13.0-rc.121 → 0.13.0-rc.123
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 +2365 -1275
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +94 -28
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +38 -38
- 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 +2 -59
- 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 +2 -4
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +22 -16
- 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 +244 -85
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +54 -19
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +216 -70
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
- 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 +55 -55
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -23
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
- 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 +496 -292
- package/dist/agent-capacity/contracts/support/execution-graph.js +21 -19
- package/dist/agent-capacity/contracts/support/financial-records.d.ts +3 -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 +1178 -1152
- package/dist/agent-capacity/validation/agent-definition-schema.js +21 -28
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +10 -10
- 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 +49 -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 +3 -4
- package/dist/capacity/agents/agent-capacity.js +2 -3
- package/dist/capacity-provider/capability-ontology.d.ts +150 -150
- package/dist/capacity-provider/client.d.ts +15 -9
- package/dist/capacity-provider/client.js +1 -10
- package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
- package/dist/capacity-provider/contracts/environment-profiles.d.ts +44 -44
- 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 +188 -188
- package/dist/capacity-provider/environment-catalog.js +1 -1
- package/dist/capacity-provider/install-configuration.d.ts +2 -2
- package/dist/capacity-provider/sandbox-contracts.d.ts +92 -92
- package/dist/capacity-provider/source-workspace.d.ts +166 -68
- package/dist/capacity-provider/source-workspace.js +5 -1
- 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 +144 -142
- package/dist/content/validation/agent-operational-content-schemas.js +2 -0
- package/dist/content/validation/auxiliary-content-schemas.d.ts +158 -158
- package/dist/content/validation/content-model-schemas.d.ts +9105 -5295
- package/dist/content/validation/content-model-schemas.js +192 -115
- package/dist/content/validation/portable-content-data.d.ts +411 -238
- package/dist/content/validation/portable-content-data.js +6 -1
- 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 +24 -24
- package/dist/deployment/ai-hosting.d.ts +18 -18
- package/dist/deployment/ai-instance.d.ts +16 -16
- package/dist/deployment/ai-mode.d.ts +92 -92
- package/dist/deployment/hosted-topology-template.d.ts +44 -44
- package/dist/deployment/hosted-topology.d.ts +335 -335
- package/dist/deployment/postgres/contracts.d.ts +52 -52
- package/dist/deployment/postgres/transfer.d.ts +6 -6
- package/dist/deployment/schemas.d.ts +1114 -1114
- package/dist/development/schemas.d.ts +633 -633
- 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/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 +25 -9
- package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +29 -29
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +30 -30
- package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +15 -13
- package/dist/operator-contracts/catalog/communication-operations.d.ts +176 -158
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +67 -67
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +65 -65
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +6 -6
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
- 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 +3 -0
- package/dist/operator-contracts/communication/contracts.d.ts +537 -395
- 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 +631 -610
- package/dist/operator-contracts/control-plane-operations.js +26 -12
- package/dist/operator-contracts/inbox/contracts.d.ts +229 -229
- package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
- package/dist/operator-contracts/mcp.js +4 -3
- package/dist/operator-contracts/workday-lifecycle.d.ts +192 -0
- package/dist/operator-contracts/workday-lifecycle.js +109 -45
- package/dist/platform/agent-schema-verification.d.ts +3 -0
- package/dist/platform/agent-schema-verification.js +377 -0
- 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 +10 -0
- package/dist/sdk-types/support/planning-policy.d.ts +1 -1
- 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 +3 -3
- package/dist/secrets-capability/shared-resources.d.ts +50 -50
- package/dist/secrets-capability/vault-contracts.d.ts +2 -2
- package/dist/security/encrypted-envelope.d.ts +14 -14
- 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/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 +9 -3
- 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
- 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
|
@@ -3,30 +3,51 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare function assignmentSourceBranch(assignmentId: string): string;
|
|
4
4
|
export declare function simulationSourceBranch(campaignId: string, workdayId: string, assignmentId: string): string;
|
|
5
5
|
/** Portable identity of canonical source. Physical storage belongs exclusively to Deployment. */
|
|
6
|
-
export declare const sourceWorkspaceKeySchema: z.ZodObject<{
|
|
6
|
+
export declare const sourceWorkspaceKeySchema: z.ZodEffects<z.ZodObject<{
|
|
7
7
|
controlPlaneId: z.ZodString;
|
|
8
8
|
teamId: z.ZodString;
|
|
9
9
|
projectId: z.ZodString;
|
|
10
10
|
repositoryId: z.ZodString;
|
|
11
11
|
commit: z.ZodString;
|
|
12
|
+
additionalCommits: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
12
13
|
formatVersion: z.ZodLiteral<1>;
|
|
13
14
|
profile: z.ZodLiteral<"source-only">;
|
|
14
15
|
}, "strict", z.ZodTypeAny, {
|
|
15
16
|
commit: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
teamId: string;
|
|
18
|
+
projectId: string;
|
|
18
19
|
profile: "source-only";
|
|
19
20
|
repositoryId: string;
|
|
20
21
|
controlPlaneId: string;
|
|
21
22
|
formatVersion: 1;
|
|
23
|
+
additionalCommits?: string[] | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
commit: string;
|
|
26
|
+
teamId: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
profile: "source-only";
|
|
29
|
+
repositoryId: string;
|
|
30
|
+
controlPlaneId: string;
|
|
31
|
+
formatVersion: 1;
|
|
32
|
+
additionalCommits?: string[] | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
commit: string;
|
|
35
|
+
teamId: string;
|
|
24
36
|
projectId: string;
|
|
37
|
+
profile: "source-only";
|
|
38
|
+
repositoryId: string;
|
|
39
|
+
controlPlaneId: string;
|
|
40
|
+
formatVersion: 1;
|
|
41
|
+
additionalCommits?: string[] | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
commit: string;
|
|
25
44
|
teamId: string;
|
|
45
|
+
projectId: string;
|
|
26
46
|
profile: "source-only";
|
|
27
47
|
repositoryId: string;
|
|
28
48
|
controlPlaneId: string;
|
|
29
49
|
formatVersion: 1;
|
|
50
|
+
additionalCommits?: string[] | undefined;
|
|
30
51
|
}>;
|
|
31
52
|
/** Authorization is resolved again at lease acquisition; a READY cache entry grants no access. */
|
|
32
53
|
export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -35,30 +56,51 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
|
|
|
35
56
|
providerId: z.ZodString;
|
|
36
57
|
assignmentId: z.ZodString;
|
|
37
58
|
attempt: z.ZodNumber;
|
|
38
|
-
source: z.ZodObject<{
|
|
59
|
+
source: z.ZodEffects<z.ZodObject<{
|
|
39
60
|
controlPlaneId: z.ZodString;
|
|
40
61
|
teamId: z.ZodString;
|
|
41
62
|
projectId: z.ZodString;
|
|
42
63
|
repositoryId: z.ZodString;
|
|
43
64
|
commit: z.ZodString;
|
|
65
|
+
additionalCommits: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
44
66
|
formatVersion: z.ZodLiteral<1>;
|
|
45
67
|
profile: z.ZodLiteral<"source-only">;
|
|
46
68
|
}, "strict", z.ZodTypeAny, {
|
|
47
69
|
commit: string;
|
|
48
|
-
projectId: string;
|
|
49
70
|
teamId: string;
|
|
71
|
+
projectId: string;
|
|
50
72
|
profile: "source-only";
|
|
51
73
|
repositoryId: string;
|
|
52
74
|
controlPlaneId: string;
|
|
53
75
|
formatVersion: 1;
|
|
76
|
+
additionalCommits?: string[] | undefined;
|
|
54
77
|
}, {
|
|
55
78
|
commit: string;
|
|
79
|
+
teamId: string;
|
|
80
|
+
projectId: string;
|
|
81
|
+
profile: "source-only";
|
|
82
|
+
repositoryId: string;
|
|
83
|
+
controlPlaneId: string;
|
|
84
|
+
formatVersion: 1;
|
|
85
|
+
additionalCommits?: string[] | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
commit: string;
|
|
88
|
+
teamId: string;
|
|
56
89
|
projectId: string;
|
|
90
|
+
profile: "source-only";
|
|
91
|
+
repositoryId: string;
|
|
92
|
+
controlPlaneId: string;
|
|
93
|
+
formatVersion: 1;
|
|
94
|
+
additionalCommits?: string[] | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
commit: string;
|
|
57
97
|
teamId: string;
|
|
98
|
+
projectId: string;
|
|
58
99
|
profile: "source-only";
|
|
59
100
|
repositoryId: string;
|
|
60
101
|
controlPlaneId: string;
|
|
61
102
|
formatVersion: 1;
|
|
103
|
+
additionalCommits?: string[] | undefined;
|
|
62
104
|
}>;
|
|
63
105
|
mode: z.ZodEnum<["analysis", "work"]>;
|
|
64
106
|
acquisition: z.ZodEnum<["upstream-public", "upstream-authorized", "simulation-local"]>;
|
|
@@ -71,18 +113,19 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
|
|
|
71
113
|
id: string;
|
|
72
114
|
expiresAt: string;
|
|
73
115
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
74
|
-
providerId: string;
|
|
75
|
-
issuedAt: string;
|
|
76
|
-
assignmentId: string;
|
|
77
116
|
source: {
|
|
78
117
|
commit: string;
|
|
79
|
-
projectId: string;
|
|
80
118
|
teamId: string;
|
|
119
|
+
projectId: string;
|
|
81
120
|
profile: "source-only";
|
|
82
121
|
repositoryId: string;
|
|
83
122
|
controlPlaneId: string;
|
|
84
123
|
formatVersion: 1;
|
|
124
|
+
additionalCommits?: string[] | undefined;
|
|
85
125
|
};
|
|
126
|
+
assignmentId: string;
|
|
127
|
+
providerId: string;
|
|
128
|
+
issuedAt: string;
|
|
86
129
|
mode: "analysis" | "work";
|
|
87
130
|
attempt: number;
|
|
88
131
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -93,18 +136,19 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
|
|
|
93
136
|
id: string;
|
|
94
137
|
expiresAt: string;
|
|
95
138
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
96
|
-
providerId: string;
|
|
97
|
-
issuedAt: string;
|
|
98
|
-
assignmentId: string;
|
|
99
139
|
source: {
|
|
100
140
|
commit: string;
|
|
101
|
-
projectId: string;
|
|
102
141
|
teamId: string;
|
|
142
|
+
projectId: string;
|
|
103
143
|
profile: "source-only";
|
|
104
144
|
repositoryId: string;
|
|
105
145
|
controlPlaneId: string;
|
|
106
146
|
formatVersion: 1;
|
|
147
|
+
additionalCommits?: string[] | undefined;
|
|
107
148
|
};
|
|
149
|
+
assignmentId: string;
|
|
150
|
+
providerId: string;
|
|
151
|
+
issuedAt: string;
|
|
108
152
|
mode: "analysis" | "work";
|
|
109
153
|
attempt: number;
|
|
110
154
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -115,18 +159,19 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
|
|
|
115
159
|
id: string;
|
|
116
160
|
expiresAt: string;
|
|
117
161
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
118
|
-
providerId: string;
|
|
119
|
-
issuedAt: string;
|
|
120
|
-
assignmentId: string;
|
|
121
162
|
source: {
|
|
122
163
|
commit: string;
|
|
123
|
-
projectId: string;
|
|
124
164
|
teamId: string;
|
|
165
|
+
projectId: string;
|
|
125
166
|
profile: "source-only";
|
|
126
167
|
repositoryId: string;
|
|
127
168
|
controlPlaneId: string;
|
|
128
169
|
formatVersion: 1;
|
|
170
|
+
additionalCommits?: string[] | undefined;
|
|
129
171
|
};
|
|
172
|
+
assignmentId: string;
|
|
173
|
+
providerId: string;
|
|
174
|
+
issuedAt: string;
|
|
130
175
|
mode: "analysis" | "work";
|
|
131
176
|
attempt: number;
|
|
132
177
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -137,18 +182,19 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
|
|
|
137
182
|
id: string;
|
|
138
183
|
expiresAt: string;
|
|
139
184
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
140
|
-
providerId: string;
|
|
141
|
-
issuedAt: string;
|
|
142
|
-
assignmentId: string;
|
|
143
185
|
source: {
|
|
144
186
|
commit: string;
|
|
145
|
-
projectId: string;
|
|
146
187
|
teamId: string;
|
|
188
|
+
projectId: string;
|
|
147
189
|
profile: "source-only";
|
|
148
190
|
repositoryId: string;
|
|
149
191
|
controlPlaneId: string;
|
|
150
192
|
formatVersion: 1;
|
|
193
|
+
additionalCommits?: string[] | undefined;
|
|
151
194
|
};
|
|
195
|
+
assignmentId: string;
|
|
196
|
+
providerId: string;
|
|
197
|
+
issuedAt: string;
|
|
152
198
|
mode: "analysis" | "work";
|
|
153
199
|
attempt: number;
|
|
154
200
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -163,30 +209,51 @@ export declare const sourceWorkspaceLeaseSchema: z.ZodObject<{
|
|
|
163
209
|
providerId: z.ZodString;
|
|
164
210
|
assignmentId: z.ZodString;
|
|
165
211
|
attempt: z.ZodNumber;
|
|
166
|
-
source: z.ZodObject<{
|
|
212
|
+
source: z.ZodEffects<z.ZodObject<{
|
|
167
213
|
controlPlaneId: z.ZodString;
|
|
168
214
|
teamId: z.ZodString;
|
|
169
215
|
projectId: z.ZodString;
|
|
170
216
|
repositoryId: z.ZodString;
|
|
171
217
|
commit: z.ZodString;
|
|
218
|
+
additionalCommits: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
172
219
|
formatVersion: z.ZodLiteral<1>;
|
|
173
220
|
profile: z.ZodLiteral<"source-only">;
|
|
174
221
|
}, "strict", z.ZodTypeAny, {
|
|
175
222
|
commit: string;
|
|
176
|
-
projectId: string;
|
|
177
223
|
teamId: string;
|
|
224
|
+
projectId: string;
|
|
178
225
|
profile: "source-only";
|
|
179
226
|
repositoryId: string;
|
|
180
227
|
controlPlaneId: string;
|
|
181
228
|
formatVersion: 1;
|
|
229
|
+
additionalCommits?: string[] | undefined;
|
|
182
230
|
}, {
|
|
183
231
|
commit: string;
|
|
232
|
+
teamId: string;
|
|
233
|
+
projectId: string;
|
|
234
|
+
profile: "source-only";
|
|
235
|
+
repositoryId: string;
|
|
236
|
+
controlPlaneId: string;
|
|
237
|
+
formatVersion: 1;
|
|
238
|
+
additionalCommits?: string[] | undefined;
|
|
239
|
+
}>, {
|
|
240
|
+
commit: string;
|
|
241
|
+
teamId: string;
|
|
184
242
|
projectId: string;
|
|
243
|
+
profile: "source-only";
|
|
244
|
+
repositoryId: string;
|
|
245
|
+
controlPlaneId: string;
|
|
246
|
+
formatVersion: 1;
|
|
247
|
+
additionalCommits?: string[] | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
commit: string;
|
|
185
250
|
teamId: string;
|
|
251
|
+
projectId: string;
|
|
186
252
|
profile: "source-only";
|
|
187
253
|
repositoryId: string;
|
|
188
254
|
controlPlaneId: string;
|
|
189
255
|
formatVersion: 1;
|
|
256
|
+
additionalCommits?: string[] | undefined;
|
|
190
257
|
}>;
|
|
191
258
|
workspaceDigest: z.ZodString;
|
|
192
259
|
mode: z.ZodEnum<["analysis", "work"]>;
|
|
@@ -201,17 +268,18 @@ export declare const sourceWorkspaceLeaseSchema: z.ZodObject<{
|
|
|
201
268
|
expiresAt: string;
|
|
202
269
|
schemaVersion: "treeseed.source-workspace-lease/v1";
|
|
203
270
|
createdAt: string;
|
|
204
|
-
providerId: string;
|
|
205
|
-
assignmentId: string;
|
|
206
271
|
source: {
|
|
207
272
|
commit: string;
|
|
208
|
-
projectId: string;
|
|
209
273
|
teamId: string;
|
|
274
|
+
projectId: string;
|
|
210
275
|
profile: "source-only";
|
|
211
276
|
repositoryId: string;
|
|
212
277
|
controlPlaneId: string;
|
|
213
278
|
formatVersion: 1;
|
|
279
|
+
additionalCommits?: string[] | undefined;
|
|
214
280
|
};
|
|
281
|
+
assignmentId: string;
|
|
282
|
+
providerId: string;
|
|
215
283
|
mode: "analysis" | "work";
|
|
216
284
|
attempt: number;
|
|
217
285
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -224,17 +292,18 @@ export declare const sourceWorkspaceLeaseSchema: z.ZodObject<{
|
|
|
224
292
|
expiresAt: string;
|
|
225
293
|
schemaVersion: "treeseed.source-workspace-lease/v1";
|
|
226
294
|
createdAt: string;
|
|
227
|
-
providerId: string;
|
|
228
|
-
assignmentId: string;
|
|
229
295
|
source: {
|
|
230
296
|
commit: string;
|
|
231
|
-
projectId: string;
|
|
232
297
|
teamId: string;
|
|
298
|
+
projectId: string;
|
|
233
299
|
profile: "source-only";
|
|
234
300
|
repositoryId: string;
|
|
235
301
|
controlPlaneId: string;
|
|
236
302
|
formatVersion: 1;
|
|
303
|
+
additionalCommits?: string[] | undefined;
|
|
237
304
|
};
|
|
305
|
+
assignmentId: string;
|
|
306
|
+
providerId: string;
|
|
238
307
|
mode: "analysis" | "work";
|
|
239
308
|
attempt: number;
|
|
240
309
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -297,30 +366,51 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
297
366
|
providerId: z.ZodString;
|
|
298
367
|
assignmentId: z.ZodString;
|
|
299
368
|
attempt: z.ZodNumber;
|
|
300
|
-
source: z.ZodObject<{
|
|
369
|
+
source: z.ZodEffects<z.ZodObject<{
|
|
301
370
|
controlPlaneId: z.ZodString;
|
|
302
371
|
teamId: z.ZodString;
|
|
303
372
|
projectId: z.ZodString;
|
|
304
373
|
repositoryId: z.ZodString;
|
|
305
374
|
commit: z.ZodString;
|
|
375
|
+
additionalCommits: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
306
376
|
formatVersion: z.ZodLiteral<1>;
|
|
307
377
|
profile: z.ZodLiteral<"source-only">;
|
|
308
378
|
}, "strict", z.ZodTypeAny, {
|
|
309
379
|
commit: string;
|
|
310
|
-
projectId: string;
|
|
311
380
|
teamId: string;
|
|
381
|
+
projectId: string;
|
|
312
382
|
profile: "source-only";
|
|
313
383
|
repositoryId: string;
|
|
314
384
|
controlPlaneId: string;
|
|
315
385
|
formatVersion: 1;
|
|
386
|
+
additionalCommits?: string[] | undefined;
|
|
316
387
|
}, {
|
|
317
388
|
commit: string;
|
|
389
|
+
teamId: string;
|
|
390
|
+
projectId: string;
|
|
391
|
+
profile: "source-only";
|
|
392
|
+
repositoryId: string;
|
|
393
|
+
controlPlaneId: string;
|
|
394
|
+
formatVersion: 1;
|
|
395
|
+
additionalCommits?: string[] | undefined;
|
|
396
|
+
}>, {
|
|
397
|
+
commit: string;
|
|
398
|
+
teamId: string;
|
|
318
399
|
projectId: string;
|
|
400
|
+
profile: "source-only";
|
|
401
|
+
repositoryId: string;
|
|
402
|
+
controlPlaneId: string;
|
|
403
|
+
formatVersion: 1;
|
|
404
|
+
additionalCommits?: string[] | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
commit: string;
|
|
319
407
|
teamId: string;
|
|
408
|
+
projectId: string;
|
|
320
409
|
profile: "source-only";
|
|
321
410
|
repositoryId: string;
|
|
322
411
|
controlPlaneId: string;
|
|
323
412
|
formatVersion: 1;
|
|
413
|
+
additionalCommits?: string[] | undefined;
|
|
324
414
|
}>;
|
|
325
415
|
mode: z.ZodEnum<["analysis", "work"]>;
|
|
326
416
|
acquisition: z.ZodEnum<["upstream-public", "upstream-authorized", "simulation-local"]>;
|
|
@@ -333,18 +423,19 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
333
423
|
id: string;
|
|
334
424
|
expiresAt: string;
|
|
335
425
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
336
|
-
providerId: string;
|
|
337
|
-
issuedAt: string;
|
|
338
|
-
assignmentId: string;
|
|
339
426
|
source: {
|
|
340
427
|
commit: string;
|
|
341
|
-
projectId: string;
|
|
342
428
|
teamId: string;
|
|
429
|
+
projectId: string;
|
|
343
430
|
profile: "source-only";
|
|
344
431
|
repositoryId: string;
|
|
345
432
|
controlPlaneId: string;
|
|
346
433
|
formatVersion: 1;
|
|
434
|
+
additionalCommits?: string[] | undefined;
|
|
347
435
|
};
|
|
436
|
+
assignmentId: string;
|
|
437
|
+
providerId: string;
|
|
438
|
+
issuedAt: string;
|
|
348
439
|
mode: "analysis" | "work";
|
|
349
440
|
attempt: number;
|
|
350
441
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -355,18 +446,19 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
355
446
|
id: string;
|
|
356
447
|
expiresAt: string;
|
|
357
448
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
358
|
-
providerId: string;
|
|
359
|
-
issuedAt: string;
|
|
360
|
-
assignmentId: string;
|
|
361
449
|
source: {
|
|
362
450
|
commit: string;
|
|
363
|
-
projectId: string;
|
|
364
451
|
teamId: string;
|
|
452
|
+
projectId: string;
|
|
365
453
|
profile: "source-only";
|
|
366
454
|
repositoryId: string;
|
|
367
455
|
controlPlaneId: string;
|
|
368
456
|
formatVersion: 1;
|
|
457
|
+
additionalCommits?: string[] | undefined;
|
|
369
458
|
};
|
|
459
|
+
assignmentId: string;
|
|
460
|
+
providerId: string;
|
|
461
|
+
issuedAt: string;
|
|
370
462
|
mode: "analysis" | "work";
|
|
371
463
|
attempt: number;
|
|
372
464
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -377,18 +469,19 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
377
469
|
id: string;
|
|
378
470
|
expiresAt: string;
|
|
379
471
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
380
|
-
providerId: string;
|
|
381
|
-
issuedAt: string;
|
|
382
|
-
assignmentId: string;
|
|
383
472
|
source: {
|
|
384
473
|
commit: string;
|
|
385
|
-
projectId: string;
|
|
386
474
|
teamId: string;
|
|
475
|
+
projectId: string;
|
|
387
476
|
profile: "source-only";
|
|
388
477
|
repositoryId: string;
|
|
389
478
|
controlPlaneId: string;
|
|
390
479
|
formatVersion: 1;
|
|
480
|
+
additionalCommits?: string[] | undefined;
|
|
391
481
|
};
|
|
482
|
+
assignmentId: string;
|
|
483
|
+
providerId: string;
|
|
484
|
+
issuedAt: string;
|
|
392
485
|
mode: "analysis" | "work";
|
|
393
486
|
attempt: number;
|
|
394
487
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -399,18 +492,19 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
399
492
|
id: string;
|
|
400
493
|
expiresAt: string;
|
|
401
494
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
402
|
-
providerId: string;
|
|
403
|
-
issuedAt: string;
|
|
404
|
-
assignmentId: string;
|
|
405
495
|
source: {
|
|
406
496
|
commit: string;
|
|
407
|
-
projectId: string;
|
|
408
497
|
teamId: string;
|
|
498
|
+
projectId: string;
|
|
409
499
|
profile: "source-only";
|
|
410
500
|
repositoryId: string;
|
|
411
501
|
controlPlaneId: string;
|
|
412
502
|
formatVersion: 1;
|
|
503
|
+
additionalCommits?: string[] | undefined;
|
|
413
504
|
};
|
|
505
|
+
assignmentId: string;
|
|
506
|
+
providerId: string;
|
|
507
|
+
issuedAt: string;
|
|
414
508
|
mode: "analysis" | "work";
|
|
415
509
|
attempt: number;
|
|
416
510
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -427,14 +521,14 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
427
521
|
}, "strict", z.ZodTypeAny, {
|
|
428
522
|
provider: "github";
|
|
429
523
|
name: string;
|
|
430
|
-
owner: string;
|
|
431
524
|
ref: string;
|
|
525
|
+
owner: string;
|
|
432
526
|
cloneUrl: string;
|
|
433
527
|
}, {
|
|
434
528
|
provider: "github";
|
|
435
529
|
name: string;
|
|
436
|
-
owner: string;
|
|
437
530
|
ref: string;
|
|
531
|
+
owner: string;
|
|
438
532
|
cloneUrl: string;
|
|
439
533
|
}>;
|
|
440
534
|
credential: z.ZodNullable<z.ZodObject<{
|
|
@@ -472,26 +566,27 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
472
566
|
repository: {
|
|
473
567
|
provider: "github";
|
|
474
568
|
name: string;
|
|
475
|
-
owner: string;
|
|
476
569
|
ref: string;
|
|
570
|
+
owner: string;
|
|
477
571
|
cloneUrl: string;
|
|
478
572
|
};
|
|
479
573
|
authorization: {
|
|
480
574
|
id: string;
|
|
481
575
|
expiresAt: string;
|
|
482
576
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
483
|
-
providerId: string;
|
|
484
|
-
issuedAt: string;
|
|
485
|
-
assignmentId: string;
|
|
486
577
|
source: {
|
|
487
578
|
commit: string;
|
|
488
|
-
projectId: string;
|
|
489
579
|
teamId: string;
|
|
580
|
+
projectId: string;
|
|
490
581
|
profile: "source-only";
|
|
491
582
|
repositoryId: string;
|
|
492
583
|
controlPlaneId: string;
|
|
493
584
|
formatVersion: 1;
|
|
585
|
+
additionalCommits?: string[] | undefined;
|
|
494
586
|
};
|
|
587
|
+
assignmentId: string;
|
|
588
|
+
providerId: string;
|
|
589
|
+
issuedAt: string;
|
|
495
590
|
mode: "analysis" | "work";
|
|
496
591
|
attempt: number;
|
|
497
592
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -514,26 +609,27 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
514
609
|
repository: {
|
|
515
610
|
provider: "github";
|
|
516
611
|
name: string;
|
|
517
|
-
owner: string;
|
|
518
612
|
ref: string;
|
|
613
|
+
owner: string;
|
|
519
614
|
cloneUrl: string;
|
|
520
615
|
};
|
|
521
616
|
authorization: {
|
|
522
617
|
id: string;
|
|
523
618
|
expiresAt: string;
|
|
524
619
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
525
|
-
providerId: string;
|
|
526
|
-
issuedAt: string;
|
|
527
|
-
assignmentId: string;
|
|
528
620
|
source: {
|
|
529
621
|
commit: string;
|
|
530
|
-
projectId: string;
|
|
531
622
|
teamId: string;
|
|
623
|
+
projectId: string;
|
|
532
624
|
profile: "source-only";
|
|
533
625
|
repositoryId: string;
|
|
534
626
|
controlPlaneId: string;
|
|
535
627
|
formatVersion: 1;
|
|
628
|
+
additionalCommits?: string[] | undefined;
|
|
536
629
|
};
|
|
630
|
+
assignmentId: string;
|
|
631
|
+
providerId: string;
|
|
632
|
+
issuedAt: string;
|
|
537
633
|
mode: "analysis" | "work";
|
|
538
634
|
attempt: number;
|
|
539
635
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -556,26 +652,27 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
556
652
|
repository: {
|
|
557
653
|
provider: "github";
|
|
558
654
|
name: string;
|
|
559
|
-
owner: string;
|
|
560
655
|
ref: string;
|
|
656
|
+
owner: string;
|
|
561
657
|
cloneUrl: string;
|
|
562
658
|
};
|
|
563
659
|
authorization: {
|
|
564
660
|
id: string;
|
|
565
661
|
expiresAt: string;
|
|
566
662
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
567
|
-
providerId: string;
|
|
568
|
-
issuedAt: string;
|
|
569
|
-
assignmentId: string;
|
|
570
663
|
source: {
|
|
571
664
|
commit: string;
|
|
572
|
-
projectId: string;
|
|
573
665
|
teamId: string;
|
|
666
|
+
projectId: string;
|
|
574
667
|
profile: "source-only";
|
|
575
668
|
repositoryId: string;
|
|
576
669
|
controlPlaneId: string;
|
|
577
670
|
formatVersion: 1;
|
|
671
|
+
additionalCommits?: string[] | undefined;
|
|
578
672
|
};
|
|
673
|
+
assignmentId: string;
|
|
674
|
+
providerId: string;
|
|
675
|
+
issuedAt: string;
|
|
579
676
|
mode: "analysis" | "work";
|
|
580
677
|
attempt: number;
|
|
581
678
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -598,26 +695,27 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
598
695
|
repository: {
|
|
599
696
|
provider: "github";
|
|
600
697
|
name: string;
|
|
601
|
-
owner: string;
|
|
602
698
|
ref: string;
|
|
699
|
+
owner: string;
|
|
603
700
|
cloneUrl: string;
|
|
604
701
|
};
|
|
605
702
|
authorization: {
|
|
606
703
|
id: string;
|
|
607
704
|
expiresAt: string;
|
|
608
705
|
schemaVersion: "treeseed.source-workspace-authorization/v1";
|
|
609
|
-
providerId: string;
|
|
610
|
-
issuedAt: string;
|
|
611
|
-
assignmentId: string;
|
|
612
706
|
source: {
|
|
613
707
|
commit: string;
|
|
614
|
-
projectId: string;
|
|
615
708
|
teamId: string;
|
|
709
|
+
projectId: string;
|
|
616
710
|
profile: "source-only";
|
|
617
711
|
repositoryId: string;
|
|
618
712
|
controlPlaneId: string;
|
|
619
713
|
formatVersion: 1;
|
|
714
|
+
additionalCommits?: string[] | undefined;
|
|
620
715
|
};
|
|
716
|
+
assignmentId: string;
|
|
717
|
+
providerId: string;
|
|
718
|
+
issuedAt: string;
|
|
621
719
|
mode: "analysis" | "work";
|
|
622
720
|
attempt: number;
|
|
623
721
|
publication: "denied" | "assignment-branch" | "simulation-branch";
|
|
@@ -18,9 +18,13 @@ const sourceWorkspaceKeySchema = z.object({
|
|
|
18
18
|
projectId: id,
|
|
19
19
|
repositoryId: id,
|
|
20
20
|
commit,
|
|
21
|
+
additionalCommits: z.array(commit).max(16).refine((values) => new Set(values).size === values.length).optional(),
|
|
21
22
|
formatVersion: z.literal(1),
|
|
22
23
|
profile: z.literal("source-only")
|
|
23
|
-
}).strict()
|
|
24
|
+
}).strict().refine((value) => !value.additionalCommits?.includes(value.commit), {
|
|
25
|
+
path: ["additionalCommits"],
|
|
26
|
+
message: "Predecessor commits must differ from the base commit."
|
|
27
|
+
});
|
|
24
28
|
const sourceWorkspaceAuthorizationSchema = z.object({
|
|
25
29
|
schemaVersion: z.literal("treeseed.source-workspace-authorization/v1"),
|
|
26
30
|
id,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type CapacityProviderManifestV5, type CapacityProviderProofPayload, type CapacityProviderPublicJwk
|
|
1
|
+
import { type CapacityProviderManifestV5, type CapacityProviderProofPayload, type CapacityProviderPublicJwk } from './contracts/governance.js';
|
|
2
|
+
import { type CapabilityDefinition } from './capability-ontology.js';
|
|
2
3
|
export interface CapacityProviderContractDiagnostic {
|
|
3
4
|
code: string;
|
|
4
5
|
path: string;
|
|
@@ -11,6 +12,13 @@ export interface CapacityProviderContractValidation {
|
|
|
11
12
|
export declare function result(diagnostics: CapacityProviderContractDiagnostic[]): CapacityProviderContractValidation;
|
|
12
13
|
export declare function add(diagnostics: CapacityProviderContractDiagnostic[], code: string, path: string, message: string): void;
|
|
13
14
|
export declare function nonEmpty(value: unknown): value is string;
|
|
15
|
+
/** Qualification semantics shared by advertisement and admission. Signature
|
|
16
|
+
* verification still belongs to the registered-identity publication boundary. */
|
|
17
|
+
export declare function validateCapabilityOfferQualification(value: unknown, options?: {
|
|
18
|
+
now?: Date;
|
|
19
|
+
providerId?: string;
|
|
20
|
+
definitions?: readonly CapabilityDefinition[];
|
|
21
|
+
}): CapacityProviderContractValidation;
|
|
14
22
|
export declare function validateCapacityProviderPublicJwk(jwk: CapacityProviderPublicJwk): CapacityProviderContractValidation;
|
|
15
23
|
export declare function validateCapacityProviderProofPayload(payload: CapacityProviderProofPayload, options?: {
|
|
16
24
|
now?: Date;
|
|
@@ -18,7 +26,7 @@ export declare function validateCapacityProviderProofPayload(payload: CapacityPr
|
|
|
18
26
|
expectedPath?: string;
|
|
19
27
|
expectedAudience?: string;
|
|
20
28
|
}): CapacityProviderContractValidation;
|
|
21
|
-
export declare function validateProviderSupplyOffer(offer:
|
|
29
|
+
export declare function validateProviderSupplyOffer(offer: unknown, path?: string): CapacityProviderContractValidation;
|
|
22
30
|
export declare function validateCapacityProviderManifestV5(manifest: CapacityProviderManifestV5): CapacityProviderContractValidation;
|
|
23
31
|
export declare function capacityProviderSecurityDefaults(): {
|
|
24
32
|
proofTtlSeconds: number;
|