vibefast-cli 0.2.2 → 0.2.4

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 (118) hide show
  1. package/.wrangler/state/v3/r2/miniflare-R2BucketObject/d1cc388a1a0ef44dd5669fd1a165d168b61362136c8b5fa50aefd96c72688e54.sqlite +0 -0
  2. package/.wrangler/state/v3/r2/miniflare-R2BucketObject/d1cc388a1a0ef44dd5669fd1a165d168b61362136c8b5fa50aefd96c72688e54.sqlite-shm +0 -0
  3. package/.wrangler/state/v3/r2/miniflare-R2BucketObject/d1cc388a1a0ef44dd5669fd1a165d168b61362136c8b5fa50aefd96c72688e54.sqlite-wal +0 -0
  4. package/.wrangler/state/v3/r2/vibefast-recipes/blobs/177b5d7279681c1bec396cafe63779a2d89eaf538109e55733147727276e2b9f0000019a81f04ba2 +0 -0
  5. package/.wrangler/state/v3/r2/vibefast-recipes/blobs/4fe398bba6e2d5f13b569bc1be4244e696d86caa04c323db2d9fb0b9381c508f0000019a81f0503f +0 -0
  6. package/.wrangler/state/v3/r2/vibefast-recipes/blobs/f68f19a655380ac7fb575eb49c0623cde74046261ed89c498ba5107b8aacde9d0000019a81f05484 +0 -0
  7. package/DOCS-CLEANUP-SUMMARY.md +140 -0
  8. package/DOCS.md +141 -0
  9. package/IMPLEMENTATION-COMPLETE.md +6 -5
  10. package/MANUAL-STEPS-GUIDE.md +385 -0
  11. package/MANUAL-STEPS-USER-FLOW.md +231 -0
  12. package/PLAN-VS-IMPLEMENTATION.md +248 -0
  13. package/PUBLISHED-0.2.2.md +65 -0
  14. package/README.md +24 -2
  15. package/START-HERE.md +115 -0
  16. package/docs/next-steps.md +12 -0
  17. package/package.json +10 -1
  18. package/recipes/audio-recorder@latest.zip +0 -0
  19. package/recipes/charts/apps/native/src/app/charts/index.tsx +3 -0
  20. package/recipes/charts/apps/native/src/features/charts/app/preview.tsx +3 -0
  21. package/recipes/charts/apps/native/src/features/charts/components/area-chart.tsx +3 -0
  22. package/recipes/charts/apps/native/src/features/charts/components/bar-chart.tsx +3 -0
  23. package/recipes/charts/apps/native/src/features/charts/components/candlestick-chart.tsx +3 -0
  24. package/recipes/charts/apps/native/src/features/charts/components/chart-card.tsx +3 -0
  25. package/recipes/charts/apps/native/src/features/charts/components/column-chart.tsx +3 -0
  26. package/recipes/charts/apps/native/src/features/charts/components/doughnut-chart.tsx +3 -0
  27. package/recipes/charts/apps/native/src/features/charts/components/index.ts +3 -0
  28. package/recipes/charts/apps/native/src/features/charts/components/line-chart.tsx +3 -0
  29. package/recipes/charts/apps/native/src/features/charts/components/radar-chart.tsx +3 -0
  30. package/recipes/charts/apps/native/src/features/charts/components/radial-bar-chart.tsx +3 -0
  31. package/recipes/charts/apps/native/src/features/charts/components/stacked-area-chart.tsx +3 -0
  32. package/recipes/charts/apps/native/src/features/charts/components/stacked-bar-chart.tsx +3 -0
  33. package/recipes/charts/apps/native/src/features/charts/data/mock-data.ts +3 -0
  34. package/recipes/charts/apps/native/src/features/charts/types/index.ts +3 -0
  35. package/recipes/charts/recipe.json +7 -1
  36. package/recipes/charts@latest.zip +0 -0
  37. package/recipes/chatbot/apps/native/src/app/chatbot/index.tsx +1 -0
  38. package/recipes/chatbot/apps/native/src/features/chatbot/app/index.tsx +1 -0
  39. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-header-buttons.tsx +1 -0
  40. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-input-bar.tsx +1 -0
  41. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-markdown.tsx +1 -0
  42. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-message-bubble.tsx +1 -0
  43. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-settings-modal.tsx +1 -0
  44. package/recipes/chatbot/apps/native/src/features/chatbot/components/image-preview-list.tsx +1 -0
  45. package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/code-block.tsx +1 -0
  46. package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/index.ts +1 -0
  47. package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/table-renderer.tsx +1 -0
  48. package/recipes/chatbot/apps/native/src/features/chatbot/components/message-error-boundary.tsx +1 -0
  49. package/recipes/chatbot/apps/native/src/features/chatbot/components/message-list.tsx +1 -0
  50. package/recipes/chatbot/apps/native/src/features/chatbot/components/model-selector.tsx +1 -0
  51. package/recipes/chatbot/apps/native/src/features/chatbot/components/report-content-modal.tsx +1 -0
  52. package/recipes/chatbot/apps/native/src/features/chatbot/components/suggested-messages.tsx +1 -0
  53. package/recipes/chatbot/apps/native/src/features/chatbot/constants/models.ts +1 -0
  54. package/recipes/chatbot/apps/native/src/features/chatbot/constants/report-reasons.ts +1 -0
  55. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-attachment-cache.ts +1 -0
  56. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-chat-config.ts +1 -0
  57. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-chat-handlers.ts +1 -0
  58. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-chatbot-settings.ts +1 -0
  59. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-conversation.ts +1 -0
  60. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-image-picker.ts +1 -0
  61. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-keyboard-coordinator.ts +1 -0
  62. package/recipes/chatbot/apps/native/src/features/chatbot/hooks/use-smart-scroll-manager.ts +1 -0
  63. package/recipes/chatbot/apps/native/src/features/chatbot/models/index.ts +1 -0
  64. package/recipes/chatbot/apps/native/src/features/chatbot/models/models.ts +1 -0
  65. package/recipes/chatbot/apps/native/src/features/chatbot/models/providers.ts +1 -0
  66. package/recipes/chatbot/apps/native/src/features/chatbot/models/types.ts +1 -0
  67. package/recipes/chatbot/apps/native/src/features/chatbot/services/file-uploader.ts +1 -0
  68. package/recipes/chatbot/apps/native/src/features/chatbot/services/message-handler-service.ts +1 -0
  69. package/recipes/chatbot/apps/native/src/features/chatbot/types/index.ts +1 -0
  70. package/recipes/chatbot/apps/native/src/features/chatbot/utils/chat-telemetry.ts +1 -0
  71. package/recipes/chatbot/packages/backend/convex/agents.ts +116 -0
  72. package/recipes/chatbot/packages/backend/convex/chatbot/index.ts +30 -0
  73. package/recipes/chatbot/packages/backend/convex/chatbotAgent.ts +1085 -0
  74. package/recipes/chatbot/packages/backend/convex/chatbotHistory.ts +307 -0
  75. package/recipes/chatbot/packages/backend/convex/lib/rateLimit.ts +100 -0
  76. package/recipes/chatbot/packages/backend/convex/lib/telemetry.ts +29 -0
  77. package/recipes/chatbot/packages/backend/convex/ragKnowledge.ts +714 -0
  78. package/recipes/chatbot/packages/backend/convex/tools/index.ts +18 -0
  79. package/recipes/chatbot/packages/backend/convex/tools/knowledgeRetrieval.ts +92 -0
  80. package/recipes/chatbot/packages/backend/convex/tools/tavilySearch.ts +83 -0
  81. package/recipes/chatbot/packages/backend/convex/tools/userProfile.ts +72 -0
  82. package/recipes/chatbot/recipe.json +104 -1
  83. package/recipes/chatbot@latest.zip +0 -0
  84. package/recipes/image-generator/packages/backend/convex/imageGeneration/index.ts +12 -0
  85. package/recipes/image-generator/packages/backend/convex/imageGeneratorFunctions.ts +290 -0
  86. package/recipes/image-generator/recipe.json +41 -1
  87. package/recipes/image-generator@latest.zip +0 -0
  88. package/recipes/quiz@latest.zip +0 -0
  89. package/recipes/tracker-app@latest.zip +0 -0
  90. package/recipes/voice-bot/packages/backend/convex/router.ts +81 -0
  91. package/recipes/voice-bot/recipe.json +48 -1
  92. package/recipes/voice-bot@latest.zip +0 -0
  93. package/scripts/create-recipes.mjs +33 -1
  94. package/MONITORING-AND-ANNOUNCEMENT-GUIDE.md +0 -669
  95. package/PRE-PUBLISH-CHECKLIST.md +0 -558
  96. package/PUBLISHED-SUCCESS.md +0 -282
  97. package/READY-TO-PUBLISH.md +0 -419
  98. package/RECIPES-READY.md +0 -172
  99. package/cloudflare-worker/mini-native@latest.zip +0 -0
  100. package/cloudflare-worker/test-recipe/apps/native/src/app/mini/index.tsx +0 -15
  101. package/cloudflare-worker/test-recipe/recipe.json +0 -16
  102. package/text.md +0 -27
  103. /package/{AUTO-DETECT-DEPS.md → docs/archive/AUTO-DETECT-DEPS.md} +0 -0
  104. /package/{FINAL-PACKAGE-STRATEGY.md → docs/archive/FINAL-PACKAGE-STRATEGY.md} +0 -0
  105. /package/{FINAL-SIMPLE-PLAN.md → docs/archive/FINAL-SIMPLE-PLAN.md} +0 -0
  106. /package/{FINAL-STATUS.md → docs/archive/FINAL-STATUS.md} +0 -0
  107. /package/{FLOW-DIAGRAM.md → docs/archive/FLOW-DIAGRAM.md} +0 -0
  108. /package/{GOTCHAS-AND-RISKS.md → docs/archive/GOTCHAS-AND-RISKS.md} +0 -0
  109. /package/{IMPLEMENTATION-PLAN.md → docs/archive/IMPLEMENTATION-PLAN.md} +0 -0
  110. /package/{PLAN.md → docs/archive/PLAN.md} +0 -0
  111. /package/{PRODUCTION-READINESS.md → docs/archive/PRODUCTION-READINESS.md} +0 -0
  112. /package/{PRODUCTION-TEST-RESULTS.md → docs/archive/PRODUCTION-TEST-RESULTS.md} +0 -0
  113. /package/{SIMPLIFIED-PLAN.md → docs/archive/SIMPLIFIED-PLAN.md} +0 -0
  114. /package/{STATUS.md → docs/archive/STATUS.md} +0 -0
  115. /package/{SUCCESS.md → docs/archive/SUCCESS.md} +0 -0
  116. /package/{TEST-SUMMARY.md → docs/archive/TEST-SUMMARY.md} +0 -0
  117. /package/{TESTING-CHECKLIST.md → docs/archive/TESTING-CHECKLIST.md} +0 -0
  118. /package/{USER-MODIFICATIONS.md → docs/archive/USER-MODIFICATIONS.md} +0 -0
@@ -10,6 +10,14 @@
10
10
  {
11
11
  "from": "apps/native/src/features/image-generator",
12
12
  "to": "apps/native/src/features/image-generator"
13
+ },
14
+ {
15
+ "from": "packages/backend/convex/imageGeneration/index.ts",
16
+ "to": "packages/backend/convex/imageGeneration/index.ts"
17
+ },
18
+ {
19
+ "from": "packages/backend/convex/imageGeneratorFunctions.ts",
20
+ "to": "packages/backend/convex/imageGeneratorFunctions.ts"
13
21
  }
14
22
  ],
15
23
  "nav": {
@@ -18,5 +26,37 @@
18
26
  "icon": "🎨",
19
27
  "color": "#A855F7"
20
28
  },
21
- "target": "native"
29
+ "target": "native",
30
+ "env": [
31
+ {
32
+ "key": "OPENAI_API_KEY",
33
+ "description": "OpenAI key to call DALL·E or other text-to-image models.",
34
+ "example": "sk-abc123def456",
35
+ "link": "https://platform.openai.com/account/api-keys"
36
+ },
37
+ {
38
+ "key": "GEMINI_API_KEY",
39
+ "description": "Google Generative AI key used to access Gemini image models.",
40
+ "example": "AIzaSyExampleGeminiKey",
41
+ "link": "https://console.cloud.google.com/apis/credentials"
42
+ }
43
+ ],
44
+ "manualSteps": [
45
+ {
46
+ "title": "Create an OpenAI API key",
47
+ "description": "Sign into the OpenAI dashboard and create a server API key for image generation.",
48
+ "link": "https://platform.openai.com/account/api-keys"
49
+ },
50
+ {
51
+ "title": "Create a Gemini API key",
52
+ "description": "Enable Generative AI APIs in Google Cloud and copy a key for Gemini image models.",
53
+ "link": "https://console.cloud.google.com/apis/credentials"
54
+ },
55
+ {
56
+ "title": "Store the keys in .env",
57
+ "description": "Add whichever providers you plan to use to your environment so Convex can authenticate.",
58
+ "file": ".env",
59
+ "content": "OPENAI_API_KEY=sk-...\nGEMINI_API_KEY=AIzaSy...\n"
60
+ }
61
+ ]
22
62
  }
Binary file
Binary file
Binary file
@@ -0,0 +1,81 @@
1
+ import { httpRouter } from 'convex/server';
2
+
3
+ import { httpAction } from './_generated/server';
4
+
5
+ const http = httpRouter();
6
+
7
+ const ELEVENLABS_TOKEN_ENDPOINT =
8
+ 'https://api.elevenlabs.io/v1/convai/conversation/token';
9
+
10
+ const fetchElevenLabsConversationToken = httpAction(
11
+ async (_ctx, request): Promise<Response> => {
12
+ const apiKey = process.env.ELEVENLABS_API_KEY;
13
+ if (!apiKey) {
14
+ return new Response(
15
+ JSON.stringify({
16
+ error: 'ELEVENLABS_API_KEY is not configured on the backend',
17
+ }),
18
+ {
19
+ status: 500,
20
+ headers: { 'content-type': 'application/json' },
21
+ },
22
+ );
23
+ }
24
+
25
+ const url = new URL(request.url);
26
+ const agentId = url.searchParams.get('agent_id');
27
+ if (!agentId) {
28
+ return new Response(
29
+ JSON.stringify({ error: 'agent_id query parameter is required' }),
30
+ {
31
+ status: 400,
32
+ headers: { 'content-type': 'application/json' },
33
+ },
34
+ );
35
+ }
36
+
37
+ const upstreamUrl = new URL(ELEVENLABS_TOKEN_ENDPOINT);
38
+ url.searchParams.forEach((value, key) => {
39
+ upstreamUrl.searchParams.set(key, value);
40
+ });
41
+
42
+ try {
43
+ const upstreamResponse = await fetch(upstreamUrl, {
44
+ method: 'GET',
45
+ headers: {
46
+ 'xi-api-key': apiKey,
47
+ accept: 'application/json',
48
+ },
49
+ });
50
+
51
+ const payload = await upstreamResponse.text();
52
+ return new Response(payload, {
53
+ status: upstreamResponse.status,
54
+ headers: {
55
+ 'content-type':
56
+ upstreamResponse.headers.get('content-type') || 'application/json',
57
+ },
58
+ });
59
+ } catch (error) {
60
+ console.error(
61
+ '[voice.token] Failed to fetch ElevenLabs conversation token',
62
+ error,
63
+ );
64
+ return new Response(
65
+ JSON.stringify({ error: 'Failed to fetch ElevenLabs token' }),
66
+ {
67
+ status: 502,
68
+ headers: { 'content-type': 'application/json' },
69
+ },
70
+ );
71
+ }
72
+ },
73
+ );
74
+
75
+ http.route({
76
+ path: '/voice/conversation-token',
77
+ method: 'GET',
78
+ handler: fetchElevenLabsConversationToken,
79
+ });
80
+
81
+ export default http;
@@ -10,6 +10,10 @@
10
10
  {
11
11
  "from": "apps/native/src/features/voice-bot",
12
12
  "to": "apps/native/src/features/voice-bot"
13
+ },
14
+ {
15
+ "from": "packages/backend/convex/router.ts",
16
+ "to": "packages/backend/convex/router.ts"
13
17
  }
14
18
  ],
15
19
  "nav": {
@@ -18,5 +22,48 @@
18
22
  "icon": "🗣️",
19
23
  "color": "#14B8A6"
20
24
  },
21
- "target": "native"
25
+ "target": "native",
26
+ "dependencies": {
27
+ "expo": [
28
+ "@elevenlabs/react-native",
29
+ "@livekit/react-native",
30
+ "@livekit/react-native-webrtc",
31
+ "@livekit/react-native-expo-plugin",
32
+ "@config-plugins/react-native-webrtc"
33
+ ]
34
+ },
35
+ "env": [
36
+ {
37
+ "key": "ELEVENLABS_API_KEY",
38
+ "description": "API key for ElevenLabs Conversational AI (used by the backend token route).",
39
+ "example": "elevenlabs_api_key_example",
40
+ "link": "https://elevenlabs.io/account"
41
+ },
42
+ {
43
+ "key": "ELEVENLABS_AGENT_ID",
44
+ "description": "Agent ID from your ElevenLabs Conversational AI agent configuration.",
45
+ "example": "agent-abc123",
46
+ "link": "https://elevenlabs.io/"
47
+ }
48
+ ],
49
+ "manualSteps": [
50
+ {
51
+ "title": "Create an ElevenLabs Conversational AI agent",
52
+ "description": "Sign up at ElevenLabs, enable the Conversational AI tab, and provision an agent with speech capabilities."
53
+ },
54
+ {
55
+ "title": "Copy your agent ID and API key",
56
+ "description": "Copy the agent ID and the API key from the ElevenLabs dashboard so the backend token route can authenticate."
57
+ },
58
+ {
59
+ "title": "Store env variables",
60
+ "description": "Add the agent ID and API key to your `.env` file to unlock the voice route.",
61
+ "file": ".env",
62
+ "content": "ELEVENLABS_AGENT_ID=agent-...\nELEVENLABS_API_KEY=elevenlabs_...\n"
63
+ },
64
+ {
65
+ "title": "Install native dependencies and build a dev client",
66
+ "description": "Voice bot requires a dev client (WebRTC/native modules), so run `pnpx expo prebuild` and start a native build (`pnpm ios -d` or `pnpm android -d`)."
67
+ }
68
+ ]
22
69
  }
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)