agentix-cli 0.154.2 → 0.156.0

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.
Files changed (139) hide show
  1. package/dist/{App-6T6NVB7O.js → App-NSZBO2ZD.js} +2 -2
  2. package/dist/{ChatApp-QZBJ4NHC.js → ChatApp-HDLLCAE6.js} +2 -2
  3. package/dist/{absorb-eval-EVX7LDXR.js → absorb-eval-A6HIYEBY.js} +2 -2
  4. package/dist/{agent-F2NT6B25.js → agent-PSZY33DQ.js} +2 -2
  5. package/dist/{board-dashboard-642BO7GV.js → board-dashboard-FPNEYUYE.js} +318 -285
  6. package/dist/board-dashboard-FPNEYUYE.js.map +1 -0
  7. package/dist/chunk-2VDO2HEK.js +3 -0
  8. package/dist/chunk-2VDO2HEK.js.map +1 -0
  9. package/dist/{chunk-67DWBJEO.js → chunk-5BOSHX42.js} +333 -336
  10. package/dist/chunk-5BOSHX42.js.map +1 -0
  11. package/dist/{chunk-JAML6222.js → chunk-6V5JBHUN.js} +2 -2
  12. package/dist/{chunk-4CWACHEH.js → chunk-7JRBOEWC.js} +2 -2
  13. package/dist/{chunk-743RAKLP.js → chunk-7U6YGXWE.js} +2 -2
  14. package/dist/{chunk-ABCQ6QMJ.js → chunk-ATCWYDB2.js} +2 -2
  15. package/dist/{chunk-U4YTTWR6.js → chunk-B2DFT7QY.js} +2 -2
  16. package/dist/{chunk-VRF4YW46.js → chunk-B4CZHRRV.js} +2 -2
  17. package/dist/chunk-C5W2QXHG.js +577 -0
  18. package/dist/chunk-C5W2QXHG.js.map +1 -0
  19. package/dist/{chunk-KA2NV7H4.js → chunk-DWESRGS4.js} +2 -2
  20. package/dist/{chunk-S3EX64LR.js → chunk-E7LKRV7R.js} +2 -2
  21. package/dist/{chunk-HUN6COOF.js → chunk-EVJ3A5EI.js} +33 -33
  22. package/dist/chunk-EVJ3A5EI.js.map +1 -0
  23. package/dist/{chunk-IA4J3YLB.js → chunk-FRSHCCRH.js} +2 -2
  24. package/dist/{chunk-AKCEMKQM.js → chunk-GJMTN72H.js} +2 -2
  25. package/dist/{chunk-SD3CC4EX.js → chunk-GNRECXDY.js} +2 -2
  26. package/dist/chunk-HH3UZA4Y.js +36 -0
  27. package/dist/chunk-HH3UZA4Y.js.map +1 -0
  28. package/dist/chunk-HM6VPTXV.js +76 -0
  29. package/dist/chunk-HM6VPTXV.js.map +1 -0
  30. package/dist/{chunk-37I654UJ.js → chunk-HV7EIZUB.js} +2 -2
  31. package/dist/{chunk-YL26FRKJ.js → chunk-HW4BVIWX.js} +2 -2
  32. package/dist/{chunk-GRVTLUQ6.js → chunk-L6LJEBXY.js} +2 -2
  33. package/dist/{chunk-CUAS4ITR.js → chunk-NGSEAAUR.js} +2 -2
  34. package/dist/{chunk-E76HREC7.js → chunk-PXJWLJWA.js} +3 -3
  35. package/dist/{chunk-IWWEUXZQ.js → chunk-RKGDYAOV.js} +2 -2
  36. package/dist/{chunk-GFRAHUAQ.js → chunk-SP323WDN.js} +2 -2
  37. package/dist/{chunk-B75BLZ2M.js → chunk-TO7TTQAW.js} +2 -2
  38. package/dist/{chunk-EGTANAFI.js → chunk-U7BSIXY5.js} +2 -2
  39. package/dist/{chunk-W2RB5XG7.js → chunk-W2KZCY7H.js} +2 -2
  40. package/dist/{chunk-MLC5INGD.js → chunk-YSRH6AXN.js} +5 -5
  41. package/dist/{chunk-MLC5INGD.js.map → chunk-YSRH6AXN.js.map} +1 -1
  42. package/dist/{chunk-YJNUVAM4.js → chunk-YZHYE4LQ.js} +2 -2
  43. package/dist/cli.js +1 -1
  44. package/dist/{client-OCLSGJYQ.js → client-LOLBLWQH.js} +2 -2
  45. package/dist/{config-FZTWI3VG.js → config-XIHDFV7R.js} +2 -2
  46. package/dist/{config-mutate-X5IKMROK.js → config-mutate-GLGD4OXG.js} +2 -2
  47. package/dist/config-mutator-OC6ZQQCR.js +2 -0
  48. package/dist/{contributions-KHGGVSR6.js → contributions-ZWZKNT7F.js} +2 -2
  49. package/dist/{doctor-KNCRQ3YO.js → doctor-P7TUOQJL.js} +2 -2
  50. package/dist/{follow-up-tool-TGKEPA5C.js → follow-up-tool-PS4ZST7N.js} +2 -2
  51. package/dist/{hub-HQUAH5H6.js → hub-5FDLTQA4.js} +2 -2
  52. package/dist/index.d.ts +402 -61
  53. package/dist/index.js +1 -1
  54. package/dist/{program-CYOAZ43O.js → program-K3YRP5QZ.js} +234 -232
  55. package/dist/program-K3YRP5QZ.js.map +1 -0
  56. package/dist/{promote-VD4OVQGL.js → promote-U4MVP653.js} +2 -2
  57. package/dist/{push-bridge-P7HH25VN.js → push-bridge-NR7SLHGX.js} +2 -2
  58. package/dist/{query-5CPK6G2H.js → query-CHK6IY4Z.js} +2 -2
  59. package/dist/{query-settings-35GDM3HU.js → query-settings-NZT2BKX5.js} +2 -2
  60. package/dist/{registry-JCHKHCRE.js → registry-VAZ7KJAX.js} +2 -2
  61. package/dist/{request-planner-ZIG4YVXC.js → request-planner-XOFWVB6L.js} +2 -2
  62. package/dist/{review-candidates-LPZWOR2K.js → review-candidates-IYXJRG5K.js} +2 -2
  63. package/dist/{routing-BLOYDLU4.js → routing-ZMRPUXLA.js} +2 -2
  64. package/dist/schedule-tool-EU2ILYUI.js +2 -0
  65. package/dist/{scheduler-BEJRDQR3.js → scheduler-O35FPVFM.js} +2 -2
  66. package/dist/{seat-NU3UJC6C.js → seat-C3D3GZCW.js} +2 -2
  67. package/dist/{select-IWAFX4XJ.js → select-AA7JJN2D.js} +2 -2
  68. package/dist/{set-enabled-JF75TSFU.js → set-enabled-IDPKRK5C.js} +2 -2
  69. package/dist/{tool-PQBQJWM5.js → tool-35X6HKUQ.js} +2 -2
  70. package/dist/{tool-WTOOPTGC.js → tool-NWVSRBIK.js} +2 -2
  71. package/dist/{wiki-DXG655NP.js → wiki-I7BSMBAC.js} +2 -2
  72. package/dist/wiki-enrich-G4GUITL4.js +2 -0
  73. package/package.json +1 -1
  74. package/dist/board-dashboard-642BO7GV.js.map +0 -1
  75. package/dist/chunk-67DWBJEO.js.map +0 -1
  76. package/dist/chunk-HSCZSNOX.js +0 -533
  77. package/dist/chunk-HSCZSNOX.js.map +0 -1
  78. package/dist/chunk-HUN6COOF.js.map +0 -1
  79. package/dist/chunk-VKEH4IBA.js +0 -76
  80. package/dist/chunk-VKEH4IBA.js.map +0 -1
  81. package/dist/chunk-XOUK5ZIQ.js +0 -36
  82. package/dist/chunk-XOUK5ZIQ.js.map +0 -1
  83. package/dist/chunk-YMX3QCV7.js +0 -3
  84. package/dist/chunk-YMX3QCV7.js.map +0 -1
  85. package/dist/config-mutator-C5BMIBZO.js +0 -2
  86. package/dist/program-CYOAZ43O.js.map +0 -1
  87. package/dist/schedule-tool-7KFO3NPD.js +0 -2
  88. package/dist/wiki-enrich-5VQCT6BT.js +0 -2
  89. /package/dist/{App-6T6NVB7O.js.map → App-NSZBO2ZD.js.map} +0 -0
  90. /package/dist/{ChatApp-QZBJ4NHC.js.map → ChatApp-HDLLCAE6.js.map} +0 -0
  91. /package/dist/{absorb-eval-EVX7LDXR.js.map → absorb-eval-A6HIYEBY.js.map} +0 -0
  92. /package/dist/{agent-F2NT6B25.js.map → agent-PSZY33DQ.js.map} +0 -0
  93. /package/dist/{chunk-JAML6222.js.map → chunk-6V5JBHUN.js.map} +0 -0
  94. /package/dist/{chunk-4CWACHEH.js.map → chunk-7JRBOEWC.js.map} +0 -0
  95. /package/dist/{chunk-743RAKLP.js.map → chunk-7U6YGXWE.js.map} +0 -0
  96. /package/dist/{chunk-ABCQ6QMJ.js.map → chunk-ATCWYDB2.js.map} +0 -0
  97. /package/dist/{chunk-U4YTTWR6.js.map → chunk-B2DFT7QY.js.map} +0 -0
  98. /package/dist/{chunk-VRF4YW46.js.map → chunk-B4CZHRRV.js.map} +0 -0
  99. /package/dist/{chunk-KA2NV7H4.js.map → chunk-DWESRGS4.js.map} +0 -0
  100. /package/dist/{chunk-S3EX64LR.js.map → chunk-E7LKRV7R.js.map} +0 -0
  101. /package/dist/{chunk-IA4J3YLB.js.map → chunk-FRSHCCRH.js.map} +0 -0
  102. /package/dist/{chunk-AKCEMKQM.js.map → chunk-GJMTN72H.js.map} +0 -0
  103. /package/dist/{chunk-SD3CC4EX.js.map → chunk-GNRECXDY.js.map} +0 -0
  104. /package/dist/{chunk-37I654UJ.js.map → chunk-HV7EIZUB.js.map} +0 -0
  105. /package/dist/{chunk-YL26FRKJ.js.map → chunk-HW4BVIWX.js.map} +0 -0
  106. /package/dist/{chunk-GRVTLUQ6.js.map → chunk-L6LJEBXY.js.map} +0 -0
  107. /package/dist/{chunk-CUAS4ITR.js.map → chunk-NGSEAAUR.js.map} +0 -0
  108. /package/dist/{chunk-E76HREC7.js.map → chunk-PXJWLJWA.js.map} +0 -0
  109. /package/dist/{chunk-IWWEUXZQ.js.map → chunk-RKGDYAOV.js.map} +0 -0
  110. /package/dist/{chunk-GFRAHUAQ.js.map → chunk-SP323WDN.js.map} +0 -0
  111. /package/dist/{chunk-B75BLZ2M.js.map → chunk-TO7TTQAW.js.map} +0 -0
  112. /package/dist/{chunk-EGTANAFI.js.map → chunk-U7BSIXY5.js.map} +0 -0
  113. /package/dist/{chunk-W2RB5XG7.js.map → chunk-W2KZCY7H.js.map} +0 -0
  114. /package/dist/{chunk-YJNUVAM4.js.map → chunk-YZHYE4LQ.js.map} +0 -0
  115. /package/dist/{client-OCLSGJYQ.js.map → client-LOLBLWQH.js.map} +0 -0
  116. /package/dist/{config-FZTWI3VG.js.map → config-XIHDFV7R.js.map} +0 -0
  117. /package/dist/{config-mutate-X5IKMROK.js.map → config-mutate-GLGD4OXG.js.map} +0 -0
  118. /package/dist/{config-mutator-C5BMIBZO.js.map → config-mutator-OC6ZQQCR.js.map} +0 -0
  119. /package/dist/{contributions-KHGGVSR6.js.map → contributions-ZWZKNT7F.js.map} +0 -0
  120. /package/dist/{doctor-KNCRQ3YO.js.map → doctor-P7TUOQJL.js.map} +0 -0
  121. /package/dist/{follow-up-tool-TGKEPA5C.js.map → follow-up-tool-PS4ZST7N.js.map} +0 -0
  122. /package/dist/{hub-HQUAH5H6.js.map → hub-5FDLTQA4.js.map} +0 -0
  123. /package/dist/{promote-VD4OVQGL.js.map → promote-U4MVP653.js.map} +0 -0
  124. /package/dist/{push-bridge-P7HH25VN.js.map → push-bridge-NR7SLHGX.js.map} +0 -0
  125. /package/dist/{query-5CPK6G2H.js.map → query-CHK6IY4Z.js.map} +0 -0
  126. /package/dist/{query-settings-35GDM3HU.js.map → query-settings-NZT2BKX5.js.map} +0 -0
  127. /package/dist/{registry-JCHKHCRE.js.map → registry-VAZ7KJAX.js.map} +0 -0
  128. /package/dist/{request-planner-ZIG4YVXC.js.map → request-planner-XOFWVB6L.js.map} +0 -0
  129. /package/dist/{review-candidates-LPZWOR2K.js.map → review-candidates-IYXJRG5K.js.map} +0 -0
  130. /package/dist/{routing-BLOYDLU4.js.map → routing-ZMRPUXLA.js.map} +0 -0
  131. /package/dist/{schedule-tool-7KFO3NPD.js.map → schedule-tool-EU2ILYUI.js.map} +0 -0
  132. /package/dist/{scheduler-BEJRDQR3.js.map → scheduler-O35FPVFM.js.map} +0 -0
  133. /package/dist/{seat-NU3UJC6C.js.map → seat-C3D3GZCW.js.map} +0 -0
  134. /package/dist/{select-IWAFX4XJ.js.map → select-AA7JJN2D.js.map} +0 -0
  135. /package/dist/{set-enabled-JF75TSFU.js.map → set-enabled-IDPKRK5C.js.map} +0 -0
  136. /package/dist/{tool-PQBQJWM5.js.map → tool-35X6HKUQ.js.map} +0 -0
  137. /package/dist/{tool-WTOOPTGC.js.map → tool-NWVSRBIK.js.map} +0 -0
  138. /package/dist/{wiki-DXG655NP.js.map → wiki-I7BSMBAC.js.map} +0 -0
  139. /package/dist/{wiki-enrich-5VQCT6BT.js.map → wiki-enrich-G4GUITL4.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -3382,15 +3382,6 @@ declare const daemonConfigSchema: z.ZodObject<{
3382
3382
  types: string[];
3383
3383
  candidates: number;
3384
3384
  };
3385
- shared: boolean;
3386
- candidates: number;
3387
- sharedCandidates: number;
3388
- maxPages: number;
3389
- pageChars: number;
3390
- linkedPages: number;
3391
- linkedChars: number;
3392
- navigatorModel: string;
3393
- answerModel: string;
3394
3385
  live: {
3395
3386
  enabled: boolean;
3396
3387
  timeoutMs: number;
@@ -3420,6 +3411,15 @@ declare const daemonConfigSchema: z.ZodObject<{
3420
3411
  url?: string | undefined;
3421
3412
  })[];
3422
3413
  };
3414
+ shared: boolean;
3415
+ candidates: number;
3416
+ sharedCandidates: number;
3417
+ maxPages: number;
3418
+ pageChars: number;
3419
+ linkedPages: number;
3420
+ linkedChars: number;
3421
+ navigatorModel: string;
3422
+ answerModel: string;
3423
3423
  }, {
3424
3424
  method?: "auto" | "summaries" | "catalog" | undefined;
3425
3425
  notes?: {
@@ -3427,15 +3427,6 @@ declare const daemonConfigSchema: z.ZodObject<{
3427
3427
  types?: string[] | undefined;
3428
3428
  candidates?: number | undefined;
3429
3429
  } | undefined;
3430
- shared?: boolean | undefined;
3431
- candidates?: number | undefined;
3432
- sharedCandidates?: number | undefined;
3433
- maxPages?: number | undefined;
3434
- pageChars?: number | undefined;
3435
- linkedPages?: number | undefined;
3436
- linkedChars?: number | undefined;
3437
- navigatorModel?: string | undefined;
3438
- answerModel?: string | undefined;
3439
3430
  live?: {
3440
3431
  enabled?: boolean | undefined;
3441
3432
  timeoutMs?: number | undefined;
@@ -3465,6 +3456,15 @@ declare const daemonConfigSchema: z.ZodObject<{
3465
3456
  peers?: boolean | undefined;
3466
3457
  })[] | undefined;
3467
3458
  } | undefined;
3459
+ shared?: boolean | undefined;
3460
+ candidates?: number | undefined;
3461
+ sharedCandidates?: number | undefined;
3462
+ maxPages?: number | undefined;
3463
+ pageChars?: number | undefined;
3464
+ linkedPages?: number | undefined;
3465
+ linkedChars?: number | undefined;
3466
+ navigatorModel?: string | undefined;
3467
+ answerModel?: string | undefined;
3468
3468
  }>>;
3469
3469
  /** One-line page summaries `wiki query` picks pages from (#855). */
3470
3470
  summaries: z.ZodDefault<z.ZodObject<{
@@ -3516,15 +3516,6 @@ declare const daemonConfigSchema: z.ZodObject<{
3516
3516
  types: string[];
3517
3517
  candidates: number;
3518
3518
  };
3519
- shared: boolean;
3520
- candidates: number;
3521
- sharedCandidates: number;
3522
- maxPages: number;
3523
- pageChars: number;
3524
- linkedPages: number;
3525
- linkedChars: number;
3526
- navigatorModel: string;
3527
- answerModel: string;
3528
3519
  live: {
3529
3520
  enabled: boolean;
3530
3521
  timeoutMs: number;
@@ -3554,6 +3545,15 @@ declare const daemonConfigSchema: z.ZodObject<{
3554
3545
  url?: string | undefined;
3555
3546
  })[];
3556
3547
  };
3548
+ shared: boolean;
3549
+ candidates: number;
3550
+ sharedCandidates: number;
3551
+ maxPages: number;
3552
+ pageChars: number;
3553
+ linkedPages: number;
3554
+ linkedChars: number;
3555
+ navigatorModel: string;
3556
+ answerModel: string;
3557
3557
  };
3558
3558
  contributions: {
3559
3559
  model: string;
@@ -3582,15 +3582,6 @@ declare const daemonConfigSchema: z.ZodObject<{
3582
3582
  types?: string[] | undefined;
3583
3583
  candidates?: number | undefined;
3584
3584
  } | undefined;
3585
- shared?: boolean | undefined;
3586
- candidates?: number | undefined;
3587
- sharedCandidates?: number | undefined;
3588
- maxPages?: number | undefined;
3589
- pageChars?: number | undefined;
3590
- linkedPages?: number | undefined;
3591
- linkedChars?: number | undefined;
3592
- navigatorModel?: string | undefined;
3593
- answerModel?: string | undefined;
3594
3585
  live?: {
3595
3586
  enabled?: boolean | undefined;
3596
3587
  timeoutMs?: number | undefined;
@@ -3620,6 +3611,15 @@ declare const daemonConfigSchema: z.ZodObject<{
3620
3611
  peers?: boolean | undefined;
3621
3612
  })[] | undefined;
3622
3613
  } | undefined;
3614
+ shared?: boolean | undefined;
3615
+ candidates?: number | undefined;
3616
+ sharedCandidates?: number | undefined;
3617
+ maxPages?: number | undefined;
3618
+ pageChars?: number | undefined;
3619
+ linkedPages?: number | undefined;
3620
+ linkedChars?: number | undefined;
3621
+ navigatorModel?: string | undefined;
3622
+ answerModel?: string | undefined;
3623
3623
  } | undefined;
3624
3624
  contributions?: {
3625
3625
  model?: string | undefined;
@@ -5165,6 +5165,46 @@ declare const daemonConfigSchema: z.ZodObject<{
5165
5165
  addresses?: string[] | undefined;
5166
5166
  digestNags?: boolean | undefined;
5167
5167
  }>>;
5168
+ /** Reach (src/notify/reach.ts, #1138 step B): an urgent item goes to
5169
+ * where the owner was last seen and, unseen after
5170
+ * `escalateAfterMinutes`, once to the next address on the ladder.
5171
+ * Seen/answered marks, presence and channel health are always on;
5172
+ * this switches the ladder only. Off by default: it sends a second
5173
+ * message, and seen relies on the phone app's read mark. */
5174
+ reach: z.ZodDefault<z.ZodObject<{
5175
+ enabled: z.ZodDefault<z.ZodBoolean>;
5176
+ escalateAfterMinutes: z.ZodDefault<z.ZodNumber>;
5177
+ /** Owner addresses in order, as "channel:chatId". Empty: the told
5178
+ * channels (chat "default") and then the told addresses. */
5179
+ ladder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5180
+ }, "strip", z.ZodTypeAny, {
5181
+ enabled: boolean;
5182
+ escalateAfterMinutes: number;
5183
+ ladder: string[];
5184
+ }, {
5185
+ enabled?: boolean | undefined;
5186
+ escalateAfterMinutes?: number | undefined;
5187
+ ladder?: string[] | undefined;
5188
+ }>>;
5189
+ /** The owner's Desk (src/desk/route.ts, #1138 step C): what of the one
5190
+ * list of waiting items reaches each surface the moment it appears.
5191
+ * "all", "urgent" (it expires within a day) or "off". When the digest
5192
+ * comes is the third setting, `approvals.digest`. */
5193
+ desk: z.ZodDefault<z.ZodObject<{
5194
+ /** A push to the phone (the told/reach path). Off: the Desk and the
5195
+ * digest only, as before this setting. */
5196
+ phone: z.ZodDefault<z.ZodEnum<["all", "urgent", "off"]>>;
5197
+ /** The Mac card when `approvals.popup` is on, else a banner on this
5198
+ * computer. Unset: "all" with the popup on, "off" without, which is
5199
+ * what this computer did before this setting. */
5200
+ computer: z.ZodOptional<z.ZodEnum<["all", "urgent", "off"]>>;
5201
+ }, "strip", z.ZodTypeAny, {
5202
+ phone: "all" | "off" | "urgent";
5203
+ computer?: "all" | "off" | "urgent" | undefined;
5204
+ }, {
5205
+ phone?: "all" | "off" | "urgent" | undefined;
5206
+ computer?: "all" | "off" | "urgent" | undefined;
5207
+ }>>;
5168
5208
  }, "strip", z.ZodTypeAny, {
5169
5209
  local: {
5170
5210
  sound: boolean;
@@ -5187,6 +5227,15 @@ declare const daemonConfigSchema: z.ZodObject<{
5187
5227
  addresses: string[];
5188
5228
  digestNags: boolean;
5189
5229
  };
5230
+ reach: {
5231
+ enabled: boolean;
5232
+ escalateAfterMinutes: number;
5233
+ ladder: string[];
5234
+ };
5235
+ desk: {
5236
+ phone: "all" | "off" | "urgent";
5237
+ computer?: "all" | "off" | "urgent" | undefined;
5238
+ };
5190
5239
  channel?: string | undefined;
5191
5240
  destination?: {
5192
5241
  channel: string;
@@ -5221,6 +5270,15 @@ declare const daemonConfigSchema: z.ZodObject<{
5221
5270
  addresses?: string[] | undefined;
5222
5271
  digestNags?: boolean | undefined;
5223
5272
  } | undefined;
5273
+ reach?: {
5274
+ enabled?: boolean | undefined;
5275
+ escalateAfterMinutes?: number | undefined;
5276
+ ladder?: string[] | undefined;
5277
+ } | undefined;
5278
+ desk?: {
5279
+ phone?: "all" | "off" | "urgent" | undefined;
5280
+ computer?: "all" | "off" | "urgent" | undefined;
5281
+ } | undefined;
5224
5282
  }>>;
5225
5283
  calls: z.ZodDefault<z.ZodObject<{
5226
5284
  /** Agents allowed to call: ids, or "*" for every agent on this node.
@@ -6155,6 +6213,111 @@ declare const daemonConfigSchema: z.ZodObject<{
6155
6213
  repos?: Record<string, string> | undefined;
6156
6214
  checkEveryMinutes?: number | undefined;
6157
6215
  }>>;
6216
+ /** Status follows the work (src/requests/drift, #1138 step F): merged
6217
+ * merge requests are mapped to the issues they close, and an issue
6218
+ * whose status label no longer says what happened (merged but still
6219
+ * Doing, live but still Review, Done but not live) is reported to the
6220
+ * owner once. Only the projects listed are read. Writing the label
6221
+ * back is a second switch, off by default. */
6222
+ statusDrift: z.ZodDefault<z.ZodObject<{
6223
+ enabled: z.ZodDefault<z.ZodBoolean>;
6224
+ /** Minutes between two checks. Each one reads the forges. */
6225
+ checkEveryMinutes: z.ZodDefault<z.ZodNumber>;
6226
+ /** How far back merged merge requests are read. */
6227
+ lookbackDays: z.ZodDefault<z.ZodNumber>;
6228
+ projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
6229
+ provider: z.ZodEnum<["gitlab", "github"]>;
6230
+ /** "group/project" on GitLab, "owner/repo" on GitHub. */
6231
+ project: z.ZodEffects<z.ZodString, string, string>;
6232
+ /** Where the running commit is read: "self" (this node's own build)
6233
+ * or a health URL whose JSON has it under `liveField`. Every one
6234
+ * must run a commit for it to count as live. Empty: live is not
6235
+ * known, and only merged-but-not-in-Review is reported. */
6236
+ live: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"self">, z.ZodString]>, "many">>;
6237
+ /** A clone named in requests.checkers.repos: the live check runs
6238
+ * git there instead of asking the forge. */
6239
+ repo: z.ZodOptional<z.ZodString>;
6240
+ }, "strip", z.ZodTypeAny, {
6241
+ provider: "gitlab" | "github";
6242
+ project: string;
6243
+ live: string[];
6244
+ repo?: string | undefined;
6245
+ }, {
6246
+ provider: "gitlab" | "github";
6247
+ project: string;
6248
+ repo?: string | undefined;
6249
+ live?: string[] | undefined;
6250
+ }>, "many">>;
6251
+ /** The JSON field of a health URL that holds the running commit. */
6252
+ liveField: z.ZodDefault<z.ZodString>;
6253
+ /** The status labels, any case. The first label of a status is the
6254
+ * one written. */
6255
+ labels: z.ZodDefault<z.ZodObject<{
6256
+ todo: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6257
+ doing: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6258
+ review: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6259
+ done: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6260
+ }, "strip", z.ZodTypeAny, {
6261
+ done: string[];
6262
+ todo: string[];
6263
+ doing: string[];
6264
+ review: string[];
6265
+ }, {
6266
+ done?: string[] | undefined;
6267
+ todo?: string[] | undefined;
6268
+ doing?: string[] | undefined;
6269
+ review?: string[] | undefined;
6270
+ }>>;
6271
+ /** Done but not live is told only once a merge has waited this many
6272
+ * hours to go live: forges close the issue at merge, before a deploy. */
6273
+ doneNotLiveAfterHours: z.ZodDefault<z.ZodNumber>;
6274
+ /** Write mode: an issue whose work is live gets its Done label (its
6275
+ * other status labels removed) and a note quoting the proof. Never
6276
+ * closes an issue. Needs the project in `writeProjects` too. */
6277
+ write: z.ZodDefault<z.ZodBoolean>;
6278
+ /** Projects write mode may change, as listed under `projects`. */
6279
+ writeProjects: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6280
+ }, "strip", z.ZodTypeAny, {
6281
+ enabled: boolean;
6282
+ projects: {
6283
+ provider: "gitlab" | "github";
6284
+ project: string;
6285
+ live: string[];
6286
+ repo?: string | undefined;
6287
+ }[];
6288
+ labels: {
6289
+ done: string[];
6290
+ todo: string[];
6291
+ doing: string[];
6292
+ review: string[];
6293
+ };
6294
+ write: boolean;
6295
+ checkEveryMinutes: number;
6296
+ lookbackDays: number;
6297
+ liveField: string;
6298
+ doneNotLiveAfterHours: number;
6299
+ writeProjects: string[];
6300
+ }, {
6301
+ enabled?: boolean | undefined;
6302
+ projects?: {
6303
+ provider: "gitlab" | "github";
6304
+ project: string;
6305
+ repo?: string | undefined;
6306
+ live?: string[] | undefined;
6307
+ }[] | undefined;
6308
+ labels?: {
6309
+ done?: string[] | undefined;
6310
+ todo?: string[] | undefined;
6311
+ doing?: string[] | undefined;
6312
+ review?: string[] | undefined;
6313
+ } | undefined;
6314
+ write?: boolean | undefined;
6315
+ checkEveryMinutes?: number | undefined;
6316
+ lookbackDays?: number | undefined;
6317
+ liveField?: string | undefined;
6318
+ doneNotLiveAfterHours?: number | undefined;
6319
+ writeProjects?: string[] | undefined;
6320
+ }>>;
6158
6321
  /** Headlines (src/requests/headline.ts, #1126): a request the agent did
6159
6322
  * not describe gets a few words saying what it is, written once by one
6160
6323
  * small model call, so its card, push and Desk line are not titled with
@@ -6212,6 +6375,27 @@ declare const daemonConfigSchema: z.ZodObject<{
6212
6375
  timeoutSeconds: number;
6213
6376
  };
6214
6377
  settleHandedBack: boolean;
6378
+ statusDrift: {
6379
+ enabled: boolean;
6380
+ projects: {
6381
+ provider: "gitlab" | "github";
6382
+ project: string;
6383
+ live: string[];
6384
+ repo?: string | undefined;
6385
+ }[];
6386
+ labels: {
6387
+ done: string[];
6388
+ todo: string[];
6389
+ doing: string[];
6390
+ review: string[];
6391
+ };
6392
+ write: boolean;
6393
+ checkEveryMinutes: number;
6394
+ lookbackDays: number;
6395
+ liveField: string;
6396
+ doneNotLiveAfterHours: number;
6397
+ writeProjects: string[];
6398
+ };
6215
6399
  }, {
6216
6400
  enabled?: boolean | undefined;
6217
6401
  from?: string[] | undefined;
@@ -6247,6 +6431,27 @@ declare const daemonConfigSchema: z.ZodObject<{
6247
6431
  timeoutSeconds?: number | undefined;
6248
6432
  } | undefined;
6249
6433
  settleHandedBack?: boolean | undefined;
6434
+ statusDrift?: {
6435
+ enabled?: boolean | undefined;
6436
+ projects?: {
6437
+ provider: "gitlab" | "github";
6438
+ project: string;
6439
+ repo?: string | undefined;
6440
+ live?: string[] | undefined;
6441
+ }[] | undefined;
6442
+ labels?: {
6443
+ done?: string[] | undefined;
6444
+ todo?: string[] | undefined;
6445
+ doing?: string[] | undefined;
6446
+ review?: string[] | undefined;
6447
+ } | undefined;
6448
+ write?: boolean | undefined;
6449
+ checkEveryMinutes?: number | undefined;
6450
+ lookbackDays?: number | undefined;
6451
+ liveField?: string | undefined;
6452
+ doneNotLiveAfterHours?: number | undefined;
6453
+ writeProjects?: string[] | undefined;
6454
+ } | undefined;
6250
6455
  }>>;
6251
6456
  /** Task watchers (src/watchers, #1030): every task start decides whether
6252
6457
  * the task needs a watcher and attaches one. Off by default. */
@@ -6316,11 +6521,11 @@ declare const daemonConfigSchema: z.ZodObject<{
6316
6521
  linkHosts: string[];
6317
6522
  }>;
6318
6523
  retentionDays: number;
6524
+ escalateAfterMinutes: number;
6319
6525
  skipChannels: string[];
6320
6526
  defaultDueMinutes: number;
6321
6527
  noBelow: number;
6322
6528
  yesAt: number;
6323
- escalateAfterMinutes: number;
6324
6529
  doneSignal: "result" | "explicit";
6325
6530
  }, {
6326
6531
  enabled?: boolean | undefined;
@@ -6334,11 +6539,11 @@ declare const daemonConfigSchema: z.ZodObject<{
6334
6539
  linkHosts?: string[] | undefined;
6335
6540
  }> | undefined;
6336
6541
  retentionDays?: number | undefined;
6542
+ escalateAfterMinutes?: number | undefined;
6337
6543
  skipChannels?: string[] | undefined;
6338
6544
  defaultDueMinutes?: number | undefined;
6339
6545
  noBelow?: number | undefined;
6340
6546
  yesAt?: number | undefined;
6341
- escalateAfterMinutes?: number | undefined;
6342
6547
  doneSignal?: "result" | "explicit" | undefined;
6343
6548
  }>>, {
6344
6549
  enabled: boolean;
@@ -6352,11 +6557,11 @@ declare const daemonConfigSchema: z.ZodObject<{
6352
6557
  linkHosts: string[];
6353
6558
  }>;
6354
6559
  retentionDays: number;
6560
+ escalateAfterMinutes: number;
6355
6561
  skipChannels: string[];
6356
6562
  defaultDueMinutes: number;
6357
6563
  noBelow: number;
6358
6564
  yesAt: number;
6359
- escalateAfterMinutes: number;
6360
6565
  doneSignal: "result" | "explicit";
6361
6566
  }, {
6362
6567
  enabled?: boolean | undefined;
@@ -6370,11 +6575,11 @@ declare const daemonConfigSchema: z.ZodObject<{
6370
6575
  linkHosts?: string[] | undefined;
6371
6576
  }> | undefined;
6372
6577
  retentionDays?: number | undefined;
6578
+ escalateAfterMinutes?: number | undefined;
6373
6579
  skipChannels?: string[] | undefined;
6374
6580
  defaultDueMinutes?: number | undefined;
6375
6581
  noBelow?: number | undefined;
6376
6582
  yesAt?: number | undefined;
6377
- escalateAfterMinutes?: number | undefined;
6378
6583
  doneSignal?: "result" | "explicit" | undefined;
6379
6584
  } | undefined>;
6380
6585
  people: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -9128,15 +9333,6 @@ declare const daemonConfigSchema: z.ZodObject<{
9128
9333
  types: string[];
9129
9334
  candidates: number;
9130
9335
  };
9131
- shared: boolean;
9132
- candidates: number;
9133
- sharedCandidates: number;
9134
- maxPages: number;
9135
- pageChars: number;
9136
- linkedPages: number;
9137
- linkedChars: number;
9138
- navigatorModel: string;
9139
- answerModel: string;
9140
9336
  live: {
9141
9337
  enabled: boolean;
9142
9338
  timeoutMs: number;
@@ -9166,6 +9362,15 @@ declare const daemonConfigSchema: z.ZodObject<{
9166
9362
  url?: string | undefined;
9167
9363
  })[];
9168
9364
  };
9365
+ shared: boolean;
9366
+ candidates: number;
9367
+ sharedCandidates: number;
9368
+ maxPages: number;
9369
+ pageChars: number;
9370
+ linkedPages: number;
9371
+ linkedChars: number;
9372
+ navigatorModel: string;
9373
+ answerModel: string;
9169
9374
  };
9170
9375
  contributions: {
9171
9376
  model: string;
@@ -9307,6 +9512,27 @@ declare const daemonConfigSchema: z.ZodObject<{
9307
9512
  timeoutSeconds: number;
9308
9513
  };
9309
9514
  settleHandedBack: boolean;
9515
+ statusDrift: {
9516
+ enabled: boolean;
9517
+ projects: {
9518
+ provider: "gitlab" | "github";
9519
+ project: string;
9520
+ live: string[];
9521
+ repo?: string | undefined;
9522
+ }[];
9523
+ labels: {
9524
+ done: string[];
9525
+ todo: string[];
9526
+ doing: string[];
9527
+ review: string[];
9528
+ };
9529
+ write: boolean;
9530
+ checkEveryMinutes: number;
9531
+ lookbackDays: number;
9532
+ liveField: string;
9533
+ doneNotLiveAfterHours: number;
9534
+ writeProjects: string[];
9535
+ };
9310
9536
  };
9311
9537
  channels: {
9312
9538
  push: {
@@ -9625,6 +9851,15 @@ declare const daemonConfigSchema: z.ZodObject<{
9625
9851
  addresses: string[];
9626
9852
  digestNags: boolean;
9627
9853
  };
9854
+ reach: {
9855
+ enabled: boolean;
9856
+ escalateAfterMinutes: number;
9857
+ ladder: string[];
9858
+ };
9859
+ desk: {
9860
+ phone: "all" | "off" | "urgent";
9861
+ computer?: "all" | "off" | "urgent" | undefined;
9862
+ };
9628
9863
  channel?: string | undefined;
9629
9864
  destination?: {
9630
9865
  channel: string;
@@ -9738,11 +9973,11 @@ declare const daemonConfigSchema: z.ZodObject<{
9738
9973
  linkHosts: string[];
9739
9974
  }>;
9740
9975
  retentionDays: number;
9976
+ escalateAfterMinutes: number;
9741
9977
  skipChannels: string[];
9742
9978
  defaultDueMinutes: number;
9743
9979
  noBelow: number;
9744
9980
  yesAt: number;
9745
- escalateAfterMinutes: number;
9746
9981
  doneSignal: "result" | "explicit";
9747
9982
  };
9748
9983
  people: {
@@ -10242,15 +10477,6 @@ declare const daemonConfigSchema: z.ZodObject<{
10242
10477
  types?: string[] | undefined;
10243
10478
  candidates?: number | undefined;
10244
10479
  } | undefined;
10245
- shared?: boolean | undefined;
10246
- candidates?: number | undefined;
10247
- sharedCandidates?: number | undefined;
10248
- maxPages?: number | undefined;
10249
- pageChars?: number | undefined;
10250
- linkedPages?: number | undefined;
10251
- linkedChars?: number | undefined;
10252
- navigatorModel?: string | undefined;
10253
- answerModel?: string | undefined;
10254
10480
  live?: {
10255
10481
  enabled?: boolean | undefined;
10256
10482
  timeoutMs?: number | undefined;
@@ -10280,6 +10506,15 @@ declare const daemonConfigSchema: z.ZodObject<{
10280
10506
  peers?: boolean | undefined;
10281
10507
  })[] | undefined;
10282
10508
  } | undefined;
10509
+ shared?: boolean | undefined;
10510
+ candidates?: number | undefined;
10511
+ sharedCandidates?: number | undefined;
10512
+ maxPages?: number | undefined;
10513
+ pageChars?: number | undefined;
10514
+ linkedPages?: number | undefined;
10515
+ linkedChars?: number | undefined;
10516
+ navigatorModel?: string | undefined;
10517
+ answerModel?: string | undefined;
10283
10518
  } | undefined;
10284
10519
  contributions?: {
10285
10520
  model?: string | undefined;
@@ -10489,6 +10724,27 @@ declare const daemonConfigSchema: z.ZodObject<{
10489
10724
  timeoutSeconds?: number | undefined;
10490
10725
  } | undefined;
10491
10726
  settleHandedBack?: boolean | undefined;
10727
+ statusDrift?: {
10728
+ enabled?: boolean | undefined;
10729
+ projects?: {
10730
+ provider: "gitlab" | "github";
10731
+ project: string;
10732
+ repo?: string | undefined;
10733
+ live?: string[] | undefined;
10734
+ }[] | undefined;
10735
+ labels?: {
10736
+ done?: string[] | undefined;
10737
+ todo?: string[] | undefined;
10738
+ doing?: string[] | undefined;
10739
+ review?: string[] | undefined;
10740
+ } | undefined;
10741
+ write?: boolean | undefined;
10742
+ checkEveryMinutes?: number | undefined;
10743
+ lookbackDays?: number | undefined;
10744
+ liveField?: string | undefined;
10745
+ doneNotLiveAfterHours?: number | undefined;
10746
+ writeProjects?: string[] | undefined;
10747
+ } | undefined;
10492
10748
  } | undefined;
10493
10749
  channels?: {
10494
10750
  push?: {
@@ -10806,6 +11062,15 @@ declare const daemonConfigSchema: z.ZodObject<{
10806
11062
  addresses?: string[] | undefined;
10807
11063
  digestNags?: boolean | undefined;
10808
11064
  } | undefined;
11065
+ reach?: {
11066
+ enabled?: boolean | undefined;
11067
+ escalateAfterMinutes?: number | undefined;
11068
+ ladder?: string[] | undefined;
11069
+ } | undefined;
11070
+ desk?: {
11071
+ phone?: "all" | "off" | "urgent" | undefined;
11072
+ computer?: "all" | "off" | "urgent" | undefined;
11073
+ } | undefined;
10809
11074
  } | undefined;
10810
11075
  calls?: {
10811
11076
  summary?: boolean | undefined;
@@ -10913,11 +11178,11 @@ declare const daemonConfigSchema: z.ZodObject<{
10913
11178
  linkHosts?: string[] | undefined;
10914
11179
  }> | undefined;
10915
11180
  retentionDays?: number | undefined;
11181
+ escalateAfterMinutes?: number | undefined;
10916
11182
  skipChannels?: string[] | undefined;
10917
11183
  defaultDueMinutes?: number | undefined;
10918
11184
  noBelow?: number | undefined;
10919
11185
  yesAt?: number | undefined;
10920
- escalateAfterMinutes?: number | undefined;
10921
11186
  doneSignal?: "result" | "explicit" | undefined;
10922
11187
  } | undefined;
10923
11188
  people?: {
@@ -12039,6 +12304,9 @@ declare class AgentXDaemon {
12039
12304
  private requests;
12040
12305
  /** The told-the-owner gate (#1126). Null without a database. */
12041
12306
  private ownerGate;
12307
+ /** Where the owner is and did it land (#1138 step B). Null without a database. */
12308
+ private reach;
12309
+ private reachTimer?;
12042
12310
  private toldPrunedAt;
12043
12311
  /** Guest meshes (#380): the grants this node opened, and the join limiter. */
12044
12312
  private guestStore;
@@ -12047,6 +12315,10 @@ declare class AgentXDaemon {
12047
12315
  * is the owner's (requests/operator, #393). */
12048
12316
  private operatorKey;
12049
12317
  private requestsSweeping;
12318
+ /** Status drift (#1138 step F): its last check, and one at a time. */
12319
+ private driftAt;
12320
+ private driftSweeping;
12321
+ private readonly driftLiveCache;
12050
12322
  /** Task watchers (src/watchers, #1030). */
12051
12323
  private watchers;
12052
12324
  private watchersSweeping;
@@ -12065,6 +12337,7 @@ declare class AgentXDaemon {
12065
12337
  /** On the push host: the subscriptions table relayed phones use (#711). */
12066
12338
  private pushHost?;
12067
12339
  private approvalsSweeping;
12340
+ private deskRoutingBusy;
12068
12341
  private mirroring;
12069
12342
  /** One pass of the Reminders mirror, when it is on and this machine
12070
12343
  * has a task app (src/approvals/mirror.ts). */
@@ -12072,6 +12345,10 @@ declare class AgentXDaemon {
12072
12345
  /** Every minute: expire decision cards, tell agents their results, and
12073
12346
  * send the day's digest when due (src/approvals/sweep.ts). */
12074
12347
  private startApprovalsSweep;
12348
+ /** notifications.desk with its defaults worked out (desk/route.ts). */
12349
+ private deskRouting;
12350
+ /** New items on the owner's one list, to the phone and this computer. */
12351
+ private routeDeskItems;
12075
12352
  /** The result turn on the agent that raised a card. Fire and forget:
12076
12353
  * neither the sweep nor a peer's request waits on a model. */
12077
12354
  private tellAgentCardResult;
@@ -12109,6 +12386,10 @@ declare class AgentXDaemon {
12109
12386
  * approved messages sent, the owner told at the end or on a block
12110
12387
  * (src/requests/plan-sweep.ts, #788). One check at a time. */
12111
12388
  private sweepPlans;
12389
+ /** Status follows the work (src/requests/drift, #1138 step F): beside
12390
+ * the requests check, at its own pace, since each check reads the
12391
+ * forges. Reports drift to the owner; writes a label only in write mode. */
12392
+ private statusDriftTick;
12112
12393
  /** What the loop checkers read (#1039): the forges through the
12113
12394
  * configured connectors, the local clones under requests.checkers.repos,
12114
12395
  * and this node's own record of inbound turns. Built per check, so a
@@ -12128,6 +12409,9 @@ declare class AgentXDaemon {
12128
12409
  private waitForChat;
12129
12410
  /** The watcher checkpoint at every task start (src/watchers, #1030). */
12130
12411
  private attachTaskWatchers;
12412
+ /** Reach (#1138 step B): presence, seen/answered marks, the urgent
12413
+ * ladder and channel health, checked once a minute. */
12414
+ private attachReach;
12131
12415
  /** Tell the owner through the notify path: a push to the default
12132
12416
  * channel, the Mac banner where there is one (#788). */
12133
12417
  private notifyOwner;
@@ -12714,6 +12998,13 @@ interface ChannelAdapter {
12714
12998
  react?(chatId: string, messageId: string, emoji?: string): Promise<void>;
12715
12999
  /** Register handler for incoming messages */
12716
13000
  onMessage(handler: (msg: IncomingMessage) => Promise<void>): void;
13001
+ /** Can a send go out now (#1138 step B)? A channel that can tell it is
13002
+ * down says so, and the router refuses sends to it with the reason
13003
+ * instead of reporting them sent. Absent: taken as up. */
13004
+ health?(): {
13005
+ up: boolean;
13006
+ reason?: string;
13007
+ };
12717
13008
  /** Get verified context for a chat (optional — channels implement what they can) */
12718
13009
  getChannelMeta?(chatId: string): Promise<ChannelMeta | undefined>;
12719
13010
  /** Fetch the most recent messages from the live channel for cold-start
@@ -17547,6 +17838,8 @@ declare class BusinessLayer {
17547
17838
 
17548
17839
  type TellKind = "notice" | "nag";
17549
17840
  type TellOutcome = "sent" | "held" | "digest" | "repeat" | "failed";
17841
+ /** Where a row that went out stands: sent, seen by the owner, answered. */
17842
+ type TellState = "sent" | "seen" | "answered";
17550
17843
  /** What a caller says about a message to the owner. All optional: a bare
17551
17844
  * message on an owner channel is a notice keyed by its text. */
17552
17845
  interface TellMeta {
@@ -17577,6 +17870,20 @@ interface ToldRow {
17577
17870
  text: string;
17578
17871
  outcome: TellOutcome;
17579
17872
  digestedAt: number | null;
17873
+ /** Sent as urgent: the reach ladder may send it once more (reach.ts). */
17874
+ urgent: boolean;
17875
+ /** When the owner saw it, and how ("phone", "desk", "reply"). */
17876
+ seenAt: number | null;
17877
+ seenVia: string | null;
17878
+ /** When the owner answered it, and how ("reply", "desk", "card"). */
17879
+ answeredAt: number | null;
17880
+ answeredVia: string | null;
17881
+ /** When it was sent on to the next channel, unseen. */
17882
+ escalatedAt: number | null;
17883
+ /** On an escalation: the row it carries on. */
17884
+ escalationOf: number | null;
17885
+ /** sent → seen → answered, for a row that went out. */
17886
+ state: TellState;
17580
17887
  }
17581
17888
  interface TellSettings {
17582
17889
  enabled: boolean;
@@ -17588,10 +17895,16 @@ interface TellSettings {
17588
17895
  * sent at once, or it would never reach anyone. Unset: true. */
17589
17896
  digestAvailable?: boolean;
17590
17897
  }
17898
+ /** The fields a new row is written with. */
17899
+ type NewToldRow = Omit<ToldRow, "id" | "digestedAt" | "urgent" | "seenAt" | "seenVia" | "answeredAt" | "answeredVia" | "escalatedAt" | "escalationOf" | "state"> & {
17900
+ urgent?: boolean;
17901
+ escalationOf?: number | null;
17902
+ };
17591
17903
  declare class ToldLedger {
17592
17904
  private db;
17593
17905
  constructor(db: Database.Database);
17594
- add(row: Omit<ToldRow, "id" | "digestedAt">): number;
17906
+ add(row: NewToldRow): number;
17907
+ get(id: number): ToldRow | null;
17595
17908
  setOutcome(id: number, outcome: TellOutcome): void;
17596
17909
  /** The last time this item reached the owner, or was put in the digest
17597
17910
  * (unless `digest` is false: no digest will carry it), since `since`.
@@ -17605,6 +17918,9 @@ declare class ToldLedger {
17605
17918
  since(since: number, limit?: number): ToldRow[];
17606
17919
  /** How many of each outcome since `since`: the before/after figure. */
17607
17920
  counts(since: number): Record<TellOutcome, number>;
17921
+ /** Of the rows that went out since `since` (sent, or held and sent
17922
+ * later): how many are still only sent, seen, answered (#1138 step B). */
17923
+ states(since: number): Record<TellState, number>;
17608
17924
  /** Delete rows older than `before`. */
17609
17925
  prune(before: number): number;
17610
17926
  }
@@ -17642,6 +17958,7 @@ declare class OwnerGate {
17642
17958
  * newest rows. */
17643
17959
  report(since: number, limit?: number): {
17644
17960
  counts: Record<TellOutcome, number>;
17961
+ landed: Record<TellState, number>;
17645
17962
  waitingForDigest: number;
17646
17963
  items: ToldRow[];
17647
17964
  };
@@ -17808,6 +18125,21 @@ declare class MessageRouter {
17808
18125
  * reply to a turn the registry just ran (A2A callbacks, #277). */
17809
18126
  recordInSession?: boolean;
17810
18127
  }): Promise<string | void>;
18128
+ /** Channels switched off at runtime (POST /channels/<name>/switch),
18129
+ * with the reason. Until switched on or the daemon restarts. */
18130
+ private switchedOff;
18131
+ /** Switch a channel off (refused like a down one) or back on. */
18132
+ setChannelSwitch(name: string, on: boolean, reason?: string): void;
18133
+ /** Can a send to this channel go out now? */
18134
+ channelHealth(name: string): {
18135
+ up: boolean;
18136
+ reason?: string;
18137
+ };
18138
+ /** Every registered channel's health, by name. */
18139
+ channelsHealth(): Record<string, {
18140
+ up: boolean;
18141
+ reason?: string;
18142
+ }>;
17811
18143
  /** List registered channel names. */
17812
18144
  getChannelNames(): string[];
17813
18145
  startAll(): Promise<void>;
@@ -18320,6 +18652,8 @@ declare class WhatsAppAdapter implements ChannelAdapter {
18320
18652
  private onStatus?;
18321
18653
  /** Fires once when the adapter stops reconnecting, so the owner hears about a silent channel. */
18322
18654
  private onGiveUp?;
18655
+ /** The last connection update of the current socket. */
18656
+ private connection;
18323
18657
  constructor(config: {
18324
18658
  sessionDir: string;
18325
18659
  defaultAgent?: string;
@@ -18350,6 +18684,13 @@ declare class WhatsAppAdapter implements ChannelAdapter {
18350
18684
  stop(): Promise<void>;
18351
18685
  private clearStableTimer;
18352
18686
  private resetReconnect;
18687
+ /** Down without a socket, or once the connection closed and was not
18688
+ * reopened (#1138 step B). Connecting counts as up: a reconnect takes
18689
+ * seconds, and the watch only reports a channel down on two checks. */
18690
+ health(): {
18691
+ up: boolean;
18692
+ reason?: string;
18693
+ };
18353
18694
  send(msg: OutgoingMessage): Promise<string>;
18354
18695
  editMessage(chatId: string, messageId: string, text: string): Promise<boolean>;
18355
18696
  sendTyping(chatId: string): Promise<void>;