vibefast-cli 1.1.5 → 1.2.1
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/CHANGELOG.md +32 -0
- package/README.md +63 -169
- package/dist/commands/add.d.ts +1 -1
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js +547 -589
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/checklist.d.ts +1 -1
- package/dist/commands/checklist.d.ts.map +1 -1
- package/dist/commands/checklist.js +40 -39
- package/dist/commands/checklist.js.map +1 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +22 -22
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/env.d.ts +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +58 -53
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/health.d.ts +1 -1
- package/dist/commands/health.d.ts.map +1 -1
- package/dist/commands/health.js +101 -93
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/init.d.ts +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +416 -296
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/remove.d.ts +1 -1
- package/dist/commands/remove.d.ts.map +1 -1
- package/dist/commands/remove.js +77 -64
- package/dist/commands/remove.js.map +1 -1
- package/dist/commands/status.d.ts +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +15 -14
- package/dist/commands/status.js.map +1 -1
- package/dist/core/__tests__/detect.test.js +68 -34
- package/dist/core/__tests__/detect.test.js.map +1 -1
- package/dist/core/ast.d.ts +14 -0
- package/dist/core/ast.d.ts.map +1 -0
- package/dist/core/ast.js +239 -0
- package/dist/core/ast.js.map +1 -0
- package/dist/core/codemod.d.ts.map +1 -1
- package/dist/core/codemod.js +62 -44
- package/dist/core/codemod.js.map +1 -1
- package/dist/core/config.d.ts +10 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +51 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/detect.d.ts +8 -2
- package/dist/core/detect.d.ts.map +1 -1
- package/dist/core/detect.js +52 -21
- package/dist/core/detect.js.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +9 -8
- package/dist/core/errors.js.map +1 -1
- package/dist/core/exec.d.ts +16 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +48 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/manualSteps.d.ts +7 -0
- package/dist/core/manualSteps.d.ts.map +1 -0
- package/dist/core/manualSteps.js +59 -0
- package/dist/core/manualSteps.js.map +1 -0
- package/dist/core/paths.d.ts +3 -1
- package/dist/core/paths.d.ts.map +1 -1
- package/dist/core/paths.js +14 -10
- package/dist/core/paths.js.map +1 -1
- package/dist/core/spinner.d.ts +1 -1
- package/dist/core/spinner.d.ts.map +1 -1
- package/dist/core/spinner.js +38 -8
- package/dist/core/spinner.js.map +1 -1
- package/dist/core/vosk.d.ts.map +1 -1
- package/dist/core/vosk.js +50 -39
- package/dist/core/vosk.js.map +1 -1
- package/docs/manual-testing.md +91 -0
- package/package.json +6 -3
- package/recipes/audio-recorder/apps/native/src/app/audio-recorder/index.tsx +5 -0
- package/recipes/audio-recorder/recipe.json +3 -3
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/audio-player.tsx +301 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/audio-recorder.tsx +373 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/audio-waveform.tsx +270 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/index.ts +4 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/recording-list.tsx +89 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/audio-player-demo.tsx +66 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/audio-recorder-cloud.tsx +68 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/audio-recorder-interview.tsx +102 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/basic.tsx +27 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/index.ts +5 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/with-recording-list-demo.tsx +82 -0
- package/recipes/audio-recorder-supabase/packages/backend/src/services/recordings.ts +369 -0
- package/recipes/audio-recorder-supabase/packages/backend/supabase/migrations/recordings.sql +70 -0
- package/recipes/audio-recorder-supabase/recipe.json +35 -0
- package/recipes/audio-recorder-supabase@latest.zip +0 -0
- package/recipes/audio-recorder@latest.zip +0 -0
- package/recipes/charts/apps/native/src/features/charts/components/bar-chart.tsx +3 -3
- package/recipes/charts/apps/native/src/features/charts/components/candlestick-chart.tsx +2 -2
- package/recipes/charts/apps/native/src/features/charts/components/chart-card.tsx +5 -5
- package/recipes/charts/apps/native/src/features/charts/components/column-chart.tsx +3 -3
- package/recipes/charts/apps/native/src/features/charts/components/doughnut-chart.tsx +20 -4
- package/recipes/charts/apps/native/src/features/charts/components/line-chart.tsx +7 -6
- package/recipes/charts/apps/native/src/features/charts/components/radar-chart.tsx +6 -4
- package/recipes/charts/apps/native/src/features/charts/components/radial-bar-chart.tsx +1 -1
- package/recipes/charts/apps/native/src/features/charts/components/stacked-bar-chart.tsx +5 -4
- package/recipes/charts/recipe.json +4 -13
- package/recipes/charts@latest.zip +0 -0
- package/recipes/chatbot/apps/native/src/app/chatbot/index.tsx +1 -0
- package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-markdown.tsx +86 -86
- package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/code-block.tsx +86 -53
- package/recipes/chatbot/recipe.json +26 -92
- package/recipes/chatbot-supabase/apps/native/src/api-client/supabase/chatbot.ts +515 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/app/index.tsx +257 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-header-buttons.tsx +59 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-input-bar.tsx +485 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-markdown.tsx +575 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-message-bubble.tsx +223 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-settings-modal.tsx +161 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/image-preview-list.tsx +116 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/markdown/code-block.tsx +165 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/markdown/index.ts +10 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/markdown/table-renderer.tsx +129 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/message-error-boundary.tsx +78 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/message-list.tsx +170 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/model-selector.tsx +283 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/report-content-modal.tsx +188 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/suggested-messages.tsx +67 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/constants/models.ts +20 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/constants/report-reasons.ts +9 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-attachment-cache.ts +142 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-chat-config.ts +458 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-chat-handlers.ts +429 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-chatbot-settings.ts +89 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-conversation.ts +90 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-image-picker.ts +122 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-keyboard-coordinator.ts +161 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-smart-scroll-manager.ts +213 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/models/index.ts +86 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/models/models.ts +162 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/models/providers.ts +62 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/models/types.ts +40 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/services/file-uploader.ts +287 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/services/message-handler-service.ts +189 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/types/index.ts +70 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/utils/chat-telemetry.ts +91 -0
- package/recipes/chatbot-supabase/packages/backend/src/services/conversations.ts +243 -0
- package/recipes/chatbot-supabase/packages/backend/src/services/messages.ts +327 -0
- package/recipes/chatbot-supabase/packages/backend/supabase/functions/chat-stream/index.ts +347 -0
- package/recipes/chatbot-supabase/packages/backend/supabase/migrations/chatbot.sql +104 -0
- package/recipes/chatbot-supabase/recipe.json +79 -0
- package/recipes/chatbot-supabase@latest.zip +0 -0
- package/recipes/chatbot.zip +0 -0
- package/recipes/chatbot@latest.zip +0 -0
- package/recipes/image-analysis/packages/backend/convex/imageAnalysis/index.ts +2 -2
- package/recipes/image-analysis/packages/backend/convex/imageAnalysis.ts +0 -1
- package/recipes/image-analysis/recipe.json +15 -55
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/analysis-options-screen.tsx +304 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/camera.tsx +221 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/image-capture-screen.tsx +333 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/loading-screen.tsx +214 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/loading.tsx +191 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/results.tsx +137 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/trait-details.tsx +172 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/use-analysis-data.ts +160 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/use-results-screen.ts +151 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/achievement-badge.tsx +77 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/achievement-card.tsx +75 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/achievement-unlocked-modal.tsx +162 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/achievements-section.tsx +44 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/advice-list.tsx +42 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/circular-progress.tsx +233 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/content-card.tsx +38 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/error-state.tsx +42 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/index.ts +9 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/loading-state.tsx +26 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/profile-image.tsx +60 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/results-header.tsx +62 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/score-display.tsx +54 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/share-options-modal.tsx +110 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/traits-grid.tsx +74 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/config/analysis-config.ts +80 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/config/master-analysis-config.ts +157 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/hooks/index.ts +1 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/hooks/use-analysis.ts +38 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/hooks/use-image-analysis.ts +208 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/services/analysis-service.ts +262 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/services/share-service.ts +176 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/services/trait-details-service.ts +289 -0
- package/recipes/image-analysis-supabase/packages/backend/src/services/image-analyses.ts +132 -0
- package/recipes/image-analysis-supabase/packages/backend/supabase/functions/analyze-image/index.ts +312 -0
- package/recipes/image-analysis-supabase/packages/backend/supabase/migrations/image_analysis.sql +42 -0
- package/recipes/image-analysis-supabase/recipe.json +57 -0
- package/recipes/image-analysis-supabase@latest.zip +0 -0
- package/recipes/image-analysis@latest.zip +0 -0
- package/recipes/image-generator/apps/native/src/features/image-generator/app/index.tsx +16 -2
- package/recipes/image-generator/apps/native/src/features/image-generator/components/image-model-selector.tsx +11 -5
- package/recipes/image-generator/apps/native/src/features/image-generator/hooks/use-image-generator.ts +11 -5
- package/recipes/image-generator/packages/backend/convex/imageGeneration/index.ts +2 -2
- package/recipes/image-generator/recipe.json +16 -39
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/app/_layout.tsx +26 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/app/gallery.tsx +217 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/app/index.tsx +251 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/components/gallery-image.tsx +25 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/components/image-detail-modal.tsx +215 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/components/image-model-selector.tsx +216 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/components/image-placeholder.tsx +26 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/hooks/use-image-gallery.ts +71 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/hooks/use-image-generator-settings.ts +152 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/hooks/use-image-generator.ts +103 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/models/models.ts +66 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/services/image-gallery-service.ts +96 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/services/image-save-service.ts +120 -0
- package/recipes/image-generator-supabase/packages/backend/supabase/functions/generate-image/index.ts +291 -0
- package/recipes/image-generator-supabase/packages/backend/supabase/migrations/image_generator.sql +71 -0
- package/recipes/image-generator-supabase/recipe.json +59 -0
- package/recipes/image-generator-supabase@latest.zip +0 -0
- package/recipes/image-generator@latest.zip +0 -0
- package/recipes/ios-widget/recipe.json +15 -24
- package/recipes/ios-widget@latest.zip +0 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/analytics/index.ts +9 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/components/onboarding-with-analytics.tsx +141 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/components/onboarding.tsx +173 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/config/onboarding-flow-config.ts +189 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/demo-one/app/index.tsx +42 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/demo-one/data.ts +32 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/app/index.tsx +43 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/interactive-onboarding.tsx +222 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/ai-tone-step.tsx +133 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/currency-step.tsx +165 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-ai-step.tsx +199 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-chatbot-step.tsx +154 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-manual-step.tsx +156 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-scan-step.tsx +158 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/main-reason-step.tsx +139 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/notification-step.tsx +129 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/overspend-step.tsx +138 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/personalizing-step.tsx +190 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/rating-step.tsx +98 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/reminder-step.tsx +181 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/safety-step.tsx +110 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/struggle-step.tsx +139 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/welcome-step.tsx +217 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/ui/onboarding-header.tsx +58 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/constants.ts +179 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/hooks/use-onboarding-analytics.ts +323 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/services/onboarding-analytics.ts +432 -0
- package/recipes/onboarding/recipe.json +15 -0
- package/recipes/onboarding@latest.zip +0 -0
- package/recipes/payments/recipe.json +28 -61
- package/recipes/payments-supabase/apps/native/src/features/payments/README.md +200 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/app/local-paywall.tsx +194 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/app/remote-paywall.tsx +79 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/payment-initializer.tsx +95 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/paywall-error-state.tsx +60 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/paywall-local-mode.tsx +116 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/paywall-product-card.tsx +133 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/paywall-remote-mode.tsx +146 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/hooks/use-entitlement.ts +63 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/index.ts +8 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/services/revenuecat-adapter.ts +407 -0
- package/recipes/payments-supabase/packages/backend/src/services/payments.ts +201 -0
- package/recipes/payments-supabase/packages/backend/supabase/migrations/payments.sql +35 -0
- package/recipes/payments-supabase/recipe.json +51 -0
- package/recipes/payments-supabase@latest.zip +0 -0
- package/recipes/payments@latest.zip +0 -0
- package/recipes/quiz/apps/native/src/features/quiz/index.tsx +1 -2
- package/recipes/quiz/recipe.json +6 -9
- package/recipes/quiz@latest.zip +0 -0
- package/recipes/tracker-app/apps/native/src/features/tracker-app/app/index.tsx +1 -2
- package/recipes/tracker-app/recipe.json +7 -10
- package/recipes/tracker-app@latest.zip +0 -0
- package/recipes/voice-bot/recipe.json +8 -68
- package/recipes/voice-bot.zip +0 -0
- package/recipes/voice-bot@latest.zip +0 -0
- package/recipes/wake-word/recipe.json +10 -9
- package/recipes/wake-word.zip +0 -0
- package/recipes/wake-word@latest.zip +0 -0
- package/recipes/charts/apps/native/src/app/(root)/(protected)/charts/index.tsx +0 -3
- package/recipes/chatbot/packages/backend/convex/lib/rateLimit.ts +0 -100
- package/recipes/chatbot/packages/backend/convex/lib/telemetry.ts +0 -29
- package/recipes/chatbot/packages/backend/convex/ragKnowledge.ts +0 -0
- package/recipes/image-analysis/apps/native/assets/features/image-analyzer/front.jpg +0 -0
- package/recipes/image-analysis/apps/native/assets/features/image-analyzer/side.jpg +0 -0
- package/recipes/image-analysis/apps/native/assets/features/image-analyzer/threeQuarter.jpg +0 -0
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/_layout.tsx +0 -5
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/analysis-options.tsx +0 -50
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/camera.tsx +0 -2
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/index.tsx +0 -50
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/loading.tsx +0 -50
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/results.tsx +0 -2
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/trait-details.tsx +0 -3
- package/recipes/image-analysis/packages/backend/convex/imageAnalysisFunctions.ts +0 -325
- package/recipes/image-analysis/packages/backend/convex/lib/ai/imageAnalysisAdapter.ts +0 -200
- package/recipes/payments/apps/native/src/app/(root)/(protected)/paywall/index.tsx +0 -74
- package/recipes/payments/apps/native/src/app/(root)/(protected)/paywall/local.tsx +0 -25
- package/recipes/payments/apps/native/src/app/(root)/(protected)/paywall/remote.tsx +0 -23
- package/recipes/quiz/apps/native/src/app/(root)/(protected)/quiz/index.tsx +0 -47
- package/recipes/tracker-app/apps/native/src/app/(root)/(protected)/tracker-app/index.tsx +0 -1
- package/recipes/voice-bot/apps/native/src/app/(root)/(protected)/voice-bot/index.tsx +0 -27
- package/recipes/voice-bot/packages/backend/convex/router.ts +0 -81
- /package/recipes/{chatbot/apps/native/src/app/(root)/(protected) → chatbot-supabase/apps/native/src/app}/chatbot/index.tsx +0 -0
- /package/recipes/{image-generator/apps/native/src/app/(root)/(protected) → image-generator-supabase/apps/native/src/app}/image-generator/gallery.tsx +0 -0
- /package/recipes/{image-generator/apps/native/src/app/(root)/(protected) → image-generator-supabase/apps/native/src/app}/image-generator/index.tsx +0 -0
|
@@ -1,16 +1,43 @@
|
|
|
1
|
+
// vibefast license: c1e9fcd2-muhammad
|
|
1
2
|
import { Feather } from '@expo/vector-icons';
|
|
2
3
|
import React, { useCallback, useState } from 'react';
|
|
3
4
|
import {
|
|
4
5
|
type ImageStyle,
|
|
5
6
|
Pressable,
|
|
7
|
+
ScrollView,
|
|
8
|
+
Text,
|
|
6
9
|
type TextStyle,
|
|
7
10
|
View,
|
|
8
11
|
type ViewStyle,
|
|
9
12
|
} from 'react-native';
|
|
10
|
-
import SyntaxHighlighter from 'react-
|
|
13
|
+
import { Light as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
14
|
+
import js from 'react-syntax-highlighter/dist/esm/languages/hljs/javascript';
|
|
15
|
+
import ts from 'react-syntax-highlighter/dist/esm/languages/hljs/typescript';
|
|
16
|
+
import python from 'react-syntax-highlighter/dist/esm/languages/hljs/python';
|
|
17
|
+
import json from 'react-syntax-highlighter/dist/esm/languages/hljs/json';
|
|
18
|
+
import bash from 'react-syntax-highlighter/dist/esm/languages/hljs/bash';
|
|
19
|
+
import css from 'react-syntax-highlighter/dist/esm/languages/hljs/css';
|
|
20
|
+
import xml from 'react-syntax-highlighter/dist/esm/languages/hljs/xml';
|
|
11
21
|
|
|
12
22
|
import { translate } from '@/lib';
|
|
13
23
|
|
|
24
|
+
// Register languages for the Light build
|
|
25
|
+
SyntaxHighlighter.registerLanguage('javascript', js);
|
|
26
|
+
SyntaxHighlighter.registerLanguage('js', js);
|
|
27
|
+
SyntaxHighlighter.registerLanguage('typescript', ts);
|
|
28
|
+
SyntaxHighlighter.registerLanguage('ts', ts);
|
|
29
|
+
SyntaxHighlighter.registerLanguage('tsx', ts);
|
|
30
|
+
SyntaxHighlighter.registerLanguage('jsx', js);
|
|
31
|
+
SyntaxHighlighter.registerLanguage('python', python);
|
|
32
|
+
SyntaxHighlighter.registerLanguage('py', python);
|
|
33
|
+
SyntaxHighlighter.registerLanguage('json', json);
|
|
34
|
+
SyntaxHighlighter.registerLanguage('bash', bash);
|
|
35
|
+
SyntaxHighlighter.registerLanguage('sh', bash);
|
|
36
|
+
SyntaxHighlighter.registerLanguage('shell', bash);
|
|
37
|
+
SyntaxHighlighter.registerLanguage('css', css);
|
|
38
|
+
SyntaxHighlighter.registerLanguage('html', xml);
|
|
39
|
+
SyntaxHighlighter.registerLanguage('xml', xml);
|
|
40
|
+
|
|
14
41
|
type CodeBlockProps = {
|
|
15
42
|
containerStyle: ViewStyle | TextStyle | ImageStyle;
|
|
16
43
|
content: string;
|
|
@@ -26,44 +53,51 @@ type CodeBlockProps = {
|
|
|
26
53
|
onCopyCode: (code: string) => Promise<void>;
|
|
27
54
|
};
|
|
28
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Custom renderer for React Native - converts syntax highlighter output to Text components
|
|
58
|
+
*/
|
|
59
|
+
function createNativeRenderer(fontFamily: string, fontSize: number) {
|
|
60
|
+
return function renderer({
|
|
61
|
+
rows,
|
|
62
|
+
stylesheet,
|
|
63
|
+
}: {
|
|
64
|
+
rows: any[];
|
|
65
|
+
stylesheet: Record<string, any>;
|
|
66
|
+
}) {
|
|
67
|
+
return rows.map((row, i) => {
|
|
68
|
+
const children = row.children?.map((child: any, j: number) => {
|
|
69
|
+
if (child.type === 'text') {
|
|
70
|
+
return child.value;
|
|
71
|
+
}
|
|
72
|
+
const className = child.properties?.className?.[0] || '';
|
|
73
|
+
const style = stylesheet[className] || {};
|
|
74
|
+
return (
|
|
75
|
+
<Text
|
|
76
|
+
key={j}
|
|
77
|
+
style={{
|
|
78
|
+
fontFamily,
|
|
79
|
+
fontSize,
|
|
80
|
+
color: style.color,
|
|
81
|
+
fontWeight: style.fontWeight,
|
|
82
|
+
fontStyle: style.fontStyle,
|
|
83
|
+
}}
|
|
84
|
+
>
|
|
85
|
+
{child.children?.map((c: any) => c.value).join('') || ''}
|
|
86
|
+
</Text>
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<Text key={i} style={{ fontFamily, fontSize }}>
|
|
92
|
+
{children}
|
|
93
|
+
</Text>
|
|
94
|
+
);
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
29
99
|
/**
|
|
30
100
|
* CodeBlock component for rendering syntax-highlighted code with collapse/expand functionality.
|
|
31
|
-
*
|
|
32
|
-
* Features:
|
|
33
|
-
* - Syntax highlighting using react-native-syntax-highlighter
|
|
34
|
-
* - Copy to clipboard functionality
|
|
35
|
-
* - Collapse/expand animation with FlashList preparation
|
|
36
|
-
* - Smooth 220ms easeInEaseOut animation
|
|
37
|
-
* - Independent animation for multiple code blocks
|
|
38
|
-
*
|
|
39
|
-
* Requirements addressed:
|
|
40
|
-
* - 9.1: Prepare FlashList for layout animation before collapse
|
|
41
|
-
* - 9.2: Animate height change over 220ms with easeInEaseOut
|
|
42
|
-
* - 9.3: Animate each code block independently
|
|
43
|
-
* - 9.4: Restore full content with same animation timing
|
|
44
|
-
* - 9.5: Complete animation without interruption during scroll
|
|
45
|
-
*
|
|
46
|
-
* @param props - CodeBlock component props
|
|
47
|
-
* @returns Rendered code block with syntax highlighting and controls
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```tsx
|
|
51
|
-
* <CodeBlock
|
|
52
|
-
* containerStyle={styles.code_block}
|
|
53
|
-
* content="const hello = 'world';"
|
|
54
|
-
* language="javascript"
|
|
55
|
-
* codeSyntaxTheme={atomOneDark}
|
|
56
|
-
* monospaceFontFamily="Menlo"
|
|
57
|
-
* subtleText="#888"
|
|
58
|
-
* codeContentStyle={styles.codeContent}
|
|
59
|
-
* codeActionsContainerStyle={styles.actions}
|
|
60
|
-
* codeActionButtonBaseStyle={styles.button}
|
|
61
|
-
* codeToggleButtonSpacingStyle={styles.spacing}
|
|
62
|
-
* codeContentContainerStyle={styles.container}
|
|
63
|
-
* onCopyCode={copyToClipboard}
|
|
64
|
-
* onPrepareLayoutAnimation={prepareFlashList}
|
|
65
|
-
* />
|
|
66
|
-
* ```
|
|
67
101
|
*/
|
|
68
102
|
export const CodeBlock = React.memo(function CodeBlock({
|
|
69
103
|
containerStyle,
|
|
@@ -81,14 +115,12 @@ export const CodeBlock = React.memo(function CodeBlock({
|
|
|
81
115
|
}: CodeBlockProps) {
|
|
82
116
|
const [isCollapsed, setIsCollapsed] = useState(false);
|
|
83
117
|
|
|
84
|
-
/**
|
|
85
|
-
* Toggle collapsed state without animation.
|
|
86
|
-
* LayoutAnimation causes scroll jitter, so we disable it.
|
|
87
|
-
*/
|
|
88
118
|
const toggleCollapsed = useCallback(() => {
|
|
89
119
|
setIsCollapsed((prev) => !prev);
|
|
90
120
|
}, []);
|
|
91
121
|
|
|
122
|
+
const renderer = createNativeRenderer(monospaceFontFamily, 15);
|
|
123
|
+
|
|
92
124
|
return (
|
|
93
125
|
<View
|
|
94
126
|
style={[
|
|
@@ -146,18 +178,19 @@ export const CodeBlock = React.memo(function CodeBlock({
|
|
|
146
178
|
pointerEvents={isCollapsed ? 'none' : 'auto'}
|
|
147
179
|
>
|
|
148
180
|
{isCollapsed ? null : (
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
181
|
+
<ScrollView horizontal showsHorizontalScrollIndicator={false}>
|
|
182
|
+
<SyntaxHighlighter
|
|
183
|
+
language={language.length > 0 ? language : 'plaintext'}
|
|
184
|
+
style={codeSyntaxTheme}
|
|
185
|
+
renderer={renderer}
|
|
186
|
+
customStyle={{
|
|
187
|
+
...codeContentStyle,
|
|
188
|
+
backgroundColor: 'transparent',
|
|
189
|
+
}}
|
|
190
|
+
>
|
|
191
|
+
{content}
|
|
192
|
+
</SyntaxHighlighter>
|
|
193
|
+
</ScrollView>
|
|
161
194
|
)}
|
|
162
195
|
</View>
|
|
163
196
|
</View>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chatbot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "AI-powered chat assistant",
|
|
5
5
|
"copy": [
|
|
6
6
|
{
|
|
7
|
-
"from": "apps/native/src/app/
|
|
7
|
+
"from": "apps/native/src/app/chatbot",
|
|
8
8
|
"to": "apps/native/src/app/(root)/(protected)/chatbot"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"to": "apps/native/src/api-client/chatbot.ts"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"from": "packages/backend/convex/
|
|
20
|
-
"to": "packages/backend/convex/
|
|
19
|
+
"from": "packages/backend/convex/agents.ts",
|
|
20
|
+
"to": "packages/backend/convex/agents.ts"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"from": "packages/backend/convex/chatbotAgent.ts",
|
|
@@ -28,38 +28,19 @@
|
|
|
28
28
|
"to": "packages/backend/convex/chatbotHistory.ts"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
"from": "packages/backend/convex/
|
|
32
|
-
"to": "packages/backend/convex/
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"from": "packages/backend/convex/lib/rateLimit.ts",
|
|
36
|
-
"to": "packages/backend/convex/lib/rateLimit.ts"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"from": "packages/backend/convex/lib/telemetry.ts",
|
|
40
|
-
"to": "packages/backend/convex/lib/telemetry.ts"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"from": "packages/backend/convex/ragKnowledge.ts",
|
|
44
|
-
"to": "packages/backend/convex/ragKnowledge.ts"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"from": "packages/backend/convex/tools/index.ts",
|
|
48
|
-
"to": "packages/backend/convex/tools/index.ts"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"from": "packages/backend/convex/tools/knowledgeRetrieval.ts",
|
|
52
|
-
"to": "packages/backend/convex/tools/knowledgeRetrieval.ts"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"from": "packages/backend/convex/tools/tavilySearch.ts",
|
|
56
|
-
"to": "packages/backend/convex/tools/tavilySearch.ts"
|
|
31
|
+
"from": "packages/backend/convex/tools",
|
|
32
|
+
"to": "packages/backend/convex/tools"
|
|
57
33
|
},
|
|
58
34
|
{
|
|
59
|
-
"from": "packages/backend/convex/
|
|
60
|
-
"to": "packages/backend/convex/
|
|
35
|
+
"from": "packages/backend/convex/chatbot",
|
|
36
|
+
"to": "packages/backend/convex/chatbot"
|
|
61
37
|
}
|
|
62
38
|
],
|
|
39
|
+
"configuration": {
|
|
40
|
+
"apiClient": {
|
|
41
|
+
"exports": ["export { type ChatbotApi, chatbotApi } from './chatbot';"]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
63
44
|
"nav": {
|
|
64
45
|
"href": "/(root)/(protected)/chatbot",
|
|
65
46
|
"label": "AI Chatbot",
|
|
@@ -71,78 +52,31 @@
|
|
|
71
52
|
"expo": [
|
|
72
53
|
"convex",
|
|
73
54
|
"expo-clipboard",
|
|
55
|
+
"markdown-it",
|
|
74
56
|
"react-native-markdown-display",
|
|
75
|
-
"react-
|
|
76
|
-
"react-native-
|
|
77
|
-
|
|
78
|
-
"npm": [
|
|
79
|
-
"markdown-it@14.1.0",
|
|
80
|
-
"react-native-syntax-highlighter@2.1.0",
|
|
81
|
-
"react-syntax-highlighter@6.0.4"
|
|
57
|
+
"react-syntax-highlighter",
|
|
58
|
+
"react-native-reanimated",
|
|
59
|
+
"react-native-safe-area-context"
|
|
82
60
|
]
|
|
83
61
|
},
|
|
84
62
|
"env": [
|
|
85
63
|
{
|
|
86
64
|
"key": "OPENAI_API_KEY",
|
|
87
|
-
"description": "OpenAI API key
|
|
88
|
-
"example": "sk
|
|
89
|
-
"link": "https://platform.openai.com/
|
|
90
|
-
"file": "packages/backend/.env.local"
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
"key": "GOOGLE_GENERATIVE_AI_API_KEY",
|
|
94
|
-
"description": "Google Generative AI key that unlocks the Gemini-backed assistant.",
|
|
95
|
-
"example": "AIzaSyExampleGeneratedKey",
|
|
96
|
-
"link": "https://aistudio.google.com/api-keys",
|
|
97
|
-
"file": "packages/backend/.env.local"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"key": "TAVILY_API_KEY",
|
|
101
|
-
"description": "API key for Tavily web search results used by the agent tools.",
|
|
102
|
-
"example": "tavily_abc123",
|
|
103
|
-
"link": "https://app.tavily.com/",
|
|
104
|
-
"file": "packages/backend/.env.local"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"key": "CHAT_LATENCY_TELEMETRY_MODE",
|
|
108
|
-
"description": "Optional telemetry mode to sample chat latency (off | sample | debug).",
|
|
109
|
-
"example": "sample",
|
|
110
|
-
"file": "apps/native/.env.local"
|
|
65
|
+
"description": "OpenAI API key for chat completions",
|
|
66
|
+
"example": "sk-...",
|
|
67
|
+
"link": "https://platform.openai.com/api-keys",
|
|
68
|
+
"file": "packages/backend/.env.local",
|
|
69
|
+
"required": true
|
|
111
70
|
}
|
|
112
71
|
],
|
|
113
|
-
"configuration": {
|
|
114
|
-
"env": {
|
|
115
|
-
"client": {
|
|
116
|
-
"schema": [
|
|
117
|
-
" CHAT_LATENCY_TELEMETRY_MODE: z.enum(['off', 'sample', 'debug']).optional().default('off'),"
|
|
118
|
-
],
|
|
119
|
-
"env": [
|
|
120
|
-
" CHAT_LATENCY_TELEMETRY_MODE: process.env.CHAT_LATENCY_TELEMETRY_MODE ?? 'off',"
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
72
|
"manualSteps": [
|
|
126
73
|
{
|
|
127
|
-
"title": "
|
|
128
|
-
"description": "
|
|
129
|
-
"link": "https://platform.openai.com/account/api-keys"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"title": "Create a Google Generative AI key (optional, use Gemini or OpenAI)",
|
|
133
|
-
"description": "Enable Generative AI APIs and issue a new API key in Google AI Studio. You can use Gemini instead of OpenAI, or add both.",
|
|
134
|
-
"link": "https://aistudio.google.com/api-keys"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"title": "Create a Tavily search key (optional, for web search)",
|
|
138
|
-
"description": "Register at Tavily if you want web search tools for the chatbot.",
|
|
139
|
-
"link": "https://app.tavily.com/"
|
|
74
|
+
"title": "Configure Convex Environment Variables",
|
|
75
|
+
"description": "Run: npx convex env set OPENAI_API_KEY sk-your-key\\nOr set it in the Convex dashboard"
|
|
140
76
|
},
|
|
141
77
|
{
|
|
142
|
-
"title": "
|
|
143
|
-
"description": "
|
|
144
|
-
"file": ".env",
|
|
145
|
-
"content": "# Add one or both providers:\nOPENAI_API_KEY=sk-...\nGOOGLE_GENERATIVE_AI_API_KEY=...\n# Optional web search:\nTAVILY_API_KEY=...\n# Optional telemetry:\nCHAT_LATENCY_TELEMETRY_MODE=sample"
|
|
78
|
+
"title": "Deploy Convex Schema",
|
|
79
|
+
"description": "Run: npx convex dev\\nThis will sync the schema with Convex"
|
|
146
80
|
}
|
|
147
81
|
]
|
|
148
82
|
}
|