daemora 1.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +645 -0
- package/crew/_template/plugin.json +18 -0
- package/crew/analyst/plugin.json +29 -0
- package/crew/architect/plugin.json +29 -0
- package/crew/assistant/plugin.json +29 -0
- package/crew/backend/plugin.json +31 -0
- package/crew/devops/plugin.json +30 -0
- package/crew/facebook/plugin.json +36 -0
- package/crew/frontend/plugin.json +30 -0
- package/crew/github/plugin.json +18 -0
- package/crew/gmail/plugin.json +34 -0
- package/crew/google-calendar/plugin.json +26 -0
- package/crew/google-services/plugin.json +25 -0
- package/crew/imessage/plugin.json +24 -0
- package/crew/instagram/plugin.json +34 -0
- package/crew/linkedin/plugin.json +24 -0
- package/crew/meeting-attendant/plugin.json +27 -0
- package/crew/notifications/plugin.json +23 -0
- package/crew/notion/plugin.json +18 -0
- package/crew/planner/plugin.json +25 -0
- package/crew/reddit/plugin.json +32 -0
- package/crew/researcher/plugin.json +29 -0
- package/crew/reviewer/plugin.json +29 -0
- package/crew/security/plugin.json +30 -0
- package/crew/smart-home/plugin.json +23 -0
- package/crew/ssh-remote/plugin.json +28 -0
- package/crew/tiktok/plugin.json +26 -0
- package/crew/twitter/plugin.json +46 -0
- package/crew/video-editor/plugin.json +19 -0
- package/crew/video-editor/rules/3d.md +86 -0
- package/crew/video-editor/rules/animations.md +31 -0
- package/crew/video-editor/rules/assets/charts-bar-chart.tsx +173 -0
- package/crew/video-editor/rules/assets/text-animations-typewriter.tsx +100 -0
- package/crew/video-editor/rules/assets/text-animations-word-highlight.tsx +103 -0
- package/crew/video-editor/rules/assets.md +78 -0
- package/crew/video-editor/rules/audio-visualization.md +198 -0
- package/crew/video-editor/rules/audio.md +169 -0
- package/crew/video-editor/rules/calculate-metadata.md +134 -0
- package/crew/video-editor/rules/can-decode.md +81 -0
- package/crew/video-editor/rules/charts.md +120 -0
- package/crew/video-editor/rules/compositions.md +154 -0
- package/crew/video-editor/rules/cursor-and-clicks.md +108 -0
- package/crew/video-editor/rules/display-captions.md +184 -0
- package/crew/video-editor/rules/extract-frames.md +229 -0
- package/crew/video-editor/rules/ffmpeg.md +34 -0
- package/crew/video-editor/rules/focus-zoom.md +108 -0
- package/crew/video-editor/rules/fonts.md +152 -0
- package/crew/video-editor/rules/get-audio-duration.md +58 -0
- package/crew/video-editor/rules/get-video-dimensions.md +68 -0
- package/crew/video-editor/rules/get-video-duration.md +60 -0
- package/crew/video-editor/rules/gifs.md +141 -0
- package/crew/video-editor/rules/images.md +134 -0
- package/crew/video-editor/rules/import-srt-captions.md +69 -0
- package/crew/video-editor/rules/light-leaks.md +73 -0
- package/crew/video-editor/rules/lottie.md +70 -0
- package/crew/video-editor/rules/maps.md +412 -0
- package/crew/video-editor/rules/measuring-dom-nodes.md +34 -0
- package/crew/video-editor/rules/measuring-text.md +140 -0
- package/crew/video-editor/rules/parameters.md +109 -0
- package/crew/video-editor/rules/sequencing.md +118 -0
- package/crew/video-editor/rules/sfx.md +30 -0
- package/crew/video-editor/rules/silence-detection.md +71 -0
- package/crew/video-editor/rules/subtitles.md +36 -0
- package/crew/video-editor/rules/tailwind.md +11 -0
- package/crew/video-editor/rules/text-animations.md +20 -0
- package/crew/video-editor/rules/theme-switching.md +103 -0
- package/crew/video-editor/rules/timing.md +136 -0
- package/crew/video-editor/rules/transcribe-captions.md +70 -0
- package/crew/video-editor/rules/transitions.md +197 -0
- package/crew/video-editor/rules/transparent-videos.md +106 -0
- package/crew/video-editor/rules/trimming.md +51 -0
- package/crew/video-editor/rules/ui-chrome.md +139 -0
- package/crew/video-editor/rules/videos.md +171 -0
- package/crew/video-editor/rules/voiceover.md +99 -0
- package/crew/video-editor/template/README.md +42 -0
- package/crew/video-editor/template/package.json +24 -0
- package/crew/video-editor/template/public/.gitkeep +0 -0
- package/crew/video-editor/template/public/image.png +0 -0
- package/crew/video-editor/template/public/logo.png +0 -0
- package/crew/video-editor/template/remotion.config.ts +5 -0
- package/crew/video-editor/template/src/Root.tsx +21 -0
- package/crew/video-editor/template/src/Video.tsx +38 -0
- package/crew/video-editor/template/src/components/LogoStinger.tsx +77 -0
- package/crew/video-editor/template/src/index.ts +4 -0
- package/crew/video-editor/template/tsconfig.json +16 -0
- package/crew/youtube/plugin.json +42 -0
- package/dist/auth/AuthProvider.d.ts +35 -0
- package/dist/auth/AuthProvider.d.ts.map +1 -0
- package/dist/auth/AuthProvider.js +13 -0
- package/dist/auth/AuthProvider.js.map +1 -0
- package/dist/auth/AuthStore.d.ts +79 -0
- package/dist/auth/AuthStore.d.ts.map +1 -0
- package/dist/auth/AuthStore.js +139 -0
- package/dist/auth/AuthStore.js.map +1 -0
- package/dist/auth/LocalAuthProvider.d.ts +28 -0
- package/dist/auth/LocalAuthProvider.d.ts.map +1 -0
- package/dist/auth/LocalAuthProvider.js +70 -0
- package/dist/auth/LocalAuthProvider.js.map +1 -0
- package/dist/auth/TokenService.d.ts +83 -0
- package/dist/auth/TokenService.d.ts.map +1 -0
- package/dist/auth/TokenService.js +129 -0
- package/dist/auth/TokenService.js.map +1 -0
- package/dist/auth/fileToken.d.ts +33 -0
- package/dist/auth/fileToken.d.ts.map +1 -0
- package/dist/auth/fileToken.js +69 -0
- package/dist/auth/fileToken.js.map +1 -0
- package/dist/auth/index.d.ts +47 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +76 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/jwt.d.ts +27 -0
- package/dist/auth/jwt.d.ts.map +1 -0
- package/dist/auth/jwt.js +67 -0
- package/dist/auth/jwt.js.map +1 -0
- package/dist/channels/BaseChannel.d.ts +139 -0
- package/dist/channels/BaseChannel.d.ts.map +1 -0
- package/dist/channels/BaseChannel.js +103 -0
- package/dist/channels/BaseChannel.js.map +1 -0
- package/dist/channels/BlueBubblesChannel.d.ts +37 -0
- package/dist/channels/BlueBubblesChannel.d.ts.map +1 -0
- package/dist/channels/BlueBubblesChannel.js +115 -0
- package/dist/channels/BlueBubblesChannel.js.map +1 -0
- package/dist/channels/ChannelManager.d.ts +85 -0
- package/dist/channels/ChannelManager.d.ts.map +1 -0
- package/dist/channels/ChannelManager.js +557 -0
- package/dist/channels/ChannelManager.js.map +1 -0
- package/dist/channels/ChannelRegistry.d.ts +57 -0
- package/dist/channels/ChannelRegistry.d.ts.map +1 -0
- package/dist/channels/ChannelRegistry.js +93 -0
- package/dist/channels/ChannelRegistry.js.map +1 -0
- package/dist/channels/DiscordChannel.d.ts +87 -0
- package/dist/channels/DiscordChannel.d.ts.map +1 -0
- package/dist/channels/DiscordChannel.js +469 -0
- package/dist/channels/DiscordChannel.js.map +1 -0
- package/dist/channels/EmailChannel.d.ts +64 -0
- package/dist/channels/EmailChannel.d.ts.map +1 -0
- package/dist/channels/EmailChannel.js +226 -0
- package/dist/channels/EmailChannel.js.map +1 -0
- package/dist/channels/FeishuChannel.d.ts +40 -0
- package/dist/channels/FeishuChannel.d.ts.map +1 -0
- package/dist/channels/FeishuChannel.js +169 -0
- package/dist/channels/FeishuChannel.js.map +1 -0
- package/dist/channels/GoogleChatChannel.d.ts +46 -0
- package/dist/channels/GoogleChatChannel.d.ts.map +1 -0
- package/dist/channels/GoogleChatChannel.js +184 -0
- package/dist/channels/GoogleChatChannel.js.map +1 -0
- package/dist/channels/IRCChannel.d.ts +50 -0
- package/dist/channels/IRCChannel.d.ts.map +1 -0
- package/dist/channels/IRCChannel.js +149 -0
- package/dist/channels/IRCChannel.js.map +1 -0
- package/dist/channels/LineChannel.d.ts +35 -0
- package/dist/channels/LineChannel.d.ts.map +1 -0
- package/dist/channels/LineChannel.js +118 -0
- package/dist/channels/LineChannel.js.map +1 -0
- package/dist/channels/MatrixChannel.d.ts +45 -0
- package/dist/channels/MatrixChannel.d.ts.map +1 -0
- package/dist/channels/MatrixChannel.js +156 -0
- package/dist/channels/MatrixChannel.js.map +1 -0
- package/dist/channels/MattermostChannel.d.ts +42 -0
- package/dist/channels/MattermostChannel.d.ts.map +1 -0
- package/dist/channels/MattermostChannel.js +144 -0
- package/dist/channels/MattermostChannel.js.map +1 -0
- package/dist/channels/NextcloudChannel.d.ts +46 -0
- package/dist/channels/NextcloudChannel.d.ts.map +1 -0
- package/dist/channels/NextcloudChannel.js +146 -0
- package/dist/channels/NextcloudChannel.js.map +1 -0
- package/dist/channels/SignalChannel.d.ts +39 -0
- package/dist/channels/SignalChannel.d.ts.map +1 -0
- package/dist/channels/SignalChannel.js +160 -0
- package/dist/channels/SignalChannel.js.map +1 -0
- package/dist/channels/SlackChannel.d.ts +81 -0
- package/dist/channels/SlackChannel.d.ts.map +1 -0
- package/dist/channels/SlackChannel.js +363 -0
- package/dist/channels/SlackChannel.js.map +1 -0
- package/dist/channels/StreamingEditor.d.ts +37 -0
- package/dist/channels/StreamingEditor.d.ts.map +1 -0
- package/dist/channels/StreamingEditor.js +108 -0
- package/dist/channels/StreamingEditor.js.map +1 -0
- package/dist/channels/TelegramChannel.d.ts +84 -0
- package/dist/channels/TelegramChannel.d.ts.map +1 -0
- package/dist/channels/TelegramChannel.js +469 -0
- package/dist/channels/TelegramChannel.js.map +1 -0
- package/dist/channels/TwitchChannel.d.ts +45 -0
- package/dist/channels/TwitchChannel.d.ts.map +1 -0
- package/dist/channels/TwitchChannel.js +117 -0
- package/dist/channels/TwitchChannel.js.map +1 -0
- package/dist/channels/WhatsAppChannel.d.ts +45 -0
- package/dist/channels/WhatsAppChannel.d.ts.map +1 -0
- package/dist/channels/WhatsAppChannel.js +153 -0
- package/dist/channels/WhatsAppChannel.js.map +1 -0
- package/dist/channels/ZaloChannel.d.ts +42 -0
- package/dist/channels/ZaloChannel.d.ts.map +1 -0
- package/dist/channels/ZaloChannel.js +114 -0
- package/dist/channels/ZaloChannel.js.map +1 -0
- package/dist/cli/commands/config.d.ts +10 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +107 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/daemon.d.ts +17 -0
- package/dist/cli/commands/daemon.d.ts.map +1 -0
- package/dist/cli/commands/daemon.js +82 -0
- package/dist/cli/commands/daemon.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +17 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +138 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/setup.d.ts +16 -0
- package/dist/cli/commands/setup.d.ts.map +1 -0
- package/dist/cli/commands/setup.js +206 -0
- package/dist/cli/commands/setup.js.map +1 -0
- package/dist/cli/commands/start.d.ts +8 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +444 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/vault.d.ts +15 -0
- package/dist/cli/commands/vault.d.ts.map +1 -0
- package/dist/cli/commands/vault.js +167 -0
- package/dist/cli/commands/vault.js.map +1 -0
- package/dist/cli/index.d.ts +13 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +93 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/loadEnv.d.ts +14 -0
- package/dist/cli/loadEnv.d.ts.map +1 -0
- package/dist/cli/loadEnv.js +18 -0
- package/dist/cli/loadEnv.js.map +1 -0
- package/dist/config/ConfigManager.d.ts +79 -0
- package/dist/config/ConfigManager.d.ts.map +1 -0
- package/dist/config/ConfigManager.js +118 -0
- package/dist/config/ConfigManager.js.map +1 -0
- package/dist/config/Secret.d.ts +29 -0
- package/dist/config/Secret.d.ts.map +1 -0
- package/dist/config/Secret.js +47 -0
- package/dist/config/Secret.js.map +1 -0
- package/dist/config/SecretVault.d.ts +53 -0
- package/dist/config/SecretVault.d.ts.map +1 -0
- package/dist/config/SecretVault.js +205 -0
- package/dist/config/SecretVault.js.map +1 -0
- package/dist/config/SettingsStore.d.ts +46 -0
- package/dist/config/SettingsStore.d.ts.map +1 -0
- package/dist/config/SettingsStore.js +132 -0
- package/dist/config/SettingsStore.js.map +1 -0
- package/dist/config/env.d.ts +21 -0
- package/dist/config/env.d.ts.map +1 -0
- package/dist/config/env.js +62 -0
- package/dist/config/env.js.map +1 -0
- package/dist/config/schema.d.ts +127 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +346 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/core/AgentLoop.d.ts +180 -0
- package/dist/core/AgentLoop.d.ts.map +1 -0
- package/dist/core/AgentLoop.js +428 -0
- package/dist/core/AgentLoop.js.map +1 -0
- package/dist/core/AttachmentProcessor.d.ts +75 -0
- package/dist/core/AttachmentProcessor.d.ts.map +1 -0
- package/dist/core/AttachmentProcessor.js +191 -0
- package/dist/core/AttachmentProcessor.js.map +1 -0
- package/dist/core/Compaction.d.ts +62 -0
- package/dist/core/Compaction.d.ts.map +1 -0
- package/dist/core/Compaction.js +260 -0
- package/dist/core/Compaction.js.map +1 -0
- package/dist/core/InboundDebouncer.d.ts +42 -0
- package/dist/core/InboundDebouncer.d.ts.map +1 -0
- package/dist/core/InboundDebouncer.js +81 -0
- package/dist/core/InboundDebouncer.js.map +1 -0
- package/dist/core/LoopDetector.d.ts +36 -0
- package/dist/core/LoopDetector.d.ts.map +1 -0
- package/dist/core/LoopDetector.js +139 -0
- package/dist/core/LoopDetector.js.map +1 -0
- package/dist/core/TaskRunner.d.ts +134 -0
- package/dist/core/TaskRunner.d.ts.map +1 -0
- package/dist/core/TaskRunner.js +454 -0
- package/dist/core/TaskRunner.js.map +1 -0
- package/dist/costs/CostTracker.d.ts +70 -0
- package/dist/costs/CostTracker.d.ts.map +1 -0
- package/dist/costs/CostTracker.js +176 -0
- package/dist/costs/CostTracker.js.map +1 -0
- package/dist/crew/CrewAgentRunner.d.ts +55 -0
- package/dist/crew/CrewAgentRunner.d.ts.map +1 -0
- package/dist/crew/CrewAgentRunner.js +208 -0
- package/dist/crew/CrewAgentRunner.js.map +1 -0
- package/dist/crew/CrewLoader.d.ts +43 -0
- package/dist/crew/CrewLoader.d.ts.map +1 -0
- package/dist/crew/CrewLoader.js +122 -0
- package/dist/crew/CrewLoader.js.map +1 -0
- package/dist/crew/CrewRegistry.d.ts +30 -0
- package/dist/crew/CrewRegistry.d.ts.map +1 -0
- package/dist/crew/CrewRegistry.js +56 -0
- package/dist/crew/CrewRegistry.js.map +1 -0
- package/dist/crew/types.d.ts +79 -0
- package/dist/crew/types.d.ts.map +1 -0
- package/dist/crew/types.js +36 -0
- package/dist/crew/types.js.map +1 -0
- package/dist/cron/CronScheduler.d.ts +40 -0
- package/dist/cron/CronScheduler.d.ts.map +1 -0
- package/dist/cron/CronScheduler.js +119 -0
- package/dist/cron/CronScheduler.js.map +1 -0
- package/dist/cron/CronStore.d.ts +73 -0
- package/dist/cron/CronStore.d.ts.map +1 -0
- package/dist/cron/CronStore.js +209 -0
- package/dist/cron/CronStore.js.map +1 -0
- package/dist/cron/cronParser.d.ts +33 -0
- package/dist/cron/cronParser.d.ts.map +1 -0
- package/dist/cron/cronParser.js +211 -0
- package/dist/cron/cronParser.js.map +1 -0
- package/dist/daemon/DaemonManager.d.ts +59 -0
- package/dist/daemon/DaemonManager.d.ts.map +1 -0
- package/dist/daemon/DaemonManager.js +380 -0
- package/dist/daemon/DaemonManager.js.map +1 -0
- package/dist/embeddings/Embeddings.d.ts +70 -0
- package/dist/embeddings/Embeddings.d.ts.map +1 -0
- package/dist/embeddings/Embeddings.js +252 -0
- package/dist/embeddings/Embeddings.js.map +1 -0
- package/dist/embeddings/TfIdf.d.ts +26 -0
- package/dist/embeddings/TfIdf.d.ts.map +1 -0
- package/dist/embeddings/TfIdf.js +88 -0
- package/dist/embeddings/TfIdf.js.map +1 -0
- package/dist/events/eventBus.d.ts +97 -0
- package/dist/events/eventBus.d.ts.map +1 -0
- package/dist/events/eventBus.js +26 -0
- package/dist/events/eventBus.js.map +1 -0
- package/dist/goals/GoalStore.d.ts +40 -0
- package/dist/goals/GoalStore.d.ts.map +1 -0
- package/dist/goals/GoalStore.js +82 -0
- package/dist/goals/GoalStore.js.map +1 -0
- package/dist/hooks/HookRunner.d.ts +80 -0
- package/dist/hooks/HookRunner.d.ts.map +1 -0
- package/dist/hooks/HookRunner.js +218 -0
- package/dist/hooks/HookRunner.js.map +1 -0
- package/dist/integrations/IntegrationCrewSync.d.ts +33 -0
- package/dist/integrations/IntegrationCrewSync.d.ts.map +1 -0
- package/dist/integrations/IntegrationCrewSync.js +96 -0
- package/dist/integrations/IntegrationCrewSync.js.map +1 -0
- package/dist/integrations/IntegrationManager.d.ts +116 -0
- package/dist/integrations/IntegrationManager.d.ts.map +1 -0
- package/dist/integrations/IntegrationManager.js +580 -0
- package/dist/integrations/IntegrationManager.js.map +1 -0
- package/dist/integrations/IntegrationStore.d.ts +42 -0
- package/dist/integrations/IntegrationStore.d.ts.map +1 -0
- package/dist/integrations/IntegrationStore.js +146 -0
- package/dist/integrations/IntegrationStore.js.map +1 -0
- package/dist/integrations/authFetch.d.ts +21 -0
- package/dist/integrations/authFetch.d.ts.map +1 -0
- package/dist/integrations/authFetch.js +36 -0
- package/dist/integrations/authFetch.js.map +1 -0
- package/dist/integrations/facebook/FacebookClient.d.ts +33 -0
- package/dist/integrations/facebook/FacebookClient.d.ts.map +1 -0
- package/dist/integrations/facebook/FacebookClient.js +88 -0
- package/dist/integrations/facebook/FacebookClient.js.map +1 -0
- package/dist/integrations/facebook/tools.d.ts +9 -0
- package/dist/integrations/facebook/tools.d.ts.map +1 -0
- package/dist/integrations/facebook/tools.js +324 -0
- package/dist/integrations/facebook/tools.js.map +1 -0
- package/dist/integrations/gmail/GmailClient.d.ts +34 -0
- package/dist/integrations/gmail/GmailClient.d.ts.map +1 -0
- package/dist/integrations/gmail/GmailClient.js +69 -0
- package/dist/integrations/gmail/GmailClient.js.map +1 -0
- package/dist/integrations/gmail/tools.d.ts +14 -0
- package/dist/integrations/gmail/tools.d.ts.map +1 -0
- package/dist/integrations/gmail/tools.js +295 -0
- package/dist/integrations/gmail/tools.js.map +1 -0
- package/dist/integrations/google-calendar/CalendarClient.d.ts +16 -0
- package/dist/integrations/google-calendar/CalendarClient.d.ts.map +1 -0
- package/dist/integrations/google-calendar/CalendarClient.js +39 -0
- package/dist/integrations/google-calendar/CalendarClient.js.map +1 -0
- package/dist/integrations/google-calendar/tools.d.ts +15 -0
- package/dist/integrations/google-calendar/tools.d.ts.map +1 -0
- package/dist/integrations/google-calendar/tools.js +246 -0
- package/dist/integrations/google-calendar/tools.js.map +1 -0
- package/dist/integrations/instagram/InstagramClient.d.ts +33 -0
- package/dist/integrations/instagram/InstagramClient.d.ts.map +1 -0
- package/dist/integrations/instagram/InstagramClient.js +93 -0
- package/dist/integrations/instagram/InstagramClient.js.map +1 -0
- package/dist/integrations/instagram/tools.d.ts +17 -0
- package/dist/integrations/instagram/tools.d.ts.map +1 -0
- package/dist/integrations/instagram/tools.js +348 -0
- package/dist/integrations/instagram/tools.js.map +1 -0
- package/dist/integrations/keys.d.ts +56 -0
- package/dist/integrations/keys.d.ts.map +1 -0
- package/dist/integrations/keys.js +174 -0
- package/dist/integrations/keys.js.map +1 -0
- package/dist/integrations/linkedin/LinkedInClient.d.ts +24 -0
- package/dist/integrations/linkedin/LinkedInClient.d.ts.map +1 -0
- package/dist/integrations/linkedin/LinkedInClient.js +56 -0
- package/dist/integrations/linkedin/LinkedInClient.js.map +1 -0
- package/dist/integrations/linkedin/tools.d.ts +14 -0
- package/dist/integrations/linkedin/tools.d.ts.map +1 -0
- package/dist/integrations/linkedin/tools.js +154 -0
- package/dist/integrations/linkedin/tools.js.map +1 -0
- package/dist/integrations/pkce.d.ts +17 -0
- package/dist/integrations/pkce.d.ts.map +1 -0
- package/dist/integrations/pkce.js +22 -0
- package/dist/integrations/pkce.js.map +1 -0
- package/dist/integrations/providers/github.d.ts +20 -0
- package/dist/integrations/providers/github.d.ts.map +1 -0
- package/dist/integrations/providers/github.js +113 -0
- package/dist/integrations/providers/github.js.map +1 -0
- package/dist/integrations/providers/google.d.ts +17 -0
- package/dist/integrations/providers/google.d.ts.map +1 -0
- package/dist/integrations/providers/google.js +115 -0
- package/dist/integrations/providers/google.js.map +1 -0
- package/dist/integrations/providers/linkedin.d.ts +22 -0
- package/dist/integrations/providers/linkedin.d.ts.map +1 -0
- package/dist/integrations/providers/linkedin.js +103 -0
- package/dist/integrations/providers/linkedin.js.map +1 -0
- package/dist/integrations/providers/meta.d.ts +19 -0
- package/dist/integrations/providers/meta.d.ts.map +1 -0
- package/dist/integrations/providers/meta.js +116 -0
- package/dist/integrations/providers/meta.js.map +1 -0
- package/dist/integrations/providers/notion.d.ts +21 -0
- package/dist/integrations/providers/notion.d.ts.map +1 -0
- package/dist/integrations/providers/notion.js +96 -0
- package/dist/integrations/providers/notion.js.map +1 -0
- package/dist/integrations/providers/reddit.d.ts +18 -0
- package/dist/integrations/providers/reddit.d.ts.map +1 -0
- package/dist/integrations/providers/reddit.js +104 -0
- package/dist/integrations/providers/reddit.js.map +1 -0
- package/dist/integrations/providers/tiktok.d.ts +28 -0
- package/dist/integrations/providers/tiktok.d.ts.map +1 -0
- package/dist/integrations/providers/tiktok.js +138 -0
- package/dist/integrations/providers/tiktok.js.map +1 -0
- package/dist/integrations/providers/twitter.d.ts +26 -0
- package/dist/integrations/providers/twitter.d.ts.map +1 -0
- package/dist/integrations/providers/twitter.js +141 -0
- package/dist/integrations/providers/twitter.js.map +1 -0
- package/dist/integrations/reddit/RedditClient.d.ts +18 -0
- package/dist/integrations/reddit/RedditClient.d.ts.map +1 -0
- package/dist/integrations/reddit/RedditClient.js +54 -0
- package/dist/integrations/reddit/RedditClient.js.map +1 -0
- package/dist/integrations/reddit/tools.d.ts +16 -0
- package/dist/integrations/reddit/tools.d.ts.map +1 -0
- package/dist/integrations/reddit/tools.js +293 -0
- package/dist/integrations/reddit/tools.js.map +1 -0
- package/dist/integrations/tiktok/TikTokClient.d.ts +21 -0
- package/dist/integrations/tiktok/TikTokClient.d.ts.map +1 -0
- package/dist/integrations/tiktok/TikTokClient.js +44 -0
- package/dist/integrations/tiktok/TikTokClient.js.map +1 -0
- package/dist/integrations/tiktok/tools.d.ts +17 -0
- package/dist/integrations/tiktok/tools.d.ts.map +1 -0
- package/dist/integrations/tiktok/tools.js +258 -0
- package/dist/integrations/tiktok/tools.js.map +1 -0
- package/dist/integrations/tools.d.ts +20 -0
- package/dist/integrations/tools.d.ts.map +1 -0
- package/dist/integrations/tools.js +43 -0
- package/dist/integrations/tools.js.map +1 -0
- package/dist/integrations/twitter/TwitterClient.d.ts +19 -0
- package/dist/integrations/twitter/TwitterClient.d.ts.map +1 -0
- package/dist/integrations/twitter/TwitterClient.js +51 -0
- package/dist/integrations/twitter/TwitterClient.js.map +1 -0
- package/dist/integrations/twitter/tools.d.ts +11 -0
- package/dist/integrations/twitter/tools.d.ts.map +1 -0
- package/dist/integrations/twitter/tools.js +459 -0
- package/dist/integrations/twitter/tools.js.map +1 -0
- package/dist/integrations/types.d.ts +118 -0
- package/dist/integrations/types.d.ts.map +1 -0
- package/dist/integrations/types.js +10 -0
- package/dist/integrations/types.js.map +1 -0
- package/dist/integrations/youtube/YouTubeClient.d.ts +45 -0
- package/dist/integrations/youtube/YouTubeClient.d.ts.map +1 -0
- package/dist/integrations/youtube/YouTubeClient.js +115 -0
- package/dist/integrations/youtube/YouTubeClient.js.map +1 -0
- package/dist/integrations/youtube/tools.d.ts +14 -0
- package/dist/integrations/youtube/tools.d.ts.map +1 -0
- package/dist/integrations/youtube/tools.js +500 -0
- package/dist/integrations/youtube/tools.js.map +1 -0
- package/dist/learning/BackgroundReviewer.d.ts +43 -0
- package/dist/learning/BackgroundReviewer.d.ts.map +1 -0
- package/dist/learning/BackgroundReviewer.js +143 -0
- package/dist/learning/BackgroundReviewer.js.map +1 -0
- package/dist/learning/ExtractionPipeline.d.ts +46 -0
- package/dist/learning/ExtractionPipeline.d.ts.map +1 -0
- package/dist/learning/ExtractionPipeline.js +220 -0
- package/dist/learning/ExtractionPipeline.js.map +1 -0
- package/dist/learning/MemoryDecay.d.ts +63 -0
- package/dist/learning/MemoryDecay.d.ts.map +1 -0
- package/dist/learning/MemoryDecay.js +204 -0
- package/dist/learning/MemoryDecay.js.map +1 -0
- package/dist/learning/SmartRecall.d.ts +58 -0
- package/dist/learning/SmartRecall.d.ts.map +1 -0
- package/dist/learning/SmartRecall.js +182 -0
- package/dist/learning/SmartRecall.js.map +1 -0
- package/dist/mcp/MCPIntegrationBridge.d.ts +40 -0
- package/dist/mcp/MCPIntegrationBridge.d.ts.map +1 -0
- package/dist/mcp/MCPIntegrationBridge.js +136 -0
- package/dist/mcp/MCPIntegrationBridge.js.map +1 -0
- package/dist/mcp/MCPManager.d.ts +126 -0
- package/dist/mcp/MCPManager.d.ts.map +1 -0
- package/dist/mcp/MCPManager.js +418 -0
- package/dist/mcp/MCPManager.js.map +1 -0
- package/dist/mcp/MCPStore.d.ts +41 -0
- package/dist/mcp/MCPStore.d.ts.map +1 -0
- package/dist/mcp/MCPStore.js +102 -0
- package/dist/mcp/MCPStore.js.map +1 -0
- package/dist/mcp/defaults.d.ts +51 -0
- package/dist/mcp/defaults.d.ts.map +1 -0
- package/dist/mcp/defaults.js +243 -0
- package/dist/mcp/defaults.js.map +1 -0
- package/dist/memory/DeclarativeMemoryStore.d.ts +54 -0
- package/dist/memory/DeclarativeMemoryStore.d.ts.map +1 -0
- package/dist/memory/DeclarativeMemoryStore.js +195 -0
- package/dist/memory/DeclarativeMemoryStore.js.map +1 -0
- package/dist/memory/MemoryStore.d.ts +65 -0
- package/dist/memory/MemoryStore.d.ts.map +1 -0
- package/dist/memory/MemoryStore.js +189 -0
- package/dist/memory/MemoryStore.js.map +1 -0
- package/dist/memory/SessionStore.d.ts +207 -0
- package/dist/memory/SessionStore.d.ts.map +1 -0
- package/dist/memory/SessionStore.js +391 -0
- package/dist/memory/SessionStore.js.map +1 -0
- package/dist/models/ModelRouter.d.ts +57 -0
- package/dist/models/ModelRouter.d.ts.map +1 -0
- package/dist/models/ModelRouter.js +301 -0
- package/dist/models/ModelRouter.js.map +1 -0
- package/dist/models/discovery.d.ts +44 -0
- package/dist/models/discovery.d.ts.map +1 -0
- package/dist/models/discovery.js +456 -0
- package/dist/models/discovery.js.map +1 -0
- package/dist/models/providers.d.ts +82 -0
- package/dist/models/providers.d.ts.map +1 -0
- package/dist/models/providers.js +455 -0
- package/dist/models/providers.js.map +1 -0
- package/dist/models/registry.d.ts +13 -0
- package/dist/models/registry.d.ts.map +1 -0
- package/dist/models/registry.js +42 -0
- package/dist/models/registry.js.map +1 -0
- package/dist/models/types.d.ts +24 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +8 -0
- package/dist/models/types.js.map +1 -0
- package/dist/projects/ProjectStore.d.ts +73 -0
- package/dist/projects/ProjectStore.d.ts.map +1 -0
- package/dist/projects/ProjectStore.js +132 -0
- package/dist/projects/ProjectStore.js.map +1 -0
- package/dist/safety/AuditLog.d.ts +53 -0
- package/dist/safety/AuditLog.d.ts.map +1 -0
- package/dist/safety/AuditLog.js +170 -0
- package/dist/safety/AuditLog.js.map +1 -0
- package/dist/safety/CircuitBreaker.d.ts +53 -0
- package/dist/safety/CircuitBreaker.d.ts.map +1 -0
- package/dist/safety/CircuitBreaker.js +112 -0
- package/dist/safety/CircuitBreaker.js.map +1 -0
- package/dist/safety/CommandGuard.d.ts +32 -0
- package/dist/safety/CommandGuard.d.ts.map +1 -0
- package/dist/safety/CommandGuard.js +157 -0
- package/dist/safety/CommandGuard.js.map +1 -0
- package/dist/safety/DockerSandbox.d.ts +72 -0
- package/dist/safety/DockerSandbox.d.ts.map +1 -0
- package/dist/safety/DockerSandbox.js +188 -0
- package/dist/safety/DockerSandbox.js.map +1 -0
- package/dist/safety/EgressGuard.d.ts +35 -0
- package/dist/safety/EgressGuard.d.ts.map +1 -0
- package/dist/safety/EgressGuard.js +95 -0
- package/dist/safety/EgressGuard.js.map +1 -0
- package/dist/safety/ExecApproval.d.ts +53 -0
- package/dist/safety/ExecApproval.d.ts.map +1 -0
- package/dist/safety/ExecApproval.js +120 -0
- package/dist/safety/ExecApproval.js.map +1 -0
- package/dist/safety/FilesystemGuard.d.ts +94 -0
- package/dist/safety/FilesystemGuard.d.ts.map +1 -0
- package/dist/safety/FilesystemGuard.js +275 -0
- package/dist/safety/FilesystemGuard.js.map +1 -0
- package/dist/safety/GitRollback.d.ts +47 -0
- package/dist/safety/GitRollback.d.ts.map +1 -0
- package/dist/safety/GitRollback.js +161 -0
- package/dist/safety/GitRollback.js.map +1 -0
- package/dist/safety/HumanApproval.d.ts +65 -0
- package/dist/safety/HumanApproval.d.ts.map +1 -0
- package/dist/safety/HumanApproval.js +157 -0
- package/dist/safety/HumanApproval.js.map +1 -0
- package/dist/safety/InputSanitizer.d.ts +59 -0
- package/dist/safety/InputSanitizer.d.ts.map +1 -0
- package/dist/safety/InputSanitizer.js +111 -0
- package/dist/safety/InputSanitizer.js.map +1 -0
- package/dist/safety/PermissionGuard.d.ts +49 -0
- package/dist/safety/PermissionGuard.d.ts.map +1 -0
- package/dist/safety/PermissionGuard.js +136 -0
- package/dist/safety/PermissionGuard.js.map +1 -0
- package/dist/safety/Sandbox.d.ts +38 -0
- package/dist/safety/Sandbox.d.ts.map +1 -0
- package/dist/safety/Sandbox.js +82 -0
- package/dist/safety/Sandbox.js.map +1 -0
- package/dist/safety/SecretScanner.d.ts +67 -0
- package/dist/safety/SecretScanner.d.ts.map +1 -0
- package/dist/safety/SecretScanner.js +150 -0
- package/dist/safety/SecretScanner.js.map +1 -0
- package/dist/safety/Supervisor.d.ts +69 -0
- package/dist/safety/Supervisor.d.ts.map +1 -0
- package/dist/safety/Supervisor.js +165 -0
- package/dist/safety/Supervisor.js.map +1 -0
- package/dist/scheduler/CronExecutor.d.ts +18 -0
- package/dist/scheduler/CronExecutor.d.ts.map +1 -0
- package/dist/scheduler/CronExecutor.js +57 -0
- package/dist/scheduler/CronExecutor.js.map +1 -0
- package/dist/scheduler/DailyLog.d.ts +29 -0
- package/dist/scheduler/DailyLog.d.ts.map +1 -0
- package/dist/scheduler/DailyLog.js +84 -0
- package/dist/scheduler/DailyLog.js.map +1 -0
- package/dist/scheduler/DeliveryPresetStore.d.ts +47 -0
- package/dist/scheduler/DeliveryPresetStore.d.ts.map +1 -0
- package/dist/scheduler/DeliveryPresetStore.js +101 -0
- package/dist/scheduler/DeliveryPresetStore.js.map +1 -0
- package/dist/scheduler/GoalPulse.d.ts +42 -0
- package/dist/scheduler/GoalPulse.d.ts.map +1 -0
- package/dist/scheduler/GoalPulse.js +123 -0
- package/dist/scheduler/GoalPulse.js.map +1 -0
- package/dist/scheduler/Heartbeat.d.ts +87 -0
- package/dist/scheduler/Heartbeat.d.ts.map +1 -0
- package/dist/scheduler/Heartbeat.js +313 -0
- package/dist/scheduler/Heartbeat.js.map +1 -0
- package/dist/scheduler/MorningPulse.d.ts +23 -0
- package/dist/scheduler/MorningPulse.d.ts.map +1 -0
- package/dist/scheduler/MorningPulse.js +45 -0
- package/dist/scheduler/MorningPulse.js.map +1 -0
- package/dist/server/index.d.ts +77 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +227 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/middleware/requireAuth.d.ts +41 -0
- package/dist/server/middleware/requireAuth.d.ts.map +1 -0
- package/dist/server/middleware/requireAuth.js +72 -0
- package/dist/server/middleware/requireAuth.js.map +1 -0
- package/dist/server/middleware/security.d.ts +83 -0
- package/dist/server/middleware/security.d.ts.map +1 -0
- package/dist/server/middleware/security.js +171 -0
- package/dist/server/middleware/security.js.map +1 -0
- package/dist/server/routes/auth.d.ts +24 -0
- package/dist/server/routes/auth.d.ts.map +1 -0
- package/dist/server/routes/auth.js +65 -0
- package/dist/server/routes/auth.js.map +1 -0
- package/dist/server/routes/channels.d.ts +7 -0
- package/dist/server/routes/channels.d.ts.map +1 -0
- package/dist/server/routes/channels.js +90 -0
- package/dist/server/routes/channels.js.map +1 -0
- package/dist/server/routes/chat.d.ts +19 -0
- package/dist/server/routes/chat.d.ts.map +1 -0
- package/dist/server/routes/chat.js +209 -0
- package/dist/server/routes/chat.js.map +1 -0
- package/dist/server/routes/compat.d.ts +8 -0
- package/dist/server/routes/compat.d.ts.map +1 -0
- package/dist/server/routes/compat.js +661 -0
- package/dist/server/routes/compat.js.map +1 -0
- package/dist/server/routes/config.d.ts +10 -0
- package/dist/server/routes/config.d.ts.map +1 -0
- package/dist/server/routes/config.js +142 -0
- package/dist/server/routes/config.js.map +1 -0
- package/dist/server/routes/costs.d.ts +7 -0
- package/dist/server/routes/costs.d.ts.map +1 -0
- package/dist/server/routes/costs.js +23 -0
- package/dist/server/routes/costs.js.map +1 -0
- package/dist/server/routes/crew.d.ts +21 -0
- package/dist/server/routes/crew.d.ts.map +1 -0
- package/dist/server/routes/crew.js +372 -0
- package/dist/server/routes/crew.js.map +1 -0
- package/dist/server/routes/cron.d.ts +9 -0
- package/dist/server/routes/cron.d.ts.map +1 -0
- package/dist/server/routes/cron.js +91 -0
- package/dist/server/routes/cron.js.map +1 -0
- package/dist/server/routes/deliveryPresets.d.ts +13 -0
- package/dist/server/routes/deliveryPresets.d.ts.map +1 -0
- package/dist/server/routes/deliveryPresets.js +42 -0
- package/dist/server/routes/deliveryPresets.js.map +1 -0
- package/dist/server/routes/goals.d.ts +7 -0
- package/dist/server/routes/goals.d.ts.map +1 -0
- package/dist/server/routes/goals.js +65 -0
- package/dist/server/routes/goals.js.map +1 -0
- package/dist/server/routes/integrations.d.ts +35 -0
- package/dist/server/routes/integrations.d.ts.map +1 -0
- package/dist/server/routes/integrations.js +448 -0
- package/dist/server/routes/integrations.js.map +1 -0
- package/dist/server/routes/mcp.d.ts +7 -0
- package/dist/server/routes/mcp.d.ts.map +1 -0
- package/dist/server/routes/mcp.js +88 -0
- package/dist/server/routes/mcp.js.map +1 -0
- package/dist/server/routes/memory.d.ts +15 -0
- package/dist/server/routes/memory.d.ts.map +1 -0
- package/dist/server/routes/memory.js +104 -0
- package/dist/server/routes/memory.js.map +1 -0
- package/dist/server/routes/providers.d.ts +15 -0
- package/dist/server/routes/providers.d.ts.map +1 -0
- package/dist/server/routes/providers.js +209 -0
- package/dist/server/routes/providers.js.map +1 -0
- package/dist/server/routes/security.d.ts +15 -0
- package/dist/server/routes/security.d.ts.map +1 -0
- package/dist/server/routes/security.js +117 -0
- package/dist/server/routes/security.js.map +1 -0
- package/dist/server/routes/sessions.d.ts +12 -0
- package/dist/server/routes/sessions.d.ts.map +1 -0
- package/dist/server/routes/sessions.js +172 -0
- package/dist/server/routes/sessions.js.map +1 -0
- package/dist/server/routes/skills.d.ts +11 -0
- package/dist/server/routes/skills.d.ts.map +1 -0
- package/dist/server/routes/skills.js +214 -0
- package/dist/server/routes/skills.js.map +1 -0
- package/dist/server/routes/tasks.d.ts +10 -0
- package/dist/server/routes/tasks.d.ts.map +1 -0
- package/dist/server/routes/tasks.js +38 -0
- package/dist/server/routes/tasks.js.map +1 -0
- package/dist/server/routes/teams.d.ts +7 -0
- package/dist/server/routes/teams.d.ts.map +1 -0
- package/dist/server/routes/teams.js +61 -0
- package/dist/server/routes/teams.js.map +1 -0
- package/dist/server/routes/tunnel.d.ts +12 -0
- package/dist/server/routes/tunnel.d.ts.map +1 -0
- package/dist/server/routes/tunnel.js +18 -0
- package/dist/server/routes/tunnel.js.map +1 -0
- package/dist/server/routes/vault.d.ts +15 -0
- package/dist/server/routes/vault.d.ts.map +1 -0
- package/dist/server/routes/vault.js +82 -0
- package/dist/server/routes/vault.js.map +1 -0
- package/dist/server/routes/voice.d.ts +16 -0
- package/dist/server/routes/voice.d.ts.map +1 -0
- package/dist/server/routes/voice.js +431 -0
- package/dist/server/routes/voice.js.map +1 -0
- package/dist/server/routes/watchers.d.ts +14 -0
- package/dist/server/routes/watchers.d.ts.map +1 -0
- package/dist/server/routes/watchers.js +143 -0
- package/dist/server/routes/watchers.js.map +1 -0
- package/dist/services/Cleanup.d.ts +50 -0
- package/dist/services/Cleanup.d.ts.map +1 -0
- package/dist/services/Cleanup.js +104 -0
- package/dist/services/Cleanup.js.map +1 -0
- package/dist/skills/SecurityScanner.d.ts +18 -0
- package/dist/skills/SecurityScanner.d.ts.map +1 -0
- package/dist/skills/SecurityScanner.js +49 -0
- package/dist/skills/SecurityScanner.js.map +1 -0
- package/dist/skills/SkillLoader.d.ts +45 -0
- package/dist/skills/SkillLoader.d.ts.map +1 -0
- package/dist/skills/SkillLoader.js +336 -0
- package/dist/skills/SkillLoader.js.map +1 -0
- package/dist/skills/SkillRegistry.d.ts +78 -0
- package/dist/skills/SkillRegistry.d.ts.map +1 -0
- package/dist/skills/SkillRegistry.js +185 -0
- package/dist/skills/SkillRegistry.js.map +1 -0
- package/dist/skills/SkillSnapshot.d.ts +37 -0
- package/dist/skills/SkillSnapshot.d.ts.map +1 -0
- package/dist/skills/SkillSnapshot.js +106 -0
- package/dist/skills/SkillSnapshot.js.map +1 -0
- package/dist/skills/types.d.ts +184 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js +58 -0
- package/dist/skills/types.js.map +1 -0
- package/dist/tasks/TaskStore.d.ts +70 -0
- package/dist/tasks/TaskStore.d.ts.map +1 -0
- package/dist/tasks/TaskStore.js +200 -0
- package/dist/tasks/TaskStore.js.map +1 -0
- package/dist/teams/TeamRunner.d.ts +46 -0
- package/dist/teams/TeamRunner.d.ts.map +1 -0
- package/dist/teams/TeamRunner.js +186 -0
- package/dist/teams/TeamRunner.js.map +1 -0
- package/dist/teams/TeamStore.d.ts +84 -0
- package/dist/teams/TeamStore.d.ts.map +1 -0
- package/dist/teams/TeamStore.js +231 -0
- package/dist/teams/TeamStore.js.map +1 -0
- package/dist/teams/templates.d.ts +18 -0
- package/dist/teams/templates.d.ts.map +1 -0
- package/dist/teams/templates.js +89 -0
- package/dist/teams/templates.js.map +1 -0
- package/dist/tools/core/applyPatch.d.ts +19 -0
- package/dist/tools/core/applyPatch.d.ts.map +1 -0
- package/dist/tools/core/applyPatch.js +51 -0
- package/dist/tools/core/applyPatch.js.map +1 -0
- package/dist/tools/core/broadcast.d.ts +67 -0
- package/dist/tools/core/broadcast.d.ts.map +1 -0
- package/dist/tools/core/broadcast.js +93 -0
- package/dist/tools/core/broadcast.js.map +1 -0
- package/dist/tools/core/clipboard.d.ts +17 -0
- package/dist/tools/core/clipboard.d.ts.map +1 -0
- package/dist/tools/core/clipboard.js +38 -0
- package/dist/tools/core/clipboard.js.map +1 -0
- package/dist/tools/core/createDocument.d.ts +27 -0
- package/dist/tools/core/createDocument.d.ts.map +1 -0
- package/dist/tools/core/createDocument.js +297 -0
- package/dist/tools/core/createDocument.js.map +1 -0
- package/dist/tools/core/cronTool.d.ts +55 -0
- package/dist/tools/core/cronTool.d.ts.map +1 -0
- package/dist/tools/core/cronTool.js +162 -0
- package/dist/tools/core/cronTool.js.map +1 -0
- package/dist/tools/core/desktop.d.ts +16 -0
- package/dist/tools/core/desktop.d.ts.map +1 -0
- package/dist/tools/core/desktop.js +480 -0
- package/dist/tools/core/desktop.js.map +1 -0
- package/dist/tools/core/editFile.d.ts +43 -0
- package/dist/tools/core/editFile.d.ts.map +1 -0
- package/dist/tools/core/editFile.js +104 -0
- package/dist/tools/core/editFile.js.map +1 -0
- package/dist/tools/core/executeCommand.d.ts +36 -0
- package/dist/tools/core/executeCommand.d.ts.map +1 -0
- package/dist/tools/core/executeCommand.js +92 -0
- package/dist/tools/core/executeCommand.js.map +1 -0
- package/dist/tools/core/fetchUrl.d.ts +38 -0
- package/dist/tools/core/fetchUrl.d.ts.map +1 -0
- package/dist/tools/core/fetchUrl.js +111 -0
- package/dist/tools/core/fetchUrl.js.map +1 -0
- package/dist/tools/core/generateImage.d.ts +42 -0
- package/dist/tools/core/generateImage.d.ts.map +1 -0
- package/dist/tools/core/generateImage.js +143 -0
- package/dist/tools/core/generateImage.js.map +1 -0
- package/dist/tools/core/generateMusic.d.ts +42 -0
- package/dist/tools/core/generateMusic.d.ts.map +1 -0
- package/dist/tools/core/generateMusic.js +158 -0
- package/dist/tools/core/generateMusic.js.map +1 -0
- package/dist/tools/core/generateVideo.d.ts +45 -0
- package/dist/tools/core/generateVideo.d.ts.map +1 -0
- package/dist/tools/core/generateVideo.js +447 -0
- package/dist/tools/core/generateVideo.js.map +1 -0
- package/dist/tools/core/gitTool.d.ts +81 -0
- package/dist/tools/core/gitTool.d.ts.map +1 -0
- package/dist/tools/core/gitTool.js +196 -0
- package/dist/tools/core/gitTool.js.map +1 -0
- package/dist/tools/core/glob.d.ts +26 -0
- package/dist/tools/core/glob.d.ts.map +1 -0
- package/dist/tools/core/glob.js +104 -0
- package/dist/tools/core/glob.js.map +1 -0
- package/dist/tools/core/goalTool.d.ts +50 -0
- package/dist/tools/core/goalTool.d.ts.map +1 -0
- package/dist/tools/core/goalTool.js +150 -0
- package/dist/tools/core/goalTool.js.map +1 -0
- package/dist/tools/core/grep.d.ts +32 -0
- package/dist/tools/core/grep.d.ts.map +1 -0
- package/dist/tools/core/grep.js +83 -0
- package/dist/tools/core/grep.js.map +1 -0
- package/dist/tools/core/imageAnalysis.d.ts +18 -0
- package/dist/tools/core/imageAnalysis.d.ts.map +1 -0
- package/dist/tools/core/imageAnalysis.js +77 -0
- package/dist/tools/core/imageAnalysis.js.map +1 -0
- package/dist/tools/core/imageOps.d.ts +70 -0
- package/dist/tools/core/imageOps.d.ts.map +1 -0
- package/dist/tools/core/imageOps.js +179 -0
- package/dist/tools/core/imageOps.js.map +1 -0
- package/dist/tools/core/index.d.ts +50 -0
- package/dist/tools/core/index.d.ts.map +1 -0
- package/dist/tools/core/index.js +159 -0
- package/dist/tools/core/index.js.map +1 -0
- package/dist/tools/core/listCrews.d.ts +41 -0
- package/dist/tools/core/listCrews.d.ts.map +1 -0
- package/dist/tools/core/listCrews.js +50 -0
- package/dist/tools/core/listCrews.js.map +1 -0
- package/dist/tools/core/listDirectory.d.ts +33 -0
- package/dist/tools/core/listDirectory.d.ts.map +1 -0
- package/dist/tools/core/listDirectory.js +89 -0
- package/dist/tools/core/listDirectory.js.map +1 -0
- package/dist/tools/core/manageAgents.d.ts +48 -0
- package/dist/tools/core/manageAgents.d.ts.map +1 -0
- package/dist/tools/core/manageAgents.js +104 -0
- package/dist/tools/core/manageAgents.js.map +1 -0
- package/dist/tools/core/manageMCP.d.ts +52 -0
- package/dist/tools/core/manageMCP.d.ts.map +1 -0
- package/dist/tools/core/manageMCP.js +160 -0
- package/dist/tools/core/manageMCP.js.map +1 -0
- package/dist/tools/core/memory.d.ts +49 -0
- package/dist/tools/core/memory.d.ts.map +1 -0
- package/dist/tools/core/memory.js +80 -0
- package/dist/tools/core/memory.js.map +1 -0
- package/dist/tools/core/memoryRecall.d.ts +39 -0
- package/dist/tools/core/memoryRecall.d.ts.map +1 -0
- package/dist/tools/core/memoryRecall.js +42 -0
- package/dist/tools/core/memoryRecall.js.map +1 -0
- package/dist/tools/core/memorySave.d.ts +33 -0
- package/dist/tools/core/memorySave.d.ts.map +1 -0
- package/dist/tools/core/memorySave.js +41 -0
- package/dist/tools/core/memorySave.js.map +1 -0
- package/dist/tools/core/messageChannel.d.ts +27 -0
- package/dist/tools/core/messageChannel.d.ts.map +1 -0
- package/dist/tools/core/messageChannel.js +59 -0
- package/dist/tools/core/messageChannel.js.map +1 -0
- package/dist/tools/core/parallelCrew.d.ts +54 -0
- package/dist/tools/core/parallelCrew.d.ts.map +1 -0
- package/dist/tools/core/parallelCrew.js +60 -0
- package/dist/tools/core/parallelCrew.js.map +1 -0
- package/dist/tools/core/pollTool.d.ts +36 -0
- package/dist/tools/core/pollTool.d.ts.map +1 -0
- package/dist/tools/core/pollTool.js +69 -0
- package/dist/tools/core/pollTool.js.map +1 -0
- package/dist/tools/core/projectTracker.d.ts +71 -0
- package/dist/tools/core/projectTracker.d.ts.map +1 -0
- package/dist/tools/core/projectTracker.js +181 -0
- package/dist/tools/core/projectTracker.js.map +1 -0
- package/dist/tools/core/readFile.d.ts +24 -0
- package/dist/tools/core/readFile.d.ts.map +1 -0
- package/dist/tools/core/readFile.js +49 -0
- package/dist/tools/core/readFile.js.map +1 -0
- package/dist/tools/core/readPDF.d.ts +32 -0
- package/dist/tools/core/readPDF.d.ts.map +1 -0
- package/dist/tools/core/readPDF.js +135 -0
- package/dist/tools/core/readPDF.js.map +1 -0
- package/dist/tools/core/reloadTool.d.ts +36 -0
- package/dist/tools/core/reloadTool.d.ts.map +1 -0
- package/dist/tools/core/reloadTool.js +109 -0
- package/dist/tools/core/reloadTool.js.map +1 -0
- package/dist/tools/core/replyToUser.d.ts +14 -0
- package/dist/tools/core/replyToUser.d.ts.map +1 -0
- package/dist/tools/core/replyToUser.js +19 -0
- package/dist/tools/core/replyToUser.js.map +1 -0
- package/dist/tools/core/screenCapture.d.ts +17 -0
- package/dist/tools/core/screenCapture.d.ts.map +1 -0
- package/dist/tools/core/screenCapture.js +34 -0
- package/dist/tools/core/screenCapture.js.map +1 -0
- package/dist/tools/core/sendEmail.d.ts +34 -0
- package/dist/tools/core/sendEmail.d.ts.map +1 -0
- package/dist/tools/core/sendEmail.js +56 -0
- package/dist/tools/core/sendEmail.js.map +1 -0
- package/dist/tools/core/sendFile.d.ts +37 -0
- package/dist/tools/core/sendFile.d.ts.map +1 -0
- package/dist/tools/core/sendFile.js +53 -0
- package/dist/tools/core/sendFile.js.map +1 -0
- package/dist/tools/core/sessionSearch.d.ts +62 -0
- package/dist/tools/core/sessionSearch.d.ts.map +1 -0
- package/dist/tools/core/sessionSearch.js +154 -0
- package/dist/tools/core/sessionSearch.js.map +1 -0
- package/dist/tools/core/skillManage.d.ts +71 -0
- package/dist/tools/core/skillManage.d.ts.map +1 -0
- package/dist/tools/core/skillManage.js +353 -0
- package/dist/tools/core/skillManage.js.map +1 -0
- package/dist/tools/core/skillView.d.ts +46 -0
- package/dist/tools/core/skillView.d.ts.map +1 -0
- package/dist/tools/core/skillView.js +101 -0
- package/dist/tools/core/skillView.js.map +1 -0
- package/dist/tools/core/teamTool.d.ts +71 -0
- package/dist/tools/core/teamTool.d.ts.map +1 -0
- package/dist/tools/core/teamTool.js +132 -0
- package/dist/tools/core/teamTool.js.map +1 -0
- package/dist/tools/core/textToSpeech.d.ts +25 -0
- package/dist/tools/core/textToSpeech.d.ts.map +1 -0
- package/dist/tools/core/textToSpeech.js +87 -0
- package/dist/tools/core/textToSpeech.js.map +1 -0
- package/dist/tools/core/transcribeAudio.d.ts +21 -0
- package/dist/tools/core/transcribeAudio.d.ts.map +1 -0
- package/dist/tools/core/transcribeAudio.js +27 -0
- package/dist/tools/core/transcribeAudio.js.map +1 -0
- package/dist/tools/core/useCrew.d.ts +38 -0
- package/dist/tools/core/useCrew.d.ts.map +1 -0
- package/dist/tools/core/useCrew.js +48 -0
- package/dist/tools/core/useCrew.js.map +1 -0
- package/dist/tools/core/useMCP.d.ts +40 -0
- package/dist/tools/core/useMCP.d.ts.map +1 -0
- package/dist/tools/core/useMCP.js +64 -0
- package/dist/tools/core/useMCP.js.map +1 -0
- package/dist/tools/core/watcherTool.d.ts +47 -0
- package/dist/tools/core/watcherTool.d.ts.map +1 -0
- package/dist/tools/core/watcherTool.js +119 -0
- package/dist/tools/core/watcherTool.js.map +1 -0
- package/dist/tools/core/webFetch.d.ts +48 -0
- package/dist/tools/core/webFetch.d.ts.map +1 -0
- package/dist/tools/core/webFetch.js +265 -0
- package/dist/tools/core/webFetch.js.map +1 -0
- package/dist/tools/core/webSearch.d.ts +55 -0
- package/dist/tools/core/webSearch.d.ts.map +1 -0
- package/dist/tools/core/webSearch.js +429 -0
- package/dist/tools/core/webSearch.js.map +1 -0
- package/dist/tools/core/writeFile.d.ts +27 -0
- package/dist/tools/core/writeFile.d.ts.map +1 -0
- package/dist/tools/core/writeFile.js +51 -0
- package/dist/tools/core/writeFile.js.map +1 -0
- package/dist/tools/registry.d.ts +36 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +73 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/types.d.ts +50 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +20 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/tunnels/TunnelManager.d.ts +52 -0
- package/dist/tunnels/TunnelManager.d.ts.map +1 -0
- package/dist/tunnels/TunnelManager.js +183 -0
- package/dist/tunnels/TunnelManager.js.map +1 -0
- package/dist/tunnels/urls.d.ts +20 -0
- package/dist/tunnels/urls.d.ts.map +1 -0
- package/dist/tunnels/urls.js +22 -0
- package/dist/tunnels/urls.js.map +1 -0
- package/dist/util/errors.d.ts +54 -0
- package/dist/util/errors.d.ts.map +1 -0
- package/dist/util/errors.js +102 -0
- package/dist/util/errors.js.map +1 -0
- package/dist/util/logger.d.ts +21 -0
- package/dist/util/logger.d.ts.map +1 -0
- package/dist/util/logger.js +62 -0
- package/dist/util/logger.js.map +1 -0
- package/dist/util/msgText.d.ts +16 -0
- package/dist/util/msgText.d.ts.map +1 -0
- package/dist/util/msgText.js +65 -0
- package/dist/util/msgText.js.map +1 -0
- package/dist/util/result.d.ts +24 -0
- package/dist/util/result.d.ts.map +1 -0
- package/dist/util/result.js +35 -0
- package/dist/util/result.js.map +1 -0
- package/dist/util/tokenEstimate.d.ts +12 -0
- package/dist/util/tokenEstimate.d.ts.map +1 -0
- package/dist/util/tokenEstimate.js +22 -0
- package/dist/util/tokenEstimate.js.map +1 -0
- package/dist/voice/DaemoraLLM.d.ts +44 -0
- package/dist/voice/DaemoraLLM.d.ts.map +1 -0
- package/dist/voice/DaemoraLLM.js +185 -0
- package/dist/voice/DaemoraLLM.js.map +1 -0
- package/dist/voice/ElevenLabsSTT.d.ts +41 -0
- package/dist/voice/ElevenLabsSTT.d.ts.map +1 -0
- package/dist/voice/ElevenLabsSTT.js +98 -0
- package/dist/voice/ElevenLabsSTT.js.map +1 -0
- package/dist/voice/GroqTTS.d.ts +38 -0
- package/dist/voice/GroqTTS.d.ts.map +1 -0
- package/dist/voice/GroqTTS.js +208 -0
- package/dist/voice/GroqTTS.js.map +1 -0
- package/dist/voice/LiveKitServer.d.ts +30 -0
- package/dist/voice/LiveKitServer.d.ts.map +1 -0
- package/dist/voice/LiveKitServer.js +119 -0
- package/dist/voice/LiveKitServer.js.map +1 -0
- package/dist/voice/LiveKitToken.d.ts +25 -0
- package/dist/voice/LiveKitToken.d.ts.map +1 -0
- package/dist/voice/LiveKitToken.js +44 -0
- package/dist/voice/LiveKitToken.js.map +1 -0
- package/dist/voice/SidecarSupervisor.d.ts +39 -0
- package/dist/voice/SidecarSupervisor.d.ts.map +1 -0
- package/dist/voice/SidecarSupervisor.js +194 -0
- package/dist/voice/SidecarSupervisor.js.map +1 -0
- package/dist/voice/VoiceAgent.d.ts +23 -0
- package/dist/voice/VoiceAgent.d.ts.map +1 -0
- package/dist/voice/VoiceAgent.js +265 -0
- package/dist/voice/VoiceAgent.js.map +1 -0
- package/dist/voice/VoiceProviders.d.ts +29 -0
- package/dist/voice/VoiceProviders.d.ts.map +1 -0
- package/dist/voice/VoiceProviders.js +177 -0
- package/dist/voice/VoiceProviders.js.map +1 -0
- package/dist/voice/VoiceSession.d.ts +106 -0
- package/dist/voice/VoiceSession.d.ts.map +1 -0
- package/dist/voice/VoiceSession.js +454 -0
- package/dist/voice/VoiceSession.js.map +1 -0
- package/dist/voice/VoiceSocket.d.ts +49 -0
- package/dist/voice/VoiceSocket.d.ts.map +1 -0
- package/dist/voice/VoiceSocket.js +274 -0
- package/dist/voice/VoiceSocket.js.map +1 -0
- package/dist/voice/stt/DeepgramSTT.d.ts +26 -0
- package/dist/voice/stt/DeepgramSTT.d.ts.map +1 -0
- package/dist/voice/stt/DeepgramSTT.js +188 -0
- package/dist/voice/stt/DeepgramSTT.js.map +1 -0
- package/dist/voice/stt/GroqSTT.d.ts +28 -0
- package/dist/voice/stt/GroqSTT.d.ts.map +1 -0
- package/dist/voice/stt/GroqSTT.js +169 -0
- package/dist/voice/stt/GroqSTT.js.map +1 -0
- package/dist/voice/stt/STTAdapter.d.ts +47 -0
- package/dist/voice/stt/STTAdapter.d.ts.map +1 -0
- package/dist/voice/stt/STTAdapter.js +27 -0
- package/dist/voice/stt/STTAdapter.js.map +1 -0
- package/dist/voice/transcribe.d.ts +33 -0
- package/dist/voice/transcribe.d.ts.map +1 -0
- package/dist/voice/transcribe.js +73 -0
- package/dist/voice/transcribe.js.map +1 -0
- package/dist/voice/transcriptFilter.d.ts +16 -0
- package/dist/voice/transcriptFilter.d.ts.map +1 -0
- package/dist/voice/transcriptFilter.js +36 -0
- package/dist/voice/transcriptFilter.js.map +1 -0
- package/dist/voice/tts/CartesiaTTS.d.ts +31 -0
- package/dist/voice/tts/CartesiaTTS.d.ts.map +1 -0
- package/dist/voice/tts/CartesiaTTS.js +201 -0
- package/dist/voice/tts/CartesiaTTS.js.map +1 -0
- package/dist/voice/tts/ElevenLabsTTS.d.ts +29 -0
- package/dist/voice/tts/ElevenLabsTTS.d.ts.map +1 -0
- package/dist/voice/tts/ElevenLabsTTS.js +210 -0
- package/dist/voice/tts/ElevenLabsTTS.js.map +1 -0
- package/dist/voice/tts/OpenAITTS.d.ts +23 -0
- package/dist/voice/tts/OpenAITTS.d.ts.map +1 -0
- package/dist/voice/tts/OpenAITTS.js +124 -0
- package/dist/voice/tts/OpenAITTS.js.map +1 -0
- package/dist/voice/tts/TTSAdapter.d.ts +46 -0
- package/dist/voice/tts/TTSAdapter.d.ts.map +1 -0
- package/dist/voice/tts/TTSAdapter.js +26 -0
- package/dist/voice/tts/TTSAdapter.js.map +1 -0
- package/dist/voice-worker.mjs +607 -0
- package/dist/watchers/FileWatcher.d.ts +47 -0
- package/dist/watchers/FileWatcher.d.ts.map +1 -0
- package/dist/watchers/FileWatcher.js +103 -0
- package/dist/watchers/FileWatcher.js.map +1 -0
- package/dist/watchers/IntegrationWatcher.d.ts +68 -0
- package/dist/watchers/IntegrationWatcher.d.ts.map +1 -0
- package/dist/watchers/IntegrationWatcher.js +347 -0
- package/dist/watchers/IntegrationWatcher.js.map +1 -0
- package/dist/watchers/PollWatcher.d.ts +54 -0
- package/dist/watchers/PollWatcher.d.ts.map +1 -0
- package/dist/watchers/PollWatcher.js +135 -0
- package/dist/watchers/PollWatcher.js.map +1 -0
- package/dist/watchers/WatcherRunner.d.ts +49 -0
- package/dist/watchers/WatcherRunner.d.ts.map +1 -0
- package/dist/watchers/WatcherRunner.js +203 -0
- package/dist/watchers/WatcherRunner.js.map +1 -0
- package/dist/watchers/WatcherStore.d.ts +43 -0
- package/dist/watchers/WatcherStore.d.ts.map +1 -0
- package/dist/watchers/WatcherStore.js +78 -0
- package/dist/watchers/WatcherStore.js.map +1 -0
- package/dist/webhooks/WebhookHandler.d.ts +36 -0
- package/dist/webhooks/WebhookHandler.d.ts.map +1 -0
- package/dist/webhooks/WebhookHandler.js +264 -0
- package/dist/webhooks/WebhookHandler.js.map +1 -0
- package/dist/webhooks/WebhookTokenStore.d.ts +48 -0
- package/dist/webhooks/WebhookTokenStore.d.ts.map +1 -0
- package/dist/webhooks/WebhookTokenStore.js +136 -0
- package/dist/webhooks/WebhookTokenStore.js.map +1 -0
- package/dist/webhooks/hmac.d.ts +43 -0
- package/dist/webhooks/hmac.d.ts.map +1 -0
- package/dist/webhooks/hmac.js +98 -0
- package/dist/webhooks/hmac.js.map +1 -0
- package/dist/webhooks/watcherTemplates.d.ts +21 -0
- package/dist/webhooks/watcherTemplates.d.ts.map +1 -0
- package/dist/webhooks/watcherTemplates.js +164 -0
- package/dist/webhooks/watcherTemplates.js.map +1 -0
- package/package.json +119 -0
- package/public/architecture.svg +99 -0
- package/public/banner.png +0 -0
- package/public/banner.svg +141 -0
- package/public/multi-agent.svg +109 -0
- package/public/security.svg +84 -0
- package/public/steer-inject.svg +73 -0
- package/public/task-lifecycle.svg +77 -0
- package/skills/_template/SKILL.md +11 -0
- package/skills/api-development.md +35 -0
- package/skills/apple-notes/SKILL.md +77 -0
- package/skills/apple-reminders/SKILL.md +118 -0
- package/skills/artifacts-builder/SKILL.md +74 -0
- package/skills/artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/skills/artifacts-builder/scripts/init-artifact.sh +322 -0
- package/skills/artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/skills/brand-guidelines.md +73 -0
- package/skills/browser.md +77 -0
- package/skills/camsnap/SKILL.md +45 -0
- package/skills/changelog-generator.md +104 -0
- package/skills/coding-agent/SKILL.md +316 -0
- package/skills/content-research-writer.md +538 -0
- package/skills/create-new-skill.md +564 -0
- package/skills/data-analysis.md +27 -0
- package/skills/debugging.md +33 -0
- package/skills/devops.md +37 -0
- package/skills/discord/SKILL.md +197 -0
- package/skills/document-docx.md +197 -0
- package/skills/document-pptx.md +484 -0
- package/skills/document-xlsx.md +289 -0
- package/skills/documents.md +13 -0
- package/skills/domain-name-brainstormer.md +212 -0
- package/skills/email.md +13 -0
- package/skills/example-pdf/SKILL.md +17 -0
- package/skills/file-organizer.md +433 -0
- package/skills/frontend-design.md +42 -0
- package/skills/gif-search.md +53 -0
- package/skills/github/SKILL.md +163 -0
- package/skills/google-workspace.md +64 -0
- package/skills/image-enhancer.md +99 -0
- package/skills/image-gen.md +48 -0
- package/skills/invoice-organizer.md +446 -0
- package/skills/lead-research-assistant.md +199 -0
- package/skills/link-understanding.md +21 -0
- package/skills/macos-automation.md +62 -0
- package/skills/mcp-builder/SKILL.md +328 -0
- package/skills/mcp-builder/reference/evaluation.md +602 -0
- package/skills/mcp-builder/reference/mcp_best_practices.md +915 -0
- package/skills/mcp-builder/reference/node_mcp_server.md +916 -0
- package/skills/mcp-builder/reference/python_mcp_server.md +752 -0
- package/skills/mcp-builder/scripts/connections.py +151 -0
- package/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/skills/meeting-attendance.md +37 -0
- package/skills/meeting-insights-analyzer.md +327 -0
- package/skills/model-usage/SKILL.md +69 -0
- package/skills/model-usage/references/codexbar-cli.md +33 -0
- package/skills/model-usage/scripts/model_usage.py +320 -0
- package/skills/model-usage/scripts/test_model_usage.py +40 -0
- package/skills/notion/SKILL.md +174 -0
- package/skills/obsidian/SKILL.md +81 -0
- package/skills/orchestration.md +114 -0
- package/skills/pdf.md +60 -0
- package/skills/planning/SKILL.md +98 -0
- package/skills/planning.md +168 -0
- package/skills/raffle-winner-picker.md +159 -0
- package/skills/remotion.md +126 -0
- package/skills/research.md +13 -0
- package/skills/skill-creator/SKILL.md +372 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/scripts/init_skill.py +378 -0
- package/skills/skill-creator/scripts/package_skill.py +139 -0
- package/skills/skill-creator/scripts/quick_validate.py +159 -0
- package/skills/skill-creator/scripts/test_package_skill.py +160 -0
- package/skills/skill-creator/scripts/test_quick_validate.py +72 -0
- package/skills/slack/SKILL.md +144 -0
- package/skills/slack-gif-creator/SKILL.md +646 -0
- package/skills/slack-gif-creator/core/color_palettes.py +302 -0
- package/skills/slack-gif-creator/core/easing.py +230 -0
- package/skills/slack-gif-creator/core/frame_composer.py +469 -0
- package/skills/slack-gif-creator/core/gif_builder.py +246 -0
- package/skills/slack-gif-creator/core/typography.py +357 -0
- package/skills/slack-gif-creator/core/validators.py +264 -0
- package/skills/slack-gif-creator/core/visual_effects.py +494 -0
- package/skills/slack-gif-creator/requirements.txt +4 -0
- package/skills/slack-gif-creator/templates/bounce.py +106 -0
- package/skills/slack-gif-creator/templates/explode.py +331 -0
- package/skills/slack-gif-creator/templates/fade.py +329 -0
- package/skills/slack-gif-creator/templates/flip.py +291 -0
- package/skills/slack-gif-creator/templates/kaleidoscope.py +211 -0
- package/skills/slack-gif-creator/templates/morph.py +329 -0
- package/skills/slack-gif-creator/templates/move.py +293 -0
- package/skills/slack-gif-creator/templates/pulse.py +268 -0
- package/skills/slack-gif-creator/templates/shake.py +127 -0
- package/skills/slack-gif-creator/templates/slide.py +291 -0
- package/skills/slack-gif-creator/templates/spin.py +269 -0
- package/skills/slack-gif-creator/templates/wiggle.py +300 -0
- package/skills/slack-gif-creator/templates/zoom.py +312 -0
- package/skills/summarize/SKILL.md +87 -0
- package/skills/system-admin.md +44 -0
- package/skills/tailored-resume-generator.md +345 -0
- package/skills/task-decomposition/SKILL.md +113 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/theme-factory/theme-showcase.pdf +0 -0
- package/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/skills/theme-factory/themes/desert-rose.md +19 -0
- package/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/skills/theme-factory/themes/golden-hour.md +19 -0
- package/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/skills/things-mac/SKILL.md +86 -0
- package/skills/tmux/SKILL.md +170 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/trello/SKILL.md +108 -0
- package/skills/video-downloader.md +99 -0
- package/skills/video-frames/SKILL.md +46 -0
- package/skills/video-frames/scripts/frame.sh +81 -0
- package/skills/weather/SKILL.md +129 -0
- package/skills/web-development.md +32 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/webapp-testing/examples/console_logging.py +35 -0
- package/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/skills/webapp-testing/scripts/with_server.py +106 -0
- package/ui/dist/assets/index-DuybLBDW.css +1 -0
- package/ui/dist/assets/index-kK4jTnXz.js +569 -0
- package/ui/dist/favicon.svg +29 -0
- package/ui/dist/index.html +16 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChannelManager — owns channel lifecycle + streams agent replies out.
|
|
3
|
+
*
|
|
4
|
+
* Responsibilities:
|
|
5
|
+
* 1. On startAll(), walk CHANNEL_DEFS and instantiate any channel
|
|
6
|
+
* whose secrets are present. Each channel's onMessage callback is
|
|
7
|
+
* wired to TaskRunner + a per-task streaming subscription.
|
|
8
|
+
* 2. For streaming-capable channels, pipe `task:text:delta` events
|
|
9
|
+
* through a throttled StreamingEditor so the draft message is
|
|
10
|
+
* edited in place (no per-token API spam).
|
|
11
|
+
* 3. On task completion, if streaming delivered nothing, send the
|
|
12
|
+
* final reply as a plain chunked message. If it DID stream, skip
|
|
13
|
+
* the duplicate.
|
|
14
|
+
* 4. On stopAll(), close sockets, cancel pollers, drain timers.
|
|
15
|
+
*
|
|
16
|
+
* Only started channels are "running"; a channel with missing secrets
|
|
17
|
+
* stays stopped until its secrets are added + start() is called.
|
|
18
|
+
*/
|
|
19
|
+
import type { ConfigManager } from "../config/ConfigManager.js";
|
|
20
|
+
import type { EventBus } from "../events/eventBus.js";
|
|
21
|
+
import type { InboundDebouncer } from "../core/InboundDebouncer.js";
|
|
22
|
+
import type { TaskRunner } from "../core/TaskRunner.js";
|
|
23
|
+
import { BaseChannel } from "./BaseChannel.js";
|
|
24
|
+
import type { ChannelRegistry } from "./ChannelRegistry.js";
|
|
25
|
+
export declare class ChannelManager {
|
|
26
|
+
private readonly registry;
|
|
27
|
+
private readonly cfg;
|
|
28
|
+
private readonly runner;
|
|
29
|
+
private readonly bus;
|
|
30
|
+
private readonly debouncer?;
|
|
31
|
+
private readonly running;
|
|
32
|
+
private readonly streams;
|
|
33
|
+
/**
|
|
34
|
+
* Per-task routing info — captured on `spawnTask` so the `send_file`
|
|
35
|
+
* tool (called mid-turn by the agent) can look up the originating
|
|
36
|
+
* channel + user/chat metadata without the agent needing to pass it.
|
|
37
|
+
* Entries are cleared when the task's final reply lands.
|
|
38
|
+
*/
|
|
39
|
+
private readonly taskChannels;
|
|
40
|
+
private disposed;
|
|
41
|
+
constructor(registry: ChannelRegistry, cfg: ConfigManager, runner: TaskRunner, bus: EventBus, debouncer?: InboundDebouncer | undefined);
|
|
42
|
+
/**
|
|
43
|
+
* Upload a local file to whatever channel spawned `taskId`. Called by
|
|
44
|
+
* the `send_file` core tool. Returns a human-readable status so the
|
|
45
|
+
* agent can decide what to say in its final reply.
|
|
46
|
+
*/
|
|
47
|
+
sendFileForTask(taskId: string, path: string, caption?: string): Promise<{
|
|
48
|
+
ok: boolean;
|
|
49
|
+
message: string;
|
|
50
|
+
}>;
|
|
51
|
+
/** Instantiate + start every channel that has its secrets configured. */
|
|
52
|
+
startAll(): Promise<void>;
|
|
53
|
+
/** Start a single channel by id. Returns true on success. */
|
|
54
|
+
start(id: string): Promise<boolean>;
|
|
55
|
+
/** Stop a single channel by id. */
|
|
56
|
+
stop(id: string): Promise<boolean>;
|
|
57
|
+
/** Stop every running channel. Safe to call on shutdown. */
|
|
58
|
+
stopAll(): Promise<void>;
|
|
59
|
+
/** Status snapshot — running state by channel id. */
|
|
60
|
+
runningSet(): ReadonlySet<string>;
|
|
61
|
+
/** Grab a live channel instance (or null if that channel isn't running). */
|
|
62
|
+
getChannel(id: string): BaseChannel | null;
|
|
63
|
+
/** Dispatch a webhook request to the right channel by id. */
|
|
64
|
+
dispatchWebhook(id: string, req: import("./BaseChannel.js").WebhookRequest, res: import("./BaseChannel.js").WebhookResponse, rawBody: string | null): Promise<boolean>;
|
|
65
|
+
/** List each defined channel's running state (for UI / /api/channels). */
|
|
66
|
+
statusList(): {
|
|
67
|
+
id: string;
|
|
68
|
+
running: boolean;
|
|
69
|
+
implemented: boolean;
|
|
70
|
+
}[];
|
|
71
|
+
private startChannel;
|
|
72
|
+
private readSecret;
|
|
73
|
+
private handleIncoming;
|
|
74
|
+
private spawnTask;
|
|
75
|
+
private beginStreaming;
|
|
76
|
+
private onTextDelta;
|
|
77
|
+
private onTextEnd;
|
|
78
|
+
/**
|
|
79
|
+
* Called on task completion. If streaming delivered the full message
|
|
80
|
+
* in place, we're done. Otherwise send the final reply (chunking if it
|
|
81
|
+
* overflows the platform's size cap).
|
|
82
|
+
*/
|
|
83
|
+
private deliverFinal;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=ChannelManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelManager.d.ts","sourceRoot":"","sources":["../../src/channels/ChannelManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,WAAW,EAA0C,MAAM,kBAAkB,CAAC;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAmP5D,qBAAa,cAAc;IAavB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;IAhB7B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkC;IAC1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkC;IAC1D;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkE;IAC/F,OAAO,CAAC,QAAQ,CAAS;gBAGN,QAAQ,EAAE,eAAe,EACzB,GAAG,EAAE,aAAa,EAClB,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,QAAQ,EACb,SAAS,CAAC,EAAE,gBAAgB,YAAA;IAS/C;;;;OAIG;IACG,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAkB5C,yEAAyE;IACnE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB/B,6DAA6D;IACvD,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAgBzC,mCAAmC;IAC7B,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAYxC,4DAA4D;IACtD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAiB9B,qDAAqD;IACrD,UAAU,IAAI,WAAW,CAAC,MAAM,CAAC;IAIjC,4EAA4E;IAC5E,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAI1C,6DAA6D;IACvD,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,OAAO,kBAAkB,EAAE,cAAc,EAC9C,GAAG,EAAE,OAAO,kBAAkB,EAAE,eAAe,EAC/C,OAAO,EAAE,MAAM,GAAG,IAAI,GACrB,OAAO,CAAC,OAAO,CAAC;IAOnB,0EAA0E;IAC1E,UAAU,IAAI;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,WAAW,EAAE,OAAO,CAAA;KAAE,EAAE;YAUxD,YAAY;IAU1B,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,cAAc;IA8BtB,OAAO,CAAC,SAAS;IAwBjB,OAAO,CAAC,cAAc;IAsCtB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,SAAS;IAOjB;;;;OAIG;YACW,YAAY;CAqC3B"}
|
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChannelManager — owns channel lifecycle + streams agent replies out.
|
|
3
|
+
*
|
|
4
|
+
* Responsibilities:
|
|
5
|
+
* 1. On startAll(), walk CHANNEL_DEFS and instantiate any channel
|
|
6
|
+
* whose secrets are present. Each channel's onMessage callback is
|
|
7
|
+
* wired to TaskRunner + a per-task streaming subscription.
|
|
8
|
+
* 2. For streaming-capable channels, pipe `task:text:delta` events
|
|
9
|
+
* through a throttled StreamingEditor so the draft message is
|
|
10
|
+
* edited in place (no per-token API spam).
|
|
11
|
+
* 3. On task completion, if streaming delivered nothing, send the
|
|
12
|
+
* final reply as a plain chunked message. If it DID stream, skip
|
|
13
|
+
* the duplicate.
|
|
14
|
+
* 4. On stopAll(), close sockets, cancel pollers, drain timers.
|
|
15
|
+
*
|
|
16
|
+
* Only started channels are "running"; a channel with missing secrets
|
|
17
|
+
* stays stopped until its secrets are added + start() is called.
|
|
18
|
+
*/
|
|
19
|
+
import { createLogger } from "../util/logger.js";
|
|
20
|
+
import { DiscordChannel } from "./DiscordChannel.js";
|
|
21
|
+
import { EmailChannel } from "./EmailChannel.js";
|
|
22
|
+
import { FeishuChannel } from "./FeishuChannel.js";
|
|
23
|
+
import { IRCChannel } from "./IRCChannel.js";
|
|
24
|
+
import { GoogleChatChannel } from "./GoogleChatChannel.js";
|
|
25
|
+
import { BlueBubblesChannel } from "./BlueBubblesChannel.js";
|
|
26
|
+
import { LineChannel } from "./LineChannel.js";
|
|
27
|
+
import { MatrixChannel } from "./MatrixChannel.js";
|
|
28
|
+
import { MattermostChannel } from "./MattermostChannel.js";
|
|
29
|
+
import { NextcloudChannel } from "./NextcloudChannel.js";
|
|
30
|
+
import { SignalChannel } from "./SignalChannel.js";
|
|
31
|
+
import { SlackChannel } from "./SlackChannel.js";
|
|
32
|
+
import { TwitchChannel } from "./TwitchChannel.js";
|
|
33
|
+
import { ZaloChannel } from "./ZaloChannel.js";
|
|
34
|
+
import { createStreamingLoop, splitMessage, } from "./StreamingEditor.js";
|
|
35
|
+
import { TelegramChannel } from "./TelegramChannel.js";
|
|
36
|
+
import { WhatsAppChannel } from "./WhatsAppChannel.js";
|
|
37
|
+
const log = createLogger("channels.manager");
|
|
38
|
+
/**
|
|
39
|
+
* Shared session id used by every inbound channel message AND the web
|
|
40
|
+
* Chat page. The UI calls POST /api/sessions with { sessionId: "main" }
|
|
41
|
+
* and then watches that session — funneling Discord / Telegram / Slack
|
|
42
|
+
* traffic into the same id means everything lands in one thread.
|
|
43
|
+
*/
|
|
44
|
+
const CHANNELS_SESSION_ID = "main";
|
|
45
|
+
// Throttle per platform — Discord is strict (10 edits / 10s), Slack/Telegram are looser.
|
|
46
|
+
const STREAM_THROTTLE_MS = {
|
|
47
|
+
discord: 1200,
|
|
48
|
+
slack: 1000,
|
|
49
|
+
telegram: 1000,
|
|
50
|
+
};
|
|
51
|
+
const DEFAULT_STREAM_THROTTLE_MS = 1500;
|
|
52
|
+
const CHANNEL_FACTORIES = {
|
|
53
|
+
discord: ({ getSecret, onMessage }) => {
|
|
54
|
+
const token = getSecret("DISCORD_BOT_TOKEN");
|
|
55
|
+
if (!token)
|
|
56
|
+
return null;
|
|
57
|
+
return new DiscordChannel({ token, onMessage: (m) => onMessage("discord", m) });
|
|
58
|
+
},
|
|
59
|
+
telegram: ({ getSecret, onMessage, cfg }) => {
|
|
60
|
+
const token = getSecret("TELEGRAM_BOT_TOKEN");
|
|
61
|
+
if (!token)
|
|
62
|
+
return null;
|
|
63
|
+
return new TelegramChannel({ token, cfg, onMessage: (m) => onMessage("telegram", m) });
|
|
64
|
+
},
|
|
65
|
+
slack: ({ getSecret, onMessage }) => {
|
|
66
|
+
const botToken = getSecret("SLACK_BOT_TOKEN");
|
|
67
|
+
const appToken = getSecret("SLACK_APP_TOKEN");
|
|
68
|
+
if (!botToken || !appToken)
|
|
69
|
+
return null;
|
|
70
|
+
return new SlackChannel({ botToken, appToken, onMessage: (m) => onMessage("slack", m) });
|
|
71
|
+
},
|
|
72
|
+
whatsapp: ({ getSecret, onMessage }) => {
|
|
73
|
+
const sid = getSecret("TWILIO_ACCOUNT_SID");
|
|
74
|
+
const tok = getSecret("TWILIO_AUTH_TOKEN");
|
|
75
|
+
const from = getSecret("TWILIO_WHATSAPP_FROM") ?? getSecret("TWILIO_FROM");
|
|
76
|
+
if (!sid || !tok || !from)
|
|
77
|
+
return null;
|
|
78
|
+
return new WhatsAppChannel({
|
|
79
|
+
accountSid: sid,
|
|
80
|
+
authToken: tok,
|
|
81
|
+
from,
|
|
82
|
+
onMessage: (m) => onMessage("whatsapp", m),
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
line: ({ getSecret, onMessage }) => {
|
|
86
|
+
const accessToken = getSecret("LINE_CHANNEL_ACCESS_TOKEN");
|
|
87
|
+
const channelSecret = getSecret("LINE_CHANNEL_SECRET");
|
|
88
|
+
if (!accessToken || !channelSecret)
|
|
89
|
+
return null;
|
|
90
|
+
return new LineChannel({
|
|
91
|
+
accessToken,
|
|
92
|
+
channelSecret,
|
|
93
|
+
onMessage: (m) => onMessage("line", m),
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
feishu: ({ getSecret, onMessage }) => {
|
|
97
|
+
const appId = getSecret("FEISHU_APP_ID");
|
|
98
|
+
const appSecret = getSecret("FEISHU_APP_SECRET");
|
|
99
|
+
if (!appId || !appSecret)
|
|
100
|
+
return null;
|
|
101
|
+
const verificationToken = getSecret("FEISHU_VERIFICATION_TOKEN");
|
|
102
|
+
return new FeishuChannel({
|
|
103
|
+
appId,
|
|
104
|
+
appSecret,
|
|
105
|
+
...(verificationToken ? { verificationToken } : {}),
|
|
106
|
+
onMessage: (m) => onMessage("feishu", m),
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
email: ({ getSecret, onMessage }) => {
|
|
110
|
+
// Inbound IMAP needs EMAIL_USER + EMAIL_PASSWORD. Outbound can be
|
|
111
|
+
// satisfied by either those same credentials (via SMTP) or a Resend
|
|
112
|
+
// API key. If neither side is configured, the channel stays dark.
|
|
113
|
+
const user = getSecret("EMAIL_USER");
|
|
114
|
+
const password = getSecret("EMAIL_PASSWORD");
|
|
115
|
+
const resendApiKey = getSecret("RESEND_API_KEY");
|
|
116
|
+
if (!user && !resendApiKey)
|
|
117
|
+
return null;
|
|
118
|
+
if (!user || !password) {
|
|
119
|
+
// Outbound-only (Resend) isn't useful without an inbound source,
|
|
120
|
+
// so we require IMAP creds if we're starting the channel at all.
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
return new EmailChannel({
|
|
124
|
+
user,
|
|
125
|
+
password,
|
|
126
|
+
...(resendApiKey ? { resendApiKey } : {}),
|
|
127
|
+
...(getSecret("RESEND_FROM") ? { resendFrom: getSecret("RESEND_FROM") } : {}),
|
|
128
|
+
onMessage: (m) => onMessage("email", m),
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
matrix: ({ getSecret, onMessage }) => {
|
|
132
|
+
const homeserverUrl = getSecret("MATRIX_HOMESERVER_URL");
|
|
133
|
+
const accessToken = getSecret("MATRIX_ACCESS_TOKEN");
|
|
134
|
+
if (!homeserverUrl || !accessToken)
|
|
135
|
+
return null;
|
|
136
|
+
const botUserId = getSecret("MATRIX_BOT_USER_ID");
|
|
137
|
+
return new MatrixChannel({
|
|
138
|
+
homeserverUrl,
|
|
139
|
+
accessToken,
|
|
140
|
+
...(botUserId ? { botUserId } : {}),
|
|
141
|
+
onMessage: (m) => onMessage("matrix", m),
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
mattermost: ({ getSecret, onMessage }) => {
|
|
145
|
+
const url = getSecret("MATTERMOST_URL");
|
|
146
|
+
const token = getSecret("MATTERMOST_TOKEN");
|
|
147
|
+
const botUserId = getSecret("MATTERMOST_BOT_USER_ID");
|
|
148
|
+
if (!url || !token || !botUserId)
|
|
149
|
+
return null;
|
|
150
|
+
const botUsername = getSecret("MATTERMOST_BOT_USERNAME");
|
|
151
|
+
return new MattermostChannel({
|
|
152
|
+
url,
|
|
153
|
+
token,
|
|
154
|
+
botUserId,
|
|
155
|
+
...(botUsername ? { botUsername } : {}),
|
|
156
|
+
onMessage: (m) => onMessage("mattermost", m),
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
twitch: ({ getSecret, onMessage }) => {
|
|
160
|
+
const username = getSecret("TWITCH_BOT_USERNAME");
|
|
161
|
+
const token = getSecret("TWITCH_OAUTH_TOKEN");
|
|
162
|
+
const channel = getSecret("TWITCH_CHANNEL");
|
|
163
|
+
if (!username || !token || !channel)
|
|
164
|
+
return null;
|
|
165
|
+
return new TwitchChannel({
|
|
166
|
+
username, token, channel,
|
|
167
|
+
onMessage: (m) => onMessage("twitch", m),
|
|
168
|
+
});
|
|
169
|
+
},
|
|
170
|
+
irc: ({ getSecret, onMessage }) => {
|
|
171
|
+
const server = getSecret("IRC_SERVER");
|
|
172
|
+
const nick = getSecret("IRC_NICK");
|
|
173
|
+
if (!server || !nick)
|
|
174
|
+
return null;
|
|
175
|
+
const portRaw = getSecret("IRC_PORT");
|
|
176
|
+
const port = portRaw ? Number.parseInt(portRaw, 10) : undefined;
|
|
177
|
+
const channel = getSecret("IRC_CHANNEL");
|
|
178
|
+
const password = getSecret("IRC_PASSWORD");
|
|
179
|
+
const prefix = getSecret("IRC_COMMAND_PREFIX");
|
|
180
|
+
return new IRCChannel({
|
|
181
|
+
server, nick,
|
|
182
|
+
...(typeof port === "number" && !Number.isNaN(port) ? { port } : {}),
|
|
183
|
+
...(channel ? { channel } : {}),
|
|
184
|
+
...(password ? { password } : {}),
|
|
185
|
+
...(prefix ? { prefix } : {}),
|
|
186
|
+
onMessage: (m) => onMessage("irc", m),
|
|
187
|
+
});
|
|
188
|
+
},
|
|
189
|
+
bluebubbles: ({ getSecret, onMessage }) => {
|
|
190
|
+
const url = getSecret("BLUEBUBBLES_URL");
|
|
191
|
+
const password = getSecret("BLUEBUBBLES_PASSWORD");
|
|
192
|
+
if (!url || !password)
|
|
193
|
+
return null;
|
|
194
|
+
return new BlueBubblesChannel({
|
|
195
|
+
url, password,
|
|
196
|
+
onMessage: (m) => onMessage("bluebubbles", m),
|
|
197
|
+
});
|
|
198
|
+
},
|
|
199
|
+
signal: ({ getSecret, onMessage }) => {
|
|
200
|
+
const cliUrl = getSecret("SIGNAL_CLI_URL");
|
|
201
|
+
const phoneNumber = getSecret("SIGNAL_PHONE_NUMBER");
|
|
202
|
+
if (!cliUrl || !phoneNumber)
|
|
203
|
+
return null;
|
|
204
|
+
return new SignalChannel({
|
|
205
|
+
cliUrl, phoneNumber,
|
|
206
|
+
onMessage: (m) => onMessage("signal", m),
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
zalo: ({ getSecret, onMessage }) => {
|
|
210
|
+
const appId = getSecret("ZALO_APP_ID");
|
|
211
|
+
const appSecret = getSecret("ZALO_APP_SECRET");
|
|
212
|
+
const accessToken = getSecret("ZALO_ACCESS_TOKEN");
|
|
213
|
+
if (!appId || !appSecret || !accessToken)
|
|
214
|
+
return null;
|
|
215
|
+
return new ZaloChannel({
|
|
216
|
+
appId, appSecret, accessToken,
|
|
217
|
+
onMessage: (m) => onMessage("zalo", m),
|
|
218
|
+
});
|
|
219
|
+
},
|
|
220
|
+
nextcloud: ({ getSecret, onMessage }) => {
|
|
221
|
+
const url = getSecret("NEXTCLOUD_URL");
|
|
222
|
+
const user = getSecret("NEXTCLOUD_USER");
|
|
223
|
+
const password = getSecret("NEXTCLOUD_PASSWORD");
|
|
224
|
+
if (!url || !user || !password)
|
|
225
|
+
return null;
|
|
226
|
+
const roomToken = getSecret("NEXTCLOUD_ROOM_TOKEN");
|
|
227
|
+
return new NextcloudChannel({
|
|
228
|
+
url, user, password,
|
|
229
|
+
...(roomToken ? { roomToken } : {}),
|
|
230
|
+
onMessage: (m) => onMessage("nextcloud", m),
|
|
231
|
+
});
|
|
232
|
+
},
|
|
233
|
+
googlechat: ({ getSecret, onMessage }) => {
|
|
234
|
+
const saRaw = getSecret("GOOGLE_CHAT_SERVICE_ACCOUNT");
|
|
235
|
+
if (!saRaw)
|
|
236
|
+
return null;
|
|
237
|
+
try {
|
|
238
|
+
const sa = JSON.parse(saRaw);
|
|
239
|
+
if (!sa.client_email || !sa.private_key)
|
|
240
|
+
return null;
|
|
241
|
+
return new GoogleChatChannel({
|
|
242
|
+
serviceAccount: sa,
|
|
243
|
+
onMessage: (m) => onMessage("googlechat", m),
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
catch (err) {
|
|
247
|
+
log.error({ err: err.message }, "googlechat: invalid service account JSON");
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
export class ChannelManager {
|
|
253
|
+
registry;
|
|
254
|
+
cfg;
|
|
255
|
+
runner;
|
|
256
|
+
bus;
|
|
257
|
+
debouncer;
|
|
258
|
+
running = new Map();
|
|
259
|
+
streams = new Map();
|
|
260
|
+
/**
|
|
261
|
+
* Per-task routing info — captured on `spawnTask` so the `send_file`
|
|
262
|
+
* tool (called mid-turn by the agent) can look up the originating
|
|
263
|
+
* channel + user/chat metadata without the agent needing to pass it.
|
|
264
|
+
* Entries are cleared when the task's final reply lands.
|
|
265
|
+
*/
|
|
266
|
+
taskChannels = new Map();
|
|
267
|
+
disposed = false;
|
|
268
|
+
constructor(registry, cfg, runner, bus, debouncer) {
|
|
269
|
+
this.registry = registry;
|
|
270
|
+
this.cfg = cfg;
|
|
271
|
+
this.runner = runner;
|
|
272
|
+
this.bus = bus;
|
|
273
|
+
this.debouncer = debouncer;
|
|
274
|
+
this.bus.on("task:text:delta", (ev) => this.onTextDelta(ev.taskId, ev.delta));
|
|
275
|
+
this.bus.on("task:text:end", (ev) => this.onTextEnd(ev.taskId, ev.finalText));
|
|
276
|
+
this.bus.on("task:reply:needed", (ev) => {
|
|
277
|
+
void this.deliverFinal(ev.taskId, ev.channel, ev.channelMeta, ev.text, ev.failed);
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Upload a local file to whatever channel spawned `taskId`. Called by
|
|
282
|
+
* the `send_file` core tool. Returns a human-readable status so the
|
|
283
|
+
* agent can decide what to say in its final reply.
|
|
284
|
+
*/
|
|
285
|
+
async sendFileForTask(taskId, path, caption) {
|
|
286
|
+
const entry = this.taskChannels.get(taskId);
|
|
287
|
+
if (!entry) {
|
|
288
|
+
return { ok: false, message: "No active channel for this task — nothing to upload to." };
|
|
289
|
+
}
|
|
290
|
+
if (!entry.channel.supportsFiles) {
|
|
291
|
+
return { ok: false, message: `Channel "${entry.channel.id}" doesn't support file uploads.` };
|
|
292
|
+
}
|
|
293
|
+
try {
|
|
294
|
+
await entry.channel.sendFile(entry.meta, path, caption);
|
|
295
|
+
return { ok: true, message: `File delivered via ${entry.channel.id}.` };
|
|
296
|
+
}
|
|
297
|
+
catch (e) {
|
|
298
|
+
return { ok: false, message: `Upload failed: ${e.message}` };
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
// ── Public API ─────────────────────────────────────────────────
|
|
302
|
+
/** Instantiate + start every channel that has its secrets configured. */
|
|
303
|
+
async startAll() {
|
|
304
|
+
const ctx = {
|
|
305
|
+
cfg: this.cfg,
|
|
306
|
+
getSecret: (key) => this.readSecret(key),
|
|
307
|
+
onMessage: (id, msg) => this.handleIncoming(id, msg),
|
|
308
|
+
};
|
|
309
|
+
for (const def of this.registry.defs()) {
|
|
310
|
+
if (this.running.has(def.id))
|
|
311
|
+
continue; // defense in depth — skip live instances
|
|
312
|
+
const factory = CHANNEL_FACTORIES[def.id];
|
|
313
|
+
if (!factory)
|
|
314
|
+
continue; // not implemented yet
|
|
315
|
+
const channel = factory(ctx);
|
|
316
|
+
if (!channel) {
|
|
317
|
+
log.debug({ id: def.id }, "channel skipped — secrets missing");
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
await this.startChannel(channel);
|
|
321
|
+
}
|
|
322
|
+
log.info({ running: this.running.size }, "channels running");
|
|
323
|
+
}
|
|
324
|
+
/** Start a single channel by id. Returns true on success. */
|
|
325
|
+
async start(id) {
|
|
326
|
+
if (this.running.has(id))
|
|
327
|
+
return true;
|
|
328
|
+
const def = this.registry.defs().find((d) => d.id === id);
|
|
329
|
+
if (!def)
|
|
330
|
+
return false;
|
|
331
|
+
const factory = CHANNEL_FACTORIES[id];
|
|
332
|
+
if (!factory)
|
|
333
|
+
return false;
|
|
334
|
+
const channel = factory({
|
|
335
|
+
cfg: this.cfg,
|
|
336
|
+
getSecret: (key) => this.readSecret(key),
|
|
337
|
+
onMessage: (cid, msg) => this.handleIncoming(cid, msg),
|
|
338
|
+
});
|
|
339
|
+
if (!channel)
|
|
340
|
+
return false;
|
|
341
|
+
await this.startChannel(channel);
|
|
342
|
+
return true;
|
|
343
|
+
}
|
|
344
|
+
/** Stop a single channel by id. */
|
|
345
|
+
async stop(id) {
|
|
346
|
+
const ch = this.running.get(id);
|
|
347
|
+
if (!ch)
|
|
348
|
+
return false;
|
|
349
|
+
try {
|
|
350
|
+
await ch.stop();
|
|
351
|
+
}
|
|
352
|
+
catch (err) {
|
|
353
|
+
log.error({ id, err: err.message }, "channel stop failed");
|
|
354
|
+
}
|
|
355
|
+
this.running.delete(id);
|
|
356
|
+
return true;
|
|
357
|
+
}
|
|
358
|
+
/** Stop every running channel. Safe to call on shutdown. */
|
|
359
|
+
async stopAll() {
|
|
360
|
+
this.disposed = true;
|
|
361
|
+
for (const [id, ch] of this.running.entries()) {
|
|
362
|
+
try {
|
|
363
|
+
await ch.stop();
|
|
364
|
+
}
|
|
365
|
+
catch (err) {
|
|
366
|
+
log.error({ id, err: err.message }, "channel stop failed");
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
this.running.clear();
|
|
370
|
+
for (const s of this.streams.values()) {
|
|
371
|
+
s.stopped = true;
|
|
372
|
+
s.editor.stop();
|
|
373
|
+
}
|
|
374
|
+
this.streams.clear();
|
|
375
|
+
}
|
|
376
|
+
/** Status snapshot — running state by channel id. */
|
|
377
|
+
runningSet() {
|
|
378
|
+
return new Set(this.running.keys());
|
|
379
|
+
}
|
|
380
|
+
/** Grab a live channel instance (or null if that channel isn't running). */
|
|
381
|
+
getChannel(id) {
|
|
382
|
+
return this.running.get(id) ?? null;
|
|
383
|
+
}
|
|
384
|
+
/** Dispatch a webhook request to the right channel by id. */
|
|
385
|
+
async dispatchWebhook(id, req, res, rawBody) {
|
|
386
|
+
const ch = this.running.get(id);
|
|
387
|
+
if (!ch)
|
|
388
|
+
return false;
|
|
389
|
+
await ch.handleWebhook(req, res, rawBody);
|
|
390
|
+
return true;
|
|
391
|
+
}
|
|
392
|
+
/** List each defined channel's running state (for UI / /api/channels). */
|
|
393
|
+
statusList() {
|
|
394
|
+
return this.registry.defs().map((d) => ({
|
|
395
|
+
id: d.id,
|
|
396
|
+
running: this.running.has(d.id),
|
|
397
|
+
implemented: CHANNEL_FACTORIES[d.id] != null,
|
|
398
|
+
}));
|
|
399
|
+
}
|
|
400
|
+
// ── Internals ──────────────────────────────────────────────────
|
|
401
|
+
async startChannel(channel) {
|
|
402
|
+
try {
|
|
403
|
+
await channel.start();
|
|
404
|
+
this.running.set(channel.id, channel);
|
|
405
|
+
log.info({ id: channel.id }, "channel started");
|
|
406
|
+
}
|
|
407
|
+
catch (err) {
|
|
408
|
+
log.error({ id: channel.id, err: err.message }, "channel failed to start");
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
readSecret(key) {
|
|
412
|
+
if (this.cfg.vault.isUnlocked()) {
|
|
413
|
+
const s = this.cfg.vault.get(key);
|
|
414
|
+
if (s)
|
|
415
|
+
return s.reveal();
|
|
416
|
+
}
|
|
417
|
+
const g = this.cfg.settings.getGeneric(key);
|
|
418
|
+
if (typeof g === "string" && g)
|
|
419
|
+
return g;
|
|
420
|
+
const env = process.env[key];
|
|
421
|
+
return env && env.length > 0 ? env : undefined;
|
|
422
|
+
}
|
|
423
|
+
handleIncoming(channelId, msg) {
|
|
424
|
+
if (this.disposed)
|
|
425
|
+
return;
|
|
426
|
+
const channel = this.running.get(channelId);
|
|
427
|
+
if (!channel)
|
|
428
|
+
return;
|
|
429
|
+
// Single shared session across ALL channel traffic so the agent keeps
|
|
430
|
+
// one continuous conversation regardless of which channel / user
|
|
431
|
+
// sent the message. Per-user isolation is not used here.
|
|
432
|
+
const sessionId = CHANNELS_SESSION_ID;
|
|
433
|
+
// Record destination early so even bundled-into-previous-batch sends
|
|
434
|
+
// land correctly.
|
|
435
|
+
this.registry.saveDestination(channelId, msg.userId, msg.meta);
|
|
436
|
+
// Debounce rapid-fire messages from the same (channel, user) pair
|
|
437
|
+
// into a single task. The first caller's promise resolves with the
|
|
438
|
+
// batched text; later callers get null and must NOT spawn a task.
|
|
439
|
+
if (this.debouncer) {
|
|
440
|
+
const key = `${channelId}:${msg.userId ?? "unknown"}`;
|
|
441
|
+
void this.debouncer.debounce(key, msg.text).then((batched) => {
|
|
442
|
+
if (batched === null)
|
|
443
|
+
return; // bundled into an earlier caller's batch
|
|
444
|
+
// Attachments bypass debouncing — they belong to the first
|
|
445
|
+
// message they arrived with, not the batched text.
|
|
446
|
+
this.spawnTask(channel, channelId, batched, msg.meta, sessionId, msg.attachments);
|
|
447
|
+
});
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
this.spawnTask(channel, channelId, msg.text, msg.meta, sessionId, msg.attachments);
|
|
451
|
+
}
|
|
452
|
+
spawnTask(channel, channelId, text, meta, sessionId, attachments) {
|
|
453
|
+
const handle = this.runner.run({
|
|
454
|
+
input: text,
|
|
455
|
+
sessionId,
|
|
456
|
+
channel: channelId,
|
|
457
|
+
channelMeta: meta,
|
|
458
|
+
...(attachments && attachments.length > 0 ? { attachments } : {}),
|
|
459
|
+
});
|
|
460
|
+
// Remember where this task came from so `send_file` can target the
|
|
461
|
+
// same conversation. Cleared when the task's final reply lands.
|
|
462
|
+
this.taskChannels.set(handle.taskId, { channel, meta });
|
|
463
|
+
if (channel.supportsStreaming) {
|
|
464
|
+
this.beginStreaming(handle.taskId, channel, meta);
|
|
465
|
+
}
|
|
466
|
+
void channel.sendTyping(meta).catch(() => { });
|
|
467
|
+
}
|
|
468
|
+
beginStreaming(taskId, channel, channelMeta) {
|
|
469
|
+
const state = {
|
|
470
|
+
channel,
|
|
471
|
+
channelMeta,
|
|
472
|
+
buffer: "",
|
|
473
|
+
firstMessageId: null,
|
|
474
|
+
failed: false,
|
|
475
|
+
stopped: false,
|
|
476
|
+
editor: null,
|
|
477
|
+
};
|
|
478
|
+
const throttleMs = STREAM_THROTTLE_MS[channel.id] ?? DEFAULT_STREAM_THROTTLE_MS;
|
|
479
|
+
const editor = createStreamingLoop({
|
|
480
|
+
throttleMs,
|
|
481
|
+
isStopped: () => state.stopped,
|
|
482
|
+
sendOrEdit: async (text) => {
|
|
483
|
+
if (text.length > channel.maxMessageLength) {
|
|
484
|
+
state.failed = true;
|
|
485
|
+
return false;
|
|
486
|
+
}
|
|
487
|
+
try {
|
|
488
|
+
const id = await channel.sendOrEditStream(channelMeta, text, state.firstMessageId);
|
|
489
|
+
if (id)
|
|
490
|
+
state.firstMessageId = id;
|
|
491
|
+
return true;
|
|
492
|
+
}
|
|
493
|
+
catch (err) {
|
|
494
|
+
log.error({ id: channel.id, err: err.message }, "stream edit failed");
|
|
495
|
+
state.failed = true;
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
});
|
|
500
|
+
state.editor = editor;
|
|
501
|
+
this.streams.set(taskId, state);
|
|
502
|
+
}
|
|
503
|
+
onTextDelta(taskId, delta) {
|
|
504
|
+
const s = this.streams.get(taskId);
|
|
505
|
+
if (!s || s.stopped || s.failed)
|
|
506
|
+
return;
|
|
507
|
+
s.buffer += delta;
|
|
508
|
+
s.editor.update(s.buffer);
|
|
509
|
+
}
|
|
510
|
+
onTextEnd(taskId, finalText) {
|
|
511
|
+
const s = this.streams.get(taskId);
|
|
512
|
+
if (!s || s.stopped)
|
|
513
|
+
return;
|
|
514
|
+
if (finalText.length >= s.buffer.length)
|
|
515
|
+
s.buffer = finalText;
|
|
516
|
+
s.editor.update(s.buffer);
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Called on task completion. If streaming delivered the full message
|
|
520
|
+
* in place, we're done. Otherwise send the final reply (chunking if it
|
|
521
|
+
* overflows the platform's size cap).
|
|
522
|
+
*/
|
|
523
|
+
async deliverFinal(taskId, channelId, meta, text, failed) {
|
|
524
|
+
const state = this.streams.get(taskId);
|
|
525
|
+
const channel = this.running.get(channelId) ?? state?.channel;
|
|
526
|
+
if (!channel)
|
|
527
|
+
return;
|
|
528
|
+
if (state) {
|
|
529
|
+
// Drain any pending streaming edits first so we don't fight the loop.
|
|
530
|
+
try {
|
|
531
|
+
await state.editor.flush();
|
|
532
|
+
}
|
|
533
|
+
catch { /* ignore */ }
|
|
534
|
+
state.stopped = true;
|
|
535
|
+
state.editor.stop();
|
|
536
|
+
}
|
|
537
|
+
const streamed = !!state && !state.failed && state.firstMessageId !== null && !failed;
|
|
538
|
+
if (streamed) {
|
|
539
|
+
this.streams.delete(taskId);
|
|
540
|
+
this.taskChannels.delete(taskId);
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
// Fallback: send as chunked message(s).
|
|
544
|
+
try {
|
|
545
|
+
const chunks = splitMessage(text, channel.maxMessageLength);
|
|
546
|
+
for (const chunk of chunks) {
|
|
547
|
+
await channel.sendReply(meta, chunk);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
catch (err) {
|
|
551
|
+
log.error({ id: channelId, err: err.message }, "channel final reply failed");
|
|
552
|
+
}
|
|
553
|
+
this.streams.delete(taskId);
|
|
554
|
+
this.taskChannels.delete(taskId);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
//# sourceMappingURL=ChannelManager.js.map
|