vibefast-cli 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/DOCS-CLEANUP-SUMMARY.md +140 -0
  2. package/DOCS.md +141 -0
  3. package/IMPLEMENTATION-COMPLETE.md +6 -5
  4. package/MANUAL-STEPS-GUIDE.md +385 -0
  5. package/MANUAL-STEPS-USER-FLOW.md +231 -0
  6. package/PLAN-VS-IMPLEMENTATION.md +248 -0
  7. package/PUBLISHED-0.2.2.md +65 -0
  8. package/README.md +24 -2
  9. package/START-HERE.md +115 -0
  10. package/docs/next-steps.md +12 -0
  11. package/package.json +10 -1
  12. package/recipes/audio-recorder@latest.zip +0 -0
  13. package/recipes/charts/apps/native/src/app/charts/index.tsx +3 -0
  14. package/recipes/charts/apps/native/src/features/charts/app/preview.tsx +3 -0
  15. package/recipes/charts/apps/native/src/features/charts/components/area-chart.tsx +3 -0
  16. package/recipes/charts/apps/native/src/features/charts/components/bar-chart.tsx +3 -0
  17. package/recipes/charts/apps/native/src/features/charts/components/candlestick-chart.tsx +3 -0
  18. package/recipes/charts/apps/native/src/features/charts/components/chart-card.tsx +3 -0
  19. package/recipes/charts/apps/native/src/features/charts/components/column-chart.tsx +3 -0
  20. package/recipes/charts/apps/native/src/features/charts/components/doughnut-chart.tsx +3 -0
  21. package/recipes/charts/apps/native/src/features/charts/components/index.ts +3 -0
  22. package/recipes/charts/apps/native/src/features/charts/components/line-chart.tsx +3 -0
  23. package/recipes/charts/apps/native/src/features/charts/components/radar-chart.tsx +3 -0
  24. package/recipes/charts/apps/native/src/features/charts/components/radial-bar-chart.tsx +3 -0
  25. package/recipes/charts/apps/native/src/features/charts/components/stacked-area-chart.tsx +3 -0
  26. package/recipes/charts/apps/native/src/features/charts/components/stacked-bar-chart.tsx +3 -0
  27. package/recipes/charts/apps/native/src/features/charts/data/mock-data.ts +3 -0
  28. package/recipes/charts/apps/native/src/features/charts/types/index.ts +3 -0
  29. package/recipes/charts/recipe.json +7 -1
  30. package/recipes/charts@latest.zip +0 -0
  31. package/recipes/chatbot/apps/native/src/app/chatbot/index.tsx +1 -0
  32. package/recipes/chatbot/apps/native/src/features/chatbot/app/index.tsx +1 -0
  33. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-header-buttons.tsx +1 -0
  34. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-input-bar.tsx +1 -0
  35. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-markdown.tsx +1 -0
  36. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-message-bubble.tsx +1 -0
  37. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-settings-modal.tsx +1 -0
  38. package/recipes/chatbot/apps/native/src/features/chatbot/components/image-preview-list.tsx +1 -0
  39. package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/code-block.tsx +1 -0
  40. package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/index.ts +1 -0
  41. package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/table-renderer.tsx +1 -0
  42. package/recipes/chatbot/apps/native/src/features/chatbot/components/message-error-boundary.tsx +1 -0
  43. package/recipes/chatbot/apps/native/src/features/chatbot/components/message-list.tsx +1 -0
  44. package/recipes/chatbot/apps/native/src/features/chatbot/components/model-selector.tsx +1 -0
  45. package/recipes/chatbot/apps/native/src/features/chatbot/components/report-content-modal.tsx +1 -0
  46. package/recipes/chatbot/apps/native/src/features/chatbot/components/suggested-messages.tsx +1 -0
  47. package/recipes/chatbot/apps/native/src/features/chatbot/constants/models.ts +1 -0
  48. package/recipes/chatbot/apps/native/src/features/chatbot/constants/report-reasons.ts +1 -0
  49. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-attachment-cache.ts +1 -0
  50. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-chat-config.ts +1 -0
  51. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-chat-handlers.ts +1 -0
  52. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-chatbot-settings.ts +1 -0
  53. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-conversation.ts +1 -0
  54. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-image-picker.ts +1 -0
  55. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-keyboard-coordinator.ts +1 -0
  56. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-smart-scroll-manager.ts +1 -0
  57. package/recipes/chatbot/apps/native/src/features/chatbot/models/index.ts +1 -0
  58. package/recipes/chatbot/apps/native/src/features/chatbot/models/models.ts +1 -0
  59. package/recipes/chatbot/apps/native/src/features/chatbot/models/providers.ts +1 -0
  60. package/recipes/chatbot/apps/native/src/features/chatbot/models/types.ts +1 -0
  61. package/recipes/chatbot/apps/native/src/features/chatbot/services/file-uploader.ts +1 -0
  62. package/recipes/chatbot/apps/native/src/features/chatbot/services/message-handler-service.ts +1 -0
  63. package/recipes/chatbot/apps/native/src/features/chatbot/types/index.ts +1 -0
  64. package/recipes/chatbot/apps/native/src/features/chatbot/utils/chat-telemetry.ts +1 -0
  65. package/recipes/chatbot/packages/backend/convex/chatbot/index.ts +30 -0
  66. package/recipes/chatbot/recipe.json +16 -1
  67. package/recipes/chatbot@latest.zip +0 -0
  68. package/recipes/image-generator@latest.zip +0 -0
  69. package/recipes/quiz@latest.zip +0 -0
  70. package/recipes/tracker-app@latest.zip +0 -0
  71. package/recipes/voice-bot@latest.zip +0 -0
  72. package/scripts/create-recipes.mjs +33 -1
  73. package/MONITORING-AND-ANNOUNCEMENT-GUIDE.md +0 -669
  74. package/PRE-PUBLISH-CHECKLIST.md +0 -558
  75. package/PUBLISHED-SUCCESS.md +0 -282
  76. package/READY-TO-PUBLISH.md +0 -419
  77. package/RECIPES-READY.md +0 -172
  78. package/cloudflare-worker/mini-native@latest.zip +0 -0
  79. package/cloudflare-worker/test-recipe/apps/native/src/app/mini/index.tsx +0 -15
  80. package/cloudflare-worker/test-recipe/recipe.json +0 -16
  81. package/text.md +0 -27
  82. /package/{AUTO-DETECT-DEPS.md → docs/archive/AUTO-DETECT-DEPS.md} +0 -0
  83. /package/{FINAL-PACKAGE-STRATEGY.md → docs/archive/FINAL-PACKAGE-STRATEGY.md} +0 -0
  84. /package/{FINAL-SIMPLE-PLAN.md → docs/archive/FINAL-SIMPLE-PLAN.md} +0 -0
  85. /package/{FINAL-STATUS.md → docs/archive/FINAL-STATUS.md} +0 -0
  86. /package/{FLOW-DIAGRAM.md → docs/archive/FLOW-DIAGRAM.md} +0 -0
  87. /package/{GOTCHAS-AND-RISKS.md → docs/archive/GOTCHAS-AND-RISKS.md} +0 -0
  88. /package/{IMPLEMENTATION-PLAN.md → docs/archive/IMPLEMENTATION-PLAN.md} +0 -0
  89. /package/{PLAN.md → docs/archive/PLAN.md} +0 -0
  90. /package/{PRODUCTION-READINESS.md → docs/archive/PRODUCTION-READINESS.md} +0 -0
  91. /package/{PRODUCTION-TEST-RESULTS.md → docs/archive/PRODUCTION-TEST-RESULTS.md} +0 -0
  92. /package/{SIMPLIFIED-PLAN.md → docs/archive/SIMPLIFIED-PLAN.md} +0 -0
  93. /package/{STATUS.md → docs/archive/STATUS.md} +0 -0
  94. /package/{SUCCESS.md → docs/archive/SUCCESS.md} +0 -0
  95. /package/{TEST-SUMMARY.md → docs/archive/TEST-SUMMARY.md} +0 -0
  96. /package/{TESTING-CHECKLIST.md → docs/archive/TESTING-CHECKLIST.md} +0 -0
  97. /package/{USER-MODIFICATIONS.md → docs/archive/USER-MODIFICATIONS.md} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibefast-cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "CLI for installing VibeFast features into your monorepo",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,6 +21,15 @@
21
21
  ],
22
22
  "author": "VibeFast",
23
23
  "license": "MIT",
24
+ "homepage": "https://github.com/vibefast/vibefast-cli#readme",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/vibefast/vibefast-cli.git"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/vibefast/vibefast-cli/issues",
31
+ "email": "support@vibefast.pro"
32
+ },
24
33
  "dependencies": {
25
34
  "commander": "^12.0.0",
26
35
  "picocolors": "^1.0.0",
Binary file
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import ChartPreviewScreen from '@/features/charts/app/preview';
2
5
 
3
6
  export default ChartPreviewScreen;
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import type React from 'react';
2
5
  import { FlatList } from 'react-native';
3
6
 
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import type { ViewStyle } from 'react-native';
2
5
 
3
6
  import { LineChart } from './line-chart';
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import { Canvas, Group, RoundedRect } from '@shopify/react-native-skia';
2
5
  import React, { useEffect, useState } from 'react';
3
6
  import { type LayoutChangeEvent, View, type ViewStyle } from 'react-native';
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import {
2
5
  Canvas,
3
6
  Group,
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import type React from 'react';
2
5
  import { Dimensions, View } from 'react-native';
3
6
 
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import { Canvas, Group, RoundedRect } from '@shopify/react-native-skia';
2
5
  import React, { useEffect, useState } from 'react';
3
6
  import { type LayoutChangeEvent, View, type ViewStyle } from 'react-native';
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import {
2
5
  Canvas,
3
6
  Group,
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  export { AreaChart } from './area-chart';
2
5
  export { BarChart } from './bar-chart';
3
6
  export { CandlestickChart } from './candlestick-chart';
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import {
2
5
  Canvas,
3
6
  Circle,
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import {
2
5
  Canvas,
3
6
  Circle as SkCircle,
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import {
2
5
  Canvas,
3
6
  Group,
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import {
2
5
  Canvas,
3
6
  Group,
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  import { Canvas, Group, RoundedRect } from '@shopify/react-native-skia';
2
5
  import React, { useEffect, useState } from 'react';
3
6
  import { type LayoutChangeEvent, View, type ViewStyle } from 'react-native';
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  export const salesData = [
2
5
  { id: '1', label: 'Jan', value: 3500, color: '#3B82F6' },
3
6
  { id: '2', label: 'Feb', value: 4200, color: '#10B981' },
@@ -1,3 +1,6 @@
1
+ // vibefast license: c1e9fcd2-muhammad
2
+ // vibefast license: c1e9fcd2-muhammad
3
+ // vibefast license: c1e9fcd2-muhammad
1
4
  export type ChartData = {
2
5
  value: number;
3
6
  label: string;
@@ -18,5 +18,11 @@
18
18
  "icon": "📊",
19
19
  "color": "#6366F1"
20
20
  },
21
- "target": "native"
21
+ "target": "native",
22
+ "dependencies": {
23
+ "expo": [
24
+ "@shopify/react-native-skia",
25
+ "react-native-svg"
26
+ ]
27
+ }
22
28
  }
Binary file
@@ -1 +1,2 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  export { default } from '@/features/chatbot/app';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { useAuthToken } from '@convex-dev/auth/react';
2
3
  import { api } from '@vibefast/backend/_generated/api';
3
4
  import type { Id } from '@vibefast/backend/_generated/dataModel';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type React from 'react';
2
3
  import { View } from 'react-native';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { AntDesign, Feather } from '@expo/vector-icons';
2
3
  import type React from 'react';
3
4
  import { useCallback, useMemo, useRef, useState } from 'react';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  /**
2
3
  * ChatMarkdown component for rendering markdown content in chat messages.
3
4
  *
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { Feather, Ionicons } from '@expo/vector-icons';
2
3
  import type { Id } from '@vibefast/backend/_generated/dataModel';
3
4
  import type { Message } from 'ai'; // Base Message type
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import React from 'react';
2
3
  import { View } from 'react-native';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { Feather } from '@expo/vector-icons';
2
3
  import type React from 'react';
3
4
  import { ActivityIndicator, ScrollView, View } from 'react-native';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { Feather } from '@expo/vector-icons';
2
3
  import React, { useCallback, useState } from 'react';
3
4
  import {
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  /**
2
3
  * Markdown rendering components for chatbot messages.
3
4
  *
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import React from 'react';
2
3
  import { ScrollView, View, type ViewStyle } from 'react-native';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import React from 'react';
2
3
  import { View } from 'react-native';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { FlashListRef } from '@shopify/flash-list';
2
3
  import { FlashList } from '@shopify/flash-list';
3
4
  import type { Message } from 'ai';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { Feather } from '@expo/vector-icons';
2
3
  import type React from 'react';
3
4
  import { Alert, ScrollView, View } from 'react-native';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import React, { useState } from 'react';
2
3
  import { View } from 'react-native';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type React from 'react';
2
3
  import { useCallback } from 'react';
3
4
  import { ScrollView, View } from 'react-native';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  // DEPRECATED: This file has been moved to src/features/chatbot/models/
2
3
  // Please import from '@/features/chatbot/models' instead
3
4
  // This file is kept for backward compatibility
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  export const REPORT_REASONS = [
2
3
  { label: 'Inaccurate Information', value: 'inaccurate' },
3
4
  { label: 'Offensive Content', value: 'offensive' },
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { Id } from '@vibefast/backend/_generated/dataModel';
2
3
  import { useCallback, useEffect, useRef } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { Id } from '@vibefast/backend/_generated/dataModel';
2
3
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { Id } from '@vibefast/backend/_generated/dataModel';
2
3
  import React, { useCallback, useMemo, useState } from 'react';
3
4
  import { Alert, Keyboard } from 'react-native';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { useCallback, useEffect, useState } from 'react';
2
3
 
3
4
  import { defaultCacheService } from '@/core/cache';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { Id } from '@vibefast/backend/_generated/dataModel';
2
3
  import { useEffect, useMemo, useState } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import * as ImagePicker from 'expo-image-picker';
2
3
  import { useCallback } from 'react';
3
4
  import { Alert } from 'react-native';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { useCallback, useEffect, useRef } from 'react';
2
3
  import { Keyboard } from 'react-native';
3
4
  import {
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { FlashListRef } from '@shopify/flash-list';
2
3
  import { useCallback, useEffect, useMemo, useRef } from 'react';
3
4
  import type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  // Import directly to avoid circular dependencies
2
3
  import { DEFAULT_MODELS, MODELS } from './models';
3
4
  import type { ModelConfig, ModelId, Provider } from './types';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { ModelConfig, Provider } from './types';
2
3
 
3
4
  export const MODELS: ModelConfig[] = [
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type React from 'react';
2
3
 
3
4
  import { ClaudeIcon } from '@/components/ui/icons/claude';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  export type Provider = 'claude' | 'openai' | 'gemini';
2
3
 
3
4
  export type ModelCategory = 'free' | 'premium' | 'specialized';
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import { manipulateAsync, SaveFormat } from 'expo-image-manipulator';
2
3
  import { Image } from 'react-native';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { Id } from '@vibefast/backend/_generated/dataModel';
2
3
  import { Alert } from 'react-native';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { Id } from '@vibefast/backend/_generated/dataModel';
2
3
  import type { Message } from 'ai';
3
4
 
@@ -1,3 +1,4 @@
1
+ // vibefast license: c1e9fcd2-muhammad
1
2
  import type { TelemetryMode } from '@/core/config';
2
3
  import { getChatTelemetryMode } from '@/core/config/telemetry';
3
4
 
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Chatbot Domain Aggregator
3
+ *
4
+ * This module serves as the single entry point for all chatbot-related
5
+ * Convex functions. It re-exports functions from the underlying modules
6
+ * to decouple the frontend from the internal file structure.
7
+ *
8
+ * Benefits:
9
+ * - Frontend only imports from this aggregator via the gateway
10
+ * - Backend refactors don't cascade to frontend
11
+ * - Clear domain boundaries
12
+ */
13
+
14
+ // Agent functions (streaming, session management)
15
+ export {
16
+ getAgentSession,
17
+ getAgentStreamBody,
18
+ startAgentStream,
19
+ } from '../chatbotAgent';
20
+
21
+ // History functions (messages, conversations)
22
+ export {
23
+ clearConversationMessages,
24
+ createConversation,
25
+ deleteUserMessage,
26
+ getOrCreateDefaultConversation,
27
+ listMessages,
28
+ storeFinalBotMessage,
29
+ storeMessage,
30
+ } from '../chatbotHistory';
@@ -10,6 +10,10 @@
10
10
  {
11
11
  "from": "apps/native/src/features/chatbot",
12
12
  "to": "apps/native/src/features/chatbot"
13
+ },
14
+ {
15
+ "from": "packages/backend/convex/chatbot",
16
+ "to": "packages/backend/convex/chatbot"
13
17
  }
14
18
  ],
15
19
  "nav": {
@@ -18,5 +22,16 @@
18
22
  "icon": "💬",
19
23
  "color": "#F43F5E"
20
24
  },
21
- "target": "native"
25
+ "target": "native",
26
+ "dependencies": {
27
+ "expo": [
28
+ "convex",
29
+ "expo-clipboard",
30
+ "markdown-it",
31
+ "react-native-markdown-display",
32
+ "react-syntax-highlighter",
33
+ "react-native-reanimated",
34
+ "react-native-safe-area-context"
35
+ ]
36
+ }
22
37
  }
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -17,6 +17,9 @@ const features = [
17
17
  icon: '📊',
18
18
  description: 'Beautiful data visualization with charts',
19
19
  color: '#6366F1',
20
+ dependencies: {
21
+ expo: ['@shopify/react-native-skia', 'react-native-svg'],
22
+ },
20
23
  },
21
24
  {
22
25
  name: 'chatbot',
@@ -24,6 +27,17 @@ const features = [
24
27
  icon: '💬',
25
28
  description: 'AI-powered chat assistant',
26
29
  color: '#F43F5E',
30
+ dependencies: {
31
+ expo: [
32
+ 'convex',
33
+ 'expo-clipboard',
34
+ 'markdown-it',
35
+ 'react-native-markdown-display',
36
+ 'react-syntax-highlighter',
37
+ 'react-native-reanimated',
38
+ 'react-native-safe-area-context',
39
+ ],
40
+ },
27
41
  },
28
42
  {
29
43
  name: 'voice-bot',
@@ -97,7 +111,7 @@ async function createRecipe(feature) {
97
111
  });
98
112
  console.log(` ✓ Copied app route`);
99
113
  }
100
-
114
+
101
115
  // Check if feature components exist
102
116
  if (await exists(featurePath)) {
103
117
  const destFeaturePath = join(recipeDir, 'apps/native/src/features', feature.name);
@@ -110,6 +124,19 @@ async function createRecipe(feature) {
110
124
  console.log(` ✓ Copied feature components`);
111
125
  }
112
126
 
127
+ // Check if Convex backend exists for this feature
128
+ const convexPath = join(monorepoPath, 'packages/backend/convex', feature.name);
129
+ if (await exists(convexPath)) {
130
+ const destConvexPath = join(recipeDir, 'packages/backend/convex', feature.name);
131
+ await mkdir(dirname(destConvexPath), { recursive: true });
132
+ await cp(convexPath, destConvexPath, { recursive: true });
133
+ copySpecs.push({
134
+ from: `packages/backend/convex/${feature.name}`,
135
+ to: `packages/backend/convex/${feature.name}`,
136
+ });
137
+ console.log(` ✓ Copied Convex backend`);
138
+ }
139
+
113
140
  if (copySpecs.length === 0) {
114
141
  console.log(` ⚠️ No files found for ${feature.name}, skipping...`);
115
142
  return null;
@@ -130,6 +157,11 @@ async function createRecipe(feature) {
130
157
  target: 'native',
131
158
  };
132
159
 
160
+ // Add dependencies if defined
161
+ if (feature.dependencies) {
162
+ manifest.dependencies = feature.dependencies;
163
+ }
164
+
133
165
  await writeFile(
134
166
  join(recipeDir, 'recipe.json'),
135
167
  JSON.stringify(manifest, null, 2)