@kmmao/happy-wire 0.2.8 → 0.2.10

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
@@ -120,8 +120,10 @@ const sessionTaskProgressEventSchema = z__namespace.object({
120
120
  totalTokens: z__namespace.number(),
121
121
  toolUses: z__namespace.number(),
122
122
  durationMs: z__namespace.number()
123
- }),
124
- lastToolName: z__namespace.string().optional()
123
+ }).optional(),
124
+ lastToolName: z__namespace.string().optional(),
125
+ /** AI-generated progress summary (~30s interval, from agentProgressSummaries) */
126
+ summary: z__namespace.string().optional()
125
127
  });
126
128
  const sessionTaskEndEventSchema = z__namespace.object({
127
129
  t: z__namespace.literal("task-end"),
package/dist/index.d.cts CHANGED
@@ -130,12 +130,13 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
130
130
  t: z.ZodLiteral<"task-progress">;
131
131
  taskId: z.ZodString;
132
132
  description: z.ZodString;
133
- usage: z.ZodObject<{
133
+ usage: z.ZodOptional<z.ZodObject<{
134
134
  totalTokens: z.ZodNumber;
135
135
  toolUses: z.ZodNumber;
136
136
  durationMs: z.ZodNumber;
137
- }, z.core.$strip>;
137
+ }, z.core.$strip>>;
138
138
  lastToolName: z.ZodOptional<z.ZodString>;
139
+ summary: z.ZodOptional<z.ZodString>;
139
140
  }, z.core.$strip>, z.ZodObject<{
140
141
  t: z.ZodLiteral<"task-end">;
141
142
  taskId: z.ZodString;
@@ -325,12 +326,13 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
325
326
  t: z.ZodLiteral<"task-progress">;
326
327
  taskId: z.ZodString;
327
328
  description: z.ZodString;
328
- usage: z.ZodObject<{
329
+ usage: z.ZodOptional<z.ZodObject<{
329
330
  totalTokens: z.ZodNumber;
330
331
  toolUses: z.ZodNumber;
331
332
  durationMs: z.ZodNumber;
332
- }, z.core.$strip>;
333
+ }, z.core.$strip>>;
333
334
  lastToolName: z.ZodOptional<z.ZodString>;
335
+ summary: z.ZodOptional<z.ZodString>;
334
336
  }, z.core.$strip>, z.ZodObject<{
335
337
  t: z.ZodLiteral<"task-end">;
336
338
  taskId: z.ZodString;
@@ -880,12 +882,13 @@ declare const sessionTaskProgressEventSchema: z.ZodObject<{
880
882
  t: z.ZodLiteral<"task-progress">;
881
883
  taskId: z.ZodString;
882
884
  description: z.ZodString;
883
- usage: z.ZodObject<{
885
+ usage: z.ZodOptional<z.ZodObject<{
884
886
  totalTokens: z.ZodNumber;
885
887
  toolUses: z.ZodNumber;
886
888
  durationMs: z.ZodNumber;
887
- }, z.core.$strip>;
889
+ }, z.core.$strip>>;
888
890
  lastToolName: z.ZodOptional<z.ZodString>;
891
+ summary: z.ZodOptional<z.ZodString>;
889
892
  }, z.core.$strip>;
890
893
  declare const sessionTaskEndEventSchema: z.ZodObject<{
891
894
  t: z.ZodLiteral<"task-end">;
@@ -996,12 +999,13 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
996
999
  t: z.ZodLiteral<"task-progress">;
997
1000
  taskId: z.ZodString;
998
1001
  description: z.ZodString;
999
- usage: z.ZodObject<{
1002
+ usage: z.ZodOptional<z.ZodObject<{
1000
1003
  totalTokens: z.ZodNumber;
1001
1004
  toolUses: z.ZodNumber;
1002
1005
  durationMs: z.ZodNumber;
1003
- }, z.core.$strip>;
1006
+ }, z.core.$strip>>;
1004
1007
  lastToolName: z.ZodOptional<z.ZodString>;
1008
+ summary: z.ZodOptional<z.ZodString>;
1005
1009
  }, z.core.$strip>, z.ZodObject<{
1006
1010
  t: z.ZodLiteral<"task-end">;
1007
1011
  taskId: z.ZodString;
@@ -1118,12 +1122,13 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1118
1122
  t: z.ZodLiteral<"task-progress">;
1119
1123
  taskId: z.ZodString;
1120
1124
  description: z.ZodString;
1121
- usage: z.ZodObject<{
1125
+ usage: z.ZodOptional<z.ZodObject<{
1122
1126
  totalTokens: z.ZodNumber;
1123
1127
  toolUses: z.ZodNumber;
1124
1128
  durationMs: z.ZodNumber;
1125
- }, z.core.$strip>;
1129
+ }, z.core.$strip>>;
1126
1130
  lastToolName: z.ZodOptional<z.ZodString>;
1131
+ summary: z.ZodOptional<z.ZodString>;
1127
1132
  }, z.core.$strip>, z.ZodObject<{
1128
1133
  t: z.ZodLiteral<"task-end">;
1129
1134
  taskId: z.ZodString;
package/dist/index.d.mts CHANGED
@@ -130,12 +130,13 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
130
130
  t: z.ZodLiteral<"task-progress">;
131
131
  taskId: z.ZodString;
132
132
  description: z.ZodString;
133
- usage: z.ZodObject<{
133
+ usage: z.ZodOptional<z.ZodObject<{
134
134
  totalTokens: z.ZodNumber;
135
135
  toolUses: z.ZodNumber;
136
136
  durationMs: z.ZodNumber;
137
- }, z.core.$strip>;
137
+ }, z.core.$strip>>;
138
138
  lastToolName: z.ZodOptional<z.ZodString>;
139
+ summary: z.ZodOptional<z.ZodString>;
139
140
  }, z.core.$strip>, z.ZodObject<{
140
141
  t: z.ZodLiteral<"task-end">;
141
142
  taskId: z.ZodString;
@@ -325,12 +326,13 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
325
326
  t: z.ZodLiteral<"task-progress">;
326
327
  taskId: z.ZodString;
327
328
  description: z.ZodString;
328
- usage: z.ZodObject<{
329
+ usage: z.ZodOptional<z.ZodObject<{
329
330
  totalTokens: z.ZodNumber;
330
331
  toolUses: z.ZodNumber;
331
332
  durationMs: z.ZodNumber;
332
- }, z.core.$strip>;
333
+ }, z.core.$strip>>;
333
334
  lastToolName: z.ZodOptional<z.ZodString>;
335
+ summary: z.ZodOptional<z.ZodString>;
334
336
  }, z.core.$strip>, z.ZodObject<{
335
337
  t: z.ZodLiteral<"task-end">;
336
338
  taskId: z.ZodString;
@@ -880,12 +882,13 @@ declare const sessionTaskProgressEventSchema: z.ZodObject<{
880
882
  t: z.ZodLiteral<"task-progress">;
881
883
  taskId: z.ZodString;
882
884
  description: z.ZodString;
883
- usage: z.ZodObject<{
885
+ usage: z.ZodOptional<z.ZodObject<{
884
886
  totalTokens: z.ZodNumber;
885
887
  toolUses: z.ZodNumber;
886
888
  durationMs: z.ZodNumber;
887
- }, z.core.$strip>;
889
+ }, z.core.$strip>>;
888
890
  lastToolName: z.ZodOptional<z.ZodString>;
891
+ summary: z.ZodOptional<z.ZodString>;
889
892
  }, z.core.$strip>;
890
893
  declare const sessionTaskEndEventSchema: z.ZodObject<{
891
894
  t: z.ZodLiteral<"task-end">;
@@ -996,12 +999,13 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
996
999
  t: z.ZodLiteral<"task-progress">;
997
1000
  taskId: z.ZodString;
998
1001
  description: z.ZodString;
999
- usage: z.ZodObject<{
1002
+ usage: z.ZodOptional<z.ZodObject<{
1000
1003
  totalTokens: z.ZodNumber;
1001
1004
  toolUses: z.ZodNumber;
1002
1005
  durationMs: z.ZodNumber;
1003
- }, z.core.$strip>;
1006
+ }, z.core.$strip>>;
1004
1007
  lastToolName: z.ZodOptional<z.ZodString>;
1008
+ summary: z.ZodOptional<z.ZodString>;
1005
1009
  }, z.core.$strip>, z.ZodObject<{
1006
1010
  t: z.ZodLiteral<"task-end">;
1007
1011
  taskId: z.ZodString;
@@ -1118,12 +1122,13 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1118
1122
  t: z.ZodLiteral<"task-progress">;
1119
1123
  taskId: z.ZodString;
1120
1124
  description: z.ZodString;
1121
- usage: z.ZodObject<{
1125
+ usage: z.ZodOptional<z.ZodObject<{
1122
1126
  totalTokens: z.ZodNumber;
1123
1127
  toolUses: z.ZodNumber;
1124
1128
  durationMs: z.ZodNumber;
1125
- }, z.core.$strip>;
1129
+ }, z.core.$strip>>;
1126
1130
  lastToolName: z.ZodOptional<z.ZodString>;
1131
+ summary: z.ZodOptional<z.ZodString>;
1127
1132
  }, z.core.$strip>, z.ZodObject<{
1128
1133
  t: z.ZodLiteral<"task-end">;
1129
1134
  taskId: z.ZodString;
package/dist/index.mjs CHANGED
@@ -99,8 +99,10 @@ const sessionTaskProgressEventSchema = z.object({
99
99
  totalTokens: z.number(),
100
100
  toolUses: z.number(),
101
101
  durationMs: z.number()
102
- }),
103
- lastToolName: z.string().optional()
102
+ }).optional(),
103
+ lastToolName: z.string().optional(),
104
+ /** AI-generated progress summary (~30s interval, from agentProgressSummaries) */
105
+ summary: z.string().optional()
104
106
  });
105
107
  const sessionTaskEndEventSchema = z.object({
106
108
  t: z.literal("task-end"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmmao/happy-wire",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "Shared message wire types and Zod schemas for Happy clients and services",
5
5
  "author": "kmmao",
6
6
  "license": "MIT",