@treeseed/sdk 0.13.0-rc.19 → 0.13.0-rc.20

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.
@@ -1,4 +1,4 @@
1
- export type ProviderLanePurpose = 'communication' | 'operation';
1
+ export type ProviderLanePurpose = 'communication' | 'platform' | 'workday';
2
2
  export type CapacityExecutionKind = 'workday' | 'conversation' | 'simulation' | 'recovery';
3
3
  export type CapacityTriggerKind = 'scheduled' | 'manual' | 'discussion' | 'agent-handoff';
4
4
  export type CommunicationPriorityClass = 'human-interactive' | 'workday-blocking-agent' | 'agent-asynchronous' | 'operational';
@@ -7,7 +7,7 @@ const CAPACITY_CONFIGURATION_FAMILIES = [
7
7
  "activity-profile"
8
8
  ];
9
9
  const CAPACITY_CONFIGURATION_DESCRIPTORS = [
10
- { id: "provider-manifest", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.capacity-provider/v2", validator: "validateCapacityProviderManifestV2", runtimeOwner: "@treeseed/agent" },
10
+ { id: "provider-manifest", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.capacity-provider/v3", validator: "validateCapacityProviderManifestV3", runtimeOwner: "@treeseed/agent" },
11
11
  { id: "provider-offer", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.provider-supply-offer/v1", validator: "validateProviderSupplyOffer", runtimeOwner: "@treeseed/agent" },
12
12
  { id: "capacity-grant", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.capacity-grant/v2", validator: "validateCapacityGrantV2", runtimeOwner: "@treeseed/api" },
13
13
  { id: "allocation-set", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.capacity-allocation-set/v2", validator: "validateCapacityAllocationSetV2", runtimeOwner: "@treeseed/api" },
@@ -17,7 +17,7 @@ export interface ProviderNativeEstimateRange {
17
17
  minimum: number;
18
18
  expected: number;
19
19
  maximum: number;
20
- providerClass?: string;
20
+ providerCapabilities?: string[];
21
21
  }
22
22
  export interface AgentOutputRequirement {
23
23
  id?: string;
@@ -112,18 +112,18 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
112
112
  mergeTargetBeforeSave: z.ZodOptional<z.ZodBoolean>;
113
113
  }, "strict", z.ZodTypeAny, {
114
114
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
115
- base: "main" | "staging";
115
+ base: "staging" | "main";
116
116
  prefix?: string | undefined;
117
- target?: "main" | "staging" | undefined;
117
+ target?: "staging" | "main" | undefined;
118
118
  branchNameTemplate?: string | undefined;
119
119
  worktree?: string | undefined;
120
120
  updateBaseBeforeRun?: boolean | undefined;
121
121
  mergeTargetBeforeSave?: boolean | undefined;
122
122
  }, {
123
123
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
124
- base: "main" | "staging";
124
+ base: "staging" | "main";
125
125
  prefix?: string | undefined;
126
- target?: "main" | "staging" | undefined;
126
+ target?: "staging" | "main" | undefined;
127
127
  branchNameTemplate?: string | undefined;
128
128
  worktree?: string | undefined;
129
129
  updateBaseBeforeRun?: boolean | undefined;
@@ -838,9 +838,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
838
838
  };
839
839
  branchPolicy: {
840
840
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
841
- base: "main" | "staging";
841
+ base: "staging" | "main";
842
842
  prefix?: string | undefined;
843
- target?: "main" | "staging" | undefined;
843
+ target?: "staging" | "main" | undefined;
844
844
  branchNameTemplate?: string | undefined;
845
845
  worktree?: string | undefined;
846
846
  updateBaseBeforeRun?: boolean | undefined;
@@ -1011,9 +1011,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1011
1011
  };
1012
1012
  branchPolicy: {
1013
1013
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
1014
- base: "main" | "staging";
1014
+ base: "staging" | "main";
1015
1015
  prefix?: string | undefined;
1016
- target?: "main" | "staging" | undefined;
1016
+ target?: "staging" | "main" | undefined;
1017
1017
  branchNameTemplate?: string | undefined;
1018
1018
  worktree?: string | undefined;
1019
1019
  updateBaseBeforeRun?: boolean | undefined;
@@ -1184,9 +1184,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1184
1184
  };
1185
1185
  branchPolicy: {
1186
1186
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
1187
- base: "main" | "staging";
1187
+ base: "staging" | "main";
1188
1188
  prefix?: string | undefined;
1189
- target?: "main" | "staging" | undefined;
1189
+ target?: "staging" | "main" | undefined;
1190
1190
  branchNameTemplate?: string | undefined;
1191
1191
  worktree?: string | undefined;
1192
1192
  updateBaseBeforeRun?: boolean | undefined;
@@ -1357,9 +1357,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1357
1357
  };
1358
1358
  branchPolicy: {
1359
1359
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
1360
- base: "main" | "staging";
1360
+ base: "staging" | "main";
1361
1361
  prefix?: string | undefined;
1362
- target?: "main" | "staging" | undefined;
1362
+ target?: "staging" | "main" | undefined;
1363
1363
  branchNameTemplate?: string | undefined;
1364
1364
  worktree?: string | undefined;
1365
1365
  updateBaseBeforeRun?: boolean | undefined;
@@ -1634,18 +1634,18 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1634
1634
  mergeTargetBeforeSave: z.ZodOptional<z.ZodBoolean>;
1635
1635
  }, "strict", z.ZodTypeAny, {
1636
1636
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
1637
- base: "main" | "staging";
1637
+ base: "staging" | "main";
1638
1638
  prefix?: string | undefined;
1639
- target?: "main" | "staging" | undefined;
1639
+ target?: "staging" | "main" | undefined;
1640
1640
  branchNameTemplate?: string | undefined;
1641
1641
  worktree?: string | undefined;
1642
1642
  updateBaseBeforeRun?: boolean | undefined;
1643
1643
  mergeTargetBeforeSave?: boolean | undefined;
1644
1644
  }, {
1645
1645
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
1646
- base: "main" | "staging";
1646
+ base: "staging" | "main";
1647
1647
  prefix?: string | undefined;
1648
- target?: "main" | "staging" | undefined;
1648
+ target?: "staging" | "main" | undefined;
1649
1649
  branchNameTemplate?: string | undefined;
1650
1650
  worktree?: string | undefined;
1651
1651
  updateBaseBeforeRun?: boolean | undefined;
@@ -2360,9 +2360,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2360
2360
  };
2361
2361
  branchPolicy: {
2362
2362
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
2363
- base: "main" | "staging";
2363
+ base: "staging" | "main";
2364
2364
  prefix?: string | undefined;
2365
- target?: "main" | "staging" | undefined;
2365
+ target?: "staging" | "main" | undefined;
2366
2366
  branchNameTemplate?: string | undefined;
2367
2367
  worktree?: string | undefined;
2368
2368
  updateBaseBeforeRun?: boolean | undefined;
@@ -2533,9 +2533,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2533
2533
  };
2534
2534
  branchPolicy: {
2535
2535
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
2536
- base: "main" | "staging";
2536
+ base: "staging" | "main";
2537
2537
  prefix?: string | undefined;
2538
- target?: "main" | "staging" | undefined;
2538
+ target?: "staging" | "main" | undefined;
2539
2539
  branchNameTemplate?: string | undefined;
2540
2540
  worktree?: string | undefined;
2541
2541
  updateBaseBeforeRun?: boolean | undefined;
@@ -2706,9 +2706,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2706
2706
  };
2707
2707
  branchPolicy: {
2708
2708
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
2709
- base: "main" | "staging";
2709
+ base: "staging" | "main";
2710
2710
  prefix?: string | undefined;
2711
- target?: "main" | "staging" | undefined;
2711
+ target?: "staging" | "main" | undefined;
2712
2712
  branchNameTemplate?: string | undefined;
2713
2713
  worktree?: string | undefined;
2714
2714
  updateBaseBeforeRun?: boolean | undefined;
@@ -2879,9 +2879,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2879
2879
  };
2880
2880
  branchPolicy: {
2881
2881
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
2882
- base: "main" | "staging";
2882
+ base: "staging" | "main";
2883
2883
  prefix?: string | undefined;
2884
- target?: "main" | "staging" | undefined;
2884
+ target?: "staging" | "main" | undefined;
2885
2885
  branchNameTemplate?: string | undefined;
2886
2886
  worktree?: string | undefined;
2887
2887
  updateBaseBeforeRun?: boolean | undefined;
@@ -3156,18 +3156,18 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3156
3156
  mergeTargetBeforeSave: z.ZodOptional<z.ZodBoolean>;
3157
3157
  }, "strict", z.ZodTypeAny, {
3158
3158
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
3159
- base: "main" | "staging";
3159
+ base: "staging" | "main";
3160
3160
  prefix?: string | undefined;
3161
- target?: "main" | "staging" | undefined;
3161
+ target?: "staging" | "main" | undefined;
3162
3162
  branchNameTemplate?: string | undefined;
3163
3163
  worktree?: string | undefined;
3164
3164
  updateBaseBeforeRun?: boolean | undefined;
3165
3165
  mergeTargetBeforeSave?: boolean | undefined;
3166
3166
  }, {
3167
3167
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
3168
- base: "main" | "staging";
3168
+ base: "staging" | "main";
3169
3169
  prefix?: string | undefined;
3170
- target?: "main" | "staging" | undefined;
3170
+ target?: "staging" | "main" | undefined;
3171
3171
  branchNameTemplate?: string | undefined;
3172
3172
  worktree?: string | undefined;
3173
3173
  updateBaseBeforeRun?: boolean | undefined;
@@ -3882,9 +3882,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3882
3882
  };
3883
3883
  branchPolicy: {
3884
3884
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
3885
- base: "main" | "staging";
3885
+ base: "staging" | "main";
3886
3886
  prefix?: string | undefined;
3887
- target?: "main" | "staging" | undefined;
3887
+ target?: "staging" | "main" | undefined;
3888
3888
  branchNameTemplate?: string | undefined;
3889
3889
  worktree?: string | undefined;
3890
3890
  updateBaseBeforeRun?: boolean | undefined;
@@ -4055,9 +4055,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4055
4055
  };
4056
4056
  branchPolicy: {
4057
4057
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
4058
- base: "main" | "staging";
4058
+ base: "staging" | "main";
4059
4059
  prefix?: string | undefined;
4060
- target?: "main" | "staging" | undefined;
4060
+ target?: "staging" | "main" | undefined;
4061
4061
  branchNameTemplate?: string | undefined;
4062
4062
  worktree?: string | undefined;
4063
4063
  updateBaseBeforeRun?: boolean | undefined;
@@ -4228,9 +4228,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4228
4228
  };
4229
4229
  branchPolicy: {
4230
4230
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
4231
- base: "main" | "staging";
4231
+ base: "staging" | "main";
4232
4232
  prefix?: string | undefined;
4233
- target?: "main" | "staging" | undefined;
4233
+ target?: "staging" | "main" | undefined;
4234
4234
  branchNameTemplate?: string | undefined;
4235
4235
  worktree?: string | undefined;
4236
4236
  updateBaseBeforeRun?: boolean | undefined;
@@ -4401,9 +4401,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4401
4401
  };
4402
4402
  branchPolicy: {
4403
4403
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
4404
- base: "main" | "staging";
4404
+ base: "staging" | "main";
4405
4405
  prefix?: string | undefined;
4406
- target?: "main" | "staging" | undefined;
4406
+ target?: "staging" | "main" | undefined;
4407
4407
  branchNameTemplate?: string | undefined;
4408
4408
  worktree?: string | undefined;
4409
4409
  updateBaseBeforeRun?: boolean | undefined;
@@ -4678,18 +4678,18 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4678
4678
  mergeTargetBeforeSave: z.ZodOptional<z.ZodBoolean>;
4679
4679
  }, "strict", z.ZodTypeAny, {
4680
4680
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
4681
- base: "main" | "staging";
4681
+ base: "staging" | "main";
4682
4682
  prefix?: string | undefined;
4683
- target?: "main" | "staging" | undefined;
4683
+ target?: "staging" | "main" | undefined;
4684
4684
  branchNameTemplate?: string | undefined;
4685
4685
  worktree?: string | undefined;
4686
4686
  updateBaseBeforeRun?: boolean | undefined;
4687
4687
  mergeTargetBeforeSave?: boolean | undefined;
4688
4688
  }, {
4689
4689
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
4690
- base: "main" | "staging";
4690
+ base: "staging" | "main";
4691
4691
  prefix?: string | undefined;
4692
- target?: "main" | "staging" | undefined;
4692
+ target?: "staging" | "main" | undefined;
4693
4693
  branchNameTemplate?: string | undefined;
4694
4694
  worktree?: string | undefined;
4695
4695
  updateBaseBeforeRun?: boolean | undefined;
@@ -5404,9 +5404,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5404
5404
  };
5405
5405
  branchPolicy: {
5406
5406
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
5407
- base: "main" | "staging";
5407
+ base: "staging" | "main";
5408
5408
  prefix?: string | undefined;
5409
- target?: "main" | "staging" | undefined;
5409
+ target?: "staging" | "main" | undefined;
5410
5410
  branchNameTemplate?: string | undefined;
5411
5411
  worktree?: string | undefined;
5412
5412
  updateBaseBeforeRun?: boolean | undefined;
@@ -5577,9 +5577,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5577
5577
  };
5578
5578
  branchPolicy: {
5579
5579
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
5580
- base: "main" | "staging";
5580
+ base: "staging" | "main";
5581
5581
  prefix?: string | undefined;
5582
- target?: "main" | "staging" | undefined;
5582
+ target?: "staging" | "main" | undefined;
5583
5583
  branchNameTemplate?: string | undefined;
5584
5584
  worktree?: string | undefined;
5585
5585
  updateBaseBeforeRun?: boolean | undefined;
@@ -5750,9 +5750,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5750
5750
  };
5751
5751
  branchPolicy: {
5752
5752
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
5753
- base: "main" | "staging";
5753
+ base: "staging" | "main";
5754
5754
  prefix?: string | undefined;
5755
- target?: "main" | "staging" | undefined;
5755
+ target?: "staging" | "main" | undefined;
5756
5756
  branchNameTemplate?: string | undefined;
5757
5757
  worktree?: string | undefined;
5758
5758
  updateBaseBeforeRun?: boolean | undefined;
@@ -5923,9 +5923,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5923
5923
  };
5924
5924
  branchPolicy: {
5925
5925
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
5926
- base: "main" | "staging";
5926
+ base: "staging" | "main";
5927
5927
  prefix?: string | undefined;
5928
- target?: "main" | "staging" | undefined;
5928
+ target?: "staging" | "main" | undefined;
5929
5929
  branchNameTemplate?: string | undefined;
5930
5930
  worktree?: string | undefined;
5931
5931
  updateBaseBeforeRun?: boolean | undefined;
@@ -6200,18 +6200,18 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6200
6200
  mergeTargetBeforeSave: z.ZodOptional<z.ZodBoolean>;
6201
6201
  }, "strict", z.ZodTypeAny, {
6202
6202
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
6203
- base: "main" | "staging";
6203
+ base: "staging" | "main";
6204
6204
  prefix?: string | undefined;
6205
- target?: "main" | "staging" | undefined;
6205
+ target?: "staging" | "main" | undefined;
6206
6206
  branchNameTemplate?: string | undefined;
6207
6207
  worktree?: string | undefined;
6208
6208
  updateBaseBeforeRun?: boolean | undefined;
6209
6209
  mergeTargetBeforeSave?: boolean | undefined;
6210
6210
  }, {
6211
6211
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
6212
- base: "main" | "staging";
6212
+ base: "staging" | "main";
6213
6213
  prefix?: string | undefined;
6214
- target?: "main" | "staging" | undefined;
6214
+ target?: "staging" | "main" | undefined;
6215
6215
  branchNameTemplate?: string | undefined;
6216
6216
  worktree?: string | undefined;
6217
6217
  updateBaseBeforeRun?: boolean | undefined;
@@ -6926,9 +6926,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6926
6926
  };
6927
6927
  branchPolicy: {
6928
6928
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
6929
- base: "main" | "staging";
6929
+ base: "staging" | "main";
6930
6930
  prefix?: string | undefined;
6931
- target?: "main" | "staging" | undefined;
6931
+ target?: "staging" | "main" | undefined;
6932
6932
  branchNameTemplate?: string | undefined;
6933
6933
  worktree?: string | undefined;
6934
6934
  updateBaseBeforeRun?: boolean | undefined;
@@ -7099,9 +7099,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7099
7099
  };
7100
7100
  branchPolicy: {
7101
7101
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
7102
- base: "main" | "staging";
7102
+ base: "staging" | "main";
7103
7103
  prefix?: string | undefined;
7104
- target?: "main" | "staging" | undefined;
7104
+ target?: "staging" | "main" | undefined;
7105
7105
  branchNameTemplate?: string | undefined;
7106
7106
  worktree?: string | undefined;
7107
7107
  updateBaseBeforeRun?: boolean | undefined;
@@ -7272,9 +7272,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7272
7272
  };
7273
7273
  branchPolicy: {
7274
7274
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
7275
- base: "main" | "staging";
7275
+ base: "staging" | "main";
7276
7276
  prefix?: string | undefined;
7277
- target?: "main" | "staging" | undefined;
7277
+ target?: "staging" | "main" | undefined;
7278
7278
  branchNameTemplate?: string | undefined;
7279
7279
  worktree?: string | undefined;
7280
7280
  updateBaseBeforeRun?: boolean | undefined;
@@ -7445,9 +7445,9 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7445
7445
  };
7446
7446
  branchPolicy: {
7447
7447
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
7448
- base: "main" | "staging";
7448
+ base: "staging" | "main";
7449
7449
  prefix?: string | undefined;
7450
- target?: "main" | "staging" | undefined;
7450
+ target?: "staging" | "main" | undefined;
7451
7451
  branchNameTemplate?: string | undefined;
7452
7452
  worktree?: string | undefined;
7453
7453
  updateBaseBeforeRun?: boolean | undefined;
@@ -7726,18 +7726,18 @@ export declare function validateAgentDefinitionModel(value: unknown): {
7726
7726
  mergeTargetBeforeSave: z.ZodOptional<z.ZodBoolean>;
7727
7727
  }, "strict", z.ZodTypeAny, {
7728
7728
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
7729
- base: "main" | "staging";
7729
+ base: "staging" | "main";
7730
7730
  prefix?: string | undefined;
7731
- target?: "main" | "staging" | undefined;
7731
+ target?: "staging" | "main" | undefined;
7732
7732
  branchNameTemplate?: string | undefined;
7733
7733
  worktree?: string | undefined;
7734
7734
  updateBaseBeforeRun?: boolean | undefined;
7735
7735
  mergeTargetBeforeSave?: boolean | undefined;
7736
7736
  }, {
7737
7737
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
7738
- base: "main" | "staging";
7738
+ base: "staging" | "main";
7739
7739
  prefix?: string | undefined;
7740
- target?: "main" | "staging" | undefined;
7740
+ target?: "staging" | "main" | undefined;
7741
7741
  branchNameTemplate?: string | undefined;
7742
7742
  worktree?: string | undefined;
7743
7743
  updateBaseBeforeRun?: boolean | undefined;
@@ -8452,9 +8452,9 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8452
8452
  };
8453
8453
  branchPolicy: {
8454
8454
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
8455
- base: "main" | "staging";
8455
+ base: "staging" | "main";
8456
8456
  prefix?: string | undefined;
8457
- target?: "main" | "staging" | undefined;
8457
+ target?: "staging" | "main" | undefined;
8458
8458
  branchNameTemplate?: string | undefined;
8459
8459
  worktree?: string | undefined;
8460
8460
  updateBaseBeforeRun?: boolean | undefined;
@@ -8625,9 +8625,9 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8625
8625
  };
8626
8626
  branchPolicy: {
8627
8627
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
8628
- base: "main" | "staging";
8628
+ base: "staging" | "main";
8629
8629
  prefix?: string | undefined;
8630
- target?: "main" | "staging" | undefined;
8630
+ target?: "staging" | "main" | undefined;
8631
8631
  branchNameTemplate?: string | undefined;
8632
8632
  worktree?: string | undefined;
8633
8633
  updateBaseBeforeRun?: boolean | undefined;
@@ -8798,9 +8798,9 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8798
8798
  };
8799
8799
  branchPolicy: {
8800
8800
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
8801
- base: "main" | "staging";
8801
+ base: "staging" | "main";
8802
8802
  prefix?: string | undefined;
8803
- target?: "main" | "staging" | undefined;
8803
+ target?: "staging" | "main" | undefined;
8804
8804
  branchNameTemplate?: string | undefined;
8805
8805
  worktree?: string | undefined;
8806
8806
  updateBaseBeforeRun?: boolean | undefined;
@@ -8971,9 +8971,9 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8971
8971
  };
8972
8972
  branchPolicy: {
8973
8973
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
8974
- base: "main" | "staging";
8974
+ base: "staging" | "main";
8975
8975
  prefix?: string | undefined;
8976
- target?: "main" | "staging" | undefined;
8976
+ target?: "staging" | "main" | undefined;
8977
8977
  branchNameTemplate?: string | undefined;
8978
8978
  worktree?: string | undefined;
8979
8979
  updateBaseBeforeRun?: boolean | undefined;
@@ -236,32 +236,39 @@ export interface CapacityExecutionProvider {
236
236
  }
237
237
  /** Optional provider-global lane that narrows an execution provider's limits. */
238
238
  export interface CapacityProviderLane {
239
- schemaVersion: 1;
239
+ schemaVersion: 2;
240
240
  id: string;
241
241
  providerId: string;
242
- executionProviderId: string;
243
242
  displayName: string;
244
243
  purpose: import('../../agent-capacity/contracts/capacity/communication/communication-records.js').ProviderLanePurpose;
245
244
  status: CapacityProviderLaneStatus;
245
+ priority: number;
246
+ reservedConcurrentWorkers: number;
247
+ borrowWhenIdle: boolean;
248
+ lendWhenIdle: boolean;
249
+ reclaimPolicy: 'admission';
250
+ queueLimit: number;
251
+ timeoutSeconds: number;
246
252
  capabilities: string[];
247
- maxConcurrentRunners: number;
253
+ maxConcurrentWorkers: number;
248
254
  minimumAssignmentDuration?: MinimumAssignmentDuration;
249
- nativeLimits: CapacityExecutionProviderNativeLimit[];
250
255
  metadata?: Record<string, unknown>;
251
256
  createdAt: string;
252
257
  updatedAt: string;
253
258
  }
254
259
  export interface ProviderLaneSnapshot {
255
260
  id: string;
256
- executionProviderId: string;
257
261
  purpose: import('../../agent-capacity/contracts/capacity/communication/communication-records.js').ProviderLanePurpose;
258
262
  status: CapacityProviderLaneStatus;
263
+ priority: number;
264
+ reservedConcurrentWorkers: number;
265
+ borrowedWorkers: number;
266
+ lentWorkers: number;
267
+ queuedAssignments: number;
259
268
  capabilities: string[];
260
- maxConcurrentRunners: number;
261
- activeRunners: number;
269
+ maxConcurrentWorkers: number;
270
+ activeWorkers: number;
262
271
  minimumAssignmentDuration?: MinimumAssignmentDuration;
263
- preferred?: boolean;
264
- nativeLimits: Record<string, unknown>;
265
272
  }
266
273
  export type MinimumAssignmentDuration = {
267
274
  amount: number;
@@ -275,28 +282,31 @@ export type MinimumAssignmentDuration = {
275
282
  holidayDates?: string[];
276
283
  };
277
284
  };
278
- export interface ProviderExecutionProviderSnapshot {
285
+ export interface ProviderExecutionAdapterSnapshot {
279
286
  id: string;
280
287
  adapter: string;
288
+ isolation: 'process' | 'worker';
281
289
  status: 'available' | 'degraded' | 'unavailable';
282
290
  capabilities: string[];
283
- maxConcurrentRunners: number;
284
- activeRunners: number;
291
+ laneIds: string[];
292
+ maxConcurrentWorkers: number;
293
+ activeWorkers: number;
285
294
  minimumAssignmentDuration?: MinimumAssignmentDuration;
286
295
  nativeLimits: Record<string, unknown>;
287
296
  observations?: Record<string, unknown>;
288
- lanes: ProviderLaneSnapshot[];
289
297
  }
290
298
  export interface ProviderAvailabilitySnapshot {
291
299
  sequence: number;
292
300
  availableFrom: string;
293
301
  availableUntil?: string | null;
294
302
  pressure: 'idle' | 'normal' | 'busy' | 'throttled' | 'exhausted';
295
- maxConcurrentAssignments: number;
303
+ maxConcurrentWorkers: number;
296
304
  activeAssignmentIds: string[];
297
- executionProviders: ProviderExecutionProviderSnapshot[];
298
- communicationReady: boolean;
299
- communicationBlockers: string[];
305
+ reservedWorkers: number;
306
+ borrowedWorkers: number;
307
+ availableWorkers: number;
308
+ adapters: ProviderExecutionAdapterSnapshot[];
309
+ lanes: ProviderLaneSnapshot[];
300
310
  capabilities: string[];
301
311
  constraints?: Record<string, unknown>;
302
312
  }
@@ -335,9 +345,8 @@ export interface CapacityProviderJoinInput {
335
345
  registrationKeyRef: string;
336
346
  offer: ProviderSupplyOffer;
337
347
  }
338
- export interface CapacityProviderManifestV2 {
339
- schemaVersion: 2;
340
- providerClass: 'agent' | 'platform-operation';
348
+ export interface CapacityProviderManifestV3 {
349
+ schemaVersion: 3;
341
350
  ownership: {
342
351
  type: 'team' | 'external';
343
352
  teamId?: string;
@@ -350,8 +359,15 @@ export interface CapacityProviderManifestV2 {
350
359
  privateKeyRef: string;
351
360
  displayName: string;
352
361
  };
353
- supplyCeilings: {
354
- maxConcurrentAssignments: number;
362
+ capacity: {
363
+ maxConcurrentWorkers: number;
364
+ cpuCores?: number;
365
+ memoryBytes?: number;
366
+ accelerators?: Array<{
367
+ kind: string;
368
+ count: number;
369
+ memoryBytes?: number;
370
+ }>;
355
371
  maxActiveSeconds?: number;
356
372
  maxInputTokens?: number;
357
373
  maxOutputTokens?: number;
@@ -359,16 +375,30 @@ export interface CapacityProviderManifestV2 {
359
375
  currency?: string;
360
376
  maxAttempts?: number;
361
377
  };
362
- credentialBindings?: Array<{
378
+ credentialProfiles?: Array<{
363
379
  id: string;
364
380
  source: 'service-vault' | 'process-environment';
365
381
  reference: string;
366
382
  required: boolean;
367
383
  }>;
368
- defaultExecutionProviderId?: string;
369
- executionProviders: Array<{
384
+ lanes: Array<{
385
+ id: string;
386
+ purpose: import('../../agent-capacity/contracts/capacity/communication/communication-records.js').ProviderLanePurpose;
387
+ priority: number;
388
+ reservedConcurrentWorkers: number;
389
+ maxConcurrentWorkers: number;
390
+ borrowWhenIdle: boolean;
391
+ lendWhenIdle: boolean;
392
+ reclaimPolicy: 'admission';
393
+ queueLimit: number;
394
+ timeoutSeconds: number;
395
+ minimumAssignmentDuration?: MinimumAssignmentDuration;
396
+ capabilities?: string[];
397
+ }>;
398
+ adapters: Array<{
370
399
  id: string;
371
400
  adapter: string;
401
+ isolation: 'process' | 'worker';
372
402
  profile?: string;
373
403
  module?: string;
374
404
  protocol?: 'responses' | 'chat-completions';
@@ -377,7 +407,9 @@ export interface CapacityProviderManifestV2 {
377
407
  baseUrl?: string;
378
408
  model?: string;
379
409
  };
380
- credentialBindings?: string[];
410
+ credentialProfiles?: string[];
411
+ laneIds: string[];
412
+ maxConcurrentWorkers: number;
381
413
  healthProbe?: string;
382
414
  versionConstraint?: string;
383
415
  configurationDigest?: string;
@@ -385,14 +417,6 @@ export interface CapacityProviderManifestV2 {
385
417
  nativeLimits: Record<string, unknown>;
386
418
  researchSourcePolicy?: ResearchSourcePolicy;
387
419
  capabilities?: string[];
388
- lanes?: Array<{
389
- id: string;
390
- purpose: import('../../agent-capacity/contracts/capacity/communication/communication-records.js').ProviderLanePurpose;
391
- maxConcurrentRunners: number;
392
- minimumAssignmentDuration?: MinimumAssignmentDuration;
393
- capabilities?: string[];
394
- nativeLimits?: Record<string, unknown>;
395
- }>;
396
420
  }>;
397
421
  connections: ProviderConnectionConfig[];
398
422
  metadata?: Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { type CapacityProviderManifestV2, type CapacityProviderProofPayload, type CapacityProviderPublicJwk, type ProviderSupplyOffer } from './contracts/index.js';
1
+ import { type CapacityProviderManifestV3, type CapacityProviderProofPayload, type CapacityProviderPublicJwk, type ProviderSupplyOffer } from './contracts/index.js';
2
2
  export interface CapacityProviderContractDiagnostic {
3
3
  code: string;
4
4
  path: string;
@@ -19,7 +19,7 @@ export declare function validateCapacityProviderProofPayload(payload: CapacityPr
19
19
  expectedAudience?: string;
20
20
  }): CapacityProviderContractValidation;
21
21
  export declare function validateProviderSupplyOffer(offer: ProviderSupplyOffer, path?: string): CapacityProviderContractValidation;
22
- export declare function validateCapacityProviderManifestV2(manifest: CapacityProviderManifestV2): CapacityProviderContractValidation;
22
+ export declare function validateCapacityProviderManifestV3(manifest: CapacityProviderManifestV3): CapacityProviderContractValidation;
23
23
  export declare function capacityProviderSecurityDefaults(): {
24
24
  proofTtlSeconds: number;
25
25
  accessTokenTtlSeconds: number;