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,432 @@
1
+ # Video Frontend Plan (Frontend-First, No Backend)
2
+
3
+ **Version:** 1.0.0
4
+ **Status:** Planning
5
+ **Created:** 2025-11-08
6
+ **Source:** Bull.fm migration (optimized)
7
+ **Total Cycles:** 18 (frontend-first approach)
8
+
9
+ ---
10
+
11
+ ## Executive Summary
12
+
13
+ Build working video player functionality on the frontend WITHOUT requiring backend infrastructure. This enables immediate deployment and testing while deferring multi-tenant database work. Uses YouTube embeds for zero hosting costs and proven Bull.fm components.
14
+
15
+ **Architecture:** Pure Frontend (Astro 5 + React 19)
16
+ **Quick Win:** Cycle 10 - Working video gallery deployed to production
17
+ **No Backend Required:** All data in static content collections
18
+
19
+ ---
20
+
21
+ ## 6-Dimension Ontology Mapping
22
+
23
+ **Frontend-First Approach:**
24
+ - GROUPS: Deferred (single-tenant for now)
25
+ - PEOPLE: Deferred (no auth required)
26
+ - THINGS: Static content collections (videos as MDX files)
27
+ - CONNECTIONS: Deferred (no playlists yet)
28
+ - EVENTS: Deferred (no analytics yet)
29
+ - KNOWLEDGE: Deferred (no AI search yet)
30
+
31
+ **Future Backend Migration:** See `/one/things/plans/video-backend.md`
32
+
33
+ ---
34
+
35
+ ## Dependencies (From Bull.fm package.json)
36
+
37
+ ### Required Dependencies
38
+ ```json
39
+ {
40
+ "@astro-community/astro-embed-youtube": "^0.5.6",
41
+ "@vidstack/react": "^0.6.15",
42
+ "vidstack": "^0.6.15",
43
+ "react-h5-audio-player": "3.10.0-rc.1",
44
+ "lucide-react": "^0.479.0",
45
+ "zod": "^3.25.67",
46
+ "react": "^18.3.1",
47
+ "react-dom": "^18.3.1"
48
+ }
49
+ ```
50
+
51
+ ### Already Installed in web/package.json
52
+ - `astro`: ✅ (5.10.1 in Bull.fm, check web version)
53
+ - `react`: ✅ (18.3.1)
54
+ - `react-dom`: ✅ (18.3.1)
55
+ - `lucide-react`: ✅
56
+ - `zod`: ✅
57
+ - `@radix-ui/react-slider`: ✅ (needed for video controls)
58
+
59
+ ### Need to Install
60
+ - `@astro-community/astro-embed-youtube`: ❌ (YouTube embeds)
61
+ - `@vidstack/react`: ❌ (advanced video player)
62
+ - `vidstack`: ❌ (player core)
63
+ - `react-h5-audio-player`: ❌ (audio player for podcasts)
64
+
65
+ ---
66
+
67
+ ## ⚡ Quick Wins (Cycles 1-10)
68
+
69
+ **Goal:** Working video gallery live in production by Cycle 10
70
+
71
+ ### Cycle 1-2: Setup (2 cycles)
72
+ **Agent:** agent-frontend
73
+
74
+ ✓ **Cycle 1:** Install dependencies
75
+ - Run `cd web && bun add @astro-community/astro-embed-youtube @vidstack/react vidstack react-h5-audio-player`
76
+ - Verify installations in package.json
77
+ - Test imports in a simple component
78
+
79
+ ✓ **Cycle 2:** Create content collection schema
80
+ - Create `web/src/content/videos/` directory
81
+ - Define Zod schema for video metadata (title, description, youtubeId, thumbnail, duration)
82
+ - Create sample video entries (3-4 videos from Bull.fm)
83
+
84
+ ### Cycle 3-6: Core Components (4 cycles)
85
+ **Agent:** agent-frontend
86
+
87
+ ✓ **Cycle 3:** Port VideoPlayer component
88
+ - Copy `apps/bullfm/src/components/VideoPlayer.tsx` → `web/src/components/media/VideoPlayer.tsx`
89
+ - Adapt for web/ project structure
90
+ - Test with sample YouTube embed
91
+
92
+ ✓ **Cycle 4:** Port VideoEmbed component
93
+ - Copy `apps/bullfm/src/components/lessons/VideoEmbed.tsx` → `web/src/components/media/VideoEmbed.tsx`
94
+ - Use @astro-community/astro-embed-youtube for SSR
95
+ - Test with different YouTube IDs
96
+
97
+ ✓ **Cycle 5:** Create VideoCard component
98
+ - Build thumbnail card with metadata
99
+ - Use lucide-react icons (Play icon)
100
+ - Add hover effects with Tailwind v4
101
+ - Link to video detail page
102
+
103
+ ✓ **Cycle 6:** Create VideoGallery component
104
+ - Grid layout (3 columns desktop, 1 column mobile)
105
+ - Load videos from content collection
106
+ - Sort by date (newest first)
107
+
108
+ ### Cycle 7-9: Pages (3 cycles)
109
+ **Agent:** agent-frontend
110
+
111
+ ✓ **Cycle 7:** Create `/videos` page
112
+ - Use VideoGallery component
113
+ - SSR with Astro (fast initial load)
114
+ - Add page header and description
115
+
116
+ ✓ **Cycle 8:** Create `/videos/[slug]` page
117
+ - Dynamic route for single video
118
+ - Use VideoPlayer component
119
+ - Display metadata (title, description, duration)
120
+ - Add "Back to Gallery" link
121
+
122
+ ✓ **Cycle 9:** Responsive design polish
123
+ - Mobile optimization (touch-friendly controls)
124
+ - Tablet breakpoints
125
+ - Dark mode support (if enabled)
126
+
127
+ ### Cycle 10: Deploy MVP
128
+ **Agent:** agent-ops
129
+
130
+ ✓ **Cycle 10:** Deploy to production
131
+ - Build: `cd web && bun run build`
132
+ - Deploy: `wrangler pages deploy dist`
133
+ - ✅ **MILESTONE: Working video gallery live at web.one.ie/videos**
134
+
135
+ ---
136
+
137
+ ## 📋 Full Plan (18 Cycles)
138
+
139
+ ### Phase 1: Setup (Cycles 1-2)
140
+ **Agent:** agent-frontend
141
+ **Deliverable:** Dependencies installed, content collection configured
142
+
143
+ - Cycle 1: Install video dependencies (YouTube embed, Vidstack, audio player)
144
+ - Cycle 2: Create content collection schema + sample data
145
+
146
+ ### Phase 2: Core Components (Cycles 3-6)
147
+ **Agent:** agent-frontend
148
+ **Deliverable:** Reusable video components
149
+
150
+ - Cycle 3: Port VideoPlayer (YouTube + native video support)
151
+ - Cycle 4: Port VideoEmbed (SSR YouTube embeds)
152
+ - Cycle 5: Create VideoCard (thumbnail + metadata)
153
+ - Cycle 6: Create VideoGallery (grid layout)
154
+
155
+ ### Phase 3: Pages (Cycles 7-9)
156
+ **Agent:** agent-frontend
157
+ **Deliverable:** Video browsing UI
158
+
159
+ - Cycle 7: `/videos` page (gallery view)
160
+ - Cycle 8: `/videos/[slug]` page (single video player)
161
+ - Cycle 9: Responsive design polish
162
+
163
+ ### Phase 4: Deploy MVP (Cycle 10)
164
+ **Agent:** agent-ops
165
+ **Deliverable:** Live video gallery
166
+
167
+ - Cycle 10: Production deployment
168
+ - ✅ **MILESTONE: Video gallery live**
169
+
170
+ ### Phase 5: Podcast Support (Cycles 11-14)
171
+ **Agent:** agent-frontend
172
+ **Deliverable:** Audio player for podcasts
173
+
174
+ - Cycle 11: Port AudioPlayer component (react-h5-audio-player)
175
+ - Cycle 12: Create podcast content collection schema
176
+ - Cycle 13: Create `/podcasts` page (gallery view)
177
+ - Cycle 14: Create `/podcasts/[slug]` page (audio player)
178
+
179
+ ### Phase 6: Enhanced Features (Cycles 15-17)
180
+ **Agent:** agent-frontend
181
+ **Deliverable:** Improved UX
182
+
183
+ - Cycle 15: Add categories/tags to videos
184
+ - Cycle 16: Add search filter (client-side)
185
+ - Cycle 17: Add related videos sidebar
186
+
187
+ ### Phase 7: Final Deploy (Cycle 18)
188
+ **Agent:** agent-ops
189
+ **Deliverable:** Complete frontend deployed
190
+
191
+ - Cycle 18: Production deployment
192
+ - ✅ **LAUNCH: Full video + podcast frontend live**
193
+
194
+ ---
195
+
196
+ ## Component Migration from Bull.fm
197
+
198
+ ### Files to Port (90%+ Reusable)
199
+
200
+ **Video Components:**
201
+ ```
202
+ apps/bullfm/src/components/VideoPlayer.tsx
203
+ → web/src/components/media/VideoPlayer.tsx
204
+ Changes: Update imports, remove Bull.fm specific config
205
+
206
+ apps/bullfm/src/components/lessons/VideoEmbed.tsx
207
+ → web/src/components/media/VideoEmbed.tsx
208
+ Changes: Use @astro-community/astro-embed-youtube
209
+
210
+ apps/bullfm/src/components/BullVideoLayout.tsx
211
+ → web/src/components/media/VideoLayout.tsx (optional, Vidstack advanced)
212
+ Changes: Simplify for MVP (defer to Phase 6)
213
+ ```
214
+
215
+ **Audio Components:**
216
+ ```
217
+ apps/bullfm/src/components/AudioPlayer.tsx
218
+ → web/src/components/media/AudioPlayer.tsx
219
+ Changes: Update imports, test with sample MP3
220
+ ```
221
+
222
+ **Content Collections:**
223
+ ```
224
+ apps/bullfm/src/content/config.ts (video/podcast schemas)
225
+ → web/src/content/config.ts (add video/podcast schemas)
226
+ Changes: Merge with existing schemas
227
+ ```
228
+
229
+ ---
230
+
231
+ ## Content Collection Schemas
232
+
233
+ ### Video Schema
234
+ ```typescript
235
+ // web/src/content/config.ts
236
+ import { defineCollection, z } from 'astro:content';
237
+
238
+ const videosCollection = defineCollection({
239
+ type: 'content',
240
+ schema: z.object({
241
+ title: z.string(),
242
+ description: z.string(),
243
+ youtubeId: z.string().optional(), // For YouTube embeds
244
+ videoUrl: z.string().optional(), // For native hosting (future)
245
+ thumbnail: z.string(), // Image URL or path
246
+ duration: z.number(), // Seconds
247
+ publishedAt: z.date(),
248
+ author: z.string().optional(),
249
+ categories: z.array(z.string()).default([]),
250
+ tags: z.array(z.string()).default([]),
251
+ }),
252
+ });
253
+
254
+ export const collections = {
255
+ videos: videosCollection,
256
+ };
257
+ ```
258
+
259
+ ### Sample Video Entry
260
+ ```markdown
261
+ ---
262
+ # web/src/content/videos/sui-blockchain-gaming.md
263
+ title: "Sui Blockchain Gaming Revolution"
264
+ description: "Explore how Sui is transforming the gaming industry with fast, low-cost transactions"
265
+ youtubeId: "dQw4w9WgXcQ"
266
+ thumbnail: "/images/videos/sui-gaming-thumb.jpg"
267
+ duration: 420
268
+ publishedAt: 2025-01-15
269
+ author: "Bull.fm Team"
270
+ categories: ["blockchain", "gaming"]
271
+ tags: ["sui", "web3", "gaming"]
272
+ ---
273
+
274
+ Deep dive into Sui's gaming capabilities...
275
+ ```
276
+
277
+ ---
278
+
279
+ ## Technology Stack
280
+
281
+ ### Frontend
282
+ - **Framework:** Astro 5 + React 19
283
+ - **Styling:** Tailwind v4
284
+ - **Video Player:** @vidstack/react + @astro-community/astro-embed-youtube
285
+ - **Audio Player:** react-h5-audio-player
286
+ - **Icons:** lucide-react
287
+ - **Validation:** Zod
288
+
289
+ ### Deployment
290
+ - **Frontend:** Cloudflare Pages (web.one.ie)
291
+ - **Assets:** Static files in `/public/`
292
+ - **YouTube:** Embeds (zero hosting cost)
293
+
294
+ ### No Backend Required
295
+ - ❌ No Convex (deferred to video-backend.md)
296
+ - ❌ No database (content collections only)
297
+ - ❌ No auth (public access)
298
+ - ❌ No analytics (deferred)
299
+
300
+ ---
301
+
302
+ ## Success Metrics
303
+
304
+ ### Cycle 10 Milestone
305
+ ✅ Working video gallery deployed
306
+ - [ ] 3+ YouTube videos playable
307
+ - [ ] Grid layout responsive (mobile + desktop)
308
+ - [ ] Individual video pages working
309
+ - [ ] Fast load times (<2s)
310
+
311
+ ### Cycle 18 Launch
312
+ ✅ Full frontend in production
313
+ - [ ] Video gallery live
314
+ - [ ] Podcast player functional
315
+ - [ ] Search/filter working (client-side)
316
+ - [ ] Related content sidebar
317
+ - [ ] Mobile-optimized
318
+
319
+ ---
320
+
321
+ ## Migration to Backend (Future)
322
+
323
+ When ready to add multi-tenancy, analytics, and user features:
324
+
325
+ **See:** `/one/things/plans/video-backend.md`
326
+
327
+ **Migration Path:**
328
+ 1. Content collections → Convex things table
329
+ 2. Static data → Dynamic queries
330
+ 3. Add groupId for multi-tenancy
331
+ 4. Add auth for creator uploads
332
+ 5. Add events for analytics
333
+ 6. Add knowledge for AI search
334
+
335
+ **Estimated:** 24 cycles (separate plan)
336
+
337
+ ---
338
+
339
+ ## Risk Assessment
340
+
341
+ ### Technical Risks
342
+
343
+ **Low Risk: Component Porting**
344
+ - Bull.fm components are clean React/TypeScript
345
+ - 90%+ reusable with minor import changes
346
+
347
+ **Low Risk: YouTube Embeds**
348
+ - Well-documented @astro-community package
349
+ - Zero hosting costs, proven reliability
350
+
351
+ **Low Risk: Content Collections**
352
+ - Astro native feature, type-safe
353
+ - Easy migration to database later
354
+
355
+ ### Business Risks
356
+
357
+ **Zero Cost: No Hosting**
358
+ - YouTube embeds are free
359
+ - Static content collections
360
+ - Cloudflare Pages free tier
361
+
362
+ **Low Risk: No Backend Lock-In**
363
+ - Easy migration to Convex when ready
364
+ - Content collections → database is straightforward
365
+
366
+ ---
367
+
368
+ ## Next Steps
369
+
370
+ ### To Start Execution
371
+
372
+ ```bash
373
+ # 1. Review this plan
374
+ cat /Users/toc/Server/ONE/one/things/plans/video-frontend.md
375
+
376
+ # 2. Start Cycle 1
377
+ cd web && bun add @astro-community/astro-embed-youtube @vidstack/react vidstack react-h5-audio-player
378
+
379
+ # 3. Execute cycles sequentially
380
+ /next # Advance to next cycle
381
+ /done # Mark current cycle complete
382
+
383
+ # 4. Or fast-track entire frontend
384
+ /fast video-frontend # Build all 18 cycles
385
+ ```
386
+
387
+ ### To Modify Plan
388
+
389
+ ```bash
390
+ /plan optimize # Reduce cycle count further
391
+ /plan add-feature [X] # Add new feature to plan
392
+ /plan skip [N] # Skip cycle N (not applicable)
393
+ ```
394
+
395
+ ---
396
+
397
+ ## Dependencies on Other Plans
398
+
399
+ **Blocked By:** None (completely standalone)
400
+ **Blocks:** None
401
+ **Related:** `/one/things/plans/video-backend.md` (future backend work)
402
+
403
+ ---
404
+
405
+ ## Appendix: Bull.fm Actual Dependencies
406
+
407
+ **From:** `/Users/toc/Server/ONE/apps/bullfm/package.json`
408
+
409
+ **Video Dependencies:**
410
+ - `@astro-community/astro-embed-youtube`: "^0.5.6"
411
+ - `@vidstack/react`: "^0.6.15"
412
+ - `vidstack`: "^0.6.15"
413
+
414
+ **Audio Dependencies:**
415
+ - `react-h5-audio-player`: "3.10.0-rc.1"
416
+
417
+ **Supporting Libraries:**
418
+ - `lucide-react`: "^0.479.0" (icons)
419
+ - `zod`: "^3.25.67" (validation)
420
+ - `@radix-ui/react-slider`: "^1.3.5" (video controls)
421
+
422
+ **Framework:**
423
+ - `astro`: "^5.10.1"
424
+ - `react`: "^18.3.1"
425
+ - `react-dom`: "^18.3.1"
426
+
427
+ ---
428
+
429
+ **Built for speed, zero backend complexity.**
430
+
431
+ **Plan Status:** Ready for execution
432
+ **Next Command:** Start Cycle 1 with dependency installation