qlogicagent 0.2.0 → 0.3.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 (453) hide show
  1. package/dist/agent.js +1 -0
  2. package/dist/cli.js +9 -0
  3. package/dist/contracts.js +1 -0
  4. package/dist/index.js +5 -16
  5. package/dist/orchestration.js +118 -0
  6. package/dist/{agent → types/agent}/agent.d.ts +0 -1
  7. package/dist/{agent → types/agent}/tool-loop.d.ts +0 -1
  8. package/dist/{agent → types/agent}/types.d.ts +0 -1
  9. package/dist/{cli → types/cli}/main.d.ts +0 -1
  10. package/dist/{cli → types/cli}/stdio-server.d.ts +0 -1
  11. package/dist/{config → types/config}/config.d.ts +0 -1
  12. package/dist/{contracts → types/contracts}/hooks.d.ts +0 -1
  13. package/dist/{contracts/index.js → types/contracts/index.d.ts} +0 -1
  14. package/dist/{contracts → types/contracts}/planner.d.ts +0 -1
  15. package/dist/{contracts → types/contracts}/skill-candidate.d.ts +0 -1
  16. package/dist/{contracts → types/contracts}/todo.d.ts +0 -1
  17. package/dist/{index.d.ts → types/index.d.ts} +0 -1
  18. package/dist/{llm → types/llm}/builtin-providers.d.ts +0 -1
  19. package/dist/{llm → types/llm}/index.d.ts +0 -1
  20. package/dist/{llm → types/llm}/llm-client.d.ts +0 -1
  21. package/dist/{llm → types/llm}/model-catalog.d.ts +0 -1
  22. package/dist/{llm → types/llm}/provider-def.d.ts +0 -1
  23. package/dist/{llm → types/llm}/provider-registry.d.ts +0 -1
  24. package/dist/{llm → types/llm}/transport.d.ts +0 -1
  25. package/dist/{llm → types/llm}/transports/anthropic-messages.d.ts +0 -1
  26. package/dist/{llm → types/llm}/transports/openai-chat.d.ts +0 -1
  27. package/dist/{orchestration → types/orchestration}/agent-registry.d.ts +0 -1
  28. package/dist/{orchestration → types/orchestration}/approval-aware-tool-plan.d.ts +0 -1
  29. package/dist/{orchestration → types/orchestration}/context-compression.d.ts +0 -1
  30. package/dist/{orchestration → types/orchestration}/conversation-repair.d.ts +0 -1
  31. package/dist/{orchestration → types/orchestration}/curator-scheduler.d.ts +0 -1
  32. package/dist/{orchestration → types/orchestration}/embedded-failover-policy.d.ts +0 -1
  33. package/dist/{orchestration → types/orchestration}/error-classification.d.ts +0 -1
  34. package/dist/{orchestration → types/orchestration}/failover-classification.d.ts +0 -1
  35. package/dist/{orchestration → types/orchestration}/failover-error.d.ts +0 -1
  36. package/dist/{orchestration → types/orchestration}/fork-subagent.d.ts +0 -1
  37. package/dist/{orchestration → types/orchestration}/index.d.ts +0 -1
  38. package/dist/{orchestration → types/orchestration}/memory-flush-policy.d.ts +0 -1
  39. package/dist/{orchestration → types/orchestration}/memory-provider.d.ts +0 -1
  40. package/dist/{orchestration → types/orchestration}/parallel-tool-calls.d.ts +0 -1
  41. package/dist/{orchestration → types/orchestration}/prompt-cache-strategy.d.ts +0 -1
  42. package/dist/{orchestration → types/orchestration}/reactive-compact.d.ts +0 -1
  43. package/dist/{orchestration → types/orchestration}/retry-loop.d.ts +0 -1
  44. package/dist/{orchestration → types/orchestration}/skill-candidate.d.ts +0 -1
  45. package/dist/{orchestration → types/orchestration}/skill-consolidation.d.ts +0 -1
  46. package/dist/{orchestration → types/orchestration}/skill-improvement.d.ts +0 -1
  47. package/dist/{orchestration → types/orchestration}/skill-similarity.d.ts +0 -1
  48. package/dist/{orchestration → types/orchestration}/streaming-tool-executor.d.ts +0 -1
  49. package/dist/{orchestration → types/orchestration}/team-orchestration.d.ts +0 -1
  50. package/dist/{orchestration → types/orchestration}/team-tool-loop-wiring.d.ts +0 -1
  51. package/dist/{orchestration → types/orchestration}/tool-choice-policy.d.ts +0 -1
  52. package/dist/{orchestration → types/orchestration}/tool-loop-state.d.ts +0 -1
  53. package/dist/{orchestration → types/orchestration}/tool-schema.d.ts +0 -1
  54. package/dist/{orchestration → types/orchestration}/transcript-repair.d.ts +0 -1
  55. package/dist/{orchestration → types/orchestration}/turn-loop-guard.d.ts +0 -1
  56. package/dist/{orchestration → types/orchestration}/web-browser-policy.d.ts +0 -1
  57. package/dist/{runtime → types/runtime}/context-compression.d.ts +0 -1
  58. package/dist/{runtime → types/runtime}/hook-registry.d.ts +0 -1
  59. package/dist/{runtime → types/runtime}/memory-hooks.d.ts +0 -1
  60. package/dist/{runtime → types/runtime}/tool-eligibility.d.ts +0 -1
  61. package/dist/{skills → types/skills}/index.d.ts +0 -1
  62. package/dist/{skills → types/skills}/memory-extractor.d.ts +0 -1
  63. package/dist/{skills → types/skills}/memory-query-tool.d.ts +0 -1
  64. package/dist/{skills → types/skills}/memory-store.d.ts +0 -1
  65. package/dist/{skills → types/skills}/memory-tool.d.ts +0 -1
  66. package/dist/{skills → types/skills}/portable-tool.d.ts +0 -1
  67. package/dist/{skills → types/skills}/qmemory-adapter.d.ts +0 -1
  68. package/dist/{skills → types/skills}/skill-frontmatter.d.ts +0 -1
  69. package/dist/{skills → types/skills}/skill-guard.d.ts +0 -1
  70. package/dist/{skills → types/skills}/skill-loader.d.ts +0 -1
  71. package/dist/{skills → types/skills}/skill-source.d.ts +0 -1
  72. package/dist/{skills → types/skills}/skill-types.d.ts +0 -1
  73. package/dist/{skills → types/skills}/think-tool.d.ts +0 -1
  74. package/dist/{skills → types/skills}/todo-tool.d.ts +0 -1
  75. package/dist/{skills → types/skills}/tools/agent-tool.d.ts +0 -1
  76. package/dist/{skills → types/skills}/tools/apply-patch-tool.d.ts +0 -1
  77. package/dist/{skills → types/skills}/tools/ask-user-tool.d.ts +0 -1
  78. package/dist/{skills → types/skills}/tools/brief-tool.d.ts +0 -1
  79. package/dist/{skills → types/skills}/tools/browser-tool.d.ts +0 -1
  80. package/dist/{skills → types/skills}/tools/checkpoint-tool.d.ts +0 -1
  81. package/dist/{skills → types/skills}/tools/config-tool.d.ts +0 -1
  82. package/dist/{skills → types/skills}/tools/cron-tool.d.ts +0 -1
  83. package/dist/{skills → types/skills}/tools/edit-tool.d.ts +0 -1
  84. package/dist/{skills → types/skills}/tools/exec-tool.d.ts +0 -1
  85. package/dist/{skills → types/skills}/tools/image-generate-tool.d.ts +0 -1
  86. package/dist/{skills → types/skills}/tools/instructions-tool.d.ts +0 -1
  87. package/dist/{skills → types/skills}/tools/lsp-tool.d.ts +0 -1
  88. package/dist/{skills → types/skills}/tools/mcp-client-types.d.ts +0 -1
  89. package/dist/{skills → types/skills}/tools/mcp-tool.d.ts +0 -1
  90. package/dist/{skills → types/skills}/tools/memory-tool.d.ts +0 -1
  91. package/dist/{skills → types/skills}/tools/monitor-tool.d.ts +0 -1
  92. package/dist/{skills → types/skills}/tools/music-generate-tool.d.ts +0 -1
  93. package/dist/{skills → types/skills}/tools/notify-tool.d.ts +0 -1
  94. package/dist/{skills → types/skills}/tools/patch-tool.d.ts +0 -1
  95. package/dist/{skills → types/skills}/tools/pdf-tool.d.ts +0 -1
  96. package/dist/{skills → types/skills}/tools/plan-mode-tool.d.ts +0 -1
  97. package/dist/{skills → types/skills}/tools/read-tool.d.ts +0 -1
  98. package/dist/{skills → types/skills}/tools/repl-tool.d.ts +0 -1
  99. package/dist/{skills → types/skills}/tools/search-tool.d.ts +0 -1
  100. package/dist/{skills → types/skills}/tools/send-message-tool.d.ts +0 -1
  101. package/dist/{skills → types/skills}/tools/skill-list-tool.d.ts +0 -1
  102. package/dist/{skills → types/skills}/tools/skill-manage-tool.d.ts +0 -1
  103. package/dist/{skills → types/skills}/tools/skill-view-tool.d.ts +0 -1
  104. package/dist/{skills → types/skills}/tools/sleep-tool.d.ts +0 -1
  105. package/dist/{skills → types/skills}/tools/structured-output-tool.d.ts +0 -1
  106. package/dist/{skills → types/skills}/tools/task-tool.d.ts +0 -1
  107. package/dist/{skills → types/skills}/tools/team-tool.d.ts +0 -1
  108. package/dist/{skills → types/skills}/tools/tool-search-tool.d.ts +0 -1
  109. package/dist/{skills → types/skills}/tools/tts-tool.d.ts +0 -1
  110. package/dist/{skills → types/skills}/tools/video-edit-tool.d.ts +0 -1
  111. package/dist/{skills → types/skills}/tools/video-generate-tool.d.ts +0 -1
  112. package/dist/{skills → types/skills}/tools/video-merge-tool.d.ts +0 -1
  113. package/dist/{skills → types/skills}/tools/video-upscale-tool.d.ts +0 -1
  114. package/dist/{skills → types/skills}/tools/web-fetch-tool.d.ts +0 -1
  115. package/dist/{skills → types/skills}/tools/web-search-tool.d.ts +0 -1
  116. package/dist/{skills → types/skills}/tools/worktree-tool.d.ts +0 -1
  117. package/dist/{skills → types/skills}/tools/write-tool.d.ts +0 -1
  118. package/package.json +56 -42
  119. package/dist/agent/agent.d.ts.map +0 -1
  120. package/dist/agent/agent.js +0 -114
  121. package/dist/agent/agent.js.map +0 -1
  122. package/dist/agent/tool-loop.d.ts.map +0 -1
  123. package/dist/agent/tool-loop.js +0 -576
  124. package/dist/agent/tool-loop.js.map +0 -1
  125. package/dist/agent/types.d.ts.map +0 -1
  126. package/dist/agent/types.js +0 -15
  127. package/dist/agent/types.js.map +0 -1
  128. package/dist/cli/main.d.ts.map +0 -1
  129. package/dist/cli/main.js +0 -24
  130. package/dist/cli/main.js.map +0 -1
  131. package/dist/cli/stdio-server.d.ts.map +0 -1
  132. package/dist/cli/stdio-server.js +0 -464
  133. package/dist/cli/stdio-server.js.map +0 -1
  134. package/dist/config/config.d.ts.map +0 -1
  135. package/dist/config/config.js +0 -22
  136. package/dist/config/config.js.map +0 -1
  137. package/dist/contracts/hooks.d.ts.map +0 -1
  138. package/dist/contracts/hooks.js +0 -8
  139. package/dist/contracts/hooks.js.map +0 -1
  140. package/dist/contracts/index.d.ts +0 -11
  141. package/dist/contracts/index.d.ts.map +0 -1
  142. package/dist/contracts/index.js.map +0 -1
  143. package/dist/contracts/planner.d.ts.map +0 -1
  144. package/dist/contracts/planner.js +0 -3
  145. package/dist/contracts/planner.js.map +0 -1
  146. package/dist/contracts/skill-candidate.d.ts.map +0 -1
  147. package/dist/contracts/skill-candidate.js +0 -196
  148. package/dist/contracts/skill-candidate.js.map +0 -1
  149. package/dist/contracts/todo.d.ts.map +0 -1
  150. package/dist/contracts/todo.js +0 -10
  151. package/dist/contracts/todo.js.map +0 -1
  152. package/dist/index.d.ts.map +0 -1
  153. package/dist/index.js.map +0 -1
  154. package/dist/llm/builtin-providers.d.ts.map +0 -1
  155. package/dist/llm/builtin-providers.js +0 -532
  156. package/dist/llm/builtin-providers.js.map +0 -1
  157. package/dist/llm/index.d.ts.map +0 -1
  158. package/dist/llm/index.js +0 -15
  159. package/dist/llm/index.js.map +0 -1
  160. package/dist/llm/llm-client.d.ts.map +0 -1
  161. package/dist/llm/llm-client.js +0 -68
  162. package/dist/llm/llm-client.js.map +0 -1
  163. package/dist/llm/model-catalog.d.ts.map +0 -1
  164. package/dist/llm/model-catalog.js +0 -192
  165. package/dist/llm/model-catalog.js.map +0 -1
  166. package/dist/llm/provider-def.d.ts.map +0 -1
  167. package/dist/llm/provider-def.js +0 -13
  168. package/dist/llm/provider-def.js.map +0 -1
  169. package/dist/llm/provider-registry.d.ts.map +0 -1
  170. package/dist/llm/provider-registry.js +0 -148
  171. package/dist/llm/provider-registry.js.map +0 -1
  172. package/dist/llm/transport.d.ts.map +0 -1
  173. package/dist/llm/transport.js +0 -28
  174. package/dist/llm/transport.js.map +0 -1
  175. package/dist/llm/transports/anthropic-messages.d.ts.map +0 -1
  176. package/dist/llm/transports/anthropic-messages.js +0 -294
  177. package/dist/llm/transports/anthropic-messages.js.map +0 -1
  178. package/dist/llm/transports/openai-chat.d.ts.map +0 -1
  179. package/dist/llm/transports/openai-chat.js +0 -166
  180. package/dist/llm/transports/openai-chat.js.map +0 -1
  181. package/dist/orchestration/agent-registry.d.ts.map +0 -1
  182. package/dist/orchestration/agent-registry.js +0 -117
  183. package/dist/orchestration/agent-registry.js.map +0 -1
  184. package/dist/orchestration/approval-aware-tool-plan.d.ts.map +0 -1
  185. package/dist/orchestration/approval-aware-tool-plan.js +0 -88
  186. package/dist/orchestration/approval-aware-tool-plan.js.map +0 -1
  187. package/dist/orchestration/context-compression.d.ts.map +0 -1
  188. package/dist/orchestration/context-compression.js +0 -584
  189. package/dist/orchestration/context-compression.js.map +0 -1
  190. package/dist/orchestration/conversation-repair.d.ts.map +0 -1
  191. package/dist/orchestration/conversation-repair.js +0 -430
  192. package/dist/orchestration/conversation-repair.js.map +0 -1
  193. package/dist/orchestration/curator-scheduler.d.ts.map +0 -1
  194. package/dist/orchestration/curator-scheduler.js +0 -136
  195. package/dist/orchestration/curator-scheduler.js.map +0 -1
  196. package/dist/orchestration/embedded-failover-policy.d.ts.map +0 -1
  197. package/dist/orchestration/embedded-failover-policy.js +0 -169
  198. package/dist/orchestration/embedded-failover-policy.js.map +0 -1
  199. package/dist/orchestration/error-classification.d.ts.map +0 -1
  200. package/dist/orchestration/error-classification.js +0 -78
  201. package/dist/orchestration/error-classification.js.map +0 -1
  202. package/dist/orchestration/failover-classification.d.ts.map +0 -1
  203. package/dist/orchestration/failover-classification.js +0 -382
  204. package/dist/orchestration/failover-classification.js.map +0 -1
  205. package/dist/orchestration/failover-error.d.ts.map +0 -1
  206. package/dist/orchestration/failover-error.js +0 -199
  207. package/dist/orchestration/failover-error.js.map +0 -1
  208. package/dist/orchestration/fork-subagent.d.ts.map +0 -1
  209. package/dist/orchestration/fork-subagent.js +0 -99
  210. package/dist/orchestration/fork-subagent.js.map +0 -1
  211. package/dist/orchestration/index.d.ts.map +0 -1
  212. package/dist/orchestration/index.js +0 -268
  213. package/dist/orchestration/index.js.map +0 -1
  214. package/dist/orchestration/memory-flush-policy.d.ts.map +0 -1
  215. package/dist/orchestration/memory-flush-policy.js +0 -86
  216. package/dist/orchestration/memory-flush-policy.js.map +0 -1
  217. package/dist/orchestration/memory-provider.d.ts.map +0 -1
  218. package/dist/orchestration/memory-provider.js +0 -3
  219. package/dist/orchestration/memory-provider.js.map +0 -1
  220. package/dist/orchestration/parallel-tool-calls.d.ts.map +0 -1
  221. package/dist/orchestration/parallel-tool-calls.js +0 -60
  222. package/dist/orchestration/parallel-tool-calls.js.map +0 -1
  223. package/dist/orchestration/prompt-cache-strategy.d.ts.map +0 -1
  224. package/dist/orchestration/prompt-cache-strategy.js +0 -229
  225. package/dist/orchestration/prompt-cache-strategy.js.map +0 -1
  226. package/dist/orchestration/reactive-compact.d.ts.map +0 -1
  227. package/dist/orchestration/reactive-compact.js +0 -79
  228. package/dist/orchestration/reactive-compact.js.map +0 -1
  229. package/dist/orchestration/retry-loop.d.ts.map +0 -1
  230. package/dist/orchestration/retry-loop.js +0 -25
  231. package/dist/orchestration/retry-loop.js.map +0 -1
  232. package/dist/orchestration/skill-candidate.d.ts.map +0 -1
  233. package/dist/orchestration/skill-candidate.js +0 -142
  234. package/dist/orchestration/skill-candidate.js.map +0 -1
  235. package/dist/orchestration/skill-consolidation.d.ts.map +0 -1
  236. package/dist/orchestration/skill-consolidation.js +0 -221
  237. package/dist/orchestration/skill-consolidation.js.map +0 -1
  238. package/dist/orchestration/skill-improvement.d.ts.map +0 -1
  239. package/dist/orchestration/skill-improvement.js +0 -67
  240. package/dist/orchestration/skill-improvement.js.map +0 -1
  241. package/dist/orchestration/skill-similarity.d.ts.map +0 -1
  242. package/dist/orchestration/skill-similarity.js +0 -132
  243. package/dist/orchestration/skill-similarity.js.map +0 -1
  244. package/dist/orchestration/streaming-tool-executor.d.ts.map +0 -1
  245. package/dist/orchestration/streaming-tool-executor.js +0 -97
  246. package/dist/orchestration/streaming-tool-executor.js.map +0 -1
  247. package/dist/orchestration/team-orchestration.d.ts.map +0 -1
  248. package/dist/orchestration/team-orchestration.js +0 -370
  249. package/dist/orchestration/team-orchestration.js.map +0 -1
  250. package/dist/orchestration/team-tool-loop-wiring.d.ts.map +0 -1
  251. package/dist/orchestration/team-tool-loop-wiring.js +0 -148
  252. package/dist/orchestration/team-tool-loop-wiring.js.map +0 -1
  253. package/dist/orchestration/tool-choice-policy.d.ts.map +0 -1
  254. package/dist/orchestration/tool-choice-policy.js +0 -165
  255. package/dist/orchestration/tool-choice-policy.js.map +0 -1
  256. package/dist/orchestration/tool-loop-state.d.ts.map +0 -1
  257. package/dist/orchestration/tool-loop-state.js +0 -134
  258. package/dist/orchestration/tool-loop-state.js.map +0 -1
  259. package/dist/orchestration/tool-schema.d.ts.map +0 -1
  260. package/dist/orchestration/tool-schema.js +0 -298
  261. package/dist/orchestration/tool-schema.js.map +0 -1
  262. package/dist/orchestration/transcript-repair.d.ts.map +0 -1
  263. package/dist/orchestration/transcript-repair.js +0 -427
  264. package/dist/orchestration/transcript-repair.js.map +0 -1
  265. package/dist/orchestration/turn-loop-guard.d.ts.map +0 -1
  266. package/dist/orchestration/turn-loop-guard.js +0 -93
  267. package/dist/orchestration/turn-loop-guard.js.map +0 -1
  268. package/dist/orchestration/web-browser-policy.d.ts.map +0 -1
  269. package/dist/orchestration/web-browser-policy.js +0 -40
  270. package/dist/orchestration/web-browser-policy.js.map +0 -1
  271. package/dist/runtime/context-compression.d.ts.map +0 -1
  272. package/dist/runtime/context-compression.js +0 -275
  273. package/dist/runtime/context-compression.js.map +0 -1
  274. package/dist/runtime/hook-registry.d.ts.map +0 -1
  275. package/dist/runtime/hook-registry.js +0 -54
  276. package/dist/runtime/hook-registry.js.map +0 -1
  277. package/dist/runtime/memory-hooks.d.ts.map +0 -1
  278. package/dist/runtime/memory-hooks.js +0 -66
  279. package/dist/runtime/memory-hooks.js.map +0 -1
  280. package/dist/runtime/tool-eligibility.d.ts.map +0 -1
  281. package/dist/runtime/tool-eligibility.js +0 -112
  282. package/dist/runtime/tool-eligibility.js.map +0 -1
  283. package/dist/skills/index.d.ts.map +0 -1
  284. package/dist/skills/index.js +0 -83
  285. package/dist/skills/index.js.map +0 -1
  286. package/dist/skills/memory-extractor.d.ts.map +0 -1
  287. package/dist/skills/memory-extractor.js +0 -174
  288. package/dist/skills/memory-extractor.js.map +0 -1
  289. package/dist/skills/memory-query-tool.d.ts.map +0 -1
  290. package/dist/skills/memory-query-tool.js +0 -128
  291. package/dist/skills/memory-query-tool.js.map +0 -1
  292. package/dist/skills/memory-store.d.ts.map +0 -1
  293. package/dist/skills/memory-store.js +0 -229
  294. package/dist/skills/memory-store.js.map +0 -1
  295. package/dist/skills/memory-tool.d.ts.map +0 -1
  296. package/dist/skills/memory-tool.js +0 -193
  297. package/dist/skills/memory-tool.js.map +0 -1
  298. package/dist/skills/portable-tool.d.ts.map +0 -1
  299. package/dist/skills/portable-tool.js +0 -15
  300. package/dist/skills/portable-tool.js.map +0 -1
  301. package/dist/skills/qmemory-adapter.d.ts.map +0 -1
  302. package/dist/skills/qmemory-adapter.js +0 -166
  303. package/dist/skills/qmemory-adapter.js.map +0 -1
  304. package/dist/skills/skill-frontmatter.d.ts.map +0 -1
  305. package/dist/skills/skill-frontmatter.js +0 -345
  306. package/dist/skills/skill-frontmatter.js.map +0 -1
  307. package/dist/skills/skill-guard.d.ts.map +0 -1
  308. package/dist/skills/skill-guard.js +0 -230
  309. package/dist/skills/skill-guard.js.map +0 -1
  310. package/dist/skills/skill-loader.d.ts.map +0 -1
  311. package/dist/skills/skill-loader.js +0 -304
  312. package/dist/skills/skill-loader.js.map +0 -1
  313. package/dist/skills/skill-source.d.ts.map +0 -1
  314. package/dist/skills/skill-source.js +0 -127
  315. package/dist/skills/skill-source.js.map +0 -1
  316. package/dist/skills/skill-types.d.ts.map +0 -1
  317. package/dist/skills/skill-types.js +0 -7
  318. package/dist/skills/skill-types.js.map +0 -1
  319. package/dist/skills/think-tool.d.ts.map +0 -1
  320. package/dist/skills/think-tool.js +0 -60
  321. package/dist/skills/think-tool.js.map +0 -1
  322. package/dist/skills/todo-tool.d.ts.map +0 -1
  323. package/dist/skills/todo-tool.js +0 -115
  324. package/dist/skills/todo-tool.js.map +0 -1
  325. package/dist/skills/tools/agent-tool.d.ts.map +0 -1
  326. package/dist/skills/tools/agent-tool.js +0 -143
  327. package/dist/skills/tools/agent-tool.js.map +0 -1
  328. package/dist/skills/tools/apply-patch-tool.d.ts.map +0 -1
  329. package/dist/skills/tools/apply-patch-tool.js +0 -185
  330. package/dist/skills/tools/apply-patch-tool.js.map +0 -1
  331. package/dist/skills/tools/ask-user-tool.d.ts.map +0 -1
  332. package/dist/skills/tools/ask-user-tool.js +0 -122
  333. package/dist/skills/tools/ask-user-tool.js.map +0 -1
  334. package/dist/skills/tools/brief-tool.d.ts.map +0 -1
  335. package/dist/skills/tools/brief-tool.js +0 -96
  336. package/dist/skills/tools/brief-tool.js.map +0 -1
  337. package/dist/skills/tools/browser-tool.d.ts.map +0 -1
  338. package/dist/skills/tools/browser-tool.js +0 -156
  339. package/dist/skills/tools/browser-tool.js.map +0 -1
  340. package/dist/skills/tools/checkpoint-tool.d.ts.map +0 -1
  341. package/dist/skills/tools/checkpoint-tool.js +0 -103
  342. package/dist/skills/tools/checkpoint-tool.js.map +0 -1
  343. package/dist/skills/tools/config-tool.d.ts.map +0 -1
  344. package/dist/skills/tools/config-tool.js +0 -144
  345. package/dist/skills/tools/config-tool.js.map +0 -1
  346. package/dist/skills/tools/cron-tool.d.ts.map +0 -1
  347. package/dist/skills/tools/cron-tool.js +0 -176
  348. package/dist/skills/tools/cron-tool.js.map +0 -1
  349. package/dist/skills/tools/edit-tool.d.ts.map +0 -1
  350. package/dist/skills/tools/edit-tool.js +0 -71
  351. package/dist/skills/tools/edit-tool.js.map +0 -1
  352. package/dist/skills/tools/exec-tool.d.ts.map +0 -1
  353. package/dist/skills/tools/exec-tool.js +0 -134
  354. package/dist/skills/tools/exec-tool.js.map +0 -1
  355. package/dist/skills/tools/image-generate-tool.d.ts.map +0 -1
  356. package/dist/skills/tools/image-generate-tool.js +0 -68
  357. package/dist/skills/tools/image-generate-tool.js.map +0 -1
  358. package/dist/skills/tools/instructions-tool.d.ts.map +0 -1
  359. package/dist/skills/tools/instructions-tool.js +0 -188
  360. package/dist/skills/tools/instructions-tool.js.map +0 -1
  361. package/dist/skills/tools/lsp-tool.d.ts.map +0 -1
  362. package/dist/skills/tools/lsp-tool.js +0 -228
  363. package/dist/skills/tools/lsp-tool.js.map +0 -1
  364. package/dist/skills/tools/mcp-client-types.d.ts.map +0 -1
  365. package/dist/skills/tools/mcp-client-types.js +0 -54
  366. package/dist/skills/tools/mcp-client-types.js.map +0 -1
  367. package/dist/skills/tools/mcp-tool.d.ts.map +0 -1
  368. package/dist/skills/tools/mcp-tool.js +0 -504
  369. package/dist/skills/tools/mcp-tool.js.map +0 -1
  370. package/dist/skills/tools/memory-tool.d.ts.map +0 -1
  371. package/dist/skills/tools/memory-tool.js +0 -89
  372. package/dist/skills/tools/memory-tool.js.map +0 -1
  373. package/dist/skills/tools/monitor-tool.d.ts.map +0 -1
  374. package/dist/skills/tools/monitor-tool.js +0 -132
  375. package/dist/skills/tools/monitor-tool.js.map +0 -1
  376. package/dist/skills/tools/music-generate-tool.d.ts.map +0 -1
  377. package/dist/skills/tools/music-generate-tool.js +0 -63
  378. package/dist/skills/tools/music-generate-tool.js.map +0 -1
  379. package/dist/skills/tools/notify-tool.d.ts.map +0 -1
  380. package/dist/skills/tools/notify-tool.js +0 -63
  381. package/dist/skills/tools/notify-tool.js.map +0 -1
  382. package/dist/skills/tools/patch-tool.d.ts.map +0 -1
  383. package/dist/skills/tools/patch-tool.js +0 -506
  384. package/dist/skills/tools/patch-tool.js.map +0 -1
  385. package/dist/skills/tools/pdf-tool.d.ts.map +0 -1
  386. package/dist/skills/tools/pdf-tool.js +0 -89
  387. package/dist/skills/tools/pdf-tool.js.map +0 -1
  388. package/dist/skills/tools/plan-mode-tool.d.ts.map +0 -1
  389. package/dist/skills/tools/plan-mode-tool.js +0 -123
  390. package/dist/skills/tools/plan-mode-tool.js.map +0 -1
  391. package/dist/skills/tools/read-tool.d.ts.map +0 -1
  392. package/dist/skills/tools/read-tool.js +0 -85
  393. package/dist/skills/tools/read-tool.js.map +0 -1
  394. package/dist/skills/tools/repl-tool.d.ts.map +0 -1
  395. package/dist/skills/tools/repl-tool.js +0 -70
  396. package/dist/skills/tools/repl-tool.js.map +0 -1
  397. package/dist/skills/tools/search-tool.d.ts.map +0 -1
  398. package/dist/skills/tools/search-tool.js +0 -226
  399. package/dist/skills/tools/search-tool.js.map +0 -1
  400. package/dist/skills/tools/send-message-tool.d.ts.map +0 -1
  401. package/dist/skills/tools/send-message-tool.js +0 -77
  402. package/dist/skills/tools/send-message-tool.js.map +0 -1
  403. package/dist/skills/tools/skill-list-tool.d.ts.map +0 -1
  404. package/dist/skills/tools/skill-list-tool.js +0 -55
  405. package/dist/skills/tools/skill-list-tool.js.map +0 -1
  406. package/dist/skills/tools/skill-manage-tool.d.ts.map +0 -1
  407. package/dist/skills/tools/skill-manage-tool.js +0 -154
  408. package/dist/skills/tools/skill-manage-tool.js.map +0 -1
  409. package/dist/skills/tools/skill-view-tool.d.ts.map +0 -1
  410. package/dist/skills/tools/skill-view-tool.js +0 -73
  411. package/dist/skills/tools/skill-view-tool.js.map +0 -1
  412. package/dist/skills/tools/sleep-tool.d.ts.map +0 -1
  413. package/dist/skills/tools/sleep-tool.js +0 -82
  414. package/dist/skills/tools/sleep-tool.js.map +0 -1
  415. package/dist/skills/tools/structured-output-tool.d.ts.map +0 -1
  416. package/dist/skills/tools/structured-output-tool.js +0 -177
  417. package/dist/skills/tools/structured-output-tool.js.map +0 -1
  418. package/dist/skills/tools/task-tool.d.ts.map +0 -1
  419. package/dist/skills/tools/task-tool.js +0 -162
  420. package/dist/skills/tools/task-tool.js.map +0 -1
  421. package/dist/skills/tools/team-tool.d.ts.map +0 -1
  422. package/dist/skills/tools/team-tool.js +0 -106
  423. package/dist/skills/tools/team-tool.js.map +0 -1
  424. package/dist/skills/tools/tool-search-tool.d.ts.map +0 -1
  425. package/dist/skills/tools/tool-search-tool.js +0 -111
  426. package/dist/skills/tools/tool-search-tool.js.map +0 -1
  427. package/dist/skills/tools/tts-tool.d.ts.map +0 -1
  428. package/dist/skills/tools/tts-tool.js +0 -46
  429. package/dist/skills/tools/tts-tool.js.map +0 -1
  430. package/dist/skills/tools/video-edit-tool.d.ts.map +0 -1
  431. package/dist/skills/tools/video-edit-tool.js +0 -75
  432. package/dist/skills/tools/video-edit-tool.js.map +0 -1
  433. package/dist/skills/tools/video-generate-tool.d.ts.map +0 -1
  434. package/dist/skills/tools/video-generate-tool.js +0 -67
  435. package/dist/skills/tools/video-generate-tool.js.map +0 -1
  436. package/dist/skills/tools/video-merge-tool.d.ts.map +0 -1
  437. package/dist/skills/tools/video-merge-tool.js +0 -93
  438. package/dist/skills/tools/video-merge-tool.js.map +0 -1
  439. package/dist/skills/tools/video-upscale-tool.d.ts.map +0 -1
  440. package/dist/skills/tools/video-upscale-tool.js +0 -53
  441. package/dist/skills/tools/video-upscale-tool.js.map +0 -1
  442. package/dist/skills/tools/web-fetch-tool.d.ts.map +0 -1
  443. package/dist/skills/tools/web-fetch-tool.js +0 -93
  444. package/dist/skills/tools/web-fetch-tool.js.map +0 -1
  445. package/dist/skills/tools/web-search-tool.d.ts.map +0 -1
  446. package/dist/skills/tools/web-search-tool.js +0 -87
  447. package/dist/skills/tools/web-search-tool.js.map +0 -1
  448. package/dist/skills/tools/worktree-tool.d.ts.map +0 -1
  449. package/dist/skills/tools/worktree-tool.js +0 -148
  450. package/dist/skills/tools/worktree-tool.js.map +0 -1
  451. package/dist/skills/tools/write-tool.d.ts.map +0 -1
  452. package/dist/skills/tools/write-tool.js +0 -82
  453. package/dist/skills/tools/write-tool.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"send-message-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/send-message-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,8DAA8D;AAC9D,2EAA2E;AAC3E,0DAA0D;AAC1D,mBAAmB;AACnB,+DAA+D;AAI/D,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAuB,CAAC;AAW9D,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,EAAE,EAAE;YACF,IAAI,EAAE,QAAiB;YACvB,WAAW,EACT,8DAA8D;gBAC9D,qDAAqD;SACxD;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAiB;YACvB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AI,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE;aAC/F,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-list-tool.d.ts","sourceRoot":"","sources":["../../../src/skills/tools/skill-list-tool.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAsB,MAAM,qBAAqB,CAAC;AAE5E,eAAO,MAAM,oBAAoB,EAAG,YAAqB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;CASzB,CAAC;AAEX,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,kEAAkE;IAClE,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CACzD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,YAAY,CAAC,mBAAmB,CAAC,CA4C9F"}
@@ -1,55 +0,0 @@
1
- // ============================================================
2
- // Skill List Tool — discover available skills.
3
- // Reference: hermes-agent-2026.4.30/tools/skills_tool.py (skills_list)
4
- // Category: skill
5
- // ============================================================
6
- export const SKILL_LIST_TOOL_NAME = "skill_list";
7
- export const SKILL_LIST_TOOL_SCHEMA = {
8
- type: "object",
9
- properties: {
10
- category: {
11
- type: "string",
12
- description: "Filter skills by category (e.g. 'devops', 'mlops'). Omit to list all.",
13
- },
14
- },
15
- required: [],
16
- };
17
- export function createSkillListTool(deps) {
18
- return {
19
- name: SKILL_LIST_TOOL_NAME,
20
- label: "List Skills",
21
- description: "List all available skills (reusable workflows/knowledge packages). " +
22
- "Returns skill names, descriptions, and categories. " +
23
- "Use skill_view to see full skill content.",
24
- parameters: SKILL_LIST_TOOL_SCHEMA,
25
- execute: async (_toolCallId, params) => {
26
- const output = await deps.listSkills(params.category);
27
- if (output.skills.length === 0) {
28
- const msg = params.category
29
- ? `No skills found in category "${params.category}".`
30
- : "No skills available.";
31
- return {
32
- content: [{ type: "text", text: msg }],
33
- details: { type: "skill_list", count: 0 },
34
- };
35
- }
36
- const lines = [`Available skills (${output.skills.length}):`];
37
- if (output.categories.length > 0) {
38
- lines.push(`Categories: ${output.categories.join(", ")}`);
39
- }
40
- lines.push("");
41
- for (const s of output.skills) {
42
- const cat = s.category ? ` [${s.category}]` : "";
43
- const ver = s.version ? ` (v${s.version})` : "";
44
- lines.push(`- **${s.name}**${ver}${cat}: ${s.description}`);
45
- }
46
- lines.push("");
47
- lines.push("Use skill_view(name) to see full skill content.");
48
- return {
49
- content: [{ type: "text", text: lines.join("\n") }],
50
- details: { type: "skill_list", count: output.skills.length, categories: output.categories },
51
- };
52
- },
53
- };
54
- }
55
- //# sourceMappingURL=skill-list-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-list-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/skill-list-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,+CAA+C;AAC/C,uEAAuE;AACvE,kBAAkB;AAClB,+DAA+D;AAI/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAqB,CAAC;AAM1D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,u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M,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C3B,CAAC;AAEX,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,WAAW,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAEvE;;;OAGG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC5C;AAOD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAAC,qBAAqB,CAAC,CA4CpG"}
@@ -1,154 +0,0 @@
1
- // ============================================================
2
- // Skill Manage Tool — create/edit/delete skills.
3
- // Reference: hermes-agent-2026.4.30/tools/skill_manager_tool.py
4
- // Category: skill
5
- // ============================================================
6
- export const SKILL_MANAGE_TOOL_NAME = "skill_manage";
7
- export const SKILL_MANAGE_TOOL_SCHEMA = {
8
- type: "object",
9
- properties: {
10
- action: {
11
- type: "string",
12
- enum: ["create", "edit", "patch", "delete", "write_file", "remove_file"],
13
- description: "Action to perform: create (new skill), edit (overwrite SKILL.md), " +
14
- "patch (find/replace in SKILL.md), delete (remove skill), " +
15
- "write_file (add/overwrite supporting file), remove_file (delete supporting file).",
16
- },
17
- name: {
18
- type: "string",
19
- description: "Skill name (lowercase, max 64 chars, kebab-case: letters, digits, hyphens).",
20
- },
21
- content: {
22
- type: "string",
23
- description: "Full SKILL.md content (YAML frontmatter + body). Required for create/edit. " +
24
- "Max 100,000 chars. Must include ---\\nname: ...\\ndescription: ...\\n--- header.",
25
- },
26
- category: {
27
- type: "string",
28
- description: "Category/domain (e.g. 'devops', 'mlops'). Used by create to organize skills.",
29
- },
30
- filePath: {
31
- type: "string",
32
- description: "Path within the skill for write_file/remove_file. " +
33
- "Must be in references/, templates/, scripts/, or assets/ subdirectory.",
34
- },
35
- fileContent: {
36
- type: "string",
37
- description: "Content for write_file action. Max 1 MiB.",
38
- },
39
- oldString: {
40
- type: "string",
41
- description: "Text to find for patch action (must match uniquely in SKILL.md).",
42
- },
43
- newString: {
44
- type: "string",
45
- description: "Replacement text for patch action (can be empty to delete).",
46
- },
47
- },
48
- required: ["action", "name"],
49
- };
50
- const NAME_PATTERN = /^[a-z0-9][a-z0-9._-]{0,63}$/;
51
- const MAX_CONTENT_LENGTH = 100_000;
52
- const MAX_FILE_CONTENT_LENGTH = 1_048_576; // 1 MiB
53
- const ALLOWED_FILE_DIRS = ["references/", "templates/", "scripts/", "assets/"];
54
- export function createSkillManageTool(deps) {
55
- return {
56
- name: SKILL_MANAGE_TOOL_NAME,
57
- label: "Manage Skills",
58
- description: "Create, edit, patch, or delete skills. Skills are reusable workflows/knowledge packages " +
59
- "that can be discovered and invoked. Supports managing supporting files (references, templates).",
60
- parameters: SKILL_MANAGE_TOOL_SCHEMA,
61
- execute: async (_toolCallId, params) => {
62
- // Validate name
63
- const nameError = deps.validateName
64
- ? deps.validateName(params.name)
65
- : validateNameBuiltin(params.name);
66
- if (nameError) {
67
- return {
68
- content: [{ type: "text", text: `Error: ${nameError}` }],
69
- details: { type: "skill_manage", error: "invalid_name" },
70
- };
71
- }
72
- // Action-specific validation
73
- const validationError = validateAction(params);
74
- if (validationError) {
75
- return {
76
- content: [{ type: "text", text: `Error: ${validationError}` }],
77
- details: { type: "skill_manage", error: "validation_failed" },
78
- };
79
- }
80
- const result = await deps.manageSkill(params);
81
- return {
82
- content: [{ type: "text", text: result.message }],
83
- details: {
84
- type: "skill_manage",
85
- action: params.action,
86
- name: params.name,
87
- success: result.success,
88
- path: result.path,
89
- },
90
- };
91
- },
92
- };
93
- }
94
- function validateNameBuiltin(name) {
95
- if (!name)
96
- return "name is required.";
97
- if (!NAME_PATTERN.test(name)) {
98
- return "name must be lowercase, start with letter/digit, contain only letters, digits, hyphens, dots, underscores (max 64 chars).";
99
- }
100
- return null;
101
- }
102
- function validateAction(params) {
103
- switch (params.action) {
104
- case "create":
105
- case "edit":
106
- if (!params.content)
107
- return `content is required for ${params.action}.`;
108
- if (params.content.length > MAX_CONTENT_LENGTH) {
109
- return `content exceeds max length (${MAX_CONTENT_LENGTH} chars).`;
110
- }
111
- if (!params.content.includes("---")) {
112
- return "content must include YAML frontmatter (--- delimiters).";
113
- }
114
- break;
115
- case "patch":
116
- if (!params.oldString)
117
- return "oldString is required for patch.";
118
- if (params.newString === undefined)
119
- return "newString is required for patch (can be empty to delete).";
120
- break;
121
- case "write_file":
122
- if (!params.filePath)
123
- return "filePath is required for write_file.";
124
- if (!params.fileContent)
125
- return "fileContent is required for write_file.";
126
- if (params.fileContent.length > MAX_FILE_CONTENT_LENGTH) {
127
- return "fileContent exceeds max length (1 MiB).";
128
- }
129
- if (!ALLOWED_FILE_DIRS.some((d) => params.filePath.startsWith(d))) {
130
- return `filePath must be in one of: ${ALLOWED_FILE_DIRS.join(", ")}`;
131
- }
132
- if (params.filePath.includes("..")) {
133
- return "filePath must not contain path traversal (..).";
134
- }
135
- break;
136
- case "remove_file":
137
- if (!params.filePath)
138
- return "filePath is required for remove_file.";
139
- if (!ALLOWED_FILE_DIRS.some((d) => params.filePath.startsWith(d))) {
140
- return `filePath must be in one of: ${ALLOWED_FILE_DIRS.join(", ")}`;
141
- }
142
- if (params.filePath.includes("..")) {
143
- return "filePath must not contain path traversal (..).";
144
- }
145
- break;
146
- case "delete":
147
- // No extra validation needed
148
- break;
149
- default:
150
- return `unknown action: ${params.action}`;
151
- }
152
- return null;
153
- }
154
- //# sourceMappingURL=skill-manage-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-manage-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/skill-manage-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,iDAAiD;AACjD,gEAAgE;AAChE,kBAAkB;AAClB,+DAA+D;AAI/D,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAuB,CAAC;AAe9D,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAE,QAAiB;YACvB,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,CAAC;YACxE,WAAW,EACT,oEAAoE;gBACpE,2DAA2D;gBAC3D,mFAAmF;SACtF;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,6EAA6E;SAC3F;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAiB;YACvB,WAAW,EACT,6EAA6E;gBAC7E,kFAAkF;SACrF;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,8EAA8E;SAC5F;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,QAAiB;YACvB,WAAW,EACT,oDAAoD;gBACpD,wEAAwE;SAC3E;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,2CAA2C;SACzD;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,kEAAkE;SAChF;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,6DAA6D;SAC3E;KACF;IACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAU;CAC7B,CAAC;AAyBX,MAAM,YAAY,GAAG,6BAA6B,CAAC;AACnD,MAAM,kBAAkB,GAAG,OAAO,CAAC;AACnC,MAAM,uBAAuB,GAAG,SAAS,CAAC,CAAC,QA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AAoB,EAAG,YAAqB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAezB,CAAC;AAEX,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;CAC7E;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAuD9F"}
@@ -1,73 +0,0 @@
1
- // ============================================================
2
- // Skill View Tool — view full skill content.
3
- // Reference: hermes-agent-2026.4.30/tools/skills_tool.py (skill_view)
4
- // Category: skill
5
- // ============================================================
6
- export const SKILL_VIEW_TOOL_NAME = "skill_view";
7
- export const SKILL_VIEW_TOOL_SCHEMA = {
8
- type: "object",
9
- properties: {
10
- name: {
11
- type: "string",
12
- description: "Skill name to view (e.g. 'code-review', 'deploy-ecs').",
13
- },
14
- filePath: {
15
- type: "string",
16
- description: "Optional: view a specific file within the skill (e.g. 'references/api.md'). " +
17
- "Omit to view the main SKILL.md.",
18
- },
19
- },
20
- required: ["name"],
21
- };
22
- export function createSkillViewTool(deps) {
23
- return {
24
- name: SKILL_VIEW_TOOL_NAME,
25
- label: "View Skill",
26
- description: "View the full content of a skill (instructions, configuration, reference files). " +
27
- "Use skill_list to discover available skills first.",
28
- parameters: SKILL_VIEW_TOOL_SCHEMA,
29
- execute: async (_toolCallId, params) => {
30
- if (!params.name || params.name.trim().length === 0) {
31
- return {
32
- content: [{ type: "text", text: "Error: skill name is required." }],
33
- details: { type: "skill_view", error: "empty_name" },
34
- };
35
- }
36
- const result = await deps.viewSkill(params.name.trim(), params.filePath);
37
- if (!result) {
38
- return {
39
- content: [{
40
- type: "text",
41
- text: `Skill "${params.name}" not found. Use skill_list to see available skills.`,
42
- }],
43
- details: { type: "skill_view", error: "not_found", name: params.name },
44
- };
45
- }
46
- const lines = [];
47
- if (params.filePath) {
48
- lines.push(`## ${result.name} / ${params.filePath}`);
49
- }
50
- else {
51
- lines.push(`## Skill: ${result.name}`);
52
- if (result.tags && result.tags.length > 0) {
53
- lines.push(`Tags: ${result.tags.join(", ")}`);
54
- }
55
- if (result.referenceFiles && result.referenceFiles.length > 0) {
56
- lines.push(`Reference files: ${result.referenceFiles.join(", ")}`);
57
- }
58
- }
59
- lines.push("");
60
- lines.push(result.content);
61
- return {
62
- content: [{ type: "text", text: lines.join("\n") }],
63
- details: {
64
- type: "skill_view",
65
- name: result.name,
66
- filePath: params.filePath,
67
- referenceFiles: result.referenceFiles,
68
- },
69
- };
70
- },
71
- };
72
- }
73
- //# sourceMappingURL=skill-view-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-view-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/skill-view-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,6CAA6C;AAC7C,sEAAsE;AACtE,kBAAkB;AAClB,+DAA+D;AAI/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAqB,CAAC;AAO1D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,wDAAwD;SACtE;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,QAAiB;YACvB,WAAW,EACT,8EAA8E;gBAC9E,iCAAiC;SACpC;KACF;IACD,QAAQ,EAAE,CAA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AE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;CAkBpB,CAAC;AAEX,qEAAqE;AACrE,MAAM,WAAW,WAAW;IAC1B,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,WAAW,EAAE,OAAO,CAAC;IACrB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY,CAAC,eAAe,CAAC,CA2DlF"}
@@ -1,82 +0,0 @@
1
- // ============================================================
2
- // Sleep Tool — lightweight wait with tick/interrupt support.
3
- // Reference: claude-code-haha/src/tools/SleepTool/prompt.ts
4
- // Category: autonomous / proactive mode
5
- // ============================================================
6
- export const SLEEP_TOOL_NAME = "sleep";
7
- export const SLEEP_TOOL_SCHEMA = {
8
- type: "object",
9
- properties: {
10
- duration: {
11
- type: "number",
12
- description: "Duration to sleep in seconds (1–3600). Prefer short sleeps (10–60s) to stay responsive.",
13
- minimum: 1,
14
- maximum: 3600,
15
- },
16
- reason: {
17
- type: "string",
18
- description: "Brief reason for sleeping. Examples: \"waiting for build to finish\", " +
19
- "\"nothing to do\", \"user asked to rest\".",
20
- },
21
- },
22
- required: ["duration"],
23
- };
24
- export function createSleepTool(deps) {
25
- return {
26
- name: SLEEP_TOOL_NAME,
27
- label: "Sleep",
28
- shouldDefer: true,
29
- isConcurrencySafe: true,
30
- isReadOnly: true,
31
- searchHint: "wait sleep rest idle tick proactive",
32
- description: [
33
- "Wait for a specified duration. The user can interrupt the sleep at any time.",
34
- "",
35
- "Use this when:",
36
- "• You have nothing useful to do right now",
37
- "• You're waiting for an external process to complete",
38
- "• The user tells you to sleep or rest",
39
- "• You receive a <tick> check-in with no actionable work",
40
- "",
41
- "Prefer this over `exec(sleep ...)` — it doesn't hold a shell process.",
42
- "You can call this concurrently with other tools — it won't interfere with them.",
43
- "",
44
- "Each wake-up costs an API call, but the prompt cache expires after 5 minutes " +
45
- "of inactivity — balance accordingly.",
46
- ].join("\n"),
47
- parameters: SLEEP_TOOL_SCHEMA,
48
- execute: async (_toolCallId, params, signal) => {
49
- const durationSec = Math.max(1, Math.min(3600, Math.round(params.duration)));
50
- const durationMs = durationSec * 1000;
51
- // Create a child AbortController so we can forward the outer signal
52
- const controller = new AbortController();
53
- const onAbort = () => controller.abort();
54
- signal?.addEventListener("abort", onAbort, { once: true });
55
- // Handle pre-aborted signal
56
- if (signal?.aborted)
57
- controller.abort();
58
- try {
59
- const result = await deps.sleep(durationMs, controller.signal);
60
- const lines = [];
61
- if (result.interrupted) {
62
- lines.push(`Sleep interrupted after ${result.sleptSeconds}s.`);
63
- if (result.interruptReason) {
64
- lines.push(`Reason: ${result.interruptReason}`);
65
- }
66
- lines.push("Check for new messages or tasks.");
67
- }
68
- else {
69
- lines.push(`Slept for ${result.sleptSeconds}s. Waking up.`);
70
- }
71
- return {
72
- content: [{ type: "text", text: lines.join("\n") }],
73
- details: { ...result, requestedSeconds: durationSec },
74
- };
75
- }
76
- finally {
77
- signal?.removeEventListener("abort", onAbort);
78
- }
79
- },
80
- };
81
- }
82
- //# sourceMappingURL=sleep-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sleep-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/sleep-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,6DAA6D;AAC7D,4DAA4D;AAC5D,wCAAwC;AACxC,+DAA+D;AAI/D,MAAM,CAAC,MAAM,eAAe,GAAG,OAAgB,CAAC;AAShD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,QAAQ,E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B;;;OAGG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;IAE/D;;;OAGG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,sBAAsB,CAAC;CACrG;AAKD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GACxD,oBAAoB,CAOtB"}
@@ -1,177 +0,0 @@
1
- // ============================================================
2
- // Structured Output Tool — validated JSON schema output for
3
- // non-interactive (SDK/API) sessions.
4
- // Reference: claude-code-haha/src/tools/SyntheticOutputTool/SyntheticOutputTool.ts
5
- // Category: output / structured
6
- // ============================================================
7
- export const STRUCTURED_OUTPUT_TOOL_NAME = "structured_output";
8
- /** Maximum content size for structured output results. */
9
- export const STRUCTURED_OUTPUT_MAX_CHARS = 100_000;
10
- /**
11
- * Base schema — accepts any object.
12
- * When used with createConfiguredStructuredOutputTool, the host overrides
13
- * this with the actual JSON Schema from `response_format.json_schema`.
14
- */
15
- export const STRUCTURED_OUTPUT_TOOL_SCHEMA = {
16
- type: "object",
17
- properties: {
18
- data: {
19
- type: "object",
20
- description: "The structured JSON data to return as this turn's output. " +
21
- "Must conform to the output schema specified for this session.",
22
- additionalProperties: true,
23
- },
24
- },
25
- required: ["data"],
26
- };
27
- /**
28
- * Whether the structured output tool should be enabled for this session.
29
- * CC equivalent: `isSyntheticOutputToolEnabled`.
30
- */
31
- export function isStructuredOutputEnabled(opts) {
32
- return opts.isNonInteractiveSession;
33
- }
34
- /**
35
- * Create the base structured output tool with DI-based validation.
36
- * This is the standard factory for runtime integration.
37
- */
38
- export function createStructuredOutputTool(deps) {
39
- return {
40
- name: STRUCTURED_OUTPUT_TOOL_NAME,
41
- label: "Structured Output",
42
- shouldDefer: false,
43
- isConcurrencySafe: true,
44
- isReadOnly: true,
45
- searchHint: "return the final response as structured JSON",
46
- maxResultSizeChars: STRUCTURED_OUTPUT_MAX_CHARS,
47
- description: [
48
- "Return your final response as structured JSON data.",
49
- "",
50
- "Use this tool ONLY when the session requests structured output (via response_format).",
51
- "You MUST call this tool exactly once at the end of your response to provide the structured output.",
52
- "The data you provide must conform to the output JSON Schema specified for this session.",
53
- "",
54
- "Rules:",
55
- "• Call this exactly once at the end of your turn to deliver results",
56
- "• The data must be a valid JSON object matching the required schema",
57
- "• If validation fails, you'll see the errors — fix your data and try again",
58
- "• This is typically the last tool call in a turn",
59
- ].join("\n"),
60
- parameters: STRUCTURED_OUTPUT_TOOL_SCHEMA,
61
- execute: async (_toolCallId, params) => {
62
- const schema = deps.getOutputSchema();
63
- if (!schema) {
64
- return {
65
- content: [{
66
- type: "text",
67
- text: "Error: No output schema configured for this session. " +
68
- "structured_output is only available when response_format.json_schema is specified.",
69
- }],
70
- details: { valid: false, error: "no_schema" },
71
- };
72
- }
73
- const validation = deps.validateOutput(params.data);
74
- if (!validation.valid) {
75
- const errorLines = (validation.errors ?? []).map((e) => ` • ${e.path || "/"}: ${e.message}`);
76
- return {
77
- content: [{
78
- type: "text",
79
- text: [
80
- "Output does not match required schema:",
81
- ...errorLines,
82
- ].join("\n"),
83
- }],
84
- details: { valid: false, errors: validation.errors },
85
- };
86
- }
87
- // Validation passed — deliver the output
88
- await deps.deliverOutput(params.data);
89
- return {
90
- content: [{ type: "text", text: "Structured output provided successfully." }],
91
- details: { valid: true, structured_output: params.data },
92
- };
93
- },
94
- };
95
- }
96
- /** WeakMap cache for compiled schema tools (mirrors CC's toolCache). */
97
- const configuredToolCache = new WeakMap();
98
- /**
99
- * Create a StructuredOutputTool configured with a specific JSON Schema.
100
- * Mirrors CC's `createSyntheticOutputTool(jsonSchema)`.
101
- *
102
- * Features:
103
- * - Validates the schema itself at creation time
104
- * - Compiles the validator for reuse (cached via WeakMap)
105
- * - Overrides the tool's `parameters` with the provided schema (dynamic input)
106
- * - Returns { tool } on success or { error } if schema is invalid
107
- *
108
- * @param jsonSchema The JSON Schema to validate output against.
109
- * @param compiler Schema compiler/validator provided by the host.
110
- * @param deliver Output delivery function (called after successful validation).
111
- */
112
- export function createConfiguredStructuredOutputTool(jsonSchema, compiler, deliver) {
113
- const cached = configuredToolCache.get(jsonSchema);
114
- if (cached)
115
- return cached;
116
- const result = buildConfiguredTool(jsonSchema, compiler, deliver);
117
- configuredToolCache.set(jsonSchema, result);
118
- return result;
119
- }
120
- function buildConfiguredTool(jsonSchema, compiler, deliver) {
121
- try {
122
- // Step 1: Validate the schema itself
123
- const schemaError = compiler.validateSchema(jsonSchema);
124
- if (schemaError) {
125
- return { error: `Invalid JSON Schema: ${schemaError}` };
126
- }
127
- // Step 2: Compile the validator
128
- const validate = compiler.compile(jsonSchema);
129
- // Step 3: Build the tool with dynamic input schema
130
- const tool = {
131
- name: STRUCTURED_OUTPUT_TOOL_NAME,
132
- label: "Structured Output",
133
- shouldDefer: false,
134
- isConcurrencySafe: true,
135
- isReadOnly: true,
136
- searchHint: "return the final response as structured JSON",
137
- maxResultSizeChars: STRUCTURED_OUTPUT_MAX_CHARS,
138
- description: [
139
- "Use this tool to return your final response in the requested structured format.",
140
- "You MUST call this tool exactly once at the end of your response to provide the structured output.",
141
- ].join(" "),
142
- // Dynamic: override with the actual JSON Schema so LLM gets type guidance
143
- parameters: {
144
- type: "object",
145
- properties: {
146
- data: jsonSchema,
147
- },
148
- required: ["data"],
149
- },
150
- execute: async (_toolCallId, params) => {
151
- const validation = validate(params.data);
152
- if (!validation.valid) {
153
- const errors = (validation.errors ?? [])
154
- .map((e) => `${e.path || "root"}: ${e.message}`)
155
- .join(", ");
156
- return {
157
- content: [{
158
- type: "text",
159
- text: `Output does not match required schema: ${errors}`,
160
- }],
161
- details: { valid: false, errors: validation.errors },
162
- };
163
- }
164
- await deliver(params.data);
165
- return {
166
- content: [{ type: "text", text: "Structured output provided successfully." }],
167
- details: { valid: true, structured_output: params.data },
168
- };
169
- },
170
- };
171
- return { tool };
172
- }
173
- catch (e) {
174
- return { error: e instanceof Error ? e.message : String(e) };
175
- }
176
- }
177
- //# sourceMappingURL=structured-output-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"structured-output-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/structured-output-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,4DAA4D;AAC5D,sCAAsC;AACtC,mFAAmF;AACnF,gCAAgC;AAChC,+DAA+D;AAI/D,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAA4B,CAAC;AAExE,0DAA0D;AAC1D,MAAM,CAAC,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAOnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAiB;YACvB,WAAW,EACT,4DAA4D;gBAC5D,+DAA+D;YACjE,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,QAAQ,EAAE,CAAC,MAAM,CAAU;CACnB,CAAC;AAeX;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAEzC;IACC,OAAO,IAAI,CAAC,uBAAuB,CAAC;AACtC,CAAC;AAiCD;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CACxC,IAA8B;IAE9B,OAAO;QACL,IAAI,EAAE,2BAA2B;QACjC,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,KAAK;QAClB,iBAAiB,EAAE,IAAI;QACvB,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,8CAA8C;QAC1D,kBAAkB,EAAE,2BAA2B;QA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