@get-bb/plugin-sdk 0.5.29 → 0.5.30

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.
@@ -806,15 +806,31 @@ var systemMessageKindValues = [
806
806
  "unlabeled"
807
807
  ];
808
808
  var systemMessageKindSchema = z10.enum(systemMessageKindValues);
809
+ var systemThreadInterruptedReasonSchema = z10.enum([
810
+ "manual-stop",
811
+ "host-daemon-restarted",
812
+ "host-removed",
813
+ "provider-turn-idle"
814
+ ]);
815
+ var childThreadOutcomeSchema = z10.object({
816
+ threadId: z10.string(),
817
+ status: z10.enum(["completed", "failed", "interrupted"]),
818
+ interruption: z10.object({
819
+ reason: systemThreadInterruptedReasonSchema,
820
+ cause: z10.literal("host-connection-lost").optional()
821
+ }).optional()
822
+ });
809
823
  var systemMessageSubjectSchema = z10.discriminatedUnion("kind", [
810
824
  z10.object({
811
825
  kind: z10.literal("thread"),
812
826
  threadId: z10.string(),
813
- threadName: z10.string()
827
+ threadName: z10.string(),
828
+ outcomes: z10.array(childThreadOutcomeSchema).optional()
814
829
  }),
815
830
  z10.object({
816
831
  kind: z10.literal("thread-batch"),
817
- count: z10.number()
832
+ count: z10.number(),
833
+ outcomes: z10.array(childThreadOutcomeSchema).optional()
818
834
  }),
819
835
  z10.object({
820
836
  kind: z10.literal("tool-call"),
@@ -962,15 +978,6 @@ var systemUserQuestionLifecycleEventDataSchema = z11.object({
962
978
  statusReason: z11.string().nullable().default(null),
963
979
  payload: userQuestionPendingInteractionPayloadSchema
964
980
  });
965
- var systemThreadInterruptedReasonValues = [
966
- "manual-stop",
967
- "host-daemon-restarted",
968
- "host-removed",
969
- "provider-turn-idle"
970
- ];
971
- var systemThreadInterruptedReasonSchema = z11.enum(
972
- systemThreadInterruptedReasonValues
973
- );
974
981
  var systemThreadInterruptedEventDataSchema = z11.object({
975
982
  reason: systemThreadInterruptedReasonSchema,
976
983
  cause: z11.literal("host-connection-lost").optional()
@@ -2244,15 +2244,31 @@ var systemMessageKindValues = [
2244
2244
  "unlabeled"
2245
2245
  ];
2246
2246
  var systemMessageKindSchema = z14.enum(systemMessageKindValues);
2247
+ var systemThreadInterruptedReasonSchema = z14.enum([
2248
+ "manual-stop",
2249
+ "host-daemon-restarted",
2250
+ "host-removed",
2251
+ "provider-turn-idle"
2252
+ ]);
2253
+ var childThreadOutcomeSchema = z14.object({
2254
+ threadId: z14.string(),
2255
+ status: z14.enum(["completed", "failed", "interrupted"]),
2256
+ interruption: z14.object({
2257
+ reason: systemThreadInterruptedReasonSchema,
2258
+ cause: z14.literal("host-connection-lost").optional()
2259
+ }).optional()
2260
+ });
2247
2261
  var systemMessageSubjectSchema = z14.discriminatedUnion("kind", [
2248
2262
  z14.object({
2249
2263
  kind: z14.literal("thread"),
2250
2264
  threadId: z14.string(),
2251
- threadName: z14.string()
2265
+ threadName: z14.string(),
2266
+ outcomes: z14.array(childThreadOutcomeSchema).optional()
2252
2267
  }),
2253
2268
  z14.object({
2254
2269
  kind: z14.literal("thread-batch"),
2255
- count: z14.number()
2270
+ count: z14.number(),
2271
+ outcomes: z14.array(childThreadOutcomeSchema).optional()
2256
2272
  }),
2257
2273
  z14.object({
2258
2274
  kind: z14.literal("tool-call"),
@@ -2400,15 +2416,6 @@ var systemUserQuestionLifecycleEventDataSchema = z15.object({
2400
2416
  statusReason: z15.string().nullable().default(null),
2401
2417
  payload: userQuestionPendingInteractionPayloadSchema
2402
2418
  });
2403
- var systemThreadInterruptedReasonValues = [
2404
- "manual-stop",
2405
- "host-daemon-restarted",
2406
- "host-removed",
2407
- "provider-turn-idle"
2408
- ];
2409
- var systemThreadInterruptedReasonSchema = z15.enum(
2410
- systemThreadInterruptedReasonValues
2411
- );
2412
2419
  var systemThreadInterruptedEventDataSchema = z15.object({
2413
2420
  reason: systemThreadInterruptedReasonSchema,
2414
2421
  cause: z15.literal("host-connection-lost").optional()
@@ -4263,6 +4263,7 @@ function makeThreadResponse(overrides = {}) {
4263
4263
  canRestoreEnvironment: false,
4264
4264
  canSpawnChild: true,
4265
4265
  queuedMessageCount: 0,
4266
+ draft: null,
4266
4267
  ...overrides
4267
4268
  };
4268
4269
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.5.29",
3
+ "version": "0.5.30",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"