@hailer/mcp 1.2.0 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (764) hide show
  1. package/.claude/agents/agent-hailer-helper.md +118 -0
  2. package/.claude/commands/app-squad.md +16 -110
  3. package/.claude/commands/debug-squad.md +13 -290
  4. package/.claude/commands/publish.md +2 -2
  5. package/.claude/commands/review-squad.md +17 -139
  6. package/.claude/skills/create-and-publish-app/SKILL.md +102 -83
  7. package/.claude/skills/hailer-app-builder/SKILL.md +2 -2
  8. package/.claude/skills/hailer-ui-guide/SKILL.md +265 -0
  9. package/.env.example +50 -1
  10. package/CLAUDE.md +136 -10
  11. package/dist/app.d.ts.map +1 -1
  12. package/dist/app.js +3 -0
  13. package/dist/app.js.map +1 -1
  14. package/dist/bot/bot-manager.d.ts +9 -6
  15. package/dist/bot/bot-manager.d.ts.map +1 -1
  16. package/dist/bot/bot-manager.js +142 -31
  17. package/dist/bot/bot-manager.js.map +1 -1
  18. package/dist/bot/bot.d.ts +59 -16
  19. package/dist/bot/bot.d.ts.map +1 -1
  20. package/dist/bot/bot.js +889 -142
  21. package/dist/bot/bot.js.map +1 -1
  22. package/dist/bot/operation-logger.d.ts.map +1 -1
  23. package/dist/bot/operation-logger.js +24 -12
  24. package/dist/bot/operation-logger.js.map +1 -1
  25. package/dist/bot/services/bot-permissions.d.ts +2 -2
  26. package/dist/bot/services/bot-permissions.d.ts.map +1 -1
  27. package/dist/bot/services/bot-permissions.js +28 -9
  28. package/dist/bot/services/bot-permissions.js.map +1 -1
  29. package/dist/bot/services/conversation-manager.d.ts +23 -23
  30. package/dist/bot/services/conversation-manager.d.ts.map +1 -1
  31. package/dist/bot/services/conversation-manager.js +52 -49
  32. package/dist/bot/services/conversation-manager.js.map +1 -1
  33. package/dist/bot/services/helper-prompt.d.ts +8 -0
  34. package/dist/bot/services/helper-prompt.d.ts.map +1 -0
  35. package/dist/bot/services/helper-prompt.js +177 -0
  36. package/dist/bot/services/helper-prompt.js.map +1 -0
  37. package/dist/bot/services/message-classifier.d.ts +16 -16
  38. package/dist/bot/services/message-classifier.d.ts.map +1 -1
  39. package/dist/bot/services/message-classifier.js +55 -49
  40. package/dist/bot/services/message-classifier.js.map +1 -1
  41. package/dist/bot/services/message-formatter.d.ts +38 -38
  42. package/dist/bot/services/message-formatter.d.ts.map +1 -1
  43. package/dist/bot/services/message-formatter.js +81 -74
  44. package/dist/bot/services/message-formatter.js.map +1 -1
  45. package/dist/bot/services/permission-guard.d.ts.map +1 -1
  46. package/dist/bot/services/permission-guard.js +20 -10
  47. package/dist/bot/services/permission-guard.js.map +1 -1
  48. package/dist/bot/services/signal-router.d.ts.map +1 -1
  49. package/dist/bot/services/signal-router.js +11 -6
  50. package/dist/bot/services/signal-router.js.map +1 -1
  51. package/dist/bot/services/system-prompt.d.ts +14 -0
  52. package/dist/bot/services/system-prompt.d.ts.map +1 -1
  53. package/dist/bot/services/system-prompt.js +179 -4
  54. package/dist/bot/services/system-prompt.js.map +1 -1
  55. package/dist/bot/services/token-billing.d.ts +23 -23
  56. package/dist/bot/services/token-billing.d.ts.map +1 -1
  57. package/dist/bot/services/token-billing.js +51 -36
  58. package/dist/bot/services/token-billing.js.map +1 -1
  59. package/dist/bot/services/types.d.ts +3 -1
  60. package/dist/bot/services/types.d.ts.map +1 -1
  61. package/dist/bot/services/typing-indicator.d.ts +8 -8
  62. package/dist/bot/services/typing-indicator.d.ts.map +1 -1
  63. package/dist/bot/services/typing-indicator.js +12 -10
  64. package/dist/bot/services/typing-indicator.js.map +1 -1
  65. package/dist/bot/services/workspace-refresh.d.ts +3 -3
  66. package/dist/bot/services/workspace-refresh.d.ts.map +1 -1
  67. package/dist/bot/services/workspace-refresh.js +23 -13
  68. package/dist/bot/services/workspace-refresh.js.map +1 -1
  69. package/dist/bot/tool-executor.d.ts +10 -6
  70. package/dist/bot/tool-executor.d.ts.map +1 -1
  71. package/dist/bot/tool-executor.js +12 -6
  72. package/dist/bot/tool-executor.js.map +1 -1
  73. package/dist/bot/workspace-overview.d.ts.map +1 -1
  74. package/dist/bot/workspace-overview.js +6 -3
  75. package/dist/bot/workspace-overview.js.map +1 -1
  76. package/dist/bot-config/activity-error.d.ts +47 -0
  77. package/dist/bot-config/activity-error.d.ts.map +1 -0
  78. package/dist/bot-config/activity-error.js +67 -0
  79. package/dist/bot-config/activity-error.js.map +1 -0
  80. package/dist/bot-config/context.d.ts +4 -4
  81. package/dist/bot-config/context.d.ts.map +1 -1
  82. package/dist/bot-config/context.js +18 -14
  83. package/dist/bot-config/context.js.map +1 -1
  84. package/dist/bot-config/events.d.ts +45 -0
  85. package/dist/bot-config/events.d.ts.map +1 -0
  86. package/dist/bot-config/events.js +51 -0
  87. package/dist/bot-config/events.js.map +1 -0
  88. package/dist/bot-config/index.d.ts +3 -0
  89. package/dist/bot-config/index.d.ts.map +1 -1
  90. package/dist/bot-config/index.js +8 -1
  91. package/dist/bot-config/index.js.map +1 -1
  92. package/dist/bot-config/loader.d.ts +3 -0
  93. package/dist/bot-config/loader.d.ts.map +1 -1
  94. package/dist/bot-config/loader.js +45 -20
  95. package/dist/bot-config/loader.js.map +1 -1
  96. package/dist/bot-config/persistence.js.map +1 -1
  97. package/dist/bot-config/reconciler.d.ts +11 -0
  98. package/dist/bot-config/reconciler.d.ts.map +1 -0
  99. package/dist/bot-config/reconciler.js +121 -0
  100. package/dist/bot-config/reconciler.js.map +1 -0
  101. package/dist/bot-config/state.d.ts.map +1 -1
  102. package/dist/bot-config/state.js.map +1 -1
  103. package/dist/bot-config/types.d.ts +32 -0
  104. package/dist/bot-config/types.d.ts.map +1 -1
  105. package/dist/bot-config/webhooks.d.ts.map +1 -1
  106. package/dist/bot-config/webhooks.js.map +1 -1
  107. package/dist/bot-config/workflow-installer.d.ts +37 -0
  108. package/dist/bot-config/workflow-installer.d.ts.map +1 -0
  109. package/dist/bot-config/workflow-installer.js +346 -0
  110. package/dist/bot-config/workflow-installer.js.map +1 -0
  111. package/dist/cli.d.ts.map +1 -1
  112. package/dist/cli.js +12 -0
  113. package/dist/cli.js.map +1 -1
  114. package/dist/config.d.ts +23 -19
  115. package/dist/config.d.ts.map +1 -1
  116. package/dist/config.js +65 -27
  117. package/dist/config.js.map +1 -1
  118. package/dist/core.d.ts +6 -4
  119. package/dist/core.d.ts.map +1 -1
  120. package/dist/core.js +11 -16
  121. package/dist/core.js.map +1 -1
  122. package/dist/lib/logger.d.ts.map +1 -1
  123. package/dist/lib/logger.js +7 -4
  124. package/dist/lib/logger.js.map +1 -1
  125. package/dist/lib/request-logger.d.ts +19 -19
  126. package/dist/lib/request-logger.d.ts.map +1 -1
  127. package/dist/lib/request-logger.js +19 -19
  128. package/dist/lib/request-logger.js.map +1 -1
  129. package/dist/mcp/UserContextCache.d.ts +28 -22
  130. package/dist/mcp/UserContextCache.d.ts.map +1 -1
  131. package/dist/mcp/UserContextCache.js +23 -23
  132. package/dist/mcp/UserContextCache.js.map +1 -1
  133. package/dist/mcp/auth.js.map +1 -1
  134. package/dist/mcp/hailer-clients.d.ts +5 -4
  135. package/dist/mcp/hailer-clients.d.ts.map +1 -1
  136. package/dist/mcp/hailer-clients.js +61 -27
  137. package/dist/mcp/hailer-clients.js.map +1 -1
  138. package/dist/mcp/hailer-rpc.d.ts +40 -0
  139. package/dist/mcp/hailer-rpc.d.ts.map +1 -0
  140. package/dist/mcp/hailer-rpc.js +43 -0
  141. package/dist/mcp/hailer-rpc.js.map +1 -0
  142. package/dist/mcp/session-store.d.ts +16 -16
  143. package/dist/mcp/session-store.d.ts.map +1 -1
  144. package/dist/mcp/session-store.js +16 -16
  145. package/dist/mcp/session-store.js.map +1 -1
  146. package/dist/mcp/tool-profiles.d.ts +69 -0
  147. package/dist/mcp/tool-profiles.d.ts.map +1 -0
  148. package/dist/mcp/tool-profiles.js +176 -0
  149. package/dist/mcp/tool-profiles.js.map +1 -0
  150. package/dist/mcp/tool-registry.d.ts +16 -0
  151. package/dist/mcp/tool-registry.d.ts.map +1 -1
  152. package/dist/mcp/tool-registry.js +91 -39
  153. package/dist/mcp/tool-registry.js.map +1 -1
  154. package/dist/mcp/tools/activity.d.ts.map +1 -1
  155. package/dist/mcp/tools/activity.js +398 -198
  156. package/dist/mcp/tools/activity.js.map +1 -1
  157. package/dist/mcp/tools/aliases.d.ts +11 -0
  158. package/dist/mcp/tools/aliases.d.ts.map +1 -0
  159. package/dist/mcp/tools/aliases.js +176 -0
  160. package/dist/mcp/tools/aliases.js.map +1 -0
  161. package/dist/mcp/tools/app-core.d.ts +6 -8
  162. package/dist/mcp/tools/app-core.d.ts.map +1 -1
  163. package/dist/mcp/tools/app-core.js +355 -254
  164. package/dist/mcp/tools/app-core.js.map +1 -1
  165. package/dist/mcp/tools/app-marketplace.d.ts +8 -16
  166. package/dist/mcp/tools/app-marketplace.d.ts.map +1 -1
  167. package/dist/mcp/tools/app-marketplace.js +604 -930
  168. package/dist/mcp/tools/app-marketplace.js.map +1 -1
  169. package/dist/mcp/tools/app.d.ts +4 -7
  170. package/dist/mcp/tools/app.d.ts.map +1 -1
  171. package/dist/mcp/tools/app.js +4 -7
  172. package/dist/mcp/tools/app.js.map +1 -1
  173. package/dist/mcp/tools/bot-self.d.ts +21 -0
  174. package/dist/mcp/tools/bot-self.d.ts.map +1 -0
  175. package/dist/mcp/tools/bot-self.js +174 -0
  176. package/dist/mcp/tools/bot-self.js.map +1 -0
  177. package/dist/mcp/tools/calendar.d.ts +21 -0
  178. package/dist/mcp/tools/calendar.d.ts.map +1 -0
  179. package/dist/mcp/tools/calendar.js +741 -0
  180. package/dist/mcp/tools/calendar.js.map +1 -0
  181. package/dist/mcp/tools/company.d.ts.map +1 -1
  182. package/dist/mcp/tools/company.js +2 -1
  183. package/dist/mcp/tools/company.js.map +1 -1
  184. package/dist/mcp/tools/date.js.map +1 -1
  185. package/dist/mcp/tools/discussion.d.ts +23 -3
  186. package/dist/mcp/tools/discussion.d.ts.map +1 -1
  187. package/dist/mcp/tools/discussion.js +417 -534
  188. package/dist/mcp/tools/discussion.js.map +1 -1
  189. package/dist/mcp/tools/file.d.ts.map +1 -1
  190. package/dist/mcp/tools/file.js +18 -16
  191. package/dist/mcp/tools/file.js.map +1 -1
  192. package/dist/mcp/tools/index.js +4 -4
  193. package/dist/mcp/tools/index.js.map +1 -1
  194. package/dist/mcp/tools/insight.d.ts +7 -5
  195. package/dist/mcp/tools/insight.d.ts.map +1 -1
  196. package/dist/mcp/tools/insight.js +419 -477
  197. package/dist/mcp/tools/insight.js.map +1 -1
  198. package/dist/mcp/tools/user.d.ts.map +1 -1
  199. package/dist/mcp/tools/user.js +15 -13
  200. package/dist/mcp/tools/user.js.map +1 -1
  201. package/dist/mcp/tools/workflow-permissions.d.ts +2 -4
  202. package/dist/mcp/tools/workflow-permissions.d.ts.map +1 -1
  203. package/dist/mcp/tools/workflow-permissions.js +88 -97
  204. package/dist/mcp/tools/workflow-permissions.js.map +1 -1
  205. package/dist/mcp/tools/workflow.d.ts +2 -7
  206. package/dist/mcp/tools/workflow.d.ts.map +1 -1
  207. package/dist/mcp/tools/workflow.js +817 -850
  208. package/dist/mcp/tools/workflow.js.map +1 -1
  209. package/dist/mcp/utils/api-errors.d.ts.map +1 -1
  210. package/dist/mcp/utils/api-errors.js +2 -2
  211. package/dist/mcp/utils/api-errors.js.map +1 -1
  212. package/dist/mcp/utils/data-transformers.d.ts.map +1 -1
  213. package/dist/mcp/utils/data-transformers.js +8 -4
  214. package/dist/mcp/utils/data-transformers.js.map +1 -1
  215. package/dist/mcp/utils/file-upload.d.ts.map +1 -1
  216. package/dist/mcp/utils/file-upload.js +1 -1
  217. package/dist/mcp/utils/file-upload.js.map +1 -1
  218. package/dist/mcp/utils/hailer-api-client.d.ts +81 -81
  219. package/dist/mcp/utils/hailer-api-client.d.ts.map +1 -1
  220. package/dist/mcp/utils/hailer-api-client.js +103 -101
  221. package/dist/mcp/utils/hailer-api-client.js.map +1 -1
  222. package/dist/mcp/utils/index.d.ts.map +1 -1
  223. package/dist/mcp/utils/index.js.map +1 -1
  224. package/dist/mcp/utils/logger.d.ts.map +1 -1
  225. package/dist/mcp/utils/logger.js.map +1 -1
  226. package/dist/mcp/utils/response-builder.d.ts.map +1 -1
  227. package/dist/mcp/utils/response-builder.js +8 -4
  228. package/dist/mcp/utils/response-builder.js.map +1 -1
  229. package/dist/mcp/utils/role-utils.d.ts.map +1 -1
  230. package/dist/mcp/utils/role-utils.js +6 -3
  231. package/dist/mcp/utils/role-utils.js.map +1 -1
  232. package/dist/mcp/utils/tool-helpers.d.ts.map +1 -1
  233. package/dist/mcp/utils/tool-helpers.js +2 -2
  234. package/dist/mcp/utils/tool-helpers.js.map +1 -1
  235. package/dist/mcp/utils/types.d.ts +1 -1
  236. package/dist/mcp/utils/types.d.ts.map +1 -1
  237. package/dist/mcp/utils/types.js.map +1 -1
  238. package/dist/mcp/webhook-handler.d.ts +43 -8
  239. package/dist/mcp/webhook-handler.d.ts.map +1 -1
  240. package/dist/mcp/webhook-handler.js +861 -116
  241. package/dist/mcp/webhook-handler.js.map +1 -1
  242. package/dist/mcp/workspace-admin-store.d.ts +49 -0
  243. package/dist/mcp/workspace-admin-store.d.ts.map +1 -0
  244. package/dist/mcp/workspace-admin-store.js +168 -0
  245. package/dist/mcp/workspace-admin-store.js.map +1 -0
  246. package/dist/mcp/workspace-cache.d.ts +2 -2
  247. package/dist/mcp/workspace-cache.d.ts.map +1 -1
  248. package/dist/mcp/workspace-cache.js +9 -5
  249. package/dist/mcp/workspace-cache.js.map +1 -1
  250. package/dist/mcp-server.d.ts +26 -11
  251. package/dist/mcp-server.d.ts.map +1 -1
  252. package/dist/mcp-server.js +360 -36
  253. package/dist/mcp-server.js.map +1 -1
  254. package/dist/plugins/vipunen/client.d.ts +41 -41
  255. package/dist/plugins/vipunen/client.d.ts.map +1 -1
  256. package/dist/plugins/vipunen/client.js +53 -48
  257. package/dist/plugins/vipunen/client.js.map +1 -1
  258. package/dist/plugins/vipunen/index.js.map +1 -1
  259. package/dist/plugins/vipunen/tools.d.ts.map +1 -1
  260. package/dist/plugins/vipunen/tools.js +6 -3
  261. package/dist/plugins/vipunen/tools.js.map +1 -1
  262. package/dist/public-chat/graduate.d.ts +29 -0
  263. package/dist/public-chat/graduate.d.ts.map +1 -0
  264. package/dist/public-chat/graduate.js +593 -0
  265. package/dist/public-chat/graduate.js.map +1 -0
  266. package/dist/public-chat/handler.d.ts +12 -0
  267. package/dist/public-chat/handler.d.ts.map +1 -0
  268. package/dist/public-chat/handler.js +179 -0
  269. package/dist/public-chat/handler.js.map +1 -0
  270. package/dist/public-chat/index.d.ts +16 -0
  271. package/dist/public-chat/index.d.ts.map +1 -0
  272. package/dist/public-chat/index.js +74 -0
  273. package/dist/public-chat/index.js.map +1 -0
  274. package/dist/public-chat/knowledge.d.ts +3 -0
  275. package/dist/public-chat/knowledge.d.ts.map +1 -0
  276. package/dist/public-chat/knowledge.js +1339 -0
  277. package/dist/public-chat/knowledge.js.map +1 -0
  278. package/dist/public-chat/rate-limit.d.ts +16 -0
  279. package/dist/public-chat/rate-limit.d.ts.map +1 -0
  280. package/dist/public-chat/rate-limit.js +51 -0
  281. package/dist/public-chat/rate-limit.js.map +1 -0
  282. package/dist/public-chat/session-store.d.ts +41 -0
  283. package/dist/public-chat/session-store.d.ts.map +1 -0
  284. package/dist/public-chat/session-store.js +95 -0
  285. package/dist/public-chat/session-store.js.map +1 -0
  286. package/dist/public-chat/studio-prewarm.d.ts +61 -0
  287. package/dist/public-chat/studio-prewarm.d.ts.map +1 -0
  288. package/dist/public-chat/studio-prewarm.js +162 -0
  289. package/dist/public-chat/studio-prewarm.js.map +1 -0
  290. package/dist/public-chat/system-prompt.d.ts +22 -0
  291. package/dist/public-chat/system-prompt.d.ts.map +1 -0
  292. package/dist/public-chat/system-prompt.js +428 -0
  293. package/dist/public-chat/system-prompt.js.map +1 -0
  294. package/package.json +14 -6
  295. package/scripts/build-public-chat-knowledge.py +101 -0
  296. package/scripts/probe-mcp-pricing.ts +52 -0
  297. package/scripts/smoke-public-chat-live.ts +148 -0
  298. package/scripts/smoke-public-chat.ts +110 -0
  299. package/.claude/CLAUDE.md +0 -126
  300. package/.claude/commands/audit-squad.md +0 -158
  301. package/.claude/commands/cleanup-squad.md +0 -98
  302. package/.claude/commands/config-squad.md +0 -106
  303. package/.claude/commands/crud-squad.md +0 -87
  304. package/.claude/commands/data-squad.md +0 -97
  305. package/.claude/commands/doc-squad.md +0 -65
  306. package/.claude/commands/help.md +0 -29
  307. package/.claude/commands/help:agents.md +0 -182
  308. package/.claude/commands/help:commands.md +0 -78
  309. package/.claude/commands/help:faq.md +0 -79
  310. package/.claude/commands/help:plugins.md +0 -50
  311. package/.claude/commands/help:skills.md +0 -87
  312. package/.claude/commands/help:tools.md +0 -75
  313. package/.claude/commands/hotfix-squad.md +0 -112
  314. package/.claude/commands/integration-squad.md +0 -82
  315. package/.claude/commands/janitor-squad.md +0 -167
  316. package/.claude/commands/onboard-squad.md +0 -130
  317. package/.claude/commands/swarm.md +0 -210
  318. package/.claude/commands/tool-builder.md +0 -39
  319. package/.claude/skills/publish-hailer-app/SKILL.md +0 -280
  320. package/dist/CLAUDE.md +0 -370
  321. package/dist/agents/bot-manager.d.ts +0 -48
  322. package/dist/agents/bot-manager.d.ts.map +0 -1
  323. package/dist/agents/bot-manager.js +0 -254
  324. package/dist/agents/bot-manager.js.map +0 -1
  325. package/dist/agents/bug-fixer/ai.d.ts +0 -80
  326. package/dist/agents/bug-fixer/ai.d.ts.map +0 -1
  327. package/dist/agents/bug-fixer/ai.js +0 -466
  328. package/dist/agents/bug-fixer/ai.js.map +0 -1
  329. package/dist/agents/bug-fixer/bot.d.ts +0 -92
  330. package/dist/agents/bug-fixer/bot.d.ts.map +0 -1
  331. package/dist/agents/bug-fixer/bot.js +0 -687
  332. package/dist/agents/bug-fixer/bot.js.map +0 -1
  333. package/dist/agents/bug-fixer/config.d.ts +0 -21
  334. package/dist/agents/bug-fixer/config.d.ts.map +0 -1
  335. package/dist/agents/bug-fixer/config.js +0 -218
  336. package/dist/agents/bug-fixer/config.js.map +0 -1
  337. package/dist/agents/bug-fixer/files.d.ts +0 -67
  338. package/dist/agents/bug-fixer/files.d.ts.map +0 -1
  339. package/dist/agents/bug-fixer/files.js +0 -386
  340. package/dist/agents/bug-fixer/files.js.map +0 -1
  341. package/dist/agents/bug-fixer/git.d.ts +0 -48
  342. package/dist/agents/bug-fixer/git.d.ts.map +0 -1
  343. package/dist/agents/bug-fixer/git.js +0 -298
  344. package/dist/agents/bug-fixer/git.js.map +0 -1
  345. package/dist/agents/bug-fixer/index.d.ts +0 -103
  346. package/dist/agents/bug-fixer/index.d.ts.map +0 -1
  347. package/dist/agents/bug-fixer/index.js +0 -262
  348. package/dist/agents/bug-fixer/index.js.map +0 -1
  349. package/dist/agents/bug-fixer/lsp.d.ts +0 -113
  350. package/dist/agents/bug-fixer/lsp.d.ts.map +0 -1
  351. package/dist/agents/bug-fixer/lsp.js +0 -485
  352. package/dist/agents/bug-fixer/lsp.js.map +0 -1
  353. package/dist/agents/bug-fixer/monitor.d.ts +0 -123
  354. package/dist/agents/bug-fixer/monitor.d.ts.map +0 -1
  355. package/dist/agents/bug-fixer/monitor.js +0 -629
  356. package/dist/agents/bug-fixer/monitor.js.map +0 -1
  357. package/dist/agents/bug-fixer/prompt.d.ts +0 -5
  358. package/dist/agents/bug-fixer/prompt.d.ts.map +0 -1
  359. package/dist/agents/bug-fixer/prompt.js +0 -94
  360. package/dist/agents/bug-fixer/prompt.js.map +0 -1
  361. package/dist/agents/bug-fixer/registries/pending-classification.d.ts +0 -28
  362. package/dist/agents/bug-fixer/registries/pending-classification.d.ts.map +0 -1
  363. package/dist/agents/bug-fixer/registries/pending-classification.js +0 -50
  364. package/dist/agents/bug-fixer/registries/pending-classification.js.map +0 -1
  365. package/dist/agents/bug-fixer/registries/pending-fix.d.ts +0 -33
  366. package/dist/agents/bug-fixer/registries/pending-fix.d.ts.map +0 -1
  367. package/dist/agents/bug-fixer/registries/pending-fix.js +0 -64
  368. package/dist/agents/bug-fixer/registries/pending-fix.js.map +0 -1
  369. package/dist/agents/bug-fixer/registries/pending.d.ts +0 -27
  370. package/dist/agents/bug-fixer/registries/pending.d.ts.map +0 -1
  371. package/dist/agents/bug-fixer/registries/pending.js +0 -49
  372. package/dist/agents/bug-fixer/registries/pending.js.map +0 -1
  373. package/dist/agents/bug-fixer/specialist-daemon.d.ts +0 -88
  374. package/dist/agents/bug-fixer/specialist-daemon.d.ts.map +0 -1
  375. package/dist/agents/bug-fixer/specialist-daemon.js +0 -431
  376. package/dist/agents/bug-fixer/specialist-daemon.js.map +0 -1
  377. package/dist/agents/bug-fixer/specialist.d.ts +0 -47
  378. package/dist/agents/bug-fixer/specialist.d.ts.map +0 -1
  379. package/dist/agents/bug-fixer/specialist.js +0 -327
  380. package/dist/agents/bug-fixer/specialist.js.map +0 -1
  381. package/dist/agents/bug-fixer/types.d.ts +0 -123
  382. package/dist/agents/bug-fixer/types.d.ts.map +0 -1
  383. package/dist/agents/bug-fixer/types.js +0 -9
  384. package/dist/agents/bug-fixer/types.js.map +0 -1
  385. package/dist/agents/factory.d.ts +0 -172
  386. package/dist/agents/factory.d.ts.map +0 -1
  387. package/dist/agents/factory.js +0 -706
  388. package/dist/agents/factory.js.map +0 -1
  389. package/dist/agents/hailer-expert/index.d.ts +0 -8
  390. package/dist/agents/hailer-expert/index.d.ts.map +0 -1
  391. package/dist/agents/hailer-expert/index.js +0 -14
  392. package/dist/agents/hailer-expert/index.js.map +0 -1
  393. package/dist/agents/hal/daemon.d.ts +0 -174
  394. package/dist/agents/hal/daemon.d.ts.map +0 -1
  395. package/dist/agents/hal/daemon.js +0 -1385
  396. package/dist/agents/hal/daemon.js.map +0 -1
  397. package/dist/agents/hal/definitions.d.ts +0 -42
  398. package/dist/agents/hal/definitions.d.ts.map +0 -1
  399. package/dist/agents/hal/definitions.js +0 -300
  400. package/dist/agents/hal/definitions.js.map +0 -1
  401. package/dist/agents/hal/index.d.ts +0 -3
  402. package/dist/agents/hal/index.d.ts.map +0 -1
  403. package/dist/agents/hal/index.js +0 -8
  404. package/dist/agents/hal/index.js.map +0 -1
  405. package/dist/agents/index.d.ts +0 -18
  406. package/dist/agents/index.d.ts.map +0 -1
  407. package/dist/agents/index.js +0 -48
  408. package/dist/agents/index.js.map +0 -1
  409. package/dist/agents/shared/base.d.ts +0 -253
  410. package/dist/agents/shared/base.d.ts.map +0 -1
  411. package/dist/agents/shared/base.js +0 -1122
  412. package/dist/agents/shared/base.js.map +0 -1
  413. package/dist/agents/shared/schemas/action-schema.d.ts +0 -62
  414. package/dist/agents/shared/schemas/action-schema.d.ts.map +0 -1
  415. package/dist/agents/shared/schemas/action-schema.js +0 -483
  416. package/dist/agents/shared/schemas/action-schema.js.map +0 -1
  417. package/dist/agents/shared/services/agent-registry.d.ts +0 -108
  418. package/dist/agents/shared/services/agent-registry.d.ts.map +0 -1
  419. package/dist/agents/shared/services/agent-registry.js +0 -469
  420. package/dist/agents/shared/services/agent-registry.js.map +0 -1
  421. package/dist/agents/shared/services/conversation-manager.d.ts +0 -57
  422. package/dist/agents/shared/services/conversation-manager.d.ts.map +0 -1
  423. package/dist/agents/shared/services/conversation-manager.js +0 -168
  424. package/dist/agents/shared/services/conversation-manager.js.map +0 -1
  425. package/dist/agents/shared/services/mcp-client.d.ts +0 -56
  426. package/dist/agents/shared/services/mcp-client.d.ts.map +0 -1
  427. package/dist/agents/shared/services/mcp-client.js +0 -124
  428. package/dist/agents/shared/services/mcp-client.js.map +0 -1
  429. package/dist/agents/shared/services/message-classifier.d.ts +0 -37
  430. package/dist/agents/shared/services/message-classifier.d.ts.map +0 -1
  431. package/dist/agents/shared/services/message-classifier.js +0 -203
  432. package/dist/agents/shared/services/message-classifier.js.map +0 -1
  433. package/dist/agents/shared/services/message-formatter.d.ts +0 -89
  434. package/dist/agents/shared/services/message-formatter.d.ts.map +0 -1
  435. package/dist/agents/shared/services/message-formatter.js +0 -390
  436. package/dist/agents/shared/services/message-formatter.js.map +0 -1
  437. package/dist/agents/shared/services/session-logger.d.ts +0 -162
  438. package/dist/agents/shared/services/session-logger.d.ts.map +0 -1
  439. package/dist/agents/shared/services/session-logger.js +0 -724
  440. package/dist/agents/shared/services/session-logger.js.map +0 -1
  441. package/dist/agents/shared/services/structured-output-executor.d.ts +0 -88
  442. package/dist/agents/shared/services/structured-output-executor.d.ts.map +0 -1
  443. package/dist/agents/shared/services/structured-output-executor.js +0 -296
  444. package/dist/agents/shared/services/structured-output-executor.js.map +0 -1
  445. package/dist/agents/shared/services/token-billing.d.ts +0 -72
  446. package/dist/agents/shared/services/token-billing.d.ts.map +0 -1
  447. package/dist/agents/shared/services/token-billing.js +0 -198
  448. package/dist/agents/shared/services/token-billing.js.map +0 -1
  449. package/dist/agents/shared/services/tool-executor.d.ts +0 -43
  450. package/dist/agents/shared/services/tool-executor.d.ts.map +0 -1
  451. package/dist/agents/shared/services/tool-executor.js +0 -175
  452. package/dist/agents/shared/services/tool-executor.js.map +0 -1
  453. package/dist/agents/shared/services/typing-indicator.d.ts +0 -24
  454. package/dist/agents/shared/services/typing-indicator.d.ts.map +0 -1
  455. package/dist/agents/shared/services/typing-indicator.js +0 -54
  456. package/dist/agents/shared/services/typing-indicator.js.map +0 -1
  457. package/dist/agents/shared/services/workspace-schema-cache.d.ts +0 -122
  458. package/dist/agents/shared/services/workspace-schema-cache.d.ts.map +0 -1
  459. package/dist/agents/shared/services/workspace-schema-cache.js +0 -507
  460. package/dist/agents/shared/services/workspace-schema-cache.js.map +0 -1
  461. package/dist/agents/shared/specialist.d.ts +0 -91
  462. package/dist/agents/shared/specialist.d.ts.map +0 -1
  463. package/dist/agents/shared/specialist.js +0 -399
  464. package/dist/agents/shared/specialist.js.map +0 -1
  465. package/dist/agents/shared/tool-schema-loader.d.ts +0 -65
  466. package/dist/agents/shared/tool-schema-loader.d.ts.map +0 -1
  467. package/dist/agents/shared/tool-schema-loader.js +0 -238
  468. package/dist/agents/shared/tool-schema-loader.js.map +0 -1
  469. package/dist/agents/shared/types.d.ts +0 -190
  470. package/dist/agents/shared/types.d.ts.map +0 -1
  471. package/dist/agents/shared/types.js +0 -13
  472. package/dist/agents/shared/types.js.map +0 -1
  473. package/dist/bot/bot-config.d.ts +0 -37
  474. package/dist/bot/bot-config.d.ts.map +0 -1
  475. package/dist/bot/bot-config.js +0 -219
  476. package/dist/bot/bot-config.js.map +0 -1
  477. package/dist/bot/services/__tests__/permission-guard.test.d.ts +0 -2
  478. package/dist/bot/services/__tests__/permission-guard.test.d.ts.map +0 -1
  479. package/dist/bot/services/__tests__/permission-guard.test.js +0 -357
  480. package/dist/bot/services/__tests__/permission-guard.test.js.map +0 -1
  481. package/dist/bot/services/session-logger.d.ts +0 -162
  482. package/dist/bot/services/session-logger.d.ts.map +0 -1
  483. package/dist/bot/services/session-logger.js +0 -724
  484. package/dist/bot/services/session-logger.js.map +0 -1
  485. package/dist/bot/services/workspace-schema-cache.d.ts +0 -122
  486. package/dist/bot/services/workspace-schema-cache.d.ts.map +0 -1
  487. package/dist/bot/services/workspace-schema-cache.js +0 -506
  488. package/dist/bot/services/workspace-schema-cache.js.map +0 -1
  489. package/dist/bot-config/tools.d.ts +0 -28
  490. package/dist/bot-config/tools.d.ts.map +0 -1
  491. package/dist/bot-config/tools.js +0 -279
  492. package/dist/bot-config/tools.js.map +0 -1
  493. package/dist/client/agents/base.d.ts +0 -207
  494. package/dist/client/agents/base.d.ts.map +0 -1
  495. package/dist/client/agents/base.js +0 -744
  496. package/dist/client/agents/base.js.map +0 -1
  497. package/dist/client/agents/definitions.d.ts +0 -53
  498. package/dist/client/agents/definitions.d.ts.map +0 -1
  499. package/dist/client/agents/definitions.js +0 -263
  500. package/dist/client/agents/definitions.js.map +0 -1
  501. package/dist/client/agents/orchestrator.d.ts +0 -141
  502. package/dist/client/agents/orchestrator.d.ts.map +0 -1
  503. package/dist/client/agents/orchestrator.js +0 -1062
  504. package/dist/client/agents/orchestrator.js.map +0 -1
  505. package/dist/client/agents/specialist.d.ts +0 -86
  506. package/dist/client/agents/specialist.d.ts.map +0 -1
  507. package/dist/client/agents/specialist.js +0 -340
  508. package/dist/client/agents/specialist.js.map +0 -1
  509. package/dist/client/bot-entrypoint.d.ts +0 -7
  510. package/dist/client/bot-entrypoint.d.ts.map +0 -1
  511. package/dist/client/bot-entrypoint.js +0 -103
  512. package/dist/client/bot-entrypoint.js.map +0 -1
  513. package/dist/client/bot-manager.d.ts +0 -44
  514. package/dist/client/bot-manager.d.ts.map +0 -1
  515. package/dist/client/bot-manager.js +0 -173
  516. package/dist/client/bot-manager.js.map +0 -1
  517. package/dist/client/bot-runner.d.ts +0 -35
  518. package/dist/client/bot-runner.d.ts.map +0 -1
  519. package/dist/client/bot-runner.js +0 -188
  520. package/dist/client/bot-runner.js.map +0 -1
  521. package/dist/client/chat-agent-daemon.d.ts +0 -464
  522. package/dist/client/chat-agent-daemon.d.ts.map +0 -1
  523. package/dist/client/chat-agent-daemon.js +0 -1774
  524. package/dist/client/chat-agent-daemon.js.map +0 -1
  525. package/dist/client/daemon-factory.d.ts +0 -106
  526. package/dist/client/daemon-factory.d.ts.map +0 -1
  527. package/dist/client/daemon-factory.js +0 -301
  528. package/dist/client/daemon-factory.js.map +0 -1
  529. package/dist/client/factory.d.ts +0 -111
  530. package/dist/client/factory.d.ts.map +0 -1
  531. package/dist/client/factory.js +0 -314
  532. package/dist/client/factory.js.map +0 -1
  533. package/dist/client/index.d.ts +0 -17
  534. package/dist/client/index.d.ts.map +0 -1
  535. package/dist/client/index.js +0 -38
  536. package/dist/client/index.js.map +0 -1
  537. package/dist/client/multi-bot-manager.d.ts +0 -42
  538. package/dist/client/multi-bot-manager.d.ts.map +0 -1
  539. package/dist/client/multi-bot-manager.js +0 -161
  540. package/dist/client/multi-bot-manager.js.map +0 -1
  541. package/dist/client/orchestrator-daemon.d.ts +0 -87
  542. package/dist/client/orchestrator-daemon.d.ts.map +0 -1
  543. package/dist/client/orchestrator-daemon.js +0 -444
  544. package/dist/client/orchestrator-daemon.js.map +0 -1
  545. package/dist/client/server.d.ts +0 -8
  546. package/dist/client/server.d.ts.map +0 -1
  547. package/dist/client/server.js +0 -251
  548. package/dist/client/server.js.map +0 -1
  549. package/dist/client/services/agent-registry.d.ts +0 -108
  550. package/dist/client/services/agent-registry.d.ts.map +0 -1
  551. package/dist/client/services/agent-registry.js +0 -630
  552. package/dist/client/services/agent-registry.js.map +0 -1
  553. package/dist/client/services/conversation-manager.d.ts +0 -50
  554. package/dist/client/services/conversation-manager.d.ts.map +0 -1
  555. package/dist/client/services/conversation-manager.js +0 -136
  556. package/dist/client/services/conversation-manager.js.map +0 -1
  557. package/dist/client/services/mcp-client.d.ts +0 -48
  558. package/dist/client/services/mcp-client.d.ts.map +0 -1
  559. package/dist/client/services/mcp-client.js +0 -105
  560. package/dist/client/services/mcp-client.js.map +0 -1
  561. package/dist/client/services/message-classifier.d.ts +0 -37
  562. package/dist/client/services/message-classifier.d.ts.map +0 -1
  563. package/dist/client/services/message-classifier.js +0 -187
  564. package/dist/client/services/message-classifier.js.map +0 -1
  565. package/dist/client/services/message-formatter.d.ts +0 -84
  566. package/dist/client/services/message-formatter.d.ts.map +0 -1
  567. package/dist/client/services/message-formatter.js +0 -353
  568. package/dist/client/services/message-formatter.js.map +0 -1
  569. package/dist/client/services/session-logger.d.ts +0 -106
  570. package/dist/client/services/session-logger.d.ts.map +0 -1
  571. package/dist/client/services/session-logger.js +0 -446
  572. package/dist/client/services/session-logger.js.map +0 -1
  573. package/dist/client/services/tool-executor.d.ts +0 -41
  574. package/dist/client/services/tool-executor.d.ts.map +0 -1
  575. package/dist/client/services/tool-executor.js +0 -169
  576. package/dist/client/services/tool-executor.js.map +0 -1
  577. package/dist/client/services/workspace-schema-cache.d.ts +0 -149
  578. package/dist/client/services/workspace-schema-cache.d.ts.map +0 -1
  579. package/dist/client/services/workspace-schema-cache.js +0 -732
  580. package/dist/client/services/workspace-schema-cache.js.map +0 -1
  581. package/dist/client/specialist-daemon.d.ts +0 -77
  582. package/dist/client/specialist-daemon.d.ts.map +0 -1
  583. package/dist/client/specialist-daemon.js +0 -197
  584. package/dist/client/specialist-daemon.js.map +0 -1
  585. package/dist/client/specialists.d.ts +0 -53
  586. package/dist/client/specialists.d.ts.map +0 -1
  587. package/dist/client/specialists.js +0 -178
  588. package/dist/client/specialists.js.map +0 -1
  589. package/dist/client/tool-schema-loader.d.ts +0 -62
  590. package/dist/client/tool-schema-loader.d.ts.map +0 -1
  591. package/dist/client/tool-schema-loader.js +0 -232
  592. package/dist/client/tool-schema-loader.js.map +0 -1
  593. package/dist/client/types.d.ts +0 -327
  594. package/dist/client/types.d.ts.map +0 -1
  595. package/dist/client/types.js +0 -121
  596. package/dist/client/types.js.map +0 -1
  597. package/dist/commands/seed-config.d.ts +0 -9
  598. package/dist/commands/seed-config.d.ts.map +0 -1
  599. package/dist/commands/seed-config.js +0 -377
  600. package/dist/commands/seed-config.js.map +0 -1
  601. package/dist/commands/setup.d.ts +0 -11
  602. package/dist/commands/setup.d.ts.map +0 -1
  603. package/dist/commands/setup.js +0 -320
  604. package/dist/commands/setup.js.map +0 -1
  605. package/dist/lib/discussion-lock.d.ts +0 -42
  606. package/dist/lib/discussion-lock.d.ts.map +0 -1
  607. package/dist/lib/discussion-lock.js +0 -110
  608. package/dist/lib/discussion-lock.js.map +0 -1
  609. package/dist/mcp/signal-handler.d.ts +0 -82
  610. package/dist/mcp/signal-handler.d.ts.map +0 -1
  611. package/dist/mcp/signal-handler.js +0 -406
  612. package/dist/mcp/signal-handler.js.map +0 -1
  613. package/dist/mcp/tools/__tests__/discussion-forward.test.d.ts +0 -2
  614. package/dist/mcp/tools/__tests__/discussion-forward.test.d.ts.map +0 -1
  615. package/dist/mcp/tools/__tests__/discussion-forward.test.js +0 -218
  616. package/dist/mcp/tools/__tests__/discussion-forward.test.js.map +0 -1
  617. package/dist/mcp/tools/app-member.d.ts +0 -14
  618. package/dist/mcp/tools/app-member.d.ts.map +0 -1
  619. package/dist/mcp/tools/app-member.js +0 -195
  620. package/dist/mcp/tools/app-member.js.map +0 -1
  621. package/dist/mcp/tools/app-scaffold.d.ts +0 -14
  622. package/dist/mcp/tools/app-scaffold.d.ts.map +0 -1
  623. package/dist/mcp/tools/app-scaffold.js +0 -581
  624. package/dist/mcp/tools/app-scaffold.js.map +0 -1
  625. package/dist/mcp/tools/bot-config/constants.d.ts +0 -23
  626. package/dist/mcp/tools/bot-config/constants.d.ts.map +0 -1
  627. package/dist/mcp/tools/bot-config/constants.js +0 -94
  628. package/dist/mcp/tools/bot-config/constants.js.map +0 -1
  629. package/dist/mcp/tools/bot-config/core.d.ts +0 -253
  630. package/dist/mcp/tools/bot-config/core.d.ts.map +0 -1
  631. package/dist/mcp/tools/bot-config/core.js +0 -2456
  632. package/dist/mcp/tools/bot-config/core.js.map +0 -1
  633. package/dist/mcp/tools/bot-config/index.d.ts +0 -10
  634. package/dist/mcp/tools/bot-config/index.d.ts.map +0 -1
  635. package/dist/mcp/tools/bot-config/index.js +0 -59
  636. package/dist/mcp/tools/bot-config/index.js.map +0 -1
  637. package/dist/mcp/tools/bot-config/tools.d.ts +0 -7
  638. package/dist/mcp/tools/bot-config/tools.d.ts.map +0 -1
  639. package/dist/mcp/tools/bot-config/tools.js +0 -15
  640. package/dist/mcp/tools/bot-config/tools.js.map +0 -1
  641. package/dist/mcp/tools/bot-config/types.d.ts +0 -50
  642. package/dist/mcp/tools/bot-config/types.d.ts.map +0 -1
  643. package/dist/mcp/tools/bot-config/types.js +0 -6
  644. package/dist/mcp/tools/bot-config/types.js.map +0 -1
  645. package/dist/mcp/tools/bug-fixer-tools.d.ts +0 -45
  646. package/dist/mcp/tools/bug-fixer-tools.d.ts.map +0 -1
  647. package/dist/mcp/tools/bug-fixer-tools.js +0 -1096
  648. package/dist/mcp/tools/bug-fixer-tools.js.map +0 -1
  649. package/dist/mcp/tools/document.d.ts +0 -11
  650. package/dist/mcp/tools/document.d.ts.map +0 -1
  651. package/dist/mcp/tools/document.js +0 -741
  652. package/dist/mcp/tools/document.js.map +0 -1
  653. package/dist/mcp/tools/investigate.d.ts +0 -9
  654. package/dist/mcp/tools/investigate.d.ts.map +0 -1
  655. package/dist/mcp/tools/investigate.js +0 -254
  656. package/dist/mcp/tools/investigate.js.map +0 -1
  657. package/dist/mcp/utils/pagination.d.ts +0 -40
  658. package/dist/mcp/utils/pagination.d.ts.map +0 -1
  659. package/dist/mcp/utils/pagination.js +0 -55
  660. package/dist/mcp/utils/pagination.js.map +0 -1
  661. package/dist/modules/bug-reports/bug-config.d.ts +0 -25
  662. package/dist/modules/bug-reports/bug-config.d.ts.map +0 -1
  663. package/dist/modules/bug-reports/bug-config.js +0 -187
  664. package/dist/modules/bug-reports/bug-config.js.map +0 -1
  665. package/dist/modules/bug-reports/bug-monitor.d.ts +0 -108
  666. package/dist/modules/bug-reports/bug-monitor.d.ts.map +0 -1
  667. package/dist/modules/bug-reports/bug-monitor.js +0 -510
  668. package/dist/modules/bug-reports/bug-monitor.js.map +0 -1
  669. package/dist/modules/bug-reports/giuseppe-agent.d.ts +0 -58
  670. package/dist/modules/bug-reports/giuseppe-agent.d.ts.map +0 -1
  671. package/dist/modules/bug-reports/giuseppe-agent.js +0 -467
  672. package/dist/modules/bug-reports/giuseppe-agent.js.map +0 -1
  673. package/dist/modules/bug-reports/giuseppe-ai.d.ts +0 -83
  674. package/dist/modules/bug-reports/giuseppe-ai.d.ts.map +0 -1
  675. package/dist/modules/bug-reports/giuseppe-ai.js +0 -466
  676. package/dist/modules/bug-reports/giuseppe-ai.js.map +0 -1
  677. package/dist/modules/bug-reports/giuseppe-bot.d.ts +0 -110
  678. package/dist/modules/bug-reports/giuseppe-bot.d.ts.map +0 -1
  679. package/dist/modules/bug-reports/giuseppe-bot.js +0 -804
  680. package/dist/modules/bug-reports/giuseppe-bot.js.map +0 -1
  681. package/dist/modules/bug-reports/giuseppe-daemon.d.ts +0 -80
  682. package/dist/modules/bug-reports/giuseppe-daemon.d.ts.map +0 -1
  683. package/dist/modules/bug-reports/giuseppe-daemon.js +0 -617
  684. package/dist/modules/bug-reports/giuseppe-daemon.js.map +0 -1
  685. package/dist/modules/bug-reports/giuseppe-files.d.ts +0 -64
  686. package/dist/modules/bug-reports/giuseppe-files.d.ts.map +0 -1
  687. package/dist/modules/bug-reports/giuseppe-files.js +0 -375
  688. package/dist/modules/bug-reports/giuseppe-files.js.map +0 -1
  689. package/dist/modules/bug-reports/giuseppe-git.d.ts +0 -48
  690. package/dist/modules/bug-reports/giuseppe-git.d.ts.map +0 -1
  691. package/dist/modules/bug-reports/giuseppe-git.js +0 -298
  692. package/dist/modules/bug-reports/giuseppe-git.js.map +0 -1
  693. package/dist/modules/bug-reports/giuseppe-lsp.d.ts +0 -113
  694. package/dist/modules/bug-reports/giuseppe-lsp.d.ts.map +0 -1
  695. package/dist/modules/bug-reports/giuseppe-lsp.js +0 -485
  696. package/dist/modules/bug-reports/giuseppe-lsp.js.map +0 -1
  697. package/dist/modules/bug-reports/giuseppe-prompt.d.ts +0 -5
  698. package/dist/modules/bug-reports/giuseppe-prompt.d.ts.map +0 -1
  699. package/dist/modules/bug-reports/giuseppe-prompt.js +0 -94
  700. package/dist/modules/bug-reports/giuseppe-prompt.js.map +0 -1
  701. package/dist/modules/bug-reports/index.d.ts +0 -77
  702. package/dist/modules/bug-reports/index.d.ts.map +0 -1
  703. package/dist/modules/bug-reports/index.js +0 -215
  704. package/dist/modules/bug-reports/index.js.map +0 -1
  705. package/dist/modules/bug-reports/pending-classification-registry.d.ts +0 -28
  706. package/dist/modules/bug-reports/pending-classification-registry.d.ts.map +0 -1
  707. package/dist/modules/bug-reports/pending-classification-registry.js +0 -50
  708. package/dist/modules/bug-reports/pending-classification-registry.js.map +0 -1
  709. package/dist/modules/bug-reports/pending-fix-registry.d.ts +0 -30
  710. package/dist/modules/bug-reports/pending-fix-registry.d.ts.map +0 -1
  711. package/dist/modules/bug-reports/pending-fix-registry.js +0 -42
  712. package/dist/modules/bug-reports/pending-fix-registry.js.map +0 -1
  713. package/dist/modules/bug-reports/pending-registry.d.ts +0 -27
  714. package/dist/modules/bug-reports/pending-registry.d.ts.map +0 -1
  715. package/dist/modules/bug-reports/pending-registry.js +0 -49
  716. package/dist/modules/bug-reports/pending-registry.js.map +0 -1
  717. package/dist/modules/bug-reports/types.d.ts +0 -123
  718. package/dist/modules/bug-reports/types.d.ts.map +0 -1
  719. package/dist/modules/bug-reports/types.js +0 -9
  720. package/dist/modules/bug-reports/types.js.map +0 -1
  721. package/dist/plugins/bug-fixer/index.d.ts +0 -2
  722. package/dist/plugins/bug-fixer/index.d.ts.map +0 -1
  723. package/dist/plugins/bug-fixer/index.js +0 -18
  724. package/dist/plugins/bug-fixer/index.js.map +0 -1
  725. package/dist/plugins/bug-fixer/tools.d.ts +0 -45
  726. package/dist/plugins/bug-fixer/tools.d.ts.map +0 -1
  727. package/dist/plugins/bug-fixer/tools.js +0 -1096
  728. package/dist/plugins/bug-fixer/tools.js.map +0 -1
  729. package/dist/plugins/vipunen/__tests__/tools.test.d.ts +0 -10
  730. package/dist/plugins/vipunen/__tests__/tools.test.d.ts.map +0 -1
  731. package/dist/plugins/vipunen/__tests__/tools.test.js +0 -646
  732. package/dist/plugins/vipunen/__tests__/tools.test.js.map +0 -1
  733. package/dist/routes/agents.d.ts +0 -44
  734. package/dist/routes/agents.d.ts.map +0 -1
  735. package/dist/routes/agents.js +0 -311
  736. package/dist/routes/agents.js.map +0 -1
  737. package/dist/services/agent-credential-store.d.ts +0 -73
  738. package/dist/services/agent-credential-store.d.ts.map +0 -1
  739. package/dist/services/agent-credential-store.js +0 -212
  740. package/dist/services/agent-credential-store.js.map +0 -1
  741. package/dist/stdio-server.d.ts +0 -14
  742. package/dist/stdio-server.d.ts.map +0 -1
  743. package/dist/stdio-server.js +0 -101
  744. package/dist/stdio-server.js.map +0 -1
  745. package/dist/workspace/context.d.ts +0 -148
  746. package/dist/workspace/context.d.ts.map +0 -1
  747. package/dist/workspace/context.js +0 -339
  748. package/dist/workspace/context.js.map +0 -1
  749. package/dist/workspace/credentials.d.ts +0 -55
  750. package/dist/workspace/credentials.d.ts.map +0 -1
  751. package/dist/workspace/credentials.js +0 -239
  752. package/dist/workspace/credentials.js.map +0 -1
  753. package/dist/workspace/index.d.ts +0 -21
  754. package/dist/workspace/index.d.ts.map +0 -1
  755. package/dist/workspace/index.js +0 -45
  756. package/dist/workspace/index.js.map +0 -1
  757. package/dist/workspace/loader.d.ts +0 -27
  758. package/dist/workspace/loader.d.ts.map +0 -1
  759. package/dist/workspace/loader.js +0 -222
  760. package/dist/workspace/loader.js.map +0 -1
  761. package/dist/workspace/schema.d.ts +0 -37
  762. package/dist/workspace/schema.d.ts.map +0 -1
  763. package/dist/workspace/schema.js +0 -192
  764. package/dist/workspace/schema.js.map +0 -1
@@ -1,79 +0,0 @@
1
- ---
2
- description: Frequently asked questions for Hailer MCP
3
- ---
4
-
5
- # FAQ
6
-
7
- Display frequently asked questions to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- ╭─────────────────────────────────────────╮
13
- │ HAILER MCP - FAQ │
14
- ╰─────────────────────────────────────────╯
15
-
16
- Q: Why is Claude failing at Hailer tasks?
17
- A: Check two things:
18
- 1. Run /mcp-list to verify Claude is connected to the Hailer MCP
19
- 2. Make sure you're running Claude from the correct project folder
20
- (the one with CLAUDE.md and .claude/ folder)
21
-
22
- Q: Why do I need to restart Claude Code after installing a plugin?
23
- A: Claude Code reloads configuration at startup. New skills and hooks
24
- won't be active until restart. Use 'claude -c' to keep context.
25
-
26
- Q: What's the difference between /plugin install and /install-plugin?
27
- A: /plugin install - Claude's built-in plugin system (global)
28
- /install-plugin - Our local marketplace system (per-project)
29
-
30
- Q: Can I create my own skills?
31
- A: Yes! Add a SKILL.md file to .claude/skills/<name>/ following the
32
- skill structure. See existing skills for examples.
33
-
34
- Q: How do I publish my skill or hook to the marketplace?
35
- A: Use /publish-plugin. It creates a PR that gets reviewed.
36
- See /help plugins for details.
37
-
38
- Q: Why does Claude spawn sub-agents instead of doing work directly?
39
- A: Sub-agents with focused skills produce better results for domain-
40
- specific tasks by loading only the relevant context.
41
-
42
- Q: What happens if a sub-agent fails?
43
- A: The orchestrator receives an error and reports the failure.
44
- It should identify root cause and fix it, never apply bandaids.
45
-
46
- Q: How does Claude decide which skills to use?
47
- A: Check the skill catalog in CLAUDE.md. Skills are loaded based on
48
- the task domain (workspace config, app building, testing, etc.).
49
-
50
- Q: Can I use MCP tools directly without agents?
51
- A: Yes! Tools like list_workflows, create_activity, etc. are
52
- available directly. Agents just provide structured workflows.
53
-
54
- Q: Where is configuration stored?
55
- A: - Skills: .claude/skills/
56
- - Hooks: .claude/hooks/
57
- - Commands: .claude/commands/
58
- - Settings: .claude/settings.json
59
- - Instructions: CLAUDE.md
60
-
61
- Q: How do I update an installed plugin?
62
- A: Uninstall and reinstall:
63
- /uninstall-plugin <name>
64
- /install-plugin <name>
65
-
66
- Q: What's the difference between /autoplan and /plan-workspace?
67
- A: /autoplan - Quick planning, creates DEVELOPMENT.md + PRDs
68
- /plan-workspace - Thorough 10-phase discovery for complex workspaces
69
- Use /autoplan for features, /plan-workspace for new projects.
70
-
71
- Q: How do PRDs and DEVELOPMENT.md work together?
72
- A: DEVELOPMENT.md is the big picture (roadmap, status, decisions).
73
- PRDs (docs/prd-*.md) are detailed requirements for each feature.
74
- DEVELOPMENT.md roadmap links to individual PRDs.
75
-
76
- MORE HELP:
77
- /help plugins - Plugin system
78
- /help agents - Agent usage
79
- ```
@@ -1,50 +0,0 @@
1
- ---
2
- description: Plugin system help for Hailer MCP
3
- ---
4
-
5
- # Plugin System Help
6
-
7
- Display plugin system instructions to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- HAILER MCP - PLUGIN SYSTEM
13
-
14
- The plugin system lets you install community agents from the marketplace.
15
-
16
- COMMANDS:
17
-
18
- /marketplace-setup
19
- Clone or pull the marketplace repo to ./hailer-marketplace
20
- Only needed once. Commands will prompt you if missing.
21
-
22
- /list-plugins
23
- List all available plugins (auto-pulls latest).
24
-
25
- /install-plugin <name>
26
- Install a plugin to .claude/ folder.
27
- Example: /install-plugin my-custom-plugin
28
-
29
- /uninstall-plugin <name>
30
- Remove a plugin from .claude/ folder.
31
-
32
- /publish-plugin
33
- Publish your plugin to marketplace (creates PR).
34
-
35
- PLUGIN TYPES:
36
-
37
- Agents AI specialists (.claude/agents/)
38
- Skills On-demand docs (.claude/skills/)
39
- Hooks Event scripts (.claude/hooks/)
40
-
41
- WORKFLOW:
42
-
43
- 1. /list-plugins # See what's available
44
- 2. /install-plugin <name> # Install what you need
45
- 3. Restart: claude -c # Load new agents
46
-
47
- SEE ALSO:
48
- /help agents - How to use installed agents
49
- /help faq - Common questions
50
- ```
@@ -1,87 +0,0 @@
1
- ---
2
- description: Skills reference for Hailer MCP
3
- ---
4
-
5
- # Skills Reference
6
-
7
- Display skills reference to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- ╭─────────────────────────────────────────╮
13
- │ HAILER MCP - SKILLS REFERENCE │
14
- ╰─────────────────────────────────────────╯
15
-
16
- Skills are reusable knowledge files (.claude/skills/<name>/SKILL.md) that
17
- give agents domain-specific patterns, API references, and code templates.
18
-
19
- HOW SKILLS WORK:
20
-
21
- Auto-injected: Agents declare skills in their frontmatter. The
22
- SubagentStart hook injects them automatically when the agent spawns.
23
-
24
- On-demand: The orchestrator tells an agent to load a skill via the
25
- Skill tool. Load skills before spawning sub-agents or doing domain-specific work.
26
-
27
- ─────────────────────────────────────────────────────────────────────────
28
-
29
- SDK SKILLS (core patterns):
30
- sdk-activity-patterns - Field value formats, dates, users, links
31
- sdk-document-templates - PDF/CSV template structure + generation
32
- sdk-function-fields - Calculated fields in Hailer workflows
33
- sdk-insight-queries - SQL query patterns for insights, cross-workflow JOINs
34
- sdk-ws-config-skill - Workflow config: fields, phases, schemas, type generation, project setup
35
-
36
- HAILER PLATFORM SKILLS:
37
- hailer-api-client - @hailer/cli auth, requests, signals, direct HTTP API endpoints
38
- hailer-app-builder - Build apps with @hailer/app-sdk
39
- hailer-apps-pictures - Fetch and display images from Hailer
40
- hailer-design-system - Chakra UI theme, colors, icons, components, UI/UX patterns
41
- hailer-monolith-automations - Webhooks, scheduled jobs in monolith, phase cascade bots
42
- hailer-permissions-system - Users, teams, access control
43
- hailer-project-protocol - Full SDK workflow reference
44
-
45
- INTEGRATION SKILLS:
46
- integration-patterns - Activity movers, webhooks, SCIM, Kafka
47
- zapier-hailer-patterns - Zapier triggers, actions, Zap configs
48
- TOOL & AGENT SKILLS:
49
- agent-structure - Template for creating new agents
50
- delegation-routing - Full routing table + chaining patterns
51
- tool-builder - Building MCP tools for Hailer server
52
- mcp-direct-tools - MCP tools not assigned to agents
53
-
54
- QUALITY & FIX SKILLS (auto-loaded on errors):
55
- tool-parameter-usage - Extract IDs, correct parameter formats
56
- tool-response-verification - Verify MCP results before reporting
57
- optional-parameters - Omit optional params vs empty values
58
- json-only-output - Fix agents adding prose after JSON
59
- testing-patterns - vitest, playwright, build verification
60
-
61
- REFERENCE SKILLS:
62
- api-documentation-patterns - API endpoint documentation standards
63
- chrome-mcp-reference - Browser automation reference
64
- lsp-setup - Language Server Protocol setup
65
- publish-hailer-app - App publishing to production
66
-
67
- ─────────────────────────────────────────────────────────────────────────
68
-
69
- ON-DEMAND SKILL LOADING:
70
-
71
- Tell the orchestrator which skill a sub-agent needs:
72
- "Load hailer-apps-pictures for the app builder sub-agent"
73
- → Sub-agent gets image handling patterns
74
-
75
- "Load sdk-insight-queries for this SQL query"
76
- → Sub-agent gets insight patterns including JOIN syntax for cross-workflow data
77
-
78
- Skill content is loaded by the orchestrator and pasted directly
79
- into the sub-agent prompt — agents never load skills themselves.
80
-
81
- ─────────────────────────────────────────────────────────────────────────
82
-
83
- SEE ALSO:
84
- /help agents - Which agents use which skills
85
- /help commands - All slash commands
86
- /help tools - MCP tools reference
87
- ```
@@ -1,75 +0,0 @@
1
- ---
2
- description: MCP tools reference for Hailer MCP
3
- ---
4
-
5
- # MCP Tools Reference
6
-
7
- Display MCP tools reference to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- ╭─────────────────────────────────────────╮
13
- │ HAILER MCP - TOOLS REFERENCE │
14
- ╰─────────────────────────────────────────╯
15
-
16
- MCP tools provide direct access to Hailer APIs. These are used by
17
- agents but can also be called directly.
18
-
19
- WORKFLOW TOOLS:
20
- list_workflows - List all workflows in workspace
21
- list_workflows_minimal - Compact workflow list with counts
22
- list_workflow_phases - Get phases for a workflow
23
- get_workflow_schema - Get field definitions for a workflow
24
- install_workflow - Create workflow from template
25
-
26
- ACTIVITY TOOLS:
27
- list_activities - List activities in a workflow phase
28
- show_activity_by_id - Get single activity details
29
- create_activity - Create new activity (single or bulk)
30
- update_activity - Update activity (single or bulk)
31
- count_activities - Count activities in workflow
32
-
33
- DISCUSSION TOOLS:
34
- list_my_discussions - List discussions you're in
35
- fetch_discussion_messages - Read messages from discussion
36
- add_discussion_message - Post to a discussion
37
- join_discussion - Join a discussion
38
- leave_discussion - Leave a discussion
39
- invite_discussion_members - Invite users to discussion
40
-
41
- INSIGHT TOOLS:
42
- list_insights - List all insights
43
- create_insight - Create SQL-like insight
44
- preview_insight - Test insight query
45
- get_insight_data - Execute insight and get results
46
- update_insight - Modify existing insight
47
-
48
- APP TOOLS:
49
- list_apps - List apps in workspace
50
- create_app - Create app entry
51
- update_app - Update app properties
52
- scaffold_hailer_app - Generate app from template
53
- publish_hailer_app - Deploy app to production
54
-
55
- FILE TOOLS:
56
- upload_files - Upload files to Hailer
57
- download_file - Download file from Hailer
58
-
59
- USER TOOLS:
60
- search_workspace_users - Find users by name
61
-
62
- TEMPLATE TOOLS:
63
- list_templates - List marketplace templates
64
- get_template - Get template details
65
- install_template - Install template to workspace
66
- publish_template - Publish workspace as template
67
-
68
- USAGE:
69
- Tools are called via the MCP protocol. The orchestrator and
70
- agents use them automatically based on your requests.
71
-
72
- SEE ALSO:
73
- /help agents - How agents use these tools
74
- /help commands - Slash commands available
75
- ```
@@ -1,112 +0,0 @@
1
- ---
2
- description: Quick bug fix with test creation, code editing, and security review
3
- argument-hint: "bug description"
4
- allowed-tools: Task, Bash
5
- ---
6
- # Hotfix Squad
7
-
8
- Sequential pipeline with iterative loop: Reproduce bug, apply fix, verify, review. Loops back if review fails.
9
-
10
- **Roles:**
11
- 1. **Test Runner** - Test runner (create failing test, verify fix)
12
- 2. **Code Editor** - Code editor (apply minimal fix)
13
- 3. **Code Reviewer** - Code review (security audit of the fix)
14
-
15
- **Goal:** $ARGUMENTS
16
-
17
- ## Protocol
18
-
19
- ### Step 1: Reproduce Bug
20
-
21
- Spawn a test runner to create a test that demonstrates the bug:
22
-
23
- ```
24
- Task(prompt="Load testing-patterns skill for writing focused tests.\n\nCreate a test that reproduces this bug: $ARGUMENTS.\n\nThe test should:\n- Fail with the current code (red)\n- Clearly demonstrate the bug\n- Be minimal and focused\n\nDo NOT fix the bug yet. Just create the failing test and report the failure.")
25
- ```
26
-
27
- Wait for result. The test should be failing (RED state).
28
-
29
- ### Step 2: Fix-Verify-Review Loop
30
-
31
- Track iteration count. Max **3 iterations** before escalating to user with remaining issues.
32
-
33
- **Set:** `iteration = 1`
34
-
35
- #### Step 2a: Apply Fix
36
-
37
- Spawn a code editor with accumulated context from all previous iterations:
38
-
39
- ```
40
- Task(prompt="Fix the bug in: $ARGUMENTS.\n\nContext:\nTest runner created a failing test that reproduces the bug:\n[PASTE TEST CODE AND FAILURE OUTPUT]\n\n[IF iteration > 1: Include ALL accumulated feedback:\n- Test runner's latest test results (pass/fail details)\n- Code Reviewer's feedback (if review was reached in previous iteration)\n- What was already tried and why it didn't fully work\nThis prevents repeating previous mistakes.]\n\nMake the MINIMAL change needed to make the test pass (GREEN state). Do not refactor or improve surrounding code.")
41
- ```
42
-
43
- #### Step 2b: Verify Fix
44
-
45
- Run the test to confirm the fix works:
46
-
47
- ```
48
- Task(prompt="Load testing-patterns skill for test execution.\n\nRe-run the test for: $ARGUMENTS. Confirm it now passes with the code editor's fix. Also run any related tests to check for regressions.")
49
- ```
50
-
51
- If tests FAIL:
52
- - If `iteration < 3`: increment iteration, go back to **Step 2a** with the test failure output
53
- - If `iteration >= 3`: escalate to user (see Step 3)
54
-
55
- #### Step 2c: Security Review
56
-
57
- Tests passed. Spawn a code reviewer to audit the fix:
58
-
59
- ```
60
- Task(prompt="Security review of the hotfix for: $ARGUMENTS.\n\nFix applied by code editor:\n[PASTE CODE EDITOR'S CHANGES]\n\nIteration: [iteration] of 3\n\nCheck for:\n- Security vulnerabilities\n- Data validation issues\n- Authentication/authorization concerns\n- Edge cases that could be exploited\n\nReturn verdict: APPROVED or REQUEST_CHANGES with specific issues to fix.")
61
- ```
62
-
63
- **If APPROVED:** proceed to Step 3 (report).
64
-
65
- **If REQUEST_CHANGES:**
66
- - If `iteration < 3`: increment iteration, go back to **Step 2a** with Code Reviewer's feedback
67
- - If `iteration >= 3`: escalate to user (see Step 3)
68
-
69
- ### Step 3: Report
70
-
71
- ```markdown
72
- ## Hotfix Squad Complete
73
-
74
- ### Loop Summary
75
- - Iterations: [count] of 3 max
76
- - Final status: FIXED / ESCALATED
77
-
78
- ### Test Runner
79
- - Bug reproduced: YES
80
- - Test status before fix: FAILED
81
- - Test status after fix: PASSED / STILL FAILING
82
- - Regressions found: [yes/no]
83
-
84
- ### Code Editor
85
- - Files modified: [list]
86
- - Lines changed: [count]
87
- - Approach: [brief description]
88
-
89
- ### Code Reviewer
90
- - Verdict: APPROVED / REQUEST_CHANGES
91
- - Critical issues: [count]
92
- - Warnings: [count]
93
- - [If REQUEST_CHANGES: list remaining issues]
94
-
95
- ### Next Steps
96
- [If FIXED:]
97
- - Deploy to staging
98
- - Monitor error logs
99
-
100
- [If ESCALATED after 3 iterations:]
101
- - Manual intervention needed
102
- - Remaining issues: [list from security reviewer/test runner]
103
- - Attempted fixes: [summary of what was tried]
104
- ```
105
-
106
- ## Notes
107
-
108
- - RED -> GREEN -> REVIEW loop ensures quality
109
- - Fix must be minimal - no refactoring
110
- - Max 3 iterations prevents infinite loops
111
- - Each iteration passes previous feedback to the code editor so it doesn't repeat mistakes
112
- - Security check is mandatory before reporting success
@@ -1,82 +0,0 @@
1
- ---
2
- description: Build backend integrations with schema discovery and automation
3
- argument-hint: "integration description"
4
- allowed-tools: Task, Bash, Read
5
- ---
6
- # Integration Squad
7
-
8
- Sequential pipeline: Schema discovery, build integration, then verify with tests.
9
-
10
- **Roles:**
11
- 1. **Data Reader** - Schema discovery (workflow fields, types, IDs)
12
- 2. **Automation Builder** - Build integration (monolith webhooks, scheduled jobs, automations)
13
- 3. **Test Runner** - Test runner (verify integration with tests)
14
-
15
- **Goal:** $ARGUMENTS
16
-
17
- ## Protocol
18
-
19
- ### Step 1: Schema Discovery
20
-
21
- Start with schema discovery to gather workflow schema and field IDs needed for the integration:
22
-
23
- ```
24
- Task(prompt="Load sdk-ws-config-skill for understanding workspace structure.\n\nList all workflows and their fields relevant to: $ARGUMENTS. Include field IDs, types, and any existing integrations. Also identify webhook URLs and activity phase names needed.")
25
- ```
26
-
27
- Wait for result. Save the schema output - the automation builder needs these IDs.
28
-
29
- ### Step 2: Build Integration
30
-
31
- Spawn an automation builder with the schema context:
32
-
33
- ```
34
- Task(prompt="Load hailer-monolith-automations skill for building integrations.\n\nBuild a backend integration for: $ARGUMENTS.\n\nWorkflow schema from data reader:\n[PASTE SCHEMA DISCOVERY OUTPUT - workflow IDs, field IDs, types, phases]\n\nImplement in the hailer-integration monolith. Use correct IDs for webhooks, scheduled jobs, or automations.")
35
- ```
36
-
37
- Wait for result. If `"status": "ready_to_push"`:
38
- - Run the push commands provided
39
-
40
- ### Step 3: Test Integration
41
-
42
- Spawn a test runner to verify the integration works:
43
-
44
- ```
45
- Task(prompt="Load testing-patterns skill for integration testing.\n\nTest the integration for: $ARGUMENTS.\n\nTest coverage needed:\n- Webhook payload validation (if webhook)\n- Scheduled job execution (if scheduled)\n- Activity creation/phase transitions\n- Error handling and edge cases\n\nRun tests and report pass/fail counts.")
46
- ```
47
-
48
- Wait for result. If tests fail, report which ones and offer to have the automation builder fix issues.
49
-
50
- ### Step 4: Report
51
-
52
- ```markdown
53
- ## Integration Squad Complete
54
-
55
- ### Data Reader (Schema Discovery)
56
- - Workflows found: [list]
57
- - Fields mapped: [count]
58
- - Phases identified: [list]
59
- - Existing integrations: [list or "none"]
60
-
61
- ### Automation Builder
62
- - Integration type: [webhook/scheduled/automation]
63
- - Files created/modified: [list]
64
- - Endpoints: [list if webhook]
65
- - Commands run: [list]
66
-
67
- ### Test Runner
68
- - Tests: X passed, X failed
69
- - Build: Pass/Fail
70
- - [Failed test details if any]
71
-
72
- ### Next Steps
73
- - Deploy to staging environment
74
- - Test end-to-end in Hailer
75
- - Monitor for errors in production logs
76
- ```
77
-
78
- ## Notes
79
-
80
- - Data Reader must run first to get real IDs - never let automation builder guess IDs
81
- - Each agent in the pipeline depends on output from the previous step
82
- - If tests fail, the automation builder may need to revise the integration code
@@ -1,167 +0,0 @@
1
- ---
2
- description: Deep project cleanup - code, config, and data patterns
3
- argument-hint: [scope or blank for full project]
4
- allowed-tools: Task, Bash
5
- ---
6
- # Janitor Squad
7
-
8
- Deep project cleanup across code, configuration, and data. Discovers dead patterns and auto-fixes clear-cut removals.
9
-
10
- **Roles:**
11
- - **Dead Code Inspector** - Dead code detection (unused imports, unreachable code, type errors via LSP)
12
- - **Config Auditor** - Configuration audit (deprecated fields, broken references, unused workflows)
13
- - **Data Analyzer** - Data analysis (unpopulated fields, zero-activity workflows, silent insights)
14
- - **Code Fixer** - Auto-fix confirmed dead code and unused imports (fix loop)
15
- - **Code Simplifier** - Simplify complex code blocks identified during discovery (fix loop)
16
-
17
- **Target:** $ARGUMENTS (if blank, scan full project)
18
-
19
- **Changed files:** Orchestrator runs `git diff --name-only HEAD` to scope if needed.
20
-
21
- ## Protocol
22
-
23
- ### Step 1: Determine Scope
24
-
25
- If `$ARGUMENTS` has specific files/directories, use those as the target.
26
- Otherwise, scan the entire project.
27
-
28
- If `$ARGUMENTS` contains `--code-only`:
29
- - Skip Config Auditor and Data Analyzer
30
- - Only run Dead Code Inspector in discovery phase
31
-
32
- If `$ARGUMENTS` contains `--config-only`:
33
- - Skip Dead Code Inspector and Data Analyzer
34
- - Only run Config Auditor in discovery phase
35
-
36
- If `$ARGUMENTS` contains `--report-only`:
37
- - Skip all fix loop iterations
38
- - Report findings only (no auto-fixes)
39
-
40
- ### Step 2: Launch Discovery Agents in Parallel
41
-
42
- **Set:** `iteration = 1`
43
-
44
- Spawn all three discovery agents simultaneously using multiple Task tool calls in a single message:
45
-
46
- **Dead Code Inspector:**
47
- ```
48
- Task(prompt="Load lsp-setup skill for code inspection.\n\nInspect the project for dead code patterns: [TARGET]. Find:\n- Unused imports\n- Unreachable code blocks\n- Unused variables and functions\n- Type errors\n\nUse LSP if available, fall back to tsc/eslint. Return detailed findings grouped by file.")
49
- ```
50
-
51
- **Config Auditor:**
52
- ```
53
- Task(prompt="Audit workspace configuration for zombie patterns: [TARGET]. Check:\n- Deprecated fields in workspace/fields.ts\n- Broken field references in phases\n- Unused workflows (defined but zero activities)\n- Broken enum references\n- Orphaned configuration entries\n\nReturn issues grouped by category with severity.")
54
- ```
55
-
56
- **Data Analyzer:**
57
- ```
58
- Task(prompt="Load sdk-insight-queries skill for data analysis.\n\nAnalyze data patterns in workflows: [TARGET]. Find:\n- Fields that are defined but never populated (zero values across all activities)\n- Workflows with zero activities (created but unused)\n- Insights that return empty data (broken or obsolete)\n- Calculated fields that never execute\n- Orphaned data patterns\n\nReturn findings with field IDs, workflow IDs, and impact estimates.")
59
- ```
60
-
61
- ### Step 3: Categorize Findings
62
-
63
- Collect results from all three agents. Categorize each finding as:
64
-
65
- **AUTO-FIXABLE** (Code Fixer can safely remove):
66
- - Unused imports identified by Dead Code Inspector
67
- - Dead code blocks with no side effects
68
- - Workflow definitions with zero activities (from Data Analyzer + Config Auditor)
69
- - Deprecated enum references (from Config Auditor)
70
- - Never-populated fields that can be safely archived (from Data Analyzer + Config Auditor)
71
-
72
- **NEEDS-HUMAN-REVIEW** (escalate to user):
73
- - Architecture concerns
74
- - Fields that are rarely used but intentional
75
- - Complex logic entangled with dead code
76
- - Data cleanup that affects reporting history
77
- - Performance optimizations requiring design changes
78
-
79
- ### Step 4: Auto-Fix Loop (if auto-fixable items found AND `--report-only` not set AND `iteration < 3`)
80
-
81
- If critical auto-fixable items exist, spawn two agents to clean up. If the Code Fixer's fixes introduce new issues detected by re-audit, escalate remaining issues to user after max 2 iterations.
82
-
83
- **Code Fixer:**
84
- ```
85
- Task(prompt="Remove confirmed dead code and unused imports from the project:\n\n[LIST AUTO-FIXABLE ITEMS WITH FILE PATHS AND LINE NUMBERS]\n\nFrom Dead Code Inspector:\n- [Unused imports with files]\n- [Dead code blocks with files]\n\nFrom Config Auditor:\n- [Deprecated enum references with files]\n- [Unused workflow definitions with IDs]\n\nFrom Data Analyzer:\n- [Never-populated field definitions with IDs]\n\nApply minimal removals only. Do not refactor or improve beyond confirmed dead patterns.")
86
- ```
87
-
88
- **Code Simplifier:**
89
- ```
90
- Task(prompt="After dead code removal, simplify complex code blocks identified as difficult to maintain: [TARGET].\n\nFocus on:\n- Variable naming clarity\n- Function complexity reduction\n- Comment clarity around remaining logic\n- Code organization in affected files\n\nReturn refactoring suggestions with before/after examples.")
91
- ```
92
-
93
- After both finish:
94
- - Increment `iteration`
95
- - Go back to **Step 2** to re-run all discovery agents
96
- - On re-discovery, tell agents to verify previous issues are resolved
97
- - Max 2 re-check iterations (3 total discovery runs)
98
-
99
- ### Step 5: Report
100
-
101
- ```markdown
102
- ## Janitor Squad Report
103
-
104
- ### Loop Summary
105
- - Discovery iterations: [count]
106
- - Auto-fixes applied: [yes/no]
107
- - Items removed: [count by category]
108
-
109
- ### Dead Code Inspector
110
- - Unused imports: X (Y auto-removed)
111
- - Dead code blocks: X (Y auto-removed)
112
- - Type errors: X
113
- - [Remaining issues grouped by file]
114
-
115
- ### Config Auditor
116
- - Deprecated fields: X
117
- - Broken references: X (Y auto-removed)
118
- - Unused workflows: X (Y auto-removed)
119
- - Orphaned config: X
120
- - [Remaining issues grouped by category]
121
-
122
- ### Data Analyzer
123
- - Never-populated fields: X (Y marked for archival)
124
- - Zero-activity workflows: X (Y removed)
125
- - Silent insights: X
126
- - Orphaned data patterns: X
127
- - [Remaining items grouped by workflow]
128
-
129
- ### Auto-Fixes Applied
130
- [If any fixes were made:]
131
- - [File/ID]: [what was removed/archived]
132
- - [File/ID]: [what was removed/archived]
133
-
134
- ### Remaining Issues (Manual Action Needed)
135
- [Issues that require human review]
136
- - [Category]: [Details]
137
-
138
- ### Recommended Cleanup Order
139
- 1. [Remove these orphaned items first]
140
- 2. [Archive these fields next]
141
- 3. [Review these design concerns]
142
-
143
- ### Summary
144
- [Overall health assessment]
145
- [Estimated time to apply remaining cleanup]
146
- ```
147
-
148
- If any agent fails or times out, report partial results from successful agents, note which failed, and offer to re-run individually.
149
-
150
- ## Options
151
-
152
- | Flag | Effect |
153
- |------|--------|
154
- | `--code-only` | Skip Config Auditor and Data Analyzer, just code cleanup via Dead Code Inspector |
155
- | `--config-only` | Skip Dead Code Inspector and Data Analyzer, just workspace config audit via Config Auditor |
156
- | `--report-only` | Report findings only, no auto-fix loop (discovery phase only) |
157
- | `--bg` | Run all discovery agents in background mode |
158
-
159
- If `--bg` is present, launch all discovery agents with `run_in_background: true` and tell the user they'll be notified when discovery is complete, then proceed with fix loop when they're ready.
160
-
161
- ## Notes
162
-
163
- - Max 2 re-discovery iterations (3 total) to prevent infinite loops
164
- - Code Fixer only removes clear-cut dead code - ambiguous items go to user review
165
- - Data cleanup (Data Analyzer findings) may affect reports/history - always prompt user before removal
166
- - Each re-discovery is a full parallel sweep across all enabled agents
167
- - The `--report-only` flag gives discovery results without auto-fixes