@hailer/mcp 1.2.1 → 1.3.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 +133 -143
- package/.claude/skills/hailer-app-builder/SKILL.md +29 -2
- package/.claude/skills/hailer-ui-guide/SKILL.md +265 -0
- package/.env.example +50 -1
- package/CLAUDE.md +141 -10
- package/dist/app-prep.d.ts +27 -0
- package/dist/app-prep.d.ts.map +1 -0
- package/dist/app-prep.js +94 -0
- package/dist/app-prep.js.map +1 -0
- 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 +61 -16
- package/dist/bot/bot.d.ts.map +1 -1
- package/dist/bot/bot.js +927 -151
- 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 +37 -5
- package/dist/bot/services/bot-permissions.d.ts.map +1 -1
- package/dist/bot/services/bot-permissions.js +159 -35
- 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 +47 -38
- package/dist/bot/services/message-formatter.d.ts.map +1 -1
- package/dist/bot/services/message-formatter.js +99 -80
- 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 +181 -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 +4 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +92 -11
- 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 +83 -34
- 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 +184 -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 +2 -0
- package/dist/mcp/tools/activity.d.ts.map +1 -1
- package/dist/mcp/tools/activity.js +575 -218
- 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 +182 -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 +12 -16
- package/dist/mcp/tools/app-marketplace.d.ts.map +1 -1
- package/dist/mcp/tools/app-marketplace.js +748 -856
- 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 +29 -3
- package/dist/mcp/tools/discussion.d.ts.map +1 -1
- package/dist/mcp/tools/discussion.js +419 -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 +24 -5
- package/dist/mcp/tools/insight.d.ts.map +1 -1
- package/dist/mcp/tools/insight.js +513 -480
- 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 +9 -7
- package/dist/mcp/tools/workflow.d.ts.map +1 -1
- package/dist/mcp/tools/workflow.js +852 -860
- 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 +0 -3
- package/dist/mcp/utils/data-transformers.d.ts.map +1 -1
- package/dist/mcp/utils/data-transformers.js +32 -5
- 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 +113 -103
- 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 +2 -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 +367 -48
- 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 +183 -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 +1340 -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 +435 -0
- package/dist/public-chat/system-prompt.js.map +1 -0
- package/package.json +13 -7
- package/scripts/build-public-chat-knowledge.py +101 -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
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: publish-hailer-app
|
|
3
|
-
description: Guide for publishing Hailer apps to production
|
|
4
|
-
version: 1.3.0
|
|
5
|
-
triggers:
|
|
6
|
-
- publish app
|
|
7
|
-
- deploy app
|
|
8
|
-
- production app
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Publish Hailer App Skill
|
|
12
|
-
|
|
13
|
-
Guide for publishing Hailer apps to production using MCP tools.
|
|
14
|
-
|
|
15
|
-
<warning>
|
|
16
|
-
## ⚠️ Publishing Requires Explicit User Request
|
|
17
|
-
|
|
18
|
-
**Default is local development** — scaffold creates a dev app at `http://localhost:3000` automatically.
|
|
19
|
-
|
|
20
|
-
**Only use this skill when the user explicitly asks to publish or deploy to production.**
|
|
21
|
-
|
|
22
|
-
Before publishing: validate manifest.json (see below), then `publish_hailer_app` (auto-updates URL to production).
|
|
23
|
-
</warning>
|
|
24
|
-
|
|
25
|
-
<critical>
|
|
26
|
-
## MANDATORY: Validate Before Publishing
|
|
27
|
-
|
|
28
|
-
The `publish_hailer_app` tool will SILENTLY FAIL if manifest.json is misconfigured.
|
|
29
|
-
|
|
30
|
-
**YOU MUST validate these before calling publish_hailer_app:**
|
|
31
|
-
|
|
32
|
-
1. Read `public/manifest.json` in the project
|
|
33
|
-
2. Check `appId` exists and is 24 characters
|
|
34
|
-
3. Check `version` exists and is NOT empty (e.g., "1.0.0")
|
|
35
|
-
4. Check `versionDescription` exists and is NOT empty
|
|
36
|
-
|
|
37
|
-
If ANY are missing/empty, FIX THEM FIRST before publishing.
|
|
38
|
-
</critical>
|
|
39
|
-
|
|
40
|
-
<validation-code>
|
|
41
|
-
## Validation Steps (DO THIS FIRST)
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
1. Read({file_path: "{projectDir}/public/manifest.json"})
|
|
45
|
-
|
|
46
|
-
2. Verify JSON contains:
|
|
47
|
-
- "appId": "24-char-id" ← If missing: use create_app first
|
|
48
|
-
- "version": "1.0.0" ← If empty: set to "1.0.0"
|
|
49
|
-
- "versionDescription": "..." ← If empty: set to "Initial release"
|
|
50
|
-
|
|
51
|
-
3. If any field missing/empty → Edit manifest.json to fix
|
|
52
|
-
|
|
53
|
-
4. ONLY THEN call publish_hailer_app
|
|
54
|
-
```
|
|
55
|
-
</validation-code>
|
|
56
|
-
|
|
57
|
-
<workflow>
|
|
58
|
-
## Full Publishing Workflow
|
|
59
|
-
|
|
60
|
-
### Step 1: Validate & Fix manifest.json
|
|
61
|
-
|
|
62
|
-
Read the manifest:
|
|
63
|
-
```javascript
|
|
64
|
-
Read({file_path: "{projectDir}/public/manifest.json"})
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
Required structure:
|
|
68
|
-
```json
|
|
69
|
-
{
|
|
70
|
-
"appId": "695816e2ba1d8bef3af7e018",
|
|
71
|
-
"version": "1.0.0",
|
|
72
|
-
"versionDescription": "Initial production release"
|
|
73
|
-
}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**If appId missing:** Add the ID from Step 2
|
|
77
|
-
**If version empty:** Set to "1.0.0"
|
|
78
|
-
**If versionDescription empty:** Set to "Initial release"
|
|
79
|
-
|
|
80
|
-
### Step 2: Publish
|
|
81
|
-
|
|
82
|
-
```javascript
|
|
83
|
-
publish_hailer_app({
|
|
84
|
-
projectDirectory: "/path/to/app"
|
|
85
|
-
})
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
This does everything in one call:
|
|
89
|
-
- **Auto-derives app name** from project directory (e.g., `upcoming-matches` → "Upcoming Matches")
|
|
90
|
-
- **Auto-sets description** from `versionDescription` in manifest.json
|
|
91
|
-
- **Auto-generates and uploads a colored icon** with initials (e.g., green "UM" circle)
|
|
92
|
-
- **Auto-shares** with the entire workspace
|
|
93
|
-
- Copies manifest.json into dist/
|
|
94
|
-
- Creates .tgz with `package/` prefix (matches npm pack format)
|
|
95
|
-
- Uploads to S3 via POST /app/publish
|
|
96
|
-
- **Auto-updates app URL** to `https://apps.hailer.com/{workspaceId}/{appId}/`
|
|
97
|
-
|
|
98
|
-
No manual `update_app` calls needed after publish — name, description, icon, and sharing are all automatic.
|
|
99
|
-
|
|
100
|
-
### Step 3: Verify
|
|
101
|
-
|
|
102
|
-
```javascript
|
|
103
|
-
list_apps()
|
|
104
|
-
```
|
|
105
|
-
Confirm URL is `https://apps.hailer.com/...` (not localhost).
|
|
106
|
-
</workflow>
|
|
107
|
-
|
|
108
|
-
<silent-failure>
|
|
109
|
-
## Why Silent Failures Happen
|
|
110
|
-
|
|
111
|
-
The SDK publish script requires `version` and `versionDescription` in manifest.json.
|
|
112
|
-
If missing/empty, the tool returns "Success" but files are NOT uploaded.
|
|
113
|
-
|
|
114
|
-
**Symptoms of silent failure:**
|
|
115
|
-
- Tool says "App Published Successfully!"
|
|
116
|
-
- But app URL is still `http://localhost:3000`
|
|
117
|
-
- Or production URL returns 403/404
|
|
118
|
-
|
|
119
|
-
**Always validate manifest BEFORE publishing.**
|
|
120
|
-
</silent-failure>
|
|
121
|
-
|
|
122
|
-
<dev-vs-prod>
|
|
123
|
-
## Dev vs Production Apps
|
|
124
|
-
|
|
125
|
-
| Type | URL | Created By | Purpose |
|
|
126
|
-
|------|-----|------------|---------|
|
|
127
|
-
| Dev | `http://localhost:3000` | `scaffold_hailer_app` (reuses existing) | Local development, always stays at localhost |
|
|
128
|
-
| Prod | `https://apps.hailer.com/{workspaceId}/{appId}/` | `publish_hailer_app` (auto-created) | Published production app |
|
|
129
|
-
|
|
130
|
-
**Flow:**
|
|
131
|
-
1. `scaffold_hailer_app` checks for existing dev app at localhost:3000 — reuses it instead of creating duplicates
|
|
132
|
-
2. Dev app stays at localhost forever — it's your development slot
|
|
133
|
-
3. When user says "publish": `publish_hailer_app` detects the dev app URL, auto-creates a NEW production app with:
|
|
134
|
-
- Name derived from project directory (e.g., `upcoming-matches` → "Upcoming Matches")
|
|
135
|
-
- Description from `versionDescription` in manifest.json
|
|
136
|
-
- Colored icon with initials (auto-generated, uploaded as public)
|
|
137
|
-
- Shared with entire workspace
|
|
138
|
-
- URL pointing to production CDN
|
|
139
|
-
|
|
140
|
-
**No manual `update_app` or `create_app` needed.** The publish tool handles name, description, icon, sharing, and URL automatically.
|
|
141
|
-
</dev-vs-prod>
|
|
142
|
-
|
|
143
|
-
<updating>
|
|
144
|
-
## Updating Published Apps
|
|
145
|
-
|
|
146
|
-
1. Bump version in manifest.json:
|
|
147
|
-
```json
|
|
148
|
-
{
|
|
149
|
-
"version": "1.0.1",
|
|
150
|
-
"versionDescription": "Fixed data loading bug"
|
|
151
|
-
}
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
2. Publish:
|
|
155
|
-
```javascript
|
|
156
|
-
publish_hailer_app({
|
|
157
|
-
projectDirectory: "/path/to/app"
|
|
158
|
-
})
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
New version replaces old at same URL.
|
|
162
|
-
|
|
163
|
-
**Marketplace apps:** If `manifest.json` contains a `targetId`, the publish automatically updates the marketplace listing version too. No separate `publish_app` call needed for version updates.
|
|
164
|
-
</updating>
|
|
165
|
-
|
|
166
|
-
<marketplace>
|
|
167
|
-
## Marketplace Publishing
|
|
168
|
-
|
|
169
|
-
**Two different things:**
|
|
170
|
-
1. **App publish** (`publish_hailer_app`) — uploads files to CDN, updates app URL. If manifest has `targetId`, also updates the marketplace version.
|
|
171
|
-
2. **Marketplace metadata** (`publish_app`) — updates title, description, icon, images on the marketplace listing. Does NOT upload app files.
|
|
172
|
-
|
|
173
|
-
**First-time marketplace publish:**
|
|
174
|
-
1. Publish app with `publish_hailer_app` — server returns a `targetId`, auto-saved to manifest
|
|
175
|
-
2. Create marketplace listing with `publish_app` using `versionId` (= targetId from manifest)
|
|
176
|
-
3. Note the `productId` returned — that's the marketplace listing ID (different from targetId)
|
|
177
|
-
|
|
178
|
-
**Updating marketplace version:**
|
|
179
|
-
Just run `publish_hailer_app` — if manifest has `targetId`, the marketplace version updates automatically.
|
|
180
|
-
|
|
181
|
-
**Updating marketplace metadata (description, icon, images):**
|
|
182
|
-
Use `publish_app` with `productId` (the marketplace listing ID, NOT the targetId).
|
|
183
|
-
|
|
184
|
-
**Key IDs:**
|
|
185
|
-
| ID | What | Where |
|
|
186
|
-
|----|------|-------|
|
|
187
|
-
| `appId` | The app itself | manifest.json `appId` |
|
|
188
|
-
| `targetId` | Version entry for marketplace | manifest.json `targetId` |
|
|
189
|
-
| `productId` | Marketplace listing | Returned by first `publish_app` call, find via `list_templates` |
|
|
190
|
-
</marketplace>
|
|
191
|
-
|
|
192
|
-
<sharing>
|
|
193
|
-
## Sharing Apps
|
|
194
|
-
|
|
195
|
-
Workspace sharing is automatic on first publish. For manual sharing:
|
|
196
|
-
|
|
197
|
-
```javascript
|
|
198
|
-
// Entire workspace
|
|
199
|
-
add_app_member({ appId: "...", member: "network_{workspaceId}" })
|
|
200
|
-
|
|
201
|
-
// Team
|
|
202
|
-
add_app_member({ appId: "...", member: "team_{teamId}" })
|
|
203
|
-
|
|
204
|
-
// User
|
|
205
|
-
add_app_member({ appId: "...", member: "user_{userId}" })
|
|
206
|
-
```
|
|
207
|
-
</sharing>
|
|
208
|
-
|
|
209
|
-
<gotchas>
|
|
210
|
-
## Gotchas
|
|
211
|
-
|
|
212
|
-
**App icons MUST be uploaded with `isPublic: true`.**
|
|
213
|
-
Files uploaded without this flag are private — the Hailer frontend can't load them and shows a broken/transparent image. The publish tool handles this automatically, but if you manually upload an icon via `upload_files`, always include `isPublic: true`:
|
|
214
|
-
```javascript
|
|
215
|
-
upload_files({ files: [{ path: "/tmp/icon.png", isPublic: true }] })
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
**SVG images don't work as app icons.**
|
|
219
|
-
Hailer's backend image pipeline uses sharp for resizing and doesn't serve SVGs correctly. Always use PNG or JPEG.
|
|
220
|
-
|
|
221
|
-
**Don't use SVG gradients in icon generation.**
|
|
222
|
-
Sharp's `flatten()` with SVG `linearGradient` produces transparency. Use `sharp.create()` with solid RGB background + composite for text.
|
|
223
|
-
</gotchas>
|
|
224
|
-
|
|
225
|
-
<vite-config>
|
|
226
|
-
## CRITICAL: Vite Base Path
|
|
227
|
-
|
|
228
|
-
Vite apps MUST have `base: './'` in vite.config.ts for production deployment.
|
|
229
|
-
|
|
230
|
-
```typescript
|
|
231
|
-
// vite.config.ts
|
|
232
|
-
export default defineConfig({
|
|
233
|
-
base: './', // REQUIRED for production
|
|
234
|
-
// ... other config
|
|
235
|
-
});
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
**Without this:**
|
|
239
|
-
- Asset paths resolve to root domain instead of app folder
|
|
240
|
-
- Production app returns 403/404 errors
|
|
241
|
-
- Works in localhost but fails in production
|
|
242
|
-
|
|
243
|
-
**Also verify:** The .tgz package must have files at `package/dist/` path structure.
|
|
244
|
-
</vite-config>
|
|
245
|
-
|
|
246
|
-
<cache-busting>
|
|
247
|
-
## CRITICAL: Browser Cache for Published Apps
|
|
248
|
-
|
|
249
|
-
Published Hailer apps serve stale versions from browser cache. Vite's hashed JS/CSS filenames handle asset cache-busting, but `index.html` itself needs no-cache headers.
|
|
250
|
-
|
|
251
|
-
**Add these meta tags to `index.html` `<head>` before publishing:**
|
|
252
|
-
|
|
253
|
-
```html
|
|
254
|
-
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
|
255
|
-
<meta http-equiv="Pragma" content="no-cache" />
|
|
256
|
-
<meta http-equiv="Expires" content="0" />
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
**Without these:**
|
|
260
|
-
- Users see old app version after publish
|
|
261
|
-
- Hard refresh (Ctrl+Shift+R) works but users won't know to do it
|
|
262
|
-
- Particularly bad for bug fix deploys where users expect changes immediately
|
|
263
|
-
|
|
264
|
-
**Why meta tags not server headers?**
|
|
265
|
-
Hailer apps are served from `apps.hailer.com` static hosting - we can't control server headers. Meta tags are the only client-side cache control available.
|
|
266
|
-
</cache-busting>
|
|
267
|
-
|
|
268
|
-
<checklist>
|
|
269
|
-
## Pre-Publish Checklist
|
|
270
|
-
|
|
271
|
-
- [ ] manifest.json `appId` is 24 chars (dev app ID is fine — publish auto-creates prod app)
|
|
272
|
-
- [ ] manifest.json `version` is set (e.g., "1.0.0")
|
|
273
|
-
- [ ] manifest.json `versionDescription` is set (not empty — also used as app description)
|
|
274
|
-
- [ ] vite.config.ts has `base: './'`
|
|
275
|
-
- [ ] index.html has no-cache meta tags (see cache-busting section)
|
|
276
|
-
- [ ] node_modules exists (dependencies installed)
|
|
277
|
-
- [ ] After publish: verify URL auto-updated to production format (check with `list_apps`)
|
|
278
|
-
|
|
279
|
-
**Automatic on first publish** (no action needed): app name, description, colored icon, workspace sharing.
|
|
280
|
-
</checklist>
|
package/dist/CLAUDE.md
DELETED
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
# Hailer SDK
|
|
2
|
-
|
|
3
|
-
MCP tools for Hailer workspaces: workflows, activities, insights, and apps.
|
|
4
|
-
|
|
5
|
-
<quick-start>
|
|
6
|
-
## Quick Start (New Project Setup)
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
npm init @hailer/sdk # Scaffold project with workspace/ config
|
|
10
|
-
npm run pull # Pull latest workflow schemas from Hailer
|
|
11
|
-
npm run generate # Generate TypeScript types
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Then ask Claude Code to build features. It delegates to specialized agents automatically.
|
|
15
|
-
Run `/help` for an overview, or `/help:agents`, `/help:skills`, `/help:commands` for details.
|
|
16
|
-
</quick-start>
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
<identity>
|
|
21
|
-
You are the orchestrator. You delegate tasks to specialized agents, run commands from their responses, and summarize results for users.
|
|
22
|
-
|
|
23
|
-
Always delegate - agents have optimized tools and context for their domains.
|
|
24
|
-
</identity>
|
|
25
|
-
|
|
26
|
-
<orchestrator-rules>
|
|
27
|
-
DO DIRECTLY: Answer from context, summarize agent results, run push/sync commands
|
|
28
|
-
DELEGATE TO AGENTS: Everything else. No exceptions.
|
|
29
|
-
|
|
30
|
-
**FEATURE REQUESTS:** Before implementing, ask "Want me to create a PRD first?" Only skip if user declines or already used `/prd`/`/autoplan`.
|
|
31
|
-
|
|
32
|
-
**NEVER USE BUILT-IN AGENTS:** Do not spawn Plan, Explore, general-purpose, or Bash subagents. These are Claude Code built-ins that lack specialized skills and tools. Instead:
|
|
33
|
-
- Give the executing agent a prompt that includes research + planning + execution
|
|
34
|
-
- Agents have the Skill tool — they can load patterns themselves
|
|
35
|
-
- E.g., instead of "Plan agent researches templates → Ingrid implements", just tell Ingrid: "Load SDK-document-templates skill, plan the template structure, then build it"
|
|
36
|
-
|
|
37
|
-
**ANTI-PATTERNS (never do these):**
|
|
38
|
-
- "Let me use Plan agent to research first..." → Include research in the agent's prompt
|
|
39
|
-
- "I'll use Explore to find the code..." → Use Glob/Grep directly, or include in agent prompt
|
|
40
|
-
- "I'll just quickly read this file..." → Delegate to the appropriate agent
|
|
41
|
-
- "Let me check this one field..." → Delegate to Kenji
|
|
42
|
-
- "I can create this simple activity..." → Delegate to Dmitri
|
|
43
|
-
- "This is a small change..." → Delegate to the appropriate agent
|
|
44
|
-
- "User gave detailed plan, so I'll skip PRD..." → Still ask about PRD
|
|
45
|
-
|
|
46
|
-
**CRITICAL ROUTING RULE — Kenji vs Giuseppe:**
|
|
47
|
-
- **Kenji** = Hailer workspace data ONLY (workspace/ files, MCP API queries, field IDs, schemas)
|
|
48
|
-
- **Giuseppe** = App source code (apps/, src/, .tsx/.ts files, API call bugs, UI fixes, debugging)
|
|
49
|
-
- NEVER send app source code tasks to Kenji. He reads workspace/ config, not app code.
|
|
50
|
-
- For app bugs/fixes: Giuseppe (complex) or Simple Writer (simple string/ID fixes)
|
|
51
|
-
|
|
52
|
-
**MULTI-AGENT WORK:** Prefer squads over manual agent chaining. If a task needs 2+ agents in sequence (e.g., Helga → Alejandro → Viktor), check if a squad already does it (`/help:commands`). For large-scale repetitive work across many items, use `/swarm` instead of looping agents yourself.
|
|
53
|
-
|
|
54
|
-
Agents return JSON. You interpret it for the user.
|
|
55
|
-
</orchestrator-rules>
|
|
56
|
-
|
|
57
|
-
<delegation-blocks>
|
|
58
|
-
## When Hook Blocks You
|
|
59
|
-
|
|
60
|
-
Hooks enforce delegation by blocking certain direct tool calls. When blocked:
|
|
61
|
-
|
|
62
|
-
**1. Default: Delegate (recommended)**
|
|
63
|
-
The block message shows the suggested agent. Use it:
|
|
64
|
-
```
|
|
65
|
-
Task(subagent_type="agent-kenji-data-reader", prompt='{"task":"..."}')
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
**2. Override: Ask user permission first**
|
|
69
|
-
If context suggests user wants direct action, ask:
|
|
70
|
-
```
|
|
71
|
-
AskUserQuestion:
|
|
72
|
-
question: "Hook wants me to delegate reading workspace/fields.ts to Kenji. Read directly instead?"
|
|
73
|
-
options:
|
|
74
|
-
- "Delegate to Kenji (recommended)"
|
|
75
|
-
- "Read directly this once"
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**3. If user approves direct action:**
|
|
79
|
-
1. Run the bypass command shown in block message (writes one-time bypass file)
|
|
80
|
-
2. Retry the original tool call
|
|
81
|
-
3. Bypass auto-deletes after one use
|
|
82
|
-
|
|
83
|
-
**CRITICAL: NEVER bypass without explicitly asking user.**
|
|
84
|
-
|
|
85
|
-
**Blocked tools:**
|
|
86
|
-
- `Read` on `workspace/` → Kenji
|
|
87
|
-
- `Glob`/`Grep` code searches → include in appropriate agent's prompt
|
|
88
|
-
- `mcp__hailer__*` tools → appropriate agent (Kenji, Dmitri, Viktor, etc.)
|
|
89
|
-
</delegation-blocks>
|
|
90
|
-
|
|
91
|
-
<agent-routing>
|
|
92
|
-
## Quick Routing
|
|
93
|
-
|
|
94
|
-
| Category | Agent |
|
|
95
|
-
|----------|-------|
|
|
96
|
-
| Read workspace/ data, schemas, IDs | **Kenji** |
|
|
97
|
-
| Read/fix/debug app or integration source code | **Giuseppe** or **Simple Writer** |
|
|
98
|
-
| Write activities | **Dmitri** |
|
|
99
|
-
| Workflows, fields, phases | **Helga** |
|
|
100
|
-
| Calculated fields + name functions | **Alejandro** |
|
|
101
|
-
| SQL insights | **Viktor** |
|
|
102
|
-
| Build apps, fix app bugs, debug API calls | **Giuseppe** |
|
|
103
|
-
| App UI/UX design specs | **UI Designer** |
|
|
104
|
-
| Demo/mockup apps (no Hailer connection) | **Marco** |
|
|
105
|
-
| Document templates (PDF/CSV) | **Ingrid** |
|
|
106
|
-
| Activity movers (phase cascades) | **Igor** |
|
|
107
|
-
| Monolith automations (webhooks, scheduled jobs) | **Ivan** |
|
|
108
|
-
| Zapier integrations | **Zara** |
|
|
109
|
-
| Tests (vitest, playwright, build checks) | **Tanya** |
|
|
110
|
-
| Code review (bugs, security, best practices) | **Svetlana** |
|
|
111
|
-
| LSP inspection (dead code, unused imports) | **Lars** |
|
|
112
|
-
| Basic edits (ID swaps, string replacements) | **Simple Writer** |
|
|
113
|
-
| Code simplification and cleanup | **Code Simplifier** |
|
|
114
|
-
| API endpoint documentation | **Marcus** |
|
|
115
|
-
| MCP tool development | **Gunther** |
|
|
116
|
-
| Discussions (read, post, membership) | **Yevgeni** |
|
|
117
|
-
| App permissions (grant/revoke access) | **Permissions Handler** |
|
|
118
|
-
| Skill creation and agent updates | **Ada** |
|
|
119
|
-
| New agent creation | **Builder** |
|
|
120
|
-
| Marketplace publishing | **Marketplace Publisher** |
|
|
121
|
-
| Marketplace PR review | **Marketplace Reviewer** |
|
|
122
|
-
| Web research | **Web Search** |
|
|
123
|
-
| Config audit (CLAUDE.md, hooks, agents) | **Bjorn** |
|
|
124
|
-
|
|
125
|
-
Ambiguous routing? Load `delegation-routing` skill or run `/help:agents`.
|
|
126
|
-
</agent-routing>
|
|
127
|
-
|
|
128
|
-
<skill-system>
|
|
129
|
-
## Skill System
|
|
130
|
-
|
|
131
|
-
Skills are reusable knowledge files (`.claude/skills/<name>/SKILL.md`) that give agents domain-specific patterns, API references, and code templates. They keep agent definitions lean while providing deep expertise on demand.
|
|
132
|
-
|
|
133
|
-
**Two types of skill loading:**
|
|
134
|
-
|
|
135
|
-
**1. Auto-injected (no action needed):** Agents declare core skills in their frontmatter `skills:` field. The `SubagentStart` hook (`skill-injector.cjs`) reads the list, loads each `SKILL.md` from `.claude/skills/<name>/`, and injects it as `additionalContext` when the agent spawns.
|
|
136
|
-
|
|
137
|
-
**2. On-demand (include in prompt):** For specialized tasks, tell the agent to load an extra skill via Skill tool. Only 6 agents have the Skill tool: Giuseppe, Helga, Viktor, Alejandro, Ingrid, Ada.
|
|
138
|
-
|
|
139
|
-
| Agent | Task pattern | Add to prompt |
|
|
140
|
-
|-------|-------------|---------------|
|
|
141
|
-
| **Giuseppe** | Images, pictures, photos | `Load the hailer-apps-pictures skill.` |
|
|
142
|
-
| **Giuseppe** | Publishing, deploy to prod | `Load the publish-hailer-app skill.` |
|
|
143
|
-
| **Giuseppe** | REST API, direct HTTP calls | `Load the hailer-rest-api skill.` |
|
|
144
|
-
| **Viktor** | JOIN, cross-workflow, linked data | `Load the insight-join-patterns skill.` |
|
|
145
|
-
| **Viktor** | Field config, phases, workspace | `Load the SDK-ws-config-skill skill.` |
|
|
146
|
-
| **Alejandro** | Field config, phases, workspace | `Load the SDK-ws-config-skill skill.` |
|
|
147
|
-
| **Ingrid** | Field config, phases, workspace | `Load the SDK-ws-config-skill skill.` |
|
|
148
|
-
|
|
149
|
-
**Adding core skills to an agent:**
|
|
150
|
-
```yaml
|
|
151
|
-
# In .claude/agents/agent-name.md frontmatter
|
|
152
|
-
skills:
|
|
153
|
-
- SDK-ws-config-skill
|
|
154
|
-
- SDK-generate-skill
|
|
155
|
-
```
|
|
156
|
-
</skill-system>
|
|
157
|
-
|
|
158
|
-
<task-usage>
|
|
159
|
-
## Task Usage
|
|
160
|
-
|
|
161
|
-
**Rule: 2+ agents or 3+ steps = create tasks.** Mark in_progress before starting, completed when done.
|
|
162
|
-
|
|
163
|
-
Examples that need tasks:
|
|
164
|
-
- "Apply these 4 learnings" → 4 tasks
|
|
165
|
-
- "Run review squad" → 1 task per agent + 1 for fixes
|
|
166
|
-
- "Build feature from PRD" → task per implementation step
|
|
167
|
-
|
|
168
|
-
Skip tasks for: single-agent dispatch, quick lookups, simple edits
|
|
169
|
-
</task-usage>
|
|
170
|
-
|
|
171
|
-
<background-agents>
|
|
172
|
-
## Background Execution
|
|
173
|
-
|
|
174
|
-
All agents support `run_in_background: true`. Use it proactively for tasks that take a while (full test suites, multi-file reviews, deep research, app scaffolding). Tell the user "Running X in background" and keep working. Check results via `Read` on the `output_file` path or `TaskOutput(task_id, block=false)`. Multiple agents can run in background simultaneously.
|
|
175
|
-
</background-agents>
|
|
176
|
-
|
|
177
|
-
<error-detection-skills>
|
|
178
|
-
## Error Detection Skills
|
|
179
|
-
|
|
180
|
-
Load these skills when you detect common agent failure patterns:
|
|
181
|
-
|
|
182
|
-
| Trigger | Load Skill |
|
|
183
|
-
|---------|------------|
|
|
184
|
-
| MCP validation fails ("Required" errors, empty receivedArgs) | `tool-parameter-usage` |
|
|
185
|
-
| Agent returns success but tool actually failed | `tool-response-verification` |
|
|
186
|
-
| Empty array/string errors in optional parameters | `optional-parameters` |
|
|
187
|
-
| Agent outputs prose after JSON closing brace | `json-only-output` |
|
|
188
|
-
|
|
189
|
-
These help you detect and correct issues before reporting to user.
|
|
190
|
-
</error-detection-skills>
|
|
191
|
-
|
|
192
|
-
<push-commands>
|
|
193
|
-
When agents return `"status": "ready_to_push"`:
|
|
194
|
-
```json
|
|
195
|
-
{ "status": "ready_to_push", "commands": ["npm run fields-push"], "summary": "..." }
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
YOU run these commands via Bash tool. This triggers safety hooks.
|
|
199
|
-
Do NOT ask user to run them manually.
|
|
200
|
-
</push-commands>
|
|
201
|
-
|
|
202
|
-
<needs-confirmation>
|
|
203
|
-
When agents return `"status": "needs_confirmation"`:
|
|
204
|
-
1. AskUserQuestion to confirm
|
|
205
|
-
2. If yes: run the `safe_command` from result
|
|
206
|
-
3. If no: report cancellation
|
|
207
|
-
</needs-confirmation>
|
|
208
|
-
|
|
209
|
-
---
|
|
210
|
-
|
|
211
|
-
<local-first>
|
|
212
|
-
**Why local-first?** Workspace files are instant, free, and contain all structural data (IDs, field types, phases). API calls are slow, rate-limited, and only needed for live activity data. Always check workspace/ BEFORE API calls.
|
|
213
|
-
|
|
214
|
-
```
|
|
215
|
-
workspace/
|
|
216
|
-
├── workflows.ts, enums.ts, teams.ts, groups.ts
|
|
217
|
-
└── [Workflow]_[id]/
|
|
218
|
-
├── fields.ts
|
|
219
|
-
└── phases.ts
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
LOCAL: Workflow/field/phase IDs, field types, labels, options
|
|
223
|
-
API: Activity data, counts, discussion messages
|
|
224
|
-
|
|
225
|
-
REFRESH: `npm run pull`
|
|
226
|
-
</local-first>
|
|
227
|
-
|
|
228
|
-
<hooks>
|
|
229
|
-
## Hooks
|
|
230
|
-
|
|
231
|
-
26 CJS hooks in `.claude/hooks/` wired via `settings.json`. Each receives JSON on stdin, returns `{"decision": "allow"}` or `{"decision": "block", "message": "..."}` on stdout.
|
|
232
|
-
|
|
233
|
-
Key events: `SessionStart` (auto-loads context), `PreToolUse` (guards + delegation enforcement), `PostToolUse` (linting, logging, failure detection), `SubagentStart` (skill injection).
|
|
234
|
-
|
|
235
|
-
**If hooks break after `npm install`:** Check `.claude/settings.json` paths, test with `node .claude/hooks/<script>.cjs --help`, or run `/clear-defaults`.
|
|
236
|
-
|
|
237
|
-
PROTECTED (hooks confirm): npm run push, *-push, *-sync | SAFE: npm run pull, npm run generate
|
|
238
|
-
</hooks>
|
|
239
|
-
|
|
240
|
-
<app-development>
|
|
241
|
-
## App Development Rules
|
|
242
|
-
|
|
243
|
-
**Default: Local development.** Scaffold creates a dev app at `http://localhost:3000` automatically. Run `npm run dev` and test inside Hailer iframe.
|
|
244
|
-
|
|
245
|
-
**Publishing: Only when user explicitly asks.** Tell Giuseppe to load the `publish-hailer-app` skill. It handles manifest validation, `publish_hailer_app` upload, and `update_app` to switch URL to production.
|
|
246
|
-
|
|
247
|
-
**Builder mode for Giuseppe:** The `app-edit-guard` hook blocks file edits in `apps/` unless builder mode is active. Before spawning Giuseppe directly, run:
|
|
248
|
-
```bash
|
|
249
|
-
node .claude/hooks/app-edit-guard.cjs --agent-on
|
|
250
|
-
```
|
|
251
|
-
After Giuseppe completes:
|
|
252
|
-
```bash
|
|
253
|
-
node .claude/hooks/app-edit-guard.cjs --agent-off
|
|
254
|
-
```
|
|
255
|
-
The `/app-squad` command handles this automatically.
|
|
256
|
-
</app-development>
|
|
257
|
-
|
|
258
|
-
---
|
|
259
|
-
|
|
260
|
-
<session-protocol>
|
|
261
|
-
## Session Protocol
|
|
262
|
-
|
|
263
|
-
### Starting a Session
|
|
264
|
-
SessionStart hook auto-loads SESSION-HANDOFF.md + DEVELOPMENT.md into context.
|
|
265
|
-
1. Review auto-loaded context, update handoff (remove completed items)
|
|
266
|
-
2. If handoff has "Pending Tasks" → recreate with `TaskCreate`
|
|
267
|
-
3. If no DEVELOPMENT.md → offer to create one
|
|
268
|
-
4. Briefly confirm current state before diving in
|
|
269
|
-
|
|
270
|
-
### During a Session
|
|
271
|
-
- **Feature request:** Ask "Want me to create a PRD?" even if user provides detailed plan. Only skip if user explicitly declines or already used `/prd`/`/autoplan`.
|
|
272
|
-
- **Tasks:** 2+ agents or 3+ steps = create tasks. Mark in_progress before starting, completed when done. If it won't be done this session, put it in DEVELOPMENT.md backlog.
|
|
273
|
-
- **Learnings:** Use `/learn <cat> <desc>` to capture gotchas and patterns.
|
|
274
|
-
|
|
275
|
-
### Ending a Session
|
|
276
|
-
- **Completion:** Update DEVELOPMENT.md + PRD status. Offer code-simplifier after features.
|
|
277
|
-
- **Context full:** Update handoff, tell user to run `/handoff`.
|
|
278
|
-
- **When to update DEVELOPMENT.md:** After features/milestones, architecture decisions, or discovering technical constraints.
|
|
279
|
-
|
|
280
|
-
### Planning Workflow
|
|
281
|
-
1. **Big picture → DEVELOPMENT.md** — Purpose, stack, roadmap linking to PRDs
|
|
282
|
-
2. **Feature details → PRDs** (`docs/prd-*.md`) — One per feature, links back to roadmap
|
|
283
|
-
3. **Implementation → Pick a PRD and build** — Use `/yolo` for autonomous execution
|
|
284
|
-
|
|
285
|
-
**Quick start:** `/autoplan "description"` creates DEVELOPMENT.md + PRDs automatically.
|
|
286
|
-
</session-protocol>
|
|
287
|
-
|
|
288
|
-
<file-templates>
|
|
289
|
-
## Documentation Hierarchy
|
|
290
|
-
|
|
291
|
-
| File | Purpose |
|
|
292
|
-
|------|---------|
|
|
293
|
-
| **DEVELOPMENT.md** | Project status, backlog, tech stack, roadmap |
|
|
294
|
-
| **docs/prd-*.md** | Feature requirements and implementation steps |
|
|
295
|
-
| **SESSION-HANDOFF.md** | Current work, next steps, key context |
|
|
296
|
-
|
|
297
|
-
**DEVELOPMENT.md** has sections: What This Project Does, Roadmap (linking PRDs), Current Status, Known Issues, Technical Decisions.
|
|
298
|
-
**SESSION-HANDOFF.md** has sections: Current Work, Next Steps, Context.
|
|
299
|
-
</file-templates>
|
|
300
|
-
|
|
301
|
-
<customization>
|
|
302
|
-
**Creating agents:** Load `agent-structure` skill for template.
|
|
303
|
-
**Modify:** Edit `.claude/agents/*.md`
|
|
304
|
-
**Disable:** Move to `docs/agents/`
|
|
305
|
-
</customization>
|
|
306
|
-
|
|
307
|
-
<config-source>
|
|
308
|
-
## Config Source
|
|
309
|
-
|
|
310
|
-
Agents, skills, hooks, and commands are in `.claude/` (project-local).
|
|
311
|
-
Update from config repo: `cd ~/hailer-claude-config && git pull`, then copy to project.
|
|
312
|
-
Learnings: `~/hailer-claude-config/inbox/`
|
|
313
|
-
</config-source>
|
|
314
|
-
|
|
315
|
-
<commands>
|
|
316
|
-
## Commands
|
|
317
|
-
|
|
318
|
-
**Syntax:** `/command <param>` (angle brackets = required). `/help:topic` (colon = subtopic).
|
|
319
|
-
|
|
320
|
-
**Essential:** `/save`, `/handoff`, `/prd`, `/autoplan`, `/yolo`, `/ws-pull`, `/learn`
|
|
321
|
-
|
|
322
|
-
**Squads** (multi-agent workflows):
|
|
323
|
-
|
|
324
|
-
| Squad | Agents | Use for |
|
|
325
|
-
|-------|--------|---------|
|
|
326
|
-
| `/app-squad` | Kenji → Designer → Giuseppe → Tanya | Build apps end-to-end |
|
|
327
|
-
| `/review-squad` | Svetlana + Lars + Tanya | Code review with auto-fix |
|
|
328
|
-
| `/config-squad` | Helga → Alejandro → Viktor | Workflow + fields + insights |
|
|
329
|
-
| `/hotfix-squad` | Tanya → Simple Writer → Svetlana | Quick bug fixes |
|
|
330
|
-
| `/debug-squad` | Kenji + Viktor + Svetlana + Tanya | Parallel investigation |
|
|
331
|
-
| `/swarm <desc>` | Auto-selected | Large-scale parallel work |
|
|
332
|
-
|
|
333
|
-
More squads + full command list: `/help:commands`
|
|
334
|
-
</commands>
|
|
335
|
-
|
|
336
|
-
<directory>
|
|
337
|
-
## Project Structure
|
|
338
|
-
|
|
339
|
-
```
|
|
340
|
-
workspace/ # Hailer config - check FIRST for IDs
|
|
341
|
-
apps/ # Frontend apps
|
|
342
|
-
integrations/ # Backend services
|
|
343
|
-
.claude/ # Agents, hooks, skills, commands (project-local)
|
|
344
|
-
DEVELOPMENT.md # Project status
|
|
345
|
-
```
|
|
346
|
-
</directory>
|
|
347
|
-
|
|
348
|
-
<sdk-gotchas>
|
|
349
|
-
## Hailer SDK Quick Reference
|
|
350
|
-
|
|
351
|
-
Common pitfalls that cause debugging loops - check these FIRST:
|
|
352
|
-
|
|
353
|
-
| Gotcha | Correct | Wrong |
|
|
354
|
-
|--------|---------|-------|
|
|
355
|
-
| Activity field updates | `{type: "string", value: "x"}` wrapper | Raw value `"x"` |
|
|
356
|
-
| `linkedfrom` in isolated-vm | Does NOT work - use ActivityLink field instead | Trying cross-link resolution |
|
|
357
|
-
| Code in isolated-vm | Plain JavaScript only | TypeScript syntax (`as`, type annotations) |
|
|
358
|
-
| Phase transitions | Exact string: `"Uudet"` → `"Tehty"` | Guessed names |
|
|
359
|
-
| Field IDs | Read from workspace/ files | Guessing from labels |
|
|
360
|
-
| Dropdown values | `{data: [{value, label}]}` | `{options: [...]}` |
|
|
361
|
-
| ActivityLink format | Plain string array of workflow IDs | Nested objects |
|
|
362
|
-
|
|
363
|
-
**Rule:** When touching Hailer fields, ALWAYS read workspace/ first via Kenji. Never guess IDs or formats.
|
|
364
|
-
</sdk-gotchas>
|
|
365
|
-
|
|
366
|
-
<bulk-operations>
|
|
367
|
-
## Bulk Tasks
|
|
368
|
-
|
|
369
|
-
For repetitive edits, use `/swarm` or headless mode (`claude -p "..." --allowedTools "Edit,Read,Grep,Glob"`). Act first — grep to find instances, then edit immediately.
|
|
370
|
-
</bulk-operations>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Multi-Bot Client Manager
|
|
3
|
-
* Manages multiple bot clients, each with their own Hailer connection
|
|
4
|
-
*/
|
|
5
|
-
import { HailerClient } from "../mcp/hailer-clients";
|
|
6
|
-
import { SignalHandler } from "../mcp/signal-handler";
|
|
7
|
-
import { BotClientConfig } from "./shared/types";
|
|
8
|
-
import { WorkspaceCache } from "../mcp/workspace-cache";
|
|
9
|
-
export interface BotClient {
|
|
10
|
-
userId: string;
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
config: BotClientConfig;
|
|
14
|
-
client: HailerClient;
|
|
15
|
-
signalHandler: SignalHandler;
|
|
16
|
-
workspaceCache?: WorkspaceCache;
|
|
17
|
-
}
|
|
18
|
-
export declare class MultiBotManager {
|
|
19
|
-
private botConfigs;
|
|
20
|
-
private botClients;
|
|
21
|
-
constructor(botConfigs: BotClientConfig[]);
|
|
22
|
-
initializeAllHailerClientsFromConfig(): Promise<void>;
|
|
23
|
-
getBotClient(userId: string): BotClient | undefined;
|
|
24
|
-
getAllBotClients(): BotClient[];
|
|
25
|
-
getBotIds(): string[];
|
|
26
|
-
private userNameCache;
|
|
27
|
-
private static USER_CACHE_TTL;
|
|
28
|
-
/**
|
|
29
|
-
* Look up a user's full name by their user ID
|
|
30
|
-
* Uses workspace cache first, then falls back to socket API call
|
|
31
|
-
*/
|
|
32
|
-
getUserName(userId: string): string | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Initialize a single bot client from credentials
|
|
35
|
-
* Used for dynamic bot creation from AI Hub
|
|
36
|
-
*/
|
|
37
|
-
initializeBotClient(email: string, password: string, apiKey: string): Promise<string>;
|
|
38
|
-
/**
|
|
39
|
-
* Remove and disconnect a bot client
|
|
40
|
-
*/
|
|
41
|
-
removeBotClient(userId: string): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Get bot client by bot ID (hal, giuseppe, hailerExpert, vastuullisuus)
|
|
44
|
-
*/
|
|
45
|
-
getBotClientByBotId(botId: string): BotClient | undefined;
|
|
46
|
-
shutdown(): Promise<void>;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=bot-manager.d.ts.map
|