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 @@
|
|
|
1
|
+
{"version":3,"file":"GoalStore.js","sourceRoot":"","sources":["../../src/goals/GoalStore.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,YAA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OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HookRunner — event-driven interception at tool-call lifecycle points.
|
|
3
|
+
*
|
|
4
|
+
* Users register hooks in `{dataDir}/hooks.json` that fire on:
|
|
5
|
+
* - PreToolUse before a tool executes; can block or modify input
|
|
6
|
+
* - PostToolUse after a tool executes; observational (logging, alerts)
|
|
7
|
+
* - TaskStart when a turn begins (AgentLoop.run)
|
|
8
|
+
* - TaskEnd when a turn terminates (success or failure)
|
|
9
|
+
*
|
|
10
|
+
* Hook kinds:
|
|
11
|
+
* - "command" run a shell command with TOOL_NAME / TOOL_INPUT / TASK_ID /
|
|
12
|
+
* EVENT env vars; stdout is parsed as JSON for the decision.
|
|
13
|
+
* Only this kind is supported — inline JS eval is a security
|
|
14
|
+
* hole and crews provide the same flexibility safely.
|
|
15
|
+
*
|
|
16
|
+
* Hook output schema (stdout of the command):
|
|
17
|
+
* { "decision": "allow" | "block" | "ask",
|
|
18
|
+
* "reason": string,
|
|
19
|
+
* "modifiedInput": object }
|
|
20
|
+
*
|
|
21
|
+
* Non-JSON stdout → treated as allow (the command succeeded, no opinion).
|
|
22
|
+
* Non-zero exit → fail-open (allow). The logs surface the failure so the
|
|
23
|
+
* user can debug; we never let a broken hook wedge tool execution.
|
|
24
|
+
*/
|
|
25
|
+
import { z } from "zod";
|
|
26
|
+
export type HookEvent = "PreToolUse" | "PostToolUse" | "TaskStart" | "TaskEnd";
|
|
27
|
+
declare const hookSchema: z.ZodObject<{
|
|
28
|
+
kind: z.ZodLiteral<"command">;
|
|
29
|
+
/** `*` matches all tools; otherwise matched against the tool name. */
|
|
30
|
+
matcher: z.ZodOptional<z.ZodString>;
|
|
31
|
+
command: z.ZodString;
|
|
32
|
+
/** Milliseconds before we kill the hook. */
|
|
33
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
kind: "command";
|
|
36
|
+
command: string;
|
|
37
|
+
timeoutMs: number;
|
|
38
|
+
matcher?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
kind: "command";
|
|
41
|
+
command: string;
|
|
42
|
+
matcher?: string | undefined;
|
|
43
|
+
timeoutMs?: number | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export type HookDef = z.infer<typeof hookSchema>;
|
|
46
|
+
export interface HookContext {
|
|
47
|
+
readonly event: HookEvent;
|
|
48
|
+
readonly taskId: string;
|
|
49
|
+
readonly toolName?: string;
|
|
50
|
+
readonly toolInput?: unknown;
|
|
51
|
+
readonly toolOutput?: unknown;
|
|
52
|
+
}
|
|
53
|
+
export interface HookResult {
|
|
54
|
+
readonly decision: "allow" | "block" | "ask";
|
|
55
|
+
readonly reason?: string;
|
|
56
|
+
readonly modifiedInput?: Record<string, unknown>;
|
|
57
|
+
}
|
|
58
|
+
export declare class HookRunner {
|
|
59
|
+
private hooks;
|
|
60
|
+
private loaded;
|
|
61
|
+
private readonly filePath;
|
|
62
|
+
constructor(dataDir: string);
|
|
63
|
+
load(): void;
|
|
64
|
+
/** Watch the file for changes and hot-reload. Idempotent. */
|
|
65
|
+
watch(): void;
|
|
66
|
+
stats(): Record<HookEvent, number>;
|
|
67
|
+
/**
|
|
68
|
+
* Run every hook registered for `event` that matches the context's
|
|
69
|
+
* `toolName`. Returns the merged decision:
|
|
70
|
+
*
|
|
71
|
+
* - first `block` short-circuits — that's the returned result
|
|
72
|
+
* - first `ask` survives unless a later hook blocks
|
|
73
|
+
* - any `modifiedInput` on the first allowing hook propagates
|
|
74
|
+
* - otherwise the result is `allow`
|
|
75
|
+
*/
|
|
76
|
+
run(event: HookEvent, ctx: Omit<HookContext, "event">): Promise<HookResult>;
|
|
77
|
+
private executeHook;
|
|
78
|
+
}
|
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,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC;IAUlC;;;;;;;;OAQG;IACG,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAiCjF,OAAO,CAAC,WAAW;CA0CpB"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HookRunner — event-driven interception at tool-call lifecycle points.
|
|
3
|
+
*
|
|
4
|
+
* Users register hooks in `{dataDir}/hooks.json` that fire on:
|
|
5
|
+
* - PreToolUse before a tool executes; can block or modify input
|
|
6
|
+
* - PostToolUse after a tool executes; observational (logging, alerts)
|
|
7
|
+
* - TaskStart when a turn begins (AgentLoop.run)
|
|
8
|
+
* - TaskEnd when a turn terminates (success or failure)
|
|
9
|
+
*
|
|
10
|
+
* Hook kinds:
|
|
11
|
+
* - "command" run a shell command with TOOL_NAME / TOOL_INPUT / TASK_ID /
|
|
12
|
+
* EVENT env vars; stdout is parsed as JSON for the decision.
|
|
13
|
+
* Only this kind is supported — inline JS eval is a security
|
|
14
|
+
* hole and crews provide the same flexibility safely.
|
|
15
|
+
*
|
|
16
|
+
* Hook output schema (stdout of the command):
|
|
17
|
+
* { "decision": "allow" | "block" | "ask",
|
|
18
|
+
* "reason": string,
|
|
19
|
+
* "modifiedInput": object }
|
|
20
|
+
*
|
|
21
|
+
* Non-JSON stdout → treated as allow (the command succeeded, no opinion).
|
|
22
|
+
* Non-zero exit → fail-open (allow). The logs surface the failure so the
|
|
23
|
+
* user can debug; we never let a broken hook wedge tool execution.
|
|
24
|
+
*/
|
|
25
|
+
import { spawn } from "node:child_process";
|
|
26
|
+
import { existsSync, readFileSync, watch } from "node:fs";
|
|
27
|
+
import { join } from "node:path";
|
|
28
|
+
import { z } from "zod";
|
|
29
|
+
import { createLogger } from "../util/logger.js";
|
|
30
|
+
const log = createLogger("hooks");
|
|
31
|
+
const HOOK_EVENTS = ["PreToolUse", "PostToolUse", "TaskStart", "TaskEnd"];
|
|
32
|
+
const hookSchema = z.object({
|
|
33
|
+
kind: z.literal("command"),
|
|
34
|
+
/** `*` matches all tools; otherwise matched against the tool name. */
|
|
35
|
+
matcher: z.string().optional(),
|
|
36
|
+
command: z.string(),
|
|
37
|
+
/** Milliseconds before we kill the hook. */
|
|
38
|
+
timeoutMs: z.number().int().positive().max(30_000).default(5_000),
|
|
39
|
+
});
|
|
40
|
+
const hooksFileSchema = z.object({
|
|
41
|
+
PreToolUse: z.array(hookSchema).optional(),
|
|
42
|
+
PostToolUse: z.array(hookSchema).optional(),
|
|
43
|
+
TaskStart: z.array(hookSchema).optional(),
|
|
44
|
+
TaskEnd: z.array(hookSchema).optional(),
|
|
45
|
+
}).strict();
|
|
46
|
+
export class HookRunner {
|
|
47
|
+
hooks = {};
|
|
48
|
+
loaded = false;
|
|
49
|
+
filePath;
|
|
50
|
+
constructor(dataDir) {
|
|
51
|
+
this.filePath = join(dataDir, "hooks.json");
|
|
52
|
+
}
|
|
53
|
+
load() {
|
|
54
|
+
if (!existsSync(this.filePath)) {
|
|
55
|
+
this.hooks = {};
|
|
56
|
+
this.loaded = true;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
try {
|
|
60
|
+
const raw = readFileSync(this.filePath, "utf-8");
|
|
61
|
+
const parsed = hooksFileSchema.safeParse(JSON.parse(raw));
|
|
62
|
+
if (!parsed.success) {
|
|
63
|
+
log.warn({ errors: parsed.error.issues }, "hooks.json failed validation — hooks disabled");
|
|
64
|
+
this.hooks = {};
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
this.hooks = parsed.data;
|
|
68
|
+
const total = HOOK_EVENTS.reduce((n, ev) => n + (this.hooks[ev]?.length ?? 0), 0);
|
|
69
|
+
log.info({ file: this.filePath, count: total }, "hooks loaded");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
catch (e) {
|
|
73
|
+
log.error({ err: e.message }, "hooks.json parse failed — hooks disabled");
|
|
74
|
+
this.hooks = {};
|
|
75
|
+
}
|
|
76
|
+
this.loaded = true;
|
|
77
|
+
}
|
|
78
|
+
/** Watch the file for changes and hot-reload. Idempotent. */
|
|
79
|
+
watch() {
|
|
80
|
+
if (!existsSync(this.filePath))
|
|
81
|
+
return;
|
|
82
|
+
try {
|
|
83
|
+
const w = watch(this.filePath, { persistent: false }, () => {
|
|
84
|
+
log.info("hooks.json changed — reloading");
|
|
85
|
+
this.load();
|
|
86
|
+
});
|
|
87
|
+
w.unref();
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
// Some FSes don't support watch — silently degrade.
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
stats() {
|
|
94
|
+
if (!this.loaded)
|
|
95
|
+
this.load();
|
|
96
|
+
return {
|
|
97
|
+
PreToolUse: this.hooks.PreToolUse?.length ?? 0,
|
|
98
|
+
PostToolUse: this.hooks.PostToolUse?.length ?? 0,
|
|
99
|
+
TaskStart: this.hooks.TaskStart?.length ?? 0,
|
|
100
|
+
TaskEnd: this.hooks.TaskEnd?.length ?? 0,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Run every hook registered for `event` that matches the context's
|
|
105
|
+
* `toolName`. Returns the merged decision:
|
|
106
|
+
*
|
|
107
|
+
* - first `block` short-circuits — that's the returned result
|
|
108
|
+
* - first `ask` survives unless a later hook blocks
|
|
109
|
+
* - any `modifiedInput` on the first allowing hook propagates
|
|
110
|
+
* - otherwise the result is `allow`
|
|
111
|
+
*/
|
|
112
|
+
async run(event, ctx) {
|
|
113
|
+
if (!this.loaded)
|
|
114
|
+
this.load();
|
|
115
|
+
const list = this.hooks[event];
|
|
116
|
+
if (!list || list.length === 0)
|
|
117
|
+
return { decision: "allow" };
|
|
118
|
+
const matching = list.filter((h) => !h.matcher || h.matcher === "*" || h.matcher === ctx.toolName);
|
|
119
|
+
if (matching.length === 0)
|
|
120
|
+
return { decision: "allow" };
|
|
121
|
+
let askResult;
|
|
122
|
+
let modifiedInput;
|
|
123
|
+
for (const hook of matching) {
|
|
124
|
+
try {
|
|
125
|
+
const result = await this.executeHook(hook, { ...ctx, event });
|
|
126
|
+
if (result.decision === "block") {
|
|
127
|
+
log.warn({ event, tool: ctx.toolName, reason: result.reason }, "hook blocked tool");
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
if (result.decision === "ask" && !askResult)
|
|
131
|
+
askResult = result;
|
|
132
|
+
if (result.modifiedInput && !modifiedInput)
|
|
133
|
+
modifiedInput = result.modifiedInput;
|
|
134
|
+
}
|
|
135
|
+
catch (e) {
|
|
136
|
+
log.error({ event, tool: ctx.toolName, err: e.message }, "hook crashed — failing open");
|
|
137
|
+
// fall through — treat as allow
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (askResult)
|
|
141
|
+
return askResult;
|
|
142
|
+
if (modifiedInput)
|
|
143
|
+
return { decision: "allow", modifiedInput };
|
|
144
|
+
return { decision: "allow" };
|
|
145
|
+
}
|
|
146
|
+
// ── Internal ────────────────────────────────────────────────────────────
|
|
147
|
+
executeHook(hook, ctx) {
|
|
148
|
+
return new Promise((resolve) => {
|
|
149
|
+
const child = spawn(hook.command, {
|
|
150
|
+
shell: true,
|
|
151
|
+
env: {
|
|
152
|
+
...process.env,
|
|
153
|
+
TOOL_NAME: ctx.toolName ?? "",
|
|
154
|
+
TOOL_INPUT: safeJson(ctx.toolInput),
|
|
155
|
+
TOOL_OUTPUT: safeJson(ctx.toolOutput),
|
|
156
|
+
TASK_ID: ctx.taskId,
|
|
157
|
+
EVENT: ctx.event,
|
|
158
|
+
},
|
|
159
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
160
|
+
});
|
|
161
|
+
const stdout = [];
|
|
162
|
+
const stderr = [];
|
|
163
|
+
child.stdout.on("data", (d) => stdout.push(d.toString("utf-8")));
|
|
164
|
+
child.stderr.on("data", (d) => stderr.push(d.toString("utf-8")));
|
|
165
|
+
const timer = setTimeout(() => {
|
|
166
|
+
child.kill("SIGKILL");
|
|
167
|
+
log.warn({ command: hook.command, timeoutMs: hook.timeoutMs }, "hook timed out");
|
|
168
|
+
}, hook.timeoutMs).unref();
|
|
169
|
+
child.on("close", (code) => {
|
|
170
|
+
clearTimeout(timer);
|
|
171
|
+
if (code !== 0) {
|
|
172
|
+
log.warn({ command: hook.command, code, stderr: stderr.join("").slice(0, 200) }, "hook exit non-zero");
|
|
173
|
+
resolve({ decision: "allow" });
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
resolve(parseHookOutput(stdout.join("")));
|
|
177
|
+
});
|
|
178
|
+
child.on("error", (err) => {
|
|
179
|
+
clearTimeout(timer);
|
|
180
|
+
log.warn({ command: hook.command, err: err.message }, "hook spawn failed");
|
|
181
|
+
resolve({ decision: "allow" });
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function safeJson(v) {
|
|
187
|
+
if (v === undefined || v === null)
|
|
188
|
+
return "";
|
|
189
|
+
try {
|
|
190
|
+
return JSON.stringify(v);
|
|
191
|
+
}
|
|
192
|
+
catch {
|
|
193
|
+
return "";
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function parseHookOutput(raw) {
|
|
197
|
+
const text = raw.trim();
|
|
198
|
+
if (!text)
|
|
199
|
+
return { decision: "allow" };
|
|
200
|
+
try {
|
|
201
|
+
const parsed = JSON.parse(text);
|
|
202
|
+
const decision = parsed["decision"];
|
|
203
|
+
if (decision === "block" || decision === "ask" || decision === "allow") {
|
|
204
|
+
const result = { decision };
|
|
205
|
+
if (typeof parsed["reason"] === "string")
|
|
206
|
+
result.reason = parsed["reason"];
|
|
207
|
+
if (parsed["modifiedInput"] && typeof parsed["modifiedInput"] === "object") {
|
|
208
|
+
result.modifiedInput = parsed["modifiedInput"];
|
|
209
|
+
}
|
|
210
|
+
return result;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
catch {
|
|
214
|
+
// Non-JSON output = implicit allow with the text as reason.
|
|
215
|
+
}
|
|
216
|
+
return { decision: "allow" };
|
|
217
|
+
}
|
|
218
|
+
//# sourceMappingURL=HookRunner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HookRunner.js","sourceRoot":"","sources":["../../src/hooks/HookRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AAIlC,MAAM,WAAW,GAAyB,CAAC,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;AAEhG,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC1B,sEAAsE;IACtE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,4CAA4C;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CAClE,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IAC1C,WAAW,E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B,CAAC;YAC7H,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,4DAA4D;IAC9D,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IntegrationCrewSync — keeps integration-owned crews hidden from
|
|
3
|
+
* the CrewRegistry until the user connects the service.
|
|
4
|
+
*
|
|
5
|
+
* The crew manifests live on disk at `crew/twitter|youtube|facebook|
|
|
6
|
+
* instagram/plugin.json`. CrewLoader picks them up at startup; this
|
|
7
|
+
* class immediately stages them out of the active registry and only
|
|
8
|
+
* puts them back when the corresponding integration has ≥1 connected
|
|
9
|
+
* account. On disconnect of the last account, the crew goes back
|
|
10
|
+
* into the stage.
|
|
11
|
+
*
|
|
12
|
+
* Tools are registered separately in `integrations/tools.ts` (called
|
|
13
|
+
* before CrewLoader). This class owns only the crew show/hide logic.
|
|
14
|
+
*/
|
|
15
|
+
import type { AgentLoop } from "../core/AgentLoop.js";
|
|
16
|
+
import type { CrewRegistry } from "../crew/CrewRegistry.js";
|
|
17
|
+
import type { IntegrationManager } from "./IntegrationManager.js";
|
|
18
|
+
export declare class IntegrationCrewSync {
|
|
19
|
+
private readonly integrations;
|
|
20
|
+
private readonly crews;
|
|
21
|
+
private readonly agent;
|
|
22
|
+
/** Filesystem-loaded crews held out of CrewRegistry until connected. */
|
|
23
|
+
private readonly staged;
|
|
24
|
+
constructor(integrations: IntegrationManager, crews: CrewRegistry, agent: AgentLoop);
|
|
25
|
+
/** Move each integration crew out of CrewRegistry into the stage. */
|
|
26
|
+
private stageIntegrationCrews;
|
|
27
|
+
/** Register crews for integrations already connected (tokens persist). */
|
|
28
|
+
private restoreAlreadyConnected;
|
|
29
|
+
private subscribeToLifecycle;
|
|
30
|
+
private reveal;
|
|
31
|
+
private hide;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=IntegrationCrewSync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationCrewSync.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationCrewSync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAoBlE,qBAAa,mBAAmB;IAK5B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,KAAK;IANxB,wEAAwE;IACxE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwC;gBAG5C,YAAY,EAAE,kBAAkB,EAChC,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,SAAS;IAOnC,qEAAqE;IACrE,OAAO,CAAC,qBAAqB;IAU7B,0EAA0E;IAC1E,OAAO,CAAC,uBAAuB;IAM/B,OAAO,CAAC,oBAAoB;IAgB5B,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,IAAI;CAMb"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IntegrationCrewSync — keeps integration-owned crews hidden from
|
|
3
|
+
* the CrewRegistry until the user connects the service.
|
|
4
|
+
*
|
|
5
|
+
* The crew manifests live on disk at `crew/twitter|youtube|facebook|
|
|
6
|
+
* instagram/plugin.json`. CrewLoader picks them up at startup; this
|
|
7
|
+
* class immediately stages them out of the active registry and only
|
|
8
|
+
* puts them back when the corresponding integration has ≥1 connected
|
|
9
|
+
* account. On disconnect of the last account, the crew goes back
|
|
10
|
+
* into the stage.
|
|
11
|
+
*
|
|
12
|
+
* Tools are registered separately in `integrations/tools.ts` (called
|
|
13
|
+
* before CrewLoader). This class owns only the crew show/hide logic.
|
|
14
|
+
*/
|
|
15
|
+
import { createLogger } from "../util/logger.js";
|
|
16
|
+
const log = createLogger("integrations.crew");
|
|
17
|
+
/** Which CrewRegistry id belongs to which integration. */
|
|
18
|
+
const INTEGRATION_TO_CREW = {
|
|
19
|
+
twitter: "twitter-crew",
|
|
20
|
+
youtube: "youtube-crew",
|
|
21
|
+
facebook: "facebook-crew",
|
|
22
|
+
instagram: "instagram-crew",
|
|
23
|
+
github: "github-crew",
|
|
24
|
+
notion: "notion-crew",
|
|
25
|
+
gmail: "gmail-crew",
|
|
26
|
+
google_calendar: "google-calendar-crew",
|
|
27
|
+
reddit: "reddit-crew",
|
|
28
|
+
linkedin: "linkedin-crew",
|
|
29
|
+
tiktok: "tiktok-crew",
|
|
30
|
+
};
|
|
31
|
+
export class IntegrationCrewSync {
|
|
32
|
+
integrations;
|
|
33
|
+
crews;
|
|
34
|
+
agent;
|
|
35
|
+
/** Filesystem-loaded crews held out of CrewRegistry until connected. */
|
|
36
|
+
staged = new Map();
|
|
37
|
+
constructor(integrations, crews, agent) {
|
|
38
|
+
this.integrations = integrations;
|
|
39
|
+
this.crews = crews;
|
|
40
|
+
this.agent = agent;
|
|
41
|
+
this.stageIntegrationCrews();
|
|
42
|
+
this.restoreAlreadyConnected();
|
|
43
|
+
this.subscribeToLifecycle();
|
|
44
|
+
}
|
|
45
|
+
/** Move each integration crew out of CrewRegistry into the stage. */
|
|
46
|
+
stageIntegrationCrews() {
|
|
47
|
+
for (const [integration, crewId] of Object.entries(INTEGRATION_TO_CREW)) {
|
|
48
|
+
const crew = this.crews.tryGet(crewId);
|
|
49
|
+
if (!crew)
|
|
50
|
+
continue;
|
|
51
|
+
this.staged.set(integration, crew);
|
|
52
|
+
this.crews.unregister(crewId);
|
|
53
|
+
log.debug({ integration, crewId }, "integration crew staged (hidden until connected)");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/** Register crews for integrations already connected (tokens persist). */
|
|
57
|
+
restoreAlreadyConnected() {
|
|
58
|
+
for (const account of this.integrations.listAccounts()) {
|
|
59
|
+
this.reveal(account.integration);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
subscribeToLifecycle() {
|
|
63
|
+
this.integrations.on("connected", ({ integration }) => {
|
|
64
|
+
this.reveal(integration);
|
|
65
|
+
this.agent.invalidateSystemPromptCache();
|
|
66
|
+
});
|
|
67
|
+
this.integrations.on("disconnected", ({ integration }) => {
|
|
68
|
+
// Keep the crew visible if any accounts for this integration
|
|
69
|
+
// remain (a user can have multiple IG accounts under one Meta
|
|
70
|
+
// connection).
|
|
71
|
+
const stillHas = this.integrations.listAccounts(integration).length > 0;
|
|
72
|
+
if (stillHas)
|
|
73
|
+
return;
|
|
74
|
+
this.hide(integration);
|
|
75
|
+
this.agent.invalidateSystemPromptCache();
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
reveal(integration) {
|
|
79
|
+
const crew = this.staged.get(integration);
|
|
80
|
+
if (!crew)
|
|
81
|
+
return;
|
|
82
|
+
if (this.crews.has(crew.manifest.id))
|
|
83
|
+
return; // already visible
|
|
84
|
+
this.crews.register(crew);
|
|
85
|
+
log.info({ crew: crew.manifest.id }, "integration crew revealed");
|
|
86
|
+
}
|
|
87
|
+
hide(integration) {
|
|
88
|
+
const crewId = INTEGRATION_TO_CREW[integration];
|
|
89
|
+
if (!crewId)
|
|
90
|
+
return;
|
|
91
|
+
const removed = this.crews.unregister(crewId);
|
|
92
|
+
if (removed)
|
|
93
|
+
log.info({ crewId }, "integration crew hidden (disconnected)");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=IntegrationCrewSync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationCrewSync.js","sourceRoot":"","sources":["../../src/integrations/IntegrationCrewSync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAm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,QAAQ,CAAC,EAAE,EAAE,EAAE,2BAA2B,CAAC,CAAC;IACpE,CAAC;IAEO,IAAI,CAAC,WAA0B;QACrC,MAAM,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAChD,IAAI,CAAC,MAAM;YAAE,OAAO;QACpB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,OAAO;YAAE,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,wCAAwC,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IntegrationManager — orchestrates OAuth flows for all integrations.
|
|
3
|
+
*
|
|
4
|
+
* Surfaces:
|
|
5
|
+
* startAuth(integration, redirectUri) → { url, state }
|
|
6
|
+
* completeAuth(state, code) → { integration, accountLabel }
|
|
7
|
+
* getAccessToken(integration, accountId?) → string (auto-refreshes)
|
|
8
|
+
* disconnect(integration, accountId)
|
|
9
|
+
* listAccounts(integration?)
|
|
10
|
+
* availability() → which integrations have working creds
|
|
11
|
+
*
|
|
12
|
+
* Pending auth state (the code-verifier + integration id we expect back
|
|
13
|
+
* at callback) lives in an in-memory map keyed by `state`. Entries
|
|
14
|
+
* expire after 10 minutes.
|
|
15
|
+
*/
|
|
16
|
+
import { EventEmitter } from "node:events";
|
|
17
|
+
import type { ConfigManager } from "../config/ConfigManager.js";
|
|
18
|
+
import type { IntegrationStore } from "./IntegrationStore.js";
|
|
19
|
+
import type { IntegrationAccount, IntegrationId, ProviderId } from "./types.js";
|
|
20
|
+
/**
|
|
21
|
+
* Events:
|
|
22
|
+
* "connected" { integration, account } — fires when a new auth completes.
|
|
23
|
+
* "disconnected" { integration, accountId } — fires on disconnect.
|
|
24
|
+
* Listeners register / unregister the corresponding crew + watcher types.
|
|
25
|
+
*/
|
|
26
|
+
export declare class IntegrationManager extends EventEmitter {
|
|
27
|
+
private readonly cfg;
|
|
28
|
+
private readonly store;
|
|
29
|
+
private readonly pending;
|
|
30
|
+
/**
|
|
31
|
+
* In-flight refresh deduplication. Keyed by "integration:accountId".
|
|
32
|
+
* When two concurrent getAccessToken calls both need a refresh, the
|
|
33
|
+
* second awaits the first's promise instead of firing a duplicate
|
|
34
|
+
* exchange against the provider (Google issues at most one fresh
|
|
35
|
+
* refresh_token per consent — racing breaks that).
|
|
36
|
+
*/
|
|
37
|
+
private readonly refreshInflight;
|
|
38
|
+
/**
|
|
39
|
+
* Track integrations we've logged a "refresh failed — reconnect
|
|
40
|
+
* needed" for, so we don't spam logs every call while the user
|
|
41
|
+
* hasn't reconnected yet. Cleared when a refresh succeeds.
|
|
42
|
+
*/
|
|
43
|
+
private readonly refreshFailures;
|
|
44
|
+
/** Last time we logged the "vault locked, skipping" warning, in ms epoch. */
|
|
45
|
+
private lastLockedWarnAt;
|
|
46
|
+
/**
|
|
47
|
+
* One-shot per-account timers for tokens whose lifetime is shorter
|
|
48
|
+
* than the 30-min sweep cadence. Without these, a fresh token with
|
|
49
|
+
* a 10-min TTL would expire 20 min before the next sweep notices.
|
|
50
|
+
* Keyed by "integration:accountId"; replaced on every refresh.
|
|
51
|
+
*/
|
|
52
|
+
private readonly earlyRefreshTimers;
|
|
53
|
+
constructor(cfg: ConfigManager, store: IntegrationStore);
|
|
54
|
+
/** Resolve the OAuth provider an integration rides (e.g. youtube/gmail → google). */
|
|
55
|
+
providerFor(integration: IntegrationId): ProviderId;
|
|
56
|
+
/** Default OAuth scopes Daemora requests for this integration. Used by the UI credentials modal. */
|
|
57
|
+
defaultScopesFor(integration: IntegrationId): readonly string[];
|
|
58
|
+
/** Tell the UI which integrations actually have working client creds. */
|
|
59
|
+
availability(): Record<IntegrationId, {
|
|
60
|
+
available: boolean;
|
|
61
|
+
reason?: string;
|
|
62
|
+
}>;
|
|
63
|
+
/** Begin an OAuth flow; returns a URL to redirect the user to. */
|
|
64
|
+
startAuth(integration: IntegrationId, redirectUri: string): {
|
|
65
|
+
url: string;
|
|
66
|
+
state: string;
|
|
67
|
+
};
|
|
68
|
+
/** Complete an OAuth flow. Called from the callback route. */
|
|
69
|
+
completeAuth(state: string, code: string): Promise<{
|
|
70
|
+
integration: IntegrationId;
|
|
71
|
+
accountLabel: string;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Return a valid access token for an integration, refreshing on-
|
|
75
|
+
* demand if the stored one is near expiry. Returns null when the
|
|
76
|
+
* user has never connected that integration.
|
|
77
|
+
*
|
|
78
|
+
* `force=true` ignores the expiry check and forces a refresh — used
|
|
79
|
+
* by the retry-on-401 path in integration clients when the provider
|
|
80
|
+
* rejects a token we thought was still valid (revoked, scopes
|
|
81
|
+
* changed, etc).
|
|
82
|
+
*/
|
|
83
|
+
getAccessToken(integration: IntegrationId, accountId?: string, force?: boolean): Promise<string | null>;
|
|
84
|
+
/**
|
|
85
|
+
* Force a refresh for a specific account, bypassing the expiry
|
|
86
|
+
* check. Used by integration clients on a 401 — the stored token
|
|
87
|
+
* may have been revoked or invalidated independent of its expiry.
|
|
88
|
+
* Returns the fresh access token or null if refresh failed.
|
|
89
|
+
*/
|
|
90
|
+
forceRefresh(integration: IntegrationId, accountId?: string): Promise<string | null>;
|
|
91
|
+
private doRefresh;
|
|
92
|
+
/**
|
|
93
|
+
* Background pass over every connected account, refreshing any
|
|
94
|
+
* whose token expires in less than BG_PRE_EXPIRY_SECONDS. Called
|
|
95
|
+
* every BG_TICK_MS from the constructor. Errors are swallowed —
|
|
96
|
+
* the interactive path will retry.
|
|
97
|
+
*/
|
|
98
|
+
private backgroundRefresh;
|
|
99
|
+
/**
|
|
100
|
+
* Schedule a one-shot refresh that fires shortly before a specific
|
|
101
|
+
* account's token expires. Cancels any prior timer for the same
|
|
102
|
+
* account first. Skips when expiry is far enough out that the
|
|
103
|
+
* BG_TICK_MS sweep will catch it; or when there's no expiry data.
|
|
104
|
+
*/
|
|
105
|
+
private scheduleEarlyRefresh;
|
|
106
|
+
disconnect(integration: IntegrationId, accountId: string): void;
|
|
107
|
+
/**
|
|
108
|
+
* Set of integration ids that currently have at least one connected
|
|
109
|
+
* account. Used by ToolRegistry.available() to gate integration-
|
|
110
|
+
* sourced tools out of the model's view until the user connects.
|
|
111
|
+
*/
|
|
112
|
+
getEnabled(): Set<string>;
|
|
113
|
+
listAccounts(integration?: IntegrationId): readonly IntegrationAccount[];
|
|
114
|
+
private sweepPending;
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=IntegrationManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationManager.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAYhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAiB,UAAU,EAAY,MAAM,YAAY,CAAC;AA4LzG;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,YAAY;IA2BhD,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK;IA3BxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkC;IAC1D;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6C;IAC7E;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6B;IAC7D,6EAA6E;IAC7E,OAAO,CAAC,gBAAgB,CAAK;IAC7B;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqC;gBAGrD,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,gBAAgB;IAoB1C,qFAAqF;IACrF,WAAW,CAAC,W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