@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
package/dist/treedx/types.d.ts
CHANGED
|
@@ -1,3 +1,289 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** TreeSeed's governed service custody records, not product-neutral TreeDX models. */
|
|
3
|
+
export declare const treeDxWorkspaceSchema: z.ZodObject<{
|
|
4
|
+
schemaVersion: z.ZodLiteral<"treeseed.treedx-workspace/v1">;
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
teamId: z.ZodString;
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
repository: z.ZodString;
|
|
9
|
+
baseCommit: z.ZodString;
|
|
10
|
+
headCommit: z.ZodString;
|
|
11
|
+
assignmentId: z.ZodString;
|
|
12
|
+
status: z.ZodEnum<["open", "submitted", "accepted", "rejected", "abandoned"]>;
|
|
13
|
+
createdAt: z.ZodString;
|
|
14
|
+
submittedAt: z.ZodOptional<z.ZodString>;
|
|
15
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
status: "accepted" | "rejected" | "open" | "abandoned" | "submitted";
|
|
18
|
+
id: string;
|
|
19
|
+
schemaVersion: "treeseed.treedx-workspace/v1";
|
|
20
|
+
repository: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
assignmentId: string;
|
|
23
|
+
teamId: string;
|
|
24
|
+
projectId: string;
|
|
25
|
+
baseCommit: string;
|
|
26
|
+
headCommit: string;
|
|
27
|
+
closedAt?: string | undefined;
|
|
28
|
+
submittedAt?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
status: "accepted" | "rejected" | "open" | "abandoned" | "submitted";
|
|
31
|
+
id: string;
|
|
32
|
+
schemaVersion: "treeseed.treedx-workspace/v1";
|
|
33
|
+
repository: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
assignmentId: string;
|
|
36
|
+
teamId: string;
|
|
37
|
+
projectId: string;
|
|
38
|
+
baseCommit: string;
|
|
39
|
+
headCommit: string;
|
|
40
|
+
closedAt?: string | undefined;
|
|
41
|
+
submittedAt?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const treeDxWorkspaceReviewSchema: z.ZodObject<{
|
|
44
|
+
schemaVersion: z.ZodLiteral<"treeseed.treedx-workspace-review/v1">;
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
workspaceId: z.ZodString;
|
|
47
|
+
candidateCommit: z.ZodString;
|
|
48
|
+
decisionRef: z.ZodEffects<z.ZodObject<{
|
|
49
|
+
store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
|
|
50
|
+
model: z.ZodString;
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
revision: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
54
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
55
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
56
|
+
path: z.ZodOptional<z.ZodString>;
|
|
57
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
58
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
url: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, "strict", z.ZodTypeAny, {
|
|
62
|
+
id: string;
|
|
63
|
+
model: string;
|
|
64
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
65
|
+
path?: string | undefined;
|
|
66
|
+
anchor?: string | undefined;
|
|
67
|
+
commit?: string | undefined;
|
|
68
|
+
repository?: string | undefined;
|
|
69
|
+
revision?: number | undefined;
|
|
70
|
+
digest?: string | undefined;
|
|
71
|
+
url?: string | undefined;
|
|
72
|
+
startLine?: number | undefined;
|
|
73
|
+
endLine?: number | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
id: string;
|
|
76
|
+
model: string;
|
|
77
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
78
|
+
path?: string | undefined;
|
|
79
|
+
anchor?: string | undefined;
|
|
80
|
+
commit?: string | undefined;
|
|
81
|
+
repository?: string | undefined;
|
|
82
|
+
revision?: number | undefined;
|
|
83
|
+
digest?: string | undefined;
|
|
84
|
+
url?: string | undefined;
|
|
85
|
+
startLine?: number | undefined;
|
|
86
|
+
endLine?: number | undefined;
|
|
87
|
+
}>, {
|
|
88
|
+
id: string;
|
|
89
|
+
model: string;
|
|
90
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
91
|
+
path?: string | undefined;
|
|
92
|
+
anchor?: string | undefined;
|
|
93
|
+
commit?: string | undefined;
|
|
94
|
+
repository?: string | undefined;
|
|
95
|
+
revision?: number | undefined;
|
|
96
|
+
digest?: string | undefined;
|
|
97
|
+
url?: string | undefined;
|
|
98
|
+
startLine?: number | undefined;
|
|
99
|
+
endLine?: number | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
id: string;
|
|
102
|
+
model: string;
|
|
103
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
104
|
+
path?: string | undefined;
|
|
105
|
+
anchor?: string | undefined;
|
|
106
|
+
commit?: string | undefined;
|
|
107
|
+
repository?: string | undefined;
|
|
108
|
+
revision?: number | undefined;
|
|
109
|
+
digest?: string | undefined;
|
|
110
|
+
url?: string | undefined;
|
|
111
|
+
startLine?: number | undefined;
|
|
112
|
+
endLine?: number | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
status: z.ZodEnum<["approved", "request-changes"]>;
|
|
115
|
+
decidedAt: z.ZodString;
|
|
116
|
+
}, "strict", z.ZodTypeAny, {
|
|
117
|
+
status: "approved" | "request-changes";
|
|
118
|
+
id: string;
|
|
119
|
+
schemaVersion: "treeseed.treedx-workspace-review/v1";
|
|
120
|
+
workspaceId: string;
|
|
121
|
+
decidedAt: string;
|
|
122
|
+
candidateCommit: string;
|
|
123
|
+
decisionRef: {
|
|
124
|
+
id: string;
|
|
125
|
+
model: string;
|
|
126
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
127
|
+
path?: string | undefined;
|
|
128
|
+
anchor?: string | undefined;
|
|
129
|
+
commit?: string | undefined;
|
|
130
|
+
repository?: string | undefined;
|
|
131
|
+
revision?: number | undefined;
|
|
132
|
+
digest?: string | undefined;
|
|
133
|
+
url?: string | undefined;
|
|
134
|
+
startLine?: number | undefined;
|
|
135
|
+
endLine?: number | undefined;
|
|
136
|
+
};
|
|
137
|
+
}, {
|
|
138
|
+
status: "approved" | "request-changes";
|
|
139
|
+
id: string;
|
|
140
|
+
schemaVersion: "treeseed.treedx-workspace-review/v1";
|
|
141
|
+
workspaceId: string;
|
|
142
|
+
decidedAt: string;
|
|
143
|
+
candidateCommit: string;
|
|
144
|
+
decisionRef: {
|
|
145
|
+
id: string;
|
|
146
|
+
model: string;
|
|
147
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
148
|
+
path?: string | undefined;
|
|
149
|
+
anchor?: string | undefined;
|
|
150
|
+
commit?: string | undefined;
|
|
151
|
+
repository?: string | undefined;
|
|
152
|
+
revision?: number | undefined;
|
|
153
|
+
digest?: string | undefined;
|
|
154
|
+
url?: string | undefined;
|
|
155
|
+
startLine?: number | undefined;
|
|
156
|
+
endLine?: number | undefined;
|
|
157
|
+
};
|
|
158
|
+
}>;
|
|
159
|
+
export declare const treeDxPublicationReceiptSchema: z.ZodObject<{
|
|
160
|
+
schemaVersion: z.ZodLiteral<"treeseed.treedx-publication-receipt/v1">;
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
projectId: z.ZodString;
|
|
163
|
+
repository: z.ZodString;
|
|
164
|
+
sourceCommit: z.ZodString;
|
|
165
|
+
publishedCommit: z.ZodString;
|
|
166
|
+
destination: z.ZodString;
|
|
167
|
+
url: z.ZodOptional<z.ZodString>;
|
|
168
|
+
decisionRef: z.ZodEffects<z.ZodObject<{
|
|
169
|
+
store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
|
|
170
|
+
model: z.ZodString;
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
revision: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
174
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
175
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
176
|
+
path: z.ZodOptional<z.ZodString>;
|
|
177
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
178
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
url: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, "strict", z.ZodTypeAny, {
|
|
182
|
+
id: string;
|
|
183
|
+
model: string;
|
|
184
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
185
|
+
path?: string | undefined;
|
|
186
|
+
anchor?: string | undefined;
|
|
187
|
+
commit?: string | undefined;
|
|
188
|
+
repository?: string | undefined;
|
|
189
|
+
revision?: number | undefined;
|
|
190
|
+
digest?: string | undefined;
|
|
191
|
+
url?: string | undefined;
|
|
192
|
+
startLine?: number | undefined;
|
|
193
|
+
endLine?: number | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
id: string;
|
|
196
|
+
model: string;
|
|
197
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
198
|
+
path?: string | undefined;
|
|
199
|
+
anchor?: string | undefined;
|
|
200
|
+
commit?: string | undefined;
|
|
201
|
+
repository?: string | undefined;
|
|
202
|
+
revision?: number | undefined;
|
|
203
|
+
digest?: string | undefined;
|
|
204
|
+
url?: string | undefined;
|
|
205
|
+
startLine?: number | undefined;
|
|
206
|
+
endLine?: number | undefined;
|
|
207
|
+
}>, {
|
|
208
|
+
id: string;
|
|
209
|
+
model: string;
|
|
210
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
211
|
+
path?: string | undefined;
|
|
212
|
+
anchor?: string | undefined;
|
|
213
|
+
commit?: string | undefined;
|
|
214
|
+
repository?: string | undefined;
|
|
215
|
+
revision?: number | undefined;
|
|
216
|
+
digest?: string | undefined;
|
|
217
|
+
url?: string | undefined;
|
|
218
|
+
startLine?: number | undefined;
|
|
219
|
+
endLine?: number | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
id: string;
|
|
222
|
+
model: string;
|
|
223
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
224
|
+
path?: string | undefined;
|
|
225
|
+
anchor?: string | undefined;
|
|
226
|
+
commit?: string | undefined;
|
|
227
|
+
repository?: string | undefined;
|
|
228
|
+
revision?: number | undefined;
|
|
229
|
+
digest?: string | undefined;
|
|
230
|
+
url?: string | undefined;
|
|
231
|
+
startLine?: number | undefined;
|
|
232
|
+
endLine?: number | undefined;
|
|
233
|
+
}>;
|
|
234
|
+
publishedAt: z.ZodString;
|
|
235
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
|
+
id: string;
|
|
237
|
+
schemaVersion: "treeseed.treedx-publication-receipt/v1";
|
|
238
|
+
repository: string;
|
|
239
|
+
projectId: string;
|
|
240
|
+
decisionRef: {
|
|
241
|
+
id: string;
|
|
242
|
+
model: string;
|
|
243
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
244
|
+
path?: string | undefined;
|
|
245
|
+
anchor?: string | undefined;
|
|
246
|
+
commit?: string | undefined;
|
|
247
|
+
repository?: string | undefined;
|
|
248
|
+
revision?: number | undefined;
|
|
249
|
+
digest?: string | undefined;
|
|
250
|
+
url?: string | undefined;
|
|
251
|
+
startLine?: number | undefined;
|
|
252
|
+
endLine?: number | undefined;
|
|
253
|
+
};
|
|
254
|
+
sourceCommit: string;
|
|
255
|
+
publishedCommit: string;
|
|
256
|
+
destination: string;
|
|
257
|
+
publishedAt: string;
|
|
258
|
+
url?: string | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
id: string;
|
|
261
|
+
schemaVersion: "treeseed.treedx-publication-receipt/v1";
|
|
262
|
+
repository: string;
|
|
263
|
+
projectId: string;
|
|
264
|
+
decisionRef: {
|
|
265
|
+
id: string;
|
|
266
|
+
model: string;
|
|
267
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
268
|
+
path?: string | undefined;
|
|
269
|
+
anchor?: string | undefined;
|
|
270
|
+
commit?: string | undefined;
|
|
271
|
+
repository?: string | undefined;
|
|
272
|
+
revision?: number | undefined;
|
|
273
|
+
digest?: string | undefined;
|
|
274
|
+
url?: string | undefined;
|
|
275
|
+
startLine?: number | undefined;
|
|
276
|
+
endLine?: number | undefined;
|
|
277
|
+
};
|
|
278
|
+
sourceCommit: string;
|
|
279
|
+
publishedCommit: string;
|
|
280
|
+
destination: string;
|
|
281
|
+
publishedAt: string;
|
|
282
|
+
url?: string | undefined;
|
|
283
|
+
}>;
|
|
284
|
+
export type TreeDxWorkspaceRecord = z.infer<typeof treeDxWorkspaceSchema>;
|
|
285
|
+
export type TreeDxWorkspaceReviewRecord = z.infer<typeof treeDxWorkspaceReviewSchema>;
|
|
286
|
+
export type TreeDxPublicationReceipt = z.infer<typeof treeDxPublicationReceiptSchema>;
|
|
1
287
|
export type { TreeDxApiErrorPayload, TreeDxCursor, TreeDxJson, TreeDxPage, TreeDxRecord, } from '@treeseed/treedx/treedx/types';
|
|
2
288
|
export interface TreeSeedTreeDxResourceLink {
|
|
3
289
|
type: 'resource_link';
|
package/dist/treedx/types.js
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { assignmentReferenceSchema, exactEntityReferenceSchema, leaseSchema } from "../agent-capacity/contracts/capacity/assignments/agent-execution.js";
|
|
3
|
+
const identifier = leaseSchema.shape.id, timestamp = leaseSchema.shape.acquiredAt;
|
|
4
|
+
const commit = assignmentReferenceSchema.options[0].shape.commit;
|
|
5
|
+
const treeDxWorkspaceSchema = z.object({
|
|
6
|
+
schemaVersion: z.literal("treeseed.treedx-workspace/v1"),
|
|
7
|
+
id: identifier,
|
|
8
|
+
teamId: identifier,
|
|
9
|
+
projectId: identifier,
|
|
10
|
+
repository: z.string().min(1),
|
|
11
|
+
baseCommit: commit,
|
|
12
|
+
headCommit: commit,
|
|
13
|
+
assignmentId: identifier,
|
|
14
|
+
status: z.enum(["open", "submitted", "accepted", "rejected", "abandoned"]),
|
|
15
|
+
createdAt: timestamp,
|
|
16
|
+
submittedAt: timestamp.optional(),
|
|
17
|
+
closedAt: timestamp.optional()
|
|
18
|
+
}).strict();
|
|
19
|
+
const treeDxWorkspaceReviewSchema = z.object({
|
|
20
|
+
schemaVersion: z.literal("treeseed.treedx-workspace-review/v1"),
|
|
21
|
+
id: identifier,
|
|
22
|
+
workspaceId: identifier,
|
|
23
|
+
candidateCommit: commit,
|
|
24
|
+
decisionRef: exactEntityReferenceSchema,
|
|
25
|
+
status: z.enum(["approved", "request-changes"]),
|
|
26
|
+
decidedAt: timestamp
|
|
27
|
+
}).strict();
|
|
28
|
+
const treeDxPublicationReceiptSchema = z.object({
|
|
29
|
+
schemaVersion: z.literal("treeseed.treedx-publication-receipt/v1"),
|
|
30
|
+
id: identifier,
|
|
31
|
+
projectId: identifier,
|
|
32
|
+
repository: z.string().min(1),
|
|
33
|
+
sourceCommit: commit,
|
|
34
|
+
publishedCommit: commit,
|
|
35
|
+
destination: z.string().min(1),
|
|
36
|
+
url: z.string().url().optional(),
|
|
37
|
+
decisionRef: exactEntityReferenceSchema,
|
|
38
|
+
publishedAt: timestamp
|
|
39
|
+
}).strict();
|
|
40
|
+
export {
|
|
41
|
+
treeDxPublicationReceiptSchema,
|
|
42
|
+
treeDxWorkspaceReviewSchema,
|
|
43
|
+
treeDxWorkspaceSchema
|
|
44
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
schemaVersion: treeseed.guarantee/v1
|
|
2
|
+
id: guarantee.sdk.golden.component-boundaries
|
|
3
|
+
journey: Verify golden component boundaries
|
|
4
|
+
ownerPackage: "@treeseed/sdk"
|
|
5
|
+
type: agent
|
|
6
|
+
subtype: execution
|
|
7
|
+
status: planned
|
|
8
|
+
gates: [core]
|
|
9
|
+
summary: "Executable component scenarios, not live golden-workday acceptance."
|
|
10
|
+
scene:
|
|
11
|
+
required: true
|
|
12
|
+
manifest: guarantees/agent/golden/scenes/component-boundaries.scene.yaml
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
schemaVersion: treeseed.guarantee/v1
|
|
2
|
+
id: guarantee.sdk.golden.product-custody
|
|
3
|
+
journey: Verify frozen SDK source and independently replayable local archive inspection
|
|
4
|
+
ownerPackage: '@treeseed/sdk'
|
|
5
|
+
type: agent
|
|
6
|
+
subtype: execution
|
|
7
|
+
status: planned
|
|
8
|
+
gates: [core]
|
|
9
|
+
summary: Require exact campaign source, measured packed exports/types for Actor and approved Reviewer, and one export validation path for source and tarball.
|
|
10
|
+
scene:
|
|
11
|
+
required: true
|
|
12
|
+
manifest: guarantees/agent/golden/scenes/product-custody.scene.yaml
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
schemaVersion: treeseed.guarantee/v1
|
|
2
|
+
id: guarantee.sdk.golden.product
|
|
3
|
+
journey: Verify the SDK golden product
|
|
4
|
+
ownerPackage: "@treeseed/sdk"
|
|
5
|
+
type: agent
|
|
6
|
+
subtype: execution
|
|
7
|
+
status: planned
|
|
8
|
+
gates: [core]
|
|
9
|
+
summary: Exact source custody and measured passing release build tests and local package candidate; not all campaign boundaries.
|
|
10
|
+
scene:
|
|
11
|
+
required: true
|
|
12
|
+
manifest: guarantees/agent/golden/scenes/product.scene.yaml
|