hyperclaw 5.4.0 → 5.4.1

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 (391) hide show
  1. package/README.md +1 -0
  2. package/dist/a2ui-protocol-CibzbTxL.js +75 -0
  3. package/dist/a2ui-protocol-Dtb8zlog.js +75 -0
  4. package/dist/a2ui-protocol-ORP2Etw0.js +75 -0
  5. package/dist/a2ui-protocol-whRZHdBk.js +75 -0
  6. package/dist/abort-controller-B55O1IgK.js +47995 -0
  7. package/dist/agents-routing-Ai2BQVpU.js +7 -0
  8. package/dist/agents-routing-B0RBl1B8.js +424 -0
  9. package/dist/agents-routing-BSUaOpce.js +7 -0
  10. package/dist/agents-routing-C4PVN8G6.js +7 -0
  11. package/dist/agents-routing-Dcr29-JV.js +424 -0
  12. package/dist/agents-routing-EwzORQQv.js +424 -0
  13. package/dist/agents-routing-Fd-uQ4R_.js +7 -0
  14. package/dist/agents-routing-eLjVYBAk.js +424 -0
  15. package/dist/api-key-validation-BANgbsfO.js +66 -0
  16. package/dist/api-key-validation-Bnz-0MMK.js +66 -0
  17. package/dist/api-key-validation-D_fMCaO5.js +66 -0
  18. package/dist/api-key-validation-Db7rG3JU.js +66 -0
  19. package/dist/api-keys-guide-B6AJ1V5D.js +149 -0
  20. package/dist/api-keys-guide-C75JQOdH.js +149 -0
  21. package/dist/api-keys-guide-CFJPrgsL.js +149 -0
  22. package/dist/api-keys-guide-DDz08BJQ.js +149 -0
  23. package/dist/audit-BLMB8qp7.js +445 -0
  24. package/dist/audit-Cb2TvqYZ.js +445 -0
  25. package/dist/audit-D7koAKvj.js +445 -0
  26. package/dist/audit-xP_175jB.js +445 -0
  27. package/dist/backup-7l3iovkX.js +86 -0
  28. package/dist/backup-BKLTHh62.js +86 -0
  29. package/dist/backup-CspxXk78.js +86 -0
  30. package/dist/backup-D8dFYDXV.js +86 -0
  31. package/dist/banner-CZ2BfvQq.js +143 -0
  32. package/dist/banner-CjTRWmks.js +7 -0
  33. package/dist/banner-Dpygks0H.js +143 -0
  34. package/dist/banner-ZX1WLr44.js +7 -0
  35. package/dist/bounty-tools-Cq-oC9gk.js +211 -0
  36. package/dist/bounty-tools-DZ-WtRdE.js +211 -0
  37. package/dist/bounty-tools-DhpmjF5Y.js +211 -0
  38. package/dist/bounty-tools-NGuBWI55.js +211 -0
  39. package/dist/browser-tools-5Fl1hP_2.js +5 -0
  40. package/dist/browser-tools-Ay-wU_a4.js +5 -0
  41. package/dist/browser-tools-BMgBB2fK.js +179 -0
  42. package/dist/browser-tools-kcViDwk5.js +179 -0
  43. package/dist/chat-BUa1oGqj.js +528 -0
  44. package/dist/chat-CiuT-GTs.js +528 -0
  45. package/dist/chat-DfI8uOzF.js +528 -0
  46. package/dist/chat-Dz5rmUSs.js +528 -0
  47. package/dist/chat-RTmX1F16.js +528 -0
  48. package/dist/claw-tasks-Cio1Q7eA.js +80 -0
  49. package/dist/claw-tasks-DzxNWVcz.js +80 -0
  50. package/dist/claw-tasks-L7vQSGlt.js +80 -0
  51. package/dist/claw-tasks-dndWneZW.js +80 -0
  52. package/dist/config-B-W-Mz4X.js +7 -0
  53. package/dist/config-BAwkTUJC.js +261 -0
  54. package/dist/config-CYPw2v4l.js +261 -0
  55. package/dist/config-DN9fdLL3.js +261 -0
  56. package/dist/config-FejpHHTz.js +261 -0
  57. package/dist/config-Tq_GJHf7.js +7 -0
  58. package/dist/config-n4qy5jIy.js +7 -0
  59. package/dist/config-qJUYRMzx.js +7 -0
  60. package/dist/connector-CwT7KZm2.js +309 -0
  61. package/dist/connector-DX4k-lGd.js +442 -0
  62. package/dist/cost-tracker-C2q5zKic.js +103 -0
  63. package/dist/cost-tracker-CsRQAOEr.js +103 -0
  64. package/dist/cost-tracker-DAXWN5YT.js +103 -0
  65. package/dist/cost-tracker-bySvehH6.js +103 -0
  66. package/dist/credentials-store-BAW87r6f.js +7 -0
  67. package/dist/credentials-store-BHtk7_H_.js +7 -0
  68. package/dist/credentials-store-CESgFvFU.js +89 -0
  69. package/dist/credentials-store-CR4WSDGl.js +7 -0
  70. package/dist/credentials-store-CXq4kZub.js +89 -0
  71. package/dist/credentials-store-DUp8dtaS.js +89 -0
  72. package/dist/credentials-store-hiSga8qn.js +89 -0
  73. package/dist/credentials-store-kLdrmqSt.js +7 -0
  74. package/dist/cron-tasks-BFsaCKxE.js +89 -0
  75. package/dist/cron-tasks-BelA2aUW.js +89 -0
  76. package/dist/cron-tasks-D1T9fWAb.js +89 -0
  77. package/dist/cron-tasks-f_ieXSG2.js +89 -0
  78. package/dist/daemon-BTYhQvD_.js +7 -0
  79. package/dist/daemon-BoaFnmdF.js +421 -0
  80. package/dist/daemon-BrHxr4ut.js +421 -0
  81. package/dist/daemon-BzdeLgON.js +421 -0
  82. package/dist/daemon-BzqWIC4v.js +7 -0
  83. package/dist/daemon-C3OczPR1.js +7 -0
  84. package/dist/daemon-D57KIIA3.js +421 -0
  85. package/dist/daemon-D8uyH9et.js +7 -0
  86. package/dist/daemon-DBTtYx6E.js +421 -0
  87. package/dist/daemon-srcdhzUG.js +7 -0
  88. package/dist/delivery-Bt0xW6L9.js +4 -0
  89. package/dist/delivery-C2sAERN7.js +4 -0
  90. package/dist/delivery-CF2Q4hb1.js +95 -0
  91. package/dist/delivery-CfMljOwk.js +95 -0
  92. package/dist/delivery-DP0d4_A4.js +95 -0
  93. package/dist/delivery-DXYt4aMO.js +4 -0
  94. package/dist/delivery-DXxP2UL4.js +4 -0
  95. package/dist/delivery-jT2UIDlU.js +95 -0
  96. package/dist/destructive-gate-5LYh6brt.js +116 -0
  97. package/dist/destructive-gate-B_hNKtu6.js +116 -0
  98. package/dist/destructive-gate-DvxPSDMR.js +116 -0
  99. package/dist/destructive-gate-Qd2y7x1B.js +116 -0
  100. package/dist/dist-B1qvBUax.js +30541 -0
  101. package/dist/engine-BBJlKpMP.js +7 -0
  102. package/dist/engine-BNygJfCo.js +335 -0
  103. package/dist/engine-DB4MBzki.js +7 -0
  104. package/dist/engine-DPi9fhMl.js +332 -0
  105. package/dist/engine-DeaqDcaT.js +7 -0
  106. package/dist/engine-DuvXJrUP.js +335 -0
  107. package/dist/engine-HkyTC_xl.js +332 -0
  108. package/dist/engine-JysunhPR.js +7 -0
  109. package/dist/engine-MzEUw7qb.js +7 -0
  110. package/dist/engine-j9Yaqt_-.js +332 -0
  111. package/dist/env-resolve--MaE2kFF.js +167 -0
  112. package/dist/env-resolve-BYWG94tK.js +11 -0
  113. package/dist/env-resolve-Bop7KbNq.js +167 -0
  114. package/dist/env-resolve-Buos635Y.js +167 -0
  115. package/dist/env-resolve-D3dP1-Xt.js +11 -0
  116. package/dist/env-resolve-DvsbhPKl.js +11 -0
  117. package/dist/env-resolve-NNM3F6Eo.js +167 -0
  118. package/dist/env-resolve-dTjn-g8X.js +11 -0
  119. package/dist/extraction-tools-Bh5F0ENP.js +91 -0
  120. package/dist/extraction-tools-BjzXD9LW.js +5 -0
  121. package/dist/extraction-tools-D1lrDYhe.js +5 -0
  122. package/dist/extraction-tools-FBwtT2Bx.js +91 -0
  123. package/dist/fileFromPath-CodL6KXh.js +85 -0
  124. package/dist/gmail-watch-setup--eQ8raeb.js +42 -0
  125. package/dist/gmail-watch-setup-9t14gy1B.js +42 -0
  126. package/dist/gmail-watch-setup-B9fx_OLg.js +42 -0
  127. package/dist/gmail-watch-setup-DP3kDRx1.js +42 -0
  128. package/dist/heartbeat-engine-5iOlL7Dj.js +89 -0
  129. package/dist/heartbeat-engine-Bu4q18GH.js +89 -0
  130. package/dist/heartbeat-engine-CF_JjNJ4.js +89 -0
  131. package/dist/heartbeat-engine-CLADYZxE.js +89 -0
  132. package/dist/hub-CZeGrS20.js +6 -0
  133. package/dist/hub-DAkEVTEy.js +545 -0
  134. package/dist/hyperclawbot-CNVUtvYC.js +516 -0
  135. package/dist/hyperclawbot-D5ofLNgm.js +516 -0
  136. package/dist/hyperclawbot-D61zVMyQ.js +516 -0
  137. package/dist/hyperclawbot-DwScttSx.js +516 -0
  138. package/dist/hyperclawbot-v65eL2U0.js +516 -0
  139. package/dist/inference-BEvs7s3c.js +2854 -0
  140. package/dist/inference-C4b9YqXk.js +8 -0
  141. package/dist/inference-CRF6HyyH.js +2854 -0
  142. package/dist/inference-CfhTACI8.js +2854 -0
  143. package/dist/inference-DGsy36Ru.js +8 -0
  144. package/dist/inference-Da7Hw4J3.js +8 -0
  145. package/dist/inference-DhJ-SHZn.js +8 -0
  146. package/dist/inference-K7Jrnzre.js +2854 -0
  147. package/dist/isFile-CSxoSB8X.js +2274 -0
  148. package/dist/knowledge-graph-BdsJ5KEL.js +134 -0
  149. package/dist/knowledge-graph-CFRBepzr.js +134 -0
  150. package/dist/knowledge-graph-CeDeahui.js +134 -0
  151. package/dist/knowledge-graph-DoYFZnUr.js +134 -0
  152. package/dist/loader-C2qtNbtF.js +6 -0
  153. package/dist/loader-D6yjBYo4.js +410 -0
  154. package/dist/loader-DBO6yRNh.js +6 -0
  155. package/dist/loader-DUhmG3V9.js +410 -0
  156. package/dist/loader-Dl8LNycw.js +6 -0
  157. package/dist/loader-UpOYxgZv.js +6 -0
  158. package/dist/loader-hXv2mZjK.js +410 -0
  159. package/dist/loader-nDBcv3Tm.js +410 -0
  160. package/dist/logger-BD316YbA.js +86 -0
  161. package/dist/logger-BnXZkfsp.js +86 -0
  162. package/dist/logger-CmphFNmW.js +86 -0
  163. package/dist/logger-DkHzhh56.js +86 -0
  164. package/dist/manager-3-q8zuAW.js +250 -0
  165. package/dist/manager-BkMzc-EJ.js +250 -0
  166. package/dist/manager-Bq5LApdR.js +6 -0
  167. package/dist/manager-CNgdJunf.js +250 -0
  168. package/dist/manager-CozyZSDG.js +250 -0
  169. package/dist/manager-D4mDWXph.js +120 -0
  170. package/dist/manager-DuS-WQhZ.js +120 -0
  171. package/dist/manager-Dz2eKYqo.js +116 -0
  172. package/dist/manager-R0TlRMZy.js +120 -0
  173. package/dist/manager-aJfY7rt6.js +120 -0
  174. package/dist/mcp-BH7HtOQ8.js +142 -0
  175. package/dist/mcp-CAJSA_ee.js +142 -0
  176. package/dist/mcp-CD-iIQa2.js +142 -0
  177. package/dist/mcp-DGo37Ifb.js +142 -0
  178. package/dist/mcp-loader-Ct1NQKnX.js +93 -0
  179. package/dist/mcp-loader-D1T6UX73.js +93 -0
  180. package/dist/mcp-loader-DJk6MEof.js +93 -0
  181. package/dist/mcp-loader-DdXvU63s.js +93 -0
  182. package/dist/mcp-loader-gMliiJ7R.js +93 -0
  183. package/dist/memory-CyonlkTy.js +6 -0
  184. package/dist/memory-DPSWQBc0.js +276 -0
  185. package/dist/memory-auto-B0QOqaUD.js +306 -0
  186. package/dist/memory-auto-BSxYJugl.js +5 -0
  187. package/dist/memory-auto-CcFRxMj-.js +306 -0
  188. package/dist/memory-auto-CifT5aj_.js +5 -0
  189. package/dist/memory-auto-Cp2Jwx3Y.js +306 -0
  190. package/dist/memory-auto-DjK_D8CA.js +306 -0
  191. package/dist/memory-auto-N57dp4Do.js +5 -0
  192. package/dist/memory-auto-n0kOcU7F.js +5 -0
  193. package/dist/memory-integration-D8shLJwp.js +91 -0
  194. package/dist/memory-integration-DLmzJ62L.js +91 -0
  195. package/dist/memory-integration-DMXDbMIL.js +91 -0
  196. package/dist/memory-integration-Dgr-mjue.js +91 -0
  197. package/dist/moltbook-CIeOshK6.js +81 -0
  198. package/dist/moltbook-CX5XWn06.js +81 -0
  199. package/dist/moltbook-DUfiE4NY.js +81 -0
  200. package/dist/moltbook-YEiNI8Cm.js +81 -0
  201. package/dist/multi-agent-tools-jzfvT4zP.js +87 -0
  202. package/dist/multimodal-zZdwqISl.js +77 -0
  203. package/dist/node-BYrxELx2.js +251 -0
  204. package/dist/node-CLWgPlAk.js +251 -0
  205. package/dist/node-Czz8Y85D.js +251 -0
  206. package/dist/node-Du2H2Ddi.js +226 -0
  207. package/dist/node-domexception-v89b0Nwz.js +21 -0
  208. package/dist/node-pending-queue-DUXCbYkp.js +32 -0
  209. package/dist/node-pending-queue-DZp7cdfo.js +32 -0
  210. package/dist/node-pending-queue-iYpoWqxe.js +32 -0
  211. package/dist/nodes-registry-BTy7Sc7D.js +52 -0
  212. package/dist/nodes-registry-BYjmmJBU.js +52 -0
  213. package/dist/nodes-registry-C8GeEGq0.js +52 -0
  214. package/dist/nodes-registry-Du6Klz0l.js +52 -0
  215. package/dist/oauth-flow-BA0yMrHx.js +148 -0
  216. package/dist/oauth-flow-C4QSMsbl.js +148 -0
  217. package/dist/oauth-flow-CIuDBDsp.js +148 -0
  218. package/dist/oauth-flow-CniM4jlJ.js +148 -0
  219. package/dist/oauth-provider-BA4GVFKg.js +111 -0
  220. package/dist/oauth-provider-Bnul5A_Z.js +111 -0
  221. package/dist/oauth-provider-DqPXPiiC.js +111 -0
  222. package/dist/oauth-provider-MEgHjij2.js +111 -0
  223. package/dist/observability-0spm7MPz.js +89 -0
  224. package/dist/observability-BOMYgHUh.js +89 -0
  225. package/dist/observability-CDqHr-_o.js +89 -0
  226. package/dist/observability-ah2a7sh1.js +89 -0
  227. package/dist/onboard-BJ78s3NT.js +3854 -0
  228. package/dist/onboard-C55YXd_e.js +14 -0
  229. package/dist/onboard-CNnm4yYp.js +3841 -0
  230. package/dist/onboard-CXSVPnP7.js +3854 -0
  231. package/dist/onboard-CwvXXOR1.js +14 -0
  232. package/dist/onboard-CxlIsNhX.js +3854 -0
  233. package/dist/onboard-DPmufMqX.js +14 -0
  234. package/dist/onboard-F9lKA2ie.js +14 -0
  235. package/dist/onboard-UTQXzlPD.js +3854 -0
  236. package/dist/onboard-hK098kjl.js +14 -0
  237. package/dist/openai-CrdtuLxw.js +6292 -0
  238. package/dist/orchestrator-5M-6MB7r.js +6 -0
  239. package/dist/orchestrator-B3BjP1dy.js +6 -0
  240. package/dist/orchestrator-BZS62iDS.js +6 -0
  241. package/dist/orchestrator-CTMbjgH_.js +6 -0
  242. package/dist/orchestrator-Crn4fgbI.js +189 -0
  243. package/dist/orchestrator-Cs6s-QmS.js +189 -0
  244. package/dist/orchestrator-DGqwsLmO.js +189 -0
  245. package/dist/orchestrator-UUHsFKiH.js +6 -0
  246. package/dist/orchestrator-oa7HbCnF.js +189 -0
  247. package/dist/orchestrator-tUKag7pG.js +189 -0
  248. package/dist/osint-BJvOCmVk.js +283 -0
  249. package/dist/osint-CK9xVUUm.js +283 -0
  250. package/dist/osint-D6vQXCWh.js +283 -0
  251. package/dist/osint-DLYZsp1k.js +283 -0
  252. package/dist/osint-cAAdO-cx.js +283 -0
  253. package/dist/osint-chat-B0lc0Y6r.js +789 -0
  254. package/dist/osint-chat-BUhiSpf9.js +789 -0
  255. package/dist/osint-chat-C-9FVAkU.js +789 -0
  256. package/dist/osint-chat-CWET8Fno.js +789 -0
  257. package/dist/osint-chat-Cgdzg3lh.js +789 -0
  258. package/dist/pc-access-BCaF5mRs.js +858 -0
  259. package/dist/pc-access-BOcXappE.js +858 -0
  260. package/dist/pc-access-BgZNmAdB.js +8 -0
  261. package/dist/pc-access-CAoM6WN4.js +8 -0
  262. package/dist/pc-access-D2HdoziZ.js +8 -0
  263. package/dist/pc-access-D4g0fjQb.js +858 -0
  264. package/dist/pending-approval-CJPyt8U5.js +22 -0
  265. package/dist/pending-approval-CzMNCTfZ.js +22 -0
  266. package/dist/pending-approval-DaXi7otO.js +22 -0
  267. package/dist/pending-approval-KcyeiifE.js +22 -0
  268. package/dist/providers-DrZP0NeR.js +5 -0
  269. package/dist/providers-dHhpJo9j.js +1120 -0
  270. package/dist/reminders-store-B58LldEG.js +58 -0
  271. package/dist/reminders-store-C4gWckLa.js +58 -0
  272. package/dist/reminders-store-DT0o6a60.js +58 -0
  273. package/dist/renderer-B8c22rbg.js +228 -0
  274. package/dist/renderer-BS0ETL20.js +228 -0
  275. package/dist/renderer-Cg3c41A5.js +228 -0
  276. package/dist/renderer-UoPcgaAd.js +228 -0
  277. package/dist/rules-D0v5nuSE.js +106 -0
  278. package/dist/rules-DCKPgwLb.js +106 -0
  279. package/dist/rules-Zn9j4PnO.js +106 -0
  280. package/dist/rules-oAgOSPHC.js +106 -0
  281. package/dist/run-main.js +457 -131
  282. package/dist/runner-BaZ2V27T.js +1307 -0
  283. package/dist/runner-Bgl7UTbV.js +1307 -0
  284. package/dist/runner-DOKp3-v5.js +1307 -0
  285. package/dist/runner-voYdfM_f.js +1307 -0
  286. package/dist/search-tools-BBwMa8VX.js +107 -0
  287. package/dist/search-tools-CEUOO9Jf.js +107 -0
  288. package/dist/search-tools-VHP3xVyC.js +107 -0
  289. package/dist/search-tools-w_zT7-dr.js +107 -0
  290. package/dist/server-BAdJwMM9.js +4 -0
  291. package/dist/server-BD9FLc7S.js +1384 -0
  292. package/dist/server-BlqWBbS7.js +4 -0
  293. package/dist/server-BzwPvTbD.js +1447 -0
  294. package/dist/server-CBvSfG4w.js +4 -0
  295. package/dist/server-CbNBcB41.js +4 -0
  296. package/dist/server-DPTXaJJF.js +4 -0
  297. package/dist/server-Dv2zHHy-.js +1447 -0
  298. package/dist/server-MDmdWHob.js +1447 -0
  299. package/dist/server-N9LnLQCS.js +1447 -0
  300. package/dist/session-store-C6Otslf9.js +5 -0
  301. package/dist/session-store-Cmfnvuw9.js +141 -0
  302. package/dist/session-store-CuR9DgRf.js +5 -0
  303. package/dist/session-store-Cx1RMBhS.js +5 -0
  304. package/dist/session-store-DPPHkJBn.js +5 -0
  305. package/dist/session-store-DWLCWQFS.js +141 -0
  306. package/dist/session-store-qGufR_m5.js +141 -0
  307. package/dist/session-store-sUpA509O.js +141 -0
  308. package/dist/sessions-tools-9Z8TtdmP.js +5 -0
  309. package/dist/sessions-tools-BAZnoQLp.js +95 -0
  310. package/dist/sessions-tools-Bb_zF947.js +95 -0
  311. package/dist/sessions-tools-ClrKqLII.js +131 -0
  312. package/dist/sessions-tools-DFe23ZDD.js +5 -0
  313. package/dist/sessions-tools-JHSZ6Bns.js +5 -0
  314. package/dist/sessions-tools-TsRdeFb7.js +95 -0
  315. package/dist/sessions-tools-nYP3Agfs.js +5 -0
  316. package/dist/skill-loader-9jg876RH.js +160 -0
  317. package/dist/skill-loader-CM4KWQ7_.js +160 -0
  318. package/dist/skill-loader-CS3OP4Lr.js +160 -0
  319. package/dist/skill-loader-CnJDLNbY.js +7 -0
  320. package/dist/skill-loader-DRLgt5V2.js +160 -0
  321. package/dist/skill-loader-DVpEgYV2.js +7 -0
  322. package/dist/skill-loader-Df5T_UFl.js +7 -0
  323. package/dist/skill-loader-DxE-gZkT.js +7 -0
  324. package/dist/skill-runtime-8Xh5874w.js +104 -0
  325. package/dist/skill-runtime-B3aUdWKh.js +104 -0
  326. package/dist/skill-runtime-BKyhYvpW.js +5 -0
  327. package/dist/skill-runtime-BP0kZfmM.js +5 -0
  328. package/dist/skill-runtime-CLK5HTVE.js +5 -0
  329. package/dist/skill-runtime-COyc3Bci.js +104 -0
  330. package/dist/skill-runtime-CvDXX7wN.js +5 -0
  331. package/dist/skill-runtime-D4REZnhY.js +104 -0
  332. package/dist/skill-runtime-DQRi9sIf.js +5 -0
  333. package/dist/skill-runtime-DRd56NWK.js +104 -0
  334. package/dist/src-9GyYED0T.js +63 -0
  335. package/dist/src-B9L6qb-Z.js +462 -0
  336. package/dist/src-BEjIVOmq.js +63 -0
  337. package/dist/src-BY3On_zO.js +462 -0
  338. package/dist/src-BdgKAlMQ.js +20 -0
  339. package/dist/src-C52A3OwC.js +301 -0
  340. package/dist/src-C8cbfjat.js +173 -0
  341. package/dist/src-CQ2lZvdF.js +462 -0
  342. package/dist/src-Cdwn9xpG.js +462 -0
  343. package/dist/src-CyCLoqIP.js +63 -0
  344. package/dist/src-D-OND_62.js +301 -0
  345. package/dist/src-DFo8lVfV.js +300 -0
  346. package/dist/src-DJbpP4Gs.js +462 -0
  347. package/dist/src-DPfnArdr.js +300 -0
  348. package/dist/src-DTft7Qvt.js +63 -0
  349. package/dist/src-DgvFah8g.js +153 -0
  350. package/dist/src-TYvV_oFO.js +63 -0
  351. package/dist/src-lltU5gkh.js +20 -0
  352. package/dist/sub-agent-tools-CE8pVUdb.js +39 -0
  353. package/dist/sub-agent-tools-CQWNfYn_.js +39 -0
  354. package/dist/sub-agent-tools-CViiqebO.js +39 -0
  355. package/dist/sub-agent-tools-DgT4jUHC.js +39 -0
  356. package/dist/sub-agent-tools-Lbin_4S3.js +39 -0
  357. package/dist/tool-policy-1EBdJkSG.js +190 -0
  358. package/dist/tool-policy-B1bL0X-E.js +189 -0
  359. package/dist/tool-policy-NLbucl5-.js +189 -0
  360. package/dist/tool-policy-yNVTLNDY.js +189 -0
  361. package/dist/tts-elevenlabs-Bk24wQ2V.js +64 -0
  362. package/dist/tts-elevenlabs-CHrJZuNW.js +64 -0
  363. package/dist/tts-elevenlabs-DHqQsqMz.js +64 -0
  364. package/dist/tts-elevenlabs-TUKPkSV2.js +64 -0
  365. package/dist/vision-CW1YCKed.js +167 -0
  366. package/dist/vision-DPLmrwUA.js +167 -0
  367. package/dist/vision-Q4EOcBS6.js +167 -0
  368. package/dist/vision-XyAGO5La.js +167 -0
  369. package/dist/vision-tools-B5DNR28M.js +5 -0
  370. package/dist/vision-tools-CC9HSuvN.js +51 -0
  371. package/dist/vision-tools-Ca3OhtdX.js +51 -0
  372. package/dist/vision-tools-CpU2fSRv.js +51 -0
  373. package/dist/vision-tools-Ct52djW8.js +51 -0
  374. package/dist/vision-tools-DF7N2DDI.js +5 -0
  375. package/dist/vision-tools-DyP6lRA5.js +5 -0
  376. package/dist/vision-tools-RIVKEUeY.js +5 -0
  377. package/dist/voice-transcription-Bz2y0nPK.js +170 -0
  378. package/dist/voice-transcription-CVFcHpPF.js +170 -0
  379. package/dist/voice-transcription-CvQuWPYK.js +170 -0
  380. package/dist/voice-transcription-YqndiLA7.js +170 -0
  381. package/dist/website-watch-tools-B036Y8OQ.js +176 -0
  382. package/dist/website-watch-tools-B8CHie8v.js +5 -0
  383. package/dist/website-watch-tools-Brk5oIEv.js +176 -0
  384. package/dist/website-watch-tools-CJqRj_GB.js +5 -0
  385. package/dist/website-watch-tools-CSSEu3Qy.js +5 -0
  386. package/dist/website-watch-tools-D92dkYZa.js +176 -0
  387. package/dist/website-watch-tools-Du_a8lXq.js +176 -0
  388. package/dist/website-watch-tools-UdTBGgRk.js +5 -0
  389. package/package.json +5 -3
  390. package/static/web/assets/{index-Bf8pf7Wg.js → index-8bDizzaq.js} +2 -2
  391. package/static/web/index.html +1 -1
@@ -0,0 +1,160 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const fs_extra = require_chunk.__toESM(require("fs-extra"));
3
+ const path = require_chunk.__toESM(require("path"));
4
+ const os = require_chunk.__toESM(require("os"));
5
+
6
+ //#region packages/core/src/agent/skill-loader.ts
7
+ /** Validate skill id and content (manifest checks). */
8
+ function validateSkill(id, content) {
9
+ const errors = [];
10
+ if (!id || id.length > 64) errors.push("id must be 1–64 characters");
11
+ else if (!ID_REGEX.test(id)) errors.push("id must be lowercase alphanumeric with only - or _");
12
+ const trimmed = (content || "").trim();
13
+ if (!trimmed) errors.push("content is empty");
14
+ if (trimmed.length > MAX_SKILL_CONTENT_SIZE) errors.push(`content exceeds ${MAX_SKILL_CONTENT_SIZE} characters`);
15
+ return {
16
+ valid: errors.length === 0,
17
+ errors
18
+ };
19
+ }
20
+ /** Extract manifest (title, version) from content. */
21
+ function extractManifest(content) {
22
+ const titleMatch = content.match(/^#\s+(.+)$/m);
23
+ const versionMatch = content.match(/^(?:version|Version):\s*(\S+)/m);
24
+ return {
25
+ title: titleMatch ? titleMatch[1].trim().slice(0, 120) : void 0,
26
+ version: versionMatch ? versionMatch[1].trim().slice(0, 32) : void 0
27
+ };
28
+ }
29
+ async function runBeforeLoad() {
30
+ for (const h of lifecycleHooks) if (h.onBeforeLoad) await Promise.resolve(h.onBeforeLoad());
31
+ }
32
+ async function runAfterLoad(skills) {
33
+ for (const h of lifecycleHooks) if (h.onAfterLoad) await Promise.resolve(h.onAfterLoad(skills));
34
+ }
35
+ async function runUnload(skills) {
36
+ for (const h of lifecycleHooks) if (h.onUnload) await Promise.resolve(h.onUnload(skills));
37
+ }
38
+ function extractCapabilities(content) {
39
+ const capMatch = content.match(/## Capabilities?\s*\n+([\s\S]*?)(?=\n## |\n# |$)/i);
40
+ if (capMatch) return capMatch[1].trim().slice(0, 200);
41
+ const firstPara = content.replace(/^#.*\n+/, "").split(/\n\n/)[0]?.trim();
42
+ return firstPara ? firstPara.slice(0, 200) : "";
43
+ }
44
+ async function loadSkills(opts) {
45
+ await runBeforeLoad();
46
+ const skills = [];
47
+ for (const base of [BUNDLED_SKILLS, WORKSPACE_SKILLS]) {
48
+ if (!await fs_extra.default.pathExists(base)) continue;
49
+ const dirs = await fs_extra.default.readdir(base);
50
+ for (const id of dirs) {
51
+ const skillPath = path.default.join(base, id, "SKILL.md");
52
+ if (!await fs_extra.default.pathExists(skillPath)) continue;
53
+ const content = await fs_extra.default.readFile(skillPath, "utf8");
54
+ if (skills.some((s) => s.id === id)) continue;
55
+ if (!opts?.skipValidation) {
56
+ const v = validateSkill(id, content);
57
+ if (!v.valid) continue;
58
+ }
59
+ const manifest = extractManifest(content);
60
+ skills.push({
61
+ id,
62
+ path: skillPath,
63
+ content,
64
+ capabilities: extractCapabilities(content),
65
+ title: manifest.title,
66
+ version: manifest.version
67
+ });
68
+ }
69
+ }
70
+ lastLoaded = skills;
71
+ await runAfterLoad(skills);
72
+ return skills;
73
+ }
74
+ /** Unload current skills (run onUnload), then load again. */
75
+ async function reloadSkills() {
76
+ await runUnload(lastLoaded);
77
+ return loadSkills();
78
+ }
79
+ function buildSkillsContext(skills) {
80
+ if (skills.length === 0) return "";
81
+ const capabilityList = skills.filter((s) => s.capabilities).map((s) => `- ${s.id}: ${s.capabilities}`).join("\n");
82
+ const header = capabilityList ? `\nCapability summary:\n${capabilityList}\n\n` : "";
83
+ const blocks = skills.map((s) => `## Skill: ${s.id}\n\n${s.content}`).join("\n\n---\n\n");
84
+ return `\n\n# Loaded Skills\n${header}${blocks}\n`;
85
+ }
86
+ /** Capability discovery: return id + summary for each loaded skill. */
87
+ function getSkillCapabilities(skills) {
88
+ return skills.filter((s) => s.capabilities).map((s) => ({
89
+ id: s.id,
90
+ capabilities: s.capabilities
91
+ }));
92
+ }
93
+ /** Create or overwrite a skill from agent (self-writing skills). */
94
+ async function writeSkill(skillId, opts) {
95
+ const id = skillId.replace(/[^a-z0-9-_]/gi, "-").toLowerCase() || "unnamed-skill";
96
+ const dir = path.default.join(WORKSPACE_SKILLS, id);
97
+ await fs_extra.default.ensureDir(dir);
98
+ const header = opts.name || id ? `# ${opts.name || id}\n\n${opts.description ? `> ${opts.description}\n\n` : ""}` : "";
99
+ const full = header + opts.content.trim();
100
+ await fs_extra.default.writeFile(path.default.join(dir, "SKILL.md"), full, "utf8");
101
+ return {
102
+ path: path.default.join(dir, "SKILL.md"),
103
+ id,
104
+ dir
105
+ };
106
+ }
107
+ var HC_DIR, BUNDLED_SKILLS, WORKSPACE_SKILLS, MAX_SKILL_CONTENT_SIZE, ID_REGEX, lifecycleHooks, lastLoaded;
108
+ var init_skill_loader = require_chunk.__esm({ "packages/core/src/agent/skill-loader.ts"() {
109
+ HC_DIR = path.default.join(os.default.homedir(), ".hyperclaw");
110
+ BUNDLED_SKILLS = path.default.join(__dirname, "..", "skills");
111
+ WORKSPACE_SKILLS = path.default.join(HC_DIR, "workspace", "skills");
112
+ MAX_SKILL_CONTENT_SIZE = 2e5;
113
+ ID_REGEX = /^[a-z0-9][a-z0-9-_]*$/;
114
+ lifecycleHooks = [];
115
+ lastLoaded = [];
116
+ } });
117
+
118
+ //#endregion
119
+ Object.defineProperty(exports, 'buildSkillsContext', {
120
+ enumerable: true,
121
+ get: function () {
122
+ return buildSkillsContext;
123
+ }
124
+ });
125
+ Object.defineProperty(exports, 'getSkillCapabilities', {
126
+ enumerable: true,
127
+ get: function () {
128
+ return getSkillCapabilities;
129
+ }
130
+ });
131
+ Object.defineProperty(exports, 'init_skill_loader', {
132
+ enumerable: true,
133
+ get: function () {
134
+ return init_skill_loader;
135
+ }
136
+ });
137
+ Object.defineProperty(exports, 'loadSkills', {
138
+ enumerable: true,
139
+ get: function () {
140
+ return loadSkills;
141
+ }
142
+ });
143
+ Object.defineProperty(exports, 'reloadSkills', {
144
+ enumerable: true,
145
+ get: function () {
146
+ return reloadSkills;
147
+ }
148
+ });
149
+ Object.defineProperty(exports, 'validateSkill', {
150
+ enumerable: true,
151
+ get: function () {
152
+ return validateSkill;
153
+ }
154
+ });
155
+ Object.defineProperty(exports, 'writeSkill', {
156
+ enumerable: true,
157
+ get: function () {
158
+ return writeSkill;
159
+ }
160
+ });
@@ -0,0 +1,7 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_loader = require('./skill-loader-9jg876RH.js');
3
+
4
+ require_skill_loader.init_skill_loader();
5
+ exports.buildSkillsContext = require_skill_loader.buildSkillsContext;
6
+ exports.loadSkills = require_skill_loader.loadSkills;
7
+ exports.writeSkill = require_skill_loader.writeSkill;
@@ -0,0 +1,160 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const fs_extra = require_chunk.__toESM(require("fs-extra"));
3
+ const path = require_chunk.__toESM(require("path"));
4
+ const os = require_chunk.__toESM(require("os"));
5
+
6
+ //#region packages/core/src/agent/skill-loader.ts
7
+ /** Validate skill id and content (manifest checks). */
8
+ function validateSkill(id, content) {
9
+ const errors = [];
10
+ if (!id || id.length > 64) errors.push("id must be 1–64 characters");
11
+ else if (!ID_REGEX.test(id)) errors.push("id must be lowercase alphanumeric with only - or _");
12
+ const trimmed = (content || "").trim();
13
+ if (!trimmed) errors.push("content is empty");
14
+ if (trimmed.length > MAX_SKILL_CONTENT_SIZE) errors.push(`content exceeds ${MAX_SKILL_CONTENT_SIZE} characters`);
15
+ return {
16
+ valid: errors.length === 0,
17
+ errors
18
+ };
19
+ }
20
+ /** Extract manifest (title, version) from content. */
21
+ function extractManifest(content) {
22
+ const titleMatch = content.match(/^#\s+(.+)$/m);
23
+ const versionMatch = content.match(/^(?:version|Version):\s*(\S+)/m);
24
+ return {
25
+ title: titleMatch ? titleMatch[1].trim().slice(0, 120) : void 0,
26
+ version: versionMatch ? versionMatch[1].trim().slice(0, 32) : void 0
27
+ };
28
+ }
29
+ async function runBeforeLoad() {
30
+ for (const h of lifecycleHooks) if (h.onBeforeLoad) await Promise.resolve(h.onBeforeLoad());
31
+ }
32
+ async function runAfterLoad(skills) {
33
+ for (const h of lifecycleHooks) if (h.onAfterLoad) await Promise.resolve(h.onAfterLoad(skills));
34
+ }
35
+ async function runUnload(skills) {
36
+ for (const h of lifecycleHooks) if (h.onUnload) await Promise.resolve(h.onUnload(skills));
37
+ }
38
+ function extractCapabilities(content) {
39
+ const capMatch = content.match(/## Capabilities?\s*\n+([\s\S]*?)(?=\n## |\n# |$)/i);
40
+ if (capMatch) return capMatch[1].trim().slice(0, 200);
41
+ const firstPara = content.replace(/^#.*\n+/, "").split(/\n\n/)[0]?.trim();
42
+ return firstPara ? firstPara.slice(0, 200) : "";
43
+ }
44
+ async function loadSkills(opts) {
45
+ await runBeforeLoad();
46
+ const skills = [];
47
+ for (const base of [BUNDLED_SKILLS, WORKSPACE_SKILLS]) {
48
+ if (!await fs_extra.default.pathExists(base)) continue;
49
+ const dirs = await fs_extra.default.readdir(base);
50
+ for (const id of dirs) {
51
+ const skillPath = path.default.join(base, id, "SKILL.md");
52
+ if (!await fs_extra.default.pathExists(skillPath)) continue;
53
+ const content = await fs_extra.default.readFile(skillPath, "utf8");
54
+ if (skills.some((s) => s.id === id)) continue;
55
+ if (!opts?.skipValidation) {
56
+ const v = validateSkill(id, content);
57
+ if (!v.valid) continue;
58
+ }
59
+ const manifest = extractManifest(content);
60
+ skills.push({
61
+ id,
62
+ path: skillPath,
63
+ content,
64
+ capabilities: extractCapabilities(content),
65
+ title: manifest.title,
66
+ version: manifest.version
67
+ });
68
+ }
69
+ }
70
+ lastLoaded = skills;
71
+ await runAfterLoad(skills);
72
+ return skills;
73
+ }
74
+ /** Unload current skills (run onUnload), then load again. */
75
+ async function reloadSkills() {
76
+ await runUnload(lastLoaded);
77
+ return loadSkills();
78
+ }
79
+ function buildSkillsContext(skills) {
80
+ if (skills.length === 0) return "";
81
+ const capabilityList = skills.filter((s) => s.capabilities).map((s) => `- ${s.id}: ${s.capabilities}`).join("\n");
82
+ const header = capabilityList ? `\nCapability summary:\n${capabilityList}\n\n` : "";
83
+ const blocks = skills.map((s) => `## Skill: ${s.id}\n\n${s.content}`).join("\n\n---\n\n");
84
+ return `\n\n# Loaded Skills\n${header}${blocks}\n`;
85
+ }
86
+ /** Capability discovery: return id + summary for each loaded skill. */
87
+ function getSkillCapabilities(skills) {
88
+ return skills.filter((s) => s.capabilities).map((s) => ({
89
+ id: s.id,
90
+ capabilities: s.capabilities
91
+ }));
92
+ }
93
+ /** Create or overwrite a skill from agent (self-writing skills). */
94
+ async function writeSkill(skillId, opts) {
95
+ const id = skillId.replace(/[^a-z0-9-_]/gi, "-").toLowerCase() || "unnamed-skill";
96
+ const dir = path.default.join(WORKSPACE_SKILLS, id);
97
+ await fs_extra.default.ensureDir(dir);
98
+ const header = opts.name || id ? `# ${opts.name || id}\n\n${opts.description ? `> ${opts.description}\n\n` : ""}` : "";
99
+ const full = header + opts.content.trim();
100
+ await fs_extra.default.writeFile(path.default.join(dir, "SKILL.md"), full, "utf8");
101
+ return {
102
+ path: path.default.join(dir, "SKILL.md"),
103
+ id,
104
+ dir
105
+ };
106
+ }
107
+ var HC_DIR, BUNDLED_SKILLS, WORKSPACE_SKILLS, MAX_SKILL_CONTENT_SIZE, ID_REGEX, lifecycleHooks, lastLoaded;
108
+ var init_skill_loader = require_chunk.__esm({ "packages/core/src/agent/skill-loader.ts"() {
109
+ HC_DIR = path.default.join(os.default.homedir(), ".hyperclaw");
110
+ BUNDLED_SKILLS = path.default.join(__dirname, "..", "skills");
111
+ WORKSPACE_SKILLS = path.default.join(HC_DIR, "workspace", "skills");
112
+ MAX_SKILL_CONTENT_SIZE = 2e5;
113
+ ID_REGEX = /^[a-z0-9][a-z0-9-_]*$/;
114
+ lifecycleHooks = [];
115
+ lastLoaded = [];
116
+ } });
117
+
118
+ //#endregion
119
+ Object.defineProperty(exports, 'buildSkillsContext', {
120
+ enumerable: true,
121
+ get: function () {
122
+ return buildSkillsContext;
123
+ }
124
+ });
125
+ Object.defineProperty(exports, 'getSkillCapabilities', {
126
+ enumerable: true,
127
+ get: function () {
128
+ return getSkillCapabilities;
129
+ }
130
+ });
131
+ Object.defineProperty(exports, 'init_skill_loader', {
132
+ enumerable: true,
133
+ get: function () {
134
+ return init_skill_loader;
135
+ }
136
+ });
137
+ Object.defineProperty(exports, 'loadSkills', {
138
+ enumerable: true,
139
+ get: function () {
140
+ return loadSkills;
141
+ }
142
+ });
143
+ Object.defineProperty(exports, 'reloadSkills', {
144
+ enumerable: true,
145
+ get: function () {
146
+ return reloadSkills;
147
+ }
148
+ });
149
+ Object.defineProperty(exports, 'validateSkill', {
150
+ enumerable: true,
151
+ get: function () {
152
+ return validateSkill;
153
+ }
154
+ });
155
+ Object.defineProperty(exports, 'writeSkill', {
156
+ enumerable: true,
157
+ get: function () {
158
+ return writeSkill;
159
+ }
160
+ });
@@ -0,0 +1,7 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_loader = require('./skill-loader-CM4KWQ7_.js');
3
+
4
+ require_skill_loader.init_skill_loader();
5
+ exports.buildSkillsContext = require_skill_loader.buildSkillsContext;
6
+ exports.loadSkills = require_skill_loader.loadSkills;
7
+ exports.writeSkill = require_skill_loader.writeSkill;
@@ -0,0 +1,7 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_loader = require('./skill-loader-CS3OP4Lr.js');
3
+
4
+ require_skill_loader.init_skill_loader();
5
+ exports.buildSkillsContext = require_skill_loader.buildSkillsContext;
6
+ exports.loadSkills = require_skill_loader.loadSkills;
7
+ exports.writeSkill = require_skill_loader.writeSkill;
@@ -0,0 +1,7 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_loader = require('./skill-loader-DRLgt5V2.js');
3
+
4
+ require_skill_loader.init_skill_loader();
5
+ exports.buildSkillsContext = require_skill_loader.buildSkillsContext;
6
+ exports.loadSkills = require_skill_loader.loadSkills;
7
+ exports.writeSkill = require_skill_loader.writeSkill;
@@ -0,0 +1,104 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+
3
+ //#region packages/core/src/agent/skill-runtime.ts
4
+ /** Extract execution contract from skill content. Parses ## Execution or ## Invoke blocks. */
5
+ function extractExecutionContract(skill) {
6
+ const raw = skill.content || "";
7
+ const content = raw.length > 1e5 ? raw.slice(0, 1e5) : raw;
8
+ const execMatch = content.match(/##\s*(?:Execution|Invoke)\s*\n+([\s\S]*?)(?=\n## |\n# |$)/i);
9
+ if (!execMatch) return null;
10
+ const block = execMatch[1].trim();
11
+ const contract = {
12
+ skillId: skill.id,
13
+ invokeMode: "prompt"
14
+ };
15
+ const schemaMatch = block.match(/input\s*:\s*\{([^}]+)\}/i) || block.match(/params\s*:\s*\{([^}]+)\}/i);
16
+ if (schemaMatch) {
17
+ const props = {};
18
+ const safeBlock = schemaMatch[1].slice(0, 2e3);
19
+ const parts = safeBlock.split(",");
20
+ for (const p of parts) {
21
+ const [key, typeDesc] = p.split(":").map((s) => s.trim());
22
+ if (key) props[key] = {
23
+ type: typeDesc || "string",
24
+ description: ""
25
+ };
26
+ }
27
+ contract.inputSchema = {
28
+ properties: props,
29
+ required: Object.keys(props)
30
+ };
31
+ }
32
+ if (block.toLowerCase().includes("subagent") || block.toLowerCase().includes("full run")) contract.invokeMode = "subagent";
33
+ return contract;
34
+ }
35
+ /** Invoke a skill with params. Runs as focused prompt or subagent call. */
36
+ async function invokeSkill(skillId, params, opts) {
37
+ const { loadSkills } = await Promise.resolve().then(() => require("./skill-loader-Df5T_UFl.js"));
38
+ const skills = opts?.skills ?? await loadSkills();
39
+ const skill = skills.find((s) => s.id === skillId);
40
+ if (!skill) return `Error: Skill "${skillId}" not found.`;
41
+ const contract = extractExecutionContract(skill);
42
+ const inputStr = Object.entries(params).map(([k, v]) => `${k}: ${typeof v === "object" ? JSON.stringify(v) : v}`).join(", ");
43
+ const { runAgentEngine } = await Promise.resolve().then(() => require("./engine-DeaqDcaT.js"));
44
+ const prompt = `Execute the skill "${skillId}" with these inputs: ${inputStr}\n\nFollow the skill instructions exactly. Output only the result.`;
45
+ const result = await runAgentEngine(prompt, {});
46
+ return result.text;
47
+ }
48
+ /** Build tools for skill invocation. Agent can call invoke_skill(skillId, params). */
49
+ function getSkillInvokeTools(skills) {
50
+ const invokable = skills.filter((s) => extractExecutionContract(s) || s.capabilities);
51
+ if (invokable.length === 0) return [];
52
+ const descriptions = invokable.map((s) => `- ${s.id}: ${s.capabilities || s.title || "no description"}`).join("\n");
53
+ return [{
54
+ name: "invoke_skill",
55
+ description: `Invoke a loaded skill by id. Available: ${invokable.map((s) => s.id).join(", ")}. Use when the user wants to run a specific capability.`,
56
+ input_schema: {
57
+ type: "object",
58
+ properties: {
59
+ skill_id: {
60
+ type: "string",
61
+ description: `Skill id. Options: ${invokable.map((s) => s.id).join(", ")}`
62
+ },
63
+ params: {
64
+ type: "object",
65
+ description: "Optional key-value params for the skill"
66
+ }
67
+ },
68
+ required: ["skill_id"]
69
+ },
70
+ handler: async (input) => {
71
+ const id = String(input.skill_id || "").trim();
72
+ const params = typeof input.params === "object" && input.params !== null ? input.params : {};
73
+ if (!id) return "Error: skill_id is required.";
74
+ return invokeSkill(id, params);
75
+ }
76
+ }];
77
+ }
78
+ var init_skill_runtime = require_chunk.__esm({ "packages/core/src/agent/skill-runtime.ts"() {} });
79
+
80
+ //#endregion
81
+ Object.defineProperty(exports, 'extractExecutionContract', {
82
+ enumerable: true,
83
+ get: function () {
84
+ return extractExecutionContract;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, 'getSkillInvokeTools', {
88
+ enumerable: true,
89
+ get: function () {
90
+ return getSkillInvokeTools;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, 'init_skill_runtime', {
94
+ enumerable: true,
95
+ get: function () {
96
+ return init_skill_runtime;
97
+ }
98
+ });
99
+ Object.defineProperty(exports, 'invokeSkill', {
100
+ enumerable: true,
101
+ get: function () {
102
+ return invokeSkill;
103
+ }
104
+ });
@@ -0,0 +1,104 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+
3
+ //#region packages/core/src/agent/skill-runtime.ts
4
+ /** Extract execution contract from skill content. Parses ## Execution or ## Invoke blocks. */
5
+ function extractExecutionContract(skill) {
6
+ const raw = skill.content || "";
7
+ const content = raw.length > 1e5 ? raw.slice(0, 1e5) : raw;
8
+ const execMatch = content.match(/##\s*(?:Execution|Invoke)\s*\n+([\s\S]*?)(?=\n## |\n# |$)/i);
9
+ if (!execMatch) return null;
10
+ const block = execMatch[1].trim();
11
+ const contract = {
12
+ skillId: skill.id,
13
+ invokeMode: "prompt"
14
+ };
15
+ const schemaMatch = block.match(/input\s*:\s*\{([^}]+)\}/i) || block.match(/params\s*:\s*\{([^}]+)\}/i);
16
+ if (schemaMatch) {
17
+ const props = {};
18
+ const safeBlock = schemaMatch[1].slice(0, 2e3);
19
+ const parts = safeBlock.split(",");
20
+ for (const p of parts) {
21
+ const [key, typeDesc] = p.split(":").map((s) => s.trim());
22
+ if (key) props[key] = {
23
+ type: typeDesc || "string",
24
+ description: ""
25
+ };
26
+ }
27
+ contract.inputSchema = {
28
+ properties: props,
29
+ required: Object.keys(props)
30
+ };
31
+ }
32
+ if (block.toLowerCase().includes("subagent") || block.toLowerCase().includes("full run")) contract.invokeMode = "subagent";
33
+ return contract;
34
+ }
35
+ /** Invoke a skill with params. Runs as focused prompt or subagent call. */
36
+ async function invokeSkill(skillId, params, opts) {
37
+ const { loadSkills } = await Promise.resolve().then(() => require("./skill-loader-DxE-gZkT.js"));
38
+ const skills = opts?.skills ?? await loadSkills();
39
+ const skill = skills.find((s) => s.id === skillId);
40
+ if (!skill) return `Error: Skill "${skillId}" not found.`;
41
+ const contract = extractExecutionContract(skill);
42
+ const inputStr = Object.entries(params).map(([k, v]) => `${k}: ${typeof v === "object" ? JSON.stringify(v) : v}`).join(", ");
43
+ const { runAgentEngine } = await Promise.resolve().then(() => require("./engine-JysunhPR.js"));
44
+ const prompt = `Execute the skill "${skillId}" with these inputs: ${inputStr}\n\nFollow the skill instructions exactly. Output only the result.`;
45
+ const result = await runAgentEngine(prompt, {});
46
+ return result.text;
47
+ }
48
+ /** Build tools for skill invocation. Agent can call invoke_skill(skillId, params). */
49
+ function getSkillInvokeTools(skills) {
50
+ const invokable = skills.filter((s) => extractExecutionContract(s) || s.capabilities);
51
+ if (invokable.length === 0) return [];
52
+ const descriptions = invokable.map((s) => `- ${s.id}: ${s.capabilities || s.title || "no description"}`).join("\n");
53
+ return [{
54
+ name: "invoke_skill",
55
+ description: `Invoke a loaded skill by id. Available: ${invokable.map((s) => s.id).join(", ")}. Use when the user wants to run a specific capability.`,
56
+ input_schema: {
57
+ type: "object",
58
+ properties: {
59
+ skill_id: {
60
+ type: "string",
61
+ description: `Skill id. Options: ${invokable.map((s) => s.id).join(", ")}`
62
+ },
63
+ params: {
64
+ type: "object",
65
+ description: "Optional key-value params for the skill"
66
+ }
67
+ },
68
+ required: ["skill_id"]
69
+ },
70
+ handler: async (input) => {
71
+ const id = String(input.skill_id || "").trim();
72
+ const params = typeof input.params === "object" && input.params !== null ? input.params : {};
73
+ if (!id) return "Error: skill_id is required.";
74
+ return invokeSkill(id, params);
75
+ }
76
+ }];
77
+ }
78
+ var init_skill_runtime = require_chunk.__esm({ "packages/core/src/agent/skill-runtime.ts"() {} });
79
+
80
+ //#endregion
81
+ Object.defineProperty(exports, 'extractExecutionContract', {
82
+ enumerable: true,
83
+ get: function () {
84
+ return extractExecutionContract;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, 'getSkillInvokeTools', {
88
+ enumerable: true,
89
+ get: function () {
90
+ return getSkillInvokeTools;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, 'init_skill_runtime', {
94
+ enumerable: true,
95
+ get: function () {
96
+ return init_skill_runtime;
97
+ }
98
+ });
99
+ Object.defineProperty(exports, 'invokeSkill', {
100
+ enumerable: true,
101
+ get: function () {
102
+ return invokeSkill;
103
+ }
104
+ });
@@ -0,0 +1,5 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_runtime = require('./skill-runtime-COyc3Bci.js');
3
+
4
+ require_skill_runtime.init_skill_runtime();
5
+ exports.getSkillInvokeTools = require_skill_runtime.getSkillInvokeTools;
@@ -0,0 +1,5 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_runtime = require('./skill-runtime-8Xh5874w.js');
3
+
4
+ require_skill_runtime.init_skill_runtime();
5
+ exports.getSkillInvokeTools = require_skill_runtime.getSkillInvokeTools;
@@ -0,0 +1,5 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_runtime = require('./skill-runtime-DRd56NWK.js');
3
+
4
+ require_skill_runtime.init_skill_runtime();
5
+ exports.getSkillInvokeTools = require_skill_runtime.getSkillInvokeTools;
@@ -0,0 +1,104 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+
3
+ //#region packages/core/src/agent/skill-runtime.ts
4
+ /** Extract execution contract from skill content. Parses ## Execution or ## Invoke blocks. */
5
+ function extractExecutionContract(skill) {
6
+ const raw = skill.content || "";
7
+ const content = raw.length > 1e5 ? raw.slice(0, 1e5) : raw;
8
+ const execMatch = content.match(/##\s*(?:Execution|Invoke)\s*\n+([\s\S]*?)(?=\n## |\n# |$)/i);
9
+ if (!execMatch) return null;
10
+ const block = execMatch[1].trim();
11
+ const contract = {
12
+ skillId: skill.id,
13
+ invokeMode: "prompt"
14
+ };
15
+ const schemaMatch = block.match(/input\s*:\s*\{([^}]+)\}/i) || block.match(/params\s*:\s*\{([^}]+)\}/i);
16
+ if (schemaMatch) {
17
+ const props = {};
18
+ const safeBlock = schemaMatch[1].slice(0, 2e3);
19
+ const parts = safeBlock.split(",");
20
+ for (const p of parts) {
21
+ const [key, typeDesc] = p.split(":").map((s) => s.trim());
22
+ if (key) props[key] = {
23
+ type: typeDesc || "string",
24
+ description: ""
25
+ };
26
+ }
27
+ contract.inputSchema = {
28
+ properties: props,
29
+ required: Object.keys(props)
30
+ };
31
+ }
32
+ if (block.toLowerCase().includes("subagent") || block.toLowerCase().includes("full run")) contract.invokeMode = "subagent";
33
+ return contract;
34
+ }
35
+ /** Invoke a skill with params. Runs as focused prompt or subagent call. */
36
+ async function invokeSkill(skillId, params, opts) {
37
+ const { loadSkills } = await Promise.resolve().then(() => require("./skill-loader-CnJDLNbY.js"));
38
+ const skills = opts?.skills ?? await loadSkills();
39
+ const skill = skills.find((s) => s.id === skillId);
40
+ if (!skill) return `Error: Skill "${skillId}" not found.`;
41
+ const contract = extractExecutionContract(skill);
42
+ const inputStr = Object.entries(params).map(([k, v]) => `${k}: ${typeof v === "object" ? JSON.stringify(v) : v}`).join(", ");
43
+ const { runAgentEngine } = await Promise.resolve().then(() => require("./engine-DB4MBzki.js"));
44
+ const prompt = `Execute the skill "${skillId}" with these inputs: ${inputStr}\n\nFollow the skill instructions exactly. Output only the result.`;
45
+ const result = await runAgentEngine(prompt, {});
46
+ return result.text;
47
+ }
48
+ /** Build tools for skill invocation. Agent can call invoke_skill(skillId, params). */
49
+ function getSkillInvokeTools(skills) {
50
+ const invokable = skills.filter((s) => extractExecutionContract(s) || s.capabilities);
51
+ if (invokable.length === 0) return [];
52
+ const descriptions = invokable.map((s) => `- ${s.id}: ${s.capabilities || s.title || "no description"}`).join("\n");
53
+ return [{
54
+ name: "invoke_skill",
55
+ description: `Invoke a loaded skill by id. Available: ${invokable.map((s) => s.id).join(", ")}. Use when the user wants to run a specific capability.`,
56
+ input_schema: {
57
+ type: "object",
58
+ properties: {
59
+ skill_id: {
60
+ type: "string",
61
+ description: `Skill id. Options: ${invokable.map((s) => s.id).join(", ")}`
62
+ },
63
+ params: {
64
+ type: "object",
65
+ description: "Optional key-value params for the skill"
66
+ }
67
+ },
68
+ required: ["skill_id"]
69
+ },
70
+ handler: async (input) => {
71
+ const id = String(input.skill_id || "").trim();
72
+ const params = typeof input.params === "object" && input.params !== null ? input.params : {};
73
+ if (!id) return "Error: skill_id is required.";
74
+ return invokeSkill(id, params);
75
+ }
76
+ }];
77
+ }
78
+ var init_skill_runtime = require_chunk.__esm({ "packages/core/src/agent/skill-runtime.ts"() {} });
79
+
80
+ //#endregion
81
+ Object.defineProperty(exports, 'extractExecutionContract', {
82
+ enumerable: true,
83
+ get: function () {
84
+ return extractExecutionContract;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, 'getSkillInvokeTools', {
88
+ enumerable: true,
89
+ get: function () {
90
+ return getSkillInvokeTools;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, 'init_skill_runtime', {
94
+ enumerable: true,
95
+ get: function () {
96
+ return init_skill_runtime;
97
+ }
98
+ });
99
+ Object.defineProperty(exports, 'invokeSkill', {
100
+ enumerable: true,
101
+ get: function () {
102
+ return invokeSkill;
103
+ }
104
+ });