@muskanmeet/invoicing-design-system 0.1.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/.cache/replit/env/latest +78 -0
- package/.cache/replit/env/latest.json +1 -0
- package/.cache/replit/modules/nodejs-20.res +1 -0
- package/.cache/replit/modules/python-3.11.res +1 -0
- package/.cache/replit/modules/replit-rtld-loader.res +1 -0
- package/.cache/replit/modules/replit.res +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/dotreplitenv.json +1 -0
- package/.cache/replit/toolchain.json +1 -0
- package/.cache/typescript/5.9/package-lock.json +50 -0
- package/.cache/typescript/5.9/package.json +1 -0
- package/.config/nextjs-nodejs/config.json +7 -0
- package/.eslintrc.json +3 -0
- package/.local/.commit_message +31 -0
- package/.local/secondary_skills/LICENSE.txt +21 -0
- package/.local/secondary_skills/ad-creative/.fingerprint +1 -0
- package/.local/secondary_skills/ad-creative/SKILL.md +872 -0
- package/.local/secondary_skills/ai-recruiter/.fingerprint +1 -0
- package/.local/secondary_skills/ai-recruiter/SKILL.md +1087 -0
- package/.local/secondary_skills/ai-sdr/.fingerprint +1 -0
- package/.local/secondary_skills/ai-sdr/SKILL.md +204 -0
- package/.local/secondary_skills/ai-secretary/.fingerprint +1 -0
- package/.local/secondary_skills/ai-secretary/SKILL.md +1132 -0
- package/.local/secondary_skills/branding-generator/.fingerprint +1 -0
- package/.local/secondary_skills/branding-generator/SKILL.md +286 -0
- package/.local/secondary_skills/competitive-analysis/.fingerprint +1 -0
- package/.local/secondary_skills/competitive-analysis/SKILL.md +429 -0
- package/.local/secondary_skills/content-machine/.fingerprint +1 -0
- package/.local/secondary_skills/content-machine/SKILL.md +321 -0
- package/.local/secondary_skills/deep-research/.fingerprint +1 -0
- package/.local/secondary_skills/deep-research/SKILL.md +517 -0
- package/.local/secondary_skills/design-thinker/.fingerprint +1 -0
- package/.local/secondary_skills/design-thinker/SKILL.md +327 -0
- package/.local/secondary_skills/excel-generator/.fingerprint +1 -0
- package/.local/secondary_skills/excel-generator/SKILL.md +954 -0
- package/.local/secondary_skills/excel-generator/financial-models.md +289 -0
- package/.local/secondary_skills/file-converter/.fingerprint +1 -0
- package/.local/secondary_skills/file-converter/SKILL.md +823 -0
- package/.local/secondary_skills/flashcard-generator/.fingerprint +1 -0
- package/.local/secondary_skills/flashcard-generator/SKILL.md +233 -0
- package/.local/secondary_skills/geo/.fingerprint +1 -0
- package/.local/secondary_skills/geo/SKILL.md +378 -0
- package/.local/secondary_skills/geo/references/content-patterns.md +158 -0
- package/.local/secondary_skills/geo/references/platform-notes.md +128 -0
- package/.local/secondary_skills/geo/references/scorecard.md +113 -0
- package/.local/secondary_skills/geo/references/technical-checklist.md +257 -0
- package/.local/secondary_skills/github-solution-finder/.fingerprint +1 -0
- package/.local/secondary_skills/github-solution-finder/SKILL.md +174 -0
- package/.local/secondary_skills/infographic-builder/.fingerprint +1 -0
- package/.local/secondary_skills/infographic-builder/SKILL.md +317 -0
- package/.local/secondary_skills/infographic-builder/antv-syntax.md +470 -0
- package/.local/secondary_skills/infographic-builder/react-fallback.md +210 -0
- package/.local/secondary_skills/insurance-optimizer/.fingerprint +1 -0
- package/.local/secondary_skills/insurance-optimizer/SKILL.md +209 -0
- package/.local/secondary_skills/interview-prep/.fingerprint +1 -0
- package/.local/secondary_skills/interview-prep/SKILL.md +349 -0
- package/.local/secondary_skills/invoice-generator/.fingerprint +1 -0
- package/.local/secondary_skills/invoice-generator/SKILL.md +527 -0
- package/.local/secondary_skills/legal-contract/.fingerprint +1 -0
- package/.local/secondary_skills/legal-contract/SKILL.md +977 -0
- package/.local/secondary_skills/meal-planner/.fingerprint +1 -0
- package/.local/secondary_skills/meal-planner/SKILL.md +517 -0
- package/.local/secondary_skills/personal-shopper/.fingerprint +1 -0
- package/.local/secondary_skills/personal-shopper/SKILL.md +361 -0
- package/.local/secondary_skills/photo-editor/.fingerprint +1 -0
- package/.local/secondary_skills/photo-editor/SKILL.md +605 -0
- package/.local/secondary_skills/podcast-generator/.fingerprint +1 -0
- package/.local/secondary_skills/podcast-generator/SKILL.md +560 -0
- package/.local/secondary_skills/podcast-marketing/.fingerprint +1 -0
- package/.local/secondary_skills/podcast-marketing/SKILL.md +550 -0
- package/.local/secondary_skills/podcast-marketing/audio-processing.md +530 -0
- package/.local/secondary_skills/podcast-marketing/content-atoms.md +253 -0
- package/.local/secondary_skills/podcast-marketing/content-calendar.md +318 -0
- package/.local/secondary_skills/podcast-marketing/content-templates.md +325 -0
- package/.local/secondary_skills/podcast-marketing/quote-cards.md +238 -0
- package/.local/secondary_skills/podcast-marketing/rss-and-batch.md +359 -0
- package/.local/secondary_skills/podcast-marketing/video-clips.md +660 -0
- package/.local/secondary_skills/podcast-marketing/youtube-processing.md +328 -0
- package/.local/secondary_skills/product-manager/.fingerprint +1 -0
- package/.local/secondary_skills/product-manager/SKILL.md +272 -0
- package/.local/secondary_skills/programmatic-seo/.fingerprint +1 -0
- package/.local/secondary_skills/programmatic-seo/SKILL.md +1207 -0
- package/.local/secondary_skills/real-estate-analyzer/.fingerprint +1 -0
- package/.local/secondary_skills/real-estate-analyzer/SKILL.md +786 -0
- package/.local/secondary_skills/recipe-creator/.fingerprint +1 -0
- package/.local/secondary_skills/recipe-creator/SKILL.md +259 -0
- package/.local/secondary_skills/recreate-screenshot/.fingerprint +1 -0
- package/.local/secondary_skills/recreate-screenshot/SKILL.md +215 -0
- package/.local/secondary_skills/replit-migration-guardrails/.fingerprint +1 -0
- package/.local/secondary_skills/replit-migration-guardrails/SKILL.md +55 -0
- package/.local/secondary_skills/replit-migration-guardrails/references/base44.md +47 -0
- package/.local/secondary_skills/replit-migration-guardrails/references/vercel.md +78 -0
- package/.local/secondary_skills/resume-maker/.fingerprint +1 -0
- package/.local/secondary_skills/resume-maker/SKILL.md +790 -0
- package/.local/secondary_skills/seo-auditor/.fingerprint +1 -0
- package/.local/secondary_skills/seo-auditor/SKILL.md +448 -0
- package/.local/secondary_skills/skill-creator/.fingerprint +1 -0
- package/.local/secondary_skills/skill-creator/SKILL.md +214 -0
- package/.local/secondary_skills/skill-finder/.fingerprint +1 -0
- package/.local/secondary_skills/skill-finder/SKILL.md +299 -0
- package/.local/secondary_skills/stock-analyzer/.fingerprint +1 -0
- package/.local/secondary_skills/stock-analyzer/SKILL.md +798 -0
- package/.local/secondary_skills/storyboard/.fingerprint +1 -0
- package/.local/secondary_skills/storyboard/SKILL.md +558 -0
- package/.local/secondary_skills/supplier-research/.fingerprint +1 -0
- package/.local/secondary_skills/supplier-research/SKILL.md +213 -0
- package/.local/secondary_skills/tax-reviewer/.fingerprint +1 -0
- package/.local/secondary_skills/tax-reviewer/SKILL.md +131 -0
- package/.local/secondary_skills/travel-assistant/.fingerprint +1 -0
- package/.local/secondary_skills/travel-assistant/SKILL.md +667 -0
- package/.local/secondary_skills/video-editing/.fingerprint +1 -0
- package/.local/secondary_skills/video-editing/SKILL.md +705 -0
- package/.local/secondary_skills/video-editing/dead-space-and-chunking.md +1081 -0
- package/.local/secondary_skills/video-editing/operations.md +1719 -0
- package/.local/secondary_skills/video-editing/virality-scoring.md +1212 -0
- package/.local/secondary_skills/video-editing/voiceover.md +788 -0
- package/.local/secondary_skills/website-cloning/.fingerprint +1 -0
- package/.local/secondary_skills/website-cloning/SKILL.md +544 -0
- package/.local/secondary_skills/website-cloning/extraction.md +1207 -0
- package/.local/secondary_skills/website-cloning/pitfalls.md +297 -0
- package/.local/skills/LICENSE.txt +21 -0
- package/.local/skills/agent-inbox/.fingerprint +1 -0
- package/.local/skills/agent-inbox/SKILL.md +128 -0
- package/.local/skills/artifacts/.fingerprint +1 -0
- package/.local/skills/artifacts/SKILL.md +21 -0
- package/.local/skills/artifacts/artifacts/automation/artifact.yaml +40 -0
- package/.local/skills/artifacts/artifacts/automation/files/package.json.template +47 -0
- package/.local/skills/artifacts/artifacts/automation/files/scripts/build.sh +6 -0
- package/.local/skills/artifacts/artifacts/automation/files/scripts/inngest.sh +18 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/global.d.ts +1 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/agents/agent.ts +89 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/index.ts +212 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/inngest/client.ts +17 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/inngest/index.ts +214 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/storage/index.ts +8 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/tools/exampleTool.ts +71 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/workflows/workflow.ts +203 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/triggers/cronTriggers.ts +61 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/triggers/exampleConnectorTrigger.ts +153 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/triggers/slackTriggers.ts +638 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/triggers/telegramTriggers.ts +94 -0
- package/.local/skills/artifacts/artifacts/automation/files/tests/testCronAutomation.ts +86 -0
- package/.local/skills/artifacts/artifacts/automation/files/tests/testWebhookAutomation.ts +118 -0
- package/.local/skills/artifacts/artifacts/automation/files/tsconfig.json +26 -0
- package/.local/skills/artifacts/artifacts/data-visualization/artifact.yaml +48 -0
- package/.local/skills/artifacts/artifacts/expo/OWNERS +2 -0
- package/.local/skills/artifacts/artifacts/expo/artifact.yaml +47 -0
- package/.local/skills/artifacts/artifacts/expo/files/app/(tabs)/_layout.tsx +86 -0
- package/.local/skills/artifacts/artifacts/expo/files/app/(tabs)/index.tsx +28 -0
- package/.local/skills/artifacts/artifacts/expo/files/app/+not-found.tsx +45 -0
- package/.local/skills/artifacts/artifacts/expo/files/app/_layout.tsx +60 -0
- package/.local/skills/artifacts/artifacts/expo/files/app.json.template +38 -0
- package/.local/skills/artifacts/artifacts/expo/files/assets/images/icon.png +0 -0
- package/.local/skills/artifacts/artifacts/expo/files/babel.config.js +6 -0
- package/.local/skills/artifacts/artifacts/expo/files/components/ErrorBoundary.tsx +54 -0
- package/.local/skills/artifacts/artifacts/expo/files/components/ErrorFallback.tsx +278 -0
- package/.local/skills/artifacts/artifacts/expo/files/components/KeyboardAwareScrollViewCompat.tsx +29 -0
- package/.local/skills/artifacts/artifacts/expo/files/constants/colors.ts +59 -0
- package/.local/skills/artifacts/artifacts/expo/files/hooks/useColors.ts +24 -0
- package/.local/skills/artifacts/artifacts/expo/files/metro.config.js +3 -0
- package/.local/skills/artifacts/artifacts/expo/files/package.json.template +58 -0
- package/.local/skills/artifacts/artifacts/expo/files/scripts/build.js +573 -0
- package/.local/skills/artifacts/artifacts/expo/files/server/serve.js +135 -0
- package/.local/skills/artifacts/artifacts/expo/files/server/templates/landing-page.html +460 -0
- package/.local/skills/artifacts/artifacts/expo/files/tsconfig.json +23 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/artifact.yaml +15 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/components.json +21 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/index.html +31 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/mockupPreviewPlugin.ts +199 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/package.json.template +75 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/public/favicon.svg +3 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/.generated/mockup-components.ts +3 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/App.tsx +146 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/accordion.tsx +55 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/alert-dialog.tsx +139 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/alert.tsx +59 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/aspect-ratio.tsx +5 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/avatar.tsx +50 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/badge.tsx +43 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/breadcrumb.tsx +115 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/button-group.tsx +83 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/button.tsx +65 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/calendar.tsx +213 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/card.tsx +76 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/carousel.tsx +260 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/chart.tsx +367 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/checkbox.tsx +28 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/collapsible.tsx +11 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/command.tsx +153 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/context-menu.tsx +198 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/dialog.tsx +120 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/drawer.tsx +116 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/dropdown-menu.tsx +201 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/empty.tsx +104 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/field.tsx +244 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/form.tsx +176 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/hover-card.tsx +27 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/input-group.tsx +168 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/input-otp.tsx +69 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/input.tsx +22 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/item.tsx +193 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/kbd.tsx +28 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/label.tsx +26 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/menubar.tsx +254 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/navigation-menu.tsx +128 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/pagination.tsx +117 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/popover.tsx +31 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/progress.tsx +28 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/radio-group.tsx +42 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/resizable.tsx +45 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/scroll-area.tsx +46 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/select.tsx +159 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/separator.tsx +29 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/sheet.tsx +140 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/sidebar.tsx +727 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/skeleton.tsx +15 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/slider.tsx +26 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/sonner.tsx +31 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/spinner.tsx +16 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/switch.tsx +27 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/table.tsx +120 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/tabs.tsx +53 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/textarea.tsx +22 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/toast.tsx +127 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/toaster.tsx +33 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/toggle-group.tsx +61 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/toggle.tsx +43 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/tooltip.tsx +32 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/hooks/use-mobile.tsx +19 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/hooks/use-toast.ts +189 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/index.css +158 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/lib/utils.ts +6 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/main.tsx +5 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/tsconfig.json +20 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/vite.config.ts +72 -0
- package/.local/skills/artifacts/artifacts/react-vite/artifact.yaml +41 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/components.json +20 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/index.html.template +24 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/package.json.template +77 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/public/favicon.svg +3 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/public/robots.txt +2 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/App.tsx +42 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/accordion.tsx +55 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/alert-dialog.tsx +139 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/alert.tsx +59 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/aspect-ratio.tsx +5 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/avatar.tsx +50 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/badge.tsx +43 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/breadcrumb.tsx +115 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/button-group.tsx +83 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/button.tsx +65 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/calendar.tsx +213 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/card.tsx +76 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/carousel.tsx +260 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/chart.tsx +367 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/checkbox.tsx +28 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/collapsible.tsx +11 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/command.tsx +153 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/context-menu.tsx +198 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/dialog.tsx +120 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/drawer.tsx +116 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/dropdown-menu.tsx +201 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/empty.tsx +104 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/field.tsx +244 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/form.tsx +176 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/hover-card.tsx +27 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/input-group.tsx +168 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/input-otp.tsx +69 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/input.tsx +22 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/item.tsx +193 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/kbd.tsx +28 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/label.tsx +26 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/menubar.tsx +254 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/navigation-menu.tsx +128 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/pagination.tsx +117 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/popover.tsx +31 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/progress.tsx +28 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/radio-group.tsx +42 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/resizable.tsx +45 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/scroll-area.tsx +46 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/select.tsx +159 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/separator.tsx +29 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/sheet.tsx +140 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/sidebar.tsx +727 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/skeleton.tsx +15 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/slider.tsx +26 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/sonner.tsx +31 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/spinner.tsx +16 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/switch.tsx +27 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/table.tsx +120 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/tabs.tsx +53 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/textarea.tsx +22 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/toast.tsx +127 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/toaster.tsx +33 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/toggle-group.tsx +61 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/toggle.tsx +43 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/tooltip.tsx +32 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/hooks/use-mobile.tsx +19 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/hooks/use-toast.ts +191 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/index.css +393 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/lib/utils.ts +6 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/main.tsx +5 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/pages/not-found.tsx +21 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/tsconfig.json +22 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/vite.config.ts +75 -0
- package/.local/skills/artifacts/artifacts/slides/artifact.yaml +33 -0
- package/.local/skills/artifacts/artifacts/slides/files/index.html.template +46 -0
- package/.local/skills/artifacts/artifacts/slides/files/package.json.template +30 -0
- package/.local/skills/artifacts/artifacts/slides/files/public/favicon.svg +3 -0
- package/.local/skills/artifacts/artifacts/slides/files/scripts/validate-slides.ts +193 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/App.tsx +251 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/data/slides-manifest.json +1 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/data/slidesManifestSchema.ts +33 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/index.css +48 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/main.tsx +14 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/slideLoader.ts +51 -0
- package/.local/skills/artifacts/artifacts/slides/files/tsconfig.json +17 -0
- package/.local/skills/artifacts/artifacts/slides/files/vite.config.ts +74 -0
- package/.local/skills/artifacts/artifacts/video-js/artifact.yaml +38 -0
- package/.local/skills/artifacts/artifacts/video-js/files/index.html.template +27 -0
- package/.local/skills/artifacts/artifacts/video-js/files/package.json.template +36 -0
- package/.local/skills/artifacts/artifacts/video-js/files/public/favicon.svg +3 -0
- package/.local/skills/artifacts/artifacts/video-js/files/scripts/validate-recording.sh +38 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/App.tsx +5 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/components/video/ReplitLoadingScene.tsx +105 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/components/video/VideoTemplate.tsx +30 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/components/video/index.ts +1 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/hooks/use-mobile.tsx +19 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/index.css +50 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/lib/utils.ts +6 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/lib/video/animations.ts +239 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/lib/video/hooks.ts +104 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/lib/video/index.ts +19 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/main.tsx +5 -0
- package/.local/skills/artifacts/artifacts/video-js/files/tsconfig.json +16 -0
- package/.local/skills/artifacts/artifacts/video-js/files/vite.config.ts +79 -0
- package/.local/skills/artifacts/bootstrap-legacy.js +115 -0
- package/.local/skills/artifacts/bootstrap.js +118 -0
- package/.local/skills/artifacts/references/multi-artifact-creation.md +94 -0
- package/.local/skills/canvas/.fingerprint +1 -0
- package/.local/skills/canvas/SKILL.md +534 -0
- package/.local/skills/canvas/__init__.py +1 -0
- package/.local/skills/code_review/.fingerprint +1 -0
- package/.local/skills/code_review/SKILL.md +82 -0
- package/.local/skills/database/.fingerprint +1 -0
- package/.local/skills/database/SKILL.md +351 -0
- package/.local/skills/database/references/database-migrations-on-publish.md +57 -0
- package/.local/skills/delegation/.fingerprint +1 -0
- package/.local/skills/delegation/SKILL.md +200 -0
- package/.local/skills/deployment/.fingerprint +1 -0
- package/.local/skills/deployment/SKILL.md +261 -0
- package/.local/skills/deployment/references/deployment-failure-debugging.md +243 -0
- package/.local/skills/deployment/references/deployment-logs.md +147 -0
- package/.local/skills/design/.fingerprint +1 -0
- package/.local/skills/design/SKILL.md +235 -0
- package/.local/skills/design-exploration/.fingerprint +1 -0
- package/.local/skills/design-exploration/SKILL.md +95 -0
- package/.local/skills/diagnostics/.fingerprint +1 -0
- package/.local/skills/diagnostics/SKILL.md +122 -0
- package/.local/skills/environment-secrets/.fingerprint +1 -0
- package/.local/skills/environment-secrets/SKILL.md +201 -0
- package/.local/skills/expo/.fingerprint +1 -0
- package/.local/skills/expo/OWNERS +2 -0
- package/.local/skills/expo/SKILL.md +298 -0
- package/.local/skills/expo/references/design_and_aesthetics.md +141 -0
- package/.local/skills/expo/references/device_features_and_permissions.md +48 -0
- package/.local/skills/expo/references/first_build.md +114 -0
- package/.local/skills/expo/references/react_context.md +54 -0
- package/.local/skills/external_apis/.fingerprint +1 -0
- package/.local/skills/external_apis/SKILL.md +25 -0
- package/.local/skills/external_apis/references/brave.md +116 -0
- package/.local/skills/external_apis/references/elevenlabs.md +44 -0
- package/.local/skills/external_apis/references/exa.md +34 -0
- package/.local/skills/external_apis/references/firecrawl.md +37 -0
- package/.local/skills/external_apis/references/nano_banana.md +33 -0
- package/.local/skills/follow-up-tasks/.fingerprint +1 -0
- package/.local/skills/follow-up-tasks/SKILL.md +80 -0
- package/.local/skills/image-search/.fingerprint +1 -0
- package/.local/skills/image-search/SKILL.md +150 -0
- package/.local/skills/integrations/.fingerprint +1 -0
- package/.local/skills/integrations/SKILL.md +205 -0
- package/.local/skills/media-generation/.fingerprint +1 -0
- package/.local/skills/media-generation/SKILL.md +170 -0
- package/.local/skills/media-generation/audio_generation.md +138 -0
- package/.local/skills/media-generation/video_generation.md +82 -0
- package/.local/skills/mockup-extract/.fingerprint +1 -0
- package/.local/skills/mockup-extract/SKILL.md +123 -0
- package/.local/skills/mockup-graduate/.fingerprint +1 -0
- package/.local/skills/mockup-graduate/SKILL.md +97 -0
- package/.local/skills/mockup-sandbox/.fingerprint +1 -0
- package/.local/skills/mockup-sandbox/SKILL.md +750 -0
- package/.local/skills/package-management/.fingerprint +1 -0
- package/.local/skills/package-management/SKILL.md +264 -0
- package/.local/skills/post_merge_setup/.fingerprint +1 -0
- package/.local/skills/post_merge_setup/SKILL.md +102 -0
- package/.local/skills/project_tasks/.fingerprint +1 -0
- package/.local/skills/project_tasks/SKILL.md +361 -0
- package/.local/skills/query-integration-data/.fingerprint +1 -0
- package/.local/skills/query-integration-data/SKILL.md +385 -0
- package/.local/skills/react-vite/.fingerprint +1 -0
- package/.local/skills/react-vite/SKILL.md +110 -0
- package/.local/skills/react-vite/references/frontend_general_rules.md +66 -0
- package/.local/skills/react-vite/references/seo.md +158 -0
- package/.local/skills/remove-image-background/.fingerprint +1 -0
- package/.local/skills/remove-image-background/SKILL.md +55 -0
- package/.local/skills/repl_setup/.fingerprint +1 -0
- package/.local/skills/repl_setup/SKILL.md +90 -0
- package/.local/skills/repl_setup/references/angular.md +103 -0
- package/.local/skills/repl_setup/references/react_vite.md +121 -0
- package/.local/skills/repl_setup/references/vue.md +102 -0
- package/.local/skills/replit-docs/.fingerprint +1 -0
- package/.local/skills/replit-docs/SKILL.md +81 -0
- package/.local/skills/revenuecat/.fingerprint +1 -0
- package/.local/skills/revenuecat/SKILL.md +133 -0
- package/.local/skills/revenuecat/references/initial-setup.md +566 -0
- package/.local/skills/revenuecat/references/replit-revenuecat-sdk-docs.md +279 -0
- package/.local/skills/revenuecat/references/subsequent-management.md +63 -0
- package/.local/skills/security_scan/.fingerprint +1 -0
- package/.local/skills/security_scan/SKILL.md +51 -0
- package/.local/skills/skill-authoring/.fingerprint +1 -0
- package/.local/skills/skill-authoring/SKILL.md +99 -0
- package/.local/skills/slides/.fingerprint +1 -0
- package/.local/skills/slides/SKILL.md +523 -0
- package/.local/skills/slides/references/brand_research.md +86 -0
- package/.local/skills/slides/references/export_failures.md +36 -0
- package/.local/skills/slides/references/exporting.md +49 -0
- package/.local/skills/slides/references/importing.md +40 -0
- package/.local/skills/slides/references/visual_qa.md +121 -0
- package/.local/skills/slides/templates/90s-board-deck.md +285 -0
- package/.local/skills/slides/templates/academic-lecture.md +437 -0
- package/.local/skills/slides/templates/adventure-outdoor.md +845 -0
- package/.local/skills/slides/templates/analytics-dashboard.md +407 -0
- package/.local/skills/slides/templates/annual-report-cover.md +592 -0
- package/.local/skills/slides/templates/apple-minimal.md +570 -0
- package/.local/skills/slides/templates/architecture-studio.md +339 -0
- package/.local/skills/slides/templates/arctic-expedition.md +582 -0
- package/.local/skills/slides/templates/arctic-minimal.md +364 -0
- package/.local/skills/slides/templates/art-deco.md +308 -0
- package/.local/skills/slides/templates/artisan-ceramics.md +659 -0
- package/.local/skills/slides/templates/artisan-food.md +709 -0
- package/.local/skills/slides/templates/artisanal-chalkboard.md +623 -0
- package/.local/skills/slides/templates/astronomy-log.md +562 -0
- package/.local/skills/slides/templates/aurora-expedition.md +754 -0
- package/.local/skills/slides/templates/automotive-electric.md +339 -0
- package/.local/skills/slides/templates/bauhaus-avant-garde.md +443 -0
- package/.local/skills/slides/templates/bioluminescent-sea.md +814 -0
- package/.local/skills/slides/templates/biophilic-urban.md +565 -0
- package/.local/skills/slides/templates/blackboard-chalk.md +517 -0
- package/.local/skills/slides/templates/blueprint.md +478 -0
- package/.local/skills/slides/templates/botanical-index.md +822 -0
- package/.local/skills/slides/templates/botanical-wellness.md +611 -0
- package/.local/skills/slides/templates/brand-book-page.md +466 -0
- package/.local/skills/slides/templates/brutalist-concrete.md +362 -0
- package/.local/skills/slides/templates/brutalist-studio.md +325 -0
- package/.local/skills/slides/templates/brutalist-web-punk.md +591 -0
- package/.local/skills/slides/templates/celestial-observatory.md +453 -0
- package/.local/skills/slides/templates/ceramics-artisan.md +740 -0
- package/.local/skills/slides/templates/cinema-verite.md +415 -0
- package/.local/skills/slides/templates/claymorphism.md +737 -0
- package/.local/skills/slides/templates/collage-zine.md +357 -0
- package/.local/skills/slides/templates/copper-sage.md +325 -0
- package/.local/skills/slides/templates/coral-reef.md +508 -0
- package/.local/skills/slides/templates/corporate-grid.md +331 -0
- package/.local/skills/slides/templates/corporate-memphis-flat.md +938 -0
- package/.local/skills/slides/templates/cosmos-explorer.md +998 -0
- package/.local/skills/slides/templates/cpg-coffee.md +850 -0
- package/.local/skills/slides/templates/craft-coffee-roast.md +693 -0
- package/.local/skills/slides/templates/creative-agency.md +244 -0
- package/.local/skills/slides/templates/creative-director.md +875 -0
- package/.local/skills/slides/templates/culinary-brand.md +698 -0
- package/.local/skills/slides/templates/de-stijl-construct.md +320 -0
- package/.local/skills/slides/templates/desert-dunes-photo.md +483 -0
- package/.local/skills/slides/templates/desert-mirror.md +577 -0
- package/.local/skills/slides/templates/desert-modernism.md +439 -0
- package/.local/skills/slides/templates/developer-api-docs.md +654 -0
- package/.local/skills/slides/templates/editorial-magazine.md +694 -0
- package/.local/skills/slides/templates/engineering-blueprint.md +730 -0
- package/.local/skills/slides/templates/executive-mono.md +363 -0
- package/.local/skills/slides/templates/expedition-peak.md +298 -0
- package/.local/skills/slides/templates/fashion-campaign.md +681 -0
- package/.local/skills/slides/templates/fashion-editorial.md +497 -0
- package/.local/skills/slides/templates/figma-geometric.md +420 -0
- package/.local/skills/slides/templates/film-noir.md +857 -0
- package/.local/skills/slides/templates/fitness-athletics.md +663 -0
- package/.local/skills/slides/templates/flat-vector.md +912 -0
- package/.local/skills/slides/templates/fluid-luxe.md +665 -0
- package/.local/skills/slides/templates/furniture-brand.md +505 -0
- package/.local/skills/slides/templates/gallery-modern.md +436 -0
- package/.local/skills/slides/templates/gaming-esports.md +410 -0
- package/.local/skills/slides/templates/geodesic-future.md +368 -0
- package/.local/skills/slides/templates/glass-artisan.md +666 -0
- package/.local/skills/slides/templates/glassmorphism.md +320 -0
- package/.local/skills/slides/templates/greenhouse-botanical.md +662 -0
- package/.local/skills/slides/templates/healthcare-clarity.md +468 -0
- package/.local/skills/slides/templates/holographic-drop.md +663 -0
- package/.local/skills/slides/templates/hospitality-resort.md +608 -0
- package/.local/skills/slides/templates/hypercar-launch.md +557 -0
- package/.local/skills/slides/templates/infographic-title.md +306 -0
- package/.local/skills/slides/templates/ink-wash.md +244 -0
- package/.local/skills/slides/templates/investor-memo.md +509 -0
- package/.local/skills/slides/templates/isometric-data.md +703 -0
- package/.local/skills/slides/templates/ivory-boardroom.md +439 -0
- package/.local/skills/slides/templates/japanese-minimal.md +308 -0
- package/.local/skills/slides/templates/jazz-blue-note.md +478 -0
- package/.local/skills/slides/templates/kinetic-type.md +206 -0
- package/.local/skills/slides/templates/lagoon-luxury.md +320 -0
- package/.local/skills/slides/templates/lavender-pastoral.md +577 -0
- package/.local/skills/slides/templates/linear-precise.md +460 -0
- package/.local/skills/slides/templates/lineart-sketch.md +930 -0
- package/.local/skills/slides/templates/lost-temple.md +689 -0
- package/.local/skills/slides/templates/luxury-fashion.md +269 -0
- package/.local/skills/slides/templates/luxury-watch.md +678 -0
- package/.local/skills/slides/templates/marble-elegance.md +673 -0
- package/.local/skills/slides/templates/mediterranean-travel.md +811 -0
- package/.local/skills/slides/templates/memphis-design.md +426 -0
- package/.local/skills/slides/templates/midnight-jazz.md +260 -0
- package/.local/skills/slides/templates/minimalist-poster.md +538 -0
- package/.local/skills/slides/templates/molten-craft.md +743 -0
- package/.local/skills/slides/templates/moroccan-tile.md +738 -0
- package/.local/skills/slides/templates/motorsport.md +782 -0
- package/.local/skills/slides/templates/mountain-drift.md +311 -0
- package/.local/skills/slides/templates/music-label.md +641 -0
- package/.local/skills/slides/templates/neo-tokyo.md +637 -0
- package/.local/skills/slides/templates/neobrutalism.md +334 -0
- package/.local/skills/slides/templates/newspaper-broadsheet.md +687 -0
- package/.local/skills/slides/templates/noir-fragrance.md +672 -0
- package/.local/skills/slides/templates/non-profit-impact.md +320 -0
- package/.local/skills/slides/templates/ocean-breeze.md +398 -0
- package/.local/skills/slides/templates/origami-couture.md +636 -0
- package/.local/skills/slides/templates/origami-paper.md +308 -0
- package/.local/skills/slides/templates/pastel-playground.md +1114 -0
- package/.local/skills/slides/templates/perfume-noir.md +646 -0
- package/.local/skills/slides/templates/prairie-storm.md +625 -0
- package/.local/skills/slides/templates/private-equity-dark.md +506 -0
- package/.local/skills/slides/templates/renaissance-florals.md +225 -0
- package/.local/skills/slides/templates/retro-print.md +880 -0
- package/.local/skills/slides/templates/retro-vinyl-sleeve.md +229 -0
- package/.local/skills/slides/templates/riso-zine.md +1094 -0
- package/.local/skills/slides/templates/risograph.md +1151 -0
- package/.local/skills/slides/templates/saas-product-launch.md +972 -0
- package/.local/skills/slides/templates/scandinavian.md +372 -0
- package/.local/skills/slides/templates/skater-culture.md +583 -0
- package/.local/skills/slides/templates/slate-modern.md +469 -0
- package/.local/skills/slides/templates/sneaker-drop.md +1006 -0
- package/.local/skills/slides/templates/social-campaign.md +321 -0
- package/.local/skills/slides/templates/stained-glass.md +574 -0
- package/.local/skills/slides/templates/strategy-one-pager.md +508 -0
- package/.local/skills/slides/templates/street-drop.md +677 -0
- package/.local/skills/slides/templates/street-mural.md +588 -0
- package/.local/skills/slides/templates/studio-noir.md +466 -0
- package/.local/skills/slides/templates/sustainability-esg.md +686 -0
- package/.local/skills/slides/templates/swiss-archive.md +648 -0
- package/.local/skills/slides/templates/swiss-typographic.md +364 -0
- package/.local/skills/slides/templates/tea-ceremony.md +456 -0
- package/.local/skills/slides/templates/tech-earbuds.md +870 -0
- package/.local/skills/slides/templates/terracotta-studio.md +235 -0
- package/.local/skills/slides/templates/thesis-defense.md +390 -0
- package/.local/skills/slides/templates/travel-aerial.md +648 -0
- package/.local/skills/slides/templates/treasury-policy.md +475 -0
- package/.local/skills/slides/templates/tropical-lush.md +332 -0
- package/.local/skills/slides/templates/underwater-dream.md +627 -0
- package/.local/skills/slides/templates/urban-golden.md +342 -0
- package/.local/skills/slides/templates/vintage-apothecary.md +552 -0
- package/.local/skills/slides/templates/vintage-ticket-stub.md +637 -0
- package/.local/skills/slides/templates/vinyl-crate.md +550 -0
- package/.local/skills/slides/templates/vision-editorial.md +612 -0
- package/.local/skills/slides/templates/volcanic-edge.md +347 -0
- package/.local/skills/slides/templates/watercolor-city.md +827 -0
- package/.local/skills/slides/templates/wine-spirits.md +203 -0
- package/.local/skills/slides/templates/wireframe-prototype.md +718 -0
- package/.local/skills/slides/templates/workspace-design.md +782 -0
- package/.local/skills/slides/templates/workspace-modern.md +406 -0
- package/.local/skills/slides/templates/zen-meditation.md +284 -0
- package/.local/skills/slides/templates/zen-void.md +244 -0
- package/.local/skills/stripe/.fingerprint +1 -0
- package/.local/skills/stripe/SKILL.md +455 -0
- package/.local/skills/stripe/references/code-templates.md +588 -0
- package/.local/skills/threat_modeling/.fingerprint +1 -0
- package/.local/skills/threat_modeling/SKILL.md +240 -0
- package/.local/skills/validation/.fingerprint +1 -0
- package/.local/skills/validation/SKILL.md +237 -0
- package/.local/skills/video-js/.fingerprint +1 -0
- package/.local/skills/video-js/SKILL.md +793 -0
- package/.local/skills/video-js/references/audio.md +237 -0
- package/.local/skills/video-js/references/finalize_playback.md +16 -0
- package/.local/skills/video-js/references/first_build.md +87 -0
- package/.local/skills/video-js/references/scene_selectors.md +428 -0
- package/.local/skills/web-search/.fingerprint +1 -0
- package/.local/skills/web-search/SKILL.md +110 -0
- package/.local/skills/whop/.fingerprint +1 -0
- package/.local/skills/whop/SKILL.md +104 -0
- package/.local/skills/whop/references/code-templates.md +66 -0
- package/.local/skills/whop/references/whop-api.mjs +22 -0
- package/.local/skills/whop/references/whop-mcp.mjs +40 -0
- package/.local/skills/whop/references/whopClient.ts +54 -0
- package/.local/skills/workflows/.fingerprint +1 -0
- package/.local/skills/workflows/SKILL.md +245 -0
- package/.local/state/replit/agent/.agent_state_037313043e76b5c652f276153ea014a68570e145.bin +0 -0
- package/.local/state/replit/agent/.agent_state_0f5361c2a53ab324b2a941a797f6494891be084c.bin +0 -0
- package/.local/state/replit/agent/.agent_state_4272443827dc90eac8c5b1963a34ee86da70bb99.bin +0 -0
- package/.local/state/replit/agent/.agent_state_4f14655950cbd611b228b4f0e1f664b66a56af24.bin +0 -0
- package/.local/state/replit/agent/.agent_state_ce28955a30856aa3d095b3568c322c8ec098993f.bin +0 -0
- package/.local/state/replit/agent/.agent_state_ec5347d04ebfbf6cf850fe04e15590d423e96d1d.bin +0 -0
- package/.local/state/replit/agent/.agent_state_f68f8c104d815ccc387290f0fba2c87c818d29f1.bin +0 -0
- package/.local/state/replit/agent/.agent_state_f87c1803a179510408c57c7a380c26f5c2197a30.bin +0 -0
- package/.local/state/replit/agent/.agent_state_main.bin +0 -0
- package/.local/state/replit/agent/.latest.json +1 -0
- package/.local/state/replit/agent/repl_state.bin +0 -0
- package/.local/state/scribe/scribe.db +0 -0
- package/.local/state/scribe/scribe.db-shm +0 -0
- package/.local/state/scribe/scribe.db-wal +0 -0
- package/.local/state/workflow-logs/2tfQP52ibxJTy4lpZ7_JX/start_application.shell.exec.0 +27 -0
- package/.local/state/workflow-logs/6QjtmQThaHrR_QHf4v8HA/validation.external.managed.0 +31 -0
- package/.local/state/workflow-logs/6QjtmQThaHrR_QHf4v8HA/validation.json +1 -0
- package/.local/state/workflow-logs/85n-z_SHy4JSGaUeJIcxy/start_application.shell.exec.0 +18 -0
- package/.local/state/workflow-logs/GIL2Ql5124lrEqGrfRO4k/start_application.shell.exec.0 +222 -0
- package/.local/state/workflow-logs/LiH2MjG_9FwFummNHhDtO/validation.external.managed.0 +45 -0
- package/.local/state/workflow-logs/LiH2MjG_9FwFummNHhDtO/validation.json +1 -0
- package/.local/state/workflow-logs/OKp1t-fEO5U_zQi1SKOQ-/start_application.shell.exec.0 +10 -0
- package/.local/state/workflow-logs/Tpp7d6Hu6CO1NKGo_eAi7/validation.external.managed.0 +43 -0
- package/.local/state/workflow-logs/Tpp7d6Hu6CO1NKGo_eAi7/validation.json +1 -0
- package/.local/state/workflow-logs/UDYycRqPV-N4B7whZP-yX/start_application.shell.exec.0 +252 -0
- package/.local/state/workflow-logs/V8Anmvz-HuvAztflZ8yCo/start_application.shell.exec.0 +87 -0
- package/.local/state/workflow-logs/a5fMnjr9tCwoaFY93pYuN/start_application.shell.exec.0 +2519 -0
- package/.local/state/workflow-logs/ggFzYcdHfIlW0owP2pb0U/start_application.shell.exec.0 +28 -0
- package/.local/state/workflow-logs/hIHNKfUtPX3jZs8qXw_Vt/validation.external.managed.0 +41 -0
- package/.local/state/workflow-logs/hIHNKfUtPX3jZs8qXw_Vt/validation.json +1 -0
- package/.local/state/workflow-logs/nbLvtuGJXB0wPmnruB3BE/start_application.shell.exec.0 +199 -0
- package/.local/state/workflow-logs/uDhN6S0ypUEh0MphXaFGY/start_application.shell.exec.0 +73 -0
- package/.local/state/workflow-logs/xZqU5CdTivcY6KEDEcVmD/start_application.shell.exec.0 +17 -0
- package/.local/tasks/breadcrumb-component.md +89 -0
- package/.local/tasks/calendar-component.md +93 -0
- package/.local/tasks/invoicing-design-system-app.md +39 -0
- package/.local/tasks/task-1.md +42 -0
- package/.local/tasks/task-7.md +92 -0
- package/.local/tasks/task-8.md +96 -0
- package/.replit +34 -0
- package/.upm/store.json +1 -0
- package/README.md +121 -0
- package/app/dashboard/page.tsx +10 -0
- package/app/design-system/page.tsx +802 -0
- package/app/invoices/page.tsx +10 -0
- package/app/layout.tsx +28 -0
- package/app/login/page.tsx +5 -0
- package/app/page.tsx +93 -0
- package/app/signup/page.tsx +5 -0
- package/attached_assets/Colors_1779781016394.png +0 -0
- package/attached_assets/Navy_1779781016404.png +0 -0
- package/attached_assets/Orange_1779781016405.png +0 -0
- package/attached_assets/Screenshot_2026-05-26_at_1.14.29_PM_1779781472515.png +0 -0
- package/attached_assets/Screenshot_2026-05-26_at_11.28.20_AM_1779775171071.png +0 -0
- package/attached_assets/Screenshot_2026-05-26_at_2.04.42_PM_1779784485318.png +0 -0
- package/attached_assets/Typography_1779781016406.png +0 -0
- package/design-system/components/avatar.tsx +46 -0
- package/design-system/components/badge.tsx +34 -0
- package/design-system/components/breadcrumb.tsx +149 -0
- package/design-system/components/button.tsx +57 -0
- package/design-system/components/calendar.tsx +77 -0
- package/design-system/components/card.tsx +62 -0
- package/design-system/components/checkbox.tsx +27 -0
- package/design-system/components/date-picker.tsx +153 -0
- package/design-system/components/dialog.tsx +106 -0
- package/design-system/components/dropdown-menu.tsx +88 -0
- package/design-system/components/form-field.tsx +78 -0
- package/design-system/components/input.tsx +25 -0
- package/design-system/components/label.tsx +25 -0
- package/design-system/components/popover.tsx +30 -0
- package/design-system/components/radio-group.tsx +35 -0
- package/design-system/components/select.tsx +84 -0
- package/design-system/components/separator.tsx +24 -0
- package/design-system/components/switch.tsx +28 -0
- package/design-system/components/table.tsx +80 -0
- package/design-system/components/tabs.tsx +54 -0
- package/design-system/components/textarea.tsx +25 -0
- package/design-system/components/toast.tsx +118 -0
- package/design-system/components/toaster.tsx +38 -0
- package/design-system/components/tooltip.tsx +27 -0
- package/design-system/hooks/index.ts +2 -0
- package/design-system/hooks/use-media-query.ts +27 -0
- package/design-system/hooks/use-toast.ts +91 -0
- package/design-system/index.ts +36 -0
- package/design-system/lib/cn.ts +6 -0
- package/design-system/styles.css +142 -0
- package/design-system/tokens/tokens.css +149 -0
- package/design-system/tokens/tokens.ts +190 -0
- package/next.config.mjs +6 -0
- package/package.json +46 -0
- package/postcss.config.mjs +6 -0
- package/screens/_shared/app-shell.tsx +145 -0
- package/screens/auth/auth-screen.tsx +156 -0
- package/screens/dashboard/dashboard-screen.tsx +207 -0
- package/screens/index.ts +17 -0
- package/screens/invoices/invoices-screen.tsx +317 -0
- package/tailwind.config.ts +110 -0
- package/tsconfig.json +26 -0
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slack Trigger - Webhook-based Workflow Triggering
|
|
3
|
+
*
|
|
4
|
+
* This module provides Slack event handling for Mastra workflows.
|
|
5
|
+
* When Slack events occur (like new messages), this trigger starts your workflow.
|
|
6
|
+
*
|
|
7
|
+
* PATTERN:
|
|
8
|
+
* 1. Import registerSlackTrigger and your workflow
|
|
9
|
+
* 2. Call registerSlackTrigger with a triggerType and handler
|
|
10
|
+
* 3. Spread the result into the apiRoutes array in src/mastra/index.ts
|
|
11
|
+
*
|
|
12
|
+
* USAGE in src/mastra/index.ts:
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import { registerSlackTrigger } from "../triggers/slackTriggers";
|
|
16
|
+
* import { slackBotWorkflow } from "./workflows/slackBotWorkflow";
|
|
17
|
+
* import { inngest } from "./inngest";
|
|
18
|
+
*
|
|
19
|
+
* // In the apiRoutes array:
|
|
20
|
+
* ...registerSlackTrigger({
|
|
21
|
+
* triggerType: "slack/message.channels",
|
|
22
|
+
* handler: async (mastra, triggerInfo) => {
|
|
23
|
+
* const threadId = `slack-${triggerInfo.params.channel}`;
|
|
24
|
+
* const run = await slackBotWorkflow.createRun();
|
|
25
|
+
* return await inngest.send({
|
|
26
|
+
* name: `workflow.${slackBotWorkflow.id}`,
|
|
27
|
+
* data: {
|
|
28
|
+
* runId: run?.runId,
|
|
29
|
+
* inputData: { threadId },
|
|
30
|
+
* },
|
|
31
|
+
* });
|
|
32
|
+
* }
|
|
33
|
+
* })
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
import { format, promisify } from "node:util";
|
|
38
|
+
import { execFile } from "node:child_process";
|
|
39
|
+
import { Mastra } from "@mastra/core";
|
|
40
|
+
import { type WorkflowResult, type Step } from "@mastra/core/workflows";
|
|
41
|
+
import { IMastraLogger } from "@mastra/core/logger";
|
|
42
|
+
import {
|
|
43
|
+
type AuthTestResponse,
|
|
44
|
+
type ChatPostMessageResponse,
|
|
45
|
+
type ConversationsOpenResponse,
|
|
46
|
+
type ConversationsRepliesResponse,
|
|
47
|
+
type UsersConversationsResponse,
|
|
48
|
+
type WebAPICallError,
|
|
49
|
+
ErrorCode,
|
|
50
|
+
WebClient,
|
|
51
|
+
} from "@slack/web-api";
|
|
52
|
+
import type { Context, Handler, MiddlewareHandler } from "hono";
|
|
53
|
+
import { streamSSE } from "hono/streaming";
|
|
54
|
+
import type { z } from "zod";
|
|
55
|
+
|
|
56
|
+
import { registerApiRoute } from "../mastra/inngest";
|
|
57
|
+
|
|
58
|
+
export type Methods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "ALL";
|
|
59
|
+
|
|
60
|
+
// TODO: Remove when Mastra exports this type.
|
|
61
|
+
export type ApiRoute =
|
|
62
|
+
| {
|
|
63
|
+
path: string;
|
|
64
|
+
method: Methods;
|
|
65
|
+
handler: Handler;
|
|
66
|
+
middleware?: MiddlewareHandler | MiddlewareHandler[];
|
|
67
|
+
}
|
|
68
|
+
| {
|
|
69
|
+
path: string;
|
|
70
|
+
method: Methods;
|
|
71
|
+
createHandler: ({ mastra }: { mastra: Mastra }) => Promise<Handler>;
|
|
72
|
+
middleware?: MiddlewareHandler | MiddlewareHandler[];
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export type TriggerInfoSlackOnNewMessage = {
|
|
76
|
+
type: "slack/message.channels";
|
|
77
|
+
params: {
|
|
78
|
+
channel: string;
|
|
79
|
+
channelDisplayName: string;
|
|
80
|
+
};
|
|
81
|
+
payload: any;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
type DiagnosisStep =
|
|
85
|
+
| {
|
|
86
|
+
status: "pending";
|
|
87
|
+
name: string;
|
|
88
|
+
extra?: Record<string, any>;
|
|
89
|
+
}
|
|
90
|
+
| {
|
|
91
|
+
status: "success";
|
|
92
|
+
name: string;
|
|
93
|
+
extra: Record<string, any>;
|
|
94
|
+
}
|
|
95
|
+
| {
|
|
96
|
+
status: "failed";
|
|
97
|
+
name: string;
|
|
98
|
+
error: string;
|
|
99
|
+
extra: Record<string, any>;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export async function getClient() {
|
|
103
|
+
let connectionSettings: any;
|
|
104
|
+
async function getAccessToken() {
|
|
105
|
+
if (
|
|
106
|
+
connectionSettings &&
|
|
107
|
+
connectionSettings.settings.expires_at &&
|
|
108
|
+
new Date(connectionSettings.settings.expires_at).getTime() > Date.now()
|
|
109
|
+
) {
|
|
110
|
+
return {
|
|
111
|
+
token: connectionSettings.settings.access_token,
|
|
112
|
+
user: connectionSettings.settings.oauth?.credentials?.raw?.authed_user
|
|
113
|
+
?.id,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const hostname = process.env.REPLIT_CONNECTORS_HOSTNAME;
|
|
118
|
+
const { stdout } = await promisify(execFile)(
|
|
119
|
+
"replit",
|
|
120
|
+
["identity", "create", "--audience", `https://${hostname}`],
|
|
121
|
+
{ encoding: "utf8" },
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
const replitToken = stdout.trim();
|
|
125
|
+
if (!replitToken) {
|
|
126
|
+
throw new Error("Replit Identity Token not found for repl/depl");
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const res = await fetch(
|
|
130
|
+
"https://" +
|
|
131
|
+
hostname +
|
|
132
|
+
"/api/v2/connection?include_secrets=true&connector_names=slack-agent",
|
|
133
|
+
{
|
|
134
|
+
headers: {
|
|
135
|
+
Accept: "application/json",
|
|
136
|
+
"Replit-Authentication": `Bearer ${replitToken}`,
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
);
|
|
140
|
+
const resJson = await res.json();
|
|
141
|
+
connectionSettings = resJson?.items?.[0];
|
|
142
|
+
if (!connectionSettings || !connectionSettings.settings.access_token) {
|
|
143
|
+
throw new Error(
|
|
144
|
+
`Slack not connected: HTTP ${res.status} ${res.statusText}: ${JSON.stringify(resJson)}`,
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
token: connectionSettings.settings.access_token,
|
|
149
|
+
user: connectionSettings.settings.oauth?.credentials?.raw?.authed_user
|
|
150
|
+
?.id,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const { token, user } = await getAccessToken();
|
|
155
|
+
const slack = new WebClient(token);
|
|
156
|
+
|
|
157
|
+
const response = await slack.auth.test();
|
|
158
|
+
|
|
159
|
+
return { slack, auth: response, user };
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Keep up to 200 recent events, to prevent duplicates
|
|
163
|
+
const recentEvents: string[] = [];
|
|
164
|
+
|
|
165
|
+
function isWebAPICallError(err: unknown): err is WebAPICallError {
|
|
166
|
+
return (
|
|
167
|
+
err !== null && typeof err === "object" && "code" in err && "data" in err
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function checkDuplicateEvent(eventName: string) {
|
|
172
|
+
if (recentEvents.includes(eventName)) {
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
recentEvents.push(eventName);
|
|
176
|
+
if (recentEvents.length > 200) {
|
|
177
|
+
recentEvents.shift();
|
|
178
|
+
}
|
|
179
|
+
return false;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function createReactToMessage<
|
|
183
|
+
TState extends z.ZodObject<any>,
|
|
184
|
+
TInput extends z.ZodType<any>,
|
|
185
|
+
TOutput extends z.ZodType<any>,
|
|
186
|
+
TSteps extends Step<string, any, any>[],
|
|
187
|
+
>({ slack, logger }: { slack: WebClient; logger: IMastraLogger }) {
|
|
188
|
+
const addReaction = async (
|
|
189
|
+
channel: string,
|
|
190
|
+
timestamp: string,
|
|
191
|
+
emoji: string,
|
|
192
|
+
) => {
|
|
193
|
+
logger.info(`[Slack] Adding reaction to message`, {
|
|
194
|
+
emoji,
|
|
195
|
+
timestamp,
|
|
196
|
+
channel,
|
|
197
|
+
});
|
|
198
|
+
try {
|
|
199
|
+
await slack.reactions.add({ channel, timestamp, name: emoji });
|
|
200
|
+
} catch (error) {
|
|
201
|
+
logger.error(`[Slack] Error adding reaction to message`, {
|
|
202
|
+
emoji,
|
|
203
|
+
timestamp,
|
|
204
|
+
channel,
|
|
205
|
+
error: format(error),
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
const removeAllReactions = async (channel: string, timestamp: string) => {
|
|
211
|
+
logger.info(`[Slack] Removing all reactions from message`, {
|
|
212
|
+
timestamp,
|
|
213
|
+
channel,
|
|
214
|
+
});
|
|
215
|
+
const emojis = [
|
|
216
|
+
"hourglass",
|
|
217
|
+
"hourglass_flowing_sand",
|
|
218
|
+
"white_check_mark",
|
|
219
|
+
"x",
|
|
220
|
+
"alarm_clock",
|
|
221
|
+
];
|
|
222
|
+
|
|
223
|
+
for (const emoji of emojis) {
|
|
224
|
+
try {
|
|
225
|
+
await slack.reactions.remove({ channel, timestamp, name: emoji });
|
|
226
|
+
} catch (error) {
|
|
227
|
+
if (
|
|
228
|
+
isWebAPICallError(error) &&
|
|
229
|
+
(error.code !== ErrorCode.PlatformError ||
|
|
230
|
+
error.data?.error !== "no_reaction")
|
|
231
|
+
) {
|
|
232
|
+
logger.error("[Slack] Error removing reaction", {
|
|
233
|
+
emoji,
|
|
234
|
+
timestamp,
|
|
235
|
+
channel,
|
|
236
|
+
error: format(error),
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
return async function reactToMessage(
|
|
244
|
+
channel: string,
|
|
245
|
+
timestamp: string,
|
|
246
|
+
result: WorkflowResult<TState, TInput, TOutput, TSteps> | null,
|
|
247
|
+
) {
|
|
248
|
+
// Remove all of our reactions.
|
|
249
|
+
await removeAllReactions(channel, timestamp);
|
|
250
|
+
if (result?.status === "success") {
|
|
251
|
+
await addReaction(channel, timestamp, "white_check_mark");
|
|
252
|
+
} else if (result?.status === "failed") {
|
|
253
|
+
await addReaction(channel, timestamp, "x");
|
|
254
|
+
} else if (result !== null) {
|
|
255
|
+
await addReaction(channel, timestamp, "alarm_clock");
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export function registerSlackTrigger<
|
|
261
|
+
Env extends { Variables: { mastra: Mastra } },
|
|
262
|
+
TState extends z.ZodObject<any>,
|
|
263
|
+
TInput extends z.ZodType<any>,
|
|
264
|
+
TOutput extends z.ZodType<any>,
|
|
265
|
+
TSteps extends Step<string, any, any>[],
|
|
266
|
+
>({
|
|
267
|
+
triggerType,
|
|
268
|
+
handler,
|
|
269
|
+
}: {
|
|
270
|
+
triggerType: string;
|
|
271
|
+
handler: (
|
|
272
|
+
mastra: Mastra,
|
|
273
|
+
triggerInfo: TriggerInfoSlackOnNewMessage,
|
|
274
|
+
) => Promise<WorkflowResult<TState, TInput, TOutput, TSteps> | null>;
|
|
275
|
+
}): Array<ApiRoute> {
|
|
276
|
+
return [
|
|
277
|
+
registerApiRoute("/webhooks/slack/action", {
|
|
278
|
+
method: "POST",
|
|
279
|
+
handler: async (c) => {
|
|
280
|
+
const mastra = c.get("mastra");
|
|
281
|
+
const logger = mastra.getLogger();
|
|
282
|
+
try {
|
|
283
|
+
const payload = await c.req.json();
|
|
284
|
+
const { slack, auth } = await getClient();
|
|
285
|
+
const reactToMessage = createReactToMessage({ slack, logger });
|
|
286
|
+
|
|
287
|
+
// Handle challenge
|
|
288
|
+
if (payload && payload["challenge"]) {
|
|
289
|
+
return c.text(payload["challenge"], 200);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
logger?.info("📝 [Slack] payload", { payload });
|
|
293
|
+
|
|
294
|
+
// Augment event with channel info
|
|
295
|
+
if (payload && payload.event && payload.event.channel) {
|
|
296
|
+
try {
|
|
297
|
+
const result = await slack.conversations.info({
|
|
298
|
+
channel: payload.event.channel,
|
|
299
|
+
});
|
|
300
|
+
logger?.info("📝 [Slack] result", { result });
|
|
301
|
+
payload.channel = result.channel;
|
|
302
|
+
} catch (error) {
|
|
303
|
+
logger?.error("Error fetching channel info", {
|
|
304
|
+
error: format(error),
|
|
305
|
+
});
|
|
306
|
+
// Continue processing even if channel info fetch fails
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// Check subtype
|
|
311
|
+
if (
|
|
312
|
+
payload.event?.subtype === "message_changed" ||
|
|
313
|
+
payload.event?.subtype === "message_deleted"
|
|
314
|
+
) {
|
|
315
|
+
return c.text("OK", 200);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (
|
|
319
|
+
(payload.event?.channel_type === "im" &&
|
|
320
|
+
payload.event?.text === "test:ping") ||
|
|
321
|
+
payload.event?.text === `<@${auth.user_id}> test:ping`
|
|
322
|
+
) {
|
|
323
|
+
// This is a test message to the bot saying just "test:ping", or a mention that contains "test:ping".
|
|
324
|
+
// We'll reply in the same thread.
|
|
325
|
+
await slack.chat.postMessage({
|
|
326
|
+
channel: payload.event.channel,
|
|
327
|
+
text: "pong",
|
|
328
|
+
thread_ts: payload.event.ts,
|
|
329
|
+
});
|
|
330
|
+
logger?.info("📝 [Slack] pong");
|
|
331
|
+
return c.text("OK", 200);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (payload.event?.bot_id) {
|
|
335
|
+
return c.text("OK", 200);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (checkDuplicateEvent(payload.event_id)) {
|
|
339
|
+
return c.text("OK", 200);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
const result = await handler(mastra, {
|
|
343
|
+
type: triggerType,
|
|
344
|
+
params: {
|
|
345
|
+
channel: payload.event.channel,
|
|
346
|
+
channelDisplayName: payload.channel.name,
|
|
347
|
+
},
|
|
348
|
+
payload,
|
|
349
|
+
} as TriggerInfoSlackOnNewMessage);
|
|
350
|
+
|
|
351
|
+
await reactToMessage(payload.event.channel, payload.event.ts, result);
|
|
352
|
+
|
|
353
|
+
return c.text("OK", 200);
|
|
354
|
+
} catch (error) {
|
|
355
|
+
logger?.error("Error handling Slack webhook", {
|
|
356
|
+
error: format(error),
|
|
357
|
+
});
|
|
358
|
+
return c.text("Internal Server Error", 500);
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
}),
|
|
362
|
+
{
|
|
363
|
+
path: "/test/slack",
|
|
364
|
+
method: "GET",
|
|
365
|
+
handler: async (c: Context<Env>) => {
|
|
366
|
+
return streamSSE(c, async (stream) => {
|
|
367
|
+
let id = 1;
|
|
368
|
+
const mastra = c.get("mastra");
|
|
369
|
+
const logger = mastra.getLogger() ?? {
|
|
370
|
+
info: console.log,
|
|
371
|
+
error: console.error,
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
let diagnosisStepAuth: DiagnosisStep = {
|
|
375
|
+
status: "pending",
|
|
376
|
+
name: "authentication with Slack",
|
|
377
|
+
};
|
|
378
|
+
let diagnosisStepConversation: DiagnosisStep = {
|
|
379
|
+
status: "pending",
|
|
380
|
+
name: "open a conversation with user",
|
|
381
|
+
};
|
|
382
|
+
let diagnosisStepPostMessage: DiagnosisStep = {
|
|
383
|
+
status: "pending",
|
|
384
|
+
name: "send a message to the user",
|
|
385
|
+
};
|
|
386
|
+
let diagnosisStepReadReplies: DiagnosisStep = {
|
|
387
|
+
status: "pending",
|
|
388
|
+
name: "read replies from bot",
|
|
389
|
+
};
|
|
390
|
+
const updateDiagnosisSteps = async (event: string) =>
|
|
391
|
+
stream.writeSSE({
|
|
392
|
+
data: JSON.stringify([
|
|
393
|
+
diagnosisStepAuth,
|
|
394
|
+
diagnosisStepConversation,
|
|
395
|
+
diagnosisStepPostMessage,
|
|
396
|
+
diagnosisStepReadReplies,
|
|
397
|
+
]),
|
|
398
|
+
event,
|
|
399
|
+
id: String(id++),
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
let slack: WebClient;
|
|
403
|
+
let auth: AuthTestResponse;
|
|
404
|
+
let user: string | undefined;
|
|
405
|
+
try {
|
|
406
|
+
({ slack, auth, user } = await getClient());
|
|
407
|
+
} catch (error) {
|
|
408
|
+
logger?.error("❌ [Slack] test:auth failed", {
|
|
409
|
+
error: format(error),
|
|
410
|
+
});
|
|
411
|
+
diagnosisStepAuth = {
|
|
412
|
+
...diagnosisStepAuth,
|
|
413
|
+
status: "failed",
|
|
414
|
+
error: "authentication failed",
|
|
415
|
+
extra: { error: format(error) },
|
|
416
|
+
};
|
|
417
|
+
await updateDiagnosisSteps("error");
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (!auth?.user_id) {
|
|
422
|
+
logger?.error("❌ [Slack] test:auth not working", {
|
|
423
|
+
auth,
|
|
424
|
+
});
|
|
425
|
+
diagnosisStepAuth = {
|
|
426
|
+
...diagnosisStepAuth,
|
|
427
|
+
status: "failed",
|
|
428
|
+
error: "authentication failed",
|
|
429
|
+
extra: { auth },
|
|
430
|
+
};
|
|
431
|
+
await updateDiagnosisSteps("error");
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
diagnosisStepAuth = {
|
|
436
|
+
...diagnosisStepAuth,
|
|
437
|
+
status: "success",
|
|
438
|
+
extra: { auth },
|
|
439
|
+
};
|
|
440
|
+
await updateDiagnosisSteps("progress");
|
|
441
|
+
|
|
442
|
+
logger?.info("📝 [Slack] test:auth found", { auth });
|
|
443
|
+
|
|
444
|
+
let channel: ConversationsOpenResponse["channel"];
|
|
445
|
+
if (user) {
|
|
446
|
+
// Open a DM with itself.
|
|
447
|
+
let conversationsResponse: ConversationsOpenResponse;
|
|
448
|
+
try {
|
|
449
|
+
conversationsResponse = await slack.conversations.open({
|
|
450
|
+
users: user,
|
|
451
|
+
});
|
|
452
|
+
} catch (error) {
|
|
453
|
+
logger?.error("❌ [Slack] test:conversation not found", {
|
|
454
|
+
error: format(error),
|
|
455
|
+
});
|
|
456
|
+
diagnosisStepConversation = {
|
|
457
|
+
...diagnosisStepConversation,
|
|
458
|
+
status: "failed",
|
|
459
|
+
error: "opening a conversation failed",
|
|
460
|
+
extra: { error: format(error) },
|
|
461
|
+
};
|
|
462
|
+
await updateDiagnosisSteps("error");
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
if (!conversationsResponse?.channel?.id) {
|
|
467
|
+
logger?.error("❌ [Slack] test:conversation not found", {
|
|
468
|
+
conversationsResponse,
|
|
469
|
+
});
|
|
470
|
+
diagnosisStepConversation = {
|
|
471
|
+
...diagnosisStepConversation,
|
|
472
|
+
status: "failed",
|
|
473
|
+
error: "conversation channel not found",
|
|
474
|
+
extra: { conversationsResponse },
|
|
475
|
+
};
|
|
476
|
+
await updateDiagnosisSteps("error");
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
channel = conversationsResponse.channel;
|
|
481
|
+
} else {
|
|
482
|
+
// Find the first channel where the bot is installed.
|
|
483
|
+
let conversationsResponse: UsersConversationsResponse;
|
|
484
|
+
try {
|
|
485
|
+
conversationsResponse = await slack.users.conversations({
|
|
486
|
+
user: auth.user_id,
|
|
487
|
+
});
|
|
488
|
+
} catch (error) {
|
|
489
|
+
logger?.error("❌ [Slack] test:conversation not found", {
|
|
490
|
+
error: format(error),
|
|
491
|
+
});
|
|
492
|
+
diagnosisStepConversation = {
|
|
493
|
+
...diagnosisStepConversation,
|
|
494
|
+
status: "failed",
|
|
495
|
+
error: "opening a conversation failed",
|
|
496
|
+
extra: { error: format(error) },
|
|
497
|
+
};
|
|
498
|
+
await updateDiagnosisSteps("error");
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if (!conversationsResponse?.channels?.length) {
|
|
503
|
+
logger?.error("❌ [Slack] test:channel not found", {
|
|
504
|
+
conversationsResponse,
|
|
505
|
+
});
|
|
506
|
+
diagnosisStepConversation = {
|
|
507
|
+
...diagnosisStepConversation,
|
|
508
|
+
status: "failed",
|
|
509
|
+
error: "channel not found",
|
|
510
|
+
extra: { conversationsResponse },
|
|
511
|
+
};
|
|
512
|
+
await updateDiagnosisSteps("error");
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
channel = conversationsResponse.channels![0]!;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
if (!channel.id) {
|
|
519
|
+
logger?.error("❌ [Slack] test:channel not found", {
|
|
520
|
+
channel,
|
|
521
|
+
});
|
|
522
|
+
diagnosisStepConversation = {
|
|
523
|
+
...diagnosisStepConversation,
|
|
524
|
+
status: "failed",
|
|
525
|
+
error: "channel not found",
|
|
526
|
+
extra: { channel },
|
|
527
|
+
};
|
|
528
|
+
await updateDiagnosisSteps("error");
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
diagnosisStepConversation = {
|
|
533
|
+
...diagnosisStepConversation,
|
|
534
|
+
status: "success",
|
|
535
|
+
extra: { channel },
|
|
536
|
+
};
|
|
537
|
+
await updateDiagnosisSteps("progress");
|
|
538
|
+
|
|
539
|
+
logger?.info("📝 [Slack] test:channel found", { channel });
|
|
540
|
+
|
|
541
|
+
// Post a message in the DMs.
|
|
542
|
+
let message: ChatPostMessageResponse;
|
|
543
|
+
try {
|
|
544
|
+
message = await slack.chat.postMessage({
|
|
545
|
+
channel: channel.id,
|
|
546
|
+
text: `<@${auth.user_id}> test:ping`,
|
|
547
|
+
});
|
|
548
|
+
} catch (error) {
|
|
549
|
+
logger?.error("❌ [Slack] test:message not posted", {
|
|
550
|
+
error: format(error),
|
|
551
|
+
});
|
|
552
|
+
diagnosisStepPostMessage = {
|
|
553
|
+
...diagnosisStepPostMessage,
|
|
554
|
+
status: "failed",
|
|
555
|
+
error: "posting message failed",
|
|
556
|
+
extra: { error: format(error) },
|
|
557
|
+
};
|
|
558
|
+
await updateDiagnosisSteps("error");
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
if (!message?.ts) {
|
|
563
|
+
logger?.error("❌ [Slack] test:message not posted", { message });
|
|
564
|
+
diagnosisStepPostMessage = {
|
|
565
|
+
...diagnosisStepPostMessage,
|
|
566
|
+
status: "failed",
|
|
567
|
+
error: "posting message missing timestamp",
|
|
568
|
+
extra: { message },
|
|
569
|
+
};
|
|
570
|
+
await updateDiagnosisSteps("error");
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
logger?.info("📝 [Slack] test:ping sent", { message });
|
|
575
|
+
|
|
576
|
+
diagnosisStepPostMessage = {
|
|
577
|
+
...diagnosisStepPostMessage,
|
|
578
|
+
status: "success",
|
|
579
|
+
extra: { message },
|
|
580
|
+
};
|
|
581
|
+
await updateDiagnosisSteps("progress");
|
|
582
|
+
|
|
583
|
+
const sleep = (ms: number) =>
|
|
584
|
+
new Promise((resolve) => setTimeout(resolve, ms));
|
|
585
|
+
|
|
586
|
+
// Wait for the bot to reply.
|
|
587
|
+
let lastReplies: ConversationsRepliesResponse | undefined = undefined;
|
|
588
|
+
for (let i = 0; i < 30; i++) {
|
|
589
|
+
await sleep(1000);
|
|
590
|
+
let replies: ConversationsRepliesResponse;
|
|
591
|
+
try {
|
|
592
|
+
replies = await slack.conversations.replies({
|
|
593
|
+
ts: message.ts,
|
|
594
|
+
channel: channel.id,
|
|
595
|
+
});
|
|
596
|
+
} catch (error) {
|
|
597
|
+
logger?.error("❌ [Slack] test:replies not found", { message });
|
|
598
|
+
diagnosisStepReadReplies = {
|
|
599
|
+
...diagnosisStepReadReplies,
|
|
600
|
+
status: "failed",
|
|
601
|
+
error: "replies not found",
|
|
602
|
+
extra: { error: format(error) },
|
|
603
|
+
};
|
|
604
|
+
await updateDiagnosisSteps("error");
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
logger?.info("📝 [Slack] test:replies", { replies });
|
|
608
|
+
diagnosisStepReadReplies.extra = { replies };
|
|
609
|
+
lastReplies = replies;
|
|
610
|
+
if (replies?.messages?.some((m) => m.text === "pong")) {
|
|
611
|
+
// Victory!
|
|
612
|
+
logger?.info("📝 [Slack] test:pong successful");
|
|
613
|
+
diagnosisStepReadReplies = {
|
|
614
|
+
...diagnosisStepReadReplies,
|
|
615
|
+
status: "success",
|
|
616
|
+
extra: { replies },
|
|
617
|
+
};
|
|
618
|
+
await updateDiagnosisSteps("result");
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
await updateDiagnosisSteps("progress");
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
logger?.error("❌ [Slack] test:timeout");
|
|
626
|
+
|
|
627
|
+
diagnosisStepReadReplies = {
|
|
628
|
+
...diagnosisStepReadReplies,
|
|
629
|
+
status: "failed",
|
|
630
|
+
error: "replies timed out",
|
|
631
|
+
extra: { lastReplies },
|
|
632
|
+
};
|
|
633
|
+
await updateDiagnosisSteps("error");
|
|
634
|
+
});
|
|
635
|
+
},
|
|
636
|
+
},
|
|
637
|
+
];
|
|
638
|
+
}
|