agentix-cli 0.197.0 → 0.198.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 (163) hide show
  1. package/dist/{App-GF6MCNH6.js → App-ODMLQITV.js} +2 -2
  2. package/dist/{ChatApp-FO2JNLWI.js → ChatApp-MJBOQWUM.js} +2 -2
  3. package/dist/{absorb-eval-7KMQJ5BR.js → absorb-eval-QSUGLOOO.js} +2 -2
  4. package/dist/{adapter-V7DQXCII.js → adapter-BJLSEQ6M.js} +2 -2
  5. package/dist/{agent-PJBGUZMR.js → agent-QJPWZDTL.js} +2 -2
  6. package/dist/{board-dashboard-M3RVQM7K.js → board-dashboard-LZRJJ3DZ.js} +431 -307
  7. package/dist/board-dashboard-LZRJJ3DZ.js.map +1 -0
  8. package/dist/chunk-2AP2F6S5.js +934 -0
  9. package/dist/chunk-2AP2F6S5.js.map +1 -0
  10. package/dist/chunk-2P5NP4H6.js +2 -0
  11. package/dist/{chunk-B3JQ5J47.js.map → chunk-2P5NP4H6.js.map} +1 -1
  12. package/dist/{chunk-SK7M6PS6.js → chunk-3KHXOLF5.js} +2 -2
  13. package/dist/{chunk-J7PZJRYO.js → chunk-3Q6MRG3P.js} +2 -2
  14. package/dist/{chunk-TKXZHRV3.js → chunk-4FY2NOCD.js} +2 -2
  15. package/dist/chunk-B4KQC3DG.js +4 -0
  16. package/dist/chunk-B4KQC3DG.js.map +1 -0
  17. package/dist/{chunk-BY5CN7C7.js → chunk-BIJ3JIWG.js} +2 -2
  18. package/dist/{chunk-OVB3LW6L.js → chunk-BZ3AXEZW.js} +2 -2
  19. package/dist/{chunk-QABY3WEM.js → chunk-C3LKB4N7.js} +2 -2
  20. package/dist/{chunk-7MW44Y5O.js → chunk-C5QQW2L7.js} +9 -9
  21. package/dist/{chunk-7MW44Y5O.js.map → chunk-C5QQW2L7.js.map} +1 -1
  22. package/dist/{chunk-IOCULCCJ.js → chunk-CAYGWXWJ.js} +2 -2
  23. package/dist/{chunk-424CABZF.js → chunk-D64VFKUU.js} +26 -26
  24. package/dist/chunk-D64VFKUU.js.map +1 -0
  25. package/dist/{chunk-4O6ZFYWT.js → chunk-GB7NAOZ4.js} +2 -2
  26. package/dist/{chunk-K3623S4U.js → chunk-GGFL7HVN.js} +2 -2
  27. package/dist/{chunk-HIHROVHC.js → chunk-GL26HRDW.js} +2 -2
  28. package/dist/{chunk-3LMBT5LK.js → chunk-H3NGVXOL.js} +2 -2
  29. package/dist/{chunk-SNYAM7YB.js → chunk-H7SPRPDG.js} +3 -3
  30. package/dist/chunk-H7SPRPDG.js.map +1 -0
  31. package/dist/{chunk-RC3QYH2J.js → chunk-HYJWN6L5.js} +2 -2
  32. package/dist/{chunk-TBS7OVMI.js → chunk-I5KOLVB6.js} +2 -2
  33. package/dist/{chunk-R3TH2OG7.js → chunk-IJYCPFLZ.js} +2 -2
  34. package/dist/{chunk-HOL645BZ.js → chunk-KQ5UJTQR.js} +2 -2
  35. package/dist/{chunk-3K3IBV5K.js → chunk-LOFMZHJN.js} +2 -2
  36. package/dist/{chunk-DHD4KUTW.js → chunk-MA5ZF4YY.js} +2 -2
  37. package/dist/{chunk-BN5JVELZ.js → chunk-PIY23C2Z.js} +2 -2
  38. package/dist/{chunk-WFPLZLCF.js → chunk-PM4Y6ZBW.js} +2 -2
  39. package/dist/{chunk-IQQ3I6R7.js → chunk-QF5B5O7K.js} +303 -303
  40. package/dist/chunk-QF5B5O7K.js.map +1 -0
  41. package/dist/{chunk-425HPUKF.js → chunk-QHICHZFK.js} +2 -2
  42. package/dist/{chunk-HUOR3FGJ.js → chunk-SHNGAN3L.js} +2 -2
  43. package/dist/{chunk-KB5JMDGS.js → chunk-SUVJA67A.js} +2 -2
  44. package/dist/{chunk-35GSB7SK.js → chunk-V2DCI2JL.js} +3 -3
  45. package/dist/{chunk-RLI32DLG.js → chunk-VX3IZAF6.js} +2 -2
  46. package/dist/{chunk-OXTFAV2A.js → chunk-XRCWM7JA.js} +2 -2
  47. package/dist/chunk-YSCT6DPR.js +2 -0
  48. package/dist/chunk-YSCT6DPR.js.map +1 -0
  49. package/dist/cli.js +1 -1
  50. package/dist/client-WAPDTJ5B.js +2 -0
  51. package/dist/{config-THBWCNN7.js → config-NYFW5P4W.js} +2 -2
  52. package/dist/config-mutate-ZADHR76X.js +2 -0
  53. package/dist/config-mutator-GJFZWC43.js +2 -0
  54. package/dist/{contributions-2HR5ZGMK.js → contributions-RROXRQEV.js} +2 -2
  55. package/dist/{doctor-VMWX6GKN.js → doctor-DKUDMNK3.js} +2 -2
  56. package/dist/{follow-up-tool-BCSCBKVL.js → follow-up-tool-OKKSNVCJ.js} +2 -2
  57. package/dist/hub-5X33WEIO.js +2 -0
  58. package/dist/index.d.ts +116 -91
  59. package/dist/index.js +1 -1
  60. package/dist/ntfy-LSFROBMD.js +2 -0
  61. package/dist/{program-MOVUJBAA.js → program-4QVJE2JD.js} +24 -24
  62. package/dist/{program-MOVUJBAA.js.map → program-4QVJE2JD.js.map} +1 -1
  63. package/dist/{promote-WWPXP5Z4.js → promote-YETAZYXW.js} +2 -2
  64. package/dist/{push-E5YKRFAW.js → push-VMY34YND.js} +2 -2
  65. package/dist/push-bridge-T5HZZRA2.js +2 -0
  66. package/dist/{query-F7HRTCWI.js → query-IE5EVVY4.js} +2 -2
  67. package/dist/{query-settings-Z32LXLJI.js → query-settings-TF4H7EZS.js} +2 -2
  68. package/dist/{registry-D5HHCFCC.js → registry-OBQMRAYY.js} +2 -2
  69. package/dist/{request-planner-4FSNZJVQ.js → request-planner-V6J5EISV.js} +2 -2
  70. package/dist/{review-candidates-U2DOD5Z3.js → review-candidates-MTZEBOP5.js} +2 -2
  71. package/dist/{routing-USMMBJYT.js → routing-KWZ3X6ZV.js} +2 -2
  72. package/dist/schedule-tool-ZSQTA3IW.js +2 -0
  73. package/dist/scheduler-ST37UR5V.js +2 -0
  74. package/dist/{seat-3LW672DM.js → seat-RFFUE7RT.js} +2 -2
  75. package/dist/{select-MPMJSYKX.js → select-DCG457CP.js} +2 -2
  76. package/dist/{set-enabled-TQXG3MSQ.js → set-enabled-TD3MPUDH.js} +2 -2
  77. package/dist/{sprint-tool-JQ5KCJDP.js → sprint-tool-OQ55FHX3.js} +2 -2
  78. package/dist/{tool-DHCKG3SK.js → tool-FQE7ZGBT.js} +2 -2
  79. package/dist/{tool-ZP3SZKYR.js → tool-JIRXLLQN.js} +2 -2
  80. package/dist/{tool-D4DHXF4Z.js → tool-RJJKMW5D.js} +2 -2
  81. package/dist/wiki-OAWT7LND.js +2 -0
  82. package/dist/wiki-enrich-QVZMYHVY.js +2 -0
  83. package/package.json +1 -1
  84. package/dist/board-dashboard-M3RVQM7K.js.map +0 -1
  85. package/dist/chunk-27ICCQVL.js +0 -934
  86. package/dist/chunk-27ICCQVL.js.map +0 -1
  87. package/dist/chunk-424CABZF.js.map +0 -1
  88. package/dist/chunk-B3JQ5J47.js +0 -2
  89. package/dist/chunk-BMNDAEF4.js +0 -2
  90. package/dist/chunk-BMNDAEF4.js.map +0 -1
  91. package/dist/chunk-I22ZKW7Q.js +0 -4
  92. package/dist/chunk-I22ZKW7Q.js.map +0 -1
  93. package/dist/chunk-IQQ3I6R7.js.map +0 -1
  94. package/dist/chunk-SNYAM7YB.js.map +0 -1
  95. package/dist/client-ZHE4B2DD.js +0 -2
  96. package/dist/config-mutate-FBX6TFCY.js +0 -2
  97. package/dist/config-mutator-33RBNPV4.js +0 -2
  98. package/dist/hub-WPC6MTZY.js +0 -2
  99. package/dist/ntfy-73UW6GHN.js +0 -2
  100. package/dist/push-bridge-RV3CBTYO.js +0 -2
  101. package/dist/schedule-tool-IRTB23XL.js +0 -2
  102. package/dist/scheduler-L4ERAOMG.js +0 -2
  103. package/dist/wiki-CRH6XAXE.js +0 -2
  104. package/dist/wiki-enrich-YZEW6RZT.js +0 -2
  105. /package/dist/{App-GF6MCNH6.js.map → App-ODMLQITV.js.map} +0 -0
  106. /package/dist/{ChatApp-FO2JNLWI.js.map → ChatApp-MJBOQWUM.js.map} +0 -0
  107. /package/dist/{absorb-eval-7KMQJ5BR.js.map → absorb-eval-QSUGLOOO.js.map} +0 -0
  108. /package/dist/{adapter-V7DQXCII.js.map → adapter-BJLSEQ6M.js.map} +0 -0
  109. /package/dist/{agent-PJBGUZMR.js.map → agent-QJPWZDTL.js.map} +0 -0
  110. /package/dist/{chunk-SK7M6PS6.js.map → chunk-3KHXOLF5.js.map} +0 -0
  111. /package/dist/{chunk-J7PZJRYO.js.map → chunk-3Q6MRG3P.js.map} +0 -0
  112. /package/dist/{chunk-TKXZHRV3.js.map → chunk-4FY2NOCD.js.map} +0 -0
  113. /package/dist/{chunk-BY5CN7C7.js.map → chunk-BIJ3JIWG.js.map} +0 -0
  114. /package/dist/{chunk-OVB3LW6L.js.map → chunk-BZ3AXEZW.js.map} +0 -0
  115. /package/dist/{chunk-QABY3WEM.js.map → chunk-C3LKB4N7.js.map} +0 -0
  116. /package/dist/{chunk-IOCULCCJ.js.map → chunk-CAYGWXWJ.js.map} +0 -0
  117. /package/dist/{chunk-4O6ZFYWT.js.map → chunk-GB7NAOZ4.js.map} +0 -0
  118. /package/dist/{chunk-K3623S4U.js.map → chunk-GGFL7HVN.js.map} +0 -0
  119. /package/dist/{chunk-HIHROVHC.js.map → chunk-GL26HRDW.js.map} +0 -0
  120. /package/dist/{chunk-3LMBT5LK.js.map → chunk-H3NGVXOL.js.map} +0 -0
  121. /package/dist/{chunk-RC3QYH2J.js.map → chunk-HYJWN6L5.js.map} +0 -0
  122. /package/dist/{chunk-TBS7OVMI.js.map → chunk-I5KOLVB6.js.map} +0 -0
  123. /package/dist/{chunk-R3TH2OG7.js.map → chunk-IJYCPFLZ.js.map} +0 -0
  124. /package/dist/{chunk-HOL645BZ.js.map → chunk-KQ5UJTQR.js.map} +0 -0
  125. /package/dist/{chunk-3K3IBV5K.js.map → chunk-LOFMZHJN.js.map} +0 -0
  126. /package/dist/{chunk-DHD4KUTW.js.map → chunk-MA5ZF4YY.js.map} +0 -0
  127. /package/dist/{chunk-BN5JVELZ.js.map → chunk-PIY23C2Z.js.map} +0 -0
  128. /package/dist/{chunk-WFPLZLCF.js.map → chunk-PM4Y6ZBW.js.map} +0 -0
  129. /package/dist/{chunk-425HPUKF.js.map → chunk-QHICHZFK.js.map} +0 -0
  130. /package/dist/{chunk-HUOR3FGJ.js.map → chunk-SHNGAN3L.js.map} +0 -0
  131. /package/dist/{chunk-KB5JMDGS.js.map → chunk-SUVJA67A.js.map} +0 -0
  132. /package/dist/{chunk-35GSB7SK.js.map → chunk-V2DCI2JL.js.map} +0 -0
  133. /package/dist/{chunk-RLI32DLG.js.map → chunk-VX3IZAF6.js.map} +0 -0
  134. /package/dist/{chunk-OXTFAV2A.js.map → chunk-XRCWM7JA.js.map} +0 -0
  135. /package/dist/{client-ZHE4B2DD.js.map → client-WAPDTJ5B.js.map} +0 -0
  136. /package/dist/{config-THBWCNN7.js.map → config-NYFW5P4W.js.map} +0 -0
  137. /package/dist/{config-mutate-FBX6TFCY.js.map → config-mutate-ZADHR76X.js.map} +0 -0
  138. /package/dist/{config-mutator-33RBNPV4.js.map → config-mutator-GJFZWC43.js.map} +0 -0
  139. /package/dist/{contributions-2HR5ZGMK.js.map → contributions-RROXRQEV.js.map} +0 -0
  140. /package/dist/{doctor-VMWX6GKN.js.map → doctor-DKUDMNK3.js.map} +0 -0
  141. /package/dist/{follow-up-tool-BCSCBKVL.js.map → follow-up-tool-OKKSNVCJ.js.map} +0 -0
  142. /package/dist/{hub-WPC6MTZY.js.map → hub-5X33WEIO.js.map} +0 -0
  143. /package/dist/{ntfy-73UW6GHN.js.map → ntfy-LSFROBMD.js.map} +0 -0
  144. /package/dist/{promote-WWPXP5Z4.js.map → promote-YETAZYXW.js.map} +0 -0
  145. /package/dist/{push-E5YKRFAW.js.map → push-VMY34YND.js.map} +0 -0
  146. /package/dist/{push-bridge-RV3CBTYO.js.map → push-bridge-T5HZZRA2.js.map} +0 -0
  147. /package/dist/{query-F7HRTCWI.js.map → query-IE5EVVY4.js.map} +0 -0
  148. /package/dist/{query-settings-Z32LXLJI.js.map → query-settings-TF4H7EZS.js.map} +0 -0
  149. /package/dist/{registry-D5HHCFCC.js.map → registry-OBQMRAYY.js.map} +0 -0
  150. /package/dist/{request-planner-4FSNZJVQ.js.map → request-planner-V6J5EISV.js.map} +0 -0
  151. /package/dist/{review-candidates-U2DOD5Z3.js.map → review-candidates-MTZEBOP5.js.map} +0 -0
  152. /package/dist/{routing-USMMBJYT.js.map → routing-KWZ3X6ZV.js.map} +0 -0
  153. /package/dist/{schedule-tool-IRTB23XL.js.map → schedule-tool-ZSQTA3IW.js.map} +0 -0
  154. /package/dist/{scheduler-L4ERAOMG.js.map → scheduler-ST37UR5V.js.map} +0 -0
  155. /package/dist/{seat-3LW672DM.js.map → seat-RFFUE7RT.js.map} +0 -0
  156. /package/dist/{select-MPMJSYKX.js.map → select-DCG457CP.js.map} +0 -0
  157. /package/dist/{set-enabled-TQXG3MSQ.js.map → set-enabled-TD3MPUDH.js.map} +0 -0
  158. /package/dist/{sprint-tool-JQ5KCJDP.js.map → sprint-tool-OQ55FHX3.js.map} +0 -0
  159. /package/dist/{tool-DHCKG3SK.js.map → tool-FQE7ZGBT.js.map} +0 -0
  160. /package/dist/{tool-ZP3SZKYR.js.map → tool-JIRXLLQN.js.map} +0 -0
  161. /package/dist/{tool-D4DHXF4Z.js.map → tool-RJJKMW5D.js.map} +0 -0
  162. /package/dist/{wiki-CRH6XAXE.js.map → wiki-OAWT7LND.js.map} +0 -0
  163. /package/dist/{wiki-enrich-YZEW6RZT.js.map → wiki-enrich-QVZMYHVY.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;
@@ -10959,6 +10975,7 @@ declare const daemonConfigSchema: z.ZodObject<{
10959
10975
  agents?: string[] | undefined;
10960
10976
  prompt?: string | undefined;
10961
10977
  nodes?: string[] | undefined;
10978
+ maxDelayMin?: number | undefined;
10962
10979
  }[];
10963
10980
  integrations: {
10964
10981
  enabled: boolean;
@@ -11258,6 +11275,13 @@ declare const daemonConfigSchema: z.ZodObject<{
11258
11275
  events: {
11259
11276
  ringSize: number;
11260
11277
  };
11278
+ node: {
11279
+ id: string;
11280
+ name: string;
11281
+ bind: string;
11282
+ connectAttemptTimeoutMs: number;
11283
+ defaultAgent?: string | undefined;
11284
+ };
11261
11285
  native: {
11262
11286
  notes: {
11263
11287
  enabled: boolean;
@@ -11424,13 +11448,6 @@ declare const daemonConfigSchema: z.ZodObject<{
11424
11448
  };
11425
11449
  forwardTo?: string | undefined;
11426
11450
  };
11427
- node: {
11428
- id: string;
11429
- name: string;
11430
- bind: string;
11431
- connectAttemptTimeoutMs: number;
11432
- defaultAgent?: string | undefined;
11433
- };
11434
11451
  channels: {
11435
11452
  push: {
11436
11453
  enabled: boolean;
@@ -11610,6 +11627,45 @@ declare const daemonConfigSchema: z.ZodObject<{
11610
11627
  defaultTitle?: string | undefined;
11611
11628
  };
11612
11629
  };
11630
+ notifications: {
11631
+ local: {
11632
+ sound: boolean;
11633
+ banner: boolean;
11634
+ soundName: string;
11635
+ volume: number;
11636
+ quietWaitSeconds: number;
11637
+ icon?: string | undefined;
11638
+ };
11639
+ on: {
11640
+ taskComplete: boolean;
11641
+ taskError: boolean;
11642
+ taskQueued: boolean;
11643
+ };
11644
+ longTaskThreshold: number;
11645
+ told: {
11646
+ enabled: boolean;
11647
+ channels: string[];
11648
+ repeatWindowHours: number;
11649
+ addresses: string[];
11650
+ digestNags: boolean;
11651
+ };
11652
+ reach: {
11653
+ enabled: boolean;
11654
+ escalateAfterMinutes: number;
11655
+ ladder: string[];
11656
+ };
11657
+ desk: {
11658
+ phone: "all" | "off" | "urgent";
11659
+ computer?: "all" | "off" | "urgent" | undefined;
11660
+ };
11661
+ channel?: string | undefined;
11662
+ destination?: {
11663
+ channel: string;
11664
+ chatId: string;
11665
+ accountId?: string | undefined;
11666
+ } | undefined;
11667
+ publicUrl?: string | undefined;
11668
+ };
11613
11669
  crons: Record<string, {
11614
11670
  enabled: boolean;
11615
11671
  agent: string;
@@ -11769,45 +11825,6 @@ declare const daemonConfigSchema: z.ZodObject<{
11769
11825
  } | undefined;
11770
11826
  allowedContacts?: string[] | undefined;
11771
11827
  }>;
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
11828
  calls: {
11812
11829
  summary: boolean;
11813
11830
  allow: string[];
@@ -12368,6 +12385,7 @@ declare const daemonConfigSchema: z.ZodObject<{
12368
12385
  nodes?: string[] | undefined;
12369
12386
  delivery?: "pull" | "digest" | "wake" | undefined;
12370
12387
  maxPerHour?: number | undefined;
12388
+ maxDelayMin?: number | undefined;
12371
12389
  }[] | undefined;
12372
12390
  integrations?: {
12373
12391
  label: string;
@@ -13043,6 +13061,45 @@ declare const daemonConfigSchema: z.ZodObject<{
13043
13061
  defaultTitle?: string | undefined;
13044
13062
  } | undefined;
13045
13063
  } | undefined;
13064
+ notifications?: {
13065
+ local?: {
13066
+ sound?: boolean | undefined;
13067
+ banner?: boolean | undefined;
13068
+ soundName?: string | undefined;
13069
+ volume?: number | undefined;
13070
+ icon?: string | undefined;
13071
+ quietWaitSeconds?: number | undefined;
13072
+ } | undefined;
13073
+ channel?: string | undefined;
13074
+ on?: {
13075
+ taskComplete?: boolean | undefined;
13076
+ taskError?: boolean | undefined;
13077
+ taskQueued?: boolean | undefined;
13078
+ } | undefined;
13079
+ longTaskThreshold?: number | undefined;
13080
+ destination?: {
13081
+ channel: string;
13082
+ chatId: string;
13083
+ accountId?: string | undefined;
13084
+ } | undefined;
13085
+ publicUrl?: string | undefined;
13086
+ told?: {
13087
+ enabled?: boolean | undefined;
13088
+ channels?: string[] | undefined;
13089
+ repeatWindowHours?: number | undefined;
13090
+ addresses?: string[] | undefined;
13091
+ digestNags?: boolean | undefined;
13092
+ } | undefined;
13093
+ reach?: {
13094
+ enabled?: boolean | undefined;
13095
+ escalateAfterMinutes?: number | undefined;
13096
+ ladder?: string[] | undefined;
13097
+ } | undefined;
13098
+ desk?: {
13099
+ phone?: "all" | "off" | "urgent" | undefined;
13100
+ computer?: "all" | "off" | "urgent" | undefined;
13101
+ } | undefined;
13102
+ } | undefined;
13046
13103
  crons?: Record<string, {
13047
13104
  agent: string;
13048
13105
  schedule: string;
@@ -13202,45 +13259,6 @@ declare const daemonConfigSchema: z.ZodObject<{
13202
13259
  } | undefined;
13203
13260
  allowedContacts?: string[] | undefined;
13204
13261
  }> | 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
13262
  calls?: {
13245
13263
  summary?: boolean | undefined;
13246
13264
  allow?: string[] | undefined;
@@ -13652,6 +13670,10 @@ interface EventEnvelope {
13652
13670
  summary: string;
13653
13671
  /** Pointer to the durable record: a trace id, run id or task id. */
13654
13672
  ref?: string;
13673
+ /** ISO time after which the event is no longer worth acting on, for
13674
+ * example a "restarts in 1 minute" warning. A wake that has not started
13675
+ * by then is dropped (#1596). */
13676
+ expiresAt?: string;
13655
13677
  }
13656
13678
  interface RecentQuery {
13657
13679
  /** An event id (returns events after it) or an ISO timestamp. */
@@ -14157,6 +14179,7 @@ interface PublishInput {
14157
14179
  summary: string;
14158
14180
  agentId?: string;
14159
14181
  ref?: string;
14182
+ expiresAt?: string;
14160
14183
  id?: string;
14161
14184
  at?: string;
14162
14185
  rootId?: string;
@@ -14333,6 +14356,8 @@ declare class AgentXDaemon {
14333
14356
  private landscape;
14334
14357
  private heartbeat;
14335
14358
  private stopEventWaker?;
14359
+ /** What each event wake did, for the Hub's events feed (#1648). */
14360
+ private readonly wakeJournal;
14336
14361
  /** Stop and resume signals (agents/signals, #857). */
14337
14362
  private signals;
14338
14363
  private stopAllReporter;
@@ -16863,17 +16888,17 @@ declare const graphNodeSchema: z.ZodObject<{
16863
16888
  createdBy: z.ZodOptional<z.ZodString>;
16864
16889
  }, "strip", z.ZodTypeAny, {
16865
16890
  id: string;
16891
+ parentId: string | null;
16866
16892
  createdAt: string;
16867
16893
  axes: Record<string, string>;
16868
16894
  level: string;
16869
- parentId: string | null;
16870
16895
  createdBy?: string | undefined;
16871
16896
  }, {
16872
16897
  id: string;
16898
+ parentId: string | null;
16873
16899
  createdAt: string;
16874
16900
  axes: Record<string, string>;
16875
16901
  level: string;
16876
- parentId: string | null;
16877
16902
  createdBy?: string | undefined;
16878
16903
  }>;
16879
16904
  type GraphNode = z.infer<typeof graphNodeSchema>;
@@ -16999,37 +17024,37 @@ declare const nodesFileSchema: z.ZodObject<{
16999
17024
  createdBy: z.ZodOptional<z.ZodString>;
17000
17025
  }, "strip", z.ZodTypeAny, {
17001
17026
  id: string;
17027
+ parentId: string | null;
17002
17028
  createdAt: string;
17003
17029
  axes: Record<string, string>;
17004
17030
  level: string;
17005
- parentId: string | null;
17006
17031
  createdBy?: string | undefined;
17007
17032
  }, {
17008
17033
  id: string;
17034
+ parentId: string | null;
17009
17035
  createdAt: string;
17010
17036
  axes: Record<string, string>;
17011
17037
  level: string;
17012
- parentId: string | null;
17013
17038
  createdBy?: string | undefined;
17014
17039
  }>, "many">>;
17015
17040
  }, "strip", z.ZodTypeAny, {
17016
17041
  version: number;
17017
17042
  nodes: {
17018
17043
  id: string;
17044
+ parentId: string | null;
17019
17045
  createdAt: string;
17020
17046
  axes: Record<string, string>;
17021
17047
  level: string;
17022
- parentId: string | null;
17023
17048
  createdBy?: string | undefined;
17024
17049
  }[];
17025
17050
  }, {
17026
17051
  version?: number | undefined;
17027
17052
  nodes?: {
17028
17053
  id: string;
17054
+ parentId: string | null;
17029
17055
  createdAt: string;
17030
17056
  axes: Record<string, string>;
17031
17057
  level: string;
17032
- parentId: string | null;
17033
17058
  createdBy?: string | undefined;
17034
17059
  }[] | undefined;
17035
17060
  }>;
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-QF5B5O7K.js";import"./chunk-2AP2F6S5.js";import"./chunk-GTJIKXDB.js";import"./chunk-LOFMZHJN.js";import"./chunk-ZVP6GB4G.js";import"./chunk-IJYCPFLZ.js";import"./chunk-IMLAPB7G.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-BIJ3JIWG.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-4FY2NOCD.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-HYJWN6L5.js";import"./chunk-QPABR72X.js";import"./chunk-MA5ZF4YY.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-D64VFKUU.js";import"./chunk-PM4Y6ZBW.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-VX3IZAF6.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-C5QQW2L7.js";import"./chunk-KQ5UJTQR.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-3KHXOLF5.js";import{a as ht}from"./chunk-H3NGVXOL.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-V2DCI2JL.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-XRCWM7JA.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-BZ3AXEZW.js";import{j as it,k as rt,l as at}from"./chunk-SUVJA67A.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-H7SPRPDG.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