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
package/RECIPES-READY.md DELETED
@@ -1,172 +0,0 @@
1
- # 🎉 All Recipes Created and Uploaded!
2
-
3
- ## ✅ What's Done
4
-
5
- Successfully created and uploaded **7 production-ready recipes** to R2:
6
-
7
- 1. **charts** - Beautiful data visualization with charts
8
- 2. **chatbot** - AI-powered chat assistant
9
- 3. **voice-bot** - Real-time voice conversations with AI
10
- 4. **image-generator** - AI-powered image generation
11
- 5. **audio-recorder** - Record and manage voice notes
12
- 6. **quiz** - Interactive quiz feature
13
- 7. **tracker-app** - Track habits and activities
14
-
15
- ## 📦 Recipe Details
16
-
17
- Each recipe includes:
18
- - ✅ App route files (`apps/native/src/app/...`)
19
- - ✅ Feature components (`apps/native/src/features/...`)
20
- - ✅ Proper manifest with navigation config
21
- - ✅ Version 1.0.0
22
- - ✅ Uploaded to R2 as `<feature>@latest.zip`
23
-
24
- ## 🧪 Testing
25
-
26
- The recipes are ready to install into **customer projects**. They cannot be installed into the source monorepo because the features already exist there.
27
-
28
- ### Test in a Fresh Project
29
-
30
- To test the full installation flow:
31
-
32
- 1. **Create a test project** (or use a customer's project)
33
- 2. **Add VibeFast signature:**
34
- ```bash
35
- mkdir -p .vibefast
36
- echo '{"name":"vibefast","version":"1.0.0","targets":["native","web"]}' > .vibefast/starter.json
37
- ```
38
-
39
- 3. **Add navigation markers** in `apps/native/src/app/(root)/(protected)/(tabs)/index.tsx`:
40
- ```tsx
41
- const features = [
42
- // --- @vibefast:navigation:start ---
43
- {/* CLI will inject feature links here */}
44
- // --- @vibefast:navigation:end ---
45
- // ... existing features
46
- ];
47
- ```
48
-
49
- 4. **Install features:**
50
- ```bash
51
- export VIBEFAST_WORKER_URL=https://vibefast-cli-worker.mzafar611.workers.dev
52
- vf login --token TEST_TOKEN_12345
53
- vf list
54
- vf add charts
55
- vf add chatbot
56
- # etc...
57
- ```
58
-
59
- ## 📋 Available Commands
60
-
61
- ```bash
62
- # List all recipes
63
- vf list
64
-
65
- # Output:
66
- # ℹ Native (Expo) features:
67
- # • audio-recorder - audio-recorder feature
68
- # • charts - charts feature
69
- # • chatbot - chatbot feature
70
- # • image-generator - image-generator feature
71
- # • quiz - quiz feature
72
- # • tracker-app - tracker-app feature
73
- # • voice-bot - voice-bot feature
74
- ```
75
-
76
- ## 🔄 Updating Recipes
77
-
78
- When you update a feature in the source monorepo:
79
-
80
- ```bash
81
- cd vibefast-cli/scripts
82
- node create-recipes.mjs
83
- cd ../recipes
84
- ./upload-all.sh
85
- ```
86
-
87
- This will:
88
- 1. Re-package all features
89
- 2. Upload updated zips to R2
90
- 3. Customers can then re-install with `--force`
91
-
92
- ## 📊 Recipe Structure
93
-
94
- Each recipe zip contains:
95
-
96
- ```
97
- recipe.json # Manifest
98
- apps/
99
- native/
100
- src/
101
- app/
102
- <feature>/ # Route files
103
- index.tsx
104
- ...
105
- features/
106
- <feature>/ # Feature components
107
- components/
108
- hooks/
109
- services/
110
- ...
111
- ```
112
-
113
- ## 🎯 Next Steps
114
-
115
- ### For Production:
116
-
117
- 1. **Generate Real Customer Tokens**
118
- ```bash
119
- cd vibefast-cli/cloudflare-worker
120
- node generate-token.js
121
- # Add to KV with the provided command
122
- ```
123
-
124
- 2. **Create More Recipes**
125
- - Add more features to the script
126
- - Run `create-recipes.mjs`
127
- - Upload to R2
128
-
129
- 3. **Publish CLI to npm**
130
- ```bash
131
- cd vibefast-cli
132
- npm version 1.0.0
133
- npm publish
134
- ```
135
-
136
- 4. **Customer Onboarding**
137
- - Send them a token
138
- - Share installation instructions
139
- - They run `npm install -g vibefast-cli`
140
- - They install features with `vf add <feature>`
141
-
142
- ## 🔐 Security Notes
143
-
144
- - Each installation includes a watermark: `// vibefast license: <hash>`
145
- - Watermark format: `<token-hash-8chars>-<device-id-8chars>`
146
- - Tracks which customer/device installed the code
147
- - Helps identify unauthorized sharing
148
-
149
- ## 📈 Current Status
150
-
151
- - **Recipes Created:** 7
152
- - **Recipes Uploaded:** 7
153
- - **Worker Status:** ✅ Deployed
154
- - **Test Token:** `TEST_TOKEN_12345`
155
- - **Ready for:** Customer installations
156
-
157
- ## 🎓 How It Works
158
-
159
- 1. Customer runs `vf add charts`
160
- 2. CLI sends request to Worker with token + device info
161
- 3. Worker validates token, checks device slots
162
- 4. Worker fetches `charts@latest.zip` from R2
163
- 5. Worker returns base64-encoded zip + watermark
164
- 6. CLI extracts files to customer's project
165
- 7. CLI injects watermark in each file
166
- 8. CLI adds navigation link automatically
167
- 9. CLI records installation in journal
168
- 10. Customer's app now has the charts feature!
169
-
170
- ## 🚀 Ready for Production!
171
-
172
- All recipes are packaged, uploaded, and ready for customer installations. The system is fully operational end-to-end.
@@ -1,15 +0,0 @@
1
- import { View, Text } from 'react-native';
2
-
3
- export default function MiniFeature() {
4
- return (
5
- <View className="flex-1 items-center justify-center bg-background">
6
- <Text className="text-3xl font-bold text-foreground">🎉 Mini Feature</Text>
7
- <Text className="mt-4 text-lg text-muted-foreground">
8
- Installed via VibeFast CLI
9
- </Text>
10
- <Text className="mt-2 text-sm text-muted-foreground">
11
- This is a demo feature to test the CLI workflow
12
- </Text>
13
- </View>
14
- );
15
- }
@@ -1,16 +0,0 @@
1
- {
2
- "name": "mini-native",
3
- "version": "0.1.0",
4
- "description": "Demo feature (Expo)",
5
- "copy": [
6
- {
7
- "from": "apps/native/src/app/mini",
8
- "to": "apps/native/src/app/(root)/(protected)/mini"
9
- }
10
- ],
11
- "nav": {
12
- "href": "/(root)/(protected)/mini",
13
- "label": "Mini"
14
- },
15
- "target": "native"
16
- }
package/text.md DELETED
@@ -1,27 +0,0 @@
1
- /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$$$ /$$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$$
2
- | $$ | $$|_ $$_/| $$__ $$| $$_____/| $$_____//$$__ $$ /$$__ $$|__ $$__/
3
- | $$ | $$ | $$ | $$ \ $$| $$ | $$ | $$ \ $$| $$ \__/ | $$
4
- | $$ / $$/ | $$ | $$$$$$$ | $$$$$ | $$$$$ | $$$$$$$$| $$$$$$ | $$
5
- \ $$ $$/ | $$ | $$__ $$| $$__/ | $$__/ | $$__ $$ \____ $$ | $$
6
- \ $$$/ | $$ | $$ \ $$| $$ | $$ | $$ | $$ /$$ \ $$ | $$
7
- \ $/ /$$$$$$| $$$$$$$/| $$$$$$$$| $$ | $$ | $$| $$$$$$/ | $$
8
- \_/ |______/|_______/ |________/|__/ |__/ |__/ \______/ |__/
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
- ▖▖▄▖▄ ▄▖▄▖▄▖▄▖▄▖
17
- ▌▌▐ ▙▘▙▖▙▖▌▌▚ ▐
18
- ▚▘▟▖▙▘▙▖▌ ▛▌▄▌▐
19
-
20
-
21
- ██╗ ██╗██╗██████╗ ███████╗███████╗ █████╗ ███████╗████████╗
22
- ██║ ██║██║██╔══██╗██╔════╝██╔════╝██╔══██╗██╔════╝╚══██╔══╝
23
- ██║ ██║██║██████╔╝█████╗ █████╗ ███████║███████╗ ██║
24
- ╚██╗ ██╔╝██║██╔══██╗██╔══╝ ██╔══╝ ██╔══██║╚════██║ ██║
25
- ╚████╔╝ ██║██████╔╝███████╗██║ ██║ ██║███████║ ██║
26
- ╚═══╝ ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝
27
-
File without changes
File without changes
File without changes