agentix-cli 0.161.0 → 0.163.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 (126) hide show
  1. package/dist/{App-MXMKX57A.js → App-VEMBGGIU.js} +2 -2
  2. package/dist/{ChatApp-PSKTL3PQ.js → ChatApp-YDIXGL6D.js} +2 -2
  3. package/dist/{absorb-eval-NACNM4PW.js → absorb-eval-Z33YVMFY.js} +2 -2
  4. package/dist/{agent-2RYXBN55.js → agent-2X54W337.js} +2 -2
  5. package/dist/{board-dashboard-4IM47KL3.js → board-dashboard-7WLAFGOS.js} +623 -346
  6. package/dist/board-dashboard-7WLAFGOS.js.map +1 -0
  7. package/dist/{chunk-CO272ZNT.js → chunk-6S2S5LFZ.js} +2 -2
  8. package/dist/{chunk-CO272ZNT.js.map → chunk-6S2S5LFZ.js.map} +1 -1
  9. package/dist/{chunk-A75ADFHR.js → chunk-7PN7VPTC.js} +2 -2
  10. package/dist/{chunk-55ZCWREX.js → chunk-CHJNHMPD.js} +2 -2
  11. package/dist/{chunk-IICCM3LV.js → chunk-CU532CD7.js} +5 -5
  12. package/dist/{chunk-IICCM3LV.js.map → chunk-CU532CD7.js.map} +1 -1
  13. package/dist/{chunk-IKRDLKKJ.js → chunk-EZXLWMXC.js} +2 -2
  14. package/dist/{chunk-34NONG4B.js → chunk-F2ECPRGJ.js} +2 -2
  15. package/dist/{chunk-M3SXXUNB.js → chunk-FJW4KZO7.js} +2 -2
  16. package/dist/{chunk-QA2ZRM57.js → chunk-FUGLS3A3.js} +2 -2
  17. package/dist/{chunk-23J4NAHM.js → chunk-FW6OJ27C.js} +2 -2
  18. package/dist/{chunk-CKIIBDGR.js → chunk-GWAITHGZ.js} +2 -2
  19. package/dist/{chunk-GQWH6PPF.js → chunk-HEGRUOSS.js} +2 -2
  20. package/dist/{chunk-JJ7GP3YA.js → chunk-J3LMELJC.js} +2 -2
  21. package/dist/{chunk-XOQB2M6T.js → chunk-JABZOVMR.js} +2 -2
  22. package/dist/{chunk-PTX6NWCQ.js → chunk-MCMEJVJC.js} +2 -2
  23. package/dist/{chunk-Y3DUSCYH.js → chunk-MTQMBPYO.js} +2 -2
  24. package/dist/{chunk-X45QYAZ2.js → chunk-OBHWGBDW.js} +2 -2
  25. package/dist/{chunk-O7ITYFU6.js → chunk-Q6JWDH7G.js} +2 -2
  26. package/dist/{chunk-L5EU7TH2.js → chunk-RE36JAQN.js} +5 -5
  27. package/dist/{chunk-GPNX66NP.js → chunk-SZ3CRNX4.js} +2 -2
  28. package/dist/{chunk-GPNX66NP.js.map → chunk-SZ3CRNX4.js.map} +1 -1
  29. package/dist/{chunk-WEUGS4GI.js → chunk-UXUMH5SD.js} +2 -2
  30. package/dist/{chunk-OQWMP5ZD.js → chunk-V2ZJMO63.js} +2 -2
  31. package/dist/{chunk-V6FVFN7S.js → chunk-VCUN55AE.js} +2 -2
  32. package/dist/{chunk-ATF7JKPR.js → chunk-VYGFBGUM.js} +2 -2
  33. package/dist/{chunk-BH46UJ6V.js → chunk-XNXKB2VI.js} +2 -2
  34. package/dist/{chunk-AYYWQOGG.js → chunk-YFNV7LAG.js} +3 -3
  35. package/dist/{chunk-OGCZJTGG.js → chunk-YG34COEO.js} +3 -3
  36. package/dist/chunk-YG34COEO.js.map +1 -0
  37. package/dist/chunk-ZZR7FOZ7.js +90 -0
  38. package/dist/chunk-ZZR7FOZ7.js.map +1 -0
  39. package/dist/cli.js +1 -1
  40. package/dist/{client-RKJQW7V4.js → client-2QZHCEB5.js} +2 -2
  41. package/dist/config-KELRDI3A.js +2 -0
  42. package/dist/{config-mutate-XGYCOQ2Q.js → config-mutate-T2WXFS2S.js} +2 -2
  43. package/dist/config-mutator-PLOFE6IA.js +2 -0
  44. package/dist/{contributions-SK2T5B5H.js → contributions-EH776JXB.js} +2 -2
  45. package/dist/{doctor-63WBE26X.js → doctor-IHA2USIQ.js} +2 -2
  46. package/dist/{follow-up-tool-Z5AKB2WM.js → follow-up-tool-BTV6CBTA.js} +2 -2
  47. package/dist/{hub-5XVB256E.js → hub-NMD7O3DF.js} +2 -2
  48. package/dist/index.d.ts +248 -3
  49. package/dist/index.js +1 -1
  50. package/dist/{program-JAODEQ3Y.js → program-XHOUH5DX.js} +26 -26
  51. package/dist/{program-JAODEQ3Y.js.map → program-XHOUH5DX.js.map} +1 -1
  52. package/dist/{promote-IPL7FTWA.js → promote-HX4RGNLX.js} +2 -2
  53. package/dist/{query-OI7WUKYO.js → query-E5LWOH4B.js} +2 -2
  54. package/dist/{query-settings-N2LLPXIW.js → query-settings-ST5C4FPH.js} +2 -2
  55. package/dist/{registry-HD6A6L7V.js → registry-MMZJDIXY.js} +2 -2
  56. package/dist/{request-planner-EGSNUPFD.js → request-planner-RWRMDI3J.js} +2 -2
  57. package/dist/{review-candidates-U3Z46RRY.js → review-candidates-WJ537GUT.js} +2 -2
  58. package/dist/{routing-U36AIRKZ.js → routing-HQ5R7WP6.js} +2 -2
  59. package/dist/schedule-tool-CVDIKLDN.js +2 -0
  60. package/dist/{scheduler-4L7UJTN7.js → scheduler-UELETH3W.js} +2 -2
  61. package/dist/{seat-ZQTFH7FE.js → seat-ARUEPPYV.js} +2 -2
  62. package/dist/{select-JO5USUIR.js → select-JQLDW6BF.js} +2 -2
  63. package/dist/{set-enabled-PPOAMZ5R.js → set-enabled-FB5V5DR7.js} +2 -2
  64. package/dist/{tool-6G7TMVKS.js → tool-7JZ4UIJV.js} +2 -2
  65. package/dist/{tool-YHHUBUIP.js → tool-ZJCEBWLR.js} +2 -2
  66. package/dist/{wiki-PG6OQEXK.js → wiki-MMSBP2XP.js} +2 -2
  67. package/dist/wiki-enrich-CBXIMFOD.js +2 -0
  68. package/package.json +2 -2
  69. package/dist/board-dashboard-4IM47KL3.js.map +0 -1
  70. package/dist/chunk-4KMS3ES7.js +0 -90
  71. package/dist/chunk-4KMS3ES7.js.map +0 -1
  72. package/dist/chunk-OGCZJTGG.js.map +0 -1
  73. package/dist/config-VUCSD5CQ.js +0 -2
  74. package/dist/config-mutator-AOZIMD3Q.js +0 -2
  75. package/dist/schedule-tool-EG3LABHQ.js +0 -2
  76. package/dist/wiki-enrich-WLEWKV45.js +0 -2
  77. /package/dist/{App-MXMKX57A.js.map → App-VEMBGGIU.js.map} +0 -0
  78. /package/dist/{ChatApp-PSKTL3PQ.js.map → ChatApp-YDIXGL6D.js.map} +0 -0
  79. /package/dist/{absorb-eval-NACNM4PW.js.map → absorb-eval-Z33YVMFY.js.map} +0 -0
  80. /package/dist/{agent-2RYXBN55.js.map → agent-2X54W337.js.map} +0 -0
  81. /package/dist/{chunk-A75ADFHR.js.map → chunk-7PN7VPTC.js.map} +0 -0
  82. /package/dist/{chunk-55ZCWREX.js.map → chunk-CHJNHMPD.js.map} +0 -0
  83. /package/dist/{chunk-IKRDLKKJ.js.map → chunk-EZXLWMXC.js.map} +0 -0
  84. /package/dist/{chunk-34NONG4B.js.map → chunk-F2ECPRGJ.js.map} +0 -0
  85. /package/dist/{chunk-M3SXXUNB.js.map → chunk-FJW4KZO7.js.map} +0 -0
  86. /package/dist/{chunk-QA2ZRM57.js.map → chunk-FUGLS3A3.js.map} +0 -0
  87. /package/dist/{chunk-23J4NAHM.js.map → chunk-FW6OJ27C.js.map} +0 -0
  88. /package/dist/{chunk-CKIIBDGR.js.map → chunk-GWAITHGZ.js.map} +0 -0
  89. /package/dist/{chunk-GQWH6PPF.js.map → chunk-HEGRUOSS.js.map} +0 -0
  90. /package/dist/{chunk-JJ7GP3YA.js.map → chunk-J3LMELJC.js.map} +0 -0
  91. /package/dist/{chunk-XOQB2M6T.js.map → chunk-JABZOVMR.js.map} +0 -0
  92. /package/dist/{chunk-PTX6NWCQ.js.map → chunk-MCMEJVJC.js.map} +0 -0
  93. /package/dist/{chunk-Y3DUSCYH.js.map → chunk-MTQMBPYO.js.map} +0 -0
  94. /package/dist/{chunk-X45QYAZ2.js.map → chunk-OBHWGBDW.js.map} +0 -0
  95. /package/dist/{chunk-O7ITYFU6.js.map → chunk-Q6JWDH7G.js.map} +0 -0
  96. /package/dist/{chunk-L5EU7TH2.js.map → chunk-RE36JAQN.js.map} +0 -0
  97. /package/dist/{chunk-WEUGS4GI.js.map → chunk-UXUMH5SD.js.map} +0 -0
  98. /package/dist/{chunk-OQWMP5ZD.js.map → chunk-V2ZJMO63.js.map} +0 -0
  99. /package/dist/{chunk-V6FVFN7S.js.map → chunk-VCUN55AE.js.map} +0 -0
  100. /package/dist/{chunk-ATF7JKPR.js.map → chunk-VYGFBGUM.js.map} +0 -0
  101. /package/dist/{chunk-BH46UJ6V.js.map → chunk-XNXKB2VI.js.map} +0 -0
  102. /package/dist/{chunk-AYYWQOGG.js.map → chunk-YFNV7LAG.js.map} +0 -0
  103. /package/dist/{client-RKJQW7V4.js.map → client-2QZHCEB5.js.map} +0 -0
  104. /package/dist/{config-VUCSD5CQ.js.map → config-KELRDI3A.js.map} +0 -0
  105. /package/dist/{config-mutate-XGYCOQ2Q.js.map → config-mutate-T2WXFS2S.js.map} +0 -0
  106. /package/dist/{config-mutator-AOZIMD3Q.js.map → config-mutator-PLOFE6IA.js.map} +0 -0
  107. /package/dist/{contributions-SK2T5B5H.js.map → contributions-EH776JXB.js.map} +0 -0
  108. /package/dist/{doctor-63WBE26X.js.map → doctor-IHA2USIQ.js.map} +0 -0
  109. /package/dist/{follow-up-tool-Z5AKB2WM.js.map → follow-up-tool-BTV6CBTA.js.map} +0 -0
  110. /package/dist/{hub-5XVB256E.js.map → hub-NMD7O3DF.js.map} +0 -0
  111. /package/dist/{promote-IPL7FTWA.js.map → promote-HX4RGNLX.js.map} +0 -0
  112. /package/dist/{query-OI7WUKYO.js.map → query-E5LWOH4B.js.map} +0 -0
  113. /package/dist/{query-settings-N2LLPXIW.js.map → query-settings-ST5C4FPH.js.map} +0 -0
  114. /package/dist/{registry-HD6A6L7V.js.map → registry-MMZJDIXY.js.map} +0 -0
  115. /package/dist/{request-planner-EGSNUPFD.js.map → request-planner-RWRMDI3J.js.map} +0 -0
  116. /package/dist/{review-candidates-U3Z46RRY.js.map → review-candidates-WJ537GUT.js.map} +0 -0
  117. /package/dist/{routing-U36AIRKZ.js.map → routing-HQ5R7WP6.js.map} +0 -0
  118. /package/dist/{schedule-tool-EG3LABHQ.js.map → schedule-tool-CVDIKLDN.js.map} +0 -0
  119. /package/dist/{scheduler-4L7UJTN7.js.map → scheduler-UELETH3W.js.map} +0 -0
  120. /package/dist/{seat-ZQTFH7FE.js.map → seat-ARUEPPYV.js.map} +0 -0
  121. /package/dist/{select-JO5USUIR.js.map → select-JQLDW6BF.js.map} +0 -0
  122. /package/dist/{set-enabled-PPOAMZ5R.js.map → set-enabled-FB5V5DR7.js.map} +0 -0
  123. /package/dist/{tool-6G7TMVKS.js.map → tool-7JZ4UIJV.js.map} +0 -0
  124. /package/dist/{tool-YHHUBUIP.js.map → tool-ZJCEBWLR.js.map} +0 -0
  125. /package/dist/{wiki-PG6OQEXK.js.map → wiki-MMSBP2XP.js.map} +0 -0
  126. /package/dist/{wiki-enrich-WLEWKV45.js.map → wiki-enrich-CBXIMFOD.js.map} +0 -0
package/dist/cli.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{b as o}from"./chunk-OSH2PEBH.js";import"./chunk-QIJLFPWE.js";var e=o(process.versions.node);e&&(console.error(e),process.exit(1));var{buildProgram:s}=await import("./program-JAODEQ3Y.js"),{installCliSignalExit:r}=await import("./signal-exit-WL7G3EEZ.js"),{applyConnectAttemptTimeout:i,configPathFromArgv:a,readConnectAttemptTimeout:n}=await import("./net-family-X2P3OVDP.js");r();i(n(process.cwd(),a(process.argv.slice(2))));var t=await s();process.argv.slice(2).length===0?t.outputHelp():t.parse();
2
+ import{b as o}from"./chunk-OSH2PEBH.js";import"./chunk-QIJLFPWE.js";var e=o(process.versions.node);e&&(console.error(e),process.exit(1));var{buildProgram:s}=await import("./program-XHOUH5DX.js"),{installCliSignalExit:r}=await import("./signal-exit-WL7G3EEZ.js"),{applyConnectAttemptTimeout:i,configPathFromArgv:a,readConnectAttemptTimeout:n}=await import("./net-family-X2P3OVDP.js");r();i(n(process.cwd(),a(process.argv.slice(2))));var t=await s();process.argv.slice(2).length===0?t.outputHelp():t.parse();
3
3
  //# sourceMappingURL=cli.js.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g}from"./chunk-CKIIBDGR.js";import"./chunk-4KMS3ES7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{b as fetchAgents,d as fetchCrons,c as fetchProcesses,e as killProcess,a as resolveConn,f as sendTask,g as streamTask};
2
- //# sourceMappingURL=client-RKJQW7V4.js.map
1
+ import{a,b,c,d,e,f,g}from"./chunk-GWAITHGZ.js";import"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{b as fetchAgents,d as fetchCrons,c as fetchProcesses,e as killProcess,a as resolveConn,f as sendTask,g as streamTask};
2
+ //# sourceMappingURL=client-2QZHCEB5.js.map
@@ -0,0 +1,2 @@
1
+ import{$a as h,Ua as a,Va as b,Wa as c,Xa as d,Ya as e,Za as f,_a as g,ab as i,bb as j,cb as k,db as l,eb as m,fb as n,gb as o,hb as p,ib as q,jb as r,kb as s,lb as t,mb as u,nb as v,ob as w,pb as x,qb as y,rb as z,tb as A}from"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";A();export{a as INTEGRATION_KINDS,v as WIKI_CONTRIBUTE_JOB,w as WIKI_CONTRIBUTE_MERGE_JOB,y as WIKI_SUMMARIZE_JOB,o as approvalsConfigSchema,e as callsSchema,c as cameraBotSchema,t as crossFieldProblems,q as daemonConfigSchema,b as eventSubscriptionSchema,r as expandEnvVars,d as isCronExpression,s as loadDaemonConfig,l as membersConfigSchema,g as mergePolicyConfigSchema,k as peopleConfigSchema,j as personSchema,n as qualityReportConfigSchema,m as requestStatusConfigSchema,i as requestsConfigSchema,f as reviewGateConfigSchema,u as validateWorkspaces,p as wallConfigSchema,h as watchersConfigSchema,x as withContributionJobs,z as withSummariesJob};
2
+ //# sourceMappingURL=config-KELRDI3A.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"./chunk-V6FVFN7S.js";import"./chunk-4KMS3ES7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{a as mutateAgentxConfig,b as writeAgentxConfig};
2
- //# sourceMappingURL=config-mutate-XGYCOQ2Q.js.map
1
+ import{a,b}from"./chunk-VCUN55AE.js";import"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{a as mutateAgentxConfig,b as writeAgentxConfig};
2
+ //# sourceMappingURL=config-mutate-T2WXFS2S.js.map
@@ -0,0 +1,2 @@
1
+ import{a,b,c,d,e}from"./chunk-VYGFBGUM.js";import"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{b as applyConfigMutation,a as findConfigPath,d as getAtPath,c as setAtPath,e as unsetAtPath};
2
+ //# sourceMappingURL=config-mutator-PLOFE6IA.js.map
@@ -1,4 +1,4 @@
1
- import{a as ee}from"./chunk-XOQB2M6T.js";import"./chunk-A75ADFHR.js";import{f as Q,k as V}from"./chunk-VL74KOR7.js";import{b as O}from"./chunk-PE5V2LI7.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-OWNQ2FD4.js";import{b as X}from"./chunk-KEXBEUSU.js";import"./chunk-AYYWQOGG.js";import"./chunk-6QZKQUAT.js";import"./chunk-BH46UJ6V.js";import"./chunk-WPNRDEHW.js";import"./chunk-MWNCS57L.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-Y3DUSCYH.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-6TURWSMN.js";import"./chunk-BERWTVG2.js";import{b as N,c as H}from"./chunk-QOYAX2FT.js";import"./chunk-6QLRRSKU.js";import"./chunk-7I7IEX4S.js";import"./chunk-4KMS3ES7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";import{createHash as le}from"crypto";import{existsSync as z,mkdirSync as ne,readdirSync as re,readFileSync as ge,renameSync as se,writeFileSync as pe}from"fs";import{resolve as w}from"path";var _={maxPatches:30,maxCostUsd:.5,maxItems:60},he=12,fe=2e3,me=1500,M=8,U=300,be=12,B="## Checked facts";function S(n){return w(n,"_contributions")}function E(n,r){if(!z(n))return r;try{return JSON.parse(ge(n,"utf-8"))}catch(t){throw new Error(`${n} is not valid JSON: ${t.message}`)}}function L(n,r){ne(w(n,".."),{recursive:!0});let t=`${n}.${process.pid}.tmp`;pe(t,`${JSON.stringify(r,null,2)}
1
+ import{a as ee}from"./chunk-JABZOVMR.js";import"./chunk-7PN7VPTC.js";import{f as Q,k as V}from"./chunk-VL74KOR7.js";import{b as O}from"./chunk-PE5V2LI7.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-OWNQ2FD4.js";import{b as X}from"./chunk-KEXBEUSU.js";import"./chunk-YFNV7LAG.js";import"./chunk-6QZKQUAT.js";import"./chunk-XNXKB2VI.js";import"./chunk-WPNRDEHW.js";import"./chunk-MWNCS57L.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-MTQMBPYO.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-6TURWSMN.js";import"./chunk-BERWTVG2.js";import{b as N,c as H}from"./chunk-QOYAX2FT.js";import"./chunk-6QLRRSKU.js";import"./chunk-7I7IEX4S.js";import"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";import{createHash as le}from"crypto";import{existsSync as z,mkdirSync as ne,readdirSync as re,readFileSync as ge,renameSync as se,writeFileSync as pe}from"fs";import{resolve as w}from"path";var _={maxPatches:30,maxCostUsd:.5,maxItems:60},he=12,fe=2e3,me=1500,M=8,U=300,be=12,B="## Checked facts";function S(n){return w(n,"_contributions")}function E(n,r){if(!z(n))return r;try{return JSON.parse(ge(n,"utf-8"))}catch(t){throw new Error(`${n} is not valid JSON: ${t.message}`)}}function L(n,r){ne(w(n,".."),{recursive:!0});let t=`${n}.${process.pid}.tmp`;pe(t,`${JSON.stringify(r,null,2)}
2
2
  `),se(t,n)}function ie(n){return{agents:E(w(S(n),"state.json"),{agents:{}}).agents??{}}}function ye(n){let r=w(S(n),"pending");return z(r)?re(r).filter(t=>t.endsWith(".json")).sort().map(t=>E(w(r,t),null)).filter(t=>!!t):[]}function G(n){return w(S(n),"held.json")}function K(n,r={}){let t=E(G(n),[]);return r.all?t:t.filter(a=>a.status==="held")}function _e(n){let r=w(S(n),"reports");if(!z(r))return null;let t=re(r).filter(a=>a.endsWith(".json")).sort().pop();return t?E(w(r,t),null):null}function ke(n,r,t,a={}){let o=ie(r).agents[t],c=a.now??Date.now(),e=a.since??o?.lastRunAt??new Date(c-864e5).toISOString(),d=e.slice(0,10),u=new Set(o?.processed??[]),s=[];for(let g of n.getAgentEntries(t))g.date<d||u.has(g.id)||s.push({id:g.id,at:g.date,kind:"chat",title:[g.source,g.sourceContext].filter(Boolean).join(" \xB7 "),text:g.content});if(a.db){let g=Date.parse(e);for(let l of V(a.db,{agentId:t,since:Number.isFinite(g)?g:void 0,limit:500})){if(l.status==="in-flight"||u.has(l.taskId))continue;let k=(Q(a.db,l.taskId)?.steps??[]).filter(b=>b.name==="tool_use"||b.action).slice(0,be).map(b=>`- ${b.action??b.name}${b.inputSummary?` ${x(b.inputSummary,160)}`:""}${b.outputSummary?` \u2192 ${x(b.outputSummary,240)}`:""}${b.error?` \u2717 ${x(b.error,120)}`:""}`),y=[`Request: ${x(l.originalMessage??l.messagePreview??"",600)}`,k.length?`Tool calls:
3
3
  ${k.join(`
4
4
  `)}`:"",l.finalResponse?`Reply: ${x(l.finalResponse,800)}`:""].filter(Boolean).join(`
@@ -54,4 +54,4 @@ _Sources: ${t.sources.join("; ")}._`,a);return n.writeArticle(r,{title:t.title,.
54
54
  `).replace(/\n{3,}/g,`
55
55
 
56
56
  `).trim(),superseded:d}}function Ce(n){let r=n.previous?` (previously: ${n.previous})`:"";return`- **${n.attribute}:** ${n.value} \u2014 ${n.source}; checked ${n.checkedAt.slice(0,10)} by ${n.by}${r}`}function Re(n){let r=n.match(/^- \*\*.+?:\*\* (.*?) — .*?; checked (\S+) by \S+(?: \(previously: (.*)\))?$/);return r?{value:r[1],checkedAt:r[2],...r[3]?{previous:r[3]}:{}}:void 0}function J(n,r){return`contribution:${n}@${r.slice(0,10)}`}var Te={person:"people",project:"projects",place:"places",concept:"concepts",event:"events",decision:"decisions",pattern:"patterns"};function de(n,r,t){let a=r.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,60)||"page",o=t?Te[t]:"contributions",c=`${o}/${a}.md`;for(let e=2;n.readArticle(c);e++)c=`${o}/${a}-${e}.md`;return c}export{_ as DEFAULT_CONTRIBUTION_LIMITS,B as FACTS_HEADING,ue as applyFactLines,De as approveHeld,xe as buildContributionPrompt,S as contributionsDir,_e as latestReport,K as listHeld,ye as listPendingBatches,Be as mergeContributions,W as pageKey,Ae as parseContributionPatches,ke as pendingWork,Se as possibleDuplicate,Fe as rejectHeld,ce as replaceOnce,Me as runContribution};
57
- //# sourceMappingURL=contributions-SK2T5B5H.js.map
57
+ //# sourceMappingURL=contributions-EH776JXB.js.map
@@ -1,2 +1,2 @@
1
- import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i}from"./chunk-JJ7GP3YA.js";import"./chunk-CO272ZNT.js";import"./chunk-IMLAPB7G.js";import"./chunk-LQS27HSV.js";import"./chunk-MNG2AMKZ.js";import"./chunk-QPABR72X.js";import"./chunk-KP7KDLZ2.js";import"./chunk-OSH2PEBH.js";import"./chunk-4KMS3ES7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{i as daemonVoiceCheck,b as doctor,g as meshPeerTokenChecks,h as meshTokenChecksFromConfig,a as runDoctorChecks,e as runMirrorChecks,d as runNativeChecks,c as runNotificationChecks,f as runReminderChecks};
2
- //# sourceMappingURL=doctor-63WBE26X.js.map
1
+ import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i}from"./chunk-J3LMELJC.js";import"./chunk-6S2S5LFZ.js";import"./chunk-IMLAPB7G.js";import"./chunk-LQS27HSV.js";import"./chunk-MNG2AMKZ.js";import"./chunk-QPABR72X.js";import"./chunk-KP7KDLZ2.js";import"./chunk-OSH2PEBH.js";import"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{i as daemonVoiceCheck,b as doctor,g as meshPeerTokenChecks,h as meshTokenChecksFromConfig,a as runDoctorChecks,e as runMirrorChecks,d as runNativeChecks,c as runNotificationChecks,f as runReminderChecks};
2
+ //# sourceMappingURL=doctor-IHA2USIQ.js.map
@@ -1,7 +1,7 @@
1
- import{b as h}from"./chunk-O7ITYFU6.js";import"./chunk-RKPAVWXF.js";import"./chunk-WEUGS4GI.js";import{b as I}from"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import"./chunk-OGCZJTGG.js";import"./chunk-ATF7JKPR.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-4KMS3ES7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";var p=t=>typeof t=="string"?t.trim():"";function $(t){return[`Run ${t.runId} "${t.title}" [${t.status}] on step ${t.step}: waiting on ${t.waitingOn}.`,t.tags?.length?`Tags: ${t.tags.join(", ")}`:"",...(t.steps??[]).slice(-8).map(s=>`- ${String(s.at).slice(0,16).replace("T"," ")} ${s.step} ${s.status}${s.note?`: ${s.note}`:""}`)].filter(Boolean).join(`
1
+ import{b as h}from"./chunk-Q6JWDH7G.js";import"./chunk-RKPAVWXF.js";import"./chunk-UXUMH5SD.js";import{b as I}from"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import"./chunk-YG34COEO.js";import"./chunk-VYGFBGUM.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";var p=t=>typeof t=="string"?t.trim():"";function $(t){return[`Run ${t.runId} "${t.title}" [${t.status}] on step ${t.step}: waiting on ${t.waitingOn}.`,t.tags?.length?`Tags: ${t.tags.join(", ")}`:"",...(t.steps??[]).slice(-8).map(s=>`- ${String(s.at).slice(0,16).replace("T"," ")} ${s.step} ${s.status}${s.note?`: ${s.note}`:""}`)].filter(Boolean).join(`
2
2
  `)}async function T(t,c){let s=c.fetch??fetch,m=c.daemonUrl.replace(/\/$/,""),r=(p(t.action)||"list").toLowerCase(),f=c.env??process.env,w=async i=>{let l=await s(`${m}${i}`,{signal:AbortSignal.timeout(1e4)}),n=await l.json().catch(()=>({}));return{ok:l.ok,status:l.status,data:n}};try{if(r==="list"){let e=await w("/follow-up");if(!e.ok)return`Error: ${e.data?.error||`HTTP ${e.status}`}`;let o=e.data.groups??[];return o.length?o.map(d=>[`${d.tag}:`,...d.rows.map(a=>`- ${a.runId} "${a.title}" on ${a.step}: waiting on ${a.waitingOn} (since ${String(a.since).slice(0,16).replace("T"," ")} UTC)`)].join(`
3
3
  `)).join(`
4
4
  `):"No follow-up workflows are running."}if(r==="match"){let e=p(t.request)||p(t.title);if(!e)return"Error: match needs `request`: the owner's request in their words.";let o=h(t,f),d=await w(`/follow-up/match?q=${encodeURIComponent(e)}${o?`&agentId=${encodeURIComponent(o.agentId)}`:""}`);if(!d.ok)return`Error: ${d.data?.error||`HTTP ${d.status}`}`;let a=d.data.matches??[];return a.length?["Saved workflows, best fit first (confidence 0-1):",...a.map(u=>`- ${u.workflowId} "${u.title}" (${u.confidence}${u.autoStart?", starts without asking":""}): ${u.steps.map(k=>k.id).join(" \u2192 ")}`),'Start one with {action:"start", workflowId:"<id>", title:"\u2026", tags:["client:<name>"]}. Run its steps through the workflow, not by hand.'].join(`
5
5
  `):"No saved workflow fits. If the request has several steps, build one: start with title and steps."}if(r==="status"){let e=p(t.runId);if(!e)return"Error: status needs runId.";let o=await w(`/follow-up/${encodeURIComponent(e)}`);return o.ok?$(o.data.run):`Error: ${o.data?.error||`HTTP ${o.status}`}`}let i=h(t,f);if(!i)return"Error: couldn't tell which agent you are. Pass callerAgentId.";let l=await s(`${m}/follow-up`,{method:"POST",headers:{"Content-Type":"application/json",...I(f)},body:JSON.stringify({action:r,agentId:i.agentId,workflowId:t.workflowId,title:t.title,description:t.description,tags:t.tags,inputs:t.inputs,steps:t.steps,edges:t.edges,approval:t.approval,autoStart:t.autoStart,requestId:t.requestId,runId:t.runId,step:t.step,evidence:t.evidence,note:t.note,reason:t.reason,fromRun:t.fromRun,status:t.status}),signal:AbortSignal.timeout(2e4)}),n=await l.json().catch(()=>({}));if(!l.ok)return`Error: ${n?.error||`HTTP ${l.status}`}`;if(r==="start"){let e=n.run;return[`Started run ${e.runId} "${e.title}"${n.built?" (built from the steps you gave; propose it with fromRun to keep it)":""}.`,n.awaitingApproval?"It waits for the owner's approval before the first step.":`It is on step ${e.step}: ${e.waitingOn}.`,"AgentX follows it from here: it starts each step, reminds whoever is slow, and tells the owner when it ends. Do not run its steps by hand.",...n.warning?[`Note: ${n.warning}`]:[]].join(" ")}return r==="plan"?[`Plan recorded on run ${n.run?.runId??t.runId}:`,...(n.plan??[]).map(e=>`- ${e.id} ${e.title}`),'Report each step with {action:"step", runId, step:"<id>", status:"started"|"done"|"failed"}.'].join(`
6
6
  `):r==="step"?`Step recorded. ${n.run?$(n.run):""}`.trim():r==="done"?`Step recorded as done. ${n.run?$(n.run):""}`.trim():r==="blocked"?"The step is marked blocked and the owner is told. Nothing more happens on it until it is sorted.":`Saved ${n.workflowId} switched off, and asked the owner (card ${n.cardId}) whether to keep it as a reusable workflow.`}catch(i){return`Error: couldn't reach the daemon (${i?.message??i}).`}}export{T as runWorkflowTool};
7
- //# sourceMappingURL=follow-up-tool-Z5AKB2WM.js.map
7
+ //# sourceMappingURL=follow-up-tool-BTV6CBTA.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-55ZCWREX.js";import"./chunk-23J4NAHM.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-BH46UJ6V.js";import"./chunk-WPNRDEHW.js";import"./chunk-Y3DUSCYH.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QOYAX2FT.js";import"./chunk-6QLRRSKU.js";import"./chunk-7I7IEX4S.js";import"./chunk-4KMS3ES7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{a as WikiHub};
2
- //# sourceMappingURL=hub-5XVB256E.js.map
1
+ import{a}from"./chunk-CHJNHMPD.js";import"./chunk-FW6OJ27C.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-XNXKB2VI.js";import"./chunk-WPNRDEHW.js";import"./chunk-MTQMBPYO.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QOYAX2FT.js";import"./chunk-6QLRRSKU.js";import"./chunk-7I7IEX4S.js";import"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{a as WikiHub};
2
+ //# sourceMappingURL=hub-NMD7O3DF.js.map
package/dist/index.d.ts CHANGED
@@ -2198,6 +2198,18 @@ declare const agentConfigSchema: z.ZodObject<{
2198
2198
  }>;
2199
2199
  declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2200
2200
  enabled: z.ZodDefault<z.ZodBoolean>;
2201
+ /** Why the job runs and the number that proves it (#1183). Optional;
2202
+ * shown as written on the Wall and Settings › Schedules. */
2203
+ value: z.ZodOptional<z.ZodObject<{
2204
+ why: z.ZodString;
2205
+ metric: z.ZodString;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ why: string;
2208
+ metric: string;
2209
+ }, {
2210
+ why: string;
2211
+ metric: string;
2212
+ }>>;
2201
2213
  schedule: z.ZodString;
2202
2214
  timezone: z.ZodDefault<z.ZodString>;
2203
2215
  agent: z.ZodString;
@@ -2289,6 +2301,10 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2289
2301
  timezone: string;
2290
2302
  onError: ("notify" | "disable" | "log")[];
2291
2303
  model?: string | undefined;
2304
+ value?: {
2305
+ why: string;
2306
+ metric: string;
2307
+ } | undefined;
2292
2308
  command?: string | undefined;
2293
2309
  notify?: {
2294
2310
  channel: string;
@@ -2310,6 +2326,10 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2310
2326
  agent: string;
2311
2327
  schedule: string;
2312
2328
  model?: string | undefined;
2329
+ value?: {
2330
+ why: string;
2331
+ metric: string;
2332
+ } | undefined;
2313
2333
  enabled?: boolean | undefined;
2314
2334
  command?: string | undefined;
2315
2335
  prompt?: string | undefined;
@@ -2341,6 +2361,10 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2341
2361
  timezone: string;
2342
2362
  onError: ("notify" | "disable" | "log")[];
2343
2363
  model?: string | undefined;
2364
+ value?: {
2365
+ why: string;
2366
+ metric: string;
2367
+ } | undefined;
2344
2368
  command?: string | undefined;
2345
2369
  notify?: {
2346
2370
  channel: string;
@@ -2362,6 +2386,10 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2362
2386
  agent: string;
2363
2387
  schedule: string;
2364
2388
  model?: string | undefined;
2389
+ value?: {
2390
+ why: string;
2391
+ metric: string;
2392
+ } | undefined;
2365
2393
  enabled?: boolean | undefined;
2366
2394
  command?: string | undefined;
2367
2395
  prompt?: string | undefined;
@@ -2393,6 +2421,10 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2393
2421
  timezone: string;
2394
2422
  onError: ("notify" | "disable" | "log")[];
2395
2423
  model?: string | undefined;
2424
+ value?: {
2425
+ why: string;
2426
+ metric: string;
2427
+ } | undefined;
2396
2428
  command?: string | undefined;
2397
2429
  notify?: {
2398
2430
  channel: string;
@@ -2414,6 +2446,10 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2414
2446
  agent: string;
2415
2447
  schedule: string;
2416
2448
  model?: string | undefined;
2449
+ value?: {
2450
+ why: string;
2451
+ metric: string;
2452
+ } | undefined;
2417
2453
  enabled?: boolean | undefined;
2418
2454
  command?: string | undefined;
2419
2455
  prompt?: string | undefined;
@@ -4793,6 +4829,18 @@ declare const daemonConfigSchema: z.ZodObject<{
4793
4829
  }>>;
4794
4830
  crons: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
4795
4831
  enabled: z.ZodDefault<z.ZodBoolean>;
4832
+ /** Why the job runs and the number that proves it (#1183). Optional;
4833
+ * shown as written on the Wall and Settings › Schedules. */
4834
+ value: z.ZodOptional<z.ZodObject<{
4835
+ why: z.ZodString;
4836
+ metric: z.ZodString;
4837
+ }, "strip", z.ZodTypeAny, {
4838
+ why: string;
4839
+ metric: string;
4840
+ }, {
4841
+ why: string;
4842
+ metric: string;
4843
+ }>>;
4796
4844
  schedule: z.ZodString;
4797
4845
  timezone: z.ZodDefault<z.ZodString>;
4798
4846
  agent: z.ZodString;
@@ -4884,6 +4932,10 @@ declare const daemonConfigSchema: z.ZodObject<{
4884
4932
  timezone: string;
4885
4933
  onError: ("notify" | "disable" | "log")[];
4886
4934
  model?: string | undefined;
4935
+ value?: {
4936
+ why: string;
4937
+ metric: string;
4938
+ } | undefined;
4887
4939
  command?: string | undefined;
4888
4940
  notify?: {
4889
4941
  channel: string;
@@ -4905,6 +4957,10 @@ declare const daemonConfigSchema: z.ZodObject<{
4905
4957
  agent: string;
4906
4958
  schedule: string;
4907
4959
  model?: string | undefined;
4960
+ value?: {
4961
+ why: string;
4962
+ metric: string;
4963
+ } | undefined;
4908
4964
  enabled?: boolean | undefined;
4909
4965
  command?: string | undefined;
4910
4966
  prompt?: string | undefined;
@@ -4936,6 +4992,10 @@ declare const daemonConfigSchema: z.ZodObject<{
4936
4992
  timezone: string;
4937
4993
  onError: ("notify" | "disable" | "log")[];
4938
4994
  model?: string | undefined;
4995
+ value?: {
4996
+ why: string;
4997
+ metric: string;
4998
+ } | undefined;
4939
4999
  command?: string | undefined;
4940
5000
  notify?: {
4941
5001
  channel: string;
@@ -4957,6 +5017,10 @@ declare const daemonConfigSchema: z.ZodObject<{
4957
5017
  agent: string;
4958
5018
  schedule: string;
4959
5019
  model?: string | undefined;
5020
+ value?: {
5021
+ why: string;
5022
+ metric: string;
5023
+ } | undefined;
4960
5024
  enabled?: boolean | undefined;
4961
5025
  command?: string | undefined;
4962
5026
  prompt?: string | undefined;
@@ -4988,6 +5052,10 @@ declare const daemonConfigSchema: z.ZodObject<{
4988
5052
  timezone: string;
4989
5053
  onError: ("notify" | "disable" | "log")[];
4990
5054
  model?: string | undefined;
5055
+ value?: {
5056
+ why: string;
5057
+ metric: string;
5058
+ } | undefined;
4991
5059
  command?: string | undefined;
4992
5060
  notify?: {
4993
5061
  channel: string;
@@ -5009,6 +5077,10 @@ declare const daemonConfigSchema: z.ZodObject<{
5009
5077
  agent: string;
5010
5078
  schedule: string;
5011
5079
  model?: string | undefined;
5080
+ value?: {
5081
+ why: string;
5082
+ metric: string;
5083
+ } | undefined;
5012
5084
  enabled?: boolean | undefined;
5013
5085
  command?: string | undefined;
5014
5086
  prompt?: string | undefined;
@@ -6346,11 +6418,11 @@ declare const daemonConfigSchema: z.ZodObject<{
6346
6418
  token?: string | undefined;
6347
6419
  url?: string | undefined;
6348
6420
  } | undefined;
6421
+ repos?: Record<string, string> | undefined;
6349
6422
  github?: {
6350
6423
  token?: string | undefined;
6351
6424
  apiUrl?: string | undefined;
6352
6425
  } | undefined;
6353
- repos?: Record<string, string> | undefined;
6354
6426
  checkEveryMinutes?: number | undefined;
6355
6427
  }>>;
6356
6428
  /** Status follows the work (src/requests/drift, #1138 step F): merged
@@ -6572,11 +6644,11 @@ declare const daemonConfigSchema: z.ZodObject<{
6572
6644
  token?: string | undefined;
6573
6645
  url?: string | undefined;
6574
6646
  } | undefined;
6647
+ repos?: Record<string, string> | undefined;
6575
6648
  github?: {
6576
6649
  token?: string | undefined;
6577
6650
  apiUrl?: string | undefined;
6578
6651
  } | undefined;
6579
- repos?: Record<string, string> | undefined;
6580
6652
  checkEveryMinutes?: number | undefined;
6581
6653
  } | undefined;
6582
6654
  headlines?: {
@@ -8230,6 +8302,46 @@ declare const daemonConfigSchema: z.ZodObject<{
8230
8302
  dashboardToken?: string | undefined;
8231
8303
  }>, "many">>;
8232
8304
  draftAgent: z.ZodOptional<z.ZodString>;
8305
+ wall: z.ZodDefault<z.ZodObject<{
8306
+ rhythmHours: z.ZodOptional<z.ZodNumber>;
8307
+ projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
8308
+ name: z.ZodString;
8309
+ repos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
8310
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
8311
+ workspaces: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
8312
+ rhythmHours: z.ZodOptional<z.ZodNumber>;
8313
+ }, "strip", z.ZodTypeAny, {
8314
+ agents: string[];
8315
+ name: string;
8316
+ repos: string[];
8317
+ workspaces: string[];
8318
+ rhythmHours?: number | undefined;
8319
+ }, {
8320
+ name: string;
8321
+ agents?: string[] | undefined;
8322
+ rhythmHours?: number | undefined;
8323
+ repos?: string[] | undefined;
8324
+ workspaces?: string[] | undefined;
8325
+ }>, "many">>;
8326
+ }, "strip", z.ZodTypeAny, {
8327
+ projects: {
8328
+ agents: string[];
8329
+ name: string;
8330
+ repos: string[];
8331
+ workspaces: string[];
8332
+ rhythmHours?: number | undefined;
8333
+ }[];
8334
+ rhythmHours?: number | undefined;
8335
+ }, {
8336
+ projects?: {
8337
+ name: string;
8338
+ agents?: string[] | undefined;
8339
+ rhythmHours?: number | undefined;
8340
+ repos?: string[] | undefined;
8341
+ workspaces?: string[] | undefined;
8342
+ }[] | undefined;
8343
+ rhythmHours?: number | undefined;
8344
+ }>>;
8233
8345
  }, "strip", z.ZodTypeAny, {
8234
8346
  enabled: boolean;
8235
8347
  port: number;
@@ -8242,6 +8354,16 @@ declare const daemonConfigSchema: z.ZodObject<{
8242
8354
  dashboardUrl?: string | undefined;
8243
8355
  dashboardToken?: string | undefined;
8244
8356
  }[];
8357
+ wall: {
8358
+ projects: {
8359
+ agents: string[];
8360
+ name: string;
8361
+ repos: string[];
8362
+ workspaces: string[];
8363
+ rhythmHours?: number | undefined;
8364
+ }[];
8365
+ rhythmHours?: number | undefined;
8366
+ };
8245
8367
  token?: string | undefined;
8246
8368
  draftAgent?: string | undefined;
8247
8369
  }, {
@@ -8258,6 +8380,67 @@ declare const daemonConfigSchema: z.ZodObject<{
8258
8380
  dashboardToken?: string | undefined;
8259
8381
  }[] | undefined;
8260
8382
  draftAgent?: string | undefined;
8383
+ wall?: {
8384
+ projects?: {
8385
+ name: string;
8386
+ agents?: string[] | undefined;
8387
+ rhythmHours?: number | undefined;
8388
+ repos?: string[] | undefined;
8389
+ workspaces?: string[] | undefined;
8390
+ }[] | undefined;
8391
+ rhythmHours?: number | undefined;
8392
+ } | undefined;
8393
+ }>>;
8394
+ wall: z.ZodDefault<z.ZodObject<{
8395
+ reportedIssues: z.ZodOptional<z.ZodObject<{
8396
+ label: z.ZodString;
8397
+ /** The signature is the first capture of this on the title. Unset, or
8398
+ * no match: the title, normalized like the Failures tab's errors. */
8399
+ titleSignature: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
8400
+ /** Where to look: one read of the labelled open issues per project. */
8401
+ sources: z.ZodArray<z.ZodObject<{
8402
+ forge: z.ZodEnum<["github", "gitlab"]>;
8403
+ project: z.ZodString;
8404
+ }, "strip", z.ZodTypeAny, {
8405
+ project: string;
8406
+ forge: "gitlab" | "github";
8407
+ }, {
8408
+ project: string;
8409
+ forge: "gitlab" | "github";
8410
+ }>, "many">;
8411
+ }, "strip", z.ZodTypeAny, {
8412
+ label: string;
8413
+ sources: {
8414
+ project: string;
8415
+ forge: "gitlab" | "github";
8416
+ }[];
8417
+ titleSignature?: string | undefined;
8418
+ }, {
8419
+ label: string;
8420
+ sources: {
8421
+ project: string;
8422
+ forge: "gitlab" | "github";
8423
+ }[];
8424
+ titleSignature?: string | undefined;
8425
+ }>>;
8426
+ }, "strip", z.ZodTypeAny, {
8427
+ reportedIssues?: {
8428
+ label: string;
8429
+ sources: {
8430
+ project: string;
8431
+ forge: "gitlab" | "github";
8432
+ }[];
8433
+ titleSignature?: string | undefined;
8434
+ } | undefined;
8435
+ }, {
8436
+ reportedIssues?: {
8437
+ label: string;
8438
+ sources: {
8439
+ project: string;
8440
+ forge: "gitlab" | "github";
8441
+ }[];
8442
+ titleSignature?: string | undefined;
8443
+ } | undefined;
8261
8444
  }>>;
8262
8445
  graph: z.ZodDefault<z.ZodObject<{
8263
8446
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -9567,6 +9750,16 @@ declare const daemonConfigSchema: z.ZodObject<{
9567
9750
  agent?: string | undefined;
9568
9751
  };
9569
9752
  };
9753
+ wall: {
9754
+ reportedIssues?: {
9755
+ label: string;
9756
+ sources: {
9757
+ project: string;
9758
+ forge: "gitlab" | "github";
9759
+ }[];
9760
+ titleSignature?: string | undefined;
9761
+ } | undefined;
9762
+ };
9570
9763
  app: {
9571
9764
  android: {
9572
9765
  packageName: string;
@@ -9646,6 +9839,16 @@ declare const daemonConfigSchema: z.ZodObject<{
9646
9839
  dashboardUrl?: string | undefined;
9647
9840
  dashboardToken?: string | undefined;
9648
9841
  }[];
9842
+ wall: {
9843
+ projects: {
9844
+ agents: string[];
9845
+ name: string;
9846
+ repos: string[];
9847
+ workspaces: string[];
9848
+ rhythmHours?: number | undefined;
9849
+ }[];
9850
+ rhythmHours?: number | undefined;
9851
+ };
9649
9852
  token?: string | undefined;
9650
9853
  draftAgent?: string | undefined;
9651
9854
  };
@@ -9966,6 +10169,10 @@ declare const daemonConfigSchema: z.ZodObject<{
9966
10169
  timezone: string;
9967
10170
  onError: ("notify" | "disable" | "log")[];
9968
10171
  model?: string | undefined;
10172
+ value?: {
10173
+ why: string;
10174
+ metric: string;
10175
+ } | undefined;
9969
10176
  command?: string | undefined;
9970
10177
  notify?: {
9971
10178
  channel: string;
@@ -10735,6 +10942,16 @@ declare const daemonConfigSchema: z.ZodObject<{
10735
10942
  agent?: string | undefined;
10736
10943
  } | undefined;
10737
10944
  } | undefined;
10945
+ wall?: {
10946
+ reportedIssues?: {
10947
+ label: string;
10948
+ sources: {
10949
+ project: string;
10950
+ forge: "gitlab" | "github";
10951
+ }[];
10952
+ titleSignature?: string | undefined;
10953
+ } | undefined;
10954
+ } | undefined;
10738
10955
  app?: {
10739
10956
  android?: {
10740
10957
  packageName?: string | undefined;
@@ -10816,6 +11033,16 @@ declare const daemonConfigSchema: z.ZodObject<{
10816
11033
  dashboardToken?: string | undefined;
10817
11034
  }[] | undefined;
10818
11035
  draftAgent?: string | undefined;
11036
+ wall?: {
11037
+ projects?: {
11038
+ name: string;
11039
+ agents?: string[] | undefined;
11040
+ rhythmHours?: number | undefined;
11041
+ repos?: string[] | undefined;
11042
+ workspaces?: string[] | undefined;
11043
+ }[] | undefined;
11044
+ rhythmHours?: number | undefined;
11045
+ } | undefined;
10819
11046
  } | undefined;
10820
11047
  events?: {
10821
11048
  ringSize?: number | undefined;
@@ -10944,11 +11171,11 @@ declare const daemonConfigSchema: z.ZodObject<{
10944
11171
  token?: string | undefined;
10945
11172
  url?: string | undefined;
10946
11173
  } | undefined;
11174
+ repos?: Record<string, string> | undefined;
10947
11175
  github?: {
10948
11176
  token?: string | undefined;
10949
11177
  apiUrl?: string | undefined;
10950
11178
  } | undefined;
10951
- repos?: Record<string, string> | undefined;
10952
11179
  checkEveryMinutes?: number | undefined;
10953
11180
  } | undefined;
10954
11181
  headlines?: {
@@ -11194,6 +11421,10 @@ declare const daemonConfigSchema: z.ZodObject<{
11194
11421
  agent: string;
11195
11422
  schedule: string;
11196
11423
  model?: string | undefined;
11424
+ value?: {
11425
+ why: string;
11426
+ metric: string;
11427
+ } | undefined;
11197
11428
  enabled?: boolean | undefined;
11198
11429
  command?: string | undefined;
11199
11430
  prompt?: string | undefined;
@@ -18982,6 +19213,18 @@ declare class WhatsAppAdapter implements ChannelAdapter {
18982
19213
  private throttleGate;
18983
19214
  }
18984
19215
 
19216
+ declare const cronValueSchema: z.ZodObject<{
19217
+ why: z.ZodString;
19218
+ metric: z.ZodString;
19219
+ }, "strip", z.ZodTypeAny, {
19220
+ why: string;
19221
+ metric: string;
19222
+ }, {
19223
+ why: string;
19224
+ metric: string;
19225
+ }>;
19226
+ type CronValue = z.infer<typeof cronValueSchema>;
19227
+
18985
19228
  interface CronJobState {
18986
19229
  id: string;
18987
19230
  enabled: boolean;
@@ -19004,6 +19247,8 @@ interface CronJobState {
19004
19247
  /** Routine autonomy level; unset = act (full agent permissions). */
19005
19248
  autonomy?: AutonomyLevel;
19006
19249
  onError: Array<"log" | "notify" | "disable">;
19250
+ /** Why it runs and the number that proves it (#1183). */
19251
+ value?: CronValue;
19007
19252
  /** Send each successful run's answer to the job's `notify` target.
19008
19253
  * True whenever the job has `notify`, unless `deliverResult: false`. */
19009
19254
  deliverResult?: boolean;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{Fa as Tt,Ga as Mt,a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,h as bt}from"./chunk-IICCM3LV.js";import"./chunk-GPNX66NP.js";import"./chunk-GTJIKXDB.js";import"./chunk-IKRDLKKJ.js";import"./chunk-CO272ZNT.js";import"./chunk-VUEQ4SL5.js";import"./chunk-IMLAPB7G.js";import"./chunk-ZVP6GB4G.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-BNOGNRAM.js";import"./chunk-LQS27HSV.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-M3SXXUNB.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-6V5JBHUN.js";import"./chunk-2VDO2HEK.js";import"./chunk-JWDJMFU6.js";import"./chunk-5HLD66CW.js";import"./chunk-IS2IWRP7.js";import"./chunk-MNG2AMKZ.js";import"./chunk-X7UQY7CH.js";import"./chunk-QPABR72X.js";import"./chunk-WEUGS4GI.js";import"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import"./chunk-A5GYG56I.js";import{m as lt,n as ct,o as dt,p as mt,q as pt,ra as yt}from"./chunk-L5EU7TH2.js";import"./chunk-PTX6NWCQ.js";import"./chunk-MEFPXHQJ.js";import{a as L}from"./chunk-TCC56PYX.js";import{A as D,B as z,C as V,a as ye,b as we,c as Se,d as Ae,e as Ie,f as Oe,g as Ne,h as He,i as je,j as Ue,k as _e,l as I,m as q,n as Be,o as qe,p as Ye,q as O,r as ze,s as Ve,t as Xe,u as x,v as Y,w as Qe,x as Ze,y as et,z as wt}from"./chunk-OQWMP5ZD.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-6TTGRTDO.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VL74KOR7.js";import{s as ut}from"./chunk-OGCZJTGG.js";import"./chunk-ATF7JKPR.js";import"./chunk-3UOTLMXD.js";import"./chunk-XIRM45DH.js";import"./chunk-PE5V2LI7.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-VWTBHLMX.js";import"./chunk-55ZCWREX.js";import{a as ht}from"./chunk-23J4NAHM.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-AYYWQOGG.js";import"./chunk-6QZKQUAT.js";import{f as gt,g as ft}from"./chunk-BH46UJ6V.js";import"./chunk-WPNRDEHW.js";import"./chunk-MWNCS57L.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-QA2ZRM57.js";import{j as it,k as rt,l as at}from"./chunk-Y3DUSCYH.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-6TURWSMN.js";import"./chunk-AV7T3SYT.js";import"./chunk-TM2TPQKH.js";import"./chunk-BERWTVG2.js";import"./chunk-QOYAX2FT.js";import{a as ke,b as ve,c as xe,d as $e,e as Ce,f as Pe,g as be,h as Te,i as Me,j as Re,l as Ee,m as Ge,o as T,p as W}from"./chunk-6QLRRSKU.js";import{a as m,b as G}from"./chunk-7I7IEX4S.js";import{b as Fe,c as Le,d as A,e as De}from"./chunk-JHCI6XCJ.js";import{a as Ke,b as Je,e as We}from"./chunk-DSYKYZMT.js";import{eb as tt,gb as st,ib as ot,pb as nt}from"./chunk-4KMS3ES7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";W();G();import{execa as Rt}from"execa";import{existsSync as se,promises as X}from"fs";import S from"path";import ie from"node-fetch";async function Et(o,e){let t=o.split("/");if(t.length<2)throw new Error(`Invalid skill package ID: ${o}. Expected format: owner/repo`);let s=t[0],i=t[1],n=t[2];try{let a=n?`${s}/${i}/${n}`:`${s}/${i}`;await Rt("npx",["-y","skills","add",a],{cwd:e,stdio:"pipe"}),m.success(`Installed skill package: ${o}`);let r=S.resolve(e,".skills",`${s}_${i}`);if(se(r))return await ne(r,o);let d=S.resolve(e,".skills");return se(d)?await ne(d,o):[]}catch{return m.info(`Fetching skills directly from GitHub: ${s}/${i}`),await Gt(s,i,n,e)}}async function Gt(o,e,t,s){let i=[];try{let n=`https://api.github.com/repos/${o}/${e}/git/trees/main?recursive=1`,a=await ie(n);if(!a.ok)throw new Error(`GitHub API error: ${a.status}`);let d=(await a.json()).tree.filter(p=>p.type==="blob"&&p.path.endsWith("SKILL.md"));if(t){let p=d.find(f=>f.path.includes(`/${t}/`)||f.path===`${t}/SKILL.md`);if(p){let f=await oe(o,e,p.path,s);f&&i.push(f)}}else for(let p of d){let f=await oe(o,e,p.path,s);f&&i.push(f)}}catch(n){m.error(`Failed to fetch skills from GitHub: ${n.message}`)}return i}async function oe(o,e,t,s){try{let i=`https://raw.githubusercontent.com/${o}/${e}/main/${t}`,n=await ie(i);if(!n.ok)return null;let a=await n.text(),r=A(a);if(r){r.source="remote",r.packageId=`${o}/${e}`;let d=S.dirname(t),p=S.resolve(s,".skills",`${o}_${e}`,d);await X.mkdir(p,{recursive:!0}),await X.writeFile(S.resolve(p,"SKILL.md"),a),r.path=S.resolve(p,"SKILL.md")}return r}catch{return null}}async function ne(o,e){let t=[],{default:s}=await import("fast-glob"),i=await s.glob("**/SKILL.md",{cwd:o,deep:5});for(let n of i)try{let a=S.resolve(o,n),r=await X.readFile(a,"utf8"),d=A(r);d&&(d.source="remote",d.path=a,d.packageId=e,t.push(d))}catch{}return t}async function At(o,e,t,s,i){let n=["---",`name: ${o}`,`description: ${e}`];if(s?.length){n.push("tags:");for(let a of s)n.push(` - ${a}`)}if(i?.length){n.push("globs:");for(let a of i)n.push(` - ${a}`)}return n.push("---"),`${n.join(`
1
+ import{Fa as Tt,Ga as Mt,a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,h as bt}from"./chunk-CU532CD7.js";import"./chunk-SZ3CRNX4.js";import"./chunk-GTJIKXDB.js";import"./chunk-EZXLWMXC.js";import"./chunk-6S2S5LFZ.js";import"./chunk-VUEQ4SL5.js";import"./chunk-IMLAPB7G.js";import"./chunk-ZVP6GB4G.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-BNOGNRAM.js";import"./chunk-LQS27HSV.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-FJW4KZO7.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-6V5JBHUN.js";import"./chunk-2VDO2HEK.js";import"./chunk-JWDJMFU6.js";import"./chunk-5HLD66CW.js";import"./chunk-IS2IWRP7.js";import"./chunk-MNG2AMKZ.js";import"./chunk-X7UQY7CH.js";import"./chunk-QPABR72X.js";import"./chunk-UXUMH5SD.js";import"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import"./chunk-A5GYG56I.js";import{m as lt,n as ct,o as dt,p as mt,q as pt,ra as yt}from"./chunk-RE36JAQN.js";import"./chunk-MCMEJVJC.js";import"./chunk-MEFPXHQJ.js";import{a as L}from"./chunk-TCC56PYX.js";import{A as D,B as z,C as V,a as ye,b as we,c as Se,d as Ae,e as Ie,f as Oe,g as Ne,h as He,i as je,j as Ue,k as _e,l as I,m as q,n as Be,o as qe,p as Ye,q as O,r as ze,s as Ve,t as Xe,u as x,v as Y,w as Qe,x as Ze,y as et,z as wt}from"./chunk-V2ZJMO63.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-6TTGRTDO.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VL74KOR7.js";import{s as ut}from"./chunk-YG34COEO.js";import"./chunk-VYGFBGUM.js";import"./chunk-3UOTLMXD.js";import"./chunk-XIRM45DH.js";import"./chunk-PE5V2LI7.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-VWTBHLMX.js";import"./chunk-CHJNHMPD.js";import{a as ht}from"./chunk-FW6OJ27C.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-YFNV7LAG.js";import"./chunk-6QZKQUAT.js";import{f as gt,g as ft}from"./chunk-XNXKB2VI.js";import"./chunk-WPNRDEHW.js";import"./chunk-MWNCS57L.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-FUGLS3A3.js";import{j as it,k as rt,l as at}from"./chunk-MTQMBPYO.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-6TURWSMN.js";import"./chunk-AV7T3SYT.js";import"./chunk-TM2TPQKH.js";import"./chunk-BERWTVG2.js";import"./chunk-QOYAX2FT.js";import{a as ke,b as ve,c as xe,d as $e,e as Ce,f as Pe,g as be,h as Te,i as Me,j as Re,l as Ee,m as Ge,o as T,p as W}from"./chunk-6QLRRSKU.js";import{a as m,b as G}from"./chunk-7I7IEX4S.js";import{b as Fe,c as Le,d as A,e as De}from"./chunk-JHCI6XCJ.js";import{a as Ke,b as Je,e as We}from"./chunk-DSYKYZMT.js";import{ib as tt,kb as st,mb as ot,tb as nt}from"./chunk-ZZR7FOZ7.js";import"./chunk-BRK6M6LA.js";import"./chunk-XG5FRD7G.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";W();G();import{execa as Rt}from"execa";import{existsSync as se,promises as X}from"fs";import S from"path";import ie from"node-fetch";async function Et(o,e){let t=o.split("/");if(t.length<2)throw new Error(`Invalid skill package ID: ${o}. Expected format: owner/repo`);let s=t[0],i=t[1],n=t[2];try{let a=n?`${s}/${i}/${n}`:`${s}/${i}`;await Rt("npx",["-y","skills","add",a],{cwd:e,stdio:"pipe"}),m.success(`Installed skill package: ${o}`);let r=S.resolve(e,".skills",`${s}_${i}`);if(se(r))return await ne(r,o);let d=S.resolve(e,".skills");return se(d)?await ne(d,o):[]}catch{return m.info(`Fetching skills directly from GitHub: ${s}/${i}`),await Gt(s,i,n,e)}}async function Gt(o,e,t,s){let i=[];try{let n=`https://api.github.com/repos/${o}/${e}/git/trees/main?recursive=1`,a=await ie(n);if(!a.ok)throw new Error(`GitHub API error: ${a.status}`);let d=(await a.json()).tree.filter(p=>p.type==="blob"&&p.path.endsWith("SKILL.md"));if(t){let p=d.find(f=>f.path.includes(`/${t}/`)||f.path===`${t}/SKILL.md`);if(p){let f=await oe(o,e,p.path,s);f&&i.push(f)}}else for(let p of d){let f=await oe(o,e,p.path,s);f&&i.push(f)}}catch(n){m.error(`Failed to fetch skills from GitHub: ${n.message}`)}return i}async function oe(o,e,t,s){try{let i=`https://raw.githubusercontent.com/${o}/${e}/main/${t}`,n=await ie(i);if(!n.ok)return null;let a=await n.text(),r=A(a);if(r){r.source="remote",r.packageId=`${o}/${e}`;let d=S.dirname(t),p=S.resolve(s,".skills",`${o}_${e}`,d);await X.mkdir(p,{recursive:!0}),await X.writeFile(S.resolve(p,"SKILL.md"),a),r.path=S.resolve(p,"SKILL.md")}return r}catch{return null}}async function ne(o,e){let t=[],{default:s}=await import("fast-glob"),i=await s.glob("**/SKILL.md",{cwd:o,deep:5});for(let n of i)try{let a=S.resolve(o,n),r=await X.readFile(a,"utf8"),d=A(r);d&&(d.source="remote",d.path=a,d.packageId=e,t.push(d))}catch{}return t}async function At(o,e,t,s,i){let n=["---",`name: ${o}`,`description: ${e}`];if(s?.length){n.push("tags:");for(let a of s)n.push(` - ${a}`)}if(i?.length){n.push("globs:");for(let a of i)n.push(` - ${a}`)}return n.push("---"),`${n.join(`
2
2
  `)}
3
3
 
4
4
  ${t}`}async function It(o){let{loadLocalSkills:e}=await import("./loader-YFVSSYSL.js");return e(o)}async function Ot(o,e,t,s,i){let a=[{role:"system",content:`You are a skill author for the Agent Skills ecosystem (skills.sh).