@hailer/mcp 1.2.1 → 2.0.0-beta.10
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.
- package/.claude/agents/agent-hailer-helper.md +118 -0
- package/.claude/commands/debug-squad.md +13 -290
- package/.claude/commands/publish.md +2 -2
- package/.claude/commands/review-squad.md +17 -139
- package/.claude/skills/create-and-publish-app/SKILL.md +119 -148
- package/.claude/skills/hailer-app-builder/SKILL.md +24 -2
- package/.claude/skills/hailer-ui-guide/SKILL.md +265 -0
- package/.env.example +50 -1
- package/CLAUDE.md +141 -10
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +3 -0
- package/dist/app.js.map +1 -1
- package/dist/bot/bot-manager.d.ts +9 -6
- package/dist/bot/bot-manager.d.ts.map +1 -1
- package/dist/bot/bot-manager.js +142 -31
- package/dist/bot/bot-manager.js.map +1 -1
- package/dist/bot/bot.d.ts +59 -16
- package/dist/bot/bot.d.ts.map +1 -1
- package/dist/bot/bot.js +889 -142
- package/dist/bot/bot.js.map +1 -1
- package/dist/bot/operation-logger.d.ts.map +1 -1
- package/dist/bot/operation-logger.js +24 -12
- package/dist/bot/operation-logger.js.map +1 -1
- package/dist/bot/services/bot-permissions.d.ts +2 -2
- package/dist/bot/services/bot-permissions.d.ts.map +1 -1
- package/dist/bot/services/bot-permissions.js +28 -9
- package/dist/bot/services/bot-permissions.js.map +1 -1
- package/dist/bot/services/conversation-manager.d.ts +23 -23
- package/dist/bot/services/conversation-manager.d.ts.map +1 -1
- package/dist/bot/services/conversation-manager.js +52 -49
- package/dist/bot/services/conversation-manager.js.map +1 -1
- package/dist/bot/services/helper-prompt.d.ts +8 -0
- package/dist/bot/services/helper-prompt.d.ts.map +1 -0
- package/dist/bot/services/helper-prompt.js +177 -0
- package/dist/bot/services/helper-prompt.js.map +1 -0
- package/dist/bot/services/message-classifier.d.ts +16 -16
- package/dist/bot/services/message-classifier.d.ts.map +1 -1
- package/dist/bot/services/message-classifier.js +55 -49
- package/dist/bot/services/message-classifier.js.map +1 -1
- package/dist/bot/services/message-formatter.d.ts +38 -38
- package/dist/bot/services/message-formatter.d.ts.map +1 -1
- package/dist/bot/services/message-formatter.js +81 -74
- package/dist/bot/services/message-formatter.js.map +1 -1
- package/dist/bot/services/permission-guard.d.ts.map +1 -1
- package/dist/bot/services/permission-guard.js +20 -10
- package/dist/bot/services/permission-guard.js.map +1 -1
- package/dist/bot/services/signal-router.d.ts.map +1 -1
- package/dist/bot/services/signal-router.js +11 -6
- package/dist/bot/services/signal-router.js.map +1 -1
- package/dist/bot/services/system-prompt.d.ts +14 -0
- package/dist/bot/services/system-prompt.d.ts.map +1 -1
- package/dist/bot/services/system-prompt.js +179 -4
- package/dist/bot/services/system-prompt.js.map +1 -1
- package/dist/bot/services/token-billing.d.ts +23 -23
- package/dist/bot/services/token-billing.d.ts.map +1 -1
- package/dist/bot/services/token-billing.js +51 -36
- package/dist/bot/services/token-billing.js.map +1 -1
- package/dist/bot/services/types.d.ts +3 -1
- package/dist/bot/services/types.d.ts.map +1 -1
- package/dist/bot/services/typing-indicator.d.ts +8 -8
- package/dist/bot/services/typing-indicator.d.ts.map +1 -1
- package/dist/bot/services/typing-indicator.js +12 -10
- package/dist/bot/services/typing-indicator.js.map +1 -1
- package/dist/bot/services/workspace-refresh.d.ts +3 -3
- package/dist/bot/services/workspace-refresh.d.ts.map +1 -1
- package/dist/bot/services/workspace-refresh.js +23 -13
- package/dist/bot/services/workspace-refresh.js.map +1 -1
- package/dist/bot/tool-executor.d.ts +10 -6
- package/dist/bot/tool-executor.d.ts.map +1 -1
- package/dist/bot/tool-executor.js +12 -6
- package/dist/bot/tool-executor.js.map +1 -1
- package/dist/bot/workspace-overview.d.ts.map +1 -1
- package/dist/bot/workspace-overview.js +6 -3
- package/dist/bot/workspace-overview.js.map +1 -1
- package/dist/bot-config/activity-error.d.ts +47 -0
- package/dist/bot-config/activity-error.d.ts.map +1 -0
- package/dist/bot-config/activity-error.js +67 -0
- package/dist/bot-config/activity-error.js.map +1 -0
- package/dist/bot-config/context.d.ts +4 -4
- package/dist/bot-config/context.d.ts.map +1 -1
- package/dist/bot-config/context.js +18 -14
- package/dist/bot-config/context.js.map +1 -1
- package/dist/bot-config/events.d.ts +45 -0
- package/dist/bot-config/events.d.ts.map +1 -0
- package/dist/bot-config/events.js +51 -0
- package/dist/bot-config/events.js.map +1 -0
- package/dist/bot-config/index.d.ts +3 -0
- package/dist/bot-config/index.d.ts.map +1 -1
- package/dist/bot-config/index.js +8 -1
- package/dist/bot-config/index.js.map +1 -1
- package/dist/bot-config/loader.d.ts +3 -0
- package/dist/bot-config/loader.d.ts.map +1 -1
- package/dist/bot-config/loader.js +45 -20
- package/dist/bot-config/loader.js.map +1 -1
- package/dist/bot-config/persistence.js.map +1 -1
- package/dist/bot-config/reconciler.d.ts +11 -0
- package/dist/bot-config/reconciler.d.ts.map +1 -0
- package/dist/bot-config/reconciler.js +121 -0
- package/dist/bot-config/reconciler.js.map +1 -0
- package/dist/bot-config/state.d.ts.map +1 -1
- package/dist/bot-config/state.js.map +1 -1
- package/dist/bot-config/types.d.ts +32 -0
- package/dist/bot-config/types.d.ts.map +1 -1
- package/dist/bot-config/webhooks.d.ts.map +1 -1
- package/dist/bot-config/webhooks.js.map +1 -1
- package/dist/bot-config/workflow-installer.d.ts +37 -0
- package/dist/bot-config/workflow-installer.d.ts.map +1 -0
- package/dist/bot-config/workflow-installer.js +346 -0
- package/dist/bot-config/workflow-installer.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +54 -0
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +23 -19
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +65 -27
- package/dist/config.js.map +1 -1
- package/dist/core.d.ts +6 -4
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +11 -16
- package/dist/core.js.map +1 -1
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +7 -4
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/request-logger.d.ts +19 -19
- package/dist/lib/request-logger.d.ts.map +1 -1
- package/dist/lib/request-logger.js +19 -19
- package/dist/lib/request-logger.js.map +1 -1
- package/dist/mcp/UserContextCache.d.ts +28 -22
- package/dist/mcp/UserContextCache.d.ts.map +1 -1
- package/dist/mcp/UserContextCache.js +23 -23
- package/dist/mcp/UserContextCache.js.map +1 -1
- package/dist/mcp/auth.js.map +1 -1
- package/dist/mcp/hailer-clients.d.ts +5 -4
- package/dist/mcp/hailer-clients.d.ts.map +1 -1
- package/dist/mcp/hailer-clients.js +61 -27
- package/dist/mcp/hailer-clients.js.map +1 -1
- package/dist/mcp/hailer-rpc.d.ts +40 -0
- package/dist/mcp/hailer-rpc.d.ts.map +1 -0
- package/dist/mcp/hailer-rpc.js +43 -0
- package/dist/mcp/hailer-rpc.js.map +1 -0
- package/dist/mcp/publish-auth-injector.d.ts +22 -0
- package/dist/mcp/publish-auth-injector.d.ts.map +1 -0
- package/dist/mcp/publish-auth-injector.js +100 -0
- package/dist/mcp/publish-auth-injector.js.map +1 -0
- package/dist/mcp/session-store.d.ts +16 -16
- package/dist/mcp/session-store.d.ts.map +1 -1
- package/dist/mcp/session-store.js +16 -16
- package/dist/mcp/session-store.js.map +1 -1
- package/dist/mcp/tool-profiles.d.ts +69 -0
- package/dist/mcp/tool-profiles.d.ts.map +1 -0
- package/dist/mcp/tool-profiles.js +176 -0
- package/dist/mcp/tool-profiles.js.map +1 -0
- package/dist/mcp/tool-registry.d.ts +16 -0
- package/dist/mcp/tool-registry.d.ts.map +1 -1
- package/dist/mcp/tool-registry.js +91 -39
- package/dist/mcp/tool-registry.js.map +1 -1
- package/dist/mcp/tools/activity.d.ts.map +1 -1
- package/dist/mcp/tools/activity.js +398 -198
- package/dist/mcp/tools/activity.js.map +1 -1
- package/dist/mcp/tools/aliases.d.ts +11 -0
- package/dist/mcp/tools/aliases.d.ts.map +1 -0
- package/dist/mcp/tools/aliases.js +176 -0
- package/dist/mcp/tools/aliases.js.map +1 -0
- package/dist/mcp/tools/app-core.d.ts +6 -8
- package/dist/mcp/tools/app-core.d.ts.map +1 -1
- package/dist/mcp/tools/app-core.js +355 -254
- package/dist/mcp/tools/app-core.js.map +1 -1
- package/dist/mcp/tools/app-marketplace.d.ts +8 -16
- package/dist/mcp/tools/app-marketplace.d.ts.map +1 -1
- package/dist/mcp/tools/app-marketplace.js +604 -930
- package/dist/mcp/tools/app-marketplace.js.map +1 -1
- package/dist/mcp/tools/app.d.ts +4 -7
- package/dist/mcp/tools/app.d.ts.map +1 -1
- package/dist/mcp/tools/app.js +4 -7
- package/dist/mcp/tools/app.js.map +1 -1
- package/dist/mcp/tools/bot-self.d.ts +21 -0
- package/dist/mcp/tools/bot-self.d.ts.map +1 -0
- package/dist/mcp/tools/bot-self.js +174 -0
- package/dist/mcp/tools/bot-self.js.map +1 -0
- package/dist/mcp/tools/calendar.d.ts +21 -0
- package/dist/mcp/tools/calendar.d.ts.map +1 -0
- package/dist/mcp/tools/calendar.js +741 -0
- package/dist/mcp/tools/calendar.js.map +1 -0
- package/dist/mcp/tools/company.d.ts.map +1 -1
- package/dist/mcp/tools/company.js +2 -1
- package/dist/mcp/tools/company.js.map +1 -1
- package/dist/mcp/tools/date.js.map +1 -1
- package/dist/mcp/tools/discussion.d.ts +23 -3
- package/dist/mcp/tools/discussion.d.ts.map +1 -1
- package/dist/mcp/tools/discussion.js +417 -534
- package/dist/mcp/tools/discussion.js.map +1 -1
- package/dist/mcp/tools/file.d.ts.map +1 -1
- package/dist/mcp/tools/file.js +18 -16
- package/dist/mcp/tools/file.js.map +1 -1
- package/dist/mcp/tools/index.js +4 -4
- package/dist/mcp/tools/index.js.map +1 -1
- package/dist/mcp/tools/insight.d.ts +7 -5
- package/dist/mcp/tools/insight.d.ts.map +1 -1
- package/dist/mcp/tools/insight.js +419 -477
- package/dist/mcp/tools/insight.js.map +1 -1
- package/dist/mcp/tools/user.d.ts.map +1 -1
- package/dist/mcp/tools/user.js +15 -13
- package/dist/mcp/tools/user.js.map +1 -1
- package/dist/mcp/tools/workflow-permissions.d.ts +2 -4
- package/dist/mcp/tools/workflow-permissions.d.ts.map +1 -1
- package/dist/mcp/tools/workflow-permissions.js +88 -97
- package/dist/mcp/tools/workflow-permissions.js.map +1 -1
- package/dist/mcp/tools/workflow.d.ts +2 -7
- package/dist/mcp/tools/workflow.d.ts.map +1 -1
- package/dist/mcp/tools/workflow.js +817 -850
- package/dist/mcp/tools/workflow.js.map +1 -1
- package/dist/mcp/utils/api-errors.d.ts.map +1 -1
- package/dist/mcp/utils/api-errors.js +2 -2
- package/dist/mcp/utils/api-errors.js.map +1 -1
- package/dist/mcp/utils/data-transformers.d.ts.map +1 -1
- package/dist/mcp/utils/data-transformers.js +8 -4
- package/dist/mcp/utils/data-transformers.js.map +1 -1
- package/dist/mcp/utils/file-upload.d.ts.map +1 -1
- package/dist/mcp/utils/file-upload.js +1 -1
- package/dist/mcp/utils/file-upload.js.map +1 -1
- package/dist/mcp/utils/hailer-api-client.d.ts +81 -81
- package/dist/mcp/utils/hailer-api-client.d.ts.map +1 -1
- package/dist/mcp/utils/hailer-api-client.js +103 -101
- package/dist/mcp/utils/hailer-api-client.js.map +1 -1
- package/dist/mcp/utils/index.d.ts.map +1 -1
- package/dist/mcp/utils/index.js.map +1 -1
- package/dist/mcp/utils/logger.d.ts.map +1 -1
- package/dist/mcp/utils/logger.js.map +1 -1
- package/dist/mcp/utils/response-builder.d.ts.map +1 -1
- package/dist/mcp/utils/response-builder.js +8 -4
- package/dist/mcp/utils/response-builder.js.map +1 -1
- package/dist/mcp/utils/role-utils.d.ts.map +1 -1
- package/dist/mcp/utils/role-utils.js +6 -3
- package/dist/mcp/utils/role-utils.js.map +1 -1
- package/dist/mcp/utils/tool-helpers.d.ts.map +1 -1
- package/dist/mcp/utils/tool-helpers.js +2 -2
- package/dist/mcp/utils/tool-helpers.js.map +1 -1
- package/dist/mcp/utils/types.d.ts +1 -1
- package/dist/mcp/utils/types.d.ts.map +1 -1
- package/dist/mcp/utils/types.js.map +1 -1
- package/dist/mcp/webhook-handler.d.ts +43 -8
- package/dist/mcp/webhook-handler.d.ts.map +1 -1
- package/dist/mcp/webhook-handler.js +861 -116
- package/dist/mcp/webhook-handler.js.map +1 -1
- package/dist/mcp/workspace-admin-store.d.ts +49 -0
- package/dist/mcp/workspace-admin-store.d.ts.map +1 -0
- package/dist/mcp/workspace-admin-store.js +168 -0
- package/dist/mcp/workspace-admin-store.js.map +1 -0
- package/dist/mcp/workspace-cache.d.ts +2 -2
- package/dist/mcp/workspace-cache.d.ts.map +1 -1
- package/dist/mcp/workspace-cache.js +9 -5
- package/dist/mcp/workspace-cache.js.map +1 -1
- package/dist/mcp-server.d.ts +26 -11
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +360 -36
- package/dist/mcp-server.js.map +1 -1
- package/dist/plugins/vipunen/client.d.ts +41 -41
- package/dist/plugins/vipunen/client.d.ts.map +1 -1
- package/dist/plugins/vipunen/client.js +53 -48
- package/dist/plugins/vipunen/client.js.map +1 -1
- package/dist/plugins/vipunen/index.js.map +1 -1
- package/dist/plugins/vipunen/tools.d.ts.map +1 -1
- package/dist/plugins/vipunen/tools.js +6 -3
- package/dist/plugins/vipunen/tools.js.map +1 -1
- package/dist/public-chat/graduate.d.ts +29 -0
- package/dist/public-chat/graduate.d.ts.map +1 -0
- package/dist/public-chat/graduate.js +593 -0
- package/dist/public-chat/graduate.js.map +1 -0
- package/dist/public-chat/handler.d.ts +12 -0
- package/dist/public-chat/handler.d.ts.map +1 -0
- package/dist/public-chat/handler.js +179 -0
- package/dist/public-chat/handler.js.map +1 -0
- package/dist/public-chat/index.d.ts +16 -0
- package/dist/public-chat/index.d.ts.map +1 -0
- package/dist/public-chat/index.js +74 -0
- package/dist/public-chat/index.js.map +1 -0
- package/dist/public-chat/knowledge.d.ts +3 -0
- package/dist/public-chat/knowledge.d.ts.map +1 -0
- package/dist/public-chat/knowledge.js +1341 -0
- package/dist/public-chat/knowledge.js.map +1 -0
- package/dist/public-chat/rate-limit.d.ts +16 -0
- package/dist/public-chat/rate-limit.d.ts.map +1 -0
- package/dist/public-chat/rate-limit.js +51 -0
- package/dist/public-chat/rate-limit.js.map +1 -0
- package/dist/public-chat/session-store.d.ts +41 -0
- package/dist/public-chat/session-store.d.ts.map +1 -0
- package/dist/public-chat/session-store.js +95 -0
- package/dist/public-chat/session-store.js.map +1 -0
- package/dist/public-chat/studio-prewarm.d.ts +61 -0
- package/dist/public-chat/studio-prewarm.d.ts.map +1 -0
- package/dist/public-chat/studio-prewarm.js +162 -0
- package/dist/public-chat/studio-prewarm.js.map +1 -0
- package/dist/public-chat/system-prompt.d.ts +22 -0
- package/dist/public-chat/system-prompt.d.ts.map +1 -0
- package/dist/public-chat/system-prompt.js +428 -0
- package/dist/public-chat/system-prompt.js.map +1 -0
- package/package.json +14 -7
- package/scripts/build-public-chat-knowledge.py +101 -0
- package/scripts/probe-mcp-pricing.ts +52 -0
- package/scripts/smoke-public-chat-live.ts +148 -0
- package/scripts/smoke-public-chat.ts +110 -0
- package/.claude/CLAUDE.md +0 -126
- package/.claude/commands/app-squad.md +0 -131
- package/.claude/commands/audit-squad.md +0 -158
- package/.claude/commands/cleanup-squad.md +0 -98
- package/.claude/commands/config-squad.md +0 -106
- package/.claude/commands/crud-squad.md +0 -87
- package/.claude/commands/data-squad.md +0 -97
- package/.claude/commands/doc-squad.md +0 -65
- package/.claude/commands/help.md +0 -29
- package/.claude/commands/help:agents.md +0 -182
- package/.claude/commands/help:commands.md +0 -78
- package/.claude/commands/help:faq.md +0 -79
- package/.claude/commands/help:plugins.md +0 -50
- package/.claude/commands/help:skills.md +0 -87
- package/.claude/commands/help:tools.md +0 -75
- package/.claude/commands/hotfix-squad.md +0 -112
- package/.claude/commands/integration-squad.md +0 -82
- package/.claude/commands/janitor-squad.md +0 -167
- package/.claude/commands/onboard-squad.md +0 -130
- package/.claude/commands/swarm.md +0 -210
- package/.claude/commands/tool-builder.md +0 -39
- package/.claude/skills/publish-hailer-app/SKILL.md +0 -280
- package/dist/CLAUDE.md +0 -370
- package/dist/agents/bot-manager.d.ts +0 -48
- package/dist/agents/bot-manager.d.ts.map +0 -1
- package/dist/agents/bot-manager.js +0 -254
- package/dist/agents/bot-manager.js.map +0 -1
- package/dist/agents/bug-fixer/ai.d.ts +0 -80
- package/dist/agents/bug-fixer/ai.d.ts.map +0 -1
- package/dist/agents/bug-fixer/ai.js +0 -466
- package/dist/agents/bug-fixer/ai.js.map +0 -1
- package/dist/agents/bug-fixer/bot.d.ts +0 -92
- package/dist/agents/bug-fixer/bot.d.ts.map +0 -1
- package/dist/agents/bug-fixer/bot.js +0 -687
- package/dist/agents/bug-fixer/bot.js.map +0 -1
- package/dist/agents/bug-fixer/config.d.ts +0 -21
- package/dist/agents/bug-fixer/config.d.ts.map +0 -1
- package/dist/agents/bug-fixer/config.js +0 -218
- package/dist/agents/bug-fixer/config.js.map +0 -1
- package/dist/agents/bug-fixer/files.d.ts +0 -67
- package/dist/agents/bug-fixer/files.d.ts.map +0 -1
- package/dist/agents/bug-fixer/files.js +0 -386
- package/dist/agents/bug-fixer/files.js.map +0 -1
- package/dist/agents/bug-fixer/git.d.ts +0 -48
- package/dist/agents/bug-fixer/git.d.ts.map +0 -1
- package/dist/agents/bug-fixer/git.js +0 -298
- package/dist/agents/bug-fixer/git.js.map +0 -1
- package/dist/agents/bug-fixer/index.d.ts +0 -103
- package/dist/agents/bug-fixer/index.d.ts.map +0 -1
- package/dist/agents/bug-fixer/index.js +0 -262
- package/dist/agents/bug-fixer/index.js.map +0 -1
- package/dist/agents/bug-fixer/lsp.d.ts +0 -113
- package/dist/agents/bug-fixer/lsp.d.ts.map +0 -1
- package/dist/agents/bug-fixer/lsp.js +0 -485
- package/dist/agents/bug-fixer/lsp.js.map +0 -1
- package/dist/agents/bug-fixer/monitor.d.ts +0 -123
- package/dist/agents/bug-fixer/monitor.d.ts.map +0 -1
- package/dist/agents/bug-fixer/monitor.js +0 -629
- package/dist/agents/bug-fixer/monitor.js.map +0 -1
- package/dist/agents/bug-fixer/prompt.d.ts +0 -5
- package/dist/agents/bug-fixer/prompt.d.ts.map +0 -1
- package/dist/agents/bug-fixer/prompt.js +0 -94
- package/dist/agents/bug-fixer/prompt.js.map +0 -1
- package/dist/agents/bug-fixer/registries/pending-classification.d.ts +0 -28
- package/dist/agents/bug-fixer/registries/pending-classification.d.ts.map +0 -1
- package/dist/agents/bug-fixer/registries/pending-classification.js +0 -50
- package/dist/agents/bug-fixer/registries/pending-classification.js.map +0 -1
- package/dist/agents/bug-fixer/registries/pending-fix.d.ts +0 -33
- package/dist/agents/bug-fixer/registries/pending-fix.d.ts.map +0 -1
- package/dist/agents/bug-fixer/registries/pending-fix.js +0 -64
- package/dist/agents/bug-fixer/registries/pending-fix.js.map +0 -1
- package/dist/agents/bug-fixer/registries/pending.d.ts +0 -27
- package/dist/agents/bug-fixer/registries/pending.d.ts.map +0 -1
- package/dist/agents/bug-fixer/registries/pending.js +0 -49
- package/dist/agents/bug-fixer/registries/pending.js.map +0 -1
- package/dist/agents/bug-fixer/specialist-daemon.d.ts +0 -88
- package/dist/agents/bug-fixer/specialist-daemon.d.ts.map +0 -1
- package/dist/agents/bug-fixer/specialist-daemon.js +0 -431
- package/dist/agents/bug-fixer/specialist-daemon.js.map +0 -1
- package/dist/agents/bug-fixer/specialist.d.ts +0 -47
- package/dist/agents/bug-fixer/specialist.d.ts.map +0 -1
- package/dist/agents/bug-fixer/specialist.js +0 -327
- package/dist/agents/bug-fixer/specialist.js.map +0 -1
- package/dist/agents/bug-fixer/types.d.ts +0 -123
- package/dist/agents/bug-fixer/types.d.ts.map +0 -1
- package/dist/agents/bug-fixer/types.js +0 -9
- package/dist/agents/bug-fixer/types.js.map +0 -1
- package/dist/agents/factory.d.ts +0 -172
- package/dist/agents/factory.d.ts.map +0 -1
- package/dist/agents/factory.js +0 -706
- package/dist/agents/factory.js.map +0 -1
- package/dist/agents/hailer-expert/index.d.ts +0 -8
- package/dist/agents/hailer-expert/index.d.ts.map +0 -1
- package/dist/agents/hailer-expert/index.js +0 -14
- package/dist/agents/hailer-expert/index.js.map +0 -1
- package/dist/agents/hal/daemon.d.ts +0 -174
- package/dist/agents/hal/daemon.d.ts.map +0 -1
- package/dist/agents/hal/daemon.js +0 -1385
- package/dist/agents/hal/daemon.js.map +0 -1
- package/dist/agents/hal/definitions.d.ts +0 -42
- package/dist/agents/hal/definitions.d.ts.map +0 -1
- package/dist/agents/hal/definitions.js +0 -300
- package/dist/agents/hal/definitions.js.map +0 -1
- package/dist/agents/hal/index.d.ts +0 -3
- package/dist/agents/hal/index.d.ts.map +0 -1
- package/dist/agents/hal/index.js +0 -8
- package/dist/agents/hal/index.js.map +0 -1
- package/dist/agents/index.d.ts +0 -18
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js +0 -48
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/shared/base.d.ts +0 -253
- package/dist/agents/shared/base.d.ts.map +0 -1
- package/dist/agents/shared/base.js +0 -1122
- package/dist/agents/shared/base.js.map +0 -1
- package/dist/agents/shared/schemas/action-schema.d.ts +0 -62
- package/dist/agents/shared/schemas/action-schema.d.ts.map +0 -1
- package/dist/agents/shared/schemas/action-schema.js +0 -483
- package/dist/agents/shared/schemas/action-schema.js.map +0 -1
- package/dist/agents/shared/services/agent-registry.d.ts +0 -108
- package/dist/agents/shared/services/agent-registry.d.ts.map +0 -1
- package/dist/agents/shared/services/agent-registry.js +0 -469
- package/dist/agents/shared/services/agent-registry.js.map +0 -1
- package/dist/agents/shared/services/conversation-manager.d.ts +0 -57
- package/dist/agents/shared/services/conversation-manager.d.ts.map +0 -1
- package/dist/agents/shared/services/conversation-manager.js +0 -168
- package/dist/agents/shared/services/conversation-manager.js.map +0 -1
- package/dist/agents/shared/services/mcp-client.d.ts +0 -56
- package/dist/agents/shared/services/mcp-client.d.ts.map +0 -1
- package/dist/agents/shared/services/mcp-client.js +0 -124
- package/dist/agents/shared/services/mcp-client.js.map +0 -1
- package/dist/agents/shared/services/message-classifier.d.ts +0 -37
- package/dist/agents/shared/services/message-classifier.d.ts.map +0 -1
- package/dist/agents/shared/services/message-classifier.js +0 -203
- package/dist/agents/shared/services/message-classifier.js.map +0 -1
- package/dist/agents/shared/services/message-formatter.d.ts +0 -89
- package/dist/agents/shared/services/message-formatter.d.ts.map +0 -1
- package/dist/agents/shared/services/message-formatter.js +0 -390
- package/dist/agents/shared/services/message-formatter.js.map +0 -1
- package/dist/agents/shared/services/session-logger.d.ts +0 -162
- package/dist/agents/shared/services/session-logger.d.ts.map +0 -1
- package/dist/agents/shared/services/session-logger.js +0 -724
- package/dist/agents/shared/services/session-logger.js.map +0 -1
- package/dist/agents/shared/services/structured-output-executor.d.ts +0 -88
- package/dist/agents/shared/services/structured-output-executor.d.ts.map +0 -1
- package/dist/agents/shared/services/structured-output-executor.js +0 -296
- package/dist/agents/shared/services/structured-output-executor.js.map +0 -1
- package/dist/agents/shared/services/token-billing.d.ts +0 -72
- package/dist/agents/shared/services/token-billing.d.ts.map +0 -1
- package/dist/agents/shared/services/token-billing.js +0 -198
- package/dist/agents/shared/services/token-billing.js.map +0 -1
- package/dist/agents/shared/services/tool-executor.d.ts +0 -43
- package/dist/agents/shared/services/tool-executor.d.ts.map +0 -1
- package/dist/agents/shared/services/tool-executor.js +0 -175
- package/dist/agents/shared/services/tool-executor.js.map +0 -1
- package/dist/agents/shared/services/typing-indicator.d.ts +0 -24
- package/dist/agents/shared/services/typing-indicator.d.ts.map +0 -1
- package/dist/agents/shared/services/typing-indicator.js +0 -54
- package/dist/agents/shared/services/typing-indicator.js.map +0 -1
- package/dist/agents/shared/services/workspace-schema-cache.d.ts +0 -122
- package/dist/agents/shared/services/workspace-schema-cache.d.ts.map +0 -1
- package/dist/agents/shared/services/workspace-schema-cache.js +0 -507
- package/dist/agents/shared/services/workspace-schema-cache.js.map +0 -1
- package/dist/agents/shared/specialist.d.ts +0 -91
- package/dist/agents/shared/specialist.d.ts.map +0 -1
- package/dist/agents/shared/specialist.js +0 -399
- package/dist/agents/shared/specialist.js.map +0 -1
- package/dist/agents/shared/tool-schema-loader.d.ts +0 -65
- package/dist/agents/shared/tool-schema-loader.d.ts.map +0 -1
- package/dist/agents/shared/tool-schema-loader.js +0 -238
- package/dist/agents/shared/tool-schema-loader.js.map +0 -1
- package/dist/agents/shared/types.d.ts +0 -190
- package/dist/agents/shared/types.d.ts.map +0 -1
- package/dist/agents/shared/types.js +0 -13
- package/dist/agents/shared/types.js.map +0 -1
- package/dist/bot/bot-config.d.ts +0 -37
- package/dist/bot/bot-config.d.ts.map +0 -1
- package/dist/bot/bot-config.js +0 -219
- package/dist/bot/bot-config.js.map +0 -1
- package/dist/bot/services/__tests__/permission-guard.test.d.ts +0 -2
- package/dist/bot/services/__tests__/permission-guard.test.d.ts.map +0 -1
- package/dist/bot/services/__tests__/permission-guard.test.js +0 -357
- package/dist/bot/services/__tests__/permission-guard.test.js.map +0 -1
- package/dist/bot/services/session-logger.d.ts +0 -162
- package/dist/bot/services/session-logger.d.ts.map +0 -1
- package/dist/bot/services/session-logger.js +0 -724
- package/dist/bot/services/session-logger.js.map +0 -1
- package/dist/bot/services/workspace-schema-cache.d.ts +0 -122
- package/dist/bot/services/workspace-schema-cache.d.ts.map +0 -1
- package/dist/bot/services/workspace-schema-cache.js +0 -506
- package/dist/bot/services/workspace-schema-cache.js.map +0 -1
- package/dist/bot-config/tools.d.ts +0 -28
- package/dist/bot-config/tools.d.ts.map +0 -1
- package/dist/bot-config/tools.js +0 -279
- package/dist/bot-config/tools.js.map +0 -1
- package/dist/client/agents/base.d.ts +0 -207
- package/dist/client/agents/base.d.ts.map +0 -1
- package/dist/client/agents/base.js +0 -744
- package/dist/client/agents/base.js.map +0 -1
- package/dist/client/agents/definitions.d.ts +0 -53
- package/dist/client/agents/definitions.d.ts.map +0 -1
- package/dist/client/agents/definitions.js +0 -263
- package/dist/client/agents/definitions.js.map +0 -1
- package/dist/client/agents/orchestrator.d.ts +0 -141
- package/dist/client/agents/orchestrator.d.ts.map +0 -1
- package/dist/client/agents/orchestrator.js +0 -1062
- package/dist/client/agents/orchestrator.js.map +0 -1
- package/dist/client/agents/specialist.d.ts +0 -86
- package/dist/client/agents/specialist.d.ts.map +0 -1
- package/dist/client/agents/specialist.js +0 -340
- package/dist/client/agents/specialist.js.map +0 -1
- package/dist/client/bot-entrypoint.d.ts +0 -7
- package/dist/client/bot-entrypoint.d.ts.map +0 -1
- package/dist/client/bot-entrypoint.js +0 -103
- package/dist/client/bot-entrypoint.js.map +0 -1
- package/dist/client/bot-manager.d.ts +0 -44
- package/dist/client/bot-manager.d.ts.map +0 -1
- package/dist/client/bot-manager.js +0 -173
- package/dist/client/bot-manager.js.map +0 -1
- package/dist/client/bot-runner.d.ts +0 -35
- package/dist/client/bot-runner.d.ts.map +0 -1
- package/dist/client/bot-runner.js +0 -188
- package/dist/client/bot-runner.js.map +0 -1
- package/dist/client/chat-agent-daemon.d.ts +0 -464
- package/dist/client/chat-agent-daemon.d.ts.map +0 -1
- package/dist/client/chat-agent-daemon.js +0 -1774
- package/dist/client/chat-agent-daemon.js.map +0 -1
- package/dist/client/daemon-factory.d.ts +0 -106
- package/dist/client/daemon-factory.d.ts.map +0 -1
- package/dist/client/daemon-factory.js +0 -301
- package/dist/client/daemon-factory.js.map +0 -1
- package/dist/client/factory.d.ts +0 -111
- package/dist/client/factory.d.ts.map +0 -1
- package/dist/client/factory.js +0 -314
- package/dist/client/factory.js.map +0 -1
- package/dist/client/index.d.ts +0 -17
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js +0 -38
- package/dist/client/index.js.map +0 -1
- package/dist/client/multi-bot-manager.d.ts +0 -42
- package/dist/client/multi-bot-manager.d.ts.map +0 -1
- package/dist/client/multi-bot-manager.js +0 -161
- package/dist/client/multi-bot-manager.js.map +0 -1
- package/dist/client/orchestrator-daemon.d.ts +0 -87
- package/dist/client/orchestrator-daemon.d.ts.map +0 -1
- package/dist/client/orchestrator-daemon.js +0 -444
- package/dist/client/orchestrator-daemon.js.map +0 -1
- package/dist/client/server.d.ts +0 -8
- package/dist/client/server.d.ts.map +0 -1
- package/dist/client/server.js +0 -251
- package/dist/client/server.js.map +0 -1
- package/dist/client/services/agent-registry.d.ts +0 -108
- package/dist/client/services/agent-registry.d.ts.map +0 -1
- package/dist/client/services/agent-registry.js +0 -630
- package/dist/client/services/agent-registry.js.map +0 -1
- package/dist/client/services/conversation-manager.d.ts +0 -50
- package/dist/client/services/conversation-manager.d.ts.map +0 -1
- package/dist/client/services/conversation-manager.js +0 -136
- package/dist/client/services/conversation-manager.js.map +0 -1
- package/dist/client/services/mcp-client.d.ts +0 -48
- package/dist/client/services/mcp-client.d.ts.map +0 -1
- package/dist/client/services/mcp-client.js +0 -105
- package/dist/client/services/mcp-client.js.map +0 -1
- package/dist/client/services/message-classifier.d.ts +0 -37
- package/dist/client/services/message-classifier.d.ts.map +0 -1
- package/dist/client/services/message-classifier.js +0 -187
- package/dist/client/services/message-classifier.js.map +0 -1
- package/dist/client/services/message-formatter.d.ts +0 -84
- package/dist/client/services/message-formatter.d.ts.map +0 -1
- package/dist/client/services/message-formatter.js +0 -353
- package/dist/client/services/message-formatter.js.map +0 -1
- package/dist/client/services/session-logger.d.ts +0 -106
- package/dist/client/services/session-logger.d.ts.map +0 -1
- package/dist/client/services/session-logger.js +0 -446
- package/dist/client/services/session-logger.js.map +0 -1
- package/dist/client/services/tool-executor.d.ts +0 -41
- package/dist/client/services/tool-executor.d.ts.map +0 -1
- package/dist/client/services/tool-executor.js +0 -169
- package/dist/client/services/tool-executor.js.map +0 -1
- package/dist/client/services/workspace-schema-cache.d.ts +0 -149
- package/dist/client/services/workspace-schema-cache.d.ts.map +0 -1
- package/dist/client/services/workspace-schema-cache.js +0 -732
- package/dist/client/services/workspace-schema-cache.js.map +0 -1
- package/dist/client/specialist-daemon.d.ts +0 -77
- package/dist/client/specialist-daemon.d.ts.map +0 -1
- package/dist/client/specialist-daemon.js +0 -197
- package/dist/client/specialist-daemon.js.map +0 -1
- package/dist/client/specialists.d.ts +0 -53
- package/dist/client/specialists.d.ts.map +0 -1
- package/dist/client/specialists.js +0 -178
- package/dist/client/specialists.js.map +0 -1
- package/dist/client/tool-schema-loader.d.ts +0 -62
- package/dist/client/tool-schema-loader.d.ts.map +0 -1
- package/dist/client/tool-schema-loader.js +0 -232
- package/dist/client/tool-schema-loader.js.map +0 -1
- package/dist/client/types.d.ts +0 -327
- package/dist/client/types.d.ts.map +0 -1
- package/dist/client/types.js +0 -121
- package/dist/client/types.js.map +0 -1
- package/dist/commands/seed-config.d.ts +0 -9
- package/dist/commands/seed-config.d.ts.map +0 -1
- package/dist/commands/seed-config.js +0 -377
- package/dist/commands/seed-config.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -11
- package/dist/commands/setup.d.ts.map +0 -1
- package/dist/commands/setup.js +0 -320
- package/dist/commands/setup.js.map +0 -1
- package/dist/lib/discussion-lock.d.ts +0 -42
- package/dist/lib/discussion-lock.d.ts.map +0 -1
- package/dist/lib/discussion-lock.js +0 -110
- package/dist/lib/discussion-lock.js.map +0 -1
- package/dist/mcp/signal-handler.d.ts +0 -82
- package/dist/mcp/signal-handler.d.ts.map +0 -1
- package/dist/mcp/signal-handler.js +0 -406
- package/dist/mcp/signal-handler.js.map +0 -1
- package/dist/mcp/tools/__tests__/discussion-forward.test.d.ts +0 -2
- package/dist/mcp/tools/__tests__/discussion-forward.test.d.ts.map +0 -1
- package/dist/mcp/tools/__tests__/discussion-forward.test.js +0 -218
- package/dist/mcp/tools/__tests__/discussion-forward.test.js.map +0 -1
- package/dist/mcp/tools/app-member.d.ts +0 -14
- package/dist/mcp/tools/app-member.d.ts.map +0 -1
- package/dist/mcp/tools/app-member.js +0 -195
- package/dist/mcp/tools/app-member.js.map +0 -1
- package/dist/mcp/tools/app-scaffold.d.ts +0 -14
- package/dist/mcp/tools/app-scaffold.d.ts.map +0 -1
- package/dist/mcp/tools/app-scaffold.js +0 -581
- package/dist/mcp/tools/app-scaffold.js.map +0 -1
- package/dist/mcp/tools/bot-config/constants.d.ts +0 -23
- package/dist/mcp/tools/bot-config/constants.d.ts.map +0 -1
- package/dist/mcp/tools/bot-config/constants.js +0 -94
- package/dist/mcp/tools/bot-config/constants.js.map +0 -1
- package/dist/mcp/tools/bot-config/core.d.ts +0 -253
- package/dist/mcp/tools/bot-config/core.d.ts.map +0 -1
- package/dist/mcp/tools/bot-config/core.js +0 -2456
- package/dist/mcp/tools/bot-config/core.js.map +0 -1
- package/dist/mcp/tools/bot-config/index.d.ts +0 -10
- package/dist/mcp/tools/bot-config/index.d.ts.map +0 -1
- package/dist/mcp/tools/bot-config/index.js +0 -59
- package/dist/mcp/tools/bot-config/index.js.map +0 -1
- package/dist/mcp/tools/bot-config/tools.d.ts +0 -7
- package/dist/mcp/tools/bot-config/tools.d.ts.map +0 -1
- package/dist/mcp/tools/bot-config/tools.js +0 -15
- package/dist/mcp/tools/bot-config/tools.js.map +0 -1
- package/dist/mcp/tools/bot-config/types.d.ts +0 -50
- package/dist/mcp/tools/bot-config/types.d.ts.map +0 -1
- package/dist/mcp/tools/bot-config/types.js +0 -6
- package/dist/mcp/tools/bot-config/types.js.map +0 -1
- package/dist/mcp/tools/bug-fixer-tools.d.ts +0 -45
- package/dist/mcp/tools/bug-fixer-tools.d.ts.map +0 -1
- package/dist/mcp/tools/bug-fixer-tools.js +0 -1096
- package/dist/mcp/tools/bug-fixer-tools.js.map +0 -1
- package/dist/mcp/tools/document.d.ts +0 -11
- package/dist/mcp/tools/document.d.ts.map +0 -1
- package/dist/mcp/tools/document.js +0 -741
- package/dist/mcp/tools/document.js.map +0 -1
- package/dist/mcp/tools/investigate.d.ts +0 -9
- package/dist/mcp/tools/investigate.d.ts.map +0 -1
- package/dist/mcp/tools/investigate.js +0 -254
- package/dist/mcp/tools/investigate.js.map +0 -1
- package/dist/mcp/utils/pagination.d.ts +0 -40
- package/dist/mcp/utils/pagination.d.ts.map +0 -1
- package/dist/mcp/utils/pagination.js +0 -55
- package/dist/mcp/utils/pagination.js.map +0 -1
- package/dist/modules/bug-reports/bug-config.d.ts +0 -25
- package/dist/modules/bug-reports/bug-config.d.ts.map +0 -1
- package/dist/modules/bug-reports/bug-config.js +0 -187
- package/dist/modules/bug-reports/bug-config.js.map +0 -1
- package/dist/modules/bug-reports/bug-monitor.d.ts +0 -108
- package/dist/modules/bug-reports/bug-monitor.d.ts.map +0 -1
- package/dist/modules/bug-reports/bug-monitor.js +0 -510
- package/dist/modules/bug-reports/bug-monitor.js.map +0 -1
- package/dist/modules/bug-reports/giuseppe-agent.d.ts +0 -58
- package/dist/modules/bug-reports/giuseppe-agent.d.ts.map +0 -1
- package/dist/modules/bug-reports/giuseppe-agent.js +0 -467
- package/dist/modules/bug-reports/giuseppe-agent.js.map +0 -1
- package/dist/modules/bug-reports/giuseppe-ai.d.ts +0 -83
- package/dist/modules/bug-reports/giuseppe-ai.d.ts.map +0 -1
- package/dist/modules/bug-reports/giuseppe-ai.js +0 -466
- package/dist/modules/bug-reports/giuseppe-ai.js.map +0 -1
- package/dist/modules/bug-reports/giuseppe-bot.d.ts +0 -110
- package/dist/modules/bug-reports/giuseppe-bot.d.ts.map +0 -1
- package/dist/modules/bug-reports/giuseppe-bot.js +0 -804
- package/dist/modules/bug-reports/giuseppe-bot.js.map +0 -1
- package/dist/modules/bug-reports/giuseppe-daemon.d.ts +0 -80
- package/dist/modules/bug-reports/giuseppe-daemon.d.ts.map +0 -1
- package/dist/modules/bug-reports/giuseppe-daemon.js +0 -617
- package/dist/modules/bug-reports/giuseppe-daemon.js.map +0 -1
- package/dist/modules/bug-reports/giuseppe-files.d.ts +0 -64
- package/dist/modules/bug-reports/giuseppe-files.d.ts.map +0 -1
- package/dist/modules/bug-reports/giuseppe-files.js +0 -375
- package/dist/modules/bug-reports/giuseppe-files.js.map +0 -1
- package/dist/modules/bug-reports/giuseppe-git.d.ts +0 -48
- package/dist/modules/bug-reports/giuseppe-git.d.ts.map +0 -1
- package/dist/modules/bug-reports/giuseppe-git.js +0 -298
- package/dist/modules/bug-reports/giuseppe-git.js.map +0 -1
- package/dist/modules/bug-reports/giuseppe-lsp.d.ts +0 -113
- package/dist/modules/bug-reports/giuseppe-lsp.d.ts.map +0 -1
- package/dist/modules/bug-reports/giuseppe-lsp.js +0 -485
- package/dist/modules/bug-reports/giuseppe-lsp.js.map +0 -1
- package/dist/modules/bug-reports/giuseppe-prompt.d.ts +0 -5
- package/dist/modules/bug-reports/giuseppe-prompt.d.ts.map +0 -1
- package/dist/modules/bug-reports/giuseppe-prompt.js +0 -94
- package/dist/modules/bug-reports/giuseppe-prompt.js.map +0 -1
- package/dist/modules/bug-reports/index.d.ts +0 -77
- package/dist/modules/bug-reports/index.d.ts.map +0 -1
- package/dist/modules/bug-reports/index.js +0 -215
- package/dist/modules/bug-reports/index.js.map +0 -1
- package/dist/modules/bug-reports/pending-classification-registry.d.ts +0 -28
- package/dist/modules/bug-reports/pending-classification-registry.d.ts.map +0 -1
- package/dist/modules/bug-reports/pending-classification-registry.js +0 -50
- package/dist/modules/bug-reports/pending-classification-registry.js.map +0 -1
- package/dist/modules/bug-reports/pending-fix-registry.d.ts +0 -30
- package/dist/modules/bug-reports/pending-fix-registry.d.ts.map +0 -1
- package/dist/modules/bug-reports/pending-fix-registry.js +0 -42
- package/dist/modules/bug-reports/pending-fix-registry.js.map +0 -1
- package/dist/modules/bug-reports/pending-registry.d.ts +0 -27
- package/dist/modules/bug-reports/pending-registry.d.ts.map +0 -1
- package/dist/modules/bug-reports/pending-registry.js +0 -49
- package/dist/modules/bug-reports/pending-registry.js.map +0 -1
- package/dist/modules/bug-reports/types.d.ts +0 -123
- package/dist/modules/bug-reports/types.d.ts.map +0 -1
- package/dist/modules/bug-reports/types.js +0 -9
- package/dist/modules/bug-reports/types.js.map +0 -1
- package/dist/plugins/bug-fixer/index.d.ts +0 -2
- package/dist/plugins/bug-fixer/index.d.ts.map +0 -1
- package/dist/plugins/bug-fixer/index.js +0 -18
- package/dist/plugins/bug-fixer/index.js.map +0 -1
- package/dist/plugins/bug-fixer/tools.d.ts +0 -45
- package/dist/plugins/bug-fixer/tools.d.ts.map +0 -1
- package/dist/plugins/bug-fixer/tools.js +0 -1096
- package/dist/plugins/bug-fixer/tools.js.map +0 -1
- package/dist/plugins/vipunen/__tests__/tools.test.d.ts +0 -10
- package/dist/plugins/vipunen/__tests__/tools.test.d.ts.map +0 -1
- package/dist/plugins/vipunen/__tests__/tools.test.js +0 -646
- package/dist/plugins/vipunen/__tests__/tools.test.js.map +0 -1
- package/dist/routes/agents.d.ts +0 -44
- package/dist/routes/agents.d.ts.map +0 -1
- package/dist/routes/agents.js +0 -311
- package/dist/routes/agents.js.map +0 -1
- package/dist/services/agent-credential-store.d.ts +0 -73
- package/dist/services/agent-credential-store.d.ts.map +0 -1
- package/dist/services/agent-credential-store.js +0 -212
- package/dist/services/agent-credential-store.js.map +0 -1
- package/dist/stdio-server.d.ts +0 -14
- package/dist/stdio-server.d.ts.map +0 -1
- package/dist/stdio-server.js +0 -101
- package/dist/stdio-server.js.map +0 -1
- package/dist/workspace/context.d.ts +0 -148
- package/dist/workspace/context.d.ts.map +0 -1
- package/dist/workspace/context.js +0 -339
- package/dist/workspace/context.js.map +0 -1
- package/dist/workspace/credentials.d.ts +0 -55
- package/dist/workspace/credentials.d.ts.map +0 -1
- package/dist/workspace/credentials.js +0 -239
- package/dist/workspace/credentials.js.map +0 -1
- package/dist/workspace/index.d.ts +0 -21
- package/dist/workspace/index.d.ts.map +0 -1
- package/dist/workspace/index.js +0 -45
- package/dist/workspace/index.js.map +0 -1
- package/dist/workspace/loader.d.ts +0 -27
- package/dist/workspace/loader.d.ts.map +0 -1
- package/dist/workspace/loader.js +0 -222
- package/dist/workspace/loader.js.map +0 -1
- package/dist/workspace/schema.d.ts +0 -37
- package/dist/workspace/schema.d.ts.map +0 -1
- package/dist/workspace/schema.js +0 -192
- package/dist/workspace/schema.js.map +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-hailer-helper
|
|
3
|
+
description: Onboarding assistant for new Hailer users - provides contextual UI guidance
|
|
4
|
+
model: haiku
|
|
5
|
+
tools: mcp__hailer__list_workflows, mcp__hailer__list_workflows_minimal, mcp__hailer__get_workflow_schema, mcp__hailer__list_workflow_phases, mcp__hailer__list_activities, mcp__hailer__show_activity_by_id, mcp__hailer__create_activity, mcp__hailer__update_activity, mcp__hailer__count_activities, mcp__hailer__search_workspace_users, mcp__hailer__list_my_discussions, mcp__hailer__fetch_discussion_messages, mcp__hailer__fetch_previous_discussion_messages, mcp__hailer__join_discussion, mcp__hailer__leave_discussion, mcp__hailer__add_discussion_message, mcp__hailer__invite_discussion_members, mcp__hailer__get_activity_from_discussion, mcp__hailer__create_insight, mcp__hailer__preview_insight, mcp__hailer__get_insight_data, mcp__hailer__update_insight, mcp__hailer__remove_insight, mcp__hailer__list_insights, mcp__hailer__upload_files, mcp__hailer__download_file, mcp__hailer__set_user_role, mcp__hailer__list_workflow_permissions, mcp__hailer__grant_workflow_permission, mcp__hailer__revoke_workflow_permission, mcp__hailer__check_user_permissions, mcp__hailer__install_workflow, mcp__hailer__remove_workflow, mcp__hailer__update_workflow_field, mcp__hailer__test_function_field, mcp__hailer__get_workspace_balance, mcp__hailer__core_init
|
|
6
|
+
skills:
|
|
7
|
+
- hailer-ui-guide
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<identity>
|
|
11
|
+
I am a friendly assistant helping new Hailer users navigate the platform. I understand the UI deeply and give specific, actionable instructions like "click the blue Save button in the bottom right corner".
|
|
12
|
+
</identity>
|
|
13
|
+
|
|
14
|
+
<handles>
|
|
15
|
+
- Explaining where to click and what buttons do
|
|
16
|
+
- Guiding users through creating, editing, moving activities
|
|
17
|
+
- Explaining Hailer concepts (workflow, phase, activity, field)
|
|
18
|
+
- Troubleshooting "I can't find/see/do X" problems
|
|
19
|
+
- Teaching users how Hailer works, not just giving commands
|
|
20
|
+
</handles>
|
|
21
|
+
|
|
22
|
+
<context-format>
|
|
23
|
+
User context is provided as JSON with their current location and state:
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
interface AIHelperContext {
|
|
27
|
+
location: {
|
|
28
|
+
section: 'activities' | 'discussions' | 'events' | 'feed' | 'people' | 'settings' | 'apps' | 'home';
|
|
29
|
+
url: string;
|
|
30
|
+
};
|
|
31
|
+
user: {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
role: 'admin' | 'user' | 'guest';
|
|
35
|
+
workspaceId: string;
|
|
36
|
+
workspaceName: string;
|
|
37
|
+
};
|
|
38
|
+
view?: {
|
|
39
|
+
mode: 'kanban' | 'table' | 'calendar' | 'timeline' | 'map' | 'list';
|
|
40
|
+
workflowId: string;
|
|
41
|
+
workflowName: string;
|
|
42
|
+
phases: { id: string; name: string; position: number }[];
|
|
43
|
+
};
|
|
44
|
+
sidenav?: {
|
|
45
|
+
open: boolean;
|
|
46
|
+
type: 'activity' | 'discussion' | 'event' | 'user' | null;
|
|
47
|
+
mode: 'view' | 'edit' | 'create';
|
|
48
|
+
activeTab: 'detail' | 'participants' | 'discussion' | 'files' | 'location' | 'linkedFrom' | 'options' | null;
|
|
49
|
+
activity?: { id: string; name: string; phaseId: string; phaseName: string };
|
|
50
|
+
buttons: ('save' | 'cancel' | 'edit' | 'delete' | 'join')[];
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
</context-format>
|
|
55
|
+
|
|
56
|
+
<response-style>
|
|
57
|
+
## How to respond
|
|
58
|
+
|
|
59
|
+
**Be specific:** "Click the Save button in the bottom right" not "save the activity"
|
|
60
|
+
|
|
61
|
+
**Reference visible elements:** Use context to mention what user can see:
|
|
62
|
+
- If `sidenav.buttons` includes 'save' → "Click the Save button you see at the bottom"
|
|
63
|
+
- If `view.phases` has data → "Drag to the '{phaseName}' column on the right"
|
|
64
|
+
|
|
65
|
+
**Explain concepts simply:**
|
|
66
|
+
- Phase = "column on the kanban board, like stages of work"
|
|
67
|
+
- Activity = "a card or task in your workflow"
|
|
68
|
+
- Workflow = "the whole board with all its columns"
|
|
69
|
+
|
|
70
|
+
**One step at a time:** Don't overwhelm with long instructions
|
|
71
|
+
|
|
72
|
+
**Be encouraging:** "Great question!" "That's easy to do"
|
|
73
|
+
</response-style>
|
|
74
|
+
|
|
75
|
+
<examples>
|
|
76
|
+
## Example interactions
|
|
77
|
+
|
|
78
|
+
**User asks:** "How do I close this deal?"
|
|
79
|
+
**Context:** `view.workflowName: "Sales", sidenav.activity.phaseName: "Negotiation", view.phases: [{name:"New"}, {name:"Qualified"}, {name:"Negotiation"}, {name:"Closed Won"}, {name:"Closed Lost"}]`
|
|
80
|
+
|
|
81
|
+
**Response:** "To close the deal, drag this card to the 'Closed Won' column on the right. Or click the phase badge at the top of this panel and select 'Closed Won' from the dropdown."
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
**User asks:** "Where do I save?"
|
|
86
|
+
**Context:** `sidenav.mode: "edit", sidenav.buttons: ["save", "cancel"]`
|
|
87
|
+
|
|
88
|
+
**Response:** "Click the blue 'Save' button in the bottom right corner of the panel. You'll see it next to the 'Cancel' button."
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
**User asks:** "I can't see any workflows"
|
|
93
|
+
**Context:** `user.role: "user", location.section: "activities"`
|
|
94
|
+
|
|
95
|
+
**Response:** "You might not have access to any workflows yet. Ask your workspace admin to add you to a workflow. They can do this in the workflow settings under 'Permissions'."
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
**User asks:** "What is a phase?"
|
|
100
|
+
**Context:** `view.mode: "kanban", view.phases: [{name:"New"}, {name:"In Progress"}, {name:"Done"}]`
|
|
101
|
+
|
|
102
|
+
**Response:** "Phases are the columns you see on this board - 'New', 'In Progress', and 'Done'. Think of them as stages of work. When a task moves forward, you drag it to the next column. It's like moving a sticky note across a whiteboard!"
|
|
103
|
+
</examples>
|
|
104
|
+
|
|
105
|
+
<rules>
|
|
106
|
+
1. ALWAYS use context to give specific instructions
|
|
107
|
+
2. NEVER say "go to settings" without checking user.role is admin
|
|
108
|
+
3. ALWAYS mention visible buttons/elements from context
|
|
109
|
+
4. Use phase names from context, not generic examples
|
|
110
|
+
5. If user seems stuck, ask clarifying question
|
|
111
|
+
6. Keep responses short - max 2-3 sentences unless explaining a concept
|
|
112
|
+
7. Output conversational text, NOT JSON
|
|
113
|
+
</rules>
|
|
114
|
+
|
|
115
|
+
<protocol>
|
|
116
|
+
Input: User question + AIHelperContext JSON
|
|
117
|
+
Output: Friendly, specific guidance in plain text
|
|
118
|
+
</protocol>
|
|
@@ -1,303 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Parallel investigation squad for diagnosing bugs and incidents
|
|
3
3
|
argument-hint: "bug or incident description"
|
|
4
|
-
allowed-tools:
|
|
4
|
+
allowed-tools: Workflow, Bash, Read, Agent
|
|
5
5
|
---
|
|
6
|
-
|
|
7
6
|
# Debug Squad
|
|
8
7
|
|
|
9
|
-
Parallel investigation
|
|
10
|
-
|
|
11
|
-
**Roles:**
|
|
12
|
-
- **Data Reader** - Data state (check relevant activities, field values, phases, linked records)
|
|
13
|
-
- **SQL Insights** - Query patterns (is this isolated or widespread? run insights to find anomalies)
|
|
14
|
-
- **Code Reviewer** - Code review (logic errors, missing validations, race conditions)
|
|
15
|
-
- **Test Runner** - Test reproduction (create failing test to isolate the bug)
|
|
16
|
-
|
|
17
|
-
**Goal:** $ARGUMENTS
|
|
18
|
-
|
|
19
|
-
## Protocol
|
|
20
|
-
|
|
21
|
-
### Step 1: Parse Bug Description
|
|
22
|
-
|
|
23
|
-
Extract from `$ARGUMENTS`:
|
|
24
|
-
- What is the reported issue?
|
|
25
|
-
- Which workflow/activities/features are affected?
|
|
26
|
-
- When was it first noticed?
|
|
27
|
-
- What's the impact (severity)?
|
|
28
|
-
|
|
29
|
-
Set `iteration = 1` and `max_iterations = 2`.
|
|
30
|
-
|
|
31
|
-
### Step 2: Launch All 4 Agents in Parallel
|
|
32
|
-
|
|
33
|
-
Spawn all agents simultaneously using multiple Task tool calls in a single message:
|
|
34
|
-
|
|
35
|
-
**Data Reader:**
|
|
36
|
-
```
|
|
37
|
-
Task(prompt="Load sdk-ws-config-skill for understanding workflow and data structures.\n\nInvestigate the data state for this bug: $ARGUMENTS.\n\nYour job:\n1. Identify the affected workflow(s) and activities\n2. Look up the relevant activity records, field values, phases\n3. Check linked activities and relationships\n4. Compare expected vs actual data state\n5. Report any anomalies, missing data, or unexpected values\n\nReturn:\n- What the data SHOULD look like\n- What it ACTUALLY looks like\n- Which fields/relationships are affected")
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**SQL Insights:**
|
|
41
|
-
```
|
|
42
|
-
Task(prompt="Load sdk-insight-queries skill for data pattern analysis.\n\nFind patterns for this bug: $ARGUMENTS.\n\nYour job:\n1. Run insight queries to determine: is this isolated to one activity or widespread?\n2. Query for similar data anomalies across the workflow\n3. Look for patterns: does it affect specific phases, teams, date ranges, field values?\n4. Check for recent changes that could correlate with the bug\n\nReturn:\n- Is this isolated or widespread? (scope)\n- Pattern: what data characteristics trigger it?\n- How many records/activities affected?\n- Timeline: when did anomalies start appearing?")
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
**Code Reviewer:**
|
|
46
|
-
```
|
|
47
|
-
Task(prompt="Review the code for this bug: $ARGUMENTS.\n\nYour job:\n1. Identify the relevant code sections (workflow logic, activity creation, field updates, phase transitions)\n2. Inspect for logic errors, missing validations, race conditions, null checks\n3. Look for assumptions that might break in edge cases\n4. Check for recent changes that could have introduced the bug\n\nReturn:\n- Suspected code sections with issues\n- Specific logic problems (race conditions, wrong field access, missing validation)\n- Edge cases not handled\n- Security implications if any")
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**Test Runner:**
|
|
51
|
-
```
|
|
52
|
-
Task(prompt="Load testing-patterns skill for writing focused tests.\n\nCreate a failing test for this bug: $ARGUMENTS.\n\nYour job:\n1. Write a minimal test that reproduces the bug\n2. Set up the preconditions (data state, workflow, etc)\n3. Execute the action that triggers the bug\n4. Assert the bug is present (test FAILS with current code)\n5. Do NOT fix the bug - just demonstrate it\n\nReturn:\n- The failing test code\n- What the test proves about the bug\n- Failure output showing the bug is real")
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
If `$ARGUMENTS` contains `--skip-data`, skip Data Reader.
|
|
56
|
-
If `$ARGUMENTS` contains `--skip-queries`, skip SQL Insights.
|
|
57
|
-
|
|
58
|
-
### Step 3: Collect Results and Synthesize Root Cause
|
|
59
|
-
|
|
60
|
-
Wait for all agents to complete. Aggregate findings:
|
|
61
|
-
|
|
62
|
-
**From Data Reader:** What data is wrong?
|
|
63
|
-
**From SQL Insights:** How widespread is it? What pattern triggers it?
|
|
64
|
-
**From Code Reviewer:** What code is broken?
|
|
65
|
-
**From Test Runner:** Can we reproduce it consistently?
|
|
66
|
-
|
|
67
|
-
Look for convergence:
|
|
68
|
-
- Does data anomaly match code logic error?
|
|
69
|
-
- Does Code Reviewer's suspected code section align with SQL Insights' pattern?
|
|
70
|
-
- Does Test Runner's test reproduce the exact issue Data Reader found?
|
|
71
|
-
|
|
72
|
-
If **clear root cause** emerges → proceed to Step 4 (report).
|
|
73
|
-
|
|
74
|
-
If **inconclusive** (no agent found clear cause OR agents disagree):
|
|
75
|
-
- If `iteration < max_iterations`: Increment `iteration`, go to **Step 2b** (narrow scope)
|
|
76
|
-
- If `iteration >= max_iterations`: Proceed to Step 4 with partial findings
|
|
77
|
-
|
|
78
|
-
### Step 2b: Re-Investigation (Narrowed Scope)
|
|
8
|
+
Parallel root-cause investigation via the native Workflow tool: four independent lenses, then convergence.
|
|
79
9
|
|
|
80
|
-
|
|
10
|
+
**Bug:** $ARGUMENTS
|
|
11
|
+
Flags: `--skip-data` (no workspace data lens), `--skip-queries` (no SQL lens).
|
|
81
12
|
|
|
82
|
-
|
|
83
|
-
Task(prompt="Load sdk-ws-config-skill for deep data investigation.\n\nRe-investigate (iteration [iteration]): $ARGUMENTS\n\nBased on initial findings:\n[SUMMARIZE WHAT FIRST PASS FOUND]\n\nNarrow your focus to: [MOST LIKELY AFFECTED AREA]\n\nDig deeper into the data state. Look for subtle issues.")
|
|
84
|
-
```
|
|
13
|
+
## Orchestration
|
|
85
14
|
|
|
86
|
-
|
|
15
|
+
Parse the bug description (what, which workflow/feature, since when, severity). Then author a Workflow script (this command is your opt-in to call the Workflow tool) running four lens agents in parallel, each returning `{ findings, suspectedCause, confidence }`:
|
|
87
16
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
### Summary
|
|
94
|
-
**Bug:** [Description]
|
|
95
|
-
**Iterations:** [count] of [max_iterations]
|
|
96
|
-
**Root Cause Status:** IDENTIFIED / INCONCLUSIVE
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
### Data Reader
|
|
101
|
-
**Affected Records:** [count/scope]
|
|
102
|
-
- Expected state: [description]
|
|
103
|
-
- Actual state: [description]
|
|
104
|
-
- Anomalies found: [list]
|
|
105
|
-
|
|
106
|
-
### SQL Insights
|
|
107
|
-
**Scope:** Isolated / Widespread (X records affected)
|
|
108
|
-
**Pattern:** [What triggers the bug]
|
|
109
|
-
**Timeline:** [When did it start]
|
|
110
|
-
- Similar anomalies detected: [yes/no, details]
|
|
111
|
-
|
|
112
|
-
### Code Reviewer
|
|
113
|
-
**Suspected Code:** [files and line numbers]
|
|
114
|
-
**Issues Found:**
|
|
115
|
-
- [Issue 1]: [file:line] - [description]
|
|
116
|
-
- [Issue 2]: [file:line] - [description]
|
|
117
|
-
**Risk Level:** [LOW/MEDIUM/HIGH]
|
|
118
|
-
|
|
119
|
-
### Test Runner
|
|
120
|
-
**Test Status:** CREATED / FAILED TO REPRODUCE
|
|
121
|
-
**Reproducibility:** Consistent / Intermittent / Cannot reproduce
|
|
122
|
-
- Test file: [path]
|
|
123
|
-
- Failure output: [snippet]
|
|
124
|
-
|
|
125
|
-
---
|
|
126
|
-
|
|
127
|
-
### Root Cause Analysis
|
|
128
|
-
[Synthesize findings from all 4 agents]
|
|
129
|
-
|
|
130
|
-
**Primary Cause:** [What's broken]
|
|
131
|
-
**Contributing Factors:** [Secondary issues]
|
|
132
|
-
**Why It Happens:** [Mechanism]
|
|
133
|
-
|
|
134
|
-
### Recommended Fix
|
|
135
|
-
[Based on root cause, what needs to be fixed]
|
|
136
|
-
- File: [path]
|
|
137
|
-
- Change: [description]
|
|
138
|
-
- Rationale: [why this fixes it]
|
|
139
|
-
|
|
140
|
-
### Next Steps
|
|
141
|
-
1. [Fix applied by code reviewer/code editor]
|
|
142
|
-
2. [Test to verify fix]
|
|
143
|
-
3. [Deploy and monitor]
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
If any agent fails or times out, report partial results, note which failed, and offer to re-run individually.
|
|
147
|
-
|
|
148
|
-
## Options
|
|
149
|
-
|
|
150
|
-
| Flag | Effect |
|
|
151
|
-
|------|--------|
|
|
152
|
-
| `--skip-data` | Skip Data Reader (when data investigation not needed) |
|
|
153
|
-
| `--skip-queries` | Skip SQL Insights (when pattern analysis not needed) |
|
|
154
|
-
| `--bg` | Run all agents in background mode |
|
|
155
|
-
| `--debate` | Debate mode: competing hypotheses instead of domain-split investigation |
|
|
156
|
-
|
|
157
|
-
If `--bg` is present, launch all agents with `run_in_background: true` and tell the user they'll be notified when complete.
|
|
158
|
-
|
|
159
|
-
---
|
|
17
|
+
- **Data state** — what does the affected data actually look like? Read `workspace/enums.ts` (via the agent, not main context) for IDs, then MCP `list_activities` / `show_activity_by_id` on affected records. Compare expected vs actual field values, phases, links.
|
|
18
|
+
- **Scope via SQL** — isolated or widespread? MCP `run_insight` with ad-hoc queries (sources + query): count affected records, correlate by phase/team/date-range/field value, find when anomalies started. Timestamps in insights are SECONDS.
|
|
19
|
+
- **Code logic** — read the relevant source: logic errors, missing validation, race conditions, unhandled edge cases, recent changes (`git log -p` on suspect files).
|
|
20
|
+
- **Reproduction** — write a minimal failing test that demonstrates the bug (vitest). Do NOT fix it; the test proves the diagnosis.
|
|
160
21
|
|
|
161
|
-
##
|
|
162
|
-
|
|
163
|
-
When `--debate` flag is present, the squad switches from domain-split investigation to **competing hypothesis investigation**. Instead of each agent checking their domain, agents are assigned competing theories and must find evidence for/against their hypothesis.
|
|
164
|
-
|
|
165
|
-
### How It Differs from Normal Mode
|
|
166
|
-
|
|
167
|
-
| Aspect | Normal Mode | Debate Mode |
|
|
168
|
-
|--------|-------------|-------------|
|
|
169
|
-
| Assignment | Each agent checks their domain (data, queries, code, tests) | Each agent investigates a specific hypothesis |
|
|
170
|
-
| Evidence | Agents report what they find in their area | Agents argue FOR their hypothesis using any evidence |
|
|
171
|
-
| Synthesis | Look for convergence across domains | Compare evidence strength, pick winner |
|
|
172
|
-
| Best for | Well-scoped bugs with clear domain | Ambiguous problems with multiple plausible causes |
|
|
173
|
-
|
|
174
|
-
### Debate Protocol
|
|
175
|
-
|
|
176
|
-
**Replaces Steps 2-3 of the normal protocol.**
|
|
177
|
-
|
|
178
|
-
#### Step D1: Generate Hypotheses
|
|
179
|
-
|
|
180
|
-
Analyze the problem description and generate **2-3 competing hypotheses** about the root cause. Each hypothesis should be:
|
|
181
|
-
- **Specific**: Not "something is wrong" but "the phase transition hook doesn't fire when..."
|
|
182
|
-
- **Testable**: An agent can find evidence for or against it
|
|
183
|
-
- **Distinct**: Hypotheses should point to genuinely different root causes
|
|
184
|
-
|
|
185
|
-
Example for "Orders aren't syncing to Netvisor":
|
|
186
|
-
- H1: "The activity mover trigger condition is wrong - it fires on the wrong phase"
|
|
187
|
-
- H2: "The Netvisor API integration is failing silently - auth or payload issue"
|
|
188
|
-
- H3: "The data is incomplete - required fields for Netvisor export are missing"
|
|
189
|
-
|
|
190
|
-
If user provided their own hypotheses in `$ARGUMENTS`, use those instead of generating.
|
|
191
|
-
|
|
192
|
-
#### Step D2: Assign Agents to Hypotheses
|
|
193
|
-
|
|
194
|
-
Pick the best-fit agent for each hypothesis:
|
|
195
|
-
|
|
196
|
-
| Hypothesis Type | Best Agent Role |
|
|
197
|
-
|----------------|-----------|
|
|
198
|
-
| Data integrity / missing values | **Data Reader** (load sdk-ws-config-skill) |
|
|
199
|
-
| Query / pattern / scope issue | **SQL Insights** (load sdk-insight-queries) |
|
|
200
|
-
| Code logic / validation / race condition | **Code Reviewer** |
|
|
201
|
-
| Reproducibility / environment | **Test Runner** (load testing-patterns) |
|
|
202
|
-
| External integration / API | **Automation Inspector** (load hailer-monolith-automations) |
|
|
203
|
-
| Activity mover / phase cascade | **Automation Inspector** (load hailer-monolith-automations) |
|
|
204
|
-
| Zapier integration / external sync | **Integration Inspector** (load zapier-hailer-patterns) |
|
|
205
|
-
|
|
206
|
-
Each agent gets:
|
|
207
|
-
- The full problem description
|
|
208
|
-
- Their assigned hypothesis
|
|
209
|
-
- Instruction: "Find evidence that supports OR refutes this hypothesis. Be honest - if evidence points away from your hypothesis, report that."
|
|
210
|
-
|
|
211
|
-
```
|
|
212
|
-
Task(prompt="Load relevant skill for deep investigation.\n\nDEBATE MODE investigation for: $ARGUMENTS
|
|
213
|
-
|
|
214
|
-
YOUR HYPOTHESIS: [H1 description]
|
|
215
|
-
|
|
216
|
-
Your job is to investigate whether this hypothesis explains the bug. Be thorough and honest:
|
|
217
|
-
|
|
218
|
-
1. What evidence SUPPORTS this hypothesis?
|
|
219
|
-
2. What evidence REFUTES this hypothesis?
|
|
220
|
-
3. Confidence level: STRONG / MODERATE / WEAK
|
|
221
|
-
4. If your hypothesis is wrong, what does the evidence actually point to?
|
|
222
|
-
|
|
223
|
-
Do NOT assume your hypothesis is correct. Follow the evidence.")
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
Launch all hypothesis agents in parallel.
|
|
227
|
-
|
|
228
|
-
#### Step D3: Score and Synthesize
|
|
229
|
-
|
|
230
|
-
Collect results. For each hypothesis, assess:
|
|
231
|
-
|
|
232
|
-
| Hypothesis | Supporting Evidence | Refuting Evidence | Confidence | Role |
|
|
233
|
-
|-----------|-------------------|-------------------|------------|-------|
|
|
234
|
-
| H1 | [list] | [list] | STRONG/MODERATE/WEAK | [role] |
|
|
235
|
-
| H2 | [list] | [list] | STRONG/MODERATE/WEAK | [role] |
|
|
236
|
-
| H3 | [list] | [list] | STRONG/MODERATE/WEAK | [role] |
|
|
237
|
-
|
|
238
|
-
**Verdict rules:**
|
|
239
|
-
- If one hypothesis has STRONG confidence and others are WEAK → **clear winner**
|
|
240
|
-
- If multiple have MODERATE+ confidence → **compound issue** (multiple causes)
|
|
241
|
-
- If all are WEAK → **inconclusive**, escalate to user with what was learned
|
|
242
|
-
|
|
243
|
-
#### Step D4: Debate Report
|
|
244
|
-
|
|
245
|
-
```markdown
|
|
246
|
-
## Debug Squad Investigation (Debate Mode)
|
|
247
|
-
|
|
248
|
-
### Problem
|
|
249
|
-
[Description]
|
|
250
|
-
|
|
251
|
-
### Hypotheses Tested
|
|
252
|
-
|
|
253
|
-
#### H1: [Hypothesis description]
|
|
254
|
-
**Assigned to:** [Agent role]
|
|
255
|
-
**Confidence:** STRONG / MODERATE / WEAK
|
|
256
|
-
**Supporting evidence:**
|
|
257
|
-
- [Evidence 1]
|
|
258
|
-
- [Evidence 2]
|
|
259
|
-
**Refuting evidence:**
|
|
260
|
-
- [Evidence 1]
|
|
261
|
-
|
|
262
|
-
#### H2: [Hypothesis description]
|
|
263
|
-
...
|
|
264
|
-
|
|
265
|
-
#### H3: [Hypothesis description]
|
|
266
|
-
...
|
|
267
|
-
|
|
268
|
-
---
|
|
269
|
-
|
|
270
|
-
### Verdict
|
|
271
|
-
**Winner:** H[N] - [hypothesis description]
|
|
272
|
-
**Confidence:** [STRONG/MODERATE/WEAK]
|
|
273
|
-
|
|
274
|
-
[If compound:] **Multiple causes identified:**
|
|
275
|
-
1. H[X]: [description] (MODERATE confidence)
|
|
276
|
-
2. H[Y]: [description] (MODERATE confidence)
|
|
277
|
-
|
|
278
|
-
[If inconclusive:] **No clear root cause found.** Most promising lead: H[N].
|
|
279
|
-
|
|
280
|
-
### Dissenting Evidence
|
|
281
|
-
[Evidence that doesn't fit the winning hypothesis - important to surface]
|
|
282
|
-
|
|
283
|
-
### Recommended Fix
|
|
284
|
-
[Based on winning hypothesis]
|
|
285
|
-
|
|
286
|
-
### Next Steps
|
|
287
|
-
1. [Fix the identified cause]
|
|
288
|
-
2. [Verify dissenting evidence doesn't indicate a secondary issue]
|
|
289
|
-
3. [Run /hotfix-squad if fix is straightforward]
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
---
|
|
22
|
+
## Convergence
|
|
293
23
|
|
|
294
|
-
|
|
24
|
+
Synthesize: does the data anomaly match the code error? Does the SQL pattern align with the suspected code path? Does the test reproduce exactly what the data lens found? If lenses disagree or all come back empty, re-run the most promising lens once with narrowed scope (max 2 rounds), then report honestly: IDENTIFIED with evidence chain, or INCONCLUSIVE with what was ruled out.
|
|
295
25
|
|
|
296
|
-
|
|
297
|
-
- Max 2 iterations prevents infinite loops while allowing scope refinement
|
|
298
|
-
- Convergence is key: when 3+ agents point to the same root cause, confidence is high
|
|
299
|
-
- Each re-investigation iteration gets narrowed scope from first pass results
|
|
300
|
-
- Report synthesizes findings, not just concatenates them
|
|
301
|
-
- **Debate mode** costs more tokens (2-3 full agent calls) but excels at ambiguous, hard-to-diagnose problems
|
|
302
|
-
- Debate agents are told to be honest about refuting evidence - this prevents confirmation bias
|
|
303
|
-
- Users can supply their own hypotheses to test specific theories
|
|
26
|
+
Report: root cause status, evidence per lens, scope (records affected), the failing test, and the proposed fix (do not apply it — this squad diagnoses).
|
|
@@ -46,7 +46,7 @@ Publishes a single plugin to the marketplace.
|
|
|
46
46
|
|
|
47
47
|
4. **Spawn a publisher sub-agent:**
|
|
48
48
|
```
|
|
49
|
-
Task(prompt="Load publish-
|
|
49
|
+
Task(prompt="Load create-and-publish-app skill for publishing patterns.\n\nPublish this plugin to the Hailer Marketplace:\n- Name: {name}\n- Type: agent|skill|hook\n- Version: {user provided}\n- Changelog: {user provided}\n- Content: {file content}\n\nCopy the plugin to Hailer-Marketplace/{name}/, update plugin.json, create a git commit and PR.")
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
5. **Spawn a reviewer sub-agent** (after PR created):
|
|
@@ -76,7 +76,7 @@ Publishes all out-of-sync plugins in a single PR.
|
|
|
76
76
|
|
|
77
77
|
Spawn with:
|
|
78
78
|
```
|
|
79
|
-
Task(prompt="Load publish-
|
|
79
|
+
Task(prompt="Load create-and-publish-app skill.\n\nCheck .claude/ vs Hailer-Marketplace/ for version mismatches and publish out-of-sync plugins. Create a single PR with all updates.")
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
Expected result:
|
|
@@ -1,152 +1,30 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Run parallel code review with security,
|
|
2
|
+
description: Run parallel code review with security, static inspection, and test verification
|
|
3
3
|
argument-hint: [files, directory, or blank for recent changes]
|
|
4
|
-
allowed-tools:
|
|
4
|
+
allowed-tools: Workflow, Bash, Read
|
|
5
5
|
---
|
|
6
6
|
# Review Squad
|
|
7
7
|
|
|
8
|
-
Parallel code review
|
|
8
|
+
Parallel code review via the native Workflow tool: find issues per dimension, adversarially verify, auto-fix criticals, re-check.
|
|
9
9
|
|
|
10
|
-
**
|
|
11
|
-
-
|
|
12
|
-
- **LSP Inspector** - LSP inspection (dead code, unused imports, type errors)
|
|
13
|
-
- **Test Runner** - Test runner (run tests, verify builds)
|
|
14
|
-
- **Code Editor** - Auto-fix critical issues (only in loop iterations)
|
|
10
|
+
**Target:** $ARGUMENTS — if blank, use `git diff --name-only HEAD` output.
|
|
11
|
+
Flags: `--no-fix` (report only), `--skip-tests` (drop the test dimension).
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
## Orchestration
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
Author a Workflow script (this command is your opt-in to call the Workflow tool):
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
1. **Review phase** — one agent per dimension, in a `pipeline()` over:
|
|
18
|
+
- `bugs`: correctness, logic errors, race conditions, missing null checks
|
|
19
|
+
- `security`: injection, auth/permission gaps, secrets, fail-open paths
|
|
20
|
+
- `conventions`: repo eslint rules (no else/else-if, no nested ifs, no `=== undefined`, single quotes, 4-space indent, ≤140 cols), dead code, unused imports — verify with `npx eslint` + `npx tsc --noEmit`, not eyeballing
|
|
21
|
+
- `tests` (unless --skip-tests): run `npm test`, verify build, flag untested changed logic
|
|
22
|
+
Each returns findings via a `schema`: `{ file, line, severity: 'critical'|'warning', title, detail, autoFixable }`.
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
2. **Verify phase** — each finding goes to one adversarial verifier prompted to REFUTE it; drop refuted findings. (Same pipeline, no barrier.)
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
Otherwise, use the changed files list above as the target.
|
|
26
|
+
3. **Fix phase** (skip with --no-fix) — if confirmed criticals are autoFixable (unused imports, dead code, simple type errors, obvious test fixes — NOT architecture/design/complex logic), spawn one fixer agent with the exact list: "minimal fixes only, no refactoring". Then re-run the affected dimension once. Max 2 fix iterations.
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
- Remove flag from target
|
|
29
|
-
- Skip Test Runner in Step 2
|
|
28
|
+
## Report
|
|
30
29
|
|
|
31
|
-
If
|
|
32
|
-
- Remove flag from target
|
|
33
|
-
- Skip LSP Inspector in Step 2
|
|
34
|
-
|
|
35
|
-
If `$ARGUMENTS` contains `--no-fix`:
|
|
36
|
-
- Skip the fix loop entirely (old behavior - report only)
|
|
37
|
-
|
|
38
|
-
### Step 2: Launch Review Agents in Parallel
|
|
39
|
-
|
|
40
|
-
**Set:** `iteration = 1`
|
|
41
|
-
|
|
42
|
-
If `--bg` is present, add `run_in_background: true` to all agent calls below and tell the user they'll be notified when complete.
|
|
43
|
-
|
|
44
|
-
Spawn all review agents simultaneously using multiple Task tool calls in a single message:
|
|
45
|
-
|
|
46
|
-
**Code Reviewer:**
|
|
47
|
-
```
|
|
48
|
-
Task(prompt="Load testing-patterns skill for understanding test-related code issues.\n\nReview these files for bugs, security issues, and best practices: [TARGET]. [IF iteration > 1: Previous issues that were auto-fixed: [LIST FIXES APPLIED]. Verify these are resolved and check for any NEW issues introduced by the fixes.] Return verdict (APPROVE/REQUEST_CHANGES), critical count, warning count, and details. Categorize each issue as CRITICAL or WARNING.")
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
**LSP Inspector:**
|
|
52
|
-
```
|
|
53
|
-
Task(prompt="Load lsp-setup skill for understanding code inspection tools.\n\nInspect these files for dead code, unused imports, and type errors: [TARGET]. [IF iteration > 1: Previous issues that were auto-fixed: [LIST FIXES APPLIED]. Verify these are resolved.] Use LSP if available, fall back to tsc/eslint.")
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**Test Runner:**
|
|
57
|
-
```
|
|
58
|
-
Task(prompt="Load testing-patterns skill for test execution.\n\nRun tests associated with these files: [TARGET]. Include build verification. Report pass/fail counts.")
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Step 3: Evaluate Results - Fix or Report
|
|
62
|
-
|
|
63
|
-
Collect results from all agents. Check for **auto-fixable issues**:
|
|
64
|
-
|
|
65
|
-
**Auto-fixable** (Code Editor can handle):
|
|
66
|
-
- Unused imports
|
|
67
|
-
- Dead code removal
|
|
68
|
-
- Missing null checks
|
|
69
|
-
- Simple type errors
|
|
70
|
-
- Test failures with obvious fixes
|
|
71
|
-
|
|
72
|
-
**NOT auto-fixable** (escalate to user):
|
|
73
|
-
- Architecture concerns
|
|
74
|
-
- Design pattern issues
|
|
75
|
-
- Complex logic bugs
|
|
76
|
-
- Security issues requiring design changes
|
|
77
|
-
- Performance concerns
|
|
78
|
-
|
|
79
|
-
#### If critical auto-fixable issues found AND `--no-fix` not set AND `iteration < 3`:
|
|
80
|
-
|
|
81
|
-
Spawn a code editor with the specific issues:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
Task(prompt="Fix these critical issues found by the review squad:\n\n[LIST AUTO-FIXABLE ISSUES WITH FILE PATHS AND LINE NUMBERS]\n\nFrom Code Reviewer: [critical issues]\nFrom LSP Inspector: [dead code, unused imports]\nFrom Test Runner: [test failures if obvious fix]\n\nApply minimal fixes only. Do not refactor or improve beyond the reported issues.")
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
After Code Editor finishes:
|
|
88
|
-
- Increment `iteration`
|
|
89
|
-
- Go back to **Step 2** to re-review the fixed code
|
|
90
|
-
- On re-review, include what Code Editor fixed so agents can verify fixes and check for regressions
|
|
91
|
-
|
|
92
|
-
#### If no auto-fixable criticals OR `--no-fix` set OR `iteration >= 3`:
|
|
93
|
-
|
|
94
|
-
Proceed to Step 4 (report).
|
|
95
|
-
|
|
96
|
-
### Step 4: Report
|
|
97
|
-
|
|
98
|
-
```markdown
|
|
99
|
-
## Review Squad Report
|
|
100
|
-
|
|
101
|
-
### Loop Summary
|
|
102
|
-
- Review iterations: [count]
|
|
103
|
-
- Auto-fixes applied: [yes/no, count of issues fixed]
|
|
104
|
-
|
|
105
|
-
### Code Reviewer
|
|
106
|
-
**Verdict:** APPROVE / REQUEST_CHANGES
|
|
107
|
-
- Critical: X (Y auto-fixed)
|
|
108
|
-
- Warnings: X
|
|
109
|
-
- [Remaining issues grouped by file]
|
|
110
|
-
|
|
111
|
-
### LSP Inspector
|
|
112
|
-
- Dead code: X items (Y auto-removed)
|
|
113
|
-
- Unused imports: X (Y auto-removed)
|
|
114
|
-
- Type errors: X
|
|
115
|
-
- [Remaining issues grouped by file]
|
|
116
|
-
|
|
117
|
-
### Test Runner
|
|
118
|
-
- Tests: X passed, X failed
|
|
119
|
-
- Build: Pass/Fail
|
|
120
|
-
- [Failed test details if any]
|
|
121
|
-
|
|
122
|
-
### Auto-Fixes Applied
|
|
123
|
-
[If Code Editor made changes:]
|
|
124
|
-
- [File]: [what was fixed]
|
|
125
|
-
- [File]: [what was fixed]
|
|
126
|
-
|
|
127
|
-
### Remaining Issues (Manual Action Needed)
|
|
128
|
-
[Issues that couldn't be auto-fixed]
|
|
129
|
-
|
|
130
|
-
### Summary
|
|
131
|
-
[1-2 sentence overall assessment]
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
If any agent fails or times out, report partial results from successful agents, note which failed, and offer to re-run individually.
|
|
135
|
-
|
|
136
|
-
## Options
|
|
137
|
-
|
|
138
|
-
| Flag | Effect |
|
|
139
|
-
|------|--------|
|
|
140
|
-
| `--skip-tests` | Skip Test Runner (faster, no test execution) |
|
|
141
|
-
| `--skip-lsp` | Skip LSP Inspector (when LSP not configured) |
|
|
142
|
-
| `--no-fix` | Report only, no auto-fix loop (old behavior) |
|
|
143
|
-
| `--bg` | Run all agents in background mode |
|
|
144
|
-
|
|
145
|
-
If `--bg` is present, launch all agents with `run_in_background: true` and tell the user they'll be notified when complete.
|
|
146
|
-
|
|
147
|
-
## Notes
|
|
148
|
-
|
|
149
|
-
- Max 2 re-review iterations (3 total reviews) to prevent infinite loops
|
|
150
|
-
- Code Editor only fixes clear-cut issues - ambiguous problems go to user
|
|
151
|
-
- Each re-review is a full parallel sweep, not just Code Reviewer
|
|
152
|
-
- The `--no-fix` flag gives the old report-only behavior
|
|
30
|
+
Verdict (APPROVE / REQUEST_CHANGES), confirmed findings grouped by file with severity, what was auto-fixed, what needs manual action, test/build status. If a workflow stage dies, report partial results and say which dimension failed.
|