@kmmao/happy-wire 0.2.9 → 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,7 +120,7 @@ const sessionTaskProgressEventSchema = z__namespace.object({
120
120
  totalTokens: z__namespace.number(),
121
121
  toolUses: z__namespace.number(),
122
122
  durationMs: z__namespace.number()
123
- }),
123
+ }).optional(),
124
124
  lastToolName: z__namespace.string().optional(),
125
125
  /** AI-generated progress summary (~30s interval, from agentProgressSummaries) */
126
126
  summary: z__namespace.string().optional()
package/dist/index.d.cts CHANGED
@@ -130,11 +130,11 @@ 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
139
  summary: z.ZodOptional<z.ZodString>;
140
140
  }, z.core.$strip>, z.ZodObject<{
@@ -326,11 +326,11 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
326
326
  t: z.ZodLiteral<"task-progress">;
327
327
  taskId: z.ZodString;
328
328
  description: z.ZodString;
329
- usage: z.ZodObject<{
329
+ usage: z.ZodOptional<z.ZodObject<{
330
330
  totalTokens: z.ZodNumber;
331
331
  toolUses: z.ZodNumber;
332
332
  durationMs: z.ZodNumber;
333
- }, z.core.$strip>;
333
+ }, z.core.$strip>>;
334
334
  lastToolName: z.ZodOptional<z.ZodString>;
335
335
  summary: z.ZodOptional<z.ZodString>;
336
336
  }, z.core.$strip>, z.ZodObject<{
@@ -882,11 +882,11 @@ declare const sessionTaskProgressEventSchema: z.ZodObject<{
882
882
  t: z.ZodLiteral<"task-progress">;
883
883
  taskId: z.ZodString;
884
884
  description: z.ZodString;
885
- usage: z.ZodObject<{
885
+ usage: z.ZodOptional<z.ZodObject<{
886
886
  totalTokens: z.ZodNumber;
887
887
  toolUses: z.ZodNumber;
888
888
  durationMs: z.ZodNumber;
889
- }, z.core.$strip>;
889
+ }, z.core.$strip>>;
890
890
  lastToolName: z.ZodOptional<z.ZodString>;
891
891
  summary: z.ZodOptional<z.ZodString>;
892
892
  }, z.core.$strip>;
@@ -999,11 +999,11 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
999
999
  t: z.ZodLiteral<"task-progress">;
1000
1000
  taskId: z.ZodString;
1001
1001
  description: z.ZodString;
1002
- usage: z.ZodObject<{
1002
+ usage: z.ZodOptional<z.ZodObject<{
1003
1003
  totalTokens: z.ZodNumber;
1004
1004
  toolUses: z.ZodNumber;
1005
1005
  durationMs: z.ZodNumber;
1006
- }, z.core.$strip>;
1006
+ }, z.core.$strip>>;
1007
1007
  lastToolName: z.ZodOptional<z.ZodString>;
1008
1008
  summary: z.ZodOptional<z.ZodString>;
1009
1009
  }, z.core.$strip>, z.ZodObject<{
@@ -1122,11 +1122,11 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1122
1122
  t: z.ZodLiteral<"task-progress">;
1123
1123
  taskId: z.ZodString;
1124
1124
  description: z.ZodString;
1125
- usage: z.ZodObject<{
1125
+ usage: z.ZodOptional<z.ZodObject<{
1126
1126
  totalTokens: z.ZodNumber;
1127
1127
  toolUses: z.ZodNumber;
1128
1128
  durationMs: z.ZodNumber;
1129
- }, z.core.$strip>;
1129
+ }, z.core.$strip>>;
1130
1130
  lastToolName: z.ZodOptional<z.ZodString>;
1131
1131
  summary: z.ZodOptional<z.ZodString>;
1132
1132
  }, z.core.$strip>, z.ZodObject<{
package/dist/index.d.mts CHANGED
@@ -130,11 +130,11 @@ 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
139
  summary: z.ZodOptional<z.ZodString>;
140
140
  }, z.core.$strip>, z.ZodObject<{
@@ -326,11 +326,11 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
326
326
  t: z.ZodLiteral<"task-progress">;
327
327
  taskId: z.ZodString;
328
328
  description: z.ZodString;
329
- usage: z.ZodObject<{
329
+ usage: z.ZodOptional<z.ZodObject<{
330
330
  totalTokens: z.ZodNumber;
331
331
  toolUses: z.ZodNumber;
332
332
  durationMs: z.ZodNumber;
333
- }, z.core.$strip>;
333
+ }, z.core.$strip>>;
334
334
  lastToolName: z.ZodOptional<z.ZodString>;
335
335
  summary: z.ZodOptional<z.ZodString>;
336
336
  }, z.core.$strip>, z.ZodObject<{
@@ -882,11 +882,11 @@ declare const sessionTaskProgressEventSchema: z.ZodObject<{
882
882
  t: z.ZodLiteral<"task-progress">;
883
883
  taskId: z.ZodString;
884
884
  description: z.ZodString;
885
- usage: z.ZodObject<{
885
+ usage: z.ZodOptional<z.ZodObject<{
886
886
  totalTokens: z.ZodNumber;
887
887
  toolUses: z.ZodNumber;
888
888
  durationMs: z.ZodNumber;
889
- }, z.core.$strip>;
889
+ }, z.core.$strip>>;
890
890
  lastToolName: z.ZodOptional<z.ZodString>;
891
891
  summary: z.ZodOptional<z.ZodString>;
892
892
  }, z.core.$strip>;
@@ -999,11 +999,11 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
999
999
  t: z.ZodLiteral<"task-progress">;
1000
1000
  taskId: z.ZodString;
1001
1001
  description: z.ZodString;
1002
- usage: z.ZodObject<{
1002
+ usage: z.ZodOptional<z.ZodObject<{
1003
1003
  totalTokens: z.ZodNumber;
1004
1004
  toolUses: z.ZodNumber;
1005
1005
  durationMs: z.ZodNumber;
1006
- }, z.core.$strip>;
1006
+ }, z.core.$strip>>;
1007
1007
  lastToolName: z.ZodOptional<z.ZodString>;
1008
1008
  summary: z.ZodOptional<z.ZodString>;
1009
1009
  }, z.core.$strip>, z.ZodObject<{
@@ -1122,11 +1122,11 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1122
1122
  t: z.ZodLiteral<"task-progress">;
1123
1123
  taskId: z.ZodString;
1124
1124
  description: z.ZodString;
1125
- usage: z.ZodObject<{
1125
+ usage: z.ZodOptional<z.ZodObject<{
1126
1126
  totalTokens: z.ZodNumber;
1127
1127
  toolUses: z.ZodNumber;
1128
1128
  durationMs: z.ZodNumber;
1129
- }, z.core.$strip>;
1129
+ }, z.core.$strip>>;
1130
1130
  lastToolName: z.ZodOptional<z.ZodString>;
1131
1131
  summary: z.ZodOptional<z.ZodString>;
1132
1132
  }, z.core.$strip>, z.ZodObject<{
package/dist/index.mjs CHANGED
@@ -99,7 +99,7 @@ const sessionTaskProgressEventSchema = z.object({
99
99
  totalTokens: z.number(),
100
100
  toolUses: z.number(),
101
101
  durationMs: z.number()
102
- }),
102
+ }).optional(),
103
103
  lastToolName: z.string().optional(),
104
104
  /** AI-generated progress summary (~30s interval, from agentProgressSummaries) */
105
105
  summary: z.string().optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmmao/happy-wire",
3
- "version": "0.2.9",
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",