@kmmao/happy-wire 0.11.9 → 0.11.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
@@ -1523,7 +1523,14 @@ const sessionProgressListSchema = z__namespace.object({
1523
1523
  * resolve these against the session message stream to render per-list
1524
1524
  * file change summaries without duplicating diff content into metadata.
1525
1525
  */
1526
- toolCallIds: z__namespace.array(z__namespace.string()).optional()
1526
+ toolCallIds: z__namespace.array(z__namespace.string()).optional(),
1527
+ /**
1528
+ * Timestamp at which an auto-summary was triggered for this list's
1529
+ * completion (all todos completed → all completed transition). Dedup flag
1530
+ * so the CLI hook only fires ONE synthetic summary-trigger message per
1531
+ * list lifecycle, even if subsequent TodoWrite calls keep it all done.
1532
+ */
1533
+ summaryGeneratedAt: z__namespace.number().optional()
1527
1534
  });
1528
1535
  const sessionProgressStateSchema = z__namespace.object({
1529
1536
  /** Ordered by startedAt asc; last item is typically the active one. */
package/dist/index.d.cts CHANGED
@@ -1534,8 +1534,8 @@ declare const AutomationPrioritySchema: z.ZodEnum<{
1534
1534
  }>;
1535
1535
  type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
1536
1536
  declare const AutomationJobKindSchema: z.ZodEnum<{
1537
- webhook: "webhook";
1538
1537
  supervisor: "supervisor";
1538
+ webhook: "webhook";
1539
1539
  agent_loop: "agent_loop";
1540
1540
  task: "task";
1541
1541
  }>;
@@ -1552,8 +1552,8 @@ type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1552
1552
  declare const AutomationJobSummarySchema: z.ZodObject<{
1553
1553
  id: z.ZodString;
1554
1554
  kind: z.ZodEnum<{
1555
- webhook: "webhook";
1556
1555
  supervisor: "supervisor";
1556
+ webhook: "webhook";
1557
1557
  agent_loop: "agent_loop";
1558
1558
  task: "task";
1559
1559
  }>;
@@ -1715,8 +1715,8 @@ declare const AutomationStateSchema: z.ZodObject<{
1715
1715
  recentJobs: z.ZodArray<z.ZodObject<{
1716
1716
  id: z.ZodString;
1717
1717
  kind: z.ZodEnum<{
1718
- webhook: "webhook";
1719
1718
  supervisor: "supervisor";
1719
+ webhook: "webhook";
1720
1720
  agent_loop: "agent_loop";
1721
1721
  task: "task";
1722
1722
  }>;
@@ -1942,8 +1942,8 @@ declare const DaemonStateSchema: z.ZodObject<{
1942
1942
  recentJobs: z.ZodArray<z.ZodObject<{
1943
1943
  id: z.ZodString;
1944
1944
  kind: z.ZodEnum<{
1945
- webhook: "webhook";
1946
1945
  supervisor: "supervisor";
1946
+ webhook: "webhook";
1947
1947
  agent_loop: "agent_loop";
1948
1948
  task: "task";
1949
1949
  }>;
@@ -2102,9 +2102,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2102
2102
  }>;
2103
2103
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2104
2104
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2105
- session: "session";
2106
2105
  user: "user";
2107
2106
  supervisor: "supervisor";
2107
+ session: "session";
2108
2108
  }>;
2109
2109
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2110
2110
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2135,9 +2135,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2135
2135
  warning: "warning";
2136
2136
  }>;
2137
2137
  contributorType: z.ZodEnum<{
2138
- session: "session";
2139
2138
  user: "user";
2140
2139
  supervisor: "supervisor";
2140
+ session: "session";
2141
2141
  }>;
2142
2142
  action: z.ZodEnum<{
2143
2143
  create: "create";
@@ -2461,9 +2461,9 @@ declare const TaskStatusSchema: z.ZodEnum<{
2461
2461
  }>;
2462
2462
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2463
2463
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
2464
+ webhook: "webhook";
2464
2465
  manual: "manual";
2465
2466
  cron: "cron";
2466
- webhook: "webhook";
2467
2467
  }>;
2468
2468
  type TaskTriggerType = z.infer<typeof TaskTriggerTypeSchema>;
2469
2469
  declare const TaskSummarySchema: z.ZodObject<{
@@ -2484,9 +2484,9 @@ declare const TaskSummarySchema: z.ZodObject<{
2484
2484
  dispatching: "dispatching";
2485
2485
  }>;
2486
2486
  triggerType: z.ZodEnum<{
2487
+ webhook: "webhook";
2487
2488
  manual: "manual";
2488
2489
  cron: "cron";
2489
- webhook: "webhook";
2490
2490
  }>;
2491
2491
  triggerRef: z.ZodOptional<z.ZodString>;
2492
2492
  attempt: z.ZodNumber;
@@ -2614,10 +2614,10 @@ declare const SkillContentSchema: z.ZodObject<{
2614
2614
  type SkillContent = z.infer<typeof SkillContentSchema>;
2615
2615
 
2616
2616
  declare const InboxCategorySchema: z.ZodEnum<{
2617
- session: "session";
2618
2617
  supervisor: "supervisor";
2619
2618
  task: "task";
2620
2619
  trigger: "trigger";
2620
+ session: "session";
2621
2621
  knowledge: "knowledge";
2622
2622
  system: "system";
2623
2623
  }>;
@@ -2631,10 +2631,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2631
2631
  declare const InboxItemSummarySchema: z.ZodObject<{
2632
2632
  id: z.ZodString;
2633
2633
  category: z.ZodEnum<{
2634
- session: "session";
2635
2634
  supervisor: "supervisor";
2636
2635
  task: "task";
2637
2636
  trigger: "trigger";
2637
+ session: "session";
2638
2638
  knowledge: "knowledge";
2639
2639
  system: "system";
2640
2640
  }>;
@@ -2659,10 +2659,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2659
2659
  item: z.ZodObject<{
2660
2660
  id: z.ZodString;
2661
2661
  category: z.ZodEnum<{
2662
- session: "session";
2663
2662
  supervisor: "supervisor";
2664
2663
  task: "task";
2665
2664
  trigger: "trigger";
2665
+ session: "session";
2666
2666
  knowledge: "knowledge";
2667
2667
  system: "system";
2668
2668
  }>;
@@ -2850,8 +2850,8 @@ declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "
2850
2850
  declare const SuggestionEvidenceSchema: z$1.ZodObject<{
2851
2851
  kind: z$1.ZodEnum<{
2852
2852
  message: "message";
2853
- decision: "decision";
2854
2853
  task: "task";
2854
+ decision: "decision";
2855
2855
  goal: "goal";
2856
2856
  narrative: "narrative";
2857
2857
  }>;
@@ -3489,6 +3489,7 @@ declare const sessionProgressListSchema: z.ZodObject<{
3489
3489
  updatedAt: z.ZodNumber;
3490
3490
  archivedAt: z.ZodOptional<z.ZodNumber>;
3491
3491
  toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3492
+ summaryGeneratedAt: z.ZodOptional<z.ZodNumber>;
3492
3493
  }, z.core.$strip>;
3493
3494
  type SessionProgressList = z.infer<typeof sessionProgressListSchema>;
3494
3495
  /**
@@ -3520,6 +3521,7 @@ declare const sessionProgressStateSchema: z.ZodObject<{
3520
3521
  updatedAt: z.ZodNumber;
3521
3522
  archivedAt: z.ZodOptional<z.ZodNumber>;
3522
3523
  toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3524
+ summaryGeneratedAt: z.ZodOptional<z.ZodNumber>;
3523
3525
  }, z.core.$strip>>>;
3524
3526
  currentListId: z.ZodOptional<z.ZodString>;
3525
3527
  todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
package/dist/index.d.mts CHANGED
@@ -1534,8 +1534,8 @@ declare const AutomationPrioritySchema: z.ZodEnum<{
1534
1534
  }>;
1535
1535
  type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
1536
1536
  declare const AutomationJobKindSchema: z.ZodEnum<{
1537
- webhook: "webhook";
1538
1537
  supervisor: "supervisor";
1538
+ webhook: "webhook";
1539
1539
  agent_loop: "agent_loop";
1540
1540
  task: "task";
1541
1541
  }>;
@@ -1552,8 +1552,8 @@ type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1552
1552
  declare const AutomationJobSummarySchema: z.ZodObject<{
1553
1553
  id: z.ZodString;
1554
1554
  kind: z.ZodEnum<{
1555
- webhook: "webhook";
1556
1555
  supervisor: "supervisor";
1556
+ webhook: "webhook";
1557
1557
  agent_loop: "agent_loop";
1558
1558
  task: "task";
1559
1559
  }>;
@@ -1715,8 +1715,8 @@ declare const AutomationStateSchema: z.ZodObject<{
1715
1715
  recentJobs: z.ZodArray<z.ZodObject<{
1716
1716
  id: z.ZodString;
1717
1717
  kind: z.ZodEnum<{
1718
- webhook: "webhook";
1719
1718
  supervisor: "supervisor";
1719
+ webhook: "webhook";
1720
1720
  agent_loop: "agent_loop";
1721
1721
  task: "task";
1722
1722
  }>;
@@ -1942,8 +1942,8 @@ declare const DaemonStateSchema: z.ZodObject<{
1942
1942
  recentJobs: z.ZodArray<z.ZodObject<{
1943
1943
  id: z.ZodString;
1944
1944
  kind: z.ZodEnum<{
1945
- webhook: "webhook";
1946
1945
  supervisor: "supervisor";
1946
+ webhook: "webhook";
1947
1947
  agent_loop: "agent_loop";
1948
1948
  task: "task";
1949
1949
  }>;
@@ -2102,9 +2102,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2102
2102
  }>;
2103
2103
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2104
2104
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2105
- session: "session";
2106
2105
  user: "user";
2107
2106
  supervisor: "supervisor";
2107
+ session: "session";
2108
2108
  }>;
2109
2109
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2110
2110
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2135,9 +2135,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2135
2135
  warning: "warning";
2136
2136
  }>;
2137
2137
  contributorType: z.ZodEnum<{
2138
- session: "session";
2139
2138
  user: "user";
2140
2139
  supervisor: "supervisor";
2140
+ session: "session";
2141
2141
  }>;
2142
2142
  action: z.ZodEnum<{
2143
2143
  create: "create";
@@ -2461,9 +2461,9 @@ declare const TaskStatusSchema: z.ZodEnum<{
2461
2461
  }>;
2462
2462
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2463
2463
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
2464
+ webhook: "webhook";
2464
2465
  manual: "manual";
2465
2466
  cron: "cron";
2466
- webhook: "webhook";
2467
2467
  }>;
2468
2468
  type TaskTriggerType = z.infer<typeof TaskTriggerTypeSchema>;
2469
2469
  declare const TaskSummarySchema: z.ZodObject<{
@@ -2484,9 +2484,9 @@ declare const TaskSummarySchema: z.ZodObject<{
2484
2484
  dispatching: "dispatching";
2485
2485
  }>;
2486
2486
  triggerType: z.ZodEnum<{
2487
+ webhook: "webhook";
2487
2488
  manual: "manual";
2488
2489
  cron: "cron";
2489
- webhook: "webhook";
2490
2490
  }>;
2491
2491
  triggerRef: z.ZodOptional<z.ZodString>;
2492
2492
  attempt: z.ZodNumber;
@@ -2614,10 +2614,10 @@ declare const SkillContentSchema: z.ZodObject<{
2614
2614
  type SkillContent = z.infer<typeof SkillContentSchema>;
2615
2615
 
2616
2616
  declare const InboxCategorySchema: z.ZodEnum<{
2617
- session: "session";
2618
2617
  supervisor: "supervisor";
2619
2618
  task: "task";
2620
2619
  trigger: "trigger";
2620
+ session: "session";
2621
2621
  knowledge: "knowledge";
2622
2622
  system: "system";
2623
2623
  }>;
@@ -2631,10 +2631,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2631
2631
  declare const InboxItemSummarySchema: z.ZodObject<{
2632
2632
  id: z.ZodString;
2633
2633
  category: z.ZodEnum<{
2634
- session: "session";
2635
2634
  supervisor: "supervisor";
2636
2635
  task: "task";
2637
2636
  trigger: "trigger";
2637
+ session: "session";
2638
2638
  knowledge: "knowledge";
2639
2639
  system: "system";
2640
2640
  }>;
@@ -2659,10 +2659,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2659
2659
  item: z.ZodObject<{
2660
2660
  id: z.ZodString;
2661
2661
  category: z.ZodEnum<{
2662
- session: "session";
2663
2662
  supervisor: "supervisor";
2664
2663
  task: "task";
2665
2664
  trigger: "trigger";
2665
+ session: "session";
2666
2666
  knowledge: "knowledge";
2667
2667
  system: "system";
2668
2668
  }>;
@@ -2850,8 +2850,8 @@ declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "
2850
2850
  declare const SuggestionEvidenceSchema: z$1.ZodObject<{
2851
2851
  kind: z$1.ZodEnum<{
2852
2852
  message: "message";
2853
- decision: "decision";
2854
2853
  task: "task";
2854
+ decision: "decision";
2855
2855
  goal: "goal";
2856
2856
  narrative: "narrative";
2857
2857
  }>;
@@ -3489,6 +3489,7 @@ declare const sessionProgressListSchema: z.ZodObject<{
3489
3489
  updatedAt: z.ZodNumber;
3490
3490
  archivedAt: z.ZodOptional<z.ZodNumber>;
3491
3491
  toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3492
+ summaryGeneratedAt: z.ZodOptional<z.ZodNumber>;
3492
3493
  }, z.core.$strip>;
3493
3494
  type SessionProgressList = z.infer<typeof sessionProgressListSchema>;
3494
3495
  /**
@@ -3520,6 +3521,7 @@ declare const sessionProgressStateSchema: z.ZodObject<{
3520
3521
  updatedAt: z.ZodNumber;
3521
3522
  archivedAt: z.ZodOptional<z.ZodNumber>;
3522
3523
  toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3524
+ summaryGeneratedAt: z.ZodOptional<z.ZodNumber>;
3523
3525
  }, z.core.$strip>>>;
3524
3526
  currentListId: z.ZodOptional<z.ZodString>;
3525
3527
  todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
package/dist/index.mjs CHANGED
@@ -1503,7 +1503,14 @@ const sessionProgressListSchema = z.object({
1503
1503
  * resolve these against the session message stream to render per-list
1504
1504
  * file change summaries without duplicating diff content into metadata.
1505
1505
  */
1506
- toolCallIds: z.array(z.string()).optional()
1506
+ toolCallIds: z.array(z.string()).optional(),
1507
+ /**
1508
+ * Timestamp at which an auto-summary was triggered for this list's
1509
+ * completion (all todos completed → all completed transition). Dedup flag
1510
+ * so the CLI hook only fires ONE synthetic summary-trigger message per
1511
+ * list lifecycle, even if subsequent TodoWrite calls keep it all done.
1512
+ */
1513
+ summaryGeneratedAt: z.number().optional()
1507
1514
  });
1508
1515
  const sessionProgressStateSchema = z.object({
1509
1516
  /** Ordered by startedAt asc; last item is typically the active one. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmmao/happy-wire",
3
- "version": "0.11.9",
3
+ "version": "0.11.10",
4
4
  "description": "Shared message wire types and Zod schemas for Happy clients and services",
5
5
  "author": "kmmao",
6
6
  "license": "MIT",