@treeseed/sdk 0.13.0-rc.121 → 0.13.0-rc.122

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 (96) hide show
  1. package/dist/.treeseed-build-complete.json +1 -1
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1594 -922
  3. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +22 -1
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +40 -40
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -59
  6. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -1
  7. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +1 -1
  8. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +18 -20
  9. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +1 -1
  10. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +0 -67
  11. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  12. package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
  13. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +8 -8
  14. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -23
  15. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  16. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  17. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +176 -176
  18. package/dist/agent-capacity/contracts/support/execution-graph.js +1 -1
  19. package/dist/agent-capacity/contracts/support/financial-records.d.ts +1 -6
  20. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  21. package/dist/agent-capacity/grant.d.ts +34 -0
  22. package/dist/agent-capacity/grant.js +4 -0
  23. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1042 -1042
  24. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +11 -11
  25. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  26. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  27. package/dist/agent-capacity/validation/assignment-records.js +4 -35
  28. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  29. package/dist/agent-capacity/validation/configuration.js +2 -6
  30. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  31. package/dist/agent-capacity/validation/grant.js +31 -0
  32. package/dist/capacity/agents/agent-capacity.d.ts +2 -4
  33. package/dist/capacity/agents/agent-capacity.js +1 -3
  34. package/dist/capacity-provider/capability-ontology.d.ts +138 -138
  35. package/dist/capacity-provider/client.d.ts +1 -2
  36. package/dist/capacity-provider/client.js +0 -6
  37. package/dist/capacity-provider/contracts/environment-profiles.d.ts +8 -8
  38. package/dist/capacity-provider/core-capability-catalog.d.ts +4 -4
  39. package/dist/capacity-provider/environment-catalog.d.ts +166 -166
  40. package/dist/capacity-provider/install-configuration.d.ts +2 -2
  41. package/dist/capacity-provider/sandbox-contracts.d.ts +52 -52
  42. package/dist/capacity-provider/source-workspace.d.ts +102 -4
  43. package/dist/capacity-provider/source-workspace.js +5 -1
  44. package/dist/content/validation/agent-operational-content-schemas.d.ts +108 -108
  45. package/dist/content/validation/auxiliary-content-schemas.d.ts +108 -108
  46. package/dist/content/validation/content-model-schemas.d.ts +9473 -6284
  47. package/dist/content/validation/content-model-schemas.js +116 -48
  48. package/dist/content/validation/portable-content-data.d.ts +351 -181
  49. package/dist/content/validation/portable-content-data.js +6 -1
  50. package/dist/deployment/ai/storage.d.ts +14 -14
  51. package/dist/deployment/ai-hosting.d.ts +10 -10
  52. package/dist/deployment/ai-instance.d.ts +14 -14
  53. package/dist/deployment/ai-mode.d.ts +82 -82
  54. package/dist/deployment/hosted-topology-template.d.ts +24 -24
  55. package/dist/deployment/hosted-topology.d.ts +219 -219
  56. package/dist/deployment/postgres/contracts.d.ts +52 -52
  57. package/dist/deployment/postgres/transfer.d.ts +4 -4
  58. package/dist/deployment/schemas.d.ts +780 -780
  59. package/dist/development/schemas.d.ts +439 -439
  60. package/dist/knowledge/contracts.d.ts +9 -2
  61. package/dist/knowledge/contracts.js +2 -2
  62. package/dist/model-registry/discussion-models.js +0 -1
  63. package/dist/operator-contracts/canonical-command-tree.js +3 -1
  64. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +2 -2
  65. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +17 -17
  66. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +4 -4
  67. package/dist/operator-contracts/catalog/communication-operations.d.ts +100 -100
  68. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +40 -40
  69. package/dist/operator-contracts/catalog/inbox-operations.d.ts +54 -54
  70. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +5 -5
  71. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
  72. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +8 -8
  73. package/dist/operator-contracts/communication/contracts.d.ts +273 -273
  74. package/dist/operator-contracts/control-plane-operations.d.ts +236 -242
  75. package/dist/operator-contracts/control-plane-operations.js +0 -2
  76. package/dist/operator-contracts/inbox/contracts.d.ts +204 -204
  77. package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
  78. package/dist/platform/agent-schema-verification.d.ts +3 -0
  79. package/dist/platform/agent-schema-verification.js +94 -0
  80. package/dist/platform/verification.js +6 -0
  81. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  82. package/dist/secrets-capability/shared-access.d.ts +2 -2
  83. package/dist/secrets-capability/shared-resources.d.ts +46 -46
  84. package/dist/secrets-capability/vault-contracts.d.ts +2 -2
  85. package/dist/security/encrypted-envelope.d.ts +8 -8
  86. package/package.json +3 -2
  87. package/dist/agent-capacity/allocation.d.ts +0 -183
  88. package/dist/agent-capacity/allocation.js +0 -5
  89. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  90. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  91. package/dist/agent-capacity/artifacts.d.ts +0 -123
  92. package/dist/agent-capacity/artifacts.js +0 -39
  93. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
  94. package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
  95. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  96. package/dist/agent-capacity/validation/allocation.js +0 -115
@@ -23,8 +23,8 @@ export declare const capacityInstallConfigurationSchema: z.ZodObject<{
23
23
  teamRegistrationCode: string;
24
24
  };
25
25
  teamId: string;
26
- profile: "capacity-provider";
27
26
  generatedAt: string;
27
+ profile: "capacity-provider";
28
28
  registrationGeneration: number;
29
29
  }, {
30
30
  schemaVersion: "treeseed.capacity-install-configuration/v1";
@@ -33,7 +33,7 @@ export declare const capacityInstallConfigurationSchema: z.ZodObject<{
33
33
  teamRegistrationCode: string;
34
34
  };
35
35
  teamId: string;
36
- profile: "capacity-provider";
37
36
  generatedAt: string;
37
+ profile: "capacity-provider";
38
38
  registrationGeneration: number;
39
39
  }>;
@@ -39,17 +39,17 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
39
39
  processLimit: z.ZodNumber;
40
40
  outputBytes: z.ZodNumber;
41
41
  }, "strict", z.ZodTypeAny, {
42
+ durationSeconds: number;
42
43
  cpuCores: number;
43
44
  memoryBytes: number;
44
45
  diskBytes: number;
45
- durationSeconds: number;
46
46
  processLimit: number;
47
47
  outputBytes: number;
48
48
  }, {
49
+ durationSeconds: number;
49
50
  cpuCores: number;
50
51
  memoryBytes: number;
51
52
  diskBytes: number;
52
- durationSeconds: number;
53
53
  processLimit: number;
54
54
  outputBytes: number;
55
55
  }>;
@@ -63,15 +63,15 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
63
63
  }, "strict", z.ZodTypeAny, {
64
64
  id: string;
65
65
  digest: string;
66
- mediaType: string;
67
66
  bytes: number;
67
+ mediaType: string;
68
68
  disposition: "read-only" | "copy-on-write";
69
69
  targetPath: string;
70
70
  }, {
71
71
  id: string;
72
72
  digest: string;
73
- mediaType: string;
74
73
  bytes: number;
74
+ mediaType: string;
75
75
  disposition: "read-only" | "copy-on-write";
76
76
  targetPath: string;
77
77
  }>, "many">;
@@ -153,28 +153,28 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
153
153
  value: z.ZodString;
154
154
  }, "strict", z.ZodTypeAny, {
155
155
  value: string;
156
- algorithm: "Ed25519";
157
156
  keyId: string;
157
+ algorithm: "Ed25519";
158
158
  }, {
159
159
  value: string;
160
- algorithm: "Ed25519";
161
160
  keyId: string;
161
+ algorithm: "Ed25519";
162
162
  }>;
163
163
  }, "strict", z.ZodTypeAny, {
164
164
  schemaVersion: "treeseed.sandbox-assignment/v1";
165
165
  resources: {
166
+ durationSeconds: number;
166
167
  cpuCores: number;
167
168
  memoryBytes: number;
168
169
  diskBytes: number;
169
- durationSeconds: number;
170
170
  processLimit: number;
171
171
  outputBytes: number;
172
172
  };
173
173
  inputs: {
174
174
  id: string;
175
175
  digest: string;
176
- mediaType: string;
177
176
  bytes: number;
177
+ mediaType: string;
178
178
  disposition: "read-only" | "copy-on-write";
179
179
  targetPath: string;
180
180
  }[];
@@ -188,23 +188,23 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
188
188
  allowedServices: string[];
189
189
  connectedDevelopmentSessionId?: string | undefined;
190
190
  };
191
- profile: string;
191
+ leaseExpiresAt: string;
192
192
  outputs: {
193
193
  path: string;
194
194
  id: string;
195
195
  mediaType: string;
196
196
  maxBytes: number;
197
197
  }[];
198
- guestImage: string;
199
- guestImageDigest: string;
200
198
  signature: {
201
199
  value: string;
202
- algorithm: "Ed25519";
203
200
  keyId: string;
201
+ algorithm: "Ed25519";
204
202
  };
205
- runnerId: string;
206
- leaseExpiresAt: string;
207
203
  attempt: number;
204
+ profile: string;
205
+ guestImage: string;
206
+ guestImageDigest: string;
207
+ runnerId: string;
208
208
  identityManifestDigest: string;
209
209
  contextManifestDigest: string;
210
210
  modelPolicy: {
@@ -231,18 +231,18 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
231
231
  }, {
232
232
  schemaVersion: "treeseed.sandbox-assignment/v1";
233
233
  resources: {
234
+ durationSeconds: number;
234
235
  cpuCores: number;
235
236
  memoryBytes: number;
236
237
  diskBytes: number;
237
- durationSeconds: number;
238
238
  processLimit: number;
239
239
  outputBytes: number;
240
240
  };
241
241
  inputs: {
242
242
  id: string;
243
243
  digest: string;
244
- mediaType: string;
245
244
  bytes: number;
245
+ mediaType: string;
246
246
  disposition: "read-only" | "copy-on-write";
247
247
  targetPath: string;
248
248
  }[];
@@ -256,23 +256,23 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
256
256
  allowedServices: string[];
257
257
  connectedDevelopmentSessionId?: string | undefined;
258
258
  };
259
- profile: string;
259
+ leaseExpiresAt: string;
260
260
  outputs: {
261
261
  path: string;
262
262
  id: string;
263
263
  mediaType: string;
264
264
  maxBytes: number;
265
265
  }[];
266
- guestImage: string;
267
- guestImageDigest: string;
268
266
  signature: {
269
267
  value: string;
270
- algorithm: "Ed25519";
271
268
  keyId: string;
269
+ algorithm: "Ed25519";
272
270
  };
273
- runnerId: string;
274
- leaseExpiresAt: string;
275
271
  attempt: number;
272
+ profile: string;
273
+ guestImage: string;
274
+ guestImageDigest: string;
275
+ runnerId: string;
276
276
  identityManifestDigest: string;
277
277
  contextManifestDigest: string;
278
278
  modelPolicy: {
@@ -336,12 +336,12 @@ export declare const sandboxLeaseRenewalSchema: z.ZodObject<{
336
336
  value: z.ZodString;
337
337
  }, "strict", z.ZodTypeAny, {
338
338
  value: string;
339
- algorithm: "Ed25519";
340
339
  keyId: string;
340
+ algorithm: "Ed25519";
341
341
  }, {
342
342
  value: string;
343
- algorithm: "Ed25519";
344
343
  keyId: string;
344
+ algorithm: "Ed25519";
345
345
  }>;
346
346
  }, "strict", z.ZodTypeAny, {
347
347
  schemaVersion: "treeseed.sandbox-lease-renewal/v1";
@@ -349,12 +349,12 @@ export declare const sandboxLeaseRenewalSchema: z.ZodObject<{
349
349
  providerId: string;
350
350
  issuedAt: string;
351
351
  assignmentId: string;
352
+ leaseExpiresAt: string;
352
353
  signature: {
353
354
  value: string;
354
- algorithm: "Ed25519";
355
355
  keyId: string;
356
+ algorithm: "Ed25519";
356
357
  };
357
- leaseExpiresAt: string;
358
358
  sandboxId: string;
359
359
  }, {
360
360
  schemaVersion: "treeseed.sandbox-lease-renewal/v1";
@@ -362,12 +362,12 @@ export declare const sandboxLeaseRenewalSchema: z.ZodObject<{
362
362
  providerId: string;
363
363
  issuedAt: string;
364
364
  assignmentId: string;
365
+ leaseExpiresAt: string;
365
366
  signature: {
366
367
  value: string;
367
- algorithm: "Ed25519";
368
368
  keyId: string;
369
+ algorithm: "Ed25519";
369
370
  };
370
- leaseExpiresAt: string;
371
371
  sandboxId: string;
372
372
  }>;
373
373
  export declare const sandboxResultSchema: z.ZodObject<{
@@ -387,14 +387,14 @@ export declare const sandboxResultSchema: z.ZodObject<{
387
387
  path: string;
388
388
  id: string;
389
389
  digest: string;
390
- mediaType: string;
391
390
  bytes: number;
391
+ mediaType: string;
392
392
  }, {
393
393
  path: string;
394
394
  id: string;
395
395
  digest: string;
396
- mediaType: string;
397
396
  bytes: number;
397
+ mediaType: string;
398
398
  }>, "many">;
399
399
  timingAwareness: z.ZodObject<{
400
400
  schemaVersion: z.ZodLiteral<"treeseed.assignment-timing-awareness/v1">;
@@ -440,19 +440,12 @@ export declare const sandboxResultSchema: z.ZodObject<{
440
440
  verified: boolean;
441
441
  }>;
442
442
  }, "strict", z.ZodTypeAny, {
443
- status: "expired" | "failed" | "completed" | "cancelled";
443
+ status: "completed" | "failed" | "cancelled" | "expired";
444
444
  schemaVersion: "treeseed.sandbox-result/v1";
445
445
  assignmentId: string;
446
- artifacts: {
447
- path: string;
448
- id: string;
449
- digest: string;
450
- mediaType: string;
451
- bytes: number;
452
- }[];
453
446
  summary: string;
454
- usage: Record<string, unknown>;
455
447
  diagnostics: Record<string, unknown>;
448
+ usage: Record<string, unknown>;
456
449
  timingAwareness: {
457
450
  schemaVersion: "treeseed.assignment-timing-awareness/v1";
458
451
  requiredChecks: 2;
@@ -464,6 +457,13 @@ export declare const sandboxResultSchema: z.ZodObject<{
464
457
  firstToolCompliant: true;
465
458
  finalToolCompliant: true;
466
459
  };
460
+ artifacts: {
461
+ path: string;
462
+ id: string;
463
+ digest: string;
464
+ bytes: number;
465
+ mediaType: string;
466
+ }[];
467
467
  sandboxId: string;
468
468
  teardown: {
469
469
  completedAt: string | null;
@@ -471,16 +471,9 @@ export declare const sandboxResultSchema: z.ZodObject<{
471
471
  };
472
472
  responseMarkdown?: string | undefined;
473
473
  }, {
474
- status: "expired" | "failed" | "completed" | "cancelled";
474
+ status: "completed" | "failed" | "cancelled" | "expired";
475
475
  schemaVersion: "treeseed.sandbox-result/v1";
476
476
  assignmentId: string;
477
- artifacts: {
478
- path: string;
479
- id: string;
480
- digest: string;
481
- mediaType: string;
482
- bytes: number;
483
- }[];
484
477
  summary: string;
485
478
  timingAwareness: {
486
479
  schemaVersion: "treeseed.assignment-timing-awareness/v1";
@@ -493,13 +486,20 @@ export declare const sandboxResultSchema: z.ZodObject<{
493
486
  firstToolCompliant: true;
494
487
  finalToolCompliant: true;
495
488
  };
489
+ artifacts: {
490
+ path: string;
491
+ id: string;
492
+ digest: string;
493
+ bytes: number;
494
+ mediaType: string;
495
+ }[];
496
496
  sandboxId: string;
497
497
  teardown: {
498
498
  completedAt: string | null;
499
499
  verified: boolean;
500
500
  };
501
- usage?: Record<string, unknown> | undefined;
502
501
  diagnostics?: Record<string, unknown> | undefined;
502
+ usage?: Record<string, unknown> | undefined;
503
503
  responseMarkdown?: string | undefined;
504
504
  }>;
505
505
  export declare const providerEnvironmentReceiptSchema: z.ZodObject<{
@@ -540,12 +540,12 @@ export declare const providerEnvironmentReceiptSchema: z.ZodObject<{
540
540
  value: z.ZodString;
541
541
  }, "strict", z.ZodTypeAny, {
542
542
  value: string;
543
- algorithm: "Ed25519";
544
543
  keyId: string;
544
+ algorithm: "Ed25519";
545
545
  }, {
546
546
  value: string;
547
- algorithm: "Ed25519";
548
547
  keyId: string;
548
+ algorithm: "Ed25519";
549
549
  }>;
550
550
  }, "strict", z.ZodTypeAny, {
551
551
  schemaVersion: "treeseed.provider-environment-receipt/v1";
@@ -554,8 +554,8 @@ export declare const providerEnvironmentReceiptSchema: z.ZodObject<{
554
554
  assignmentId: string;
555
555
  signature: {
556
556
  value: string;
557
- algorithm: "Ed25519";
558
557
  keyId: string;
558
+ algorithm: "Ed25519";
559
559
  };
560
560
  offerId: string;
561
561
  teardown: {
@@ -577,8 +577,8 @@ export declare const providerEnvironmentReceiptSchema: z.ZodObject<{
577
577
  assignmentId: string;
578
578
  signature: {
579
579
  value: string;
580
- algorithm: "Ed25519";
581
580
  keyId: string;
581
+ algorithm: "Ed25519";
582
582
  };
583
583
  offerId: string;
584
584
  teardown: {
@@ -3,12 +3,13 @@ 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, {
@@ -19,6 +20,7 @@ export declare const sourceWorkspaceKeySchema: z.ZodObject<{
19
20
  repositoryId: string;
20
21
  controlPlaneId: string;
21
22
  formatVersion: 1;
23
+ additionalCommits?: string[] | undefined;
22
24
  }, {
23
25
  commit: string;
24
26
  projectId: string;
@@ -27,6 +29,25 @@ export declare const sourceWorkspaceKeySchema: z.ZodObject<{
27
29
  repositoryId: string;
28
30
  controlPlaneId: string;
29
31
  formatVersion: 1;
32
+ additionalCommits?: string[] | undefined;
33
+ }>, {
34
+ commit: string;
35
+ projectId: string;
36
+ teamId: string;
37
+ profile: "source-only";
38
+ repositoryId: string;
39
+ controlPlaneId: string;
40
+ formatVersion: 1;
41
+ additionalCommits?: string[] | undefined;
42
+ }, {
43
+ commit: string;
44
+ projectId: string;
45
+ teamId: string;
46
+ profile: "source-only";
47
+ repositoryId: string;
48
+ controlPlaneId: string;
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,12 +56,13 @@ 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, {
@@ -51,6 +73,25 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
51
73
  repositoryId: string;
52
74
  controlPlaneId: string;
53
75
  formatVersion: 1;
76
+ additionalCommits?: string[] | undefined;
77
+ }, {
78
+ commit: string;
79
+ projectId: string;
80
+ teamId: string;
81
+ profile: "source-only";
82
+ repositoryId: string;
83
+ controlPlaneId: string;
84
+ formatVersion: 1;
85
+ additionalCommits?: string[] | undefined;
86
+ }>, {
87
+ commit: string;
88
+ projectId: string;
89
+ teamId: string;
90
+ profile: "source-only";
91
+ repositoryId: string;
92
+ controlPlaneId: string;
93
+ formatVersion: 1;
94
+ additionalCommits?: string[] | undefined;
54
95
  }, {
55
96
  commit: string;
56
97
  projectId: string;
@@ -59,6 +100,7 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
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"]>;
@@ -82,6 +124,7 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
82
124
  repositoryId: string;
83
125
  controlPlaneId: string;
84
126
  formatVersion: 1;
127
+ additionalCommits?: string[] | undefined;
85
128
  };
86
129
  mode: "analysis" | "work";
87
130
  attempt: number;
@@ -104,6 +147,7 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
104
147
  repositoryId: string;
105
148
  controlPlaneId: string;
106
149
  formatVersion: 1;
150
+ additionalCommits?: string[] | undefined;
107
151
  };
108
152
  mode: "analysis" | "work";
109
153
  attempt: number;
@@ -126,6 +170,7 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
126
170
  repositoryId: string;
127
171
  controlPlaneId: string;
128
172
  formatVersion: 1;
173
+ additionalCommits?: string[] | undefined;
129
174
  };
130
175
  mode: "analysis" | "work";
131
176
  attempt: number;
@@ -148,6 +193,7 @@ export declare const sourceWorkspaceAuthorizationSchema: z.ZodEffects<z.ZodObjec
148
193
  repositoryId: string;
149
194
  controlPlaneId: string;
150
195
  formatVersion: 1;
196
+ additionalCommits?: string[] | undefined;
151
197
  };
152
198
  mode: "analysis" | "work";
153
199
  attempt: number;
@@ -163,12 +209,13 @@ 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, {
@@ -179,6 +226,7 @@ export declare const sourceWorkspaceLeaseSchema: z.ZodObject<{
179
226
  repositoryId: string;
180
227
  controlPlaneId: string;
181
228
  formatVersion: 1;
229
+ additionalCommits?: string[] | undefined;
182
230
  }, {
183
231
  commit: string;
184
232
  projectId: string;
@@ -187,6 +235,25 @@ export declare const sourceWorkspaceLeaseSchema: z.ZodObject<{
187
235
  repositoryId: string;
188
236
  controlPlaneId: string;
189
237
  formatVersion: 1;
238
+ additionalCommits?: string[] | undefined;
239
+ }>, {
240
+ commit: string;
241
+ projectId: string;
242
+ teamId: string;
243
+ profile: "source-only";
244
+ repositoryId: string;
245
+ controlPlaneId: string;
246
+ formatVersion: 1;
247
+ additionalCommits?: string[] | undefined;
248
+ }, {
249
+ commit: string;
250
+ projectId: string;
251
+ teamId: string;
252
+ profile: "source-only";
253
+ repositoryId: string;
254
+ controlPlaneId: string;
255
+ formatVersion: 1;
256
+ additionalCommits?: string[] | undefined;
190
257
  }>;
191
258
  workspaceDigest: z.ZodString;
192
259
  mode: z.ZodEnum<["analysis", "work"]>;
@@ -211,6 +278,7 @@ export declare const sourceWorkspaceLeaseSchema: z.ZodObject<{
211
278
  repositoryId: string;
212
279
  controlPlaneId: string;
213
280
  formatVersion: 1;
281
+ additionalCommits?: string[] | undefined;
214
282
  };
215
283
  mode: "analysis" | "work";
216
284
  attempt: number;
@@ -234,6 +302,7 @@ export declare const sourceWorkspaceLeaseSchema: z.ZodObject<{
234
302
  repositoryId: string;
235
303
  controlPlaneId: string;
236
304
  formatVersion: 1;
305
+ additionalCommits?: string[] | undefined;
237
306
  };
238
307
  mode: "analysis" | "work";
239
308
  attempt: number;
@@ -297,12 +366,13 @@ 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, {
@@ -313,6 +383,25 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
313
383
  repositoryId: string;
314
384
  controlPlaneId: string;
315
385
  formatVersion: 1;
386
+ additionalCommits?: string[] | undefined;
387
+ }, {
388
+ commit: string;
389
+ projectId: string;
390
+ teamId: string;
391
+ profile: "source-only";
392
+ repositoryId: string;
393
+ controlPlaneId: string;
394
+ formatVersion: 1;
395
+ additionalCommits?: string[] | undefined;
396
+ }>, {
397
+ commit: string;
398
+ projectId: string;
399
+ teamId: string;
400
+ profile: "source-only";
401
+ repositoryId: string;
402
+ controlPlaneId: string;
403
+ formatVersion: 1;
404
+ additionalCommits?: string[] | undefined;
316
405
  }, {
317
406
  commit: string;
318
407
  projectId: string;
@@ -321,6 +410,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
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"]>;
@@ -344,6 +434,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
344
434
  repositoryId: string;
345
435
  controlPlaneId: string;
346
436
  formatVersion: 1;
437
+ additionalCommits?: string[] | undefined;
347
438
  };
348
439
  mode: "analysis" | "work";
349
440
  attempt: number;
@@ -366,6 +457,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
366
457
  repositoryId: string;
367
458
  controlPlaneId: string;
368
459
  formatVersion: 1;
460
+ additionalCommits?: string[] | undefined;
369
461
  };
370
462
  mode: "analysis" | "work";
371
463
  attempt: number;
@@ -388,6 +480,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
388
480
  repositoryId: string;
389
481
  controlPlaneId: string;
390
482
  formatVersion: 1;
483
+ additionalCommits?: string[] | undefined;
391
484
  };
392
485
  mode: "analysis" | "work";
393
486
  attempt: number;
@@ -410,6 +503,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
410
503
  repositoryId: string;
411
504
  controlPlaneId: string;
412
505
  formatVersion: 1;
506
+ additionalCommits?: string[] | undefined;
413
507
  };
414
508
  mode: "analysis" | "work";
415
509
  attempt: number;
@@ -491,6 +585,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
491
585
  repositoryId: string;
492
586
  controlPlaneId: string;
493
587
  formatVersion: 1;
588
+ additionalCommits?: string[] | undefined;
494
589
  };
495
590
  mode: "analysis" | "work";
496
591
  attempt: number;
@@ -533,6 +628,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
533
628
  repositoryId: string;
534
629
  controlPlaneId: string;
535
630
  formatVersion: 1;
631
+ additionalCommits?: string[] | undefined;
536
632
  };
537
633
  mode: "analysis" | "work";
538
634
  attempt: number;
@@ -575,6 +671,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
575
671
  repositoryId: string;
576
672
  controlPlaneId: string;
577
673
  formatVersion: 1;
674
+ additionalCommits?: string[] | undefined;
578
675
  };
579
676
  mode: "analysis" | "work";
580
677
  attempt: number;
@@ -617,6 +714,7 @@ export declare const sourceWorkspaceResponseSchema: z.ZodEffects<z.ZodObject<{
617
714
  repositoryId: string;
618
715
  controlPlaneId: string;
619
716
  formatVersion: 1;
717
+ additionalCommits?: string[] | undefined;
620
718
  };
621
719
  mode: "analysis" | "work";
622
720
  attempt: number;
@@ -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,