@kmmao/happy-wire 0.2.9 → 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 +6 -2
- package/dist/index.d.cts +20 -10
- package/dist/index.d.mts +20 -10
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
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"),
|
|
@@ -120,7 +124,7 @@ const sessionTaskProgressEventSchema = z__namespace.object({
|
|
|
120
124
|
totalTokens: z__namespace.number(),
|
|
121
125
|
toolUses: z__namespace.number(),
|
|
122
126
|
durationMs: z__namespace.number()
|
|
123
|
-
}),
|
|
127
|
+
}).optional(),
|
|
124
128
|
lastToolName: z__namespace.string().optional(),
|
|
125
129
|
/** AI-generated progress summary (~30s interval, from agentProgressSummaries) */
|
|
126
130
|
summary: z__namespace.string().optional()
|
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;
|
|
@@ -130,11 +132,11 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
130
132
|
t: z.ZodLiteral<"task-progress">;
|
|
131
133
|
taskId: z.ZodString;
|
|
132
134
|
description: z.ZodString;
|
|
133
|
-
usage: z.ZodObject<{
|
|
135
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
134
136
|
totalTokens: z.ZodNumber;
|
|
135
137
|
toolUses: z.ZodNumber;
|
|
136
138
|
durationMs: z.ZodNumber;
|
|
137
|
-
}, z.core.$strip
|
|
139
|
+
}, z.core.$strip>>;
|
|
138
140
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
139
141
|
summary: z.ZodOptional<z.ZodString>;
|
|
140
142
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -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;
|
|
@@ -326,11 +330,11 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
326
330
|
t: z.ZodLiteral<"task-progress">;
|
|
327
331
|
taskId: z.ZodString;
|
|
328
332
|
description: z.ZodString;
|
|
329
|
-
usage: z.ZodObject<{
|
|
333
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
330
334
|
totalTokens: z.ZodNumber;
|
|
331
335
|
toolUses: z.ZodNumber;
|
|
332
336
|
durationMs: z.ZodNumber;
|
|
333
|
-
}, z.core.$strip
|
|
337
|
+
}, z.core.$strip>>;
|
|
334
338
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
335
339
|
summary: z.ZodOptional<z.ZodString>;
|
|
336
340
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -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">;
|
|
@@ -882,11 +888,11 @@ declare const sessionTaskProgressEventSchema: z.ZodObject<{
|
|
|
882
888
|
t: z.ZodLiteral<"task-progress">;
|
|
883
889
|
taskId: z.ZodString;
|
|
884
890
|
description: z.ZodString;
|
|
885
|
-
usage: z.ZodObject<{
|
|
891
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
886
892
|
totalTokens: z.ZodNumber;
|
|
887
893
|
toolUses: z.ZodNumber;
|
|
888
894
|
durationMs: z.ZodNumber;
|
|
889
|
-
}, z.core.$strip
|
|
895
|
+
}, z.core.$strip>>;
|
|
890
896
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
891
897
|
summary: z.ZodOptional<z.ZodString>;
|
|
892
898
|
}, z.core.$strip>;
|
|
@@ -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;
|
|
@@ -999,11 +1007,11 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
999
1007
|
t: z.ZodLiteral<"task-progress">;
|
|
1000
1008
|
taskId: z.ZodString;
|
|
1001
1009
|
description: z.ZodString;
|
|
1002
|
-
usage: z.ZodObject<{
|
|
1010
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1003
1011
|
totalTokens: z.ZodNumber;
|
|
1004
1012
|
toolUses: z.ZodNumber;
|
|
1005
1013
|
durationMs: z.ZodNumber;
|
|
1006
|
-
}, z.core.$strip
|
|
1014
|
+
}, z.core.$strip>>;
|
|
1007
1015
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
1008
1016
|
summary: z.ZodOptional<z.ZodString>;
|
|
1009
1017
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -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;
|
|
@@ -1122,11 +1132,11 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
1122
1132
|
t: z.ZodLiteral<"task-progress">;
|
|
1123
1133
|
taskId: z.ZodString;
|
|
1124
1134
|
description: z.ZodString;
|
|
1125
|
-
usage: z.ZodObject<{
|
|
1135
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1126
1136
|
totalTokens: z.ZodNumber;
|
|
1127
1137
|
toolUses: z.ZodNumber;
|
|
1128
1138
|
durationMs: z.ZodNumber;
|
|
1129
|
-
}, z.core.$strip
|
|
1139
|
+
}, z.core.$strip>>;
|
|
1130
1140
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
1131
1141
|
summary: z.ZodOptional<z.ZodString>;
|
|
1132
1142
|
}, z.core.$strip>, z.ZodObject<{
|
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;
|
|
@@ -130,11 +132,11 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
130
132
|
t: z.ZodLiteral<"task-progress">;
|
|
131
133
|
taskId: z.ZodString;
|
|
132
134
|
description: z.ZodString;
|
|
133
|
-
usage: z.ZodObject<{
|
|
135
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
134
136
|
totalTokens: z.ZodNumber;
|
|
135
137
|
toolUses: z.ZodNumber;
|
|
136
138
|
durationMs: z.ZodNumber;
|
|
137
|
-
}, z.core.$strip
|
|
139
|
+
}, z.core.$strip>>;
|
|
138
140
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
139
141
|
summary: z.ZodOptional<z.ZodString>;
|
|
140
142
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -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;
|
|
@@ -326,11 +330,11 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
326
330
|
t: z.ZodLiteral<"task-progress">;
|
|
327
331
|
taskId: z.ZodString;
|
|
328
332
|
description: z.ZodString;
|
|
329
|
-
usage: z.ZodObject<{
|
|
333
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
330
334
|
totalTokens: z.ZodNumber;
|
|
331
335
|
toolUses: z.ZodNumber;
|
|
332
336
|
durationMs: z.ZodNumber;
|
|
333
|
-
}, z.core.$strip
|
|
337
|
+
}, z.core.$strip>>;
|
|
334
338
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
335
339
|
summary: z.ZodOptional<z.ZodString>;
|
|
336
340
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -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">;
|
|
@@ -882,11 +888,11 @@ declare const sessionTaskProgressEventSchema: z.ZodObject<{
|
|
|
882
888
|
t: z.ZodLiteral<"task-progress">;
|
|
883
889
|
taskId: z.ZodString;
|
|
884
890
|
description: z.ZodString;
|
|
885
|
-
usage: z.ZodObject<{
|
|
891
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
886
892
|
totalTokens: z.ZodNumber;
|
|
887
893
|
toolUses: z.ZodNumber;
|
|
888
894
|
durationMs: z.ZodNumber;
|
|
889
|
-
}, z.core.$strip
|
|
895
|
+
}, z.core.$strip>>;
|
|
890
896
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
891
897
|
summary: z.ZodOptional<z.ZodString>;
|
|
892
898
|
}, z.core.$strip>;
|
|
@@ -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;
|
|
@@ -999,11 +1007,11 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
999
1007
|
t: z.ZodLiteral<"task-progress">;
|
|
1000
1008
|
taskId: z.ZodString;
|
|
1001
1009
|
description: z.ZodString;
|
|
1002
|
-
usage: z.ZodObject<{
|
|
1010
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1003
1011
|
totalTokens: z.ZodNumber;
|
|
1004
1012
|
toolUses: z.ZodNumber;
|
|
1005
1013
|
durationMs: z.ZodNumber;
|
|
1006
|
-
}, z.core.$strip
|
|
1014
|
+
}, z.core.$strip>>;
|
|
1007
1015
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
1008
1016
|
summary: z.ZodOptional<z.ZodString>;
|
|
1009
1017
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -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;
|
|
@@ -1122,11 +1132,11 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
1122
1132
|
t: z.ZodLiteral<"task-progress">;
|
|
1123
1133
|
taskId: z.ZodString;
|
|
1124
1134
|
description: z.ZodString;
|
|
1125
|
-
usage: z.ZodObject<{
|
|
1135
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1126
1136
|
totalTokens: z.ZodNumber;
|
|
1127
1137
|
toolUses: z.ZodNumber;
|
|
1128
1138
|
durationMs: z.ZodNumber;
|
|
1129
|
-
}, z.core.$strip
|
|
1139
|
+
}, z.core.$strip>>;
|
|
1130
1140
|
lastToolName: z.ZodOptional<z.ZodString>;
|
|
1131
1141
|
summary: z.ZodOptional<z.ZodString>;
|
|
1132
1142
|
}, z.core.$strip>, z.ZodObject<{
|
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"),
|
|
@@ -99,7 +103,7 @@ const sessionTaskProgressEventSchema = z.object({
|
|
|
99
103
|
totalTokens: z.number(),
|
|
100
104
|
toolUses: z.number(),
|
|
101
105
|
durationMs: z.number()
|
|
102
|
-
}),
|
|
106
|
+
}).optional(),
|
|
103
107
|
lastToolName: z.string().optional(),
|
|
104
108
|
/** AI-generated progress summary (~30s interval, from agentProgressSummaries) */
|
|
105
109
|
summary: z.string().optional()
|