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,96 +0,0 @@
1
- // ============================================================
2
- // Brief Tool — "SendUserMessage" equivalent from Claude Code.
3
- //
4
- // In brief/chat mode, agent output is not directly visible to
5
- // the user. Only messages sent through this tool are displayed.
6
- // This enables clean separation of internal reasoning vs
7
- // user-facing communication.
8
- //
9
- // Reference: claude-code-haha/src/tools/BriefTool/BriefTool.ts
10
- // Category: interaction
11
- // ============================================================
12
- export const BRIEF_TOOL_NAME = "send_user_message";
13
- export const BRIEF_TOOL_SCHEMA = {
14
- type: "object",
15
- properties: {
16
- message: {
17
- type: "string",
18
- description: "The message to send to the user. Supports Markdown formatting. " +
19
- "This is the ONLY way to communicate with the user in brief/chat mode.",
20
- minLength: 1,
21
- },
22
- attachments: {
23
- type: "array",
24
- description: "Optional file paths to attach (images, documents, etc.).",
25
- items: { type: "string" },
26
- maxItems: 10,
27
- },
28
- status: {
29
- type: "string",
30
- enum: ["normal", "proactive"],
31
- description: "Message status. Use 'proactive' when providing unsolicited information " +
32
- "(e.g., monitoring alerts, task completion notifications).",
33
- },
34
- },
35
- required: ["message"],
36
- };
37
- export function createBriefTool(deps) {
38
- return {
39
- name: BRIEF_TOOL_NAME,
40
- label: "Send User Message",
41
- description: "Send a message to the user. In brief/chat mode this is the ONLY way " +
42
- "your messages are visible. Supports Markdown and file attachments. " +
43
- "Use 'proactive' status for unsolicited updates (monitoring alerts, " +
44
- "task completions). Keep messages concise and useful.",
45
- parameters: BRIEF_TOOL_SCHEMA,
46
- isConcurrencySafe: true,
47
- isReadOnly: true,
48
- searchHint: "send message user brief chat communicate display output",
49
- execute: async (_toolCallId, params) => {
50
- if (!params.message || params.message.trim().length === 0) {
51
- return {
52
- content: [{ type: "text", text: "Error: message cannot be empty." }],
53
- details: { type: "brief", error: "empty_message" },
54
- };
55
- }
56
- // Resolve attachments if provided
57
- let resolvedAttachments;
58
- if (params.attachments && params.attachments.length > 0) {
59
- if (deps.resolveAttachments) {
60
- const resolved = await deps.resolveAttachments(params.attachments);
61
- if ("error" in resolved) {
62
- return {
63
- content: [{ type: "text", text: `Attachment error: ${resolved.error}` }],
64
- details: { type: "brief", error: "attachment_resolution_failed" },
65
- };
66
- }
67
- resolvedAttachments = resolved;
68
- }
69
- }
70
- const status = params.status || "normal";
71
- const result = await deps.deliverMessage({
72
- message: params.message.trim(),
73
- attachments: params.attachments,
74
- status,
75
- });
76
- if (!result.delivered) {
77
- return {
78
- content: [{ type: "text", text: `Message delivery failed: ${result.error || "unknown error"}` }],
79
- details: { type: "brief", delivered: false, error: result.error },
80
- };
81
- }
82
- // Minimal confirmation — avoids re-echoing message in context (saves tokens)
83
- return {
84
- content: [{ type: "text", text: "Message delivered to user." }],
85
- details: {
86
- type: "brief",
87
- delivered: true,
88
- status,
89
- hasAttachments: (resolvedAttachments?.length ?? 0) > 0,
90
- sentAt: result.sentAt,
91
- },
92
- };
93
- },
94
- };
95
- }
96
- //# sourceMappingURL=brief-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"brief-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/brief-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,8DAA8D;AAC9D,EAAE;AACF,8DAA8D;AAC9D,gEAAgE;AAChE,yDAAyD;AACzD,6BAA6B;AAC7B,EAAE;AACF,+DAA+D;AAC/D,wBAAwB;AACxB,+DAA+D;AAI/D,MAAM,CAAC,MAAM,eAAe,GAAG,mBAA4B,CAAC;AAwB5D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,OAAO,EAAE;YACP,IAAI,EAAE,QAAiB;YACvB,WAAW,EACT,iEAAiE;gBACjE,uEAAuE;YACzE,SAAS,EAAE,CAAC;SACb;QACD,WAAW,EAAE;YACX,IAAI,EAAE,OAAgB;YACtB,WAAW,EAAE,0DAA0D;YACvE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE;YAClC,QAAQ,EAAE,EAAE;SACb;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAiB;YACvB,IAAI,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;YAC7B,WAAW,EACT,yEAAyE;gBACzE,2DAA2D;SAC9D;KACF;IACD,QAAQ,EAAE,CAAC,SAAS,CAAU;CACtB,CAAC;AAgCX,MAAM,UAAU,eAAe,CAAC,IAAmB;IACjD,OAAO;QACL,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EACT,sEAAsE;YACtE,qEAAqE;YACrE,qEAAqE;YACrE,sDAAsD;QACxD,UAAU,EAAE,iBAAiB;QAC7B,iBAAiB,EAAE,IAAI;QACvB,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,yDAAyD;QAErE,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A;KAAE,CAAC,CAAC;IAC/E,MAAM,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACnF,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IACnD,UAAU,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACzC,WAAW,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IACvG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAExF,6FAA6F;IAC7F,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACzC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAuGxF"}
@@ -1,156 +0,0 @@
1
- // ============================================================
2
- // Browser Tool — CDP-based browser automation.
3
- // Reference: hermes-agent-main/tools/browser_tool.py
4
- // hermes-agent-main/tools/browser_cdp_tool.py
5
- // Category: web
6
- // ============================================================
7
- export const BROWSER_TOOL_NAME = "browser";
8
- export const BROWSER_TOOL_SCHEMA = {
9
- type: "object",
10
- properties: {
11
- action: {
12
- type: "string",
13
- enum: ["navigate", "click", "type", "scroll", "snapshot", "screenshot", "console", "cdp"],
14
- description: "Browser action: navigate (go to URL), click (element by ref), type (text into element), " +
15
- "scroll (direction), snapshot (accessibility tree), screenshot (visual capture), " +
16
- "console (eval JS / read logs), cdp (raw CDP command).",
17
- },
18
- url: {
19
- type: "string",
20
- description: "URL to navigate to. Required for 'navigate' action.",
21
- },
22
- ref: {
23
- type: "string",
24
- description: 'Element reference like "@e5" from a previous snapshot. Required for click/type.',
25
- },
26
- text: {
27
- type: "string",
28
- description: "Text to type into the referenced element. Required for 'type' action.",
29
- },
30
- direction: {
31
- type: "string",
32
- enum: ["up", "down", "left", "right"],
33
- description: "Scroll direction. Required for 'scroll' action.",
34
- },
35
- method: {
36
- type: "string",
37
- description: "CDP method name (e.g. 'Page.reload'). Required for 'cdp' action.",
38
- },
39
- params: {
40
- type: "object",
41
- description: "Parameters for the CDP method. Optional for 'cdp' action.",
42
- },
43
- expression: {
44
- type: "string",
45
- description: "JavaScript expression to evaluate. Used with 'console' action.",
46
- },
47
- full: {
48
- type: "boolean",
49
- description: "Include full accessibility tree (default: compact). Used with 'snapshot'.",
50
- },
51
- },
52
- required: ["action"],
53
- };
54
- export function createBrowserTool(deps) {
55
- return {
56
- name: BROWSER_TOOL_NAME,
57
- label: "Browser",
58
- description: "Control a headless browser via Chrome DevTools Protocol. " +
59
- "Actions: navigate (URL), click/type (element refs from snapshot), " +
60
- "scroll, snapshot (accessibility tree), screenshot (visual), " +
61
- "console (JS eval/logs), cdp (raw CDP commands). " +
62
- "Use snapshot to get element refs before click/type.",
63
- parameters: BROWSER_TOOL_SCHEMA,
64
- execute: async (_toolCallId, params) => {
65
- switch (params.action) {
66
- case "navigate": {
67
- if (!params.url) {
68
- return { content: [{ type: "text", text: "Error: url is required for navigate action." }], details: { type: "browser", error: "missing_url" } };
69
- }
70
- const blocked = deps.validateUrl(params.url);
71
- if (blocked) {
72
- return { content: [{ type: "text", text: `Blocked: ${blocked}` }], details: { type: "browser", error: "url_blocked" } };
73
- }
74
- const nav = await deps.navigate(params.url);
75
- const lines = [`Navigated to: ${nav.snapshot.url}`, `Title: ${nav.snapshot.title}`, "", `Elements: ${nav.snapshot.elements.length}`];
76
- if (nav.snapshot.elements.length <= 30) {
77
- for (const e of nav.snapshot.elements) {
78
- lines.push(` ${e.ref} [${e.role}] ${e.name}${e.text ? `: "${e.text}"` : ""}`);
79
- }
80
- }
81
- else {
82
- lines.push("(use snapshot action for full element list)");
83
- }
84
- return { content: [{ type: "text", text: lines.join("\n") }], details: { type: "browser", action: "navigate", url: params.url } };
85
- }
86
- case "click": {
87
- if (!params.ref) {
88
- return { content: [{ type: "text", text: "Error: ref is required for click (e.g. '@e5')." }], details: { type: "browser", error: "missing_ref" } };
89
- }
90
- const click = await deps.click(params.ref);
91
- if (!click.success) {
92
- return { content: [{ type: "text", text: `Click failed: ${click.error || "unknown"}` }], details: { type: "browser", error: "click_failed" } };
93
- }
94
- return { content: [{ type: "text", text: `Clicked ${params.ref}` }], details: { type: "browser", action: "click", ref: params.ref } };
95
- }
96
- case "type": {
97
- if (!params.ref || !params.text) {
98
- return { content: [{ type: "text", text: "Error: ref and text are required for type action." }], details: { type: "browser", error: "missing_params" } };
99
- }
100
- const typed = await deps.type(params.ref, params.text);
101
- if (!typed.success) {
102
- return { content: [{ type: "text", text: `Type failed: ${typed.error || "unknown"}` }], details: { type: "browser", error: "type_failed" } };
103
- }
104
- return { content: [{ type: "text", text: `Typed "${params.text}" into ${params.ref}` }], details: { type: "browser", action: "type", ref: params.ref } };
105
- }
106
- case "scroll": {
107
- if (!params.direction) {
108
- return { content: [{ type: "text", text: "Error: direction is required for scroll." }], details: { type: "browser", error: "missing_direction" } };
109
- }
110
- await deps.scroll(params.direction);
111
- return { content: [{ type: "text", text: `Scrolled ${params.direction}` }], details: { type: "browser", action: "scroll", direction: params.direction } };
112
- }
113
- case "snapshot": {
114
- const snap = await deps.snapshot(params.full);
115
- const lines = [`URL: ${snap.url}`, `Title: ${snap.title}`, "", `Accessibility tree (${snap.elements.length} elements):`, ""];
116
- for (const e of snap.elements) {
117
- lines.push(`${e.ref} [${e.role}] ${e.name}${e.text ? ` — "${e.text}"` : ""}`);
118
- }
119
- return { content: [{ type: "text", text: lines.join("\n") }], details: { type: "browser", action: "snapshot", elementCount: snap.elements.length } };
120
- }
121
- case "screenshot": {
122
- const shot = await deps.screenshot();
123
- return {
124
- content: [{ type: "image", data: shot.base64, mimeType: shot.mimeType }],
125
- details: { type: "browser", action: "screenshot", width: shot.width, height: shot.height },
126
- };
127
- }
128
- case "console": {
129
- const c = await deps.consoleEval(params.expression);
130
- const lines = [];
131
- if (c.result !== undefined)
132
- lines.push(`Result: ${c.result}`);
133
- if (c.messages?.length) {
134
- lines.push("Console messages:");
135
- c.messages.forEach((m) => lines.push(` ${m}`));
136
- }
137
- if (c.errors?.length) {
138
- lines.push("JS errors:");
139
- c.errors.forEach((e) => lines.push(` ${e}`));
140
- }
141
- return { content: [{ type: "text", text: lines.join("\n") || "(no output)" }], details: { type: "browser", action: "console" } };
142
- }
143
- case "cdp": {
144
- if (!params.method) {
145
- return { content: [{ type: "text", text: "Error: method is required for cdp action." }], details: { type: "browser", error: "missing_method" } };
146
- }
147
- const result = await deps.cdp(params.method, params.params);
148
- return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], details: { type: "browser", action: "cdp", method: params.method } };
149
- }
150
- default:
151
- return { content: [{ type: "text", text: `Error: unknown action "${params.action}".` }], details: { type: "browser", error: "unknown_action" } };
152
- }
153
- },
154
- };
155
- }
156
- //# sourceMappingURL=browser-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/browser-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,+CAA+C;AAC/C,qDAAqD;AACrD,yDAAyD;AACzD,gBAAgB;AAChB,+DAA+D;AAI/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAkB,CAAC;AAiCpD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAE,QAAiB;YACvB,IAAI,EAAE,CAAC,UAAU,EAAE,O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AO,CAAC,gBAAgB,CAAC,CAAC;IACrF,uDAAuD;IACvD,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACjE;AAID,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,kBAAkB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CA2EjG"}
@@ -1,103 +0,0 @@
1
- // ============================================================
2
- // Checkpoint Manager — transparent file history snapshots.
3
- // Reference: hermes-agent-main/tools/checkpoint_manager.py
4
- // Category: infrastructure (LLM does NOT directly invoke)
5
- // ============================================================
6
- export const CHECKPOINT_TOOL_NAME = "checkpoint";
7
- export const CHECKPOINT_TOOL_SCHEMA = {
8
- type: "object",
9
- properties: {
10
- action: {
11
- type: "string",
12
- enum: ["create", "list", "restore", "diff"],
13
- description: "Action: create (snapshot current state), list (show checkpoints), " +
14
- "restore (revert to checkpoint), diff (show changes since checkpoint).",
15
- },
16
- checkpointId: {
17
- type: "string",
18
- description: "Checkpoint ID. Required for restore and diff.",
19
- },
20
- message: {
21
- type: "string",
22
- description: "Optional descriptive message for the checkpoint.",
23
- },
24
- paths: {
25
- type: "array",
26
- items: { type: "string" },
27
- description: "File paths to restore (partial restore). Omit to restore everything.",
28
- },
29
- },
30
- required: ["action"],
31
- };
32
- const COMMIT_HASH_PATTERN = /^[0-9a-fA-F]{4,64}$/;
33
- export function createCheckpointTool(deps) {
34
- return {
35
- name: CHECKPOINT_TOOL_NAME,
36
- label: "Checkpoint",
37
- description: "Manage workspace checkpoints (shadow snapshots independent of user's git). " +
38
- "Create snapshots before risky operations, list history, restore on errors, " +
39
- "or diff to see what changed. Checkpoints do NOT affect user's .git.",
40
- parameters: CHECKPOINT_TOOL_SCHEMA,
41
- execute: async (_toolCallId, params) => {
42
- switch (params.action) {
43
- case "create": {
44
- const r = await deps.createCheckpoint(params.message);
45
- if (!r.success) {
46
- return { content: [{ type: "text", text: `Error: ${r.error}` }], details: { type: "checkpoint", error: r.error } };
47
- }
48
- return {
49
- content: [{ type: "text", text: `Checkpoint created: ${r.checkpoint.id}\nMessage: ${r.checkpoint.message}\nFiles: ${r.checkpoint.fileCount}` }],
50
- details: { type: "checkpoint", action: "create", checkpointId: r.checkpoint.id },
51
- };
52
- }
53
- case "list": {
54
- const r = await deps.listCheckpoints();
55
- if (!r.checkpoints || r.checkpoints.length === 0) {
56
- return { content: [{ type: "text", text: "No checkpoints available." }], details: { type: "checkpoint", action: "list", count: 0 } };
57
- }
58
- const lines = [`Checkpoints (${r.checkpoints.length}):`, ""];
59
- for (const cp of r.checkpoints) {
60
- lines.push(`- ${cp.id.slice(0, 8)} [${cp.timestamp}] ${cp.message} (${cp.fileCount} files)`);
61
- }
62
- return { content: [{ type: "text", text: lines.join("\n") }], details: { type: "checkpoint", action: "list", count: r.checkpoints.length } };
63
- }
64
- case "restore": {
65
- if (!params.checkpointId) {
66
- return { content: [{ type: "text", text: "Error: checkpointId required for restore." }], details: { type: "checkpoint", error: "missing_id" } };
67
- }
68
- if (!COMMIT_HASH_PATTERN.test(params.checkpointId)) {
69
- return { content: [{ type: "text", text: "Error: invalid checkpoint ID format." }], details: { type: "checkpoint", error: "invalid_id" } };
70
- }
71
- const r = await deps.restoreCheckpoint(params.checkpointId, params.paths);
72
- if (!r.success) {
73
- return { content: [{ type: "text", text: `Error: ${r.error}` }], details: { type: "checkpoint", error: r.error } };
74
- }
75
- const scope = params.paths ? `(${params.paths.length} files)` : "(full workspace)";
76
- return {
77
- content: [{ type: "text", text: `Restored to checkpoint ${params.checkpointId.slice(0, 8)} ${scope}` }],
78
- details: { type: "checkpoint", action: "restore", checkpointId: params.checkpointId },
79
- };
80
- }
81
- case "diff": {
82
- if (!params.checkpointId) {
83
- return { content: [{ type: "text", text: "Error: checkpointId required for diff." }], details: { type: "checkpoint", error: "missing_id" } };
84
- }
85
- if (!COMMIT_HASH_PATTERN.test(params.checkpointId)) {
86
- return { content: [{ type: "text", text: "Error: invalid checkpoint ID format." }], details: { type: "checkpoint", error: "invalid_id" } };
87
- }
88
- const r = await deps.diffCheckpoint(params.checkpointId);
89
- if (!r.success) {
90
- return { content: [{ type: "text", text: `Error: ${r.error}` }], details: { type: "checkpoint", error: r.error } };
91
- }
92
- return {
93
- content: [{ type: "text", text: r.diff || "(no changes since checkpoint)" }],
94
- details: { type: "checkpoint", action: "diff", checkpointId: params.checkpointId },
95
- };
96
- }
97
- default:
98
- return { content: [{ type: "text", text: `Error: unknown action "${params.action}".` }], details: { type: "checkpoint", error: "unknown_action" } };
99
- }
100
- },
101
- };
102
- }
103
- //# sourceMappingURL=checkpoint-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkpoint-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/checkpoint-tool.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,2DAA2D;AAC3D,2DAA2D;AAC3D,0DAA0D;AAC1D,+DAA+D;AAI/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAqB,CAAC;AAc1D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAE,QAAiB;YACvB,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC;YAC3C,WAAW,EACT,oEAAoE;gBACpE,uEAAuE;SAC1E;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,+CAA+C;SAC7D;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAiB;YACvB,WAAW,EAAE,kDAAkD;SAChE;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAgB;YACtB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE;YAClC,WAAW,EAAE,sEAAsE;SACpF;KACF;IACD,QAAQ,EAAE,CAAC,QAAQ,CAAU;CACrB,CAAC;AAgCX,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAElD,MAAM,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,CAAC,CAAC;IAC9C,uDAAuD;IACvD,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC9D,yCAAyC;IACzC,UAAU,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IACpC,iCAAiC;IACjC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAChD,wCAAwC;IACxC,UAAU,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACnC;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,YAAY,CAAC,gBAAgB,CAAC,CA8GrF"}
@@ -1,144 +0,0 @@
1
- // ============================================================
2
- // Config Tool — agent configuration management (read/write preferences).
3
- // Reference: claude-code-haha/src/tools/ConfigTool/ConfigTool.ts
4
- // Category: system
5
- // ============================================================
6
- export const CONFIG_TOOL_NAME = "config";
7
- export const CONFIG_TOOL_SCHEMA = {
8
- type: "object",
9
- properties: {
10
- action: {
11
- type: "string",
12
- enum: ["get", "set", "list", "reset"],
13
- description: "Action:\n" +
14
- "- get: Read a config setting\n" +
15
- "- set: Write a config setting\n" +
16
- "- list: List all available settings\n" +
17
- "- reset: Reset a setting to default",
18
- },
19
- key: {
20
- type: "string",
21
- description: "Config key path (e.g. 'model', 'language', 'theme', 'permissions.defaultMode'). " +
22
- "Required for get/set/reset.",
23
- },
24
- value: {
25
- description: "Value to set. Type depends on the setting. Required for 'set' action.",
26
- },
27
- },
28
- required: ["action"],
29
- };
30
- /** Keys that cannot be modified by LLM (security-critical) */
31
- export const CONFIG_READONLY_KEYS = [
32
- "permissions.securityPolicy",
33
- "api.key",
34
- "api.secret",
35
- "auth.token",
36
- "system.adminMode",
37
- ];
38
- export function createConfigTool(deps) {
39
- return {
40
- name: CONFIG_TOOL_NAME,
41
- label: "Config",
42
- description: "Read and write agent configuration settings. " +
43
- "Supports preferences like model selection, language, theme, tool enablement, etc. " +
44
- "Security-critical settings (API keys, permissions) are read-only. " +
45
- "Changes persist across sessions.",
46
- parameters: CONFIG_TOOL_SCHEMA,
47
- execute: async (_toolCallId, params) => {
48
- switch (params.action) {
49
- case "get": {
50
- if (!params.key) {
51
- return { content: [{ type: "text", text: "Error: key is required for get." }], details: { type: "config", error: "missing_key" } };
52
- }
53
- if (deps.isValidKey && !deps.isValidKey(params.key)) {
54
- return { content: [{ type: "text", text: `Error: unknown config key "${params.key}". Use action='list' to see available settings.` }], details: { type: "config", error: "unknown_key" } };
55
- }
56
- const result = await deps.getConfig(params.key);
57
- if (!result.success) {
58
- return { content: [{ type: "text", text: `Error: ${result.error}` }], details: { type: "config", error: result.error } };
59
- }
60
- const s = result.setting;
61
- const lines = [
62
- `${s.key} = ${JSON.stringify(s.value)}`,
63
- ` Type: ${s.type}${s.options ? ` (${s.options.join(" | ")})` : ""}`,
64
- ` ${s.description}`,
65
- ];
66
- if (s.readOnly)
67
- lines.push(" ⚠️ Read-only (cannot be changed)");
68
- return {
69
- content: [{ type: "text", text: lines.join("\n") }],
70
- details: { type: "config", action: "get", key: params.key, value: s.value },
71
- };
72
- }
73
- case "set": {
74
- if (!params.key) {
75
- return { content: [{ type: "text", text: "Error: key is required for set." }], details: { type: "config", error: "missing_key" } };
76
- }
77
- if (params.value === undefined) {
78
- return { content: [{ type: "text", text: "Error: value is required for set." }], details: { type: "config", error: "missing_value" } };
79
- }
80
- // Block security-critical keys
81
- if (CONFIG_READONLY_KEYS.includes(params.key)) {
82
- return {
83
- content: [{ type: "text", text: `Error: "${params.key}" is a security-critical setting and cannot be modified.` }],
84
- details: { type: "config", error: "readonly_key" },
85
- };
86
- }
87
- if (deps.isValidKey && !deps.isValidKey(params.key)) {
88
- return { content: [{ type: "text", text: `Error: unknown config key "${params.key}".` }], details: { type: "config", error: "unknown_key" } };
89
- }
90
- const result = await deps.setConfig(params.key, params.value);
91
- if (!result.success) {
92
- return { content: [{ type: "text", text: `Error: ${result.error}` }], details: { type: "config", error: result.error } };
93
- }
94
- return {
95
- content: [{ type: "text", text: `Updated "${params.key}": ${JSON.stringify(result.previousValue)} → ${JSON.stringify(params.value)}` }],
96
- details: { type: "config", action: "set", key: params.key, previousValue: result.previousValue, newValue: params.value },
97
- };
98
- }
99
- case "list": {
100
- const result = await deps.listConfig();
101
- if (!result.settings || result.settings.length === 0) {
102
- return { content: [{ type: "text", text: "No config settings available." }], details: { type: "config", action: "list", count: 0 } };
103
- }
104
- const lines = [`Available settings (${result.settings.length}):`, ""];
105
- for (const s of result.settings) {
106
- const ro = s.readOnly ? " [read-only]" : "";
107
- const val = JSON.stringify(s.value);
108
- lines.push(` ${s.key} = ${val}${ro}`);
109
- lines.push(` ${s.description}`);
110
- }
111
- return {
112
- content: [{ type: "text", text: lines.join("\n") }],
113
- details: { type: "config", action: "list", count: result.settings.length },
114
- };
115
- }
116
- case "reset": {
117
- if (!params.key) {
118
- return { content: [{ type: "text", text: "Error: key is required for reset." }], details: { type: "config", error: "missing_key" } };
119
- }
120
- if (CONFIG_READONLY_KEYS.includes(params.key)) {
121
- return {
122
- content: [{ type: "text", text: `Error: "${params.key}" cannot be reset (security-critical).` }],
123
- details: { type: "config", error: "readonly_key" },
124
- };
125
- }
126
- const result = await deps.resetConfig(params.key);
127
- if (!result.success) {
128
- return { content: [{ type: "text", text: `Error: ${result.error}` }], details: { type: "config", error: result.error } };
129
- }
130
- return {
131
- content: [{ type: "text", text: `Reset "${params.key}" to default: ${JSON.stringify(result.setting?.value)}` }],
132
- details: { type: "config", action: "reset", key: params.key, value: result.setting?.value },
133
- };
134
- }
135
- default:
136
- return {
137
- content: [{ type: "text", text: `Error: unknown action "${params.action}".` }],
138
- details: { type: "config", error: "unknown_action" },
139
- };
140
- }
141
- },
142
- };
143
- }
144
- //# sourceMappingURL=config-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-tool.js","sourceRoot":"","sources":["../../../src/skills/tools/config-tool.ts"],"names":[],"mappings":"A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