@hailer/mcp 1.2.1 → 2.0.0-beta.3
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/app-squad.md +16 -110
- 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 +105 -151
- package/.claude/skills/hailer-app-builder/SKILL.md +2 -2
- package/.claude/skills/hailer-ui-guide/SKILL.md +265 -0
- package/.env.example +50 -1
- package/CLAUDE.md +138 -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 +1339 -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/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,130 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Bootstrap a new Hailer project end-to-end
|
|
3
|
-
argument-hint: "project description or PRD path"
|
|
4
|
-
allowed-tools: Task, Bash, Read
|
|
5
|
-
---
|
|
6
|
-
# Onboard Squad
|
|
7
|
-
|
|
8
|
-
Sequential pipeline: Create workspace infrastructure, scaffold the app, and verify everything is wired correctly.
|
|
9
|
-
|
|
10
|
-
**Roles:**
|
|
11
|
-
1. **Workflow Config** - Workflow configuration (create workflows, fields, phases, teams, groups)
|
|
12
|
-
2. **Function Fields** - Calculated fields and nameFunction
|
|
13
|
-
3. **App Builder** - Scaffold first app with basic CRUD interface
|
|
14
|
-
4. **Config Auditor** - Audit configuration accuracy and field references
|
|
15
|
-
|
|
16
|
-
**Goal:** $ARGUMENTS
|
|
17
|
-
|
|
18
|
-
## Protocol
|
|
19
|
-
|
|
20
|
-
### Step 1: Parse Requirements
|
|
21
|
-
|
|
22
|
-
Parse `$ARGUMENTS` to determine input type:
|
|
23
|
-
|
|
24
|
-
- **If it's a file path** (e.g., `docs/prd-onboarding.md`): Read it for requirements
|
|
25
|
-
- **Otherwise:** Use it as a project description
|
|
26
|
-
|
|
27
|
-
If `$ARGUMENTS` is a file path, read it first before proceeding to Workflow Config.
|
|
28
|
-
|
|
29
|
-
### Step 2: Workflow Config
|
|
30
|
-
|
|
31
|
-
Spawn a workflow config agent to create workspace infrastructure:
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
Task(prompt="Load sdk-ws-config-skill for workspace setup.\n\nBootstrap a new Hailer project: $ARGUMENTS\n\nCreate: workflows (at least 1), fields for each workflow, phases, teams, and groups as needed.")
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Wait for result. If the agent returns `"status": "ready_to_push"`:
|
|
38
|
-
- Run the push commands provided (e.g., `npm run fields-push:force`)
|
|
39
|
-
- Then run `npm run pull` to refresh local workspace with new IDs
|
|
40
|
-
- **Important:** Workflow config ALWAYS spawns a function fields agent for nameFunction. Check if the result indicates it was spawned and created nameFunction. If yes, function fields work is done - skip to Step 3.
|
|
41
|
-
|
|
42
|
-
### Step 3: Function Fields - Conditional
|
|
43
|
-
|
|
44
|
-
Only spawn if workflow config indicates additional function fields are needed beyond what was created by the auto-spawn.
|
|
45
|
-
|
|
46
|
-
If needed, spawn a function fields agent:
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
Task(prompt="Load sdk-function-fields and sdk-ws-config-skill skills for creating calculated fields.\n\nCreate additional function fields for workflows created in: [INSERT WORKFLOW CONFIG GOAL].\n\nWorkflow config created these workflows: [SUMMARIZE WORKFLOW CONFIG RESULT - workflow names, IDs, field counts].\n\nFunction fields already created by workflow config: [FROM WORKFLOW CONFIG RESULT].")
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Wait for result. If `"status": "ready_to_push"`:
|
|
53
|
-
- Run the push commands
|
|
54
|
-
- Run `npm run pull` to refresh workspace
|
|
55
|
-
|
|
56
|
-
### Step 4: App Scaffold
|
|
57
|
-
|
|
58
|
-
Spawn an app builder to build the first app using the new workspace:
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
Task(prompt="Load hailer-app-builder and hailer-design-system skills for app development.\n\nScaffold the first Hailer app for this new project: $ARGUMENTS\n\nWorkspace created by workflow config: [SUMMARIZE WORKFLOW CONFIG RESULT - workflow names, IDs, field counts]. You: read workspace/ directly to discover exact field IDs, types, and team configurations. Do not guess IDs.\n\nBuild a basic CRUD interface using @hailer/app-sdk and Chakra UI. Start with the primary workflow. Use the Hailer Design System.\n\nNote: Assume Local Dev app exists (orchestrator checks this before spawning you). Build for local development at http://localhost:3000.")
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Wait for result. If the builder returns `"status": "ready_to_push"`:
|
|
65
|
-
- Run the push commands
|
|
66
|
-
|
|
67
|
-
### Step 5: Config Audit
|
|
68
|
-
|
|
69
|
-
Spawn a config auditor to verify everything is configured correctly:
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
Task(prompt="Audit this new Hailer project setup:\n\n1. Verify CLAUDE.md accuracy (check that project type detection works)\n2. Verify workspace configuration: workflows, fields, phases, teams all match workspace/ files\n3. Verify field references in the new app match workspace/ field definitions\n4. Check for missing imports, incorrect IDs, or type mismatches\n5. Verify that nameFunction is set on the primary workflow\n\nProject goal: $ARGUMENTS\n\nReport any misconfigurations. If iteration <= 1, recommend fixes to the orchestrator.")
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
**Loop Control:**
|
|
76
|
-
- If config auditor finds no critical issues: proceed to Step 6 (report)
|
|
77
|
-
- If config auditor finds issues AND `iteration <= 1`:
|
|
78
|
-
- Increment `iteration`
|
|
79
|
-
- Determine which agent to fix it (usually Workflow Config or App Builder)
|
|
80
|
-
- Run appropriate agent with the issues to fix
|
|
81
|
-
- Return to Step 5 (config audit re-checks)
|
|
82
|
-
- If config auditor finds issues AND `iteration > 1`: escalate to user in Step 6
|
|
83
|
-
|
|
84
|
-
### Step 6: Report
|
|
85
|
-
|
|
86
|
-
```markdown
|
|
87
|
-
## Onboard Squad Complete
|
|
88
|
-
|
|
89
|
-
**Project Goal:** $ARGUMENTS
|
|
90
|
-
|
|
91
|
-
### Workspace Setup
|
|
92
|
-
- Workflows created: [list with IDs]
|
|
93
|
-
- Fields created: [count]
|
|
94
|
-
- Phases: [count]
|
|
95
|
-
- Teams: [count]
|
|
96
|
-
- Function fields auto-spawn: [nameFunction created? Y/N]
|
|
97
|
-
|
|
98
|
-
### Function Fields
|
|
99
|
-
- Additional function fields created: [list or "None needed"]
|
|
100
|
-
- Skipped: [reason if skipped]
|
|
101
|
-
|
|
102
|
-
### App Scaffold
|
|
103
|
-
- App path: [path to new app]
|
|
104
|
-
- Build status: Pass/Fail
|
|
105
|
-
- Files created: [count/list]
|
|
106
|
-
- Local dev setup: [check local dev app name]
|
|
107
|
-
|
|
108
|
-
### Config Audit
|
|
109
|
-
- Critical issues found: [count] or "None"
|
|
110
|
-
- Status: VERIFIED / NEEDS FIXES (if iteration > 1, see below)
|
|
111
|
-
|
|
112
|
-
[If iteration > 1 - escalated:]
|
|
113
|
-
### Remaining Issues
|
|
114
|
-
[List issues config auditor found that weren't resolved in 1 fix iteration]
|
|
115
|
-
- Manual fixes recommended: [hints]
|
|
116
|
-
|
|
117
|
-
### Next Steps
|
|
118
|
-
1. Run `npm run dev` to test the app locally
|
|
119
|
-
2. Ensure "Local Dev" app exists in Hailer workspace
|
|
120
|
-
3. Test the app inside Hailer iframe at http://localhost:3000
|
|
121
|
-
4. Run `npm run pull` to ensure workspace/ is fully up to date
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
## Notes
|
|
125
|
-
|
|
126
|
-
- Each agent in the pipeline needs IDs from the previous step. Always `npm run pull` between Workflow Config→Function Fields→App Builder to refresh local workspace.
|
|
127
|
-
- Workflow config auto-spawns function fields agent for nameFunction. Check the result - only spawn function fields separately in Step 3 if additional function fields are needed.
|
|
128
|
-
- App builder needs real workflow and field IDs from workspace/ - always read the files and paste actual IDs, never let it guess.
|
|
129
|
-
- Config auditor's audit is the quality gate. If issues are found and you've iterated once, escalate remaining issues to the user rather than looping infinitely.
|
|
130
|
-
- Set `iteration = 1` at the start. Increment after each config audit if fixes are attempted.
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Orchestrator-driven parallel swarm for large-scale tasks
|
|
3
|
-
argument-hint: "description of what to do across many items"
|
|
4
|
-
allowed-tools: Task, Bash, Read, Glob
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Swarm
|
|
8
|
-
|
|
9
|
-
Orchestrator-driven parallel execution: analyze the task, discover work items, pick agents, split into chunks, dispatch workers, aggregate results.
|
|
10
|
-
|
|
11
|
-
**Goal:** $ARGUMENTS
|
|
12
|
-
|
|
13
|
-
## Protocol
|
|
14
|
-
|
|
15
|
-
### Step 1: Analyze the Task
|
|
16
|
-
|
|
17
|
-
Read `$ARGUMENTS` and determine:
|
|
18
|
-
|
|
19
|
-
- **What needs to be done?** (review, edit, check, migrate, update, clean up)
|
|
20
|
-
- **What are the work items?** (files, activities, workflows, agents, skills, configs)
|
|
21
|
-
- **What scope?** (explicit path/glob from user, or infer from task description)
|
|
22
|
-
|
|
23
|
-
If the scope is unclear, use Glob or Bash to discover items:
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
# Files
|
|
27
|
-
Glob("src/**/*.ts")
|
|
28
|
-
Glob(".claude/agents/*.md")
|
|
29
|
-
Glob("workspace/*/fields.ts")
|
|
30
|
-
|
|
31
|
-
# Activities (use data reader to count/list)
|
|
32
|
-
Task(prompt="Count and list activity IDs for [workflow]")
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
If fewer than 5 items are discovered, **abort swarm** and suggest running a regular squad or single agent instead. Swarm is for scale.
|
|
36
|
-
|
|
37
|
-
### Step 2: Pick Agent(s)
|
|
38
|
-
|
|
39
|
-
Based on the task type, select the right agent(s):
|
|
40
|
-
|
|
41
|
-
| Task Type | Role | Examples |
|
|
42
|
-
|-----------|-------|---------|
|
|
43
|
-
| Code review, security audit | **Code Reviewer** | "review for bugs", "security check", "find vulnerabilities" |
|
|
44
|
-
| Dead code, unused imports, type errors | **Code Inspector** | "find dead code", "check types", "unused imports" |
|
|
45
|
-
| Small edits, string replacements, rule additions | **Code Fixer** | "add header to each file", "replace X with Y", "update rule" |
|
|
46
|
-
| Code cleanup, simplification | **Code Simplifier** | "clean up", "simplify", "refactor for clarity" |
|
|
47
|
-
| Config audit, structure validation | **Config Auditor** | "check config", "validate structure", "audit settings" |
|
|
48
|
-
| Data state checks, field validation | **Data Reader** | "check all activities", "verify field values", "find missing data" |
|
|
49
|
-
| Query patterns, data analysis | **Data Analyzer** | "analyze patterns", "find anomalies across workflows" |
|
|
50
|
-
| Activity updates, bulk mutations | **Activity Writer** | "update all activities", "move to phase", "set field values" |
|
|
51
|
-
|
|
52
|
-
**Multi-agent swarms:** If the task spans multiple domains, assign different agent types to different items. For example, "clean up the project" might use Code Inspector for `.ts` files, Config Auditor for config files, and Code Simplifier for app components.
|
|
53
|
-
|
|
54
|
-
### Step 3: Calculate Workers
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
items_count = total discovered items
|
|
58
|
-
items_per_worker = 10 (default)
|
|
59
|
-
max_workers = 5
|
|
60
|
-
|
|
61
|
-
worker_count = min(ceil(items_count / items_per_worker), max_workers)
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Split items into `worker_count` chunks. Try to keep chunks roughly equal size.
|
|
65
|
-
|
|
66
|
-
For multi-agent swarms, group items by agent type first, then chunk within each type.
|
|
67
|
-
|
|
68
|
-
### Step 4: Dispatch Workers
|
|
69
|
-
|
|
70
|
-
Launch all workers in parallel using multiple Task tool calls in a single message. All workers run in background (`run_in_background: true`).
|
|
71
|
-
|
|
72
|
-
Each worker gets:
|
|
73
|
-
|
|
74
|
-
```
|
|
75
|
-
Task(
|
|
76
|
-
run_in_background: true,
|
|
77
|
-
prompt="SWARM WORKER [N] of [TOTAL]
|
|
78
|
-
|
|
79
|
-
TASK: [User's description from $ARGUMENTS]
|
|
80
|
-
|
|
81
|
-
YOUR ITEMS ([count]):
|
|
82
|
-
- [item 1]
|
|
83
|
-
- [item 2]
|
|
84
|
-
- [item 3]
|
|
85
|
-
...
|
|
86
|
-
|
|
87
|
-
Process each item and report results in this format:
|
|
88
|
-
|
|
89
|
-
RESULTS:
|
|
90
|
-
- [item]: [status] - [details]
|
|
91
|
-
- [item]: [status] - [details]
|
|
92
|
-
|
|
93
|
-
SUMMARY:
|
|
94
|
-
- Processed: [count]
|
|
95
|
-
- Passed: [count]
|
|
96
|
-
- Issues found: [count]
|
|
97
|
-
- Failed: [count]")
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
Tell the user:
|
|
101
|
-
```
|
|
102
|
-
Launched [worker_count] workers across [items_count] items.
|
|
103
|
-
Running in background - what else do you want to work on?
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Step 5: Collect Results
|
|
107
|
-
|
|
108
|
-
When workers complete (check via Read on output files or TaskOutput), aggregate all results.
|
|
109
|
-
|
|
110
|
-
If any worker failed or timed out:
|
|
111
|
-
- Report which items were in the failed worker's batch
|
|
112
|
-
- Offer to retry just those items
|
|
113
|
-
|
|
114
|
-
### Step 6: Report
|
|
115
|
-
|
|
116
|
-
```markdown
|
|
117
|
-
## Swarm Report
|
|
118
|
-
|
|
119
|
-
### Task
|
|
120
|
-
[User's description]
|
|
121
|
-
|
|
122
|
-
### Execution
|
|
123
|
-
- **Items:** [total count]
|
|
124
|
-
- **Workers:** [worker count] x [role type(s)]
|
|
125
|
-
- **Duration:** [time from dispatch to last worker completion]
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
### Results by Worker
|
|
130
|
-
|
|
131
|
-
#### Worker 1 ([role type]) - [X items]
|
|
132
|
-
- [item]: [status] - [details]
|
|
133
|
-
- [item]: [status] - [details]
|
|
134
|
-
...
|
|
135
|
-
|
|
136
|
-
#### Worker 2 ([role type]) - [X items]
|
|
137
|
-
...
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
### Aggregate Summary
|
|
142
|
-
|
|
143
|
-
| Status | Count |
|
|
144
|
-
|--------|-------|
|
|
145
|
-
| Passed / Clean | X |
|
|
146
|
-
| Issues Found | X |
|
|
147
|
-
| Failed / Error | X |
|
|
148
|
-
|
|
149
|
-
### Issues Found
|
|
150
|
-
[Grouped and deduplicated list of all issues across all workers]
|
|
151
|
-
|
|
152
|
-
1. **[item]**: [issue description]
|
|
153
|
-
2. **[item]**: [issue description]
|
|
154
|
-
...
|
|
155
|
-
|
|
156
|
-
### Failed Items
|
|
157
|
-
[If any workers failed, list their items for retry]
|
|
158
|
-
|
|
159
|
-
### Next Steps
|
|
160
|
-
- [Suggested follow-up based on results]
|
|
161
|
-
- [If issues found: suggest /hotfix-squad or /review-squad to fix]
|
|
162
|
-
- [If edits made: suggest /review-squad to verify]
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
## Options
|
|
166
|
-
|
|
167
|
-
| Flag | Effect |
|
|
168
|
-
|------|--------|
|
|
169
|
-
| `--workers=N` | Override worker count (default: auto-calculated, max 5) |
|
|
170
|
-
| `--dry-run` | Show what would be dispatched without actually running |
|
|
171
|
-
| `--no-bg` | Run workers in foreground (wait for all to complete) |
|
|
172
|
-
|
|
173
|
-
## Examples
|
|
174
|
-
|
|
175
|
-
```
|
|
176
|
-
# Review all source files for security
|
|
177
|
-
/swarm "review all TypeScript files in src/ for security vulnerabilities"
|
|
178
|
-
→ Discovers 47 .ts files, spawns 5 code reviewer workers
|
|
179
|
-
|
|
180
|
-
# Bulk edit agent files
|
|
181
|
-
/swarm "add a '## Version History' section to every agent file"
|
|
182
|
-
→ Discovers 27 agent .md files, spawns 3 code fixer workers
|
|
183
|
-
|
|
184
|
-
# Validate workspace configs
|
|
185
|
-
/swarm "check all workflow field definitions for missing descriptions"
|
|
186
|
-
→ Discovers 12 fields.ts files, spawns 2 data reader workers
|
|
187
|
-
|
|
188
|
-
# Multi-agent cleanup
|
|
189
|
-
/swarm "clean up the entire apps/ directory"
|
|
190
|
-
→ Discovers 34 files: 20 .tsx → Code Simplifier workers, 8 .ts → Code Inspector workers, 6 configs → Config Auditor workers
|
|
191
|
-
→ Spawns 5 workers across 3 roles
|
|
192
|
-
|
|
193
|
-
# Data validation
|
|
194
|
-
/swarm "verify all Customer activities have a valid email field"
|
|
195
|
-
→ Data Reader counts 200 customers, spawns 5 data reader workers (40 each)
|
|
196
|
-
|
|
197
|
-
# Dry run to preview
|
|
198
|
-
/swarm "update all skills to use consistent headers" --dry-run
|
|
199
|
-
→ Shows: "Would dispatch 4 code fixer workers across 32 skill files"
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
## Notes
|
|
203
|
-
|
|
204
|
-
- Minimum 5 items to trigger swarm (below that, use a regular agent)
|
|
205
|
-
- Default max 5 workers to avoid overwhelming the system
|
|
206
|
-
- Workers run in background by default so user can keep working
|
|
207
|
-
- Multi-agent swarms naturally emerge from the role-based routing logic
|
|
208
|
-
- For write operations (Activity Writer, Code Fixer), consider running --dry-run first
|
|
209
|
-
- Swarm vs Squad: Swarm is raw parallel execution without quality gates. Workers operate independently. Squads have convergence, synthesis, and loops. Use swarm for bulk independent items, squads for coordinated workflows.
|
|
210
|
-
- Swarm + squad can combine: `/swarm "review src/"` finds issues, then user can run `/hotfix-squad` on results. This is a manual handoff - user confirms.
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Activate tool-builder mode to implement a new MCP tool
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Tool Builder Mode
|
|
6
|
-
|
|
7
|
-
Loading `tool-builder` skill for MCP tool patterns...
|
|
8
|
-
|
|
9
|
-
**What tool should I build?**
|
|
10
|
-
|
|
11
|
-
Please provide:
|
|
12
|
-
|
|
13
|
-
- **Tool Name**: `tool_name` (snake_case)
|
|
14
|
-
- **Purpose**: What does it do?
|
|
15
|
-
- **API Endpoint**: `v3.endpoint.method`
|
|
16
|
-
- **Request Format**: `[arg1, arg2]`
|
|
17
|
-
- **Response Format**: What the API returns
|
|
18
|
-
- **Target File**: Which file in `src/mcp/tools/`?
|
|
19
|
-
- **Tool Group**: READ | WRITE | PLAYGROUND
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
**Example:**
|
|
24
|
-
```
|
|
25
|
-
Tool Name: list_insights
|
|
26
|
-
Purpose: List all insights in workspace
|
|
27
|
-
API Endpoint: v3.insight.list
|
|
28
|
-
Request: [workspaceId]
|
|
29
|
-
Response: { insights: [{_id, name, query, sources}] }
|
|
30
|
-
Target File: insight.ts
|
|
31
|
-
Tool Group: PLAYGROUND
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
I'll:
|
|
35
|
-
1. Load tool-builder skill
|
|
36
|
-
2. Read existing patterns in target file
|
|
37
|
-
3. Implement the tool
|
|
38
|
-
4. Register in src/app.ts
|
|
39
|
-
5. Report what was created
|
|
@@ -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>
|