agentix-cli 0.219.0 → 0.221.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 (168) hide show
  1. package/dist/{App-ET75JEWK.js → App-QRZJGHNK.js} +2 -2
  2. package/dist/{ChatApp-F2NT5M2O.js → ChatApp-DYC2WNAP.js} +2 -2
  3. package/dist/{absorb-eval-EA5ESP4Y.js → absorb-eval-4FENRVXM.js} +2 -2
  4. package/dist/{adapter-7PKOKXO5.js → adapter-5WMQSSQM.js} +2 -2
  5. package/dist/{agent-SDNU6MUI.js → agent-5FVRGDGM.js} +2 -2
  6. package/dist/{board-dashboard-PI22IXZN.js → board-dashboard-ZJLIP2L4.js} +5 -5
  7. package/dist/{board-dashboard-PI22IXZN.js.map → board-dashboard-ZJLIP2L4.js.map} +1 -1
  8. package/dist/chunk-3323WFVK.js +13 -0
  9. package/dist/chunk-3323WFVK.js.map +1 -0
  10. package/dist/{chunk-TCBIAKGS.js → chunk-4UJDRI7W.js} +2 -2
  11. package/dist/{chunk-KCS737RC.js → chunk-5BT4VPJC.js} +2 -2
  12. package/dist/{chunk-PTVDVI2U.js → chunk-5QXRGX2F.js} +2 -2
  13. package/dist/{chunk-V75JESS5.js → chunk-6EJJKOMW.js} +3 -3
  14. package/dist/{chunk-XQH4LCZR.js → chunk-74MHOALB.js} +2 -2
  15. package/dist/{chunk-IQNKEUEL.js → chunk-ABMDDRZL.js} +2 -2
  16. package/dist/{chunk-MELXJ5AR.js → chunk-AEFO6ES5.js} +2 -2
  17. package/dist/{chunk-Y3TXTZYG.js → chunk-AX6CCD5P.js} +21 -21
  18. package/dist/chunk-AX6CCD5P.js.map +1 -0
  19. package/dist/{chunk-6X7SABYJ.js → chunk-AZCGU5XU.js} +2 -2
  20. package/dist/{chunk-3XUAIA7U.js → chunk-B5QQ4IH2.js} +2 -2
  21. package/dist/{chunk-HHSPOS7O.js → chunk-BX4RQ2IZ.js} +2 -2
  22. package/dist/{chunk-EPOQUX4G.js → chunk-CIW37UJT.js} +2 -2
  23. package/dist/{chunk-UYDC2YMH.js → chunk-D5LIMOI6.js} +2 -2
  24. package/dist/{chunk-6HCCMU57.js → chunk-F6LT3DHK.js} +2 -2
  25. package/dist/{chunk-EWXY73XA.js → chunk-GO4J44UD.js} +2 -2
  26. package/dist/{chunk-34TEBXFP.js → chunk-JD5TCX4X.js} +2 -2
  27. package/dist/{chunk-SQJ3IHNL.js → chunk-JMRFYGET.js} +2 -2
  28. package/dist/{chunk-SYIDD7CI.js → chunk-KQ3LPQ2Z.js} +2 -2
  29. package/dist/chunk-LIY6X3LU.js +2 -0
  30. package/dist/chunk-LIY6X3LU.js.map +1 -0
  31. package/dist/{chunk-IKOJM4GM.js → chunk-NCMPJPXG.js} +2 -2
  32. package/dist/{chunk-ZT4FCL5B.js → chunk-NW7B53KD.js} +2 -2
  33. package/dist/{chunk-W2KIJ5LL.js → chunk-O4EQAPBB.js} +2 -2
  34. package/dist/{chunk-Z3FJRBTG.js → chunk-RFVXW6F2.js} +273 -272
  35. package/dist/chunk-RFVXW6F2.js.map +1 -0
  36. package/dist/{chunk-CR37IINZ.js → chunk-SQP6A5AG.js} +2 -2
  37. package/dist/chunk-TCM3UOEQ.js +2 -0
  38. package/dist/chunk-TCM3UOEQ.js.map +1 -0
  39. package/dist/{chunk-5OEW46QP.js → chunk-TN3XNBQN.js} +2 -2
  40. package/dist/{chunk-7ATCEK7R.js → chunk-U476QMLK.js} +2 -2
  41. package/dist/{chunk-EZDHAX4Z.js → chunk-VOVDWFFP.js} +2 -2
  42. package/dist/{chunk-EZDHAX4Z.js.map → chunk-VOVDWFFP.js.map} +1 -1
  43. package/dist/{chunk-U4AUJ6XI.js → chunk-VYNM7HYU.js} +2 -2
  44. package/dist/{chunk-IIJB3OPV.js → chunk-WQTPSXVB.js} +2 -2
  45. package/dist/{chunk-DGCYSQAZ.js → chunk-XC3466Z4.js} +2 -2
  46. package/dist/{chunk-XTXFA5EJ.js → chunk-XPYZBWI7.js} +2 -2
  47. package/dist/{chunk-GPX4LDAX.js → chunk-XV7IHWQE.js} +2 -2
  48. package/dist/{chunk-YMMGY7GR.js → chunk-Y6KR7NXL.js} +2 -2
  49. package/dist/{chunk-MUCWUVOW.js → chunk-ZWD4ADV4.js} +86 -86
  50. package/dist/chunk-ZWD4ADV4.js.map +1 -0
  51. package/dist/cli.js +1 -1
  52. package/dist/{client-7PLIDORM.js → client-W7VFEYQ3.js} +2 -2
  53. package/dist/{config-3R4EGNUG.js → config-ZVRI3GFZ.js} +2 -2
  54. package/dist/{config-mutate-3PGEBKJ6.js → config-mutate-OM4MI56W.js} +2 -2
  55. package/dist/{config-mutator-LQQOOUZR.js → config-mutator-RK3UQORI.js} +2 -2
  56. package/dist/{contributions-D4O76KGX.js → contributions-3WW5AJ5A.js} +2 -2
  57. package/dist/{doctor-QM4KUMQJ.js → doctor-AW53DQDU.js} +2 -2
  58. package/dist/{follow-up-tool-X3YPYSP2.js → follow-up-tool-N5U7U5WN.js} +2 -2
  59. package/dist/{grants-ZA35QVTX.js → grants-AIUWETYP.js} +2 -2
  60. package/dist/{hub-PBJHXL2G.js → hub-J43NXLW3.js} +2 -2
  61. package/dist/index.d.ts +85 -1
  62. package/dist/index.js +1 -1
  63. package/dist/index.js.map +1 -1
  64. package/dist/{org-tool-37GNUUAD.js → org-tool-VNDHR7WM.js} +2 -2
  65. package/dist/{program-243AGBJJ.js → program-YGEXHPRD.js} +28 -28
  66. package/dist/{program-243AGBJJ.js.map → program-YGEXHPRD.js.map} +1 -1
  67. package/dist/{promote-CFI4HJDJ.js → promote-AO6KC3SU.js} +2 -2
  68. package/dist/{query-J6S3GWPY.js → query-W6OYKQ2U.js} +2 -2
  69. package/dist/{query-settings-2NKI7UFN.js → query-settings-2D6NCHCV.js} +2 -2
  70. package/dist/registry-KYCXXPEA.js +2 -0
  71. package/dist/{request-planner-NKGUSV4N.js → request-planner-SDO5MNFV.js} +2 -2
  72. package/dist/{review-candidates-43HXKXWD.js → review-candidates-EAOLCDIK.js} +2 -2
  73. package/dist/{routing-72F2DJTV.js → routing-VDVZ4IYF.js} +2 -2
  74. package/dist/runner-I4ZB37JE.js +2 -0
  75. package/dist/{schedule-tool-V3KMSJHK.js → schedule-tool-65H6URQU.js} +2 -2
  76. package/dist/{scheduler-ZBTMOE3T.js → scheduler-B52UIMKB.js} +2 -2
  77. package/dist/{seat-GYYH2IW5.js → seat-5DLUHBTK.js} +2 -2
  78. package/dist/{select-JNVP4P5N.js → select-Z3JDFC2C.js} +2 -2
  79. package/dist/{set-enabled-U26A4RMI.js → set-enabled-FMI2GXCF.js} +2 -2
  80. package/dist/{sprint-tool-YCDVAF2Y.js → sprint-tool-5NJYOFIZ.js} +2 -2
  81. package/dist/step-proof-NMKY7T5A.js +2 -0
  82. package/dist/{tool-JEHJS2SA.js → tool-2DOU5XCQ.js} +2 -2
  83. package/dist/tool-AR4BLSYC.js +2 -0
  84. package/dist/{tool-MB3IYEP7.js → tool-RW32VEIV.js} +2 -2
  85. package/dist/{tool-CF7OTKDV.js → tool-YT3WBUHS.js} +2 -2
  86. package/dist/{tool-GHQ2FM4T.js → tool-ZSNE7YWS.js} +2 -2
  87. package/dist/{wiki-6UFGH2OO.js → wiki-7PQ5YVA7.js} +2 -2
  88. package/dist/wiki-enrich-IQZ5Y7A5.js +2 -0
  89. package/dist/{workspace-setup-CQ5FMT2B.js → workspace-setup-W32C7WXN.js} +2 -2
  90. package/dist/workspace-setup-W32C7WXN.js.map +1 -0
  91. package/package.json +1 -1
  92. package/dist/chunk-BXK5S2KK.js +0 -13
  93. package/dist/chunk-BXK5S2KK.js.map +0 -1
  94. package/dist/chunk-MUCWUVOW.js.map +0 -1
  95. package/dist/chunk-SZDACK6O.js +0 -2
  96. package/dist/chunk-SZDACK6O.js.map +0 -1
  97. package/dist/chunk-Y3TXTZYG.js.map +0 -1
  98. package/dist/chunk-Z3FJRBTG.js.map +0 -1
  99. package/dist/registry-R2QIR6GI.js +0 -2
  100. package/dist/runner-56G3N7M4.js +0 -2
  101. package/dist/tool-K3RAEZKE.js +0 -2
  102. package/dist/wiki-enrich-7LMT3CFV.js +0 -2
  103. /package/dist/{App-ET75JEWK.js.map → App-QRZJGHNK.js.map} +0 -0
  104. /package/dist/{ChatApp-F2NT5M2O.js.map → ChatApp-DYC2WNAP.js.map} +0 -0
  105. /package/dist/{absorb-eval-EA5ESP4Y.js.map → absorb-eval-4FENRVXM.js.map} +0 -0
  106. /package/dist/{adapter-7PKOKXO5.js.map → adapter-5WMQSSQM.js.map} +0 -0
  107. /package/dist/{agent-SDNU6MUI.js.map → agent-5FVRGDGM.js.map} +0 -0
  108. /package/dist/{chunk-TCBIAKGS.js.map → chunk-4UJDRI7W.js.map} +0 -0
  109. /package/dist/{chunk-KCS737RC.js.map → chunk-5BT4VPJC.js.map} +0 -0
  110. /package/dist/{chunk-PTVDVI2U.js.map → chunk-5QXRGX2F.js.map} +0 -0
  111. /package/dist/{chunk-V75JESS5.js.map → chunk-6EJJKOMW.js.map} +0 -0
  112. /package/dist/{chunk-XQH4LCZR.js.map → chunk-74MHOALB.js.map} +0 -0
  113. /package/dist/{chunk-IQNKEUEL.js.map → chunk-ABMDDRZL.js.map} +0 -0
  114. /package/dist/{chunk-MELXJ5AR.js.map → chunk-AEFO6ES5.js.map} +0 -0
  115. /package/dist/{chunk-6X7SABYJ.js.map → chunk-AZCGU5XU.js.map} +0 -0
  116. /package/dist/{chunk-3XUAIA7U.js.map → chunk-B5QQ4IH2.js.map} +0 -0
  117. /package/dist/{chunk-HHSPOS7O.js.map → chunk-BX4RQ2IZ.js.map} +0 -0
  118. /package/dist/{chunk-EPOQUX4G.js.map → chunk-CIW37UJT.js.map} +0 -0
  119. /package/dist/{chunk-UYDC2YMH.js.map → chunk-D5LIMOI6.js.map} +0 -0
  120. /package/dist/{chunk-6HCCMU57.js.map → chunk-F6LT3DHK.js.map} +0 -0
  121. /package/dist/{chunk-EWXY73XA.js.map → chunk-GO4J44UD.js.map} +0 -0
  122. /package/dist/{chunk-34TEBXFP.js.map → chunk-JD5TCX4X.js.map} +0 -0
  123. /package/dist/{chunk-SQJ3IHNL.js.map → chunk-JMRFYGET.js.map} +0 -0
  124. /package/dist/{chunk-SYIDD7CI.js.map → chunk-KQ3LPQ2Z.js.map} +0 -0
  125. /package/dist/{chunk-IKOJM4GM.js.map → chunk-NCMPJPXG.js.map} +0 -0
  126. /package/dist/{chunk-ZT4FCL5B.js.map → chunk-NW7B53KD.js.map} +0 -0
  127. /package/dist/{chunk-W2KIJ5LL.js.map → chunk-O4EQAPBB.js.map} +0 -0
  128. /package/dist/{chunk-CR37IINZ.js.map → chunk-SQP6A5AG.js.map} +0 -0
  129. /package/dist/{chunk-5OEW46QP.js.map → chunk-TN3XNBQN.js.map} +0 -0
  130. /package/dist/{chunk-7ATCEK7R.js.map → chunk-U476QMLK.js.map} +0 -0
  131. /package/dist/{chunk-U4AUJ6XI.js.map → chunk-VYNM7HYU.js.map} +0 -0
  132. /package/dist/{chunk-IIJB3OPV.js.map → chunk-WQTPSXVB.js.map} +0 -0
  133. /package/dist/{chunk-DGCYSQAZ.js.map → chunk-XC3466Z4.js.map} +0 -0
  134. /package/dist/{chunk-XTXFA5EJ.js.map → chunk-XPYZBWI7.js.map} +0 -0
  135. /package/dist/{chunk-GPX4LDAX.js.map → chunk-XV7IHWQE.js.map} +0 -0
  136. /package/dist/{chunk-YMMGY7GR.js.map → chunk-Y6KR7NXL.js.map} +0 -0
  137. /package/dist/{client-7PLIDORM.js.map → client-W7VFEYQ3.js.map} +0 -0
  138. /package/dist/{config-3R4EGNUG.js.map → config-ZVRI3GFZ.js.map} +0 -0
  139. /package/dist/{config-mutate-3PGEBKJ6.js.map → config-mutate-OM4MI56W.js.map} +0 -0
  140. /package/dist/{config-mutator-LQQOOUZR.js.map → config-mutator-RK3UQORI.js.map} +0 -0
  141. /package/dist/{contributions-D4O76KGX.js.map → contributions-3WW5AJ5A.js.map} +0 -0
  142. /package/dist/{doctor-QM4KUMQJ.js.map → doctor-AW53DQDU.js.map} +0 -0
  143. /package/dist/{follow-up-tool-X3YPYSP2.js.map → follow-up-tool-N5U7U5WN.js.map} +0 -0
  144. /package/dist/{grants-ZA35QVTX.js.map → grants-AIUWETYP.js.map} +0 -0
  145. /package/dist/{hub-PBJHXL2G.js.map → hub-J43NXLW3.js.map} +0 -0
  146. /package/dist/{org-tool-37GNUUAD.js.map → org-tool-VNDHR7WM.js.map} +0 -0
  147. /package/dist/{promote-CFI4HJDJ.js.map → promote-AO6KC3SU.js.map} +0 -0
  148. /package/dist/{query-J6S3GWPY.js.map → query-W6OYKQ2U.js.map} +0 -0
  149. /package/dist/{query-settings-2NKI7UFN.js.map → query-settings-2D6NCHCV.js.map} +0 -0
  150. /package/dist/{registry-R2QIR6GI.js.map → registry-KYCXXPEA.js.map} +0 -0
  151. /package/dist/{request-planner-NKGUSV4N.js.map → request-planner-SDO5MNFV.js.map} +0 -0
  152. /package/dist/{review-candidates-43HXKXWD.js.map → review-candidates-EAOLCDIK.js.map} +0 -0
  153. /package/dist/{routing-72F2DJTV.js.map → routing-VDVZ4IYF.js.map} +0 -0
  154. /package/dist/{runner-56G3N7M4.js.map → runner-I4ZB37JE.js.map} +0 -0
  155. /package/dist/{schedule-tool-V3KMSJHK.js.map → schedule-tool-65H6URQU.js.map} +0 -0
  156. /package/dist/{scheduler-ZBTMOE3T.js.map → scheduler-B52UIMKB.js.map} +0 -0
  157. /package/dist/{seat-GYYH2IW5.js.map → seat-5DLUHBTK.js.map} +0 -0
  158. /package/dist/{select-JNVP4P5N.js.map → select-Z3JDFC2C.js.map} +0 -0
  159. /package/dist/{set-enabled-U26A4RMI.js.map → set-enabled-FMI2GXCF.js.map} +0 -0
  160. /package/dist/{sprint-tool-YCDVAF2Y.js.map → sprint-tool-5NJYOFIZ.js.map} +0 -0
  161. /package/dist/{tool-K3RAEZKE.js.map → step-proof-NMKY7T5A.js.map} +0 -0
  162. /package/dist/{tool-JEHJS2SA.js.map → tool-2DOU5XCQ.js.map} +0 -0
  163. /package/dist/{wiki-6UFGH2OO.js.map → tool-AR4BLSYC.js.map} +0 -0
  164. /package/dist/{tool-MB3IYEP7.js.map → tool-RW32VEIV.js.map} +0 -0
  165. /package/dist/{tool-CF7OTKDV.js.map → tool-YT3WBUHS.js.map} +0 -0
  166. /package/dist/{tool-GHQ2FM4T.js.map → tool-ZSNE7YWS.js.map} +0 -0
  167. /package/dist/{wiki-enrich-7LMT3CFV.js.map → wiki-7PQ5YVA7.js.map} +0 -0
  168. /package/dist/{workspace-setup-CQ5FMT2B.js.map → wiki-enrich-IQZ5Y7A5.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-243AGBJJ.js"),{installCliSignalExit:r}=await import("./signal-exit-C5EUGHKI.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-YGEXHPRD.js"),{installCliSignalExit:r}=await import("./signal-exit-C5EUGHKI.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-7ATCEK7R.js";import"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-7PLIDORM.js.map
1
+ import{a,b,c,d,e,f,g}from"./chunk-U476QMLK.js";import"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-W7VFEYQ3.js.map
@@ -1,2 +1,2 @@
1
- import{$b as e,Ac as F,Cc as G,Xb as a,Yb as b,Zb as c,_b as d,ac as f,bc as g,cc as h,dc as i,ec as j,fc as k,gc as l,hc as m,ic as n,jc as o,kc as p,lc as q,mc as r,nc as s,oc as t,pc as u,qc as v,rc as w,sc as x,tc as y,uc as z,vc as A,wc as B,xc as C,yc as D,zc as E}from"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";G();export{a as INTEGRATION_KINDS,B as WIKI_CONTRIBUTE_JOB,C as WIKI_CONTRIBUTE_MERGE_JOB,E as WIKI_SUMMARIZE_JOB,s as approvalsConfigSchema,g as callsSchema,e as cameraBotSchema,z as crossFieldProblems,v as daemonConfigSchema,c as emailAccountSchema,b as eventSubscriptionSchema,w as expandEnvVars,r as improveConfigSchema,f as isCronExpression,y as literalSecretProblems,x as loadDaemonConfig,d as mailSenderSchema,o as membersConfigSchema,j as mergePolicyConfigSchema,t as numbersConfigSchema,n as peopleConfigSchema,m as personSchema,q as qualityReportConfigSchema,p as requestStatusConfigSchema,l as requestsConfigSchema,h as reviewGateConfigSchema,i as trackersConfigSchema,A as validateWorkspaces,u as wallConfigSchema,k as watchersConfigSchema,D as withContributionJobs,F as withSummariesJob};
2
- //# sourceMappingURL=config-3R4EGNUG.js.map
1
+ import{$b as e,Ac as F,Cc as G,Xb as a,Yb as b,Zb as c,_b as d,ac as f,bc as g,cc as h,dc as i,ec as j,fc as k,gc as l,hc as m,ic as n,jc as o,kc as p,lc as q,mc as r,nc as s,oc as t,pc as u,qc as v,rc as w,sc as x,tc as y,uc as z,vc as A,wc as B,xc as C,yc as D,zc as E}from"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";G();export{a as INTEGRATION_KINDS,B as WIKI_CONTRIBUTE_JOB,C as WIKI_CONTRIBUTE_MERGE_JOB,E as WIKI_SUMMARIZE_JOB,s as approvalsConfigSchema,g as callsSchema,e as cameraBotSchema,z as crossFieldProblems,v as daemonConfigSchema,c as emailAccountSchema,b as eventSubscriptionSchema,w as expandEnvVars,r as improveConfigSchema,f as isCronExpression,y as literalSecretProblems,x as loadDaemonConfig,d as mailSenderSchema,o as membersConfigSchema,j as mergePolicyConfigSchema,t as numbersConfigSchema,n as peopleConfigSchema,m as personSchema,q as qualityReportConfigSchema,p as requestStatusConfigSchema,l as requestsConfigSchema,h as reviewGateConfigSchema,i as trackersConfigSchema,A as validateWorkspaces,u as wallConfigSchema,k as watchersConfigSchema,D as withContributionJobs,F as withSummariesJob};
2
+ //# sourceMappingURL=config-ZVRI3GFZ.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"./chunk-TCBIAKGS.js";import"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";export{a as mutateAgentxConfig,b as writeAgentxConfig};
2
- //# sourceMappingURL=config-mutate-3PGEBKJ6.js.map
1
+ import{a,b}from"./chunk-4UJDRI7W.js";import"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";export{a as mutateAgentxConfig,b as writeAgentxConfig};
2
+ //# sourceMappingURL=config-mutate-OM4MI56W.js.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e}from"./chunk-KCS737RC.js";import"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-LQQOOUZR.js.map
1
+ import{a,b,c,d,e}from"./chunk-5BT4VPJC.js";import"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-RK3UQORI.js.map
@@ -1,4 +1,4 @@
1
- import{a as ee}from"./chunk-IIJB3OPV.js";import"./chunk-6X7SABYJ.js";import{f as Q,k as V}from"./chunk-IH65GDJR.js";import"./chunk-V75JESS5.js";import"./chunk-JTFCU5LH.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import{b as O}from"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-PTVDVI2U.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import{b as N,c as H}from"./chunk-AHWWJ7AF.js";import{b as X}from"./chunk-KEXBEUSU.js";import"./chunk-YMMGY7GR.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QUFIUXMQ.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-WQTPSXVB.js";import"./chunk-AZCGU5XU.js";import{f as Q,k as V}from"./chunk-IH65GDJR.js";import"./chunk-6EJJKOMW.js";import"./chunk-JTFCU5LH.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import{b as O}from"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-5QXRGX2F.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import{b as N,c as H}from"./chunk-AHWWJ7AF.js";import{b as X}from"./chunk-KEXBEUSU.js";import"./chunk-Y6KR7NXL.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QUFIUXMQ.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-D4O76KGX.js.map
57
+ //# sourceMappingURL=contributions-3WW5AJ5A.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,k as j}from"./chunk-W2KIJ5LL.js";import"./chunk-WMZ4TGMR.js";import"./chunk-2YDG5CSS.js";import"./chunk-U4AUJ6XI.js";import"./chunk-IMLAPB7G.js";import"./chunk-QPABR72X.js";import"./chunk-KP7KDLZ2.js";import"./chunk-BXK5S2KK.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-LY4G7PCW.js";import"./chunk-7IW25T4K.js";import"./chunk-Q3A5P373.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-QUFIUXMQ.js";import"./chunk-OSH2PEBH.js";import"./chunk-7I7IEX4S.js";import"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";export{j as daemonVoiceCheck,b as doctor,i as mcpHeaderEnvChecks,g as meshPeerTokenChecks,h as meshTokenChecksFromConfig,a as runDoctorChecks,e as runMirrorChecks,d as runNativeChecks,c as runNotificationChecks,f as runReminderChecks};
2
- //# sourceMappingURL=doctor-QM4KUMQJ.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,k as j}from"./chunk-O4EQAPBB.js";import"./chunk-WMZ4TGMR.js";import"./chunk-2YDG5CSS.js";import"./chunk-VYNM7HYU.js";import"./chunk-IMLAPB7G.js";import"./chunk-QPABR72X.js";import"./chunk-KP7KDLZ2.js";import"./chunk-3323WFVK.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-LY4G7PCW.js";import"./chunk-7IW25T4K.js";import"./chunk-Q3A5P373.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-QUFIUXMQ.js";import"./chunk-OSH2PEBH.js";import"./chunk-7I7IEX4S.js";import"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";export{j as daemonVoiceCheck,b as doctor,i as mcpHeaderEnvChecks,g as meshPeerTokenChecks,h as meshTokenChecksFromConfig,a as runDoctorChecks,e as runMirrorChecks,d as runNativeChecks,c as runNotificationChecks,f as runReminderChecks};
2
+ //# sourceMappingURL=doctor-AW53DQDU.js.map
@@ -1,7 +1,7 @@
1
- import{d as h}from"./chunk-EPOQUX4G.js";import{b as I}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-MELXJ5AR.js";import"./chunk-ZT4FCL5B.js";import"./chunk-KCS737RC.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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{d as h}from"./chunk-CIW37UJT.js";import"./chunk-AEFO6ES5.js";import{b as I}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-NW7B53KD.js";import"./chunk-5BT4VPJC.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-X3YPYSP2.js.map
7
+ //# sourceMappingURL=follow-up-tool-N5U7U5WN.js.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-SYIDD7CI.js";import"./chunk-BXK5S2KK.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-7I7IEX4S.js";import"./chunk-VQRY4IDI.js";import"./chunk-QIJLFPWE.js";export{c as DEFAULT_GRANT_DAYS,a as GUEST_SCOPE_PREFIX,b as JOIN_CARD_BY,h as JOIN_FAILED,d as MAX_GRANT_DAYS,j as NO_GRANT,l as PAUSED,k as WAITING_HOST,s as endGrant,o as grantBrief,u as grantForGuest,e as grantIdOf,n as guestAccess,p as guestTask,g as inviteGuest,i as joinGuest,f as newGrantId,q as pauseGrant,r as resumeGrant,m as settleGrant,t as updateGrant};
2
- //# sourceMappingURL=grants-ZA35QVTX.js.map
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-KQ3LPQ2Z.js";import"./chunk-3323WFVK.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-7I7IEX4S.js";import"./chunk-VQRY4IDI.js";import"./chunk-QIJLFPWE.js";export{c as DEFAULT_GRANT_DAYS,a as GUEST_SCOPE_PREFIX,b as JOIN_CARD_BY,h as JOIN_FAILED,d as MAX_GRANT_DAYS,j as NO_GRANT,l as PAUSED,k as WAITING_HOST,s as endGrant,o as grantBrief,u as grantForGuest,e as grantIdOf,n as guestAccess,p as guestTask,g as inviteGuest,i as joinGuest,f as newGrantId,q as pauseGrant,r as resumeGrant,m as settleGrant,t as updateGrant};
2
+ //# sourceMappingURL=grants-AIUWETYP.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"./chunk-SQJ3IHNL.js";import"./chunk-IQNKEUEL.js";import"./chunk-PTVDVI2U.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-YMMGY7GR.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{b as WikiHub,a as existingWikiDir};
2
- //# sourceMappingURL=hub-PBJHXL2G.js.map
1
+ import{a,b}from"./chunk-JMRFYGET.js";import"./chunk-ABMDDRZL.js";import"./chunk-5QXRGX2F.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-Y6KR7NXL.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{b as WikiHub,a as existingWikiDir};
2
+ //# sourceMappingURL=hub-J43NXLW3.js.map
package/dist/index.d.ts CHANGED
@@ -7336,6 +7336,19 @@ declare const daemonConfigSchema: z.ZodObject<{
7336
7336
  /** A run still waiting after this many minutes is refused in plain
7337
7337
  * words; 0 = wait as long as it takes. */
7338
7338
  maxWaitMinutes: z.ZodDefault<z.ZodNumber>;
7339
+ /** One written line, on the thread, to a person whose chat message has
7340
+ * waited afterSeconds in this queue; 0 = off. Only these channels.
7341
+ * The text has no numbers, host names or client detail. */
7342
+ waitNotice: z.ZodDefault<z.ZodObject<{
7343
+ afterSeconds: z.ZodDefault<z.ZodNumber>;
7344
+ channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7345
+ }, "strip", z.ZodTypeAny, {
7346
+ channels: string[];
7347
+ afterSeconds: number;
7348
+ }, {
7349
+ channels?: string[] | undefined;
7350
+ afterSeconds?: number | undefined;
7351
+ }>>;
7339
7352
  /** Seconds between resource re-reads while work waits. */
7340
7353
  sampleSeconds: z.ZodDefault<z.ZodNumber>;
7341
7354
  /** Named caps, e.g. { "browser": { "max": 1, "agents": ["web-tester"] } }. */
@@ -7417,6 +7430,10 @@ declare const daemonConfigSchema: z.ZodObject<{
7417
7430
  intervalSeconds: number;
7418
7431
  };
7419
7432
  allowOneWhenIdle: boolean;
7433
+ waitNotice: {
7434
+ channels: string[];
7435
+ afterSeconds: number;
7436
+ };
7420
7437
  sampleSeconds: number;
7421
7438
  classes: Record<string, {
7422
7439
  max: number;
@@ -7455,6 +7472,10 @@ declare const daemonConfigSchema: z.ZodObject<{
7455
7472
  intervalSeconds?: number | undefined;
7456
7473
  } | undefined;
7457
7474
  allowOneWhenIdle?: boolean | undefined;
7475
+ waitNotice?: {
7476
+ channels?: string[] | undefined;
7477
+ afterSeconds?: number | undefined;
7478
+ } | undefined;
7458
7479
  sampleSeconds?: number | undefined;
7459
7480
  classes?: Record<string, {
7460
7481
  max: number;
@@ -12625,6 +12646,10 @@ declare const daemonConfigSchema: z.ZodObject<{
12625
12646
  intervalSeconds: number;
12626
12647
  };
12627
12648
  allowOneWhenIdle: boolean;
12649
+ waitNotice: {
12650
+ channels: string[];
12651
+ afterSeconds: number;
12652
+ };
12628
12653
  sampleSeconds: number;
12629
12654
  classes: Record<string, {
12630
12655
  max: number;
@@ -14151,6 +14176,10 @@ declare const daemonConfigSchema: z.ZodObject<{
14151
14176
  intervalSeconds?: number | undefined;
14152
14177
  } | undefined;
14153
14178
  allowOneWhenIdle?: boolean | undefined;
14179
+ waitNotice?: {
14180
+ channels?: string[] | undefined;
14181
+ afterSeconds?: number | undefined;
14182
+ } | undefined;
14154
14183
  sampleSeconds?: number | undefined;
14155
14184
  classes?: Record<string, {
14156
14185
  max: number;
@@ -15131,6 +15160,8 @@ declare class AgentXDaemon {
15131
15160
  * reload that changes native.adapter or reminders.command applies. */
15132
15161
  private get native();
15133
15162
  private registry;
15163
+ /** Live proofs of running action.run steps (#1849). Memory only. */
15164
+ private readonly stepProofs;
15134
15165
  /** What the node reports about its own environment (#1531). */
15135
15166
  private nodeEnv;
15136
15167
  private router;
@@ -16009,7 +16040,10 @@ interface FriendlyError {
16009
16040
  | "dispatch_hold"
16010
16041
  /** Every slot of the agent stayed busy for the whole slot wait; the
16011
16042
  * message did not run. An event wake retries it (#1596). */
16012
- | "agent_busy" | "auth" | "permission" | "rate_limit" | "overloaded" | "context_too_large" | "invalid_request" | "upstream_api" | "timeout" | "cancelled" | "interrupted"
16043
+ | "agent_busy"
16044
+ /** The node had no room to start the run for admission.maxWaitMinutes;
16045
+ * the run was refused and is not queued. */
16046
+ | "no_room" | "auth" | "permission" | "rate_limit" | "overloaded" | "context_too_large" | "invalid_request" | "upstream_api" | "timeout" | "cancelled" | "interrupted"
16013
16047
  /** Ended by a stop signal; its resume plan is saved (#857). */
16014
16048
  | "stopped" | "unknown";
16015
16049
  /** Whether this error is transient — a retry has a reasonable chance of succeeding. */
@@ -16307,6 +16341,13 @@ interface AgentTask {
16307
16341
  /** Called with `runningTaskId` as soon as the run starts. Never fires for
16308
16342
  * a message that was queued or dropped instead of run. */
16309
16343
  onStart?: (runningTaskId: string) => void;
16344
+ /** Called at most once when the run has waited in the admission queue
16345
+ * for admission.waitNotice.afterSeconds, with the queue's reasons.
16346
+ * Never awaited. Set by the router for chat messages. */
16347
+ onHeld?: (w: {
16348
+ waitedMs: number;
16349
+ blockedBy: string[];
16350
+ }) => void;
16310
16351
  /** Aborted when the HTTP caller waiting on this run has gone (timeout,
16311
16352
  * disconnect). A run still waiting for a busy agent's slot is then
16312
16353
  * dropped instead of started: nobody is left to read its answer, and a
@@ -16457,6 +16498,8 @@ interface AgentResponse {
16457
16498
  * full FriendlyError taxonomy is in error-map.ts; common ones to
16458
16499
  * branch on: `out_of_credits`, `rate_limit`, `auth`, `timeout`. */
16459
16500
  errorKind?: FriendlyError["kind"];
16501
+ /** dispatch_hold only: when a cold dispatch can go again (ms), when known. */
16502
+ retryAt?: number;
16460
16503
  tokensUsed?: number;
16461
16504
  duration?: number;
16462
16505
  claudeSessionId?: string;
@@ -19815,6 +19858,14 @@ interface AdmissionSettings {
19815
19858
  allowOneWhenIdle: boolean;
19816
19859
  /** A run still waiting after this long is refused in plain words; 0 = never. */
19817
19860
  maxWaitMinutes: number;
19861
+ /** One written line to the person whose chat message has waited this
19862
+ * long (admission/wait-notice.ts). afterSeconds 0 = off; only the
19863
+ * listed channels get it. Separate from any later "join the waiting
19864
+ * run" setting, so either can be off alone. */
19865
+ waitNotice?: {
19866
+ afterSeconds: number;
19867
+ channels: string[];
19868
+ };
19818
19869
  /** Seconds between resource re-reads while work is waiting. */
19819
19870
  sampleSeconds: number;
19820
19871
  classes: Record<string, AdmissionClass>;
@@ -19865,6 +19916,17 @@ interface AdmissionRequest {
19865
19916
  /** On close, leave this run unanswered (a chat message the router
19866
19917
  * replays on boot) instead of answering "closed". */
19867
19918
  keepOnClose?: boolean;
19919
+ /** Called once when the run has been held this long. Never awaited and
19920
+ * never retried: a slow or failing caller cannot hold up the queue.
19921
+ * No timer of its own: the re-check every sampleSeconds while work
19922
+ * waits is what sees the time pass. */
19923
+ longWait?: {
19924
+ afterMs: number;
19925
+ notify: (w: {
19926
+ waitedMs: number;
19927
+ blockedBy: string[];
19928
+ }) => void;
19929
+ };
19868
19930
  signal?: AbortSignal;
19869
19931
  }
19870
19932
  interface AdmissionTicket {
@@ -19930,6 +19992,9 @@ declare class AdmissionQueue {
19930
19992
  /** Starts every waiting run that may start now, in queue order. */
19931
19993
  pump(): Promise<void>;
19932
19994
  private pass;
19995
+ /** Tells the caller once that its run has waited long (longWait). The
19996
+ * mark is set before the call, so a throwing caller is not called again. */
19997
+ private noticeLongWait;
19933
19998
  /** One round of closing idle sessions, when memory or swap holds a run. */
19934
19999
  private closeIdleRound;
19935
20000
  private admitEntry;
@@ -22008,6 +22073,14 @@ declare class MessageRouter {
22008
22073
  private dedupSaveTimer?;
22009
22074
  /** Crash-safe inflight log (see InflightLog class above). */
22010
22075
  private inflight;
22076
+ /** Message id -> when its wait line went out (admission.waitNotice).
22077
+ * Filled from the inflight log on replay, so a restart does not post
22078
+ * a second line for the same message. Dropped when the run starts. */
22079
+ private waitNoticed;
22080
+ /** `channel:chatId` -> when the plan-limit line on that thread stops
22081
+ * counting (its retry time). Cleared by that time passing or by a run
22082
+ * on the thread answering. Memory only: a restart may post it again. */
22083
+ private planHoldNotified;
22011
22084
  /** In-flight mesh forwards (this node is awaiting a peer's response).
22012
22085
  * Counted so the daemon's shutdown drain can wait for these in addition
22013
22086
  * to local agent tasks — otherwise a peer restart mid-forward kills the
@@ -22170,6 +22243,17 @@ declare class MessageRouter {
22170
22243
  * fresh outage notifies again but a burst inside one outage does not.
22171
22244
  */
22172
22245
  private meshFailureNotified;
22246
+ /** Channels whose chat messages get the wait line (admission.waitNotice). */
22247
+ private waitNoticeOn;
22248
+ /** Posts the one wait line for a message held in the node queue. Never
22249
+ * retried: a failed post is logged once and the run is untouched. On
22250
+ * GitLab the line is a top-level note (send ignores replyTo), visible
22251
+ * to everyone on the project, so its text has no numbers or names. */
22252
+ private postWaitNotice;
22253
+ /** True when the plan-limit line may be posted on this thread now, and
22254
+ * marks it. The mark lasts until the retry time it named (an hour when
22255
+ * unknown), or until a run on the thread answers. */
22256
+ private takePlanHoldMark;
22173
22257
  /**
22174
22258
  * A mesh-routed task failed. React ❌ (as the agent, where the channel
22175
22259
  * supports identity) and — the FIRST time this thread fails — post one
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{Oa as Tt,Pa 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-Z3FJRBTG.js";import"./chunk-3XUAIA7U.js";import"./chunk-GTJIKXDB.js";import"./chunk-IKOJM4GM.js";import"./chunk-U4AUJ6XI.js";import"./chunk-IMLAPB7G.js";import"./chunk-ZVP6GB4G.js";import"./chunk-SYIDD7CI.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-EWXY73XA.js";import"./chunk-3Q6MRG3P.js";import"./chunk-2VDO2HEK.js";import"./chunk-JWDJMFU6.js";import"./chunk-2P5NP4H6.js";import"./chunk-B4KQC3DG.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-TCBIAKGS.js";import"./chunk-MRIVENBY.js";import"./chunk-A5GYG56I.js";import"./chunk-DGCYSQAZ.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-RX5O5637.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-UYDC2YMH.js";import"./chunk-CR37IINZ.js";import"./chunk-QPABR72X.js";import"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import{Ka as yt,r as lt,s as ct,t as dt,u as mt,v as pt}from"./chunk-MUCWUVOW.js";import"./chunk-Y3TXTZYG.js";import"./chunk-MEFPXHQJ.js";import"./chunk-7AB3QUGH.js";import{a as L}from"./chunk-BAXGL6TY.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-HHSPOS7O.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-6TTGRTDO.js";import"./chunk-MELXJ5AR.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-7YOLZGB5.js";import"./chunk-IH65GDJR.js";import{u as ut}from"./chunk-ZT4FCL5B.js";import"./chunk-KCS737RC.js";import"./chunk-3UOTLMXD.js";import"./chunk-XVV7ZZ77.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-KWWBDLE6.js";import"./chunk-HVMUYEQP.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-SZDACK6O.js";import"./chunk-VWTBHLMX.js";import"./chunk-V75JESS5.js";import"./chunk-JTFCU5LH.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-BE64IJWM.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-MYVHVJWZ.js";import"./chunk-XQH4LCZR.js";import"./chunk-BXK5S2KK.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-LY4G7PCW.js";import"./chunk-DPG6VHPX.js";import"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-Z5CMA4JN.js";import"./chunk-SQJ3IHNL.js";import{a as ht}from"./chunk-IQNKEUEL.js";import{f as gt,g as ft}from"./chunk-PTVDVI2U.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-34TEBXFP.js";import{j as it,k as rt,l as at}from"./chunk-YMMGY7GR.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-7IW25T4K.js";import"./chunk-Q3A5P373.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-QUFIUXMQ.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-DCIYOPJF.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{Cc as nt,qc as tt,sc as st,vc as ot}from"./chunk-EZDHAX4Z.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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{Oa as Tt,Pa 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-RFVXW6F2.js";import"./chunk-B5QQ4IH2.js";import"./chunk-GTJIKXDB.js";import"./chunk-NCMPJPXG.js";import"./chunk-VYNM7HYU.js";import"./chunk-IMLAPB7G.js";import"./chunk-ZVP6GB4G.js";import"./chunk-MRIVENBY.js";import"./chunk-KQ3LPQ2Z.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-GO4J44UD.js";import"./chunk-UKUH662W.js";import"./chunk-3Q6MRG3P.js";import"./chunk-2VDO2HEK.js";import"./chunk-JWDJMFU6.js";import"./chunk-2P5NP4H6.js";import"./chunk-B4KQC3DG.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-4UJDRI7W.js";import"./chunk-A5GYG56I.js";import"./chunk-XC3466Z4.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-RX5O5637.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-D5LIMOI6.js";import"./chunk-SQP6A5AG.js";import"./chunk-QPABR72X.js";import"./chunk-AEFO6ES5.js";import"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{Na as yt,r as lt,s as ct,t as dt,u as mt,v as pt}from"./chunk-ZWD4ADV4.js";import"./chunk-AX6CCD5P.js";import"./chunk-MEFPXHQJ.js";import"./chunk-7AB3QUGH.js";import{a as L}from"./chunk-BAXGL6TY.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-BX4RQ2IZ.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-6TTGRTDO.js";import"./chunk-TCM3UOEQ.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-7YOLZGB5.js";import"./chunk-IH65GDJR.js";import{u as ut}from"./chunk-NW7B53KD.js";import"./chunk-5BT4VPJC.js";import"./chunk-3UOTLMXD.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-KWWBDLE6.js";import"./chunk-HVMUYEQP.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-LIY6X3LU.js";import"./chunk-VWTBHLMX.js";import"./chunk-6EJJKOMW.js";import"./chunk-JTFCU5LH.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-BE64IJWM.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-MYVHVJWZ.js";import"./chunk-74MHOALB.js";import"./chunk-3323WFVK.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-LY4G7PCW.js";import"./chunk-DPG6VHPX.js";import"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-Z5CMA4JN.js";import"./chunk-JMRFYGET.js";import{a as ht}from"./chunk-ABMDDRZL.js";import{f as gt,g as ft}from"./chunk-5QXRGX2F.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-JD5TCX4X.js";import{j as it,k as rt,l as at}from"./chunk-Y6KR7NXL.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-7IW25T4K.js";import"./chunk-Q3A5P373.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-QUFIUXMQ.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-DCIYOPJF.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{Cc as nt,qc as tt,sc as st,vc as ot}from"./chunk-VOVDWFFP.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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).