@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.
Files changed (126) hide show
  1. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1392 -974
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +72 -27
  3. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +34 -34
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
  6. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -0
  7. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -1
  8. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
  9. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -3
  10. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +21 -15
  11. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +3 -42
  12. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +8 -8
  13. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +227 -66
  14. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +54 -19
  15. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +214 -5
  16. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
  17. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +47 -47
  18. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -0
  19. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
  20. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +434 -230
  21. package/dist/agent-capacity/contracts/support/execution-graph.js +20 -18
  22. package/dist/agent-capacity/contracts/support/financial-records.d.ts +2 -0
  23. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +286 -254
  24. package/dist/agent-capacity/validation/agent-definition-schema.js +22 -28
  25. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +1 -1
  26. package/dist/agent-capacity/validation/assignment-records.js +45 -0
  27. package/dist/capacity/agents/agent-capacity.d.ts +1 -0
  28. package/dist/capacity/agents/agent-capacity.js +1 -0
  29. package/dist/capacity-provider/capability-ontology.d.ts +102 -102
  30. package/dist/capacity-provider/client.d.ts +14 -7
  31. package/dist/capacity-provider/client.js +1 -4
  32. package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
  33. package/dist/capacity-provider/contracts/environment-profiles.d.ts +40 -40
  34. package/dist/capacity-provider/contracts/governance.d.ts +2 -17
  35. package/dist/capacity-provider/contracts/index.d.ts +2 -0
  36. package/dist/capacity-provider/contracts/index.js +2 -0
  37. package/dist/capacity-provider/core-capability-catalog.d.ts +7 -7
  38. package/dist/capacity-provider/environment-catalog.d.ts +22 -22
  39. package/dist/capacity-provider/environment-catalog.js +1 -1
  40. package/dist/capacity-provider/install-configuration.d.ts +4 -4
  41. package/dist/capacity-provider/sandbox-contracts.d.ts +54 -54
  42. package/dist/capacity-provider/source-workspace.d.ts +76 -76
  43. package/dist/capacity-provider/validation.d.ts +10 -2
  44. package/dist/capacity-provider/validation.js +52 -22
  45. package/dist/content/validation/agent-operational-content-schemas.d.ts +120 -118
  46. package/dist/content/validation/agent-operational-content-schemas.js +2 -0
  47. package/dist/content/validation/auxiliary-content-schemas.d.ts +92 -92
  48. package/dist/content/validation/content-model-schemas.d.ts +3155 -2512
  49. package/dist/content/validation/content-model-schemas.js +97 -87
  50. package/dist/content/validation/portable-content-data.d.ts +173 -168
  51. package/dist/content/validation/schema-constraints.d.ts +78 -0
  52. package/dist/content/validation/schema-constraints.js +149 -0
  53. package/dist/deployment/ai/storage.d.ts +20 -20
  54. package/dist/deployment/ai-hosting.d.ts +12 -12
  55. package/dist/deployment/ai-instance.d.ts +12 -12
  56. package/dist/deployment/ai-mode.d.ts +34 -34
  57. package/dist/deployment/hosted-topology-template.d.ts +25 -25
  58. package/dist/deployment/hosted-topology.d.ts +146 -146
  59. package/dist/deployment/postgres/transfer.d.ts +2 -2
  60. package/dist/deployment/schemas.d.ts +504 -504
  61. package/dist/development/schemas.d.ts +325 -325
  62. package/dist/graph/context-query-contracts.js +1 -1
  63. package/dist/guarantees/index.d.ts +26 -2
  64. package/dist/identity/contracts.js +6 -1
  65. package/dist/operator-contracts/canonical-command-tree.js +22 -8
  66. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +27 -27
  67. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +25 -25
  68. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +11 -9
  69. package/dist/operator-contracts/catalog/communication-operations.d.ts +108 -90
  70. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +33 -33
  71. package/dist/operator-contracts/catalog/inbox-operations.d.ts +27 -27
  72. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +4 -4
  73. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
  74. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +5 -5
  75. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +3 -3
  76. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +16 -8
  77. package/dist/operator-contracts/catalog/services/secret-operations.js +2 -1
  78. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +11 -11
  79. package/dist/operator-contracts/catalog/workdays/selection-commands.js +7 -6
  80. package/dist/operator-contracts/communication/contracts.d.ts +340 -198
  81. package/dist/operator-contracts/communication/contracts.js +6 -1
  82. package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
  83. package/dist/operator-contracts/control-plane-operation.js +6 -0
  84. package/dist/operator-contracts/control-plane-operations.d.ts +469 -442
  85. package/dist/operator-contracts/control-plane-operations.js +26 -10
  86. package/dist/operator-contracts/inbox/contracts.d.ts +100 -100
  87. package/dist/operator-contracts/knowledge/contracts.d.ts +6 -6
  88. package/dist/operator-contracts/mcp.js +4 -3
  89. package/dist/operator-contracts/workday-lifecycle.d.ts +192 -2
  90. package/dist/operator-contracts/workday-lifecycle.js +108 -45
  91. package/dist/platform/agent-schema-verification.js +316 -33
  92. package/dist/platform/contracts.d.ts +72 -72
  93. package/dist/platform/schemas.d.ts +144 -36
  94. package/dist/platform/schemas.js +26 -0
  95. package/dist/platform/verification.js +4 -0
  96. package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
  97. package/dist/secrets-capability/secret-contracts.d.ts +2 -2
  98. package/dist/secrets-capability/shared-access.d.ts +1 -1
  99. package/dist/secrets-capability/shared-resources.d.ts +30 -30
  100. package/dist/security/encrypted-envelope.d.ts +6 -6
  101. package/dist/treedx/client.d.ts +4 -4
  102. package/dist/treedx/index.d.ts +1 -1
  103. package/dist/treedx/index.js +1 -0
  104. package/dist/treedx/types.d.ts +286 -0
  105. package/dist/treedx/types.js +44 -0
  106. package/dist/types/agents/agent-activity-profile.d.ts +1 -0
  107. package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
  108. package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
  109. package/guarantees/agent/golden/product.guarantee.yaml +12 -0
  110. package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +837 -0
  111. package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
  112. package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
  113. package/guarantees/verifiers/golden.verifiers.yaml +1429 -0
  114. package/package.json +10 -5
  115. package/tests/acceptance/golden-product.test.ts +205 -0
  116. package/tests/acceptance/golden-product.ts +404 -0
  117. package/tests/acceptance/product/base-red.ts +73 -0
  118. package/tests/acceptance/product/documentation-examples.ts +68 -0
  119. package/tests/acceptance/product/intent-runtime.ts +145 -0
  120. package/tests/acceptance/product/release-output.ts +160 -0
  121. package/tests/acceptance/product/research-artifact.ts +87 -0
  122. package/tests/acceptance/product/research-revision.ts +82 -0
  123. package/tests/acceptance/product/research-source.ts +91 -0
  124. package/tests/acceptance/product/test-chain.ts +192 -0
  125. package/treeseed.package.yaml +147 -0
  126. package/dist/.treeseed-build-complete.json +0 -1
@@ -51,7 +51,7 @@ export declare const organizationTeamInvitationSchema: z.ZodObject<{
51
51
  status: z.ZodEnum<["pending", "accepted", "rejected", "revoked", "expired"]>;
52
52
  version: z.ZodNumber;
53
53
  }, "strict", z.ZodTypeAny, {
54
- status: "rejected" | "revoked" | "pending" | "accepted" | "expired";
54
+ status: "pending" | "accepted" | "revoked" | "expired" | "rejected";
55
55
  id: string;
56
56
  version: number;
57
57
  expiresAt: string;
@@ -60,7 +60,7 @@ export declare const organizationTeamInvitationSchema: z.ZodObject<{
60
60
  organizationAuthorizedBy: string;
61
61
  teamAuthorizedBy: string | null;
62
62
  }, {
63
- status: "rejected" | "revoked" | "pending" | "accepted" | "expired";
63
+ status: "pending" | "accepted" | "revoked" | "expired" | "rejected";
64
64
  id: string;
65
65
  version: number;
66
66
  expiresAt: string;
@@ -190,6 +190,12 @@ export declare const sharedResourceGrantSchema: z.ZodEffects<z.ZodObject<{
190
190
  id: string;
191
191
  version: number;
192
192
  expiresAt: string | null;
193
+ limits: {
194
+ maxConcurrentOperations: number;
195
+ maxOperationsPerWindow: number;
196
+ windowSeconds: number;
197
+ };
198
+ permissions: string[];
193
199
  scope: {
194
200
  environment: "staging" | "production" | "shared";
195
201
  projectIds: string[];
@@ -197,12 +203,6 @@ export declare const sharedResourceGrantSchema: z.ZodEffects<z.ZodObject<{
197
203
  resourceIds: string[];
198
204
  };
199
205
  origin: "explicit" | "default-policy";
200
- limits: {
201
- maxConcurrentOperations: number;
202
- maxOperationsPerWindow: number;
203
- windowSeconds: number;
204
- };
205
- permissions: string[];
206
206
  authority: {
207
207
  kind: "organization";
208
208
  organizationId: string;
@@ -226,6 +226,12 @@ export declare const sharedResourceGrantSchema: z.ZodEffects<z.ZodObject<{
226
226
  id: string;
227
227
  version: number;
228
228
  expiresAt: string | null;
229
+ limits: {
230
+ maxConcurrentOperations: number;
231
+ maxOperationsPerWindow: number;
232
+ windowSeconds: number;
233
+ };
234
+ permissions: string[];
229
235
  scope: {
230
236
  environment: "staging" | "production" | "shared";
231
237
  projectIds: string[];
@@ -233,12 +239,6 @@ export declare const sharedResourceGrantSchema: z.ZodEffects<z.ZodObject<{
233
239
  resourceIds: string[];
234
240
  };
235
241
  origin: "explicit" | "default-policy";
236
- limits: {
237
- maxConcurrentOperations: number;
238
- maxOperationsPerWindow: number;
239
- windowSeconds: number;
240
- };
241
- permissions: string[];
242
242
  authority: {
243
243
  kind: "organization";
244
244
  organizationId: string;
@@ -262,6 +262,12 @@ export declare const sharedResourceGrantSchema: z.ZodEffects<z.ZodObject<{
262
262
  id: string;
263
263
  version: number;
264
264
  expiresAt: string | null;
265
+ limits: {
266
+ maxConcurrentOperations: number;
267
+ maxOperationsPerWindow: number;
268
+ windowSeconds: number;
269
+ };
270
+ permissions: string[];
265
271
  scope: {
266
272
  environment: "staging" | "production" | "shared";
267
273
  projectIds: string[];
@@ -269,12 +275,6 @@ export declare const sharedResourceGrantSchema: z.ZodEffects<z.ZodObject<{
269
275
  resourceIds: string[];
270
276
  };
271
277
  origin: "explicit" | "default-policy";
272
- limits: {
273
- maxConcurrentOperations: number;
274
- maxOperationsPerWindow: number;
275
- windowSeconds: number;
276
- };
277
- permissions: string[];
278
278
  authority: {
279
279
  kind: "organization";
280
280
  organizationId: string;
@@ -298,6 +298,12 @@ export declare const sharedResourceGrantSchema: z.ZodEffects<z.ZodObject<{
298
298
  id: string;
299
299
  version: number;
300
300
  expiresAt: string | null;
301
+ limits: {
302
+ maxConcurrentOperations: number;
303
+ maxOperationsPerWindow: number;
304
+ windowSeconds: number;
305
+ };
306
+ permissions: string[];
301
307
  scope: {
302
308
  environment: "staging" | "production" | "shared";
303
309
  projectIds: string[];
@@ -305,12 +311,6 @@ export declare const sharedResourceGrantSchema: z.ZodEffects<z.ZodObject<{
305
311
  resourceIds: string[];
306
312
  };
307
313
  origin: "explicit" | "default-policy";
308
- limits: {
309
- maxConcurrentOperations: number;
310
- maxOperationsPerWindow: number;
311
- windowSeconds: number;
312
- };
313
- permissions: string[];
314
314
  authority: {
315
315
  kind: "organization";
316
316
  organizationId: string;
@@ -335,8 +335,8 @@ export declare const serviceBindingSchema: z.ZodEffects<z.ZodObject<{
335
335
  }, "strict", z.ZodTypeAny, {
336
336
  id: string;
337
337
  version: number;
338
- projectId: string;
339
338
  teamId: string;
339
+ projectId: string;
340
340
  grantId: string | null;
341
341
  capability: string;
342
342
  environment: "staging" | "production" | "shared";
@@ -345,8 +345,8 @@ export declare const serviceBindingSchema: z.ZodEffects<z.ZodObject<{
345
345
  }, {
346
346
  id: string;
347
347
  version: number;
348
- projectId: string;
349
348
  teamId: string;
349
+ projectId: string;
350
350
  grantId: string | null;
351
351
  capability: string;
352
352
  environment: "staging" | "production" | "shared";
@@ -355,8 +355,8 @@ export declare const serviceBindingSchema: z.ZodEffects<z.ZodObject<{
355
355
  }>, {
356
356
  id: string;
357
357
  version: number;
358
- projectId: string;
359
358
  teamId: string;
359
+ projectId: string;
360
360
  grantId: string | null;
361
361
  capability: string;
362
362
  environment: "staging" | "production" | "shared";
@@ -365,8 +365,8 @@ export declare const serviceBindingSchema: z.ZodEffects<z.ZodObject<{
365
365
  }, {
366
366
  id: string;
367
367
  version: number;
368
- projectId: string;
369
368
  teamId: string;
369
+ projectId: string;
370
370
  grantId: string | null;
371
371
  capability: string;
372
372
  environment: "staging" | "production" | "shared";
@@ -16,8 +16,8 @@ export declare const encryptedEnvelopeAadSchema: z.ZodObject<{
16
16
  purpose: string;
17
17
  resourceType: string;
18
18
  resourceId: string;
19
- teamId?: string | undefined;
20
19
  assignmentId?: string | undefined;
20
+ teamId?: string | undefined;
21
21
  sequence?: number | undefined;
22
22
  topicId?: string | undefined;
23
23
  sendId?: string | undefined;
@@ -28,8 +28,8 @@ export declare const encryptedEnvelopeAadSchema: z.ZodObject<{
28
28
  purpose: string;
29
29
  resourceType: string;
30
30
  resourceId: string;
31
- teamId?: string | undefined;
32
31
  assignmentId?: string | undefined;
32
+ teamId?: string | undefined;
33
33
  sequence?: number | undefined;
34
34
  topicId?: string | undefined;
35
35
  sendId?: string | undefined;
@@ -85,8 +85,8 @@ export declare const encryptedEnvelopeSchema: z.ZodObject<{
85
85
  purpose: string;
86
86
  resourceType: string;
87
87
  resourceId: string;
88
- teamId?: string | undefined;
89
88
  assignmentId?: string | undefined;
89
+ teamId?: string | undefined;
90
90
  sequence?: number | undefined;
91
91
  topicId?: string | undefined;
92
92
  sendId?: string | undefined;
@@ -97,8 +97,8 @@ export declare const encryptedEnvelopeSchema: z.ZodObject<{
97
97
  purpose: string;
98
98
  resourceType: string;
99
99
  resourceId: string;
100
- teamId?: string | undefined;
101
100
  assignmentId?: string | undefined;
101
+ teamId?: string | undefined;
102
102
  sequence?: number | undefined;
103
103
  topicId?: string | undefined;
104
104
  sendId?: string | undefined;
@@ -130,8 +130,8 @@ export declare const encryptedEnvelopeSchema: z.ZodObject<{
130
130
  purpose: string;
131
131
  resourceType: string;
132
132
  resourceId: string;
133
- teamId?: string | undefined;
134
133
  assignmentId?: string | undefined;
134
+ teamId?: string | undefined;
135
135
  sequence?: number | undefined;
136
136
  topicId?: string | undefined;
137
137
  sendId?: string | undefined;
@@ -162,8 +162,8 @@ export declare const encryptedEnvelopeSchema: z.ZodObject<{
162
162
  purpose: string;
163
163
  resourceType: string;
164
164
  resourceId: string;
165
- teamId?: string | undefined;
166
165
  assignmentId?: string | undefined;
166
+ teamId?: string | undefined;
167
167
  sequence?: number | undefined;
168
168
  topicId?: string | undefined;
169
169
  sendId?: string | undefined;
@@ -3,10 +3,10 @@ import type { ControlPlaneClient, ControlPlaneInvocation, ControlPlaneOperationC
3
3
  export declare const TREESEED_TREEDX_OPERATIONS: {
4
4
  readonly library: ControlPlaneOperationBinding<{
5
5
  projectId: string;
6
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
6
+ }, {}, unknown, Record<string, unknown>>;
7
7
  readonly bindLibrary: ControlPlaneOperationBinding<{
8
8
  projectId: string;
9
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
9
+ }, {}, unknown, Record<string, unknown>>;
10
10
  readonly serviceContract: ControlPlaneOperationBinding<{
11
11
  projectId: string;
12
12
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
@@ -305,10 +305,10 @@ export declare class TreeSeedTreeDxClient {
305
305
  readonly operations: {
306
306
  readonly library: ControlPlaneOperationBinding<{
307
307
  projectId: string;
308
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
308
+ }, {}, unknown, Record<string, unknown>>;
309
309
  readonly bindLibrary: ControlPlaneOperationBinding<{
310
310
  projectId: string;
311
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
311
+ }, {}, unknown, Record<string, unknown>>;
312
312
  readonly serviceContract: ControlPlaneOperationBinding<{
313
313
  projectId: string;
314
314
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
@@ -1,3 +1,3 @@
1
1
  export * from './client.js';
2
2
  export * from './contract.js';
3
- export type * from './types.js';
3
+ export * from './types.js';
@@ -1,2 +1,3 @@
1
1
  export * from "./client.js";
2
2
  export * from "./contract.js";
3
+ export * from "./types.js";
@@ -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';
@@ -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
+ };
@@ -32,6 +32,7 @@ export interface AgentDefinition {
32
32
  id: string;
33
33
  name: string;
34
34
  agentClass: string;
35
+ groupIds?: string[];
35
36
  purpose: string;
36
37
  responsibilities: string[];
37
38
  capabilities: string[];
@@ -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