@kmmao/happy-wire 0.8.1 → 0.8.3

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
@@ -401,7 +401,7 @@ const TunnelStateSchema = z__namespace.object({
401
401
  providers: z__namespace.array(TunnelProviderInfoSchema)
402
402
  });
403
403
  const AutomationPrioritySchema = z__namespace.enum(["urgent", "user", "background"]);
404
- const AutomationJobKindSchema = z__namespace.enum(["supervisor", "webhook"]);
404
+ const AutomationJobKindSchema = z__namespace.enum(["supervisor", "webhook", "agent_loop"]);
405
405
  const AutomationJobStatusSchema = z__namespace.enum([
406
406
  "queued",
407
407
  "dispatching",
@@ -430,7 +430,8 @@ const AutomationJobSummarySchema = z__namespace.object({
430
430
  loopId: z__namespace.string().optional(),
431
431
  loopIteration: z__namespace.number().optional(),
432
432
  continuityKey: z__namespace.string().optional(),
433
- errorMessage: z__namespace.string().optional()
433
+ errorMessage: z__namespace.string().optional(),
434
+ recovered: z__namespace.boolean().optional()
434
435
  });
435
436
  const AutomationGuardianSummarySchema = z__namespace.object({
436
437
  key: z__namespace.string(),
@@ -439,7 +440,8 @@ const AutomationGuardianSummarySchema = z__namespace.object({
439
440
  sessionId: z__namespace.string(),
440
441
  updatedAt: z__namespace.number(),
441
442
  lastRunId: z__namespace.string().optional(),
442
- attached: z__namespace.boolean().optional()
443
+ attached: z__namespace.boolean().optional(),
444
+ recovered: z__namespace.boolean().optional()
443
445
  });
444
446
  const AutomationGuardianUsageSummarySchema = z__namespace.object({
445
447
  key: z__namespace.string(),
@@ -478,6 +480,7 @@ const AutomationAuditStatsSchema = z__namespace.object({
478
480
  guardianReuseCount: z__namespace.number(),
479
481
  guardianRememberCount: z__namespace.number(),
480
482
  guardianResetCount: z__namespace.number(),
483
+ sessionReattachedCount: z__namespace.number(),
481
484
  watchdogStopCount: z__namespace.number(),
482
485
  stopRequestCount: z__namespace.number(),
483
486
  guardianEligibleRunCount: z__namespace.number(),
package/dist/index.d.cts CHANGED
@@ -1482,6 +1482,7 @@ type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
1482
1482
  declare const AutomationJobKindSchema: z.ZodEnum<{
1483
1483
  supervisor: "supervisor";
1484
1484
  webhook: "webhook";
1485
+ agent_loop: "agent_loop";
1485
1486
  }>;
1486
1487
  type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
1487
1488
  declare const AutomationJobStatusSchema: z.ZodEnum<{
@@ -1498,6 +1499,7 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1498
1499
  kind: z.ZodEnum<{
1499
1500
  supervisor: "supervisor";
1500
1501
  webhook: "webhook";
1502
+ agent_loop: "agent_loop";
1501
1503
  }>;
1502
1504
  status: z.ZodEnum<{
1503
1505
  completed: "completed";
@@ -1528,6 +1530,7 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1528
1530
  loopIteration: z.ZodOptional<z.ZodNumber>;
1529
1531
  continuityKey: z.ZodOptional<z.ZodString>;
1530
1532
  errorMessage: z.ZodOptional<z.ZodString>;
1533
+ recovered: z.ZodOptional<z.ZodBoolean>;
1531
1534
  }, z.core.$strip>;
1532
1535
  type AutomationJobSummary = z.infer<typeof AutomationJobSummarySchema>;
1533
1536
  declare const AutomationGuardianSummarySchema: z.ZodObject<{
@@ -1538,6 +1541,7 @@ declare const AutomationGuardianSummarySchema: z.ZodObject<{
1538
1541
  updatedAt: z.ZodNumber;
1539
1542
  lastRunId: z.ZodOptional<z.ZodString>;
1540
1543
  attached: z.ZodOptional<z.ZodBoolean>;
1544
+ recovered: z.ZodOptional<z.ZodBoolean>;
1541
1545
  }, z.core.$strip>;
1542
1546
  type AutomationGuardianSummary = z.infer<typeof AutomationGuardianSummarySchema>;
1543
1547
  declare const AutomationGuardianUsageSummarySchema: z.ZodObject<{
@@ -1579,6 +1583,7 @@ declare const AutomationAuditStatsSchema: z.ZodObject<{
1579
1583
  guardianReuseCount: z.ZodNumber;
1580
1584
  guardianRememberCount: z.ZodNumber;
1581
1585
  guardianResetCount: z.ZodNumber;
1586
+ sessionReattachedCount: z.ZodNumber;
1582
1587
  watchdogStopCount: z.ZodNumber;
1583
1588
  stopRequestCount: z.ZodNumber;
1584
1589
  guardianEligibleRunCount: z.ZodNumber;
@@ -1610,6 +1615,7 @@ declare const AutomationStateSchema: z.ZodObject<{
1610
1615
  kind: z.ZodEnum<{
1611
1616
  supervisor: "supervisor";
1612
1617
  webhook: "webhook";
1618
+ agent_loop: "agent_loop";
1613
1619
  }>;
1614
1620
  status: z.ZodEnum<{
1615
1621
  completed: "completed";
@@ -1640,6 +1646,7 @@ declare const AutomationStateSchema: z.ZodObject<{
1640
1646
  loopIteration: z.ZodOptional<z.ZodNumber>;
1641
1647
  continuityKey: z.ZodOptional<z.ZodString>;
1642
1648
  errorMessage: z.ZodOptional<z.ZodString>;
1649
+ recovered: z.ZodOptional<z.ZodBoolean>;
1643
1650
  }, z.core.$strip>>;
1644
1651
  guardians: z.ZodOptional<z.ZodArray<z.ZodObject<{
1645
1652
  key: z.ZodString;
@@ -1649,6 +1656,7 @@ declare const AutomationStateSchema: z.ZodObject<{
1649
1656
  updatedAt: z.ZodNumber;
1650
1657
  lastRunId: z.ZodOptional<z.ZodString>;
1651
1658
  attached: z.ZodOptional<z.ZodBoolean>;
1659
+ recovered: z.ZodOptional<z.ZodBoolean>;
1652
1660
  }, z.core.$strip>>>;
1653
1661
  guardianUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
1654
1662
  key: z.ZodString;
@@ -1671,6 +1679,7 @@ declare const AutomationStateSchema: z.ZodObject<{
1671
1679
  guardianReuseCount: z.ZodNumber;
1672
1680
  guardianRememberCount: z.ZodNumber;
1673
1681
  guardianResetCount: z.ZodNumber;
1682
+ sessionReattachedCount: z.ZodNumber;
1674
1683
  watchdogStopCount: z.ZodNumber;
1675
1684
  stopRequestCount: z.ZodNumber;
1676
1685
  guardianEligibleRunCount: z.ZodNumber;
@@ -1775,6 +1784,7 @@ declare const DaemonStateSchema: z.ZodObject<{
1775
1784
  kind: z.ZodEnum<{
1776
1785
  supervisor: "supervisor";
1777
1786
  webhook: "webhook";
1787
+ agent_loop: "agent_loop";
1778
1788
  }>;
1779
1789
  status: z.ZodEnum<{
1780
1790
  completed: "completed";
@@ -1805,6 +1815,7 @@ declare const DaemonStateSchema: z.ZodObject<{
1805
1815
  loopIteration: z.ZodOptional<z.ZodNumber>;
1806
1816
  continuityKey: z.ZodOptional<z.ZodString>;
1807
1817
  errorMessage: z.ZodOptional<z.ZodString>;
1818
+ recovered: z.ZodOptional<z.ZodBoolean>;
1808
1819
  }, z.core.$strip>>;
1809
1820
  guardians: z.ZodOptional<z.ZodArray<z.ZodObject<{
1810
1821
  key: z.ZodString;
@@ -1814,6 +1825,7 @@ declare const DaemonStateSchema: z.ZodObject<{
1814
1825
  updatedAt: z.ZodNumber;
1815
1826
  lastRunId: z.ZodOptional<z.ZodString>;
1816
1827
  attached: z.ZodOptional<z.ZodBoolean>;
1828
+ recovered: z.ZodOptional<z.ZodBoolean>;
1817
1829
  }, z.core.$strip>>>;
1818
1830
  guardianUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
1819
1831
  key: z.ZodString;
@@ -1836,6 +1848,7 @@ declare const DaemonStateSchema: z.ZodObject<{
1836
1848
  guardianReuseCount: z.ZodNumber;
1837
1849
  guardianRememberCount: z.ZodNumber;
1838
1850
  guardianResetCount: z.ZodNumber;
1851
+ sessionReattachedCount: z.ZodNumber;
1839
1852
  watchdogStopCount: z.ZodNumber;
1840
1853
  stopRequestCount: z.ZodNumber;
1841
1854
  guardianEligibleRunCount: z.ZodNumber;
@@ -1871,9 +1884,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
1871
1884
  }>;
1872
1885
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
1873
1886
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
1887
+ session: "session";
1874
1888
  user: "user";
1875
1889
  supervisor: "supervisor";
1876
- session: "session";
1877
1890
  }>;
1878
1891
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
1879
1892
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -1904,9 +1917,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
1904
1917
  warning: "warning";
1905
1918
  }>;
1906
1919
  contributorType: z.ZodEnum<{
1920
+ session: "session";
1907
1921
  user: "user";
1908
1922
  supervisor: "supervisor";
1909
- session: "session";
1910
1923
  }>;
1911
1924
  action: z.ZodEnum<{
1912
1925
  create: "create";
package/dist/index.d.mts CHANGED
@@ -1482,6 +1482,7 @@ type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
1482
1482
  declare const AutomationJobKindSchema: z.ZodEnum<{
1483
1483
  supervisor: "supervisor";
1484
1484
  webhook: "webhook";
1485
+ agent_loop: "agent_loop";
1485
1486
  }>;
1486
1487
  type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
1487
1488
  declare const AutomationJobStatusSchema: z.ZodEnum<{
@@ -1498,6 +1499,7 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1498
1499
  kind: z.ZodEnum<{
1499
1500
  supervisor: "supervisor";
1500
1501
  webhook: "webhook";
1502
+ agent_loop: "agent_loop";
1501
1503
  }>;
1502
1504
  status: z.ZodEnum<{
1503
1505
  completed: "completed";
@@ -1528,6 +1530,7 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1528
1530
  loopIteration: z.ZodOptional<z.ZodNumber>;
1529
1531
  continuityKey: z.ZodOptional<z.ZodString>;
1530
1532
  errorMessage: z.ZodOptional<z.ZodString>;
1533
+ recovered: z.ZodOptional<z.ZodBoolean>;
1531
1534
  }, z.core.$strip>;
1532
1535
  type AutomationJobSummary = z.infer<typeof AutomationJobSummarySchema>;
1533
1536
  declare const AutomationGuardianSummarySchema: z.ZodObject<{
@@ -1538,6 +1541,7 @@ declare const AutomationGuardianSummarySchema: z.ZodObject<{
1538
1541
  updatedAt: z.ZodNumber;
1539
1542
  lastRunId: z.ZodOptional<z.ZodString>;
1540
1543
  attached: z.ZodOptional<z.ZodBoolean>;
1544
+ recovered: z.ZodOptional<z.ZodBoolean>;
1541
1545
  }, z.core.$strip>;
1542
1546
  type AutomationGuardianSummary = z.infer<typeof AutomationGuardianSummarySchema>;
1543
1547
  declare const AutomationGuardianUsageSummarySchema: z.ZodObject<{
@@ -1579,6 +1583,7 @@ declare const AutomationAuditStatsSchema: z.ZodObject<{
1579
1583
  guardianReuseCount: z.ZodNumber;
1580
1584
  guardianRememberCount: z.ZodNumber;
1581
1585
  guardianResetCount: z.ZodNumber;
1586
+ sessionReattachedCount: z.ZodNumber;
1582
1587
  watchdogStopCount: z.ZodNumber;
1583
1588
  stopRequestCount: z.ZodNumber;
1584
1589
  guardianEligibleRunCount: z.ZodNumber;
@@ -1610,6 +1615,7 @@ declare const AutomationStateSchema: z.ZodObject<{
1610
1615
  kind: z.ZodEnum<{
1611
1616
  supervisor: "supervisor";
1612
1617
  webhook: "webhook";
1618
+ agent_loop: "agent_loop";
1613
1619
  }>;
1614
1620
  status: z.ZodEnum<{
1615
1621
  completed: "completed";
@@ -1640,6 +1646,7 @@ declare const AutomationStateSchema: z.ZodObject<{
1640
1646
  loopIteration: z.ZodOptional<z.ZodNumber>;
1641
1647
  continuityKey: z.ZodOptional<z.ZodString>;
1642
1648
  errorMessage: z.ZodOptional<z.ZodString>;
1649
+ recovered: z.ZodOptional<z.ZodBoolean>;
1643
1650
  }, z.core.$strip>>;
1644
1651
  guardians: z.ZodOptional<z.ZodArray<z.ZodObject<{
1645
1652
  key: z.ZodString;
@@ -1649,6 +1656,7 @@ declare const AutomationStateSchema: z.ZodObject<{
1649
1656
  updatedAt: z.ZodNumber;
1650
1657
  lastRunId: z.ZodOptional<z.ZodString>;
1651
1658
  attached: z.ZodOptional<z.ZodBoolean>;
1659
+ recovered: z.ZodOptional<z.ZodBoolean>;
1652
1660
  }, z.core.$strip>>>;
1653
1661
  guardianUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
1654
1662
  key: z.ZodString;
@@ -1671,6 +1679,7 @@ declare const AutomationStateSchema: z.ZodObject<{
1671
1679
  guardianReuseCount: z.ZodNumber;
1672
1680
  guardianRememberCount: z.ZodNumber;
1673
1681
  guardianResetCount: z.ZodNumber;
1682
+ sessionReattachedCount: z.ZodNumber;
1674
1683
  watchdogStopCount: z.ZodNumber;
1675
1684
  stopRequestCount: z.ZodNumber;
1676
1685
  guardianEligibleRunCount: z.ZodNumber;
@@ -1775,6 +1784,7 @@ declare const DaemonStateSchema: z.ZodObject<{
1775
1784
  kind: z.ZodEnum<{
1776
1785
  supervisor: "supervisor";
1777
1786
  webhook: "webhook";
1787
+ agent_loop: "agent_loop";
1778
1788
  }>;
1779
1789
  status: z.ZodEnum<{
1780
1790
  completed: "completed";
@@ -1805,6 +1815,7 @@ declare const DaemonStateSchema: z.ZodObject<{
1805
1815
  loopIteration: z.ZodOptional<z.ZodNumber>;
1806
1816
  continuityKey: z.ZodOptional<z.ZodString>;
1807
1817
  errorMessage: z.ZodOptional<z.ZodString>;
1818
+ recovered: z.ZodOptional<z.ZodBoolean>;
1808
1819
  }, z.core.$strip>>;
1809
1820
  guardians: z.ZodOptional<z.ZodArray<z.ZodObject<{
1810
1821
  key: z.ZodString;
@@ -1814,6 +1825,7 @@ declare const DaemonStateSchema: z.ZodObject<{
1814
1825
  updatedAt: z.ZodNumber;
1815
1826
  lastRunId: z.ZodOptional<z.ZodString>;
1816
1827
  attached: z.ZodOptional<z.ZodBoolean>;
1828
+ recovered: z.ZodOptional<z.ZodBoolean>;
1817
1829
  }, z.core.$strip>>>;
1818
1830
  guardianUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
1819
1831
  key: z.ZodString;
@@ -1836,6 +1848,7 @@ declare const DaemonStateSchema: z.ZodObject<{
1836
1848
  guardianReuseCount: z.ZodNumber;
1837
1849
  guardianRememberCount: z.ZodNumber;
1838
1850
  guardianResetCount: z.ZodNumber;
1851
+ sessionReattachedCount: z.ZodNumber;
1839
1852
  watchdogStopCount: z.ZodNumber;
1840
1853
  stopRequestCount: z.ZodNumber;
1841
1854
  guardianEligibleRunCount: z.ZodNumber;
@@ -1871,9 +1884,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
1871
1884
  }>;
1872
1885
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
1873
1886
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
1887
+ session: "session";
1874
1888
  user: "user";
1875
1889
  supervisor: "supervisor";
1876
- session: "session";
1877
1890
  }>;
1878
1891
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
1879
1892
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -1904,9 +1917,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
1904
1917
  warning: "warning";
1905
1918
  }>;
1906
1919
  contributorType: z.ZodEnum<{
1920
+ session: "session";
1907
1921
  user: "user";
1908
1922
  supervisor: "supervisor";
1909
- session: "session";
1910
1923
  }>;
1911
1924
  action: z.ZodEnum<{
1912
1925
  create: "create";
package/dist/index.mjs CHANGED
@@ -380,7 +380,7 @@ const TunnelStateSchema = z.object({
380
380
  providers: z.array(TunnelProviderInfoSchema)
381
381
  });
382
382
  const AutomationPrioritySchema = z.enum(["urgent", "user", "background"]);
383
- const AutomationJobKindSchema = z.enum(["supervisor", "webhook"]);
383
+ const AutomationJobKindSchema = z.enum(["supervisor", "webhook", "agent_loop"]);
384
384
  const AutomationJobStatusSchema = z.enum([
385
385
  "queued",
386
386
  "dispatching",
@@ -409,7 +409,8 @@ const AutomationJobSummarySchema = z.object({
409
409
  loopId: z.string().optional(),
410
410
  loopIteration: z.number().optional(),
411
411
  continuityKey: z.string().optional(),
412
- errorMessage: z.string().optional()
412
+ errorMessage: z.string().optional(),
413
+ recovered: z.boolean().optional()
413
414
  });
414
415
  const AutomationGuardianSummarySchema = z.object({
415
416
  key: z.string(),
@@ -418,7 +419,8 @@ const AutomationGuardianSummarySchema = z.object({
418
419
  sessionId: z.string(),
419
420
  updatedAt: z.number(),
420
421
  lastRunId: z.string().optional(),
421
- attached: z.boolean().optional()
422
+ attached: z.boolean().optional(),
423
+ recovered: z.boolean().optional()
422
424
  });
423
425
  const AutomationGuardianUsageSummarySchema = z.object({
424
426
  key: z.string(),
@@ -457,6 +459,7 @@ const AutomationAuditStatsSchema = z.object({
457
459
  guardianReuseCount: z.number(),
458
460
  guardianRememberCount: z.number(),
459
461
  guardianResetCount: z.number(),
462
+ sessionReattachedCount: z.number(),
460
463
  watchdogStopCount: z.number(),
461
464
  stopRequestCount: z.number(),
462
465
  guardianEligibleRunCount: z.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmmao/happy-wire",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "Shared message wire types and Zod schemas for Happy clients and services",
5
5
  "author": "kmmao",
6
6
  "license": "MIT",