oneie 3.6.26 → 3.6.28

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 (37) hide show
  1. package/.claude/agents/TROUBLESHOOTING.md +530 -0
  2. package/.claude/agents/agent-claude.md +645 -0
  3. package/.claude/agents/agent-clone.md +2 -0
  4. package/.claude/agents/agent-frontend.md +162 -21
  5. package/.claude/agents/agent-writer.md +722 -0
  6. package/.claude/commands/chat.md +504 -0
  7. package/.claude/commands/create.md +134 -18
  8. package/.claude/commands/fast.md +531 -0
  9. package/.claude/commands/one.md +79 -90
  10. package/.claude/commands/optimize.md +74 -0
  11. package/.claude/commands/plan.md +420 -373
  12. package/.claude/commands/review.md +99 -0
  13. package/.claude/commands/server.md +97 -48
  14. package/.claude/commands/start.md +182 -0
  15. package/.claude/commands/test.md +197 -0
  16. package/.claude/commands/validate.md +140 -0
  17. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  18. package/.claude/hooks/auto-format.sh +106 -0
  19. package/.claude/hooks/formatting.py +187 -0
  20. package/.claude/hooks/ontology-validation.py +255 -0
  21. package/.claude/hooks/validate-imports.py +182 -0
  22. package/.claude/hooks/validate-ontology.py +140 -0
  23. package/.claude/hooks/write-news.sh +194 -0
  24. package/CLAUDE.md +150 -1057
  25. package/one/knowledge/cascading-context-specification.md +1617 -0
  26. package/one/knowledge/claude-code-integration.md +1293 -0
  27. package/one/knowledge/development-commands.md +251 -0
  28. package/one/knowledge/guidelines.md +314 -0
  29. package/one/knowledge/parallel-agents.md +932 -0
  30. package/one/knowledge/performance.md +459 -0
  31. package/one/knowledge/troubleshooting.md +434 -0
  32. package/one/things/plans/dsl-claude-code.md +1011 -0
  33. package/one/things/plans/video-backend.md +638 -0
  34. package/one/things/plans/video-frontend.md +432 -0
  35. package/one/things/plans/video-old-archived.md +656 -0
  36. package/package.json +1 -1
  37. package/.claude/agents/AUDIT-agent-ops-alignment.md +0 -379
@@ -0,0 +1,638 @@
1
+ # Video Backend Plan (Multi-Tenant Database Layer)
2
+
3
+ **Version:** 1.0.0
4
+ **Status:** Planning
5
+ **Created:** 2025-11-08
6
+ **Prerequisites:** video-frontend.md must be completed first
7
+ **Total Cycles:** 24 (backend infrastructure)
8
+
9
+ ---
10
+
11
+ ## Executive Summary
12
+
13
+ Add multi-tenant database layer to support creator uploads, progress tracking, analytics, and AI-powered features. Migrates static content collections to Convex with full 6-dimension ontology compliance.
14
+
15
+ **Architecture:** Convex Backend (Effect.ts services + Convex mutations/queries)
16
+ **Quick Win:** Cycle 10 - Multi-tenant video database live with groupId scoping
17
+ **Prerequisite:** Frontend working (see `/one/things/plans/video-frontend.md`)
18
+
19
+ ---
20
+
21
+ ## 6-Dimension Ontology Mapping
22
+
23
+ ### GROUPS
24
+ - Organization media libraries (groupId scoping)
25
+ - Course collections (nested groups with parentGroupId)
26
+ - Playlist containers (group-scoped)
27
+
28
+ ### PEOPLE
29
+ - Content creators (upload, manage) → `creator` thing type
30
+ - Viewers (consume, track progress) → `user` thing type
31
+ - Roles: `org_owner` (full access), `org_user` (view only), `customer` (purchased content)
32
+
33
+ ### THINGS
34
+ Core video/podcast entities:
35
+ ```typescript
36
+ {
37
+ type: "video",
38
+ groupId: Id<"groups">,
39
+ name: "Video Title",
40
+ properties: {
41
+ description: string,
42
+ youtubeId?: string, // For YouTube embeds
43
+ videoUrl?: string, // For native hosting (Cloudinary/Mux)
44
+ thumbnail: string,
45
+ duration: number, // Seconds
46
+ transcript?: string, // Full transcript text
47
+ categories: string[],
48
+ tags: string[],
49
+ viewCount: number,
50
+ publishedAt: number,
51
+ },
52
+ status: "draft" | "published" | "archived"
53
+ }
54
+
55
+ {
56
+ type: "podcast",
57
+ groupId: Id<"groups">,
58
+ name: "Episode Title",
59
+ properties: {
60
+ description: string,
61
+ audioUrl: string, // MP3/M4A file (Cloudinary)
62
+ thumbnail: string,
63
+ duration: number,
64
+ transcript?: string,
65
+ episodeNumber?: number,
66
+ seasonNumber?: number,
67
+ viewCount: number,
68
+ publishedAt: number,
69
+ },
70
+ status: "draft" | "published" | "archived"
71
+ }
72
+
73
+ {
74
+ type: "playlist",
75
+ groupId: Id<"groups">,
76
+ name: "Playlist Title",
77
+ properties: {
78
+ description: string,
79
+ playlistType: "video" | "podcast" | "course",
80
+ itemCount: number,
81
+ },
82
+ status: "active"
83
+ }
84
+
85
+ {
86
+ type: "course",
87
+ groupId: Id<"groups">,
88
+ name: "Course Title",
89
+ properties: {
90
+ description: string,
91
+ instructor: string,
92
+ level: "beginner" | "intermediate" | "advanced",
93
+ estimatedHours: number,
94
+ totalLessons: number,
95
+ },
96
+ status: "draft" | "published"
97
+ }
98
+
99
+ {
100
+ type: "lesson",
101
+ groupId: Id<"groups">,
102
+ name: "Lesson Title",
103
+ properties: {
104
+ description: string,
105
+ order: number,
106
+ videoId?: Id<"things">, // Reference to video thing
107
+ duration: number,
108
+ lessonType: "video" | "text" | "quiz",
109
+ },
110
+ status: "draft" | "published"
111
+ }
112
+ ```
113
+
114
+ ### CONNECTIONS
115
+ ```typescript
116
+ {
117
+ type: "contains",
118
+ fromThingId: playlistId,
119
+ toThingId: videoId,
120
+ metadata: { order: 1 }
121
+ }
122
+
123
+ {
124
+ type: "authored",
125
+ fromThingId: creatorId,
126
+ toThingId: videoId,
127
+ metadata: {
128
+ role: "creator" | "producer" | "editor",
129
+ createdAt: number
130
+ }
131
+ }
132
+
133
+ {
134
+ type: "enrolled_in",
135
+ fromThingId: userId,
136
+ toThingId: courseId,
137
+ metadata: {
138
+ startedAt: number,
139
+ progress: 0.65, // 0-1 scale
140
+ lastAccessedAt: number
141
+ }
142
+ }
143
+
144
+ {
145
+ type: "watched",
146
+ fromThingId: userId,
147
+ toThingId: videoId,
148
+ metadata: {
149
+ lastPosition: 245, // Seconds
150
+ completed: false,
151
+ watchedAt: number
152
+ }
153
+ }
154
+ ```
155
+
156
+ ### EVENTS
157
+ ```typescript
158
+ {
159
+ type: "content_event",
160
+ action: "video_viewed",
161
+ actorId: userId,
162
+ targetId: videoId,
163
+ groupId: Id<"groups">,
164
+ metadata: {
165
+ duration: number,
166
+ completionRate: 0.85,
167
+ watchTime: number,
168
+ deviceType: "mobile" | "desktop"
169
+ }
170
+ }
171
+
172
+ {
173
+ type: "content_event",
174
+ action: "video_uploaded",
175
+ actorId: creatorId,
176
+ targetId: videoId,
177
+ groupId: Id<"groups">,
178
+ metadata: {
179
+ size: number, // Bytes
180
+ format: "mp4" | "webm",
181
+ processingTime: number
182
+ }
183
+ }
184
+
185
+ {
186
+ type: "entity_created",
187
+ action: "playlist_created",
188
+ actorId: creatorId,
189
+ targetId: playlistId,
190
+ groupId: Id<"groups">,
191
+ metadata: { itemCount: 0 }
192
+ }
193
+ ```
194
+
195
+ ### KNOWLEDGE
196
+ - Video transcripts chunked for RAG (500-word chunks, 50-word overlap)
197
+ - Podcast transcripts with speaker diarization
198
+ - Auto-generated labels: topics, keywords, sentiment
199
+ - Vector embeddings for semantic search (text-embedding-3-large, 1536-dim)
200
+ - Thematic connections between content
201
+
202
+ ---
203
+
204
+ ## ⚡ Quick Wins (Cycles 1-10)
205
+
206
+ **Goal:** Multi-tenant video database live by Cycle 10
207
+
208
+ ### Cycle 1-3: Schema Design (3 cycles)
209
+ **Agent:** agent-backend
210
+
211
+ ✓ **Cycle 1:** Update schema.ts
212
+ - Add video/podcast/playlist/course/lesson thing types to schema
213
+ - Add watched/contains/enrolled_in connection types
214
+ - Add content_event event types
215
+ - Validate against 6-dimension ontology
216
+
217
+ ✓ **Cycle 2:** Add validation schemas
218
+ - Zod schemas for video/podcast properties
219
+ - Connection metadata validators
220
+ - Event metadata validators
221
+
222
+ ✓ **Cycle 3:** Test schema
223
+ - Create sample video thing
224
+ - Create sample connections
225
+ - Create sample events
226
+ - Verify multi-tenant isolation (groupId)
227
+
228
+ ### Cycle 4-7: Core Mutations (4 cycles)
229
+ **Agent:** agent-backend
230
+
231
+ ✓ **Cycle 4:** Video mutations
232
+ - `createVideo` - Add video to library
233
+ - `updateVideo` - Update metadata
234
+ - `deleteVideo` - Archive video
235
+ - All scoped by groupId
236
+
237
+ ✓ **Cycle 5:** Progress tracking mutations
238
+ - `updateWatchProgress` - Track viewing position
239
+ - `markVideoComplete` - Mark as watched
240
+ - Create watched connection + content_event
241
+
242
+ ✓ **Cycle 6:** Playlist mutations
243
+ - `createPlaylist` - Create video collections
244
+ - `addToPlaylist` - Add video to playlist (creates contains connection)
245
+ - `removeFromPlaylist` - Remove video
246
+ - `reorderPlaylist` - Update order metadata
247
+
248
+ ✓ **Cycle 7:** Course mutations
249
+ - `createCourse` - Create course thing
250
+ - `createLesson` - Create lesson thing
251
+ - `enrollInCourse` - Create enrolled_in connection
252
+ - `updateCourseProgress` - Track lesson completion
253
+
254
+ ### Cycle 8-10: Core Queries (3 cycles)
255
+ **Agent:** agent-backend
256
+
257
+ ✓ **Cycle 8:** Video queries
258
+ - `listVideos` - Get all videos for group (groupId scoped)
259
+ - `getVideoById` - Single video with metadata
260
+ - `getCreatorVideos` - Videos by creator (authored connections)
261
+
262
+ ✓ **Cycle 9:** Playlist queries
263
+ - `listPlaylists` - Get all playlists for group
264
+ - `getPlaylistVideos` - Videos in playlist order (contains connections)
265
+ - `getUserPlaylists` - Playlists created by user
266
+
267
+ ✓ **Cycle 10:** Progress queries
268
+ - `getWatchProgress` - Get user's watch history (watched connections)
269
+ - `getCourseProgress` - Get enrollment progress (enrolled_in connections)
270
+ - ✅ **MILESTONE: Multi-tenant video database live**
271
+
272
+ ---
273
+
274
+ ## 📋 Full Plan (24 Cycles)
275
+
276
+ ### Phase 1: Schema (Cycles 1-3)
277
+ **Agent:** agent-backend
278
+ **Deliverable:** Database schema with 6-dimension compliance
279
+
280
+ - Cycle 1: Update schema.ts with video types
281
+ - Cycle 2: Add Zod validation schemas
282
+ - Cycle 3: Test schema with sample data
283
+
284
+ ### Phase 2: Video Mutations (Cycles 4-7)
285
+ **Agent:** agent-backend
286
+ **Deliverable:** Video CRUD operations
287
+
288
+ - Cycle 4: Video mutations (create, update, delete)
289
+ - Cycle 5: Progress tracking mutations
290
+ - Cycle 6: Playlist mutations
291
+ - Cycle 7: Course mutations
292
+
293
+ ### Phase 3: Video Queries (Cycles 8-10)
294
+ **Agent:** agent-backend
295
+ **Deliverable:** Video retrieval APIs
296
+
297
+ - Cycle 8: Video queries (list, get, search)
298
+ - Cycle 9: Playlist queries
299
+ - Cycle 10: Progress queries
300
+ - ✅ **MILESTONE: Multi-tenant database live**
301
+
302
+ ### Phase 4: Upload Infrastructure (Cycles 11-14)
303
+ **Agent:** agent-backend
304
+ **Deliverable:** File upload to Cloudinary
305
+
306
+ - Cycle 11: Cloudinary integration setup
307
+ - Install Cloudinary SDK
308
+ - Configure upload presets
309
+ - Test video upload
310
+
311
+ - Cycle 12: Video upload mutation
312
+ - Accept file upload
313
+ - Upload to Cloudinary
314
+ - Create video thing with videoUrl
315
+ - Create entity_created event
316
+
317
+ - Cycle 13: Thumbnail generation
318
+ - Auto-generate from video
319
+ - Upload to Cloudinary
320
+ - Store in properties.thumbnail
321
+
322
+ - Cycle 14: Audio upload mutation
323
+ - Upload podcast MP3/M4A
324
+ - Create podcast thing
325
+ - Create entity_created event
326
+
327
+ ### Phase 5: Transcription (Cycles 15-17)
328
+ **Agent:** agent-backend
329
+ **Deliverable:** AI-powered transcripts
330
+
331
+ - Cycle 15: Whisper API integration
332
+ - Install OpenAI SDK
333
+ - Configure Whisper API
334
+ - Test transcription
335
+
336
+ - Cycle 16: Transcription mutation
337
+ - Extract audio from video
338
+ - Send to Whisper API
339
+ - Store in properties.transcript
340
+
341
+ - Cycle 17: Podcast transcription
342
+ - Transcribe podcast audio
343
+ - Store in properties.transcript
344
+
345
+ ### Phase 6: Knowledge Extraction (Cycles 18-20)
346
+ **Agent:** agent-backend
347
+ **Deliverable:** RAG-ready knowledge chunks
348
+
349
+ - Cycle 18: Chunk transcripts
350
+ - Split into 500-word chunks (50-word overlap)
351
+ - Create knowledge things (type: "chunk")
352
+ - Link to video/podcast via thingKnowledge junction
353
+
354
+ - Cycle 19: Generate embeddings
355
+ - Use text-embedding-3-large (1536-dim)
356
+ - Store in knowledge.vector
357
+ - Batch process for efficiency
358
+
359
+ - Cycle 20: Semantic search query
360
+ - `searchVideos` - Vector similarity search
361
+ - Filter by groupId (multi-tenant)
362
+ - Return ranked results
363
+
364
+ ### Phase 7: Analytics (Cycles 21-23)
365
+ **Agent:** agent-backend
366
+ **Deliverable:** Analytics tracking
367
+
368
+ - Cycle 21: View tracking
369
+ - Create content_event (action: "video_viewed")
370
+ - Update viewCount in properties
371
+ - Track device type, completion rate
372
+
373
+ - Cycle 22: Engagement analytics
374
+ - Track watch time
375
+ - Calculate completion rates
376
+ - Identify popular content
377
+
378
+ - Cycle 23: Creator analytics queries
379
+ - `getCreatorAnalytics` - Total views, watch time
380
+ - `getVideoAnalytics` - Per-video metrics
381
+ - `getCourseAnalytics` - Enrollment, completion rates
382
+
383
+ ### Phase 8: Deploy Backend (Cycle 24)
384
+ **Agent:** agent-ops
385
+ **Deliverable:** Production backend live
386
+
387
+ - Cycle 24: Production deployment
388
+ - Deploy to Convex production (shocking-falcon-870.convex.cloud)
389
+ - Configure Cloudinary production keys
390
+ - Configure OpenAI API keys
391
+ - ✅ **LAUNCH: Full backend live**
392
+
393
+ ---
394
+
395
+ ## Technology Stack
396
+
397
+ ### Backend
398
+ - **Database:** Convex (real-time sync, multi-tenant)
399
+ - **Business Logic:** Effect.ts services (pure functions)
400
+ - **Storage:** Cloudinary (video + audio hosting)
401
+ - **Transcription:** Whisper API (OpenAI)
402
+ - **Embeddings:** text-embedding-3-large (OpenAI)
403
+ - **Validation:** Zod
404
+
405
+ ### External Services
406
+ - **Cloudinary:** Video/audio upload, transformation, CDN streaming
407
+ - Free tier: 25GB storage, 25GB bandwidth/month
408
+ - Video transformation (resize, compress, thumbnail generation)
409
+
410
+ - **OpenAI:** Transcription (Whisper) + embeddings
411
+ - Whisper API: $0.006/minute
412
+ - Embeddings: $0.13/1M tokens
413
+
414
+ - **Convex:** Real-time database + file storage
415
+ - Production: shocking-falcon-870.convex.cloud
416
+
417
+ ---
418
+
419
+ ## Migration from Content Collections
420
+
421
+ ### Step 1: Export Existing Videos (Cycle 1 of frontend integration)
422
+
423
+ ```typescript
424
+ // scripts/migrate-videos-to-convex.ts
425
+ import { getCollection } from 'astro:content';
426
+
427
+ const videos = await getCollection('videos');
428
+
429
+ for (const video of videos) {
430
+ // Transform to Convex format
431
+ const videoData = {
432
+ type: "video",
433
+ groupId: DEFAULT_GROUP_ID, // Migration group
434
+ name: video.data.title,
435
+ properties: {
436
+ description: video.data.description,
437
+ youtubeId: video.data.youtubeId,
438
+ thumbnail: video.data.thumbnail,
439
+ duration: video.data.duration,
440
+ categories: video.data.categories,
441
+ tags: video.data.tags,
442
+ viewCount: 0,
443
+ publishedAt: video.data.publishedAt.getTime(),
444
+ },
445
+ status: "published"
446
+ };
447
+
448
+ // Create in Convex
449
+ await createVideo(videoData);
450
+ }
451
+ ```
452
+
453
+ ### Step 2: Update Frontend to Use Convex (Cycle 2 of frontend integration)
454
+
455
+ ```typescript
456
+ // Before (content collections)
457
+ import { getCollection } from 'astro:content';
458
+ const videos = await getCollection('videos');
459
+
460
+ // After (Convex)
461
+ import { useQuery } from 'convex/react';
462
+ import { api } from '@/convex/_generated/api';
463
+
464
+ const videos = useQuery(api.queries.videos.listVideos, {
465
+ groupId: currentGroupId
466
+ });
467
+ ```
468
+
469
+ ---
470
+
471
+ ## Success Metrics
472
+
473
+ ### Cycle 10 Milestone
474
+ ✅ Multi-tenant database live
475
+ - [ ] Video/podcast things created
476
+ - [ ] Multi-tenant isolation working (groupId)
477
+ - [ ] Progress tracking functional
478
+ - [ ] Playlist management working
479
+
480
+ ### Cycle 14 Milestone
481
+ ✅ File upload working
482
+ - [ ] Video upload to Cloudinary
483
+ - [ ] Thumbnail auto-generation
484
+ - [ ] Audio upload for podcasts
485
+
486
+ ### Cycle 20 Milestone
487
+ ✅ AI features live
488
+ - [ ] Transcription working (Whisper)
489
+ - [ ] Knowledge chunks created
490
+ - [ ] Semantic search functional
491
+
492
+ ### Cycle 24 Launch
493
+ ✅ Full backend in production
494
+ - [ ] All mutations/queries deployed
495
+ - [ ] Analytics tracking live
496
+ - [ ] Cloudinary CDN configured
497
+ - [ ] Multi-tenant tested
498
+
499
+ ---
500
+
501
+ ## Risk Assessment
502
+
503
+ ### Technical Risks
504
+
505
+ **Medium Risk: Cloudinary Integration**
506
+ - Mitigation: Well-documented React SDK
507
+ - Fallback: Convex file storage (1GB free tier)
508
+
509
+ **Low Risk: Transcription**
510
+ - Whisper API is stable and accurate
511
+ - Can defer to manual transcripts initially
512
+
513
+ **Low Risk: Vector Search**
514
+ - Convex supports vector queries natively
515
+ - OpenAI embeddings are proven
516
+
517
+ ### Business Risks
518
+
519
+ **Medium Risk: Storage Costs**
520
+ - Cloudinary free tier: 25GB storage, 25GB bandwidth/month
521
+ - Estimate: $20-50/month for moderate usage
522
+ - Mitigation: Use YouTube embeds where possible
523
+
524
+ **Low Risk: API Costs**
525
+ - Whisper: $0.006/minute (~$0.36/hour of video)
526
+ - Embeddings: $0.13/1M tokens (~$0.01/video)
527
+ - Estimate: $10-20/month for 100 videos
528
+
529
+ ---
530
+
531
+ ## Dependencies
532
+
533
+ ### Before Starting
534
+ - [x] Frontend working (video-frontend.md completed)
535
+ - [x] Convex backend operational
536
+ - [x] Multi-tenant groups working
537
+ - [x] Authentication (Better Auth)
538
+ - [ ] Cloudinary account setup
539
+ - [ ] OpenAI API key
540
+
541
+ ### Blocking Dependencies
542
+ - Cycle 1 blocks Cycle 4 (schema before mutations)
543
+ - Cycle 8 blocks frontend integration (queries needed)
544
+ - Cycle 11 blocks Cycle 12 (Cloudinary setup before upload)
545
+ - Cycle 15 blocks Cycle 16 (Whisper setup before transcription)
546
+
547
+ ---
548
+
549
+ ## Frontend Integration (Post-Backend)
550
+
551
+ **See:** Frontend cycles in video-frontend.md should be updated to use Convex
552
+
553
+ **Changes Required:**
554
+ 1. Replace content collections with Convex queries
555
+ 2. Add upload UI (drag-and-drop)
556
+ 3. Add progress tracking UI (resume playback)
557
+ 4. Add analytics dashboard (creator view)
558
+ 5. Add semantic search UI (vector search)
559
+
560
+ **Estimated:** 6 additional cycles (frontend integration)
561
+
562
+ ---
563
+
564
+ ## Next Steps
565
+
566
+ ### To Start Execution
567
+
568
+ ```bash
569
+ # 1. Review this plan
570
+ cat /Users/toc/Server/ONE/one/things/plans/video-backend.md
571
+
572
+ # 2. Ensure frontend is complete
573
+ cat /Users/toc/Server/ONE/one/things/plans/video-frontend.md
574
+
575
+ # 3. Start Cycle 1 (schema design)
576
+ # Agent: agent-backend
577
+
578
+ # 4. Execute cycles sequentially
579
+ /next # Advance to next cycle
580
+ /done # Mark current cycle complete
581
+ ```
582
+
583
+ ### To Modify Plan
584
+
585
+ ```bash
586
+ /plan optimize # Reduce cycle count further
587
+ /plan add-feature [X] # Add new feature to plan
588
+ /plan skip [N] # Skip cycle N (not applicable)
589
+ ```
590
+
591
+ ---
592
+
593
+ ## Appendix: External Service Setup
594
+
595
+ ### Cloudinary Setup
596
+ ```bash
597
+ # 1. Create account at cloudinary.com
598
+ # 2. Get credentials from dashboard
599
+ CLOUDINARY_CLOUD_NAME=your_cloud_name
600
+ CLOUDINARY_API_KEY=your_api_key
601
+ CLOUDINARY_API_SECRET=your_api_secret
602
+
603
+ # 3. Configure upload preset
604
+ # Settings → Upload → Upload presets
605
+ # - Preset name: "video_uploads"
606
+ # - Mode: Unsigned
607
+ # - Folder: "videos/"
608
+ # - Resource type: Video
609
+ # - Format: mp4
610
+ # - Transformations: Auto quality, auto format
611
+ ```
612
+
613
+ ### OpenAI Setup
614
+ ```bash
615
+ # 1. Create account at platform.openai.com
616
+ # 2. Generate API key
617
+ OPENAI_API_KEY=sk-...
618
+
619
+ # 3. Enable services
620
+ # - Whisper API (transcription)
621
+ # - Embeddings API (text-embedding-3-large)
622
+ ```
623
+
624
+ ### Convex Environment Variables
625
+ ```bash
626
+ # backend/.env.local
627
+ CLOUDINARY_CLOUD_NAME=...
628
+ CLOUDINARY_API_KEY=...
629
+ CLOUDINARY_API_SECRET=...
630
+ OPENAI_API_KEY=...
631
+ ```
632
+
633
+ ---
634
+
635
+ **Built for scale, powered by the 6-dimension ontology.**
636
+
637
+ **Plan Status:** Ready for execution (after frontend complete)
638
+ **Next Command:** Complete video-frontend.md first, then start Cycle 1