@kmmao/happy-wire 0.2.10 → 0.2.11

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.
package/dist/index.cjs CHANGED
@@ -42,7 +42,11 @@ const sessionToolCallStartEventSchema = z__namespace.object({
42
42
  });
43
43
  const sessionToolCallEndEventSchema = z__namespace.object({
44
44
  t: z__namespace.literal("tool-call-end"),
45
- call: z__namespace.string()
45
+ call: z__namespace.string(),
46
+ /** Background task ID when Bash command runs with run_in_background */
47
+ backgroundTaskId: z__namespace.string().optional(),
48
+ /** Path to the task output file on the CLI machine */
49
+ outputFile: z__namespace.string().optional()
46
50
  });
47
51
  const sessionFileEventSchema = z__namespace.object({
48
52
  t: z__namespace.literal("file"),
package/dist/index.d.cts CHANGED
@@ -67,6 +67,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
67
67
  }, z.core.$strip>, z.ZodObject<{
68
68
  t: z.ZodLiteral<"tool-call-end">;
69
69
  call: z.ZodString;
70
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
71
+ outputFile: z.ZodOptional<z.ZodString>;
70
72
  }, z.core.$strip>, z.ZodObject<{
71
73
  t: z.ZodLiteral<"file">;
72
74
  ref: z.ZodString;
@@ -263,6 +265,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
263
265
  }, z.core.$strip>, z.ZodObject<{
264
266
  t: z.ZodLiteral<"tool-call-end">;
265
267
  call: z.ZodString;
268
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
269
+ outputFile: z.ZodOptional<z.ZodString>;
266
270
  }, z.core.$strip>, z.ZodObject<{
267
271
  t: z.ZodLiteral<"file">;
268
272
  ref: z.ZodString;
@@ -795,6 +799,8 @@ declare const sessionToolCallStartEventSchema: z.ZodObject<{
795
799
  declare const sessionToolCallEndEventSchema: z.ZodObject<{
796
800
  t: z.ZodLiteral<"tool-call-end">;
797
801
  call: z.ZodString;
802
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
803
+ outputFile: z.ZodOptional<z.ZodString>;
798
804
  }, z.core.$strip>;
799
805
  declare const sessionFileEventSchema: z.ZodObject<{
800
806
  t: z.ZodLiteral<"file">;
@@ -936,6 +942,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
936
942
  }, z.core.$strip>, z.ZodObject<{
937
943
  t: z.ZodLiteral<"tool-call-end">;
938
944
  call: z.ZodString;
945
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
946
+ outputFile: z.ZodOptional<z.ZodString>;
939
947
  }, z.core.$strip>, z.ZodObject<{
940
948
  t: z.ZodLiteral<"file">;
941
949
  ref: z.ZodString;
@@ -1059,6 +1067,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1059
1067
  }, z.core.$strip>, z.ZodObject<{
1060
1068
  t: z.ZodLiteral<"tool-call-end">;
1061
1069
  call: z.ZodString;
1070
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
1071
+ outputFile: z.ZodOptional<z.ZodString>;
1062
1072
  }, z.core.$strip>, z.ZodObject<{
1063
1073
  t: z.ZodLiteral<"file">;
1064
1074
  ref: z.ZodString;
package/dist/index.d.mts CHANGED
@@ -67,6 +67,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
67
67
  }, z.core.$strip>, z.ZodObject<{
68
68
  t: z.ZodLiteral<"tool-call-end">;
69
69
  call: z.ZodString;
70
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
71
+ outputFile: z.ZodOptional<z.ZodString>;
70
72
  }, z.core.$strip>, z.ZodObject<{
71
73
  t: z.ZodLiteral<"file">;
72
74
  ref: z.ZodString;
@@ -263,6 +265,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
263
265
  }, z.core.$strip>, z.ZodObject<{
264
266
  t: z.ZodLiteral<"tool-call-end">;
265
267
  call: z.ZodString;
268
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
269
+ outputFile: z.ZodOptional<z.ZodString>;
266
270
  }, z.core.$strip>, z.ZodObject<{
267
271
  t: z.ZodLiteral<"file">;
268
272
  ref: z.ZodString;
@@ -795,6 +799,8 @@ declare const sessionToolCallStartEventSchema: z.ZodObject<{
795
799
  declare const sessionToolCallEndEventSchema: z.ZodObject<{
796
800
  t: z.ZodLiteral<"tool-call-end">;
797
801
  call: z.ZodString;
802
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
803
+ outputFile: z.ZodOptional<z.ZodString>;
798
804
  }, z.core.$strip>;
799
805
  declare const sessionFileEventSchema: z.ZodObject<{
800
806
  t: z.ZodLiteral<"file">;
@@ -936,6 +942,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
936
942
  }, z.core.$strip>, z.ZodObject<{
937
943
  t: z.ZodLiteral<"tool-call-end">;
938
944
  call: z.ZodString;
945
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
946
+ outputFile: z.ZodOptional<z.ZodString>;
939
947
  }, z.core.$strip>, z.ZodObject<{
940
948
  t: z.ZodLiteral<"file">;
941
949
  ref: z.ZodString;
@@ -1059,6 +1067,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1059
1067
  }, z.core.$strip>, z.ZodObject<{
1060
1068
  t: z.ZodLiteral<"tool-call-end">;
1061
1069
  call: z.ZodString;
1070
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
1071
+ outputFile: z.ZodOptional<z.ZodString>;
1062
1072
  }, z.core.$strip>, z.ZodObject<{
1063
1073
  t: z.ZodLiteral<"file">;
1064
1074
  ref: z.ZodString;
package/dist/index.mjs CHANGED
@@ -21,7 +21,11 @@ const sessionToolCallStartEventSchema = z.object({
21
21
  });
22
22
  const sessionToolCallEndEventSchema = z.object({
23
23
  t: z.literal("tool-call-end"),
24
- call: z.string()
24
+ call: z.string(),
25
+ /** Background task ID when Bash command runs with run_in_background */
26
+ backgroundTaskId: z.string().optional(),
27
+ /** Path to the task output file on the CLI machine */
28
+ outputFile: z.string().optional()
25
29
  });
26
30
  const sessionFileEventSchema = z.object({
27
31
  t: z.literal("file"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmmao/happy-wire",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Shared message wire types and Zod schemas for Happy clients and services",
5
5
  "author": "kmmao",
6
6
  "license": "MIT",