@get-bb/plugin-sdk 0.6.33 → 0.6.39

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.
@@ -61,70 +61,16 @@ declare const contextSnapshotSchema: z.ZodObject<{
61
61
  type ContextSnapshot = z.infer<typeof contextSnapshotSchema>;
62
62
 
63
63
  declare const acpReasoningCliSchema: z.ZodObject<{
64
- defaultLevel: z.ZodOptional<z.ZodEnum<{
65
- high: "high";
66
- low: "low";
67
- max: "max";
68
- medium: "medium";
69
- none: "none";
70
- ultra: "ultra";
71
- ultracode: "ultracode";
72
- xhigh: "xhigh";
73
- }>>;
64
+ defaultLevel: z.ZodOptional<z.ZodString>;
74
65
  flag: z.ZodString;
75
- levelValues: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
76
- high: "high";
77
- low: "low";
78
- max: "max";
79
- medium: "medium";
80
- none: "none";
81
- ultra: "ultra";
82
- ultracode: "ultracode";
83
- xhigh: "xhigh";
84
- }> & z.core.$partial, z.ZodString>>;
85
- supportedLevels: z.ZodArray<z.ZodEnum<{
86
- high: "high";
87
- low: "low";
88
- max: "max";
89
- medium: "medium";
90
- none: "none";
91
- ultra: "ultra";
92
- ultracode: "ultracode";
93
- xhigh: "xhigh";
94
- }>>;
66
+ levelValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
67
+ supportedLevels: z.ZodArray<z.ZodString>;
95
68
  }, z.core.$strict>;
96
69
  declare const acpNativeReasoningSchema: z.ZodObject<{
97
70
  configId: z.ZodString;
98
- defaultLevel: z.ZodOptional<z.ZodEnum<{
99
- high: "high";
100
- low: "low";
101
- max: "max";
102
- medium: "medium";
103
- none: "none";
104
- ultra: "ultra";
105
- ultracode: "ultracode";
106
- xhigh: "xhigh";
107
- }>>;
108
- levelValues: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
109
- high: "high";
110
- low: "low";
111
- max: "max";
112
- medium: "medium";
113
- none: "none";
114
- ultra: "ultra";
115
- ultracode: "ultracode";
116
- xhigh: "xhigh";
117
- }> & z.core.$partial, z.ZodString>>;
118
- supportedLevels: z.ZodArray<z.ZodEnum<{
119
- high: "high";
120
- low: "low";
121
- max: "max";
122
- medium: "medium";
123
- none: "none";
124
- ultra: "ultra";
125
- ultracode: "ultracode";
126
- xhigh: "xhigh";
127
- }>>;
71
+ defaultLevel: z.ZodOptional<z.ZodString>;
72
+ levelValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
73
+ supportedLevels: z.ZodArray<z.ZodString>;
128
74
  }, z.core.$strict>;
129
75
  declare const acpPermissionCliSchema: z.ZodObject<{
130
76
  full: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -425,6 +371,10 @@ declare const threadEventTokenUsageBreakdownSchema: z.ZodObject<{
425
371
  }, z.core.$strip>;
426
372
  type ThreadEventTokenUsageBreakdown = z.infer<typeof threadEventTokenUsageBreakdownSchema>;
427
373
  declare const threadEventContextWindowUsageSchema: z.ZodObject<{
374
+ cost: z.ZodOptional<z.ZodObject<{
375
+ amount: z.ZodNumber;
376
+ currency: z.ZodString;
377
+ }, z.core.$strip>>;
428
378
  estimated: z.ZodBoolean;
429
379
  modelContextWindow: z.ZodNullable<z.ZodNumber>;
430
380
  snapshot: z.ZodOptional<z.ZodObject<{
@@ -1370,16 +1320,7 @@ type ProviderInteractionOutcome = z.infer<typeof providerInteractionOutcomeSchem
1370
1320
  declare function isApprovalInteractionOutcome(outcome: ProviderInteractionOutcome): outcome is ApprovalInteractionOutcome;
1371
1321
 
1372
1322
  declare const reasoningLevelValues: readonly ["none", "low", "medium", "high", "xhigh", "ultracode", "max", "ultra"];
1373
- declare const reasoningLevelSchema: z.ZodEnum<{
1374
- high: "high";
1375
- low: "low";
1376
- max: "max";
1377
- medium: "medium";
1378
- none: "none";
1379
- ultra: "ultra";
1380
- ultracode: "ultracode";
1381
- xhigh: "xhigh";
1382
- }>;
1323
+ declare const reasoningLevelSchema: z.ZodString;
1383
1324
  type ReasoningLevel = z.infer<typeof reasoningLevelSchema>;
1384
1325
  declare const serviceTierSchema: z.ZodString;
1385
1326
  type ServiceTier = z.infer<typeof serviceTierSchema>;
@@ -1458,6 +1399,10 @@ declare const promptInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1458
1399
  kind: z.ZodLiteral<"plugin">;
1459
1400
  label: z.ZodString;
1460
1401
  pluginId: z.ZodString;
1402
+ }, z.core.$strip>, z.ZodObject<{
1403
+ kind: z.ZodLiteral<"attachment">;
1404
+ label: z.ZodString;
1405
+ path: z.ZodString;
1461
1406
  }, z.core.$strip>], "kind">, unknown>;
1462
1407
  start: z.ZodNumber;
1463
1408
  }, z.core.$strip>>>;
@@ -1538,16 +1483,8 @@ declare const extensionKindSchema: z.ZodString & z.ZodType<`${string}/${string}`
1538
1483
 
1539
1484
  declare const modelReasoningEffortSchema: z.ZodObject<{
1540
1485
  description: z.ZodString;
1541
- reasoningEffort: z.ZodEnum<{
1542
- high: "high";
1543
- low: "low";
1544
- max: "max";
1545
- medium: "medium";
1546
- none: "none";
1547
- ultra: "ultra";
1548
- ultracode: "ultracode";
1549
- xhigh: "xhigh";
1550
- }>;
1486
+ label: z.ZodOptional<z.ZodString>;
1487
+ reasoningEffort: z.ZodString;
1551
1488
  }, z.core.$strip>;
1552
1489
  type ModelReasoningEffort = z.infer<typeof modelReasoningEffortSchema>;
1553
1490
  declare const modelServiceTierSchema: z.ZodObject<{
@@ -1557,34 +1494,39 @@ declare const modelServiceTierSchema: z.ZodObject<{
1557
1494
  }, z.core.$strip>;
1558
1495
  type ModelServiceTier = z.infer<typeof modelServiceTierSchema>;
1559
1496
  declare const availableModelSchema: z.ZodObject<{
1560
- defaultReasoningEffort: z.ZodEnum<{
1561
- high: "high";
1562
- low: "low";
1563
- max: "max";
1564
- medium: "medium";
1565
- none: "none";
1566
- ultra: "ultra";
1567
- ultracode: "ultracode";
1568
- xhigh: "xhigh";
1569
- }>;
1497
+ defaultReasoningEffort: z.ZodString;
1570
1498
  description: z.ZodString;
1571
1499
  displayName: z.ZodString;
1572
1500
  id: z.ZodString;
1573
1501
  isDefault: z.ZodBoolean;
1574
1502
  model: z.ZodString;
1575
1503
  routeProviderId: z.ZodOptional<z.ZodString>;
1504
+ sessionOptions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1505
+ category: z.ZodOptional<z.ZodString>;
1506
+ description: z.ZodOptional<z.ZodString>;
1507
+ id: z.ZodString;
1508
+ label: z.ZodString;
1509
+ type: z.ZodLiteral<"select">;
1510
+ value: z.ZodString;
1511
+ values: z.ZodArray<z.ZodObject<{
1512
+ description: z.ZodOptional<z.ZodString>;
1513
+ group: z.ZodOptional<z.ZodString>;
1514
+ id: z.ZodString;
1515
+ label: z.ZodString;
1516
+ }, z.core.$strip>>;
1517
+ }, z.core.$strip>, z.ZodObject<{
1518
+ category: z.ZodOptional<z.ZodString>;
1519
+ description: z.ZodOptional<z.ZodString>;
1520
+ fixed: z.ZodOptional<z.ZodBoolean>;
1521
+ id: z.ZodString;
1522
+ label: z.ZodString;
1523
+ type: z.ZodLiteral<"boolean">;
1524
+ value: z.ZodBoolean;
1525
+ }, z.core.$strip>], "type">>>;
1576
1526
  supportedReasoningEfforts: z.ZodArray<z.ZodObject<{
1577
1527
  description: z.ZodString;
1578
- reasoningEffort: z.ZodEnum<{
1579
- high: "high";
1580
- low: "low";
1581
- max: "max";
1582
- medium: "medium";
1583
- none: "none";
1584
- ultra: "ultra";
1585
- ultracode: "ultracode";
1586
- xhigh: "xhigh";
1587
- }>;
1528
+ label: z.ZodOptional<z.ZodString>;
1529
+ reasoningEffort: z.ZodString;
1588
1530
  }, z.core.$strip>>;
1589
1531
  supportedServiceTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1590
1532
  description: z.ZodOptional<z.ZodString>;
@@ -2984,6 +2926,10 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2984
2926
  currentOrLast: "currentOrLast";
2985
2927
  open: "open";
2986
2928
  }>;
2929
+ cost: z.ZodOptional<z.ZodObject<{
2930
+ amount: z.ZodNumber;
2931
+ currency: z.ZodString;
2932
+ }, z.core.$strip>>;
2987
2933
  estimated: z.ZodBoolean;
2988
2934
  kind: z.ZodLiteral<"contextWindow">;
2989
2935
  providerTurnId: z.ZodOptional<z.ZodString>;
@@ -3041,6 +2987,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3041
2987
  }, z.core.$strip>, z.ZodObject<{
3042
2988
  kind: z.ZodLiteral<"thread.name">;
3043
2989
  name: z.ZodString;
2990
+ source: z.ZodOptional<z.ZodLiteral<"agent">>;
3044
2991
  }, z.core.$strip>, z.ZodObject<{
3045
2992
  extensionKind: z.ZodString & z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>;
3046
2993
  kind: z.ZodLiteral<"extension.state">;
@@ -3829,6 +3776,10 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
3829
3776
  currentOrLast: "currentOrLast";
3830
3777
  open: "open";
3831
3778
  }>;
3779
+ cost: z.ZodOptional<z.ZodObject<{
3780
+ amount: z.ZodNumber;
3781
+ currency: z.ZodString;
3782
+ }, z.core.$strip>>;
3832
3783
  estimated: z.ZodBoolean;
3833
3784
  kind: z.ZodLiteral<"contextWindow">;
3834
3785
  providerTurnId: z.ZodOptional<z.ZodString>;
@@ -3886,6 +3837,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
3886
3837
  }, z.core.$strip>, z.ZodObject<{
3887
3838
  kind: z.ZodLiteral<"thread.name">;
3888
3839
  name: z.ZodString;
3840
+ source: z.ZodOptional<z.ZodLiteral<"agent">>;
3889
3841
  }, z.core.$strip>, z.ZodObject<{
3890
3842
  extensionKind: z.ZodString & z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>;
3891
3843
  kind: z.ZodLiteral<"extension.state">;
@@ -4452,17 +4404,9 @@ declare const bridgeExecutionOptionsSchema: z.ZodIntersection<z.ZodObject<{
4452
4404
  model: z.ZodOptional<z.ZodString>;
4453
4405
  promptMode: z.ZodOptional<z.ZodLiteral<"plan">>;
4454
4406
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4455
- reasoningLevel: z.ZodOptional<z.ZodEnum<{
4456
- high: "high";
4457
- low: "low";
4458
- max: "max";
4459
- medium: "medium";
4460
- none: "none";
4461
- ultra: "ultra";
4462
- ultracode: "ultracode";
4463
- xhigh: "xhigh";
4464
- }>>;
4407
+ reasoningLevel: z.ZodOptional<z.ZodString>;
4465
4408
  serviceTier: z.ZodOptional<z.ZodString>;
4409
+ sessionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
4466
4410
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4467
4411
  approvalReviewer: z.ZodLiteral<"user">;
4468
4412
  permissionEscalation: z.ZodEnum<{
@@ -4595,6 +4539,10 @@ declare const threadStartParamsSchema: z.ZodObject<{
4595
4539
  kind: z.ZodLiteral<"plugin">;
4596
4540
  label: z.ZodString;
4597
4541
  pluginId: z.ZodString;
4542
+ }, z.core.$strip>, z.ZodObject<{
4543
+ kind: z.ZodLiteral<"attachment">;
4544
+ label: z.ZodString;
4545
+ path: z.ZodString;
4598
4546
  }, z.core.$strip>], "kind">, unknown>;
4599
4547
  start: z.ZodNumber;
4600
4548
  }, z.core.$strip>>>;
@@ -4639,17 +4587,9 @@ declare const threadStartParamsSchema: z.ZodObject<{
4639
4587
  model: z.ZodOptional<z.ZodString>;
4640
4588
  promptMode: z.ZodOptional<z.ZodLiteral<"plan">>;
4641
4589
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4642
- reasoningLevel: z.ZodOptional<z.ZodEnum<{
4643
- high: "high";
4644
- low: "low";
4645
- max: "max";
4646
- medium: "medium";
4647
- none: "none";
4648
- ultra: "ultra";
4649
- ultracode: "ultracode";
4650
- xhigh: "xhigh";
4651
- }>>;
4590
+ reasoningLevel: z.ZodOptional<z.ZodString>;
4652
4591
  serviceTier: z.ZodOptional<z.ZodString>;
4592
+ sessionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
4653
4593
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4654
4594
  approvalReviewer: z.ZodLiteral<"user">;
4655
4595
  permissionEscalation: z.ZodEnum<{
@@ -4717,17 +4657,9 @@ declare const threadResumeParamsSchema: z.ZodObject<{
4717
4657
  model: z.ZodOptional<z.ZodString>;
4718
4658
  promptMode: z.ZodOptional<z.ZodLiteral<"plan">>;
4719
4659
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4720
- reasoningLevel: z.ZodOptional<z.ZodEnum<{
4721
- high: "high";
4722
- low: "low";
4723
- max: "max";
4724
- medium: "medium";
4725
- none: "none";
4726
- ultra: "ultra";
4727
- ultracode: "ultracode";
4728
- xhigh: "xhigh";
4729
- }>>;
4660
+ reasoningLevel: z.ZodOptional<z.ZodString>;
4730
4661
  serviceTier: z.ZodOptional<z.ZodString>;
4662
+ sessionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
4731
4663
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4732
4664
  approvalReviewer: z.ZodLiteral<"user">;
4733
4665
  permissionEscalation: z.ZodEnum<{
@@ -4796,17 +4728,9 @@ declare const threadForkParamsSchema: z.ZodObject<{
4796
4728
  model: z.ZodOptional<z.ZodString>;
4797
4729
  promptMode: z.ZodOptional<z.ZodLiteral<"plan">>;
4798
4730
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4799
- reasoningLevel: z.ZodOptional<z.ZodEnum<{
4800
- high: "high";
4801
- low: "low";
4802
- max: "max";
4803
- medium: "medium";
4804
- none: "none";
4805
- ultra: "ultra";
4806
- ultracode: "ultracode";
4807
- xhigh: "xhigh";
4808
- }>>;
4731
+ reasoningLevel: z.ZodOptional<z.ZodString>;
4809
4732
  serviceTier: z.ZodOptional<z.ZodString>;
4733
+ sessionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
4810
4734
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4811
4735
  approvalReviewer: z.ZodLiteral<"user">;
4812
4736
  permissionEscalation: z.ZodEnum<{
@@ -4917,6 +4841,10 @@ declare const turnStartParamsSchema: z.ZodObject<{
4917
4841
  kind: z.ZodLiteral<"plugin">;
4918
4842
  label: z.ZodString;
4919
4843
  pluginId: z.ZodString;
4844
+ }, z.core.$strip>, z.ZodObject<{
4845
+ kind: z.ZodLiteral<"attachment">;
4846
+ label: z.ZodString;
4847
+ path: z.ZodString;
4920
4848
  }, z.core.$strip>], "kind">, unknown>;
4921
4849
  start: z.ZodNumber;
4922
4850
  }, z.core.$strip>>>;
@@ -4957,17 +4885,9 @@ declare const turnStartParamsSchema: z.ZodObject<{
4957
4885
  model: z.ZodOptional<z.ZodString>;
4958
4886
  promptMode: z.ZodOptional<z.ZodLiteral<"plan">>;
4959
4887
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4960
- reasoningLevel: z.ZodOptional<z.ZodEnum<{
4961
- high: "high";
4962
- low: "low";
4963
- max: "max";
4964
- medium: "medium";
4965
- none: "none";
4966
- ultra: "ultra";
4967
- ultracode: "ultracode";
4968
- xhigh: "xhigh";
4969
- }>>;
4888
+ reasoningLevel: z.ZodOptional<z.ZodString>;
4970
4889
  serviceTier: z.ZodOptional<z.ZodString>;
4890
+ sessionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
4971
4891
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4972
4892
  approvalReviewer: z.ZodLiteral<"user">;
4973
4893
  permissionEscalation: z.ZodEnum<{
@@ -5048,6 +4968,10 @@ declare const turnSteerParamsSchema: z.ZodObject<{
5048
4968
  kind: z.ZodLiteral<"plugin">;
5049
4969
  label: z.ZodString;
5050
4970
  pluginId: z.ZodString;
4971
+ }, z.core.$strip>, z.ZodObject<{
4972
+ kind: z.ZodLiteral<"attachment">;
4973
+ label: z.ZodString;
4974
+ path: z.ZodString;
5051
4975
  }, z.core.$strip>], "kind">, unknown>;
5052
4976
  start: z.ZodNumber;
5053
4977
  }, z.core.$strip>>>;
@@ -5088,17 +5012,9 @@ declare const turnSteerParamsSchema: z.ZodObject<{
5088
5012
  model: z.ZodOptional<z.ZodString>;
5089
5013
  promptMode: z.ZodOptional<z.ZodLiteral<"plan">>;
5090
5014
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5091
- reasoningLevel: z.ZodOptional<z.ZodEnum<{
5092
- high: "high";
5093
- low: "low";
5094
- max: "max";
5095
- medium: "medium";
5096
- none: "none";
5097
- ultra: "ultra";
5098
- ultracode: "ultracode";
5099
- xhigh: "xhigh";
5100
- }>>;
5015
+ reasoningLevel: z.ZodOptional<z.ZodString>;
5101
5016
  serviceTier: z.ZodOptional<z.ZodString>;
5017
+ sessionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
5102
5018
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
5103
5019
  approvalReviewer: z.ZodLiteral<"user">;
5104
5020
  permissionEscalation: z.ZodEnum<{
@@ -5201,36 +5117,9 @@ declare const acpLaunchSpecSchema: z.ZodObject<{
5201
5117
  }>>>;
5202
5118
  nativeReasoning: z.ZodOptional<z.ZodObject<{
5203
5119
  configId: z.ZodString;
5204
- defaultLevel: z.ZodOptional<z.ZodEnum<{
5205
- high: "high";
5206
- low: "low";
5207
- max: "max";
5208
- medium: "medium";
5209
- none: "none";
5210
- ultra: "ultra";
5211
- ultracode: "ultracode";
5212
- xhigh: "xhigh";
5213
- }>>;
5214
- levelValues: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
5215
- high: "high";
5216
- low: "low";
5217
- max: "max";
5218
- medium: "medium";
5219
- none: "none";
5220
- ultra: "ultra";
5221
- ultracode: "ultracode";
5222
- xhigh: "xhigh";
5223
- }> & z.core.$partial, z.ZodString>>;
5224
- supportedLevels: z.ZodArray<z.ZodEnum<{
5225
- high: "high";
5226
- low: "low";
5227
- max: "max";
5228
- medium: "medium";
5229
- none: "none";
5230
- ultra: "ultra";
5231
- ultracode: "ultracode";
5232
- xhigh: "xhigh";
5233
- }>>;
5120
+ defaultLevel: z.ZodOptional<z.ZodString>;
5121
+ levelValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5122
+ supportedLevels: z.ZodArray<z.ZodString>;
5234
5123
  }, z.core.$strict>>;
5235
5124
  nativeSkillRoots: z.ZodOptional<z.ZodObject<{
5236
5125
  project: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -5255,37 +5144,10 @@ declare const acpLaunchSpecSchema: z.ZodObject<{
5255
5144
  workspaceWrite: z.ZodOptional<z.ZodArray<z.ZodString>>;
5256
5145
  }, z.core.$strict>>;
5257
5146
  reasoningCli: z.ZodOptional<z.ZodObject<{
5258
- defaultLevel: z.ZodOptional<z.ZodEnum<{
5259
- high: "high";
5260
- low: "low";
5261
- max: "max";
5262
- medium: "medium";
5263
- none: "none";
5264
- ultra: "ultra";
5265
- ultracode: "ultracode";
5266
- xhigh: "xhigh";
5267
- }>>;
5147
+ defaultLevel: z.ZodOptional<z.ZodString>;
5268
5148
  flag: z.ZodString;
5269
- levelValues: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
5270
- high: "high";
5271
- low: "low";
5272
- max: "max";
5273
- medium: "medium";
5274
- none: "none";
5275
- ultra: "ultra";
5276
- ultracode: "ultracode";
5277
- xhigh: "xhigh";
5278
- }> & z.core.$partial, z.ZodString>>;
5279
- supportedLevels: z.ZodArray<z.ZodEnum<{
5280
- high: "high";
5281
- low: "low";
5282
- max: "max";
5283
- medium: "medium";
5284
- none: "none";
5285
- ultra: "ultra";
5286
- ultracode: "ultracode";
5287
- xhigh: "xhigh";
5288
- }>>;
5149
+ levelValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5150
+ supportedLevels: z.ZodArray<z.ZodString>;
5289
5151
  }, z.core.$strict>>;
5290
5152
  }, z.core.$strict>;
5291
5153
  type AcpLaunchSpec = z.infer<typeof acpLaunchSpecSchema>;
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { ReactNode, ComponentType } from 'react';
9
9
  import { RenderResult } from '@testing-library/react';
10
- import { ExperimentalSidebarFooterItemRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, ExperimentalOpenFixedTabOptions, JsonValue, BbNavigate, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, PluginSidebarPullRequest, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, PluginEnvironmentProvidersState, PluginSidebarThreadActions } from '@get-bb/plugin-sdk';
10
+ import { ExperimentalSidebarFooterItemRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, ExperimentalOpenFixedTabOptions, JsonValue, BbNavigate, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, PluginSidebarPullRequest, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState } from '@get-bb/plugin-sdk';
11
11
 
12
12
  type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
13
13
  interface ExperimentalSidebarFooterRuntimeSnapshot {
@@ -74,6 +74,7 @@ type PluginSdkTestFakes = PluginSdkFakeTree<PluginBrowserBbSdk>;
74
74
  type NavigateCall = {
75
75
  method: "toThread";
76
76
  threadId: string;
77
+ options?: Parameters<BbNavigate["toThread"]>[1];
77
78
  } | {
78
79
  method: "toProject";
79
80
  projectId: string;
@@ -86,10 +87,7 @@ type NavigateCall = {
86
87
  };
87
88
  } | {
88
89
  method: "toCompose";
89
- options?: {
90
- initialPrompt?: string;
91
- focusPrompt?: boolean;
92
- };
90
+ options?: Parameters<BbNavigate["toCompose"]>[0];
93
91
  } | {
94
92
  method: "openThreadPanel";
95
93
  options: Parameters<BbNavigate["openThreadPanel"]>[0];
@@ -152,16 +150,19 @@ interface ComposerLog {
152
150
  */
153
151
  selections: ComposerSelection[];
154
152
  }
155
- /** One recorded `experimental_useSidebarThreadActions()` call. */
156
- interface SidebarActionCall {
157
- method: keyof PluginSidebarThreadActions;
158
- threadId?: string;
159
- environmentId?: string;
160
- options?: Record<string, unknown>;
161
- title?: string;
162
- pinned?: boolean;
163
- read?: boolean;
164
- }
153
+ /**
154
+ * What `experimental_useThreadActions(thread)` returns in a test, in menu
155
+ * order; the host's own actions are not emulated. `requestRename` is the
156
+ * caller's rename editor (a no-op when it passed none), for entries whose
157
+ * `run` renames. The fake applies `keys`. Omitted → an empty list. The fake
158
+ * `experimental_ThreadActionsMenu` opens on a trigger click and the fake
159
+ * context menu on right-click; each lists these entries and its `inline`
160
+ * items as `menuitem` buttons, and closes after one runs (calling
161
+ * `onOpenChange(false)` and `onCloseAutoFocus`).
162
+ */
163
+ type TestThreadActionsResolver = (thread: PluginThreadActionTarget, options: {
164
+ requestRename(threadId: string): void;
165
+ }) => readonly PluginThreadActionEntry[];
165
166
  type TestClipboard = (content: ExperimentalClipboardContent) => Promise<boolean>;
166
167
  /**
167
168
  * Install the test runtime at `globalThis.__bbPluginRuntime.pluginSdkApp`,
@@ -184,6 +185,7 @@ interface CapturedPluginApp {
184
185
  experimentalSidebarFooterItems: CollectedExperimentalSidebarFooterItem[];
185
186
  threadLists: PluginThreadListRegistration[];
186
187
  threadHeaderActions: PluginThreadHeaderActionRegistration[];
188
+ threadActions: PluginThreadActionRegistration<unknown>[];
187
189
  browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
188
190
  fileOpeners: PluginFileOpenerRegistration[];
189
191
  sourceCodeRenderers: PluginSourceCodeRendererRegistration[];
@@ -339,6 +341,16 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
339
341
  sidebarShortcuts?: Record<string, PluginSidebarThreadShortcut>;
340
342
  /** The split layout `useSidebarSplitLayout()` reports. Omitted → null. */
341
343
  sidebarSplitLayout?: PluginSidebarSplitLayout;
344
+ /**
345
+ * What `experimental_useThreadActions()` reports for a thread, in menu
346
+ * order. Omitted → an empty list.
347
+ */
348
+ threadActions?: TestThreadActionsResolver;
349
+ /**
350
+ * What `experimental_useThreadActionRegistrations()` reports. Omitted → an
351
+ * empty list.
352
+ */
353
+ threadActionRegistrations?: readonly PluginThreadActionRegistrationInfo[];
342
354
  /**
343
355
  * The environment provider catalog `useEnvironmentProviders()` reports.
344
356
  * Omitted → a ready, empty list. Pass `{ status: "loading" }` to test that
@@ -391,8 +403,11 @@ interface RenderedSlotInspectionState {
391
403
  readonly navigateCalls: NavigateCall[];
392
404
  /** Every validated `experimental_useAppPanel().openFixedTab` call. */
393
405
  readonly experimental_fixedTabOpenCalls: ExperimentalFixedTabOpenCall[];
394
- /** Every `experimental_useSidebarThreadActions()` call, in order. */
395
- readonly sidebarActionCalls: SidebarActionCall[];
406
+ /**
407
+ * The environment id of every `experimental_useArchiveEnvironmentThreads()`
408
+ * call, in order.
409
+ */
410
+ readonly experimental_environmentArchiveCalls: string[];
396
411
  /** Every `useSdk()` call, in order, as `"<area>.<method>"`. */
397
412
  readonly sdkCalls: SdkCall[];
398
413
  /** Every `experimental_copyToClipboard()` write, in order. */
@@ -419,4 +434,4 @@ declare function renderSlot<Props extends object, Contract extends PluginRpcCont
419
434
  }, props: Props, options?: RenderSlotOptions<Contract>): RenderedSlot;
420
435
 
421
436
  export { installTestPluginRuntime, loadPluginApp, mountPluginContentScripts, renderSlot };
422
- export type { CapturedPluginApp, ComposerLog, ContentScriptTestMountOptions, ContentScriptThreadRowStatusCall, ExperimentalFixedTabOpenCall, MountedPluginContentScripts, NavigateCall, PluginAppSource, PluginRpcTestHandlers, PluginSdkTestFakes, RenderSlotOptions, RenderedSlot, RenderedSlotBehaviorDrivers, RenderedSlotInspectionState, RenderedSlotLifecycleControls, RpcCall, SdkCall, SidebarActionCall };
437
+ export type { CapturedPluginApp, ComposerLog, ContentScriptTestMountOptions, ContentScriptThreadRowStatusCall, ExperimentalFixedTabOpenCall, MountedPluginContentScripts, NavigateCall, PluginAppSource, PluginRpcTestHandlers, PluginSdkTestFakes, RenderSlotOptions, RenderedSlot, RenderedSlotBehaviorDrivers, RenderedSlotInspectionState, RenderedSlotLifecycleControls, RpcCall, SdkCall, TestThreadActionsResolver };
@@ -734,13 +734,17 @@ interface PluginProviderFallbackModel {
734
734
  /** Picker display name ("Opus 5 (1M)"). */
735
735
  displayName: string;
736
736
  description: string;
737
- /** Reasoning levels this model supports, lowest to highest. Non-empty. */
737
+ /** Reasoning levels this model supports, lowest to highest. Non-empty.
738
+ * `reasoningEffort` is a standard ladder entry or any provider-specific id
739
+ * the bridge accepts back as `reasoningLevel`; `label` names a
740
+ * provider-specific id in the picker. */
738
741
  supportedReasoningEfforts: readonly {
739
- reasoningEffort: PluginProviderReasoningLevel;
742
+ reasoningEffort: PluginProviderReasoningLevel | (string & {});
743
+ label?: string;
740
744
  description: string;
741
745
  }[];
742
746
  /** Must be one of `supportedReasoningEfforts`. */
743
- defaultReasoningEffort: PluginProviderReasoningLevel;
747
+ defaultReasoningEffort: PluginProviderReasoningLevel | (string & {});
744
748
  /** Exactly one entry in the list is the default. */
745
749
  isDefault: boolean;
746
750
  }