@codelia/shared-types 0.1.91 → 0.1.93

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
@@ -428,7 +428,9 @@ var StepCompleteEventSchema = import_zod8.z.object({
428
428
  type: import_zod8.z.literal("step_complete"),
429
429
  step_id: import_zod8.z.string(),
430
430
  status: import_zod8.z.enum(["completed", "error"]),
431
- duration_ms: import_zod8.z.number()
431
+ duration_ms: import_zod8.z.number(),
432
+ exec_duration_ms: import_zod8.z.number().optional(),
433
+ approval_wait_ms: import_zod8.z.number().optional()
432
434
  }).meta({ id: "StepCompleteEvent" });
433
435
  var CompactionStartEventSchema = import_zod8.z.object({
434
436
  type: import_zod8.z.literal("compaction_start"),
@@ -437,7 +439,12 @@ var CompactionStartEventSchema = import_zod8.z.object({
437
439
  var CompactionCompleteEventSchema = import_zod8.z.object({
438
440
  type: import_zod8.z.literal("compaction_complete"),
439
441
  timestamp: wireInt(),
440
- compacted: import_zod8.z.boolean()
442
+ compacted: import_zod8.z.boolean(),
443
+ duration_ms: import_zod8.z.number().optional(),
444
+ messages_before: wireInt().optional(),
445
+ messages_after: wireInt().optional(),
446
+ estimated_tokens_before: wireInt().optional(),
447
+ estimated_tokens_after: wireInt().optional()
441
448
  }).meta({ id: "CompactionCompleteEvent" });
442
449
  var HiddenUserMessageEventSchema = import_zod8.z.object({
443
450
  type: import_zod8.z.literal("hidden_user_message"),
package/dist/index.d.cts CHANGED
@@ -463,6 +463,8 @@ declare const StepCompleteEventSchema: z.ZodObject<{
463
463
  completed: "completed";
464
464
  }>;
465
465
  duration_ms: z.ZodNumber;
466
+ exec_duration_ms: z.ZodOptional<z.ZodNumber>;
467
+ approval_wait_ms: z.ZodOptional<z.ZodNumber>;
466
468
  }, z.core.$strip>;
467
469
  type StepCompleteEvent = z.infer<typeof StepCompleteEventSchema>;
468
470
  declare const CompactionStartEventSchema: z.ZodObject<{
@@ -474,6 +476,11 @@ declare const CompactionCompleteEventSchema: z.ZodObject<{
474
476
  type: z.ZodLiteral<"compaction_complete">;
475
477
  timestamp: z.ZodInt;
476
478
  compacted: z.ZodBoolean;
479
+ duration_ms: z.ZodOptional<z.ZodNumber>;
480
+ messages_before: z.ZodOptional<z.ZodInt>;
481
+ messages_after: z.ZodOptional<z.ZodInt>;
482
+ estimated_tokens_before: z.ZodOptional<z.ZodInt>;
483
+ estimated_tokens_after: z.ZodOptional<z.ZodInt>;
477
484
  }, z.core.$strip>;
478
485
  type CompactionCompleteEvent = z.infer<typeof CompactionCompleteEventSchema>;
479
486
  declare const HiddenUserMessageEventSchema: z.ZodObject<{
@@ -695,6 +702,8 @@ declare const AgentEventSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
695
702
  completed: "completed";
696
703
  }>;
697
704
  duration_ms: z.ZodNumber;
705
+ exec_duration_ms: z.ZodOptional<z.ZodNumber>;
706
+ approval_wait_ms: z.ZodOptional<z.ZodNumber>;
698
707
  }, z.core.$strip>, z.ZodObject<{
699
708
  type: z.ZodLiteral<"compaction_start">;
700
709
  timestamp: z.ZodInt;
@@ -702,6 +711,11 @@ declare const AgentEventSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
702
711
  type: z.ZodLiteral<"compaction_complete">;
703
712
  timestamp: z.ZodInt;
704
713
  compacted: z.ZodBoolean;
714
+ duration_ms: z.ZodOptional<z.ZodNumber>;
715
+ messages_before: z.ZodOptional<z.ZodInt>;
716
+ messages_after: z.ZodOptional<z.ZodInt>;
717
+ estimated_tokens_before: z.ZodOptional<z.ZodInt>;
718
+ estimated_tokens_after: z.ZodOptional<z.ZodInt>;
705
719
  }, z.core.$strip>, z.ZodObject<{
706
720
  type: z.ZodLiteral<"hidden_user_message">;
707
721
  content: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -463,6 +463,8 @@ declare const StepCompleteEventSchema: z.ZodObject<{
463
463
  completed: "completed";
464
464
  }>;
465
465
  duration_ms: z.ZodNumber;
466
+ exec_duration_ms: z.ZodOptional<z.ZodNumber>;
467
+ approval_wait_ms: z.ZodOptional<z.ZodNumber>;
466
468
  }, z.core.$strip>;
467
469
  type StepCompleteEvent = z.infer<typeof StepCompleteEventSchema>;
468
470
  declare const CompactionStartEventSchema: z.ZodObject<{
@@ -474,6 +476,11 @@ declare const CompactionCompleteEventSchema: z.ZodObject<{
474
476
  type: z.ZodLiteral<"compaction_complete">;
475
477
  timestamp: z.ZodInt;
476
478
  compacted: z.ZodBoolean;
479
+ duration_ms: z.ZodOptional<z.ZodNumber>;
480
+ messages_before: z.ZodOptional<z.ZodInt>;
481
+ messages_after: z.ZodOptional<z.ZodInt>;
482
+ estimated_tokens_before: z.ZodOptional<z.ZodInt>;
483
+ estimated_tokens_after: z.ZodOptional<z.ZodInt>;
477
484
  }, z.core.$strip>;
478
485
  type CompactionCompleteEvent = z.infer<typeof CompactionCompleteEventSchema>;
479
486
  declare const HiddenUserMessageEventSchema: z.ZodObject<{
@@ -695,6 +702,8 @@ declare const AgentEventSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
695
702
  completed: "completed";
696
703
  }>;
697
704
  duration_ms: z.ZodNumber;
705
+ exec_duration_ms: z.ZodOptional<z.ZodNumber>;
706
+ approval_wait_ms: z.ZodOptional<z.ZodNumber>;
698
707
  }, z.core.$strip>, z.ZodObject<{
699
708
  type: z.ZodLiteral<"compaction_start">;
700
709
  timestamp: z.ZodInt;
@@ -702,6 +711,11 @@ declare const AgentEventSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
702
711
  type: z.ZodLiteral<"compaction_complete">;
703
712
  timestamp: z.ZodInt;
704
713
  compacted: z.ZodBoolean;
714
+ duration_ms: z.ZodOptional<z.ZodNumber>;
715
+ messages_before: z.ZodOptional<z.ZodInt>;
716
+ messages_after: z.ZodOptional<z.ZodInt>;
717
+ estimated_tokens_before: z.ZodOptional<z.ZodInt>;
718
+ estimated_tokens_after: z.ZodOptional<z.ZodInt>;
705
719
  }, z.core.$strip>, z.ZodObject<{
706
720
  type: z.ZodLiteral<"hidden_user_message">;
707
721
  content: z.ZodString;
package/dist/index.js CHANGED
@@ -318,7 +318,9 @@ var StepCompleteEventSchema = z8.object({
318
318
  type: z8.literal("step_complete"),
319
319
  step_id: z8.string(),
320
320
  status: z8.enum(["completed", "error"]),
321
- duration_ms: z8.number()
321
+ duration_ms: z8.number(),
322
+ exec_duration_ms: z8.number().optional(),
323
+ approval_wait_ms: z8.number().optional()
322
324
  }).meta({ id: "StepCompleteEvent" });
323
325
  var CompactionStartEventSchema = z8.object({
324
326
  type: z8.literal("compaction_start"),
@@ -327,7 +329,12 @@ var CompactionStartEventSchema = z8.object({
327
329
  var CompactionCompleteEventSchema = z8.object({
328
330
  type: z8.literal("compaction_complete"),
329
331
  timestamp: wireInt(),
330
- compacted: z8.boolean()
332
+ compacted: z8.boolean(),
333
+ duration_ms: z8.number().optional(),
334
+ messages_before: wireInt().optional(),
335
+ messages_after: wireInt().optional(),
336
+ estimated_tokens_before: wireInt().optional(),
337
+ estimated_tokens_after: wireInt().optional()
331
338
  }).meta({ id: "CompactionCompleteEvent" });
332
339
  var HiddenUserMessageEventSchema = z8.object({
333
340
  type: z8.literal("hidden_user_message"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/shared-types",
3
- "version": "0.1.91",
3
+ "version": "0.1.93",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [