agentix-cli 0.197.0 → 0.199.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 (173) hide show
  1. package/apps/mac-voice/Sources/AgentXVoice/AgentClient.swift +7 -2
  2. package/apps/mac-voice/Sources/AgentXVoice/AnswerView.swift +19 -8
  3. package/apps/mac-voice/Sources/AgentXVoice/Artifacts.swift +54 -0
  4. package/apps/mac-voice/Sources/AgentXVoice/Markdown.swift +3 -0
  5. package/apps/mac-voice/Sources/AgentXVoice/PanelAnswer.swift +3 -2
  6. package/apps/mac-voice/Sources/AgentXVoice/main.swift +7 -7
  7. package/dist/{App-GF6MCNH6.js → App-HGCD735J.js} +2 -2
  8. package/dist/{ChatApp-FO2JNLWI.js → ChatApp-VVBGBDKU.js} +2 -2
  9. package/dist/{absorb-eval-7KMQJ5BR.js → absorb-eval-2XT7XBH7.js} +2 -2
  10. package/dist/{adapter-V7DQXCII.js → adapter-ZGEMORWD.js} +2 -2
  11. package/dist/{agent-PJBGUZMR.js → agent-4IF72I6E.js} +2 -2
  12. package/dist/{board-dashboard-M3RVQM7K.js → board-dashboard-2P77CUM3.js} +481 -336
  13. package/dist/board-dashboard-2P77CUM3.js.map +1 -0
  14. package/dist/chunk-2P5NP4H6.js +2 -0
  15. package/dist/{chunk-B3JQ5J47.js.map → chunk-2P5NP4H6.js.map} +1 -1
  16. package/dist/{chunk-4O6ZFYWT.js → chunk-3DAHVUJH.js} +2 -2
  17. package/dist/{chunk-K3623S4U.js → chunk-3DX7CKKW.js} +2 -2
  18. package/dist/{chunk-J7PZJRYO.js → chunk-3Q6MRG3P.js} +2 -2
  19. package/dist/{chunk-HIHROVHC.js → chunk-3SWDVBGA.js} +2 -2
  20. package/dist/{chunk-7MW44Y5O.js → chunk-5NE26NUO.js} +9 -9
  21. package/dist/{chunk-7MW44Y5O.js.map → chunk-5NE26NUO.js.map} +1 -1
  22. package/dist/{chunk-WFPLZLCF.js → chunk-5QK3U7R6.js} +2 -2
  23. package/dist/{chunk-RC3QYH2J.js → chunk-5VRN6JP7.js} +2 -2
  24. package/dist/{chunk-DHD4KUTW.js → chunk-6QU5YWOE.js} +2 -2
  25. package/dist/{chunk-424CABZF.js → chunk-7SKUXUIX.js} +26 -26
  26. package/dist/chunk-7SKUXUIX.js.map +1 -0
  27. package/dist/chunk-B4KQC3DG.js +4 -0
  28. package/dist/chunk-B4KQC3DG.js.map +1 -0
  29. package/dist/{chunk-R3TH2OG7.js → chunk-BBXB7X25.js} +2 -2
  30. package/dist/chunk-DECMCWGN.js +3 -0
  31. package/dist/{chunk-BY5CN7C7.js.map → chunk-DECMCWGN.js.map} +1 -1
  32. package/dist/{chunk-HOL645BZ.js → chunk-DUVPXHDO.js} +2 -2
  33. package/dist/{chunk-KB5JMDGS.js → chunk-F6UAAQSU.js} +2 -2
  34. package/dist/{chunk-IOCULCCJ.js → chunk-I4U2ELEX.js} +2 -2
  35. package/dist/{chunk-TKXZHRV3.js → chunk-JAS75QDT.js} +2 -2
  36. package/dist/chunk-K2JE5XR4.js +934 -0
  37. package/dist/chunk-K2JE5XR4.js.map +1 -0
  38. package/dist/{chunk-RLI32DLG.js → chunk-K3QWXVLV.js} +2 -2
  39. package/dist/{chunk-BN5JVELZ.js → chunk-KWU4EOWC.js} +2 -2
  40. package/dist/{chunk-425HPUKF.js → chunk-L3FCDIJT.js} +2 -2
  41. package/dist/{chunk-QABY3WEM.js → chunk-OCZVJANH.js} +2 -2
  42. package/dist/{chunk-SK7M6PS6.js → chunk-OWL6JA6W.js} +2 -2
  43. package/dist/{chunk-OXTFAV2A.js → chunk-RE6N3TRQ.js} +2 -2
  44. package/dist/{chunk-IQQ3I6R7.js → chunk-SPZXOCN5.js} +294 -294
  45. package/dist/chunk-SPZXOCN5.js.map +1 -0
  46. package/dist/{chunk-HUOR3FGJ.js → chunk-T7HWU7O4.js} +2 -2
  47. package/dist/chunk-UPRACUXY.js +118 -0
  48. package/dist/chunk-UPRACUXY.js.map +1 -0
  49. package/dist/{chunk-TBS7OVMI.js → chunk-UU7A5DNY.js} +2 -2
  50. package/dist/{chunk-3LMBT5LK.js → chunk-UY25GSQ3.js} +2 -2
  51. package/dist/{chunk-OVB3LW6L.js → chunk-XTBFWRM3.js} +2 -2
  52. package/dist/{chunk-3K3IBV5K.js → chunk-XZFBOXFK.js} +2 -2
  53. package/dist/chunk-YSCT6DPR.js +2 -0
  54. package/dist/chunk-YSCT6DPR.js.map +1 -0
  55. package/dist/{chunk-35GSB7SK.js → chunk-YU2JJIQH.js} +3 -3
  56. package/dist/cli.js +1 -1
  57. package/dist/client-PNZ3LL72.js +2 -0
  58. package/dist/config-HOKADOXX.js +2 -0
  59. package/dist/config-mutate-ZR7EM4IB.js +2 -0
  60. package/dist/config-mutator-NWTMXBEY.js +2 -0
  61. package/dist/{contributions-2HR5ZGMK.js → contributions-NBKZD7QW.js} +2 -2
  62. package/dist/{doctor-VMWX6GKN.js → doctor-K6SPV3GU.js} +2 -2
  63. package/dist/{follow-up-tool-BCSCBKVL.js → follow-up-tool-NPC3JLOA.js} +2 -2
  64. package/dist/hub-NKGZO574.js +2 -0
  65. package/dist/index.d.ts +197 -91
  66. package/dist/index.js +1 -1
  67. package/dist/ntfy-LSFROBMD.js +2 -0
  68. package/dist/{program-MOVUJBAA.js → program-DYFXKKJE.js} +243 -242
  69. package/dist/program-DYFXKKJE.js.map +1 -0
  70. package/dist/{promote-WWPXP5Z4.js → promote-HIFKFRC4.js} +2 -2
  71. package/dist/{push-E5YKRFAW.js → push-VMY34YND.js} +2 -2
  72. package/dist/push-bridge-T5HZZRA2.js +2 -0
  73. package/dist/{query-F7HRTCWI.js → query-VXE4AREX.js} +2 -2
  74. package/dist/{query-settings-Z32LXLJI.js → query-settings-NC7FOIRC.js} +2 -2
  75. package/dist/{registry-D5HHCFCC.js → registry-NGRLHM7L.js} +2 -2
  76. package/dist/{request-planner-4FSNZJVQ.js → request-planner-I65SRAJI.js} +2 -2
  77. package/dist/{review-candidates-U2DOD5Z3.js → review-candidates-7KV34XZR.js} +2 -2
  78. package/dist/{routing-USMMBJYT.js → routing-MLOSXPVH.js} +2 -2
  79. package/dist/schedule-tool-7DCB7KJP.js +2 -0
  80. package/dist/scheduler-WEOQLNIF.js +2 -0
  81. package/dist/{seat-3LW672DM.js → seat-66LQTUIR.js} +2 -2
  82. package/dist/{select-MPMJSYKX.js → select-JV425OUL.js} +2 -2
  83. package/dist/{set-enabled-TQXG3MSQ.js → set-enabled-DWL2MKVS.js} +2 -2
  84. package/dist/{sprint-tool-JQ5KCJDP.js → sprint-tool-CDO3HLLT.js} +2 -2
  85. package/dist/{tool-ZP3SZKYR.js → tool-7EFJJM2A.js} +2 -2
  86. package/dist/{tool-DHCKG3SK.js → tool-U3WQCSUN.js} +2 -2
  87. package/dist/{tool-D4DHXF4Z.js → tool-W763BDXL.js} +2 -2
  88. package/dist/wiki-MIEXBQ5H.js +2 -0
  89. package/dist/wiki-enrich-K4HHTRZN.js +2 -0
  90. package/package.json +1 -1
  91. package/dist/board-dashboard-M3RVQM7K.js.map +0 -1
  92. package/dist/chunk-27ICCQVL.js +0 -934
  93. package/dist/chunk-27ICCQVL.js.map +0 -1
  94. package/dist/chunk-424CABZF.js.map +0 -1
  95. package/dist/chunk-B3JQ5J47.js +0 -2
  96. package/dist/chunk-BMNDAEF4.js +0 -2
  97. package/dist/chunk-BMNDAEF4.js.map +0 -1
  98. package/dist/chunk-BY5CN7C7.js +0 -3
  99. package/dist/chunk-I22ZKW7Q.js +0 -4
  100. package/dist/chunk-I22ZKW7Q.js.map +0 -1
  101. package/dist/chunk-IQQ3I6R7.js.map +0 -1
  102. package/dist/chunk-SNYAM7YB.js +0 -116
  103. package/dist/chunk-SNYAM7YB.js.map +0 -1
  104. package/dist/client-ZHE4B2DD.js +0 -2
  105. package/dist/config-THBWCNN7.js +0 -2
  106. package/dist/config-mutate-FBX6TFCY.js +0 -2
  107. package/dist/config-mutator-33RBNPV4.js +0 -2
  108. package/dist/hub-WPC6MTZY.js +0 -2
  109. package/dist/ntfy-73UW6GHN.js +0 -2
  110. package/dist/program-MOVUJBAA.js.map +0 -1
  111. package/dist/push-bridge-RV3CBTYO.js +0 -2
  112. package/dist/schedule-tool-IRTB23XL.js +0 -2
  113. package/dist/scheduler-L4ERAOMG.js +0 -2
  114. package/dist/wiki-CRH6XAXE.js +0 -2
  115. package/dist/wiki-enrich-YZEW6RZT.js +0 -2
  116. /package/dist/{App-GF6MCNH6.js.map → App-HGCD735J.js.map} +0 -0
  117. /package/dist/{ChatApp-FO2JNLWI.js.map → ChatApp-VVBGBDKU.js.map} +0 -0
  118. /package/dist/{absorb-eval-7KMQJ5BR.js.map → absorb-eval-2XT7XBH7.js.map} +0 -0
  119. /package/dist/{adapter-V7DQXCII.js.map → adapter-ZGEMORWD.js.map} +0 -0
  120. /package/dist/{agent-PJBGUZMR.js.map → agent-4IF72I6E.js.map} +0 -0
  121. /package/dist/{chunk-4O6ZFYWT.js.map → chunk-3DAHVUJH.js.map} +0 -0
  122. /package/dist/{chunk-K3623S4U.js.map → chunk-3DX7CKKW.js.map} +0 -0
  123. /package/dist/{chunk-J7PZJRYO.js.map → chunk-3Q6MRG3P.js.map} +0 -0
  124. /package/dist/{chunk-HIHROVHC.js.map → chunk-3SWDVBGA.js.map} +0 -0
  125. /package/dist/{chunk-WFPLZLCF.js.map → chunk-5QK3U7R6.js.map} +0 -0
  126. /package/dist/{chunk-RC3QYH2J.js.map → chunk-5VRN6JP7.js.map} +0 -0
  127. /package/dist/{chunk-DHD4KUTW.js.map → chunk-6QU5YWOE.js.map} +0 -0
  128. /package/dist/{chunk-R3TH2OG7.js.map → chunk-BBXB7X25.js.map} +0 -0
  129. /package/dist/{chunk-HOL645BZ.js.map → chunk-DUVPXHDO.js.map} +0 -0
  130. /package/dist/{chunk-KB5JMDGS.js.map → chunk-F6UAAQSU.js.map} +0 -0
  131. /package/dist/{chunk-IOCULCCJ.js.map → chunk-I4U2ELEX.js.map} +0 -0
  132. /package/dist/{chunk-TKXZHRV3.js.map → chunk-JAS75QDT.js.map} +0 -0
  133. /package/dist/{chunk-RLI32DLG.js.map → chunk-K3QWXVLV.js.map} +0 -0
  134. /package/dist/{chunk-BN5JVELZ.js.map → chunk-KWU4EOWC.js.map} +0 -0
  135. /package/dist/{chunk-425HPUKF.js.map → chunk-L3FCDIJT.js.map} +0 -0
  136. /package/dist/{chunk-QABY3WEM.js.map → chunk-OCZVJANH.js.map} +0 -0
  137. /package/dist/{chunk-SK7M6PS6.js.map → chunk-OWL6JA6W.js.map} +0 -0
  138. /package/dist/{chunk-OXTFAV2A.js.map → chunk-RE6N3TRQ.js.map} +0 -0
  139. /package/dist/{chunk-HUOR3FGJ.js.map → chunk-T7HWU7O4.js.map} +0 -0
  140. /package/dist/{chunk-TBS7OVMI.js.map → chunk-UU7A5DNY.js.map} +0 -0
  141. /package/dist/{chunk-3LMBT5LK.js.map → chunk-UY25GSQ3.js.map} +0 -0
  142. /package/dist/{chunk-OVB3LW6L.js.map → chunk-XTBFWRM3.js.map} +0 -0
  143. /package/dist/{chunk-3K3IBV5K.js.map → chunk-XZFBOXFK.js.map} +0 -0
  144. /package/dist/{chunk-35GSB7SK.js.map → chunk-YU2JJIQH.js.map} +0 -0
  145. /package/dist/{client-ZHE4B2DD.js.map → client-PNZ3LL72.js.map} +0 -0
  146. /package/dist/{config-THBWCNN7.js.map → config-HOKADOXX.js.map} +0 -0
  147. /package/dist/{config-mutate-FBX6TFCY.js.map → config-mutate-ZR7EM4IB.js.map} +0 -0
  148. /package/dist/{config-mutator-33RBNPV4.js.map → config-mutator-NWTMXBEY.js.map} +0 -0
  149. /package/dist/{contributions-2HR5ZGMK.js.map → contributions-NBKZD7QW.js.map} +0 -0
  150. /package/dist/{doctor-VMWX6GKN.js.map → doctor-K6SPV3GU.js.map} +0 -0
  151. /package/dist/{follow-up-tool-BCSCBKVL.js.map → follow-up-tool-NPC3JLOA.js.map} +0 -0
  152. /package/dist/{hub-WPC6MTZY.js.map → hub-NKGZO574.js.map} +0 -0
  153. /package/dist/{ntfy-73UW6GHN.js.map → ntfy-LSFROBMD.js.map} +0 -0
  154. /package/dist/{promote-WWPXP5Z4.js.map → promote-HIFKFRC4.js.map} +0 -0
  155. /package/dist/{push-E5YKRFAW.js.map → push-VMY34YND.js.map} +0 -0
  156. /package/dist/{push-bridge-RV3CBTYO.js.map → push-bridge-T5HZZRA2.js.map} +0 -0
  157. /package/dist/{query-F7HRTCWI.js.map → query-VXE4AREX.js.map} +0 -0
  158. /package/dist/{query-settings-Z32LXLJI.js.map → query-settings-NC7FOIRC.js.map} +0 -0
  159. /package/dist/{registry-D5HHCFCC.js.map → registry-NGRLHM7L.js.map} +0 -0
  160. /package/dist/{request-planner-4FSNZJVQ.js.map → request-planner-I65SRAJI.js.map} +0 -0
  161. /package/dist/{review-candidates-U2DOD5Z3.js.map → review-candidates-7KV34XZR.js.map} +0 -0
  162. /package/dist/{routing-USMMBJYT.js.map → routing-MLOSXPVH.js.map} +0 -0
  163. /package/dist/{schedule-tool-IRTB23XL.js.map → schedule-tool-7DCB7KJP.js.map} +0 -0
  164. /package/dist/{scheduler-L4ERAOMG.js.map → scheduler-WEOQLNIF.js.map} +0 -0
  165. /package/dist/{seat-3LW672DM.js.map → seat-66LQTUIR.js.map} +0 -0
  166. /package/dist/{select-MPMJSYKX.js.map → select-JV425OUL.js.map} +0 -0
  167. /package/dist/{set-enabled-TQXG3MSQ.js.map → set-enabled-DWL2MKVS.js.map} +0 -0
  168. /package/dist/{sprint-tool-JQ5KCJDP.js.map → sprint-tool-CDO3HLLT.js.map} +0 -0
  169. /package/dist/{tool-ZP3SZKYR.js.map → tool-7EFJJM2A.js.map} +0 -0
  170. /package/dist/{tool-DHCKG3SK.js.map → tool-U3WQCSUN.js.map} +0 -0
  171. /package/dist/{tool-D4DHXF4Z.js.map → tool-W763BDXL.js.map} +0 -0
  172. /package/dist/{wiki-CRH6XAXE.js.map → wiki-MIEXBQ5H.js.map} +0 -0
  173. /package/dist/{wiki-enrich-YZEW6RZT.js.map → wiki-enrich-K4HHTRZN.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -1814,6 +1814,10 @@ declare const agentConfigSchema: z.ZodObject<{
1814
1814
  /** wake only: what to do next when this event arrives. Added to the
1815
1815
  * woken turn's message after the event itself (#1284). */
1816
1816
  prompt: z.ZodOptional<z.ZodString>;
1817
+ /** wake only: drop the wake when its turn has not started this many
1818
+ * minutes after the event, for example because the agent stayed busy
1819
+ * (#1596). An event's own `expiresAt` applies too; the earlier wins. */
1820
+ maxDelayMin: z.ZodOptional<z.ZodNumber>;
1817
1821
  }, "strip", z.ZodTypeAny, {
1818
1822
  kinds: string[];
1819
1823
  delivery: "pull" | "digest" | "wake";
@@ -1822,6 +1826,7 @@ declare const agentConfigSchema: z.ZodObject<{
1822
1826
  agents?: string[] | undefined;
1823
1827
  prompt?: string | undefined;
1824
1828
  nodes?: string[] | undefined;
1829
+ maxDelayMin?: number | undefined;
1825
1830
  }, {
1826
1831
  kinds: string[];
1827
1832
  match?: string | undefined;
@@ -1830,6 +1835,7 @@ declare const agentConfigSchema: z.ZodObject<{
1830
1835
  nodes?: string[] | undefined;
1831
1836
  delivery?: "pull" | "digest" | "wake" | undefined;
1832
1837
  maxPerHour?: number | undefined;
1838
+ maxDelayMin?: number | undefined;
1833
1839
  }>, "many">>;
1834
1840
  /** Per-agent third-party integrations registry. Declares which services
1835
1841
  * this agent has credentials for (telegram-bot, hubspot, gitlab-user,
@@ -2043,6 +2049,7 @@ declare const agentConfigSchema: z.ZodObject<{
2043
2049
  agents?: string[] | undefined;
2044
2050
  prompt?: string | undefined;
2045
2051
  nodes?: string[] | undefined;
2052
+ maxDelayMin?: number | undefined;
2046
2053
  }[];
2047
2054
  integrations: {
2048
2055
  enabled: boolean;
@@ -2209,6 +2216,7 @@ declare const agentConfigSchema: z.ZodObject<{
2209
2216
  nodes?: string[] | undefined;
2210
2217
  delivery?: "pull" | "digest" | "wake" | undefined;
2211
2218
  maxPerHour?: number | undefined;
2219
+ maxDelayMin?: number | undefined;
2212
2220
  }[] | undefined;
2213
2221
  integrations?: {
2214
2222
  label: string;
@@ -3003,6 +3011,10 @@ declare const daemonConfigSchema: z.ZodObject<{
3003
3011
  /** wake only: what to do next when this event arrives. Added to the
3004
3012
  * woken turn's message after the event itself (#1284). */
3005
3013
  prompt: z.ZodOptional<z.ZodString>;
3014
+ /** wake only: drop the wake when its turn has not started this many
3015
+ * minutes after the event, for example because the agent stayed busy
3016
+ * (#1596). An event's own `expiresAt` applies too; the earlier wins. */
3017
+ maxDelayMin: z.ZodOptional<z.ZodNumber>;
3006
3018
  }, "strip", z.ZodTypeAny, {
3007
3019
  kinds: string[];
3008
3020
  delivery: "pull" | "digest" | "wake";
@@ -3011,6 +3023,7 @@ declare const daemonConfigSchema: z.ZodObject<{
3011
3023
  agents?: string[] | undefined;
3012
3024
  prompt?: string | undefined;
3013
3025
  nodes?: string[] | undefined;
3026
+ maxDelayMin?: number | undefined;
3014
3027
  }, {
3015
3028
  kinds: string[];
3016
3029
  match?: string | undefined;
@@ -3019,6 +3032,7 @@ declare const daemonConfigSchema: z.ZodObject<{
3019
3032
  nodes?: string[] | undefined;
3020
3033
  delivery?: "pull" | "digest" | "wake" | undefined;
3021
3034
  maxPerHour?: number | undefined;
3035
+ maxDelayMin?: number | undefined;
3022
3036
  }>, "many">>;
3023
3037
  /** Per-agent third-party integrations registry. Declares which services
3024
3038
  * this agent has credentials for (telegram-bot, hubspot, gitlab-user,
@@ -3232,6 +3246,7 @@ declare const daemonConfigSchema: z.ZodObject<{
3232
3246
  agents?: string[] | undefined;
3233
3247
  prompt?: string | undefined;
3234
3248
  nodes?: string[] | undefined;
3249
+ maxDelayMin?: number | undefined;
3235
3250
  }[];
3236
3251
  integrations: {
3237
3252
  enabled: boolean;
@@ -3398,6 +3413,7 @@ declare const daemonConfigSchema: z.ZodObject<{
3398
3413
  nodes?: string[] | undefined;
3399
3414
  delivery?: "pull" | "digest" | "wake" | undefined;
3400
3415
  maxPerHour?: number | undefined;
3416
+ maxDelayMin?: number | undefined;
3401
3417
  }[] | undefined;
3402
3418
  integrations?: {
3403
3419
  label: string;
@@ -6564,6 +6580,63 @@ declare const daemonConfigSchema: z.ZodObject<{
6564
6580
  composeTimeoutSeconds?: number | undefined;
6565
6581
  } | undefined;
6566
6582
  }>>;
6583
+ /** Mail AgentX sends itself (#1478). Unset: it sends none. */
6584
+ mail: z.ZodDefault<z.ZodObject<{
6585
+ sender: z.ZodOptional<z.ZodObject<{
6586
+ kind: z.ZodLiteral<"smtp">;
6587
+ /** The address mail comes from, on the provider's sending domain. */
6588
+ from: z.ZodString;
6589
+ /** Display name. Default: "AgentX". */
6590
+ name: z.ZodDefault<z.ZodString>;
6591
+ host: z.ZodString;
6592
+ /** 587 with `secure: false` (STARTTLS), or 465 with `secure: true`. */
6593
+ port: z.ZodDefault<z.ZodNumber>;
6594
+ secure: z.ZodDefault<z.ZodBoolean>;
6595
+ /** `${ENV_VAR}` only: a literal value is refused when the config loads. */
6596
+ user: z.ZodString;
6597
+ password: z.ZodString;
6598
+ }, "strip", z.ZodTypeAny, {
6599
+ user: string;
6600
+ password: string;
6601
+ name: string;
6602
+ from: string;
6603
+ kind: "smtp";
6604
+ port: number;
6605
+ host: string;
6606
+ secure: boolean;
6607
+ }, {
6608
+ user: string;
6609
+ password: string;
6610
+ from: string;
6611
+ kind: "smtp";
6612
+ host: string;
6613
+ name?: string | undefined;
6614
+ port?: number | undefined;
6615
+ secure?: boolean | undefined;
6616
+ }>>;
6617
+ }, "strip", z.ZodTypeAny, {
6618
+ sender?: {
6619
+ user: string;
6620
+ password: string;
6621
+ name: string;
6622
+ from: string;
6623
+ kind: "smtp";
6624
+ port: number;
6625
+ host: string;
6626
+ secure: boolean;
6627
+ } | undefined;
6628
+ }, {
6629
+ sender?: {
6630
+ user: string;
6631
+ password: string;
6632
+ from: string;
6633
+ kind: "smtp";
6634
+ host: string;
6635
+ name?: string | undefined;
6636
+ port?: number | undefined;
6637
+ secure?: boolean | undefined;
6638
+ } | undefined;
6639
+ }>>;
6567
6640
  /** Quality gates for agent-written changes (#987). Each is off by default. */
6568
6641
  quality: z.ZodDefault<z.ZodObject<{
6569
6642
  /** Spec-first tests (#992): for an issue that names a pilot path and
@@ -10959,6 +11032,7 @@ declare const daemonConfigSchema: z.ZodObject<{
10959
11032
  agents?: string[] | undefined;
10960
11033
  prompt?: string | undefined;
10961
11034
  nodes?: string[] | undefined;
11035
+ maxDelayMin?: number | undefined;
10962
11036
  }[];
10963
11037
  integrations: {
10964
11038
  enabled: boolean;
@@ -11258,6 +11332,13 @@ declare const daemonConfigSchema: z.ZodObject<{
11258
11332
  events: {
11259
11333
  ringSize: number;
11260
11334
  };
11335
+ node: {
11336
+ id: string;
11337
+ name: string;
11338
+ bind: string;
11339
+ connectAttemptTimeoutMs: number;
11340
+ defaultAgent?: string | undefined;
11341
+ };
11261
11342
  native: {
11262
11343
  notes: {
11263
11344
  enabled: boolean;
@@ -11424,13 +11505,6 @@ declare const daemonConfigSchema: z.ZodObject<{
11424
11505
  };
11425
11506
  forwardTo?: string | undefined;
11426
11507
  };
11427
- node: {
11428
- id: string;
11429
- name: string;
11430
- bind: string;
11431
- connectAttemptTimeoutMs: number;
11432
- defaultAgent?: string | undefined;
11433
- };
11434
11508
  channels: {
11435
11509
  push: {
11436
11510
  enabled: boolean;
@@ -11610,6 +11684,45 @@ declare const daemonConfigSchema: z.ZodObject<{
11610
11684
  defaultTitle?: string | undefined;
11611
11685
  };
11612
11686
  };
11687
+ notifications: {
11688
+ local: {
11689
+ sound: boolean;
11690
+ banner: boolean;
11691
+ soundName: string;
11692
+ volume: number;
11693
+ quietWaitSeconds: number;
11694
+ icon?: string | undefined;
11695
+ };
11696
+ on: {
11697
+ taskComplete: boolean;
11698
+ taskError: boolean;
11699
+ taskQueued: boolean;
11700
+ };
11701
+ longTaskThreshold: number;
11702
+ told: {
11703
+ enabled: boolean;
11704
+ channels: string[];
11705
+ repeatWindowHours: number;
11706
+ addresses: string[];
11707
+ digestNags: boolean;
11708
+ };
11709
+ reach: {
11710
+ enabled: boolean;
11711
+ escalateAfterMinutes: number;
11712
+ ladder: string[];
11713
+ };
11714
+ desk: {
11715
+ phone: "all" | "off" | "urgent";
11716
+ computer?: "all" | "off" | "urgent" | undefined;
11717
+ };
11718
+ channel?: string | undefined;
11719
+ destination?: {
11720
+ channel: string;
11721
+ chatId: string;
11722
+ accountId?: string | undefined;
11723
+ } | undefined;
11724
+ publicUrl?: string | undefined;
11725
+ };
11613
11726
  crons: Record<string, {
11614
11727
  enabled: boolean;
11615
11728
  agent: string;
@@ -11769,45 +11882,6 @@ declare const daemonConfigSchema: z.ZodObject<{
11769
11882
  } | undefined;
11770
11883
  allowedContacts?: string[] | undefined;
11771
11884
  }>;
11772
- notifications: {
11773
- local: {
11774
- sound: boolean;
11775
- banner: boolean;
11776
- soundName: string;
11777
- volume: number;
11778
- quietWaitSeconds: number;
11779
- icon?: string | undefined;
11780
- };
11781
- on: {
11782
- taskComplete: boolean;
11783
- taskError: boolean;
11784
- taskQueued: boolean;
11785
- };
11786
- longTaskThreshold: number;
11787
- told: {
11788
- enabled: boolean;
11789
- channels: string[];
11790
- repeatWindowHours: number;
11791
- addresses: string[];
11792
- digestNags: boolean;
11793
- };
11794
- reach: {
11795
- enabled: boolean;
11796
- escalateAfterMinutes: number;
11797
- ladder: string[];
11798
- };
11799
- desk: {
11800
- phone: "all" | "off" | "urgent";
11801
- computer?: "all" | "off" | "urgent" | undefined;
11802
- };
11803
- channel?: string | undefined;
11804
- destination?: {
11805
- channel: string;
11806
- chatId: string;
11807
- accountId?: string | undefined;
11808
- } | undefined;
11809
- publicUrl?: string | undefined;
11810
- };
11811
11885
  calls: {
11812
11886
  summary: boolean;
11813
11887
  allow: string[];
@@ -11878,6 +11952,18 @@ declare const daemonConfigSchema: z.ZodObject<{
11878
11952
  baseUrl?: string | undefined;
11879
11953
  };
11880
11954
  };
11955
+ mail: {
11956
+ sender?: {
11957
+ user: string;
11958
+ password: string;
11959
+ name: string;
11960
+ from: string;
11961
+ kind: "smtp";
11962
+ port: number;
11963
+ host: string;
11964
+ secure: boolean;
11965
+ } | undefined;
11966
+ };
11881
11967
  shutdown: {
11882
11968
  restart: {
11883
11969
  windowWaitMinutes: number;
@@ -12368,6 +12454,7 @@ declare const daemonConfigSchema: z.ZodObject<{
12368
12454
  nodes?: string[] | undefined;
12369
12455
  delivery?: "pull" | "digest" | "wake" | undefined;
12370
12456
  maxPerHour?: number | undefined;
12457
+ maxDelayMin?: number | undefined;
12371
12458
  }[] | undefined;
12372
12459
  integrations?: {
12373
12460
  label: string;
@@ -13043,6 +13130,45 @@ declare const daemonConfigSchema: z.ZodObject<{
13043
13130
  defaultTitle?: string | undefined;
13044
13131
  } | undefined;
13045
13132
  } | undefined;
13133
+ notifications?: {
13134
+ local?: {
13135
+ sound?: boolean | undefined;
13136
+ banner?: boolean | undefined;
13137
+ soundName?: string | undefined;
13138
+ volume?: number | undefined;
13139
+ icon?: string | undefined;
13140
+ quietWaitSeconds?: number | undefined;
13141
+ } | undefined;
13142
+ channel?: string | undefined;
13143
+ on?: {
13144
+ taskComplete?: boolean | undefined;
13145
+ taskError?: boolean | undefined;
13146
+ taskQueued?: boolean | undefined;
13147
+ } | undefined;
13148
+ longTaskThreshold?: number | undefined;
13149
+ destination?: {
13150
+ channel: string;
13151
+ chatId: string;
13152
+ accountId?: string | undefined;
13153
+ } | undefined;
13154
+ publicUrl?: string | undefined;
13155
+ told?: {
13156
+ enabled?: boolean | undefined;
13157
+ channels?: string[] | undefined;
13158
+ repeatWindowHours?: number | undefined;
13159
+ addresses?: string[] | undefined;
13160
+ digestNags?: boolean | undefined;
13161
+ } | undefined;
13162
+ reach?: {
13163
+ enabled?: boolean | undefined;
13164
+ escalateAfterMinutes?: number | undefined;
13165
+ ladder?: string[] | undefined;
13166
+ } | undefined;
13167
+ desk?: {
13168
+ phone?: "all" | "off" | "urgent" | undefined;
13169
+ computer?: "all" | "off" | "urgent" | undefined;
13170
+ } | undefined;
13171
+ } | undefined;
13046
13172
  crons?: Record<string, {
13047
13173
  agent: string;
13048
13174
  schedule: string;
@@ -13202,45 +13328,6 @@ declare const daemonConfigSchema: z.ZodObject<{
13202
13328
  } | undefined;
13203
13329
  allowedContacts?: string[] | undefined;
13204
13330
  }> | undefined;
13205
- notifications?: {
13206
- local?: {
13207
- sound?: boolean | undefined;
13208
- banner?: boolean | undefined;
13209
- soundName?: string | undefined;
13210
- volume?: number | undefined;
13211
- icon?: string | undefined;
13212
- quietWaitSeconds?: number | undefined;
13213
- } | undefined;
13214
- channel?: string | undefined;
13215
- on?: {
13216
- taskComplete?: boolean | undefined;
13217
- taskError?: boolean | undefined;
13218
- taskQueued?: boolean | undefined;
13219
- } | undefined;
13220
- longTaskThreshold?: number | undefined;
13221
- destination?: {
13222
- channel: string;
13223
- chatId: string;
13224
- accountId?: string | undefined;
13225
- } | undefined;
13226
- publicUrl?: string | undefined;
13227
- told?: {
13228
- enabled?: boolean | undefined;
13229
- channels?: string[] | undefined;
13230
- repeatWindowHours?: number | undefined;
13231
- addresses?: string[] | undefined;
13232
- digestNags?: boolean | undefined;
13233
- } | undefined;
13234
- reach?: {
13235
- enabled?: boolean | undefined;
13236
- escalateAfterMinutes?: number | undefined;
13237
- ladder?: string[] | undefined;
13238
- } | undefined;
13239
- desk?: {
13240
- phone?: "all" | "off" | "urgent" | undefined;
13241
- computer?: "all" | "off" | "urgent" | undefined;
13242
- } | undefined;
13243
- } | undefined;
13244
13331
  calls?: {
13245
13332
  summary?: boolean | undefined;
13246
13333
  allow?: string[] | undefined;
@@ -13311,6 +13398,18 @@ declare const daemonConfigSchema: z.ZodObject<{
13311
13398
  emailEnv?: string | undefined;
13312
13399
  } | undefined;
13313
13400
  } | undefined;
13401
+ mail?: {
13402
+ sender?: {
13403
+ user: string;
13404
+ password: string;
13405
+ from: string;
13406
+ kind: "smtp";
13407
+ host: string;
13408
+ name?: string | undefined;
13409
+ port?: number | undefined;
13410
+ secure?: boolean | undefined;
13411
+ } | undefined;
13412
+ } | undefined;
13314
13413
  shutdown?: {
13315
13414
  restart?: {
13316
13415
  allowBy?: string | undefined;
@@ -13652,6 +13751,10 @@ interface EventEnvelope {
13652
13751
  summary: string;
13653
13752
  /** Pointer to the durable record: a trace id, run id or task id. */
13654
13753
  ref?: string;
13754
+ /** ISO time after which the event is no longer worth acting on, for
13755
+ * example a "restarts in 1 minute" warning. A wake that has not started
13756
+ * by then is dropped (#1596). */
13757
+ expiresAt?: string;
13655
13758
  }
13656
13759
  interface RecentQuery {
13657
13760
  /** An event id (returns events after it) or an ISO timestamp. */
@@ -14157,6 +14260,7 @@ interface PublishInput {
14157
14260
  summary: string;
14158
14261
  agentId?: string;
14159
14262
  ref?: string;
14263
+ expiresAt?: string;
14160
14264
  id?: string;
14161
14265
  at?: string;
14162
14266
  rootId?: string;
@@ -14333,6 +14437,8 @@ declare class AgentXDaemon {
14333
14437
  private landscape;
14334
14438
  private heartbeat;
14335
14439
  private stopEventWaker?;
14440
+ /** What each event wake did, for the Hub's events feed (#1648). */
14441
+ private readonly wakeJournal;
14336
14442
  /** Stop and resume signals (agents/signals, #857). */
14337
14443
  private signals;
14338
14444
  private stopAllReporter;
@@ -16863,17 +16969,17 @@ declare const graphNodeSchema: z.ZodObject<{
16863
16969
  createdBy: z.ZodOptional<z.ZodString>;
16864
16970
  }, "strip", z.ZodTypeAny, {
16865
16971
  id: string;
16972
+ parentId: string | null;
16866
16973
  createdAt: string;
16867
16974
  axes: Record<string, string>;
16868
16975
  level: string;
16869
- parentId: string | null;
16870
16976
  createdBy?: string | undefined;
16871
16977
  }, {
16872
16978
  id: string;
16979
+ parentId: string | null;
16873
16980
  createdAt: string;
16874
16981
  axes: Record<string, string>;
16875
16982
  level: string;
16876
- parentId: string | null;
16877
16983
  createdBy?: string | undefined;
16878
16984
  }>;
16879
16985
  type GraphNode = z.infer<typeof graphNodeSchema>;
@@ -16999,37 +17105,37 @@ declare const nodesFileSchema: z.ZodObject<{
16999
17105
  createdBy: z.ZodOptional<z.ZodString>;
17000
17106
  }, "strip", z.ZodTypeAny, {
17001
17107
  id: string;
17108
+ parentId: string | null;
17002
17109
  createdAt: string;
17003
17110
  axes: Record<string, string>;
17004
17111
  level: string;
17005
- parentId: string | null;
17006
17112
  createdBy?: string | undefined;
17007
17113
  }, {
17008
17114
  id: string;
17115
+ parentId: string | null;
17009
17116
  createdAt: string;
17010
17117
  axes: Record<string, string>;
17011
17118
  level: string;
17012
- parentId: string | null;
17013
17119
  createdBy?: string | undefined;
17014
17120
  }>, "many">>;
17015
17121
  }, "strip", z.ZodTypeAny, {
17016
17122
  version: number;
17017
17123
  nodes: {
17018
17124
  id: string;
17125
+ parentId: string | null;
17019
17126
  createdAt: string;
17020
17127
  axes: Record<string, string>;
17021
17128
  level: string;
17022
- parentId: string | null;
17023
17129
  createdBy?: string | undefined;
17024
17130
  }[];
17025
17131
  }, {
17026
17132
  version?: number | undefined;
17027
17133
  nodes?: {
17028
17134
  id: string;
17135
+ parentId: string | null;
17029
17136
  createdAt: string;
17030
17137
  axes: Record<string, string>;
17031
17138
  level: string;
17032
- parentId: string | null;
17033
17139
  createdBy?: string | undefined;
17034
17140
  }[] | undefined;
17035
17141
  }>;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{Ma as Tt,Na 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-IQQ3I6R7.js";import"./chunk-27ICCQVL.js";import"./chunk-GTJIKXDB.js";import"./chunk-3K3IBV5K.js";import"./chunk-ZVP6GB4G.js";import"./chunk-R3TH2OG7.js";import"./chunk-IMLAPB7G.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-BY5CN7C7.js";import"./chunk-J7PZJRYO.js";import"./chunk-2VDO2HEK.js";import"./chunk-B3JQ5J47.js";import"./chunk-I22ZKW7Q.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-BIYEGA7Q.js";import"./chunk-XPZSEDE3.js";import"./chunk-PPUN7YHA.js";import"./chunk-A5GYG56I.js";import"./chunk-TKXZHRV3.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-JWDJMFU6.js";import"./chunk-6TTGRTDO.js";import"./chunk-MNG2AMKZ.js";import"./chunk-RX5O5637.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-RC3QYH2J.js";import"./chunk-QPABR72X.js";import"./chunk-DHD4KUTW.js";import"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{Ca as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-424CABZF.js";import"./chunk-WFPLZLCF.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-RLI32DLG.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-GV7S5BAX.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VJVXEVZ7.js";import{t as ut}from"./chunk-7MW44Y5O.js";import"./chunk-HOL645BZ.js";import"./chunk-3UOTLMXD.js";import"./chunk-VWTBHLMX.js";import"./chunk-BE64IJWM.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GSX4NK2N.js";import"./chunk-HPRLRD4P.js";import"./chunk-SK7M6PS6.js";import{a as ht}from"./chunk-3LMBT5LK.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-35GSB7SK.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-OXTFAV2A.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-OVB3LW6L.js";import{j as it,k as rt,l as at}from"./chunk-KB5JMDGS.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-QUFIUXMQ.js";import"./chunk-AV7T3SYT.js";import"./chunk-2HBEZV7L.js";import"./chunk-A7JSRDJL.js";import"./chunk-BERWTVG2.js";import"./chunk-AHWWJ7AF.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{Bb as tt,Db as st,Fb as ot,Mb as nt}from"./chunk-SNYAM7YB.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-BMNDAEF4.js";import"./chunk-VQRY4IDI.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{Ma as Tt,Na 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-SPZXOCN5.js";import"./chunk-K2JE5XR4.js";import"./chunk-GTJIKXDB.js";import"./chunk-XZFBOXFK.js";import"./chunk-ZVP6GB4G.js";import"./chunk-BBXB7X25.js";import"./chunk-IMLAPB7G.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-DECMCWGN.js";import"./chunk-3Q6MRG3P.js";import"./chunk-2VDO2HEK.js";import"./chunk-2P5NP4H6.js";import"./chunk-B4KQC3DG.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-BIYEGA7Q.js";import"./chunk-XPZSEDE3.js";import"./chunk-PPUN7YHA.js";import"./chunk-A5GYG56I.js";import"./chunk-JAS75QDT.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-JWDJMFU6.js";import"./chunk-6TTGRTDO.js";import"./chunk-MNG2AMKZ.js";import"./chunk-RX5O5637.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-5VRN6JP7.js";import"./chunk-QPABR72X.js";import"./chunk-6QU5YWOE.js";import"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{Ca as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-7SKUXUIX.js";import"./chunk-5QK3U7R6.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-K3QWXVLV.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-GV7S5BAX.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VJVXEVZ7.js";import{u as ut}from"./chunk-5NE26NUO.js";import"./chunk-DUVPXHDO.js";import"./chunk-3UOTLMXD.js";import"./chunk-VWTBHLMX.js";import"./chunk-BE64IJWM.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GSX4NK2N.js";import"./chunk-HPRLRD4P.js";import"./chunk-OWL6JA6W.js";import{a as ht}from"./chunk-UY25GSQ3.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-YU2JJIQH.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-RE6N3TRQ.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-XTBFWRM3.js";import{j as it,k as rt,l as at}from"./chunk-F6UAAQSU.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-QUFIUXMQ.js";import"./chunk-AV7T3SYT.js";import"./chunk-2HBEZV7L.js";import"./chunk-A7JSRDJL.js";import"./chunk-BERWTVG2.js";import"./chunk-AHWWJ7AF.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{Cb as tt,Eb as st,Hb as ot,Ob as nt}from"./chunk-UPRACUXY.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-YSCT6DPR.js";import"./chunk-VQRY4IDI.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).
@@ -0,0 +1,2 @@
1
+ import{a,b,c,d,e}from"./chunk-B4KQC3DG.js";import"./chunk-7AB3QUGH.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";export{e as NtfyAdapter,d as clickUrl,a as describeFetchError,c as ringHeaders,b as splitTitle};
2
+ //# sourceMappingURL=ntfy-LSFROBMD.js.map