agentix-cli 0.166.0 → 0.168.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 (184) hide show
  1. package/README.md +2 -2
  2. package/dist/{App-UOZT7MWS.js → App-GK5F6QMB.js} +2 -2
  3. package/dist/{ChatApp-N7REHHH3.js → ChatApp-4HHJB4HM.js} +2 -2
  4. package/dist/absorb-eval-PO7TUGT2.js +2 -0
  5. package/dist/agent-6WKET7JZ.js +2 -0
  6. package/dist/{board-dashboard-4C77NLY5.js → board-dashboard-ESAX2ZFV.js} +436 -403
  7. package/dist/board-dashboard-ESAX2ZFV.js.map +1 -0
  8. package/dist/{chunk-NHWYEIET.js → chunk-5PEXL5LD.js} +6 -6
  9. package/dist/{chunk-L7RPH3T7.js → chunk-5QI7XFTA.js} +2 -2
  10. package/dist/{chunk-TCC56PYX.js → chunk-BAXGL6TY.js} +2 -2
  11. package/dist/{chunk-JMZNI257.js → chunk-BRQKV4FC.js} +2 -2
  12. package/dist/{chunk-B7QHC7N4.js → chunk-CBXPIKPJ.js} +2 -2
  13. package/dist/{chunk-33KKV3YU.js → chunk-COMJ7R5T.js} +2 -2
  14. package/dist/{chunk-6QLRRSKU.js → chunk-DCIYOPJF.js} +15 -15
  15. package/dist/chunk-DCIYOPJF.js.map +1 -0
  16. package/dist/{chunk-7FH2FEFA.js → chunk-DCJHCUEQ.js} +2 -2
  17. package/dist/{chunk-QLJ3OMPL.js → chunk-E67Z6OYF.js} +2 -2
  18. package/dist/chunk-E7Y4G3FK.js +185 -0
  19. package/dist/chunk-E7Y4G3FK.js.map +1 -0
  20. package/dist/{chunk-XQ2EFLQW.js → chunk-EEM433JK.js} +28 -28
  21. package/dist/{chunk-XQ2EFLQW.js.map → chunk-EEM433JK.js.map} +1 -1
  22. package/dist/chunk-FEA3XMVU.js +580 -0
  23. package/dist/chunk-FEA3XMVU.js.map +1 -0
  24. package/dist/chunk-GZIHLADX.js +4 -0
  25. package/dist/chunk-GZIHLADX.js.map +1 -0
  26. package/dist/{chunk-G3T73GGF.js → chunk-HFSPH5WM.js} +2 -2
  27. package/dist/{chunk-XJYGMCAV.js → chunk-HRN4WKSJ.js} +363 -304
  28. package/dist/chunk-HRN4WKSJ.js.map +1 -0
  29. package/dist/{chunk-IJZNM5PS.js → chunk-JKMFMW3E.js} +2 -2
  30. package/dist/chunk-KMPUUH5R.js +137 -0
  31. package/dist/chunk-KMPUUH5R.js.map +1 -0
  32. package/dist/{chunk-YKHK47G5.js → chunk-KWY5IBII.js} +2 -2
  33. package/dist/{chunk-TM2TPQKH.js → chunk-LE3BXIUF.js} +2 -2
  34. package/dist/chunk-LXW7H4D4.js +2 -0
  35. package/dist/chunk-LXW7H4D4.js.map +1 -0
  36. package/dist/chunk-NKCS6EZ7.js +92 -0
  37. package/dist/chunk-NKCS6EZ7.js.map +1 -0
  38. package/dist/{chunk-BQXKTQCX.js → chunk-PIJ6ECBC.js} +2 -2
  39. package/dist/chunk-RX5O5637.js +7 -0
  40. package/dist/chunk-RX5O5637.js.map +1 -0
  41. package/dist/{chunk-LQTTLXZY.js → chunk-S34KFBMJ.js} +3 -3
  42. package/dist/{chunk-XML72AUF.js → chunk-TVGVQABC.js} +2 -2
  43. package/dist/{chunk-7O43PB6O.js → chunk-U4PICSLC.js} +2 -2
  44. package/dist/{chunk-AFLZHY5Y.js → chunk-U5SJLLXH.js} +2 -2
  45. package/dist/{chunk-LM3K7U6H.js → chunk-UF5TWOKL.js} +15 -15
  46. package/dist/chunk-UF5TWOKL.js.map +1 -0
  47. package/dist/chunk-UKKOBMOP.js +8 -0
  48. package/dist/chunk-UKKOBMOP.js.map +1 -0
  49. package/dist/{chunk-BNOGNRAM.js → chunk-VD2P4GWU.js} +2 -2
  50. package/dist/{chunk-64POGFQZ.js → chunk-YQM6VR6U.js} +2 -2
  51. package/dist/{chunk-QGKNDGH5.js → chunk-Z6ZR2ELO.js} +2 -2
  52. package/dist/{chunk-SXKC2LH7.js → chunk-ZTIOHZIL.js} +2 -2
  53. package/dist/cli.js +1 -1
  54. package/dist/client-DOIYODET.js +2 -0
  55. package/dist/{compaction-VN3M5YGZ.js → compaction-26OHHULF.js} +3 -3
  56. package/dist/config-3UBJRE5R.js +2 -0
  57. package/dist/config-mutate-ZRPDYJKN.js +2 -0
  58. package/dist/config-mutator-B5MR3V4B.js +2 -0
  59. package/dist/{context-planner-2XBAPQ3S.js → context-planner-CVCRW5TV.js} +2 -2
  60. package/dist/{contributions-MUCJKT73.js → contributions-2CJFYRZ7.js} +2 -2
  61. package/dist/{doctor-2N2MX5YP.js → doctor-OQZMDL5S.js} +2 -2
  62. package/dist/{follow-up-tool-W64LMQQN.js → follow-up-tool-PQUPXQQT.js} +2 -2
  63. package/dist/{grants-YGA654NI.js → grants-4O2VF2YX.js} +2 -2
  64. package/dist/heal-ZS56MC4A.js +2 -0
  65. package/dist/hub-LOW7KS5N.js +2 -0
  66. package/dist/index.d.ts +563 -3
  67. package/dist/index.js +1 -1
  68. package/dist/index.js.map +1 -1
  69. package/dist/memory-extract-NLVLQE7V.js +2 -0
  70. package/dist/{program-6YMRDLHO.js → program-7W2LJKDN.js} +298 -273
  71. package/dist/program-7W2LJKDN.js.map +1 -0
  72. package/dist/{promote-OUSVJZ64.js → promote-ZWQAL3RE.js} +2 -2
  73. package/dist/{providers-VVT2OBXA.js → providers-F5GDJSYD.js} +2 -2
  74. package/dist/push-bridge-NR7SLHGX.js +1 -1
  75. package/dist/query-N4EJ24LW.js +2 -0
  76. package/dist/{query-settings-2TNLXEL5.js → query-settings-RZV5ELLC.js} +2 -2
  77. package/dist/registry-EBYOZK3P.js +2 -0
  78. package/dist/{request-planner-7HEHLPA3.js → request-planner-KCG6QB6M.js} +2 -2
  79. package/dist/{review-candidates-NJNMSOCX.js → review-candidates-3GHWVJQ3.js} +2 -2
  80. package/dist/routing-XULOU6BI.js +2 -0
  81. package/dist/schedule-tool-ALZXDGGC.js +2 -0
  82. package/dist/scheduler-SCVCNKJC.js +2 -0
  83. package/dist/{seat-CAYDECW2.js → seat-PD7W3KAN.js} +2 -2
  84. package/dist/{select-QUVE6RN2.js → select-Z3YXBGUP.js} +2 -2
  85. package/dist/{set-enabled-BWJN4IVG.js → set-enabled-NJYJWDWH.js} +2 -2
  86. package/dist/sprint-tool-OLHZZAK3.js +7 -0
  87. package/dist/sprint-tool-OLHZZAK3.js.map +1 -0
  88. package/dist/tool-7IKZO33P.js +4 -0
  89. package/dist/tool-7IKZO33P.js.map +1 -0
  90. package/dist/{tool-FZ4UXMON.js → tool-EVQBMGJV.js} +2 -2
  91. package/dist/{tool-UC7OZWIB.js → tool-XH5QN6JM.js} +2 -2
  92. package/dist/wiki-BPOTYAQV.js +2 -0
  93. package/dist/wiki-enrich-JCNGRYQZ.js +2 -0
  94. package/package.json +1 -1
  95. package/dist/absorb-eval-MT3ZDYBM.js +0 -2
  96. package/dist/agent-SUAQ7EBM.js +0 -2
  97. package/dist/board-dashboard-4C77NLY5.js.map +0 -1
  98. package/dist/chunk-2QNT5JDS.js +0 -4
  99. package/dist/chunk-2QNT5JDS.js.map +0 -1
  100. package/dist/chunk-6QLRRSKU.js.map +0 -1
  101. package/dist/chunk-7UIK4S6T.js +0 -128
  102. package/dist/chunk-7UIK4S6T.js.map +0 -1
  103. package/dist/chunk-A2D3PNDA.js +0 -578
  104. package/dist/chunk-A2D3PNDA.js.map +0 -1
  105. package/dist/chunk-AE3U4GR6.js +0 -181
  106. package/dist/chunk-AE3U4GR6.js.map +0 -1
  107. package/dist/chunk-APPTSTL5.js +0 -2
  108. package/dist/chunk-APPTSTL5.js.map +0 -1
  109. package/dist/chunk-B6GVATMI.js +0 -92
  110. package/dist/chunk-B6GVATMI.js.map +0 -1
  111. package/dist/chunk-LM3K7U6H.js.map +0 -1
  112. package/dist/chunk-XJYGMCAV.js.map +0 -1
  113. package/dist/chunk-YQ25AGX6.js +0 -8
  114. package/dist/chunk-YQ25AGX6.js.map +0 -1
  115. package/dist/client-6ZHYSQU6.js +0 -2
  116. package/dist/config-WCEFYQL4.js +0 -2
  117. package/dist/config-mutate-LW366SKL.js +0 -2
  118. package/dist/config-mutator-NRHZ2XH3.js +0 -2
  119. package/dist/heal-KCM6JYUK.js +0 -2
  120. package/dist/hub-4ODFNGHL.js +0 -2
  121. package/dist/memory-extract-4JFORU2K.js +0 -2
  122. package/dist/program-6YMRDLHO.js.map +0 -1
  123. package/dist/query-QVK5EN3P.js +0 -2
  124. package/dist/registry-BYIWNEFL.js +0 -2
  125. package/dist/routing-HCSXNUOY.js +0 -2
  126. package/dist/schedule-tool-LJYBLCLV.js +0 -2
  127. package/dist/scheduler-74MXJLQS.js +0 -2
  128. package/dist/wiki-KNSPJT2O.js +0 -2
  129. package/dist/wiki-enrich-RVRTAQQF.js +0 -2
  130. /package/dist/{App-UOZT7MWS.js.map → App-GK5F6QMB.js.map} +0 -0
  131. /package/dist/{ChatApp-N7REHHH3.js.map → ChatApp-4HHJB4HM.js.map} +0 -0
  132. /package/dist/{absorb-eval-MT3ZDYBM.js.map → absorb-eval-PO7TUGT2.js.map} +0 -0
  133. /package/dist/{agent-SUAQ7EBM.js.map → agent-6WKET7JZ.js.map} +0 -0
  134. /package/dist/{chunk-NHWYEIET.js.map → chunk-5PEXL5LD.js.map} +0 -0
  135. /package/dist/{chunk-L7RPH3T7.js.map → chunk-5QI7XFTA.js.map} +0 -0
  136. /package/dist/{chunk-TCC56PYX.js.map → chunk-BAXGL6TY.js.map} +0 -0
  137. /package/dist/{chunk-JMZNI257.js.map → chunk-BRQKV4FC.js.map} +0 -0
  138. /package/dist/{chunk-B7QHC7N4.js.map → chunk-CBXPIKPJ.js.map} +0 -0
  139. /package/dist/{chunk-33KKV3YU.js.map → chunk-COMJ7R5T.js.map} +0 -0
  140. /package/dist/{chunk-7FH2FEFA.js.map → chunk-DCJHCUEQ.js.map} +0 -0
  141. /package/dist/{chunk-QLJ3OMPL.js.map → chunk-E67Z6OYF.js.map} +0 -0
  142. /package/dist/{chunk-G3T73GGF.js.map → chunk-HFSPH5WM.js.map} +0 -0
  143. /package/dist/{chunk-IJZNM5PS.js.map → chunk-JKMFMW3E.js.map} +0 -0
  144. /package/dist/{chunk-YKHK47G5.js.map → chunk-KWY5IBII.js.map} +0 -0
  145. /package/dist/{chunk-TM2TPQKH.js.map → chunk-LE3BXIUF.js.map} +0 -0
  146. /package/dist/{chunk-BQXKTQCX.js.map → chunk-PIJ6ECBC.js.map} +0 -0
  147. /package/dist/{chunk-LQTTLXZY.js.map → chunk-S34KFBMJ.js.map} +0 -0
  148. /package/dist/{chunk-XML72AUF.js.map → chunk-TVGVQABC.js.map} +0 -0
  149. /package/dist/{chunk-7O43PB6O.js.map → chunk-U4PICSLC.js.map} +0 -0
  150. /package/dist/{chunk-AFLZHY5Y.js.map → chunk-U5SJLLXH.js.map} +0 -0
  151. /package/dist/{chunk-BNOGNRAM.js.map → chunk-VD2P4GWU.js.map} +0 -0
  152. /package/dist/{chunk-64POGFQZ.js.map → chunk-YQM6VR6U.js.map} +0 -0
  153. /package/dist/{chunk-QGKNDGH5.js.map → chunk-Z6ZR2ELO.js.map} +0 -0
  154. /package/dist/{chunk-SXKC2LH7.js.map → chunk-ZTIOHZIL.js.map} +0 -0
  155. /package/dist/{client-6ZHYSQU6.js.map → client-DOIYODET.js.map} +0 -0
  156. /package/dist/{compaction-VN3M5YGZ.js.map → compaction-26OHHULF.js.map} +0 -0
  157. /package/dist/{config-WCEFYQL4.js.map → config-3UBJRE5R.js.map} +0 -0
  158. /package/dist/{config-mutate-LW366SKL.js.map → config-mutate-ZRPDYJKN.js.map} +0 -0
  159. /package/dist/{config-mutator-NRHZ2XH3.js.map → config-mutator-B5MR3V4B.js.map} +0 -0
  160. /package/dist/{context-planner-2XBAPQ3S.js.map → context-planner-CVCRW5TV.js.map} +0 -0
  161. /package/dist/{contributions-MUCJKT73.js.map → contributions-2CJFYRZ7.js.map} +0 -0
  162. /package/dist/{doctor-2N2MX5YP.js.map → doctor-OQZMDL5S.js.map} +0 -0
  163. /package/dist/{follow-up-tool-W64LMQQN.js.map → follow-up-tool-PQUPXQQT.js.map} +0 -0
  164. /package/dist/{grants-YGA654NI.js.map → grants-4O2VF2YX.js.map} +0 -0
  165. /package/dist/{heal-KCM6JYUK.js.map → heal-ZS56MC4A.js.map} +0 -0
  166. /package/dist/{hub-4ODFNGHL.js.map → hub-LOW7KS5N.js.map} +0 -0
  167. /package/dist/{memory-extract-4JFORU2K.js.map → memory-extract-NLVLQE7V.js.map} +0 -0
  168. /package/dist/{promote-OUSVJZ64.js.map → promote-ZWQAL3RE.js.map} +0 -0
  169. /package/dist/{providers-VVT2OBXA.js.map → providers-F5GDJSYD.js.map} +0 -0
  170. /package/dist/{query-QVK5EN3P.js.map → query-N4EJ24LW.js.map} +0 -0
  171. /package/dist/{query-settings-2TNLXEL5.js.map → query-settings-RZV5ELLC.js.map} +0 -0
  172. /package/dist/{registry-BYIWNEFL.js.map → registry-EBYOZK3P.js.map} +0 -0
  173. /package/dist/{request-planner-7HEHLPA3.js.map → request-planner-KCG6QB6M.js.map} +0 -0
  174. /package/dist/{review-candidates-NJNMSOCX.js.map → review-candidates-3GHWVJQ3.js.map} +0 -0
  175. /package/dist/{routing-HCSXNUOY.js.map → routing-XULOU6BI.js.map} +0 -0
  176. /package/dist/{schedule-tool-LJYBLCLV.js.map → schedule-tool-ALZXDGGC.js.map} +0 -0
  177. /package/dist/{scheduler-74MXJLQS.js.map → scheduler-SCVCNKJC.js.map} +0 -0
  178. /package/dist/{seat-CAYDECW2.js.map → seat-PD7W3KAN.js.map} +0 -0
  179. /package/dist/{select-QUVE6RN2.js.map → select-Z3YXBGUP.js.map} +0 -0
  180. /package/dist/{set-enabled-BWJN4IVG.js.map → set-enabled-NJYJWDWH.js.map} +0 -0
  181. /package/dist/{tool-FZ4UXMON.js.map → tool-EVQBMGJV.js.map} +0 -0
  182. /package/dist/{tool-UC7OZWIB.js.map → tool-XH5QN6JM.js.map} +0 -0
  183. /package/dist/{wiki-KNSPJT2O.js.map → wiki-BPOTYAQV.js.map} +0 -0
  184. /package/dist/{wiki-enrich-RVRTAQQF.js.map → wiki-enrich-JCNGRYQZ.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -1702,6 +1702,29 @@ declare const agentConfigSchema: z.ZodObject<{
1702
1702
  openHours?: number | undefined;
1703
1703
  launchTimeoutSeconds?: number | undefined;
1704
1704
  }>>;
1705
+ /** Run each local task for an issue (GitHub, GitLab, Linear, Jira) in a
1706
+ * git worktree of its own, on the branch `agentx/issue-<n>` (#1292).
1707
+ * Off by default. The checkout is the project rule's `runbook` path or
1708
+ * the agent's workspace; for a forge issue its origin must be the
1709
+ * issue's repository. Pull and merge request tasks keep running in the
1710
+ * checkout. See src/agents/task-worktrees.ts. */
1711
+ worktrees: z.ZodDefault<z.ZodObject<{
1712
+ enabled: z.ZodDefault<z.ZodBoolean>;
1713
+ /** Folder for the worktrees. Unset: `.agentx-worktrees/<checkout
1714
+ * name>` beside the checkout. */
1715
+ root: z.ZodOptional<z.ZodString>;
1716
+ /** A worktree no task used for this many days, with no uncommitted
1717
+ * change, is removed. Its branch is kept. */
1718
+ maxAgeDays: z.ZodDefault<z.ZodNumber>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ enabled: boolean;
1721
+ maxAgeDays: number;
1722
+ root?: string | undefined;
1723
+ }, {
1724
+ enabled?: boolean | undefined;
1725
+ root?: string | undefined;
1726
+ maxAgeDays?: number | undefined;
1727
+ }>>;
1705
1728
  /** Improvement plan #3 — tool-use-required preset. When set,
1706
1729
  * AgentX inspects the stream-json events from each task and
1707
1730
  * fails the response with `tool_required_not_called: <name>`
@@ -1788,17 +1811,22 @@ declare const agentConfigSchema: z.ZodObject<{
1788
1811
  /** wake only: no wake when the agent was already woken this many times
1789
1812
  * in the past hour. */
1790
1813
  maxPerHour: z.ZodDefault<z.ZodNumber>;
1814
+ /** wake only: what to do next when this event arrives. Added to the
1815
+ * woken turn's message after the event itself (#1284). */
1816
+ prompt: z.ZodOptional<z.ZodString>;
1791
1817
  }, "strip", z.ZodTypeAny, {
1792
1818
  kinds: string[];
1793
1819
  delivery: "pull" | "digest" | "wake";
1794
1820
  maxPerHour: number;
1795
1821
  match?: string | undefined;
1796
1822
  agents?: string[] | undefined;
1823
+ prompt?: string | undefined;
1797
1824
  nodes?: string[] | undefined;
1798
1825
  }, {
1799
1826
  kinds: string[];
1800
1827
  match?: string | undefined;
1801
1828
  agents?: string[] | undefined;
1829
+ prompt?: string | undefined;
1802
1830
  nodes?: string[] | undefined;
1803
1831
  delivery?: "pull" | "digest" | "wake" | undefined;
1804
1832
  maxPerHour?: number | undefined;
@@ -1999,6 +2027,11 @@ declare const agentConfigSchema: z.ZodObject<{
1999
2027
  openHours: number;
2000
2028
  launchTimeoutSeconds: number;
2001
2029
  };
2030
+ worktrees: {
2031
+ enabled: boolean;
2032
+ maxAgeDays: number;
2033
+ root?: string | undefined;
2034
+ };
2002
2035
  toolUseRequired: string[];
2003
2036
  persistentProcess: boolean;
2004
2037
  queueMode: "drop" | "followup" | "collect";
@@ -2008,6 +2041,7 @@ declare const agentConfigSchema: z.ZodObject<{
2008
2041
  maxPerHour: number;
2009
2042
  match?: string | undefined;
2010
2043
  agents?: string[] | undefined;
2044
+ prompt?: string | undefined;
2011
2045
  nodes?: string[] | undefined;
2012
2046
  }[];
2013
2047
  integrations: {
@@ -2158,6 +2192,11 @@ declare const agentConfigSchema: z.ZodObject<{
2158
2192
  openHours?: number | undefined;
2159
2193
  launchTimeoutSeconds?: number | undefined;
2160
2194
  } | undefined;
2195
+ worktrees?: {
2196
+ enabled?: boolean | undefined;
2197
+ root?: string | undefined;
2198
+ maxAgeDays?: number | undefined;
2199
+ } | undefined;
2161
2200
  toolUseRequired?: string[] | undefined;
2162
2201
  gitlabAutoReply?: boolean | undefined;
2163
2202
  persistentProcess?: boolean | undefined;
@@ -2166,6 +2205,7 @@ declare const agentConfigSchema: z.ZodObject<{
2166
2205
  kinds: string[];
2167
2206
  match?: string | undefined;
2168
2207
  agents?: string[] | undefined;
2208
+ prompt?: string | undefined;
2169
2209
  nodes?: string[] | undefined;
2170
2210
  delivery?: "pull" | "digest" | "wake" | undefined;
2171
2211
  maxPerHour?: number | undefined;
@@ -2265,6 +2305,15 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2265
2305
  * to report reports there, including the chat an agent's schedule was
2266
2306
  * requested from (#738). `false` keeps `notify` for failure alerts only. */
2267
2307
  deliverResult: z.ZodOptional<z.ZodBoolean>;
2308
+ /** `exceptions`: the run decides whether there is anything to say. It is
2309
+ * asked to answer exactly NOTHING_TO_REPORT when all is as expected, and
2310
+ * such a quiet run sends nothing to `notify` (#1289). Failures are
2311
+ * alerted either way. Unset or `always`: every answer is sent. */
2312
+ report: z.ZodOptional<z.ZodEnum<["always", "exceptions"]>>;
2313
+ /** Check the answer before it is delivered: every line that states a
2314
+ * fact must carry a source link, or the owner is told which do not
2315
+ * (#1288). See src/sales/sources.ts. */
2316
+ requireSources: z.ZodOptional<z.ZodBoolean>;
2268
2317
  /** Secret that lets an external system fire this job now via
2269
2318
  * `POST /routines/<id>/fire`. Reference an env var (`"${MY_TOKEN}"`);
2270
2319
  * a job without one cannot be fired. See src/daemon/routine-fire.ts. */
@@ -2303,6 +2352,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2303
2352
  why: string;
2304
2353
  metric: string;
2305
2354
  } | undefined;
2355
+ report?: "always" | "exceptions" | undefined;
2306
2356
  command?: string | undefined;
2307
2357
  notify?: {
2308
2358
  channel: string;
@@ -2319,6 +2369,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2319
2369
  maxOutputTokens?: number | undefined;
2320
2370
  autonomy?: "report" | "propose" | "act" | undefined;
2321
2371
  deliverResult?: boolean | undefined;
2372
+ requireSources?: boolean | undefined;
2322
2373
  fireToken?: string | undefined;
2323
2374
  }, {
2324
2375
  agent: string;
@@ -2329,6 +2380,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2329
2380
  metric: string;
2330
2381
  } | undefined;
2331
2382
  enabled?: boolean | undefined;
2383
+ report?: "always" | "exceptions" | undefined;
2332
2384
  command?: string | undefined;
2333
2385
  prompt?: string | undefined;
2334
2386
  timeout?: number | undefined;
@@ -2349,6 +2401,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2349
2401
  autonomy?: "report" | "propose" | "act" | undefined;
2350
2402
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
2351
2403
  deliverResult?: boolean | undefined;
2404
+ requireSources?: boolean | undefined;
2352
2405
  fireToken?: string | undefined;
2353
2406
  }>, {
2354
2407
  enabled: boolean;
@@ -2363,6 +2416,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2363
2416
  why: string;
2364
2417
  metric: string;
2365
2418
  } | undefined;
2419
+ report?: "always" | "exceptions" | undefined;
2366
2420
  command?: string | undefined;
2367
2421
  notify?: {
2368
2422
  channel: string;
@@ -2379,6 +2433,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2379
2433
  maxOutputTokens?: number | undefined;
2380
2434
  autonomy?: "report" | "propose" | "act" | undefined;
2381
2435
  deliverResult?: boolean | undefined;
2436
+ requireSources?: boolean | undefined;
2382
2437
  fireToken?: string | undefined;
2383
2438
  }, {
2384
2439
  agent: string;
@@ -2389,6 +2444,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2389
2444
  metric: string;
2390
2445
  } | undefined;
2391
2446
  enabled?: boolean | undefined;
2447
+ report?: "always" | "exceptions" | undefined;
2392
2448
  command?: string | undefined;
2393
2449
  prompt?: string | undefined;
2394
2450
  timeout?: number | undefined;
@@ -2409,6 +2465,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2409
2465
  autonomy?: "report" | "propose" | "act" | undefined;
2410
2466
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
2411
2467
  deliverResult?: boolean | undefined;
2468
+ requireSources?: boolean | undefined;
2412
2469
  fireToken?: string | undefined;
2413
2470
  }>, {
2414
2471
  enabled: boolean;
@@ -2423,6 +2480,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2423
2480
  why: string;
2424
2481
  metric: string;
2425
2482
  } | undefined;
2483
+ report?: "always" | "exceptions" | undefined;
2426
2484
  command?: string | undefined;
2427
2485
  notify?: {
2428
2486
  channel: string;
@@ -2439,6 +2497,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2439
2497
  maxOutputTokens?: number | undefined;
2440
2498
  autonomy?: "report" | "propose" | "act" | undefined;
2441
2499
  deliverResult?: boolean | undefined;
2500
+ requireSources?: boolean | undefined;
2442
2501
  fireToken?: string | undefined;
2443
2502
  }, {
2444
2503
  agent: string;
@@ -2449,6 +2508,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2449
2508
  metric: string;
2450
2509
  } | undefined;
2451
2510
  enabled?: boolean | undefined;
2511
+ report?: "always" | "exceptions" | undefined;
2452
2512
  command?: string | undefined;
2453
2513
  prompt?: string | undefined;
2454
2514
  timeout?: number | undefined;
@@ -2469,6 +2529,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2469
2529
  autonomy?: "report" | "propose" | "act" | undefined;
2470
2530
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
2471
2531
  deliverResult?: boolean | undefined;
2532
+ requireSources?: boolean | undefined;
2472
2533
  fireToken?: string | undefined;
2473
2534
  }>;
2474
2535
  declare const meshPeerSchema: z.ZodObject<{
@@ -2740,6 +2801,29 @@ declare const daemonConfigSchema: z.ZodObject<{
2740
2801
  openHours?: number | undefined;
2741
2802
  launchTimeoutSeconds?: number | undefined;
2742
2803
  }>>;
2804
+ /** Run each local task for an issue (GitHub, GitLab, Linear, Jira) in a
2805
+ * git worktree of its own, on the branch `agentx/issue-<n>` (#1292).
2806
+ * Off by default. The checkout is the project rule's `runbook` path or
2807
+ * the agent's workspace; for a forge issue its origin must be the
2808
+ * issue's repository. Pull and merge request tasks keep running in the
2809
+ * checkout. See src/agents/task-worktrees.ts. */
2810
+ worktrees: z.ZodDefault<z.ZodObject<{
2811
+ enabled: z.ZodDefault<z.ZodBoolean>;
2812
+ /** Folder for the worktrees. Unset: `.agentx-worktrees/<checkout
2813
+ * name>` beside the checkout. */
2814
+ root: z.ZodOptional<z.ZodString>;
2815
+ /** A worktree no task used for this many days, with no uncommitted
2816
+ * change, is removed. Its branch is kept. */
2817
+ maxAgeDays: z.ZodDefault<z.ZodNumber>;
2818
+ }, "strip", z.ZodTypeAny, {
2819
+ enabled: boolean;
2820
+ maxAgeDays: number;
2821
+ root?: string | undefined;
2822
+ }, {
2823
+ enabled?: boolean | undefined;
2824
+ root?: string | undefined;
2825
+ maxAgeDays?: number | undefined;
2826
+ }>>;
2743
2827
  /** Improvement plan #3 — tool-use-required preset. When set,
2744
2828
  * AgentX inspects the stream-json events from each task and
2745
2829
  * fails the response with `tool_required_not_called: <name>`
@@ -2826,17 +2910,22 @@ declare const daemonConfigSchema: z.ZodObject<{
2826
2910
  /** wake only: no wake when the agent was already woken this many times
2827
2911
  * in the past hour. */
2828
2912
  maxPerHour: z.ZodDefault<z.ZodNumber>;
2913
+ /** wake only: what to do next when this event arrives. Added to the
2914
+ * woken turn's message after the event itself (#1284). */
2915
+ prompt: z.ZodOptional<z.ZodString>;
2829
2916
  }, "strip", z.ZodTypeAny, {
2830
2917
  kinds: string[];
2831
2918
  delivery: "pull" | "digest" | "wake";
2832
2919
  maxPerHour: number;
2833
2920
  match?: string | undefined;
2834
2921
  agents?: string[] | undefined;
2922
+ prompt?: string | undefined;
2835
2923
  nodes?: string[] | undefined;
2836
2924
  }, {
2837
2925
  kinds: string[];
2838
2926
  match?: string | undefined;
2839
2927
  agents?: string[] | undefined;
2928
+ prompt?: string | undefined;
2840
2929
  nodes?: string[] | undefined;
2841
2930
  delivery?: "pull" | "digest" | "wake" | undefined;
2842
2931
  maxPerHour?: number | undefined;
@@ -3037,6 +3126,11 @@ declare const daemonConfigSchema: z.ZodObject<{
3037
3126
  openHours: number;
3038
3127
  launchTimeoutSeconds: number;
3039
3128
  };
3129
+ worktrees: {
3130
+ enabled: boolean;
3131
+ maxAgeDays: number;
3132
+ root?: string | undefined;
3133
+ };
3040
3134
  toolUseRequired: string[];
3041
3135
  persistentProcess: boolean;
3042
3136
  queueMode: "drop" | "followup" | "collect";
@@ -3046,6 +3140,7 @@ declare const daemonConfigSchema: z.ZodObject<{
3046
3140
  maxPerHour: number;
3047
3141
  match?: string | undefined;
3048
3142
  agents?: string[] | undefined;
3143
+ prompt?: string | undefined;
3049
3144
  nodes?: string[] | undefined;
3050
3145
  }[];
3051
3146
  integrations: {
@@ -3196,6 +3291,11 @@ declare const daemonConfigSchema: z.ZodObject<{
3196
3291
  openHours?: number | undefined;
3197
3292
  launchTimeoutSeconds?: number | undefined;
3198
3293
  } | undefined;
3294
+ worktrees?: {
3295
+ enabled?: boolean | undefined;
3296
+ root?: string | undefined;
3297
+ maxAgeDays?: number | undefined;
3298
+ } | undefined;
3199
3299
  toolUseRequired?: string[] | undefined;
3200
3300
  gitlabAutoReply?: boolean | undefined;
3201
3301
  persistentProcess?: boolean | undefined;
@@ -3204,6 +3304,7 @@ declare const daemonConfigSchema: z.ZodObject<{
3204
3304
  kinds: string[];
3205
3305
  match?: string | undefined;
3206
3306
  agents?: string[] | undefined;
3307
+ prompt?: string | undefined;
3207
3308
  nodes?: string[] | undefined;
3208
3309
  delivery?: "pull" | "digest" | "wake" | undefined;
3209
3310
  maxPerHour?: number | undefined;
@@ -4892,6 +4993,15 @@ declare const daemonConfigSchema: z.ZodObject<{
4892
4993
  * to report reports there, including the chat an agent's schedule was
4893
4994
  * requested from (#738). `false` keeps `notify` for failure alerts only. */
4894
4995
  deliverResult: z.ZodOptional<z.ZodBoolean>;
4996
+ /** `exceptions`: the run decides whether there is anything to say. It is
4997
+ * asked to answer exactly NOTHING_TO_REPORT when all is as expected, and
4998
+ * such a quiet run sends nothing to `notify` (#1289). Failures are
4999
+ * alerted either way. Unset or `always`: every answer is sent. */
5000
+ report: z.ZodOptional<z.ZodEnum<["always", "exceptions"]>>;
5001
+ /** Check the answer before it is delivered: every line that states a
5002
+ * fact must carry a source link, or the owner is told which do not
5003
+ * (#1288). See src/sales/sources.ts. */
5004
+ requireSources: z.ZodOptional<z.ZodBoolean>;
4895
5005
  /** Secret that lets an external system fire this job now via
4896
5006
  * `POST /routines/<id>/fire`. Reference an env var (`"${MY_TOKEN}"`);
4897
5007
  * a job without one cannot be fired. See src/daemon/routine-fire.ts. */
@@ -4930,6 +5040,7 @@ declare const daemonConfigSchema: z.ZodObject<{
4930
5040
  why: string;
4931
5041
  metric: string;
4932
5042
  } | undefined;
5043
+ report?: "always" | "exceptions" | undefined;
4933
5044
  command?: string | undefined;
4934
5045
  notify?: {
4935
5046
  channel: string;
@@ -4946,6 +5057,7 @@ declare const daemonConfigSchema: z.ZodObject<{
4946
5057
  maxOutputTokens?: number | undefined;
4947
5058
  autonomy?: "report" | "propose" | "act" | undefined;
4948
5059
  deliverResult?: boolean | undefined;
5060
+ requireSources?: boolean | undefined;
4949
5061
  fireToken?: string | undefined;
4950
5062
  }, {
4951
5063
  agent: string;
@@ -4956,6 +5068,7 @@ declare const daemonConfigSchema: z.ZodObject<{
4956
5068
  metric: string;
4957
5069
  } | undefined;
4958
5070
  enabled?: boolean | undefined;
5071
+ report?: "always" | "exceptions" | undefined;
4959
5072
  command?: string | undefined;
4960
5073
  prompt?: string | undefined;
4961
5074
  timeout?: number | undefined;
@@ -4976,6 +5089,7 @@ declare const daemonConfigSchema: z.ZodObject<{
4976
5089
  autonomy?: "report" | "propose" | "act" | undefined;
4977
5090
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
4978
5091
  deliverResult?: boolean | undefined;
5092
+ requireSources?: boolean | undefined;
4979
5093
  fireToken?: string | undefined;
4980
5094
  }>, {
4981
5095
  enabled: boolean;
@@ -4990,6 +5104,7 @@ declare const daemonConfigSchema: z.ZodObject<{
4990
5104
  why: string;
4991
5105
  metric: string;
4992
5106
  } | undefined;
5107
+ report?: "always" | "exceptions" | undefined;
4993
5108
  command?: string | undefined;
4994
5109
  notify?: {
4995
5110
  channel: string;
@@ -5006,6 +5121,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5006
5121
  maxOutputTokens?: number | undefined;
5007
5122
  autonomy?: "report" | "propose" | "act" | undefined;
5008
5123
  deliverResult?: boolean | undefined;
5124
+ requireSources?: boolean | undefined;
5009
5125
  fireToken?: string | undefined;
5010
5126
  }, {
5011
5127
  agent: string;
@@ -5016,6 +5132,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5016
5132
  metric: string;
5017
5133
  } | undefined;
5018
5134
  enabled?: boolean | undefined;
5135
+ report?: "always" | "exceptions" | undefined;
5019
5136
  command?: string | undefined;
5020
5137
  prompt?: string | undefined;
5021
5138
  timeout?: number | undefined;
@@ -5036,6 +5153,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5036
5153
  autonomy?: "report" | "propose" | "act" | undefined;
5037
5154
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
5038
5155
  deliverResult?: boolean | undefined;
5156
+ requireSources?: boolean | undefined;
5039
5157
  fireToken?: string | undefined;
5040
5158
  }>, {
5041
5159
  enabled: boolean;
@@ -5050,6 +5168,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5050
5168
  why: string;
5051
5169
  metric: string;
5052
5170
  } | undefined;
5171
+ report?: "always" | "exceptions" | undefined;
5053
5172
  command?: string | undefined;
5054
5173
  notify?: {
5055
5174
  channel: string;
@@ -5066,6 +5185,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5066
5185
  maxOutputTokens?: number | undefined;
5067
5186
  autonomy?: "report" | "propose" | "act" | undefined;
5068
5187
  deliverResult?: boolean | undefined;
5188
+ requireSources?: boolean | undefined;
5069
5189
  fireToken?: string | undefined;
5070
5190
  }, {
5071
5191
  agent: string;
@@ -5076,6 +5196,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5076
5196
  metric: string;
5077
5197
  } | undefined;
5078
5198
  enabled?: boolean | undefined;
5199
+ report?: "always" | "exceptions" | undefined;
5079
5200
  command?: string | undefined;
5080
5201
  prompt?: string | undefined;
5081
5202
  timeout?: number | undefined;
@@ -5096,8 +5217,51 @@ declare const daemonConfigSchema: z.ZodObject<{
5096
5217
  autonomy?: "report" | "propose" | "act" | undefined;
5097
5218
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
5098
5219
  deliverResult?: boolean | undefined;
5220
+ requireSources?: boolean | undefined;
5099
5221
  fireToken?: string | undefined;
5100
5222
  }>>>;
5223
+ /** One message a day that lists only what is wrong: failed or missed
5224
+ * schedules, stuck requests, paused agents (#1289). Nothing wrong,
5225
+ * nothing sent. See src/crons/exceptions-digest.ts. */
5226
+ exceptionsDigest: z.ZodDefault<z.ZodObject<{
5227
+ enabled: z.ZodDefault<z.ZodBoolean>;
5228
+ /** Local time, 24-hour HH:MM. */
5229
+ time: z.ZodDefault<z.ZodString>;
5230
+ /** IANA timezone for `time`. Unset: this machine's. */
5231
+ timezone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5232
+ /** Where it goes. Unset: notifications.destination. */
5233
+ destination: z.ZodOptional<z.ZodObject<{
5234
+ channel: z.ZodString;
5235
+ chatId: z.ZodString;
5236
+ accountId: z.ZodOptional<z.ZodString>;
5237
+ }, "strip", z.ZodTypeAny, {
5238
+ channel: string;
5239
+ chatId: string;
5240
+ accountId?: string | undefined;
5241
+ }, {
5242
+ channel: string;
5243
+ chatId: string;
5244
+ accountId?: string | undefined;
5245
+ }>>;
5246
+ }, "strip", z.ZodTypeAny, {
5247
+ enabled: boolean;
5248
+ time: string;
5249
+ timezone?: string | undefined;
5250
+ destination?: {
5251
+ channel: string;
5252
+ chatId: string;
5253
+ accountId?: string | undefined;
5254
+ } | undefined;
5255
+ }, {
5256
+ enabled?: boolean | undefined;
5257
+ timezone?: string | undefined;
5258
+ time?: string | undefined;
5259
+ destination?: {
5260
+ channel: string;
5261
+ chatId: string;
5262
+ accountId?: string | undefined;
5263
+ } | undefined;
5264
+ }>>;
5101
5265
  /** Notes agents leave for the wiki observe/sweep run (#825). */
5102
5266
  wikiNotes: z.ZodDefault<z.ZodEffects<z.ZodObject<{
5103
5267
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -5623,6 +5787,155 @@ declare const daemonConfigSchema: z.ZodObject<{
5623
5787
  autoAck?: boolean | undefined;
5624
5788
  }[] | undefined;
5625
5789
  }>>;
5790
+ /** Linear and Jira issues as work for agents and as review criteria (#1292). */
5791
+ trackers: z.ZodDefault<z.ZodObject<{
5792
+ linear: z.ZodDefault<z.ZodObject<{
5793
+ enabled: z.ZodDefault<z.ZodBoolean>;
5794
+ apiKeyEnv: z.ZodDefault<z.ZodString>;
5795
+ webhookSecretEnv: z.ZodDefault<z.ZodString>;
5796
+ /** Adding this label to an issue hands it to its team's agent. */
5797
+ label: z.ZodDefault<z.ZodString>;
5798
+ routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
5799
+ /** The agent that gets the labelled issues. Must run on this node. */
5800
+ agent: z.ZodString;
5801
+ /** A local clone of the repository the work lands in. With the agent's
5802
+ * `worktrees` on, each issue gets a worktree of it. */
5803
+ checkout: z.ZodOptional<z.ZodString>;
5804
+ } & {
5805
+ team: z.ZodString;
5806
+ }, "strip", z.ZodTypeAny, {
5807
+ agent: string;
5808
+ team: string;
5809
+ checkout?: string | undefined;
5810
+ }, {
5811
+ agent: string;
5812
+ team: string;
5813
+ checkout?: string | undefined;
5814
+ }>, "many">>;
5815
+ }, "strip", z.ZodTypeAny, {
5816
+ enabled: boolean;
5817
+ label: string;
5818
+ apiKeyEnv: string;
5819
+ routes: {
5820
+ agent: string;
5821
+ team: string;
5822
+ checkout?: string | undefined;
5823
+ }[];
5824
+ webhookSecretEnv: string;
5825
+ }, {
5826
+ enabled?: boolean | undefined;
5827
+ label?: string | undefined;
5828
+ apiKeyEnv?: string | undefined;
5829
+ routes?: {
5830
+ agent: string;
5831
+ team: string;
5832
+ checkout?: string | undefined;
5833
+ }[] | undefined;
5834
+ webhookSecretEnv?: string | undefined;
5835
+ }>>;
5836
+ jira: z.ZodDefault<z.ZodObject<{
5837
+ enabled: z.ZodDefault<z.ZodBoolean>;
5838
+ /** "https://example.atlassian.net", or your Jira Server address. */
5839
+ baseUrl: z.ZodOptional<z.ZodString>;
5840
+ /** Jira Cloud: the account's email. Leave the variable unset for Jira
5841
+ * Server, whose personal access token is sent on its own. */
5842
+ emailEnv: z.ZodDefault<z.ZodString>;
5843
+ tokenEnv: z.ZodDefault<z.ZodString>;
5844
+ webhookSecretEnv: z.ZodDefault<z.ZodString>;
5845
+ label: z.ZodDefault<z.ZodString>;
5846
+ routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
5847
+ /** The agent that gets the labelled issues. Must run on this node. */
5848
+ agent: z.ZodString;
5849
+ /** A local clone of the repository the work lands in. With the agent's
5850
+ * `worktrees` on, each issue gets a worktree of it. */
5851
+ checkout: z.ZodOptional<z.ZodString>;
5852
+ } & {
5853
+ project: z.ZodString;
5854
+ }, "strip", z.ZodTypeAny, {
5855
+ agent: string;
5856
+ project: string;
5857
+ checkout?: string | undefined;
5858
+ }, {
5859
+ agent: string;
5860
+ project: string;
5861
+ checkout?: string | undefined;
5862
+ }>, "many">>;
5863
+ }, "strip", z.ZodTypeAny, {
5864
+ enabled: boolean;
5865
+ label: string;
5866
+ tokenEnv: string;
5867
+ routes: {
5868
+ agent: string;
5869
+ project: string;
5870
+ checkout?: string | undefined;
5871
+ }[];
5872
+ webhookSecretEnv: string;
5873
+ emailEnv: string;
5874
+ baseUrl?: string | undefined;
5875
+ }, {
5876
+ enabled?: boolean | undefined;
5877
+ label?: string | undefined;
5878
+ baseUrl?: string | undefined;
5879
+ tokenEnv?: string | undefined;
5880
+ routes?: {
5881
+ agent: string;
5882
+ project: string;
5883
+ checkout?: string | undefined;
5884
+ }[] | undefined;
5885
+ webhookSecretEnv?: string | undefined;
5886
+ emailEnv?: string | undefined;
5887
+ }>>;
5888
+ }, "strip", z.ZodTypeAny, {
5889
+ linear: {
5890
+ enabled: boolean;
5891
+ label: string;
5892
+ apiKeyEnv: string;
5893
+ routes: {
5894
+ agent: string;
5895
+ team: string;
5896
+ checkout?: string | undefined;
5897
+ }[];
5898
+ webhookSecretEnv: string;
5899
+ };
5900
+ jira: {
5901
+ enabled: boolean;
5902
+ label: string;
5903
+ tokenEnv: string;
5904
+ routes: {
5905
+ agent: string;
5906
+ project: string;
5907
+ checkout?: string | undefined;
5908
+ }[];
5909
+ webhookSecretEnv: string;
5910
+ emailEnv: string;
5911
+ baseUrl?: string | undefined;
5912
+ };
5913
+ }, {
5914
+ linear?: {
5915
+ enabled?: boolean | undefined;
5916
+ label?: string | undefined;
5917
+ apiKeyEnv?: string | undefined;
5918
+ routes?: {
5919
+ agent: string;
5920
+ team: string;
5921
+ checkout?: string | undefined;
5922
+ }[] | undefined;
5923
+ webhookSecretEnv?: string | undefined;
5924
+ } | undefined;
5925
+ jira?: {
5926
+ enabled?: boolean | undefined;
5927
+ label?: string | undefined;
5928
+ baseUrl?: string | undefined;
5929
+ tokenEnv?: string | undefined;
5930
+ routes?: {
5931
+ agent: string;
5932
+ project: string;
5933
+ checkout?: string | undefined;
5934
+ }[] | undefined;
5935
+ webhookSecretEnv?: string | undefined;
5936
+ emailEnv?: string | undefined;
5937
+ } | undefined;
5938
+ }>>;
5626
5939
  approvals: z.ZodDefault<z.ZodObject<{
5627
5940
  /** A card without an `expires` gets this many days. */
5628
5941
  defaultExpiryDays: z.ZodDefault<z.ZodNumber>;
@@ -5956,6 +6269,9 @@ declare const daemonConfigSchema: z.ZodObject<{
5956
6269
  /** Diffs longer than this many kilobytes are cut, and the reviewer is
5957
6270
  * told the diff is incomplete. */
5958
6271
  maxDiffKb: z.ZodDefault<z.ZodNumber>;
6272
+ /** Where the gate reviews: GitHub pull requests, GitLab merge requests
6273
+ * (#1292), or both. GitLab needs the GitLab channel and its token. */
6274
+ forges: z.ZodDefault<z.ZodArray<z.ZodEnum<["github", "gitlab"]>, "many">>;
5959
6275
  }, "strip", z.ZodTypeAny, {
5960
6276
  enabled: boolean;
5961
6277
  mode: "required" | "advisory";
@@ -5969,6 +6285,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5969
6285
  maxReviewsPerPrPerDay: number;
5970
6286
  ciWaitMinutes: number;
5971
6287
  maxDiffKb: number;
6288
+ forges: ("gitlab" | "github")[];
5972
6289
  }, {
5973
6290
  enabled?: boolean | undefined;
5974
6291
  mode?: "required" | "advisory" | undefined;
@@ -5982,6 +6299,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5982
6299
  maxReviewsPerPrPerDay?: number | undefined;
5983
6300
  ciWaitMinutes?: number | undefined;
5984
6301
  maxDiffKb?: number | undefined;
6302
+ forges?: ("gitlab" | "github")[] | undefined;
5985
6303
  }>>;
5986
6304
  /** Merge policy (#1047): core paths need a person's approval; the
5987
6305
  * commit status `agentx/merge-policy` says which a PR is. */
@@ -6055,6 +6373,7 @@ declare const daemonConfigSchema: z.ZodObject<{
6055
6373
  maxReviewsPerPrPerDay: number;
6056
6374
  ciWaitMinutes: number;
6057
6375
  maxDiffKb: number;
6376
+ forges: ("gitlab" | "github")[];
6058
6377
  };
6059
6378
  mergePolicy: {
6060
6379
  enabled: boolean;
@@ -6098,6 +6417,7 @@ declare const daemonConfigSchema: z.ZodObject<{
6098
6417
  maxReviewsPerPrPerDay?: number | undefined;
6099
6418
  ciWaitMinutes?: number | undefined;
6100
6419
  maxDiffKb?: number | undefined;
6420
+ forges?: ("gitlab" | "github")[] | undefined;
6101
6421
  } | undefined;
6102
6422
  mergePolicy?: {
6103
6423
  enabled?: boolean | undefined;
@@ -6185,6 +6505,19 @@ declare const daemonConfigSchema: z.ZodObject<{
6185
6505
  restarts?: number | undefined;
6186
6506
  windowMinutes?: number | undefined;
6187
6507
  }>>;
6508
+ /** A run stopped at its agent's time limit (maxExecutionMinutes) is
6509
+ * continued in the same chat, with a note, up to this many times
6510
+ * (#1257). Scheduled jobs and workflow steps never are. */
6511
+ timeLimit: z.ZodDefault<z.ZodObject<{
6512
+ enabled: z.ZodDefault<z.ZodBoolean>;
6513
+ maxContinuations: z.ZodDefault<z.ZodNumber>;
6514
+ }, "strip", z.ZodTypeAny, {
6515
+ enabled: boolean;
6516
+ maxContinuations: number;
6517
+ }, {
6518
+ enabled?: boolean | undefined;
6519
+ maxContinuations?: number | undefined;
6520
+ }>>;
6188
6521
  }, "strip", z.ZodTypeAny, {
6189
6522
  enabled: boolean;
6190
6523
  maxAgeMinutes: number;
@@ -6195,6 +6528,10 @@ declare const daemonConfigSchema: z.ZodObject<{
6195
6528
  restarts: number;
6196
6529
  windowMinutes: number;
6197
6530
  };
6531
+ timeLimit: {
6532
+ enabled: boolean;
6533
+ maxContinuations: number;
6534
+ };
6198
6535
  }, {
6199
6536
  enabled?: boolean | undefined;
6200
6537
  maxAgeMinutes?: number | undefined;
@@ -6205,6 +6542,10 @@ declare const daemonConfigSchema: z.ZodObject<{
6205
6542
  restarts?: number | undefined;
6206
6543
  windowMinutes?: number | undefined;
6207
6544
  } | undefined;
6545
+ timeLimit?: {
6546
+ enabled?: boolean | undefined;
6547
+ maxContinuations?: number | undefined;
6548
+ } | undefined;
6208
6549
  }>>;
6209
6550
  /** Stop and resume signals (agents/signals, #857): stop a running task
6210
6551
  * cleanly, keep the agent's resume plan, resume it later. The owner may
@@ -6362,6 +6703,21 @@ declare const daemonConfigSchema: z.ZodObject<{
6362
6703
  requireForWork?: string[] | undefined;
6363
6704
  requireOverMinutes?: number | undefined;
6364
6705
  }>>;
6706
+ /** Sprint lanes (src/requests/sprints.ts, #1241): a lead agent hands the
6707
+ * daemon lanes of items (agentx_sprint), and the daemon gives each lane
6708
+ * its next item when the lane's turn ends. Needs `enabled` above. */
6709
+ sprints: z.ZodDefault<z.ZodObject<{
6710
+ enabled: z.ZodDefault<z.ZodBoolean>;
6711
+ /** A lane idle with items left for this long is told to the owner. A
6712
+ * sprint can set its own. */
6713
+ idleMinutes: z.ZodDefault<z.ZodNumber>;
6714
+ }, "strip", z.ZodTypeAny, {
6715
+ enabled: boolean;
6716
+ idleMinutes: number;
6717
+ }, {
6718
+ enabled?: boolean | undefined;
6719
+ idleMinutes?: number | undefined;
6720
+ }>>;
6365
6721
  /** Checkers that close an open loop on evidence (src/requests/checkers,
6366
6722
  * #1039). A loop with a `closeWhen` closes when its check is met; an
6367
6723
  * agent's done on it is refused while the check says not met. */
@@ -6617,6 +6973,10 @@ declare const daemonConfigSchema: z.ZodObject<{
6617
6973
  waitingOwner: boolean;
6618
6974
  timeoutSeconds: number;
6619
6975
  };
6976
+ sprints: {
6977
+ enabled: boolean;
6978
+ idleMinutes: number;
6979
+ };
6620
6980
  }, {
6621
6981
  enabled?: boolean | undefined;
6622
6982
  from?: string[] | undefined;
@@ -6688,6 +7048,10 @@ declare const daemonConfigSchema: z.ZodObject<{
6688
7048
  waitingOwner?: boolean | undefined;
6689
7049
  timeoutSeconds?: number | undefined;
6690
7050
  } | undefined;
7051
+ sprints?: {
7052
+ enabled?: boolean | undefined;
7053
+ idleMinutes?: number | undefined;
7054
+ } | undefined;
6691
7055
  }>>;
6692
7056
  /** Task watchers (src/watchers, #1030): every task start decides whether
6693
7057
  * the task needs a watcher and attaches one. Off by default. */
@@ -9310,8 +9674,8 @@ declare const daemonConfigSchema: z.ZodObject<{
9310
9674
  * them while ToolSearch is available, so a list saves only their
9311
9675
  * names (about 300 tokens) unless tool search is off. A tool left
9312
9676
  * off cannot be found even through ToolSearch. `agentx_approval`,
9313
- * `agentx_request`, `agentx_events`, `agentx_attach_next` and
9314
- * `agentx_workflow` are always kept, and so are `agentx_agents`, `agentx_recent` and
9677
+ * `agentx_request`, `agentx_events`, `agentx_attach_next`,
9678
+ * `agentx_workflow`, `agentx_waiting` and `agentx_sprint` are always kept, and so are `agentx_agents`, `agentx_recent` and
9315
9679
  * `agentx_wiki_query` while `contextOnDemand` is on. A name that is
9316
9680
  * not an agentx tool is rejected, so a typo cannot silently drop a
9317
9681
  * reply tool. Only an agentx server started as a command (stdio)
@@ -9610,6 +9974,11 @@ declare const daemonConfigSchema: z.ZodObject<{
9610
9974
  openHours: number;
9611
9975
  launchTimeoutSeconds: number;
9612
9976
  };
9977
+ worktrees: {
9978
+ enabled: boolean;
9979
+ maxAgeDays: number;
9980
+ root?: string | undefined;
9981
+ };
9613
9982
  toolUseRequired: string[];
9614
9983
  persistentProcess: boolean;
9615
9984
  queueMode: "drop" | "followup" | "collect";
@@ -9619,6 +9988,7 @@ declare const daemonConfigSchema: z.ZodObject<{
9619
9988
  maxPerHour: number;
9620
9989
  match?: string | undefined;
9621
9990
  agents?: string[] | undefined;
9991
+ prompt?: string | undefined;
9622
9992
  nodes?: string[] | undefined;
9623
9993
  }[];
9624
9994
  integrations: {
@@ -9704,6 +10074,10 @@ declare const daemonConfigSchema: z.ZodObject<{
9704
10074
  restarts: number;
9705
10075
  windowMinutes: number;
9706
10076
  };
10077
+ timeLimit: {
10078
+ enabled: boolean;
10079
+ maxContinuations: number;
10080
+ };
9707
10081
  };
9708
10082
  mesh: {
9709
10083
  enabled: boolean;
@@ -10018,6 +10392,10 @@ declare const daemonConfigSchema: z.ZodObject<{
10018
10392
  waitingOwner: boolean;
10019
10393
  timeoutSeconds: number;
10020
10394
  };
10395
+ sprints: {
10396
+ enabled: boolean;
10397
+ idleMinutes: number;
10398
+ };
10021
10399
  };
10022
10400
  node: {
10023
10401
  id: string;
@@ -10230,6 +10608,7 @@ declare const daemonConfigSchema: z.ZodObject<{
10230
10608
  why: string;
10231
10609
  metric: string;
10232
10610
  } | undefined;
10611
+ report?: "always" | "exceptions" | undefined;
10233
10612
  command?: string | undefined;
10234
10613
  notify?: {
10235
10614
  channel: string;
@@ -10246,6 +10625,7 @@ declare const daemonConfigSchema: z.ZodObject<{
10246
10625
  maxOutputTokens?: number | undefined;
10247
10626
  autonomy?: "report" | "propose" | "act" | undefined;
10248
10627
  deliverResult?: boolean | undefined;
10628
+ requireSources?: boolean | undefined;
10249
10629
  fireToken?: string | undefined;
10250
10630
  }>;
10251
10631
  graph: {
@@ -10314,6 +10694,7 @@ declare const daemonConfigSchema: z.ZodObject<{
10314
10694
  maxReviewsPerPrPerDay: number;
10315
10695
  ciWaitMinutes: number;
10316
10696
  maxDiffKb: number;
10697
+ forges: ("gitlab" | "github")[];
10317
10698
  };
10318
10699
  mergePolicy: {
10319
10700
  enabled: boolean;
@@ -10331,6 +10712,16 @@ declare const daemonConfigSchema: z.ZodObject<{
10331
10712
  defaultModel?: string | undefined;
10332
10713
  baseUrl?: string | undefined;
10333
10714
  }>;
10715
+ exceptionsDigest: {
10716
+ enabled: boolean;
10717
+ time: string;
10718
+ timezone?: string | undefined;
10719
+ destination?: {
10720
+ channel: string;
10721
+ chatId: string;
10722
+ accountId?: string | undefined;
10723
+ } | undefined;
10724
+ };
10334
10725
  wikiNotes: {
10335
10726
  enabled: boolean;
10336
10727
  crons: string[];
@@ -10434,6 +10825,32 @@ declare const daemonConfigSchema: z.ZodObject<{
10434
10825
  }[];
10435
10826
  timezone?: string | undefined;
10436
10827
  };
10828
+ trackers: {
10829
+ linear: {
10830
+ enabled: boolean;
10831
+ label: string;
10832
+ apiKeyEnv: string;
10833
+ routes: {
10834
+ agent: string;
10835
+ team: string;
10836
+ checkout?: string | undefined;
10837
+ }[];
10838
+ webhookSecretEnv: string;
10839
+ };
10840
+ jira: {
10841
+ enabled: boolean;
10842
+ label: string;
10843
+ tokenEnv: string;
10844
+ routes: {
10845
+ agent: string;
10846
+ project: string;
10847
+ checkout?: string | undefined;
10848
+ }[];
10849
+ webhookSecretEnv: string;
10850
+ emailEnv: string;
10851
+ baseUrl?: string | undefined;
10852
+ };
10853
+ };
10437
10854
  shutdown: {
10438
10855
  restart: {
10439
10856
  windowWaitMinutes: number;
@@ -10857,6 +11274,11 @@ declare const daemonConfigSchema: z.ZodObject<{
10857
11274
  openHours?: number | undefined;
10858
11275
  launchTimeoutSeconds?: number | undefined;
10859
11276
  } | undefined;
11277
+ worktrees?: {
11278
+ enabled?: boolean | undefined;
11279
+ root?: string | undefined;
11280
+ maxAgeDays?: number | undefined;
11281
+ } | undefined;
10860
11282
  toolUseRequired?: string[] | undefined;
10861
11283
  gitlabAutoReply?: boolean | undefined;
10862
11284
  persistentProcess?: boolean | undefined;
@@ -10865,6 +11287,7 @@ declare const daemonConfigSchema: z.ZodObject<{
10865
11287
  kinds: string[];
10866
11288
  match?: string | undefined;
10867
11289
  agents?: string[] | undefined;
11290
+ prompt?: string | undefined;
10868
11291
  nodes?: string[] | undefined;
10869
11292
  delivery?: "pull" | "digest" | "wake" | undefined;
10870
11293
  maxPerHour?: number | undefined;
@@ -10903,6 +11326,10 @@ declare const daemonConfigSchema: z.ZodObject<{
10903
11326
  restarts?: number | undefined;
10904
11327
  windowMinutes?: number | undefined;
10905
11328
  } | undefined;
11329
+ timeLimit?: {
11330
+ enabled?: boolean | undefined;
11331
+ maxContinuations?: number | undefined;
11332
+ } | undefined;
10906
11333
  } | undefined;
10907
11334
  mesh?: {
10908
11335
  enabled?: boolean | undefined;
@@ -11289,6 +11716,10 @@ declare const daemonConfigSchema: z.ZodObject<{
11289
11716
  waitingOwner?: boolean | undefined;
11290
11717
  timeoutSeconds?: number | undefined;
11291
11718
  } | undefined;
11719
+ sprints?: {
11720
+ enabled?: boolean | undefined;
11721
+ idleMinutes?: number | undefined;
11722
+ } | undefined;
11292
11723
  } | undefined;
11293
11724
  approvals?: {
11294
11725
  digest?: {
@@ -11490,6 +11921,7 @@ declare const daemonConfigSchema: z.ZodObject<{
11490
11921
  metric: string;
11491
11922
  } | undefined;
11492
11923
  enabled?: boolean | undefined;
11924
+ report?: "always" | "exceptions" | undefined;
11493
11925
  command?: string | undefined;
11494
11926
  prompt?: string | undefined;
11495
11927
  timeout?: number | undefined;
@@ -11510,6 +11942,7 @@ declare const daemonConfigSchema: z.ZodObject<{
11510
11942
  autonomy?: "report" | "propose" | "act" | undefined;
11511
11943
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
11512
11944
  deliverResult?: boolean | undefined;
11945
+ requireSources?: boolean | undefined;
11513
11946
  fireToken?: string | undefined;
11514
11947
  }> | undefined;
11515
11948
  graph?: {
@@ -11578,6 +12011,7 @@ declare const daemonConfigSchema: z.ZodObject<{
11578
12011
  maxReviewsPerPrPerDay?: number | undefined;
11579
12012
  ciWaitMinutes?: number | undefined;
11580
12013
  maxDiffKb?: number | undefined;
12014
+ forges?: ("gitlab" | "github")[] | undefined;
11581
12015
  } | undefined;
11582
12016
  mergePolicy?: {
11583
12017
  enabled?: boolean | undefined;
@@ -11595,6 +12029,16 @@ declare const daemonConfigSchema: z.ZodObject<{
11595
12029
  defaultModel?: string | undefined;
11596
12030
  baseUrl?: string | undefined;
11597
12031
  }> | undefined;
12032
+ exceptionsDigest?: {
12033
+ enabled?: boolean | undefined;
12034
+ timezone?: string | undefined;
12035
+ time?: string | undefined;
12036
+ destination?: {
12037
+ channel: string;
12038
+ chatId: string;
12039
+ accountId?: string | undefined;
12040
+ } | undefined;
12041
+ } | undefined;
11598
12042
  wikiNotes?: {
11599
12043
  enabled?: boolean | undefined;
11600
12044
  inbox?: string | undefined;
@@ -11698,6 +12142,32 @@ declare const daemonConfigSchema: z.ZodObject<{
11698
12142
  autoAck?: boolean | undefined;
11699
12143
  }[] | undefined;
11700
12144
  } | undefined;
12145
+ trackers?: {
12146
+ linear?: {
12147
+ enabled?: boolean | undefined;
12148
+ label?: string | undefined;
12149
+ apiKeyEnv?: string | undefined;
12150
+ routes?: {
12151
+ agent: string;
12152
+ team: string;
12153
+ checkout?: string | undefined;
12154
+ }[] | undefined;
12155
+ webhookSecretEnv?: string | undefined;
12156
+ } | undefined;
12157
+ jira?: {
12158
+ enabled?: boolean | undefined;
12159
+ label?: string | undefined;
12160
+ baseUrl?: string | undefined;
12161
+ tokenEnv?: string | undefined;
12162
+ routes?: {
12163
+ agent: string;
12164
+ project: string;
12165
+ checkout?: string | undefined;
12166
+ }[] | undefined;
12167
+ webhookSecretEnv?: string | undefined;
12168
+ emailEnv?: string | undefined;
12169
+ } | undefined;
12170
+ } | undefined;
11701
12171
  shutdown?: {
11702
12172
  restart?: {
11703
12173
  allowBy?: string | undefined;
@@ -12688,6 +13158,11 @@ declare class AgentXDaemon {
12688
13158
  /** Pre-merge review gate (#990). Built with the GitHub channel; does
12689
13159
  * nothing while quality.reviewGate.enabled is false. */
12690
13160
  private reviewGate?;
13161
+ /** The same gate on GitLab merge requests (#1292), when
13162
+ * quality.reviewGate.forges lists "gitlab". */
13163
+ private gitlabReviewGate?;
13164
+ /** Linear and Jira issues handed to agents (#1292). */
13165
+ private trackerDispatcher?;
12691
13166
  /** Core vs edge paths (#1047); does nothing while
12692
13167
  * quality.mergePolicy.enabled is false. */
12693
13168
  private mergePolicy?;
@@ -12758,6 +13233,10 @@ declare class AgentXDaemon {
12758
13233
  * session keyed by the reviewed commit, so it never resumes the
12759
13234
  * author's conversation or an earlier review. */
12760
13235
  private buildReviewGate;
13236
+ /** Runs labelled Linear and Jira issues on their route's agent (#1292).
13237
+ * The chat id names the issue, so a worktree-enabled agent works in the
13238
+ * issue's own worktree of the route's checkout. */
13239
+ private trackers;
12761
13240
  /** Deliver a notice to the owner through the channel router: the
12762
13241
  * address it was given, else notifications.channel (push or ntfy). */
12763
13242
  private ownerSender;
@@ -12796,6 +13275,9 @@ declare class AgentXDaemon {
12796
13275
  private resumeCoordinator;
12797
13276
  /** Stop a running task with a resume plan, and resume it later (#857). */
12798
13277
  private createSignalService;
13278
+ /** Resume every task a stop-all order stopped, then send the owner one
13279
+ * report (#1271). Never throws. */
13280
+ private resumeStopAll;
12799
13281
  /** Resume, report or skip each run the last restart cut off. Never throws. */
12800
13282
  private resumeInterruptedRuns;
12801
13283
  /**
@@ -12863,11 +13345,16 @@ declare class AgentXDaemon {
12863
13345
  /** On the push host: the subscriptions table relayed phones use (#711). */
12864
13346
  private pushHost?;
12865
13347
  private approvalsSweeping;
13348
+ private exceptionsDigesting;
12866
13349
  private deskRoutingBusy;
12867
13350
  private mirroring;
12868
13351
  /** One pass of the Reminders mirror, when it is on and this machine
12869
13352
  * has a task app (src/approvals/mirror.ts). */
12870
13353
  private mirrorTick;
13354
+ /** The exceptions digest (src/crons/exceptions-digest.ts, #1289): once a
13355
+ * day, failed or missed schedules, stuck requests and paused agents.
13356
+ * Nothing wrong, nothing sent. */
13357
+ private exceptionsDigestTick;
12871
13358
  /** Every minute: expire decision cards, tell agents their results, and
12872
13359
  * send the day's digest when due (src/approvals/sweep.ts). */
12873
13360
  private startApprovalsSweep;
@@ -12908,6 +13395,27 @@ declare class AgentXDaemon {
12908
13395
  /** A plan was made or a step moved: follow it in a second rather than
12909
13396
  * at the next minute's check. */
12910
13397
  private kickPlans;
13398
+ private sprintsSweeping;
13399
+ private sprintsKick?;
13400
+ /** Lane turns this daemon started and still awaits, by dispatch token,
13401
+ * to the lane chat: their end comes back through execute(), not the
13402
+ * event bus. Keyed by the dispatch, so a retried item's old turn
13403
+ * ending does not drop the new one. */
13404
+ private sprintRuns;
13405
+ private sprintChatAwaited;
13406
+ /** A sprint was made or a lane moved: follow it in a second rather than
13407
+ * at the next minute's check. */
13408
+ private kickSprints;
13409
+ /** A lane's turn ended: the item is settled and the lane gets its next
13410
+ * one right away. */
13411
+ private sprintItemEnded;
13412
+ /** A lane's turn this daemon did not start ended: one an earlier daemon
13413
+ * started and this boot resumed. Its running item is settled. */
13414
+ private attachSprintEnds;
13415
+ /** Sprint lanes move on: each lane with nothing running gets its next
13416
+ * item, a blocked or idle lane is told to the owner, a finished sprint
13417
+ * gets one summary (src/requests/sprints.ts, #1241). One check at a time. */
13418
+ private sweepSprints;
12911
13419
  /** Tracked plans move on: steps handed over, quiet ones nudged,
12912
13420
  * approved messages sent, the owner told at the end or on a block
12913
13421
  * (src/requests/plan-sweep.ts, #788). One check at a time. */
@@ -13402,7 +13910,10 @@ interface FriendlyError {
13402
13910
  /** Machine-readable error category for routing / retries. */
13403
13911
  kind: "out_of_credits" | "overage_disabled" | "usage_cap"
13404
13912
  /** An agent or the fleet reached its AgentX monthly budget (#1162). */
13405
- | "budget_cap" | "auth" | "permission" | "rate_limit" | "overloaded" | "context_too_large" | "invalid_request" | "upstream_api" | "timeout" | "cancelled" | "interrupted"
13913
+ | "budget_cap"
13914
+ /** A cold dispatch held by the plan window, overage gate or local
13915
+ * dispatch cap; it goes through once the window frees up (#1284). */
13916
+ | "dispatch_hold" | "auth" | "permission" | "rate_limit" | "overloaded" | "context_too_large" | "invalid_request" | "upstream_api" | "timeout" | "cancelled" | "interrupted"
13406
13917
  /** Ended by a stop signal; its resume plan is saved (#857). */
13407
13918
  | "stopped" | "unknown";
13408
13919
  /** Whether this error is transient — a retry has a reasonable chance of succeeding. */
@@ -13642,6 +14153,9 @@ interface AgentTask {
13642
14153
  * here (instead of in the user-message body) keeps it inside Claude's
13643
14154
  * cached system prompt across session resumes. */
13644
14155
  systemPromptAppend?: string;
14156
+ /** Folder the agent runs in, in place of its workspace: the issue's own
14157
+ * worktree (#1292). The workspace still supplies its `.env`. */
14158
+ cwd?: string;
13645
14159
  /** Per-invocation override for the context assembly strategy. When unset,
13646
14160
  * the registry falls back to config.session.contextStrategy. Set this
13647
14161
  * from benchmark harnesses that want to A/B the same request under
@@ -13686,6 +14200,12 @@ interface AgentTask {
13686
14200
  * retrying caller would otherwise have every attempt run once the slot
13687
14201
  * frees (#822). A run that already started is not affected. */
13688
14202
  callerSignal?: AbortSignal;
14203
+ /** How long a run from a caller that waits for a slot (api, a2a, mcp,
14204
+ * ...) may wait for a busy agent before it is refused. Default 25 min,
14205
+ * under mesh.sendTask's 30 min cap for a caller holding a request
14206
+ * open. A queued /send/agent has no such caller and waits longer, so
14207
+ * its message is not dropped behind long runs (#1258). */
14208
+ slotWaitMs?: number;
13689
14209
  /** How to re-enter this run if a restart cuts it off (agents/resume).
13690
14210
  * Absent: recorded as a direct run with this task's context. */
13691
14211
  origin?: RunOrigin;
@@ -13695,6 +14215,13 @@ interface AgentTask {
13695
14215
  /** Set on the one automatic retry of a run whose preparation steps hit
13696
14216
  * the pre-spawn deadline (#340). A retry that hits it again is reported. */
13697
14217
  preSpawnRetry?: number;
14218
+ /** Set on a run that continues one stopped at its agent's time limit
14219
+ * (#1257): how many continuations this request has had, and when its
14220
+ * first run started (a caller's deadline counts from there). */
14221
+ timeLimitContinuation?: number;
14222
+ timeLimitStartedAt?: number;
14223
+ /** The request as first sent, without the continuation note. */
14224
+ timeLimitRequest?: string;
13698
14225
  /** Improvement plan #8 — when true, the dispatcher discards any
13699
14226
  * cached session for this (agent, channel, chatId) before
13700
14227
  * executing: the claudeSessionId is cleared (no --resume) and
@@ -17074,6 +17601,8 @@ declare class AgentRegistry {
17074
17601
  private meshFallback?;
17075
17602
  /** See setRunNote. */
17076
17603
  private runNote?;
17604
+ /** See setTraceToolCalls. */
17605
+ private traceToolCalls?;
17077
17606
  /** Workflow auto-runner — invoked when workflow matching is in `mode: "auto"`
17078
17607
  * and a candidate workflow's confidence ≥ autoRunThreshold. Wired by the
17079
17608
  * daemon after the workflow dispatcher is constructed. Returns the runId of
@@ -17124,6 +17653,11 @@ declare class AgentRegistry {
17124
17653
  private cloudSessions?;
17125
17654
  /** Spec-test runs (#992), one per issue. Created on first use. */
17126
17655
  private specTests?;
17656
+ /** Worktrees being made (#1292), by agent and issue, so two tasks on
17657
+ * one issue arriving together share one `git worktree add`. */
17658
+ private worktreesPending;
17659
+ /** When each checkout's old worktrees were last pruned. */
17660
+ private worktreesPrunedAt;
17127
17661
  /** The context each running task was started with, by RunningTask id.
17128
17662
  * Kept apart from RunningTask because /agents serialises that, and a
17129
17663
  * context can carry a whole conversation history. Read by A2A
@@ -17159,6 +17693,9 @@ declare class AgentRegistry {
17159
17693
  * watcher only that run can close. The daemon calls this once watchers
17160
17694
  * attach; unset, no note is added. */
17161
17695
  setRunNote(note: ((started: AgentXEvents["task:started"]) => string | undefined) | undefined): void;
17696
+ /** Wire the trace lookup a time-limit continuation lists the stopped
17697
+ * run's tool calls from (#1257). Unset, the note lists none. */
17698
+ setTraceToolCalls(lookup: AgentRegistry["traceToolCalls"]): void;
17162
17699
  setWorkflowAutoRunner(runner: NonNullable<AgentRegistry["workflowAutoRunner"]> | undefined): void;
17163
17700
  /** Hot-swap the provider map. Daemon reload calls this after agentx.json
17164
17701
  * changes — the next task that executes will resolve credentials through
@@ -17265,6 +17802,12 @@ declare class AgentRegistry {
17265
17802
  * it on the trace. Null means: run locally, the reason is logged and on
17266
17803
  * the trace. */
17267
17804
  private runCloudSession;
17805
+ /** The agent and task to run locally: in the issue's own worktree when
17806
+ * `agents.<id>.worktrees` is on (#1292), else unchanged. A worktree that
17807
+ * cannot be made is logged, and the task runs in the workspace.
17808
+ * `fresh`: the worktree is new, so a session kept for the chat was
17809
+ * started in another folder, and Claude Code keeps sessions per folder. */
17810
+ private inTaskWorktree;
17268
17811
  private specTestSettings;
17269
17812
  private specTestStore;
17270
17813
  /** The spec-test input for a new cloud session on an issue (#992), or
@@ -17377,6 +17920,9 @@ declare class AgentRegistry {
17377
17920
  * `a2a`, `cron`, `workflow`, …) where no adapter is registered.
17378
17921
  */
17379
17922
  private postQueuedResponseToChannel;
17923
+ /** The root a running task works under, when it has one (#1284: an
17924
+ * event the turn emits carries it, so the loop guard holds). */
17925
+ runningTaskRoot(taskId: string): string | undefined;
17380
17926
  /** The agent running `taskId` right now, or null once it has finished.
17381
17927
  * Lets an HTTP caller that names its task prove which agent it is. */
17382
17928
  runningTaskOwner(taskId: string): {
@@ -17457,6 +18003,9 @@ declare class AgentRegistry {
17457
18003
  origin: RunOrigin | null;
17458
18004
  workflowRunId?: string;
17459
18005
  } | null;
18006
+ /** Every running task, as a stop-all signal addresses them (#1271). */
18007
+ signalTargets(): Array<NonNullable<ReturnType<AgentRegistry["signalTarget"]>>>;
18008
+ private signalTargetOf;
17460
18009
  /**
17461
18010
  * Daemon shutdown: stop every run still going once the drain limit is
17462
18011
  * spent. Each one ends as `interrupted` with `reason` rather than as a
@@ -19314,6 +19863,8 @@ declare const cronValueSchema: z.ZodObject<{
19314
19863
  }>;
19315
19864
  type CronValue = z.infer<typeof cronValueSchema>;
19316
19865
 
19866
+ type CronReportMode = "always" | "exceptions";
19867
+
19317
19868
  interface CronJobState {
19318
19869
  id: string;
19319
19870
  enabled: boolean;
@@ -19341,6 +19892,10 @@ interface CronJobState {
19341
19892
  /** Send each successful run's answer to the job's `notify` target.
19342
19893
  * True whenever the job has `notify`, unless `deliverResult: false`. */
19343
19894
  deliverResult?: boolean;
19895
+ /** `exceptions`: a run that answers NOTHING_TO_REPORT sends nothing (#1289). */
19896
+ report?: CronReportMode;
19897
+ /** Flag answer lines that state a fact without a source (#1288). */
19898
+ requireSources?: boolean;
19344
19899
  lastRun?: Date;
19345
19900
  nextRun?: Date;
19346
19901
  lastSuccess?: Date;
@@ -19382,6 +19937,11 @@ interface CronRunResult {
19382
19937
  /** Tool calls the autonomy guard blocked — what the routine would have
19383
19938
  * done with more power. */
19384
19939
  autonomyBlocks?: AutonomyBlock[];
19940
+ /** A `report: "exceptions"` run that had nothing to report (#1289). */
19941
+ quiet?: boolean;
19942
+ /** Answer lines that stated a fact without a source, on a job with
19943
+ * `requireSources` (#1288). Absent when every line had one. */
19944
+ unsourced?: number;
19385
19945
  }
19386
19946
 
19387
19947
  type FireNowResult = {