oneie 3.7.0 → 3.8.1

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 (1156) hide show
  1. package/README.md +9 -9
  2. package/dist/commands/agent.d.ts +2 -0
  3. package/dist/commands/agent.d.ts.map +1 -1
  4. package/dist/commands/agent.js +44 -0
  5. package/dist/commands/agent.js.map +1 -1
  6. package/dist/commands/bounty.d.ts +4 -0
  7. package/dist/commands/bounty.d.ts.map +1 -0
  8. package/dist/commands/bounty.js +24 -0
  9. package/dist/commands/bounty.js.map +1 -0
  10. package/dist/commands/buy.d.ts +19 -0
  11. package/dist/commands/buy.d.ts.map +1 -0
  12. package/dist/commands/buy.js +63 -0
  13. package/dist/commands/buy.js.map +1 -0
  14. package/dist/commands/capabilities.d.ts +4 -0
  15. package/dist/commands/capabilities.d.ts.map +1 -0
  16. package/dist/commands/capabilities.js +18 -0
  17. package/dist/commands/capabilities.js.map +1 -0
  18. package/dist/commands/commend.d.ts +4 -0
  19. package/dist/commands/commend.d.ts.map +1 -0
  20. package/dist/commands/commend.js +13 -0
  21. package/dist/commands/commend.js.map +1 -0
  22. package/dist/commands/completion.d.ts +4 -0
  23. package/dist/commands/completion.d.ts.map +1 -0
  24. package/dist/commands/completion.js +49 -0
  25. package/dist/commands/completion.js.map +1 -0
  26. package/dist/commands/config.d.ts +4 -0
  27. package/dist/commands/config.d.ts.map +1 -0
  28. package/dist/commands/config.js +78 -0
  29. package/dist/commands/config.js.map +1 -0
  30. package/dist/commands/deploy.d.ts +1 -1
  31. package/dist/commands/deploy.d.ts.map +1 -1
  32. package/dist/commands/deploy.js +39 -4
  33. package/dist/commands/deploy.js.map +1 -1
  34. package/dist/commands/doctor.d.ts +4 -0
  35. package/dist/commands/doctor.d.ts.map +1 -0
  36. package/dist/commands/doctor.js +72 -0
  37. package/dist/commands/doctor.js.map +1 -0
  38. package/dist/commands/domain.d.ts +4 -0
  39. package/dist/commands/domain.d.ts.map +1 -0
  40. package/dist/commands/domain.js +19 -0
  41. package/dist/commands/domain.js.map +1 -0
  42. package/dist/commands/export.d.ts +4 -0
  43. package/dist/commands/export.d.ts.map +1 -0
  44. package/dist/commands/export.js +15 -0
  45. package/dist/commands/export.js.map +1 -0
  46. package/dist/commands/fade.d.ts.map +1 -1
  47. package/dist/commands/fade.js +8 -4
  48. package/dist/commands/fade.js.map +1 -1
  49. package/dist/commands/flag.d.ts +4 -0
  50. package/dist/commands/flag.d.ts.map +1 -0
  51. package/dist/commands/flag.js +13 -0
  52. package/dist/commands/flag.js.map +1 -0
  53. package/dist/commands/health.d.ts +4 -0
  54. package/dist/commands/health.d.ts.map +1 -0
  55. package/dist/commands/health.js +11 -0
  56. package/dist/commands/health.js.map +1 -0
  57. package/dist/commands/highways.d.ts.map +1 -1
  58. package/dist/commands/highways.js +7 -4
  59. package/dist/commands/highways.js.map +1 -1
  60. package/dist/commands/hire.d.ts +4 -0
  61. package/dist/commands/hire.d.ts.map +1 -0
  62. package/dist/commands/hire.js +16 -0
  63. package/dist/commands/hire.js.map +1 -0
  64. package/dist/commands/init.d.ts.map +1 -1
  65. package/dist/commands/init.js +85 -48
  66. package/dist/commands/init.js.map +1 -1
  67. package/dist/commands/invite.d.ts +4 -0
  68. package/dist/commands/invite.d.ts.map +1 -0
  69. package/dist/commands/invite.js +37 -0
  70. package/dist/commands/invite.js.map +1 -0
  71. package/dist/commands/mark.d.ts.map +1 -1
  72. package/dist/commands/mark.js +7 -7
  73. package/dist/commands/mark.js.map +1 -1
  74. package/dist/commands/pay.d.ts +4 -0
  75. package/dist/commands/pay.d.ts.map +1 -0
  76. package/dist/commands/pay.js +21 -0
  77. package/dist/commands/pay.js.map +1 -0
  78. package/dist/commands/pipe.d.ts +4 -0
  79. package/dist/commands/pipe.d.ts.map +1 -0
  80. package/dist/commands/pipe.js +35 -0
  81. package/dist/commands/pipe.js.map +1 -0
  82. package/dist/commands/publish.d.ts +4 -0
  83. package/dist/commands/publish.d.ts.map +1 -0
  84. package/dist/commands/publish.js +23 -0
  85. package/dist/commands/publish.js.map +1 -0
  86. package/dist/commands/repl.d.ts +4 -0
  87. package/dist/commands/repl.d.ts.map +1 -0
  88. package/dist/commands/repl.js +56 -0
  89. package/dist/commands/repl.js.map +1 -0
  90. package/dist/commands/revenue.d.ts +4 -0
  91. package/dist/commands/revenue.d.ts.map +1 -0
  92. package/dist/commands/revenue.js +11 -0
  93. package/dist/commands/revenue.js.map +1 -0
  94. package/dist/commands/sell.d.ts +15 -0
  95. package/dist/commands/sell.d.ts.map +1 -0
  96. package/dist/commands/sell.js +49 -0
  97. package/dist/commands/sell.js.map +1 -0
  98. package/dist/commands/stats.d.ts +4 -0
  99. package/dist/commands/stats.d.ts.map +1 -0
  100. package/dist/commands/stats.js +11 -0
  101. package/dist/commands/stats.js.map +1 -0
  102. package/dist/commands/status.d.ts +4 -0
  103. package/dist/commands/status.d.ts.map +1 -0
  104. package/dist/commands/status.js +18 -0
  105. package/dist/commands/status.js.map +1 -0
  106. package/dist/commands/subscribe.d.ts +14 -0
  107. package/dist/commands/subscribe.d.ts.map +1 -0
  108. package/dist/commands/subscribe.js +33 -0
  109. package/dist/commands/subscribe.js.map +1 -0
  110. package/dist/commands/tail.d.ts +4 -0
  111. package/dist/commands/tail.d.ts.map +1 -0
  112. package/dist/commands/tail.js +51 -0
  113. package/dist/commands/tail.js.map +1 -0
  114. package/dist/commands/warn.d.ts.map +1 -1
  115. package/dist/commands/warn.js +6 -6
  116. package/dist/commands/warn.js.map +1 -1
  117. package/dist/index.js +70 -1
  118. package/dist/index.js.map +1 -1
  119. package/dist/lib/args.d.ts +1 -0
  120. package/dist/lib/args.d.ts.map +1 -1
  121. package/dist/lib/args.js +3 -0
  122. package/dist/lib/args.js.map +1 -1
  123. package/dist/lib/output.d.ts +5 -0
  124. package/dist/lib/output.d.ts.map +1 -0
  125. package/dist/lib/output.js +32 -0
  126. package/dist/lib/output.js.map +1 -0
  127. package/dist/lib/sdk.d.ts +10 -0
  128. package/dist/lib/sdk.d.ts.map +1 -0
  129. package/dist/lib/sdk.js +22 -0
  130. package/dist/lib/sdk.js.map +1 -0
  131. package/dist/utils/installation-setup.d.ts +15 -0
  132. package/dist/utils/installation-setup.d.ts.map +1 -1
  133. package/dist/utils/installation-setup.js +63 -0
  134. package/dist/utils/installation-setup.js.map +1 -1
  135. package/package.json +3 -18
  136. package/.claude/agents/TROUBLESHOOTING.md +0 -530
  137. package/.claude/agents/agent-backend.md +0 -574
  138. package/.claude/agents/agent-builder.md +0 -911
  139. package/.claude/agents/agent-claude.md +0 -645
  140. package/.claude/agents/agent-clean.md +0 -477
  141. package/.claude/agents/agent-clone.md +0 -554
  142. package/.claude/agents/agent-designer.md +0 -1080
  143. package/.claude/agents/agent-director.md +0 -2254
  144. package/.claude/agents/agent-documenter.md +0 -688
  145. package/.claude/agents/agent-frontend.md +0 -1199
  146. package/.claude/agents/agent-integrator.md +0 -670
  147. package/.claude/agents/agent-lawyer.md +0 -1320
  148. package/.claude/agents/agent-news.md +0 -363
  149. package/.claude/agents/agent-onboard.md +0 -613
  150. package/.claude/agents/agent-ontology.md +0 -585
  151. package/.claude/agents/agent-ops.md +0 -1275
  152. package/.claude/agents/agent-problem-solver.md +0 -669
  153. package/.claude/agents/agent-quality.md +0 -1042
  154. package/.claude/agents/agent-sales.md +0 -507
  155. package/.claude/agents/agent-writer.md +0 -1068
  156. package/.claude/commands/cascade.md +0 -742
  157. package/.claude/commands/chat.md +0 -728
  158. package/.claude/commands/commit.md +0 -95
  159. package/.claude/commands/create.md +0 -544
  160. package/.claude/commands/deploy.md +0 -309
  161. package/.claude/commands/fast.md +0 -636
  162. package/.claude/commands/mcp-on.md +0 -191
  163. package/.claude/commands/media-upload.md +0 -186
  164. package/.claude/commands/news.md +0 -274
  165. package/.claude/commands/onboard.md +0 -440
  166. package/.claude/commands/one.md +0 -398
  167. package/.claude/commands/optimize.md +0 -74
  168. package/.claude/commands/plan.md +0 -719
  169. package/.claude/commands/push.md +0 -214
  170. package/.claude/commands/release.md +0 -105
  171. package/.claude/commands/review.md +0 -99
  172. package/.claude/commands/server.md +0 -487
  173. package/.claude/commands/start.md +0 -227
  174. package/.claude/commands/test.md +0 -197
  175. package/.claude/commands/validate.md +0 -140
  176. package/.claude/hooks/.last-news-context +0 -1
  177. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +0 -473
  178. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  179. package/.claude/hooks/README-news-generation.md +0 -364
  180. package/.claude/hooks/README-root-cleanup.md +0 -200
  181. package/.claude/hooks/README.md +0 -284
  182. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  183. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  184. package/.claude/hooks/auto-format.sh +0 -106
  185. package/.claude/hooks/check-filenames.py +0 -177
  186. package/.claude/hooks/clean-post.py +0 -468
  187. package/.claude/hooks/clean-pre.py +0 -393
  188. package/.claude/hooks/clean-root-markdown.sh +0 -73
  189. package/.claude/hooks/commit-push.sh +0 -95
  190. package/.claude/hooks/done.py +0 -236
  191. package/.claude/hooks/format-hook.sh +0 -163
  192. package/.claude/hooks/formatting.py +0 -187
  193. package/.claude/hooks/hook-logger.sh +0 -173
  194. package/.claude/hooks/knowledge-post.py +0 -355
  195. package/.claude/hooks/knowledge-pre.py +0 -245
  196. package/.claude/hooks/mcp-on.sh +0 -134
  197. package/.claude/hooks/notification-hook.sh +0 -279
  198. package/.claude/hooks/ontology-validation.py +0 -255
  199. package/.claude/hooks/push.sh +0 -153
  200. package/.claude/hooks/release-cli.sh +0 -205
  201. package/.claude/hooks/root-cleanup.py +0 -217
  202. package/.claude/hooks/security-hook.sh +0 -397
  203. package/.claude/hooks/tag-all-docs.py +0 -464
  204. package/.claude/hooks/test-validate-ontology.sh +0 -170
  205. package/.claude/hooks/todo.py +0 -368
  206. package/.claude/hooks/track-changes.sh +0 -101
  207. package/.claude/hooks/validate-imports.py +0 -182
  208. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  209. package/.claude/hooks/validate-ontology-structure.py +0 -558
  210. package/.claude/hooks/validate-ontology-structure.py.backup +0 -518
  211. package/.claude/hooks/validate-ontology.py +0 -140
  212. package/.claude/hooks/write-news.sh +0 -194
  213. package/.claude/skills/INDEX.md +0 -523
  214. package/.claude/skills/REGISTRY.md +0 -529
  215. package/.claude/skills/agent-backend-create-mutation.md +0 -319
  216. package/.claude/skills/agent-designer-create-wireframe.md +0 -341
  217. package/.claude/skills/agent-frontend-create-page.md +0 -413
  218. package/.claude/skills/agents/README.md +0 -238
  219. package/.claude/skills/astro/add-content-collection.md +0 -30
  220. package/.claude/skills/astro/check-build.md +0 -29
  221. package/.claude/skills/astro/create-component.md +0 -29
  222. package/.claude/skills/astro/create-page.md +0 -30
  223. package/.claude/skills/astro/optimize-performance.md +0 -21
  224. package/.claude/skills/convex/check-deployment.md +0 -46
  225. package/.claude/skills/convex/create-mutation.md +0 -405
  226. package/.claude/skills/convex/create-query.md +0 -52
  227. package/.claude/skills/convex/read-schema.md +0 -373
  228. package/.claude/skills/convex/test-function.md +0 -50
  229. package/.claude/skills/deployment/check-deployment-health.md +0 -20
  230. package/.claude/skills/deployment/create-release.md +0 -21
  231. package/.claude/skills/deployment/deploy-cloudflare.md +0 -31
  232. package/.claude/skills/deployment/deploy-convex.md +0 -30
  233. package/.claude/skills/deployment/sync-repositories.md +0 -19
  234. package/.claude/skills/design/check-accessibility.md +0 -21
  235. package/.claude/skills/design/create-component-spec.md +0 -27
  236. package/.claude/skills/design/generate-design-tokens.md +0 -24
  237. package/.claude/skills/design/generate-wireframe.md +0 -30
  238. package/.claude/skills/documentation/create-migration-guide.md +0 -20
  239. package/.claude/skills/documentation/generate-api-docs.md +0 -27
  240. package/.claude/skills/documentation/generate-readme.md +0 -22
  241. package/.claude/skills/documentation/update-knowledge.md +0 -20
  242. package/.claude/skills/integration/connect-external-system.md +0 -21
  243. package/.claude/skills/integration/implement-a2a.md +0 -20
  244. package/.claude/skills/integration/implement-acp.md +0 -20
  245. package/.claude/skills/integration/verify-integration.md +0 -20
  246. package/.claude/skills/ontology/README.md +0 -255
  247. package/.claude/skills/ontology/check-dimension.md +0 -307
  248. package/.claude/skills/ontology/generate-entity-type.md +0 -339
  249. package/.claude/skills/ontology/validate-schema.md +0 -229
  250. package/.claude/skills/ontology/verify-relationships.md +0 -310
  251. package/.claude/skills/problem-solving/analyze-test-failure.md +0 -21
  252. package/.claude/skills/problem-solving/identify-root-cause.md +0 -20
  253. package/.claude/skills/problem-solving/propose-solution.md +0 -29
  254. package/.claude/skills/problem-solving/verify-fix.md +0 -21
  255. package/.claude/skills/sales/generate-demo-script.md +0 -21
  256. package/.claude/skills/sales/qualify-lead.md +0 -30
  257. package/.claude/skills/sales/track-trial.md +0 -20
  258. package/.claude/skills/sales/verify-kyc.md +0 -20
  259. package/.claude/skills/testing/analyze-coverage.md +0 -24
  260. package/.claude/skills/testing/generate-tests.md +0 -24
  261. package/.claude/skills/testing/run-tests.md +0 -27
  262. package/.claude/skills/testing/validate-e2e.md +0 -25
  263. package/AGENTS.md +0 -60
  264. package/CLAUDE.md +0 -130
  265. package/CREATE-WEBSITE.md +0 -458
  266. package/SECURITY.md +0 -31
  267. package/folders.yaml +0 -92
  268. package/one/README.md +0 -760
  269. package/one/actors/anthony-o-connell.md +0 -469
  270. package/one/actors/people.md +0 -590
  271. package/one/events/0-changes.md +0 -2764
  272. package/one/events/1-PROJECTS-START-HERE.md +0 -384
  273. package/one/events/1-projects-developer-quickstart.md +0 -620
  274. package/one/events/1-projects-feature.md +0 -2047
  275. package/one/events/1-projects-team-briefing.md +0 -583
  276. package/one/events/2024-10-14-deployment-plan.md +0 -330
  277. package/one/events/2024-10-14-deployment-success.md +0 -447
  278. package/one/events/2024-10-14-final-sync-complete.md +0 -250
  279. package/one/events/2024-10-14-release-v2.0.6.md +0 -414
  280. package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -495
  281. package/one/events/2024-10-15-handoff-to-clean.md +0 -347
  282. package/one/events/2024-10-15-package-manager-tests.md +0 -442
  283. package/one/events/2024-10-15-release-command-complete.md +0 -416
  284. package/one/events/2025-10-15-private-files-secured.md +0 -359
  285. package/one/events/2025-10-15-unignore-public-group-docs.md +0 -298
  286. package/one/events/2025-11-08-backend-claude-refactor.md +0 -242
  287. package/one/events/2025-11-08-parallel-agent-implementation.md +0 -620
  288. package/one/events/2025-11-10-ai-integration-status-report.md +0 -241
  289. package/one/events/ACCESSIBILITY_CHECKLIST.md +0 -275
  290. package/one/events/ACCESSIBILITY_FIXES_SUMMARY.md +0 -293
  291. package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +0 -335
  292. package/one/events/ALIGNMENT_SUMMARY.md +0 -280
  293. package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -280
  294. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -654
  295. package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +0 -598
  296. package/one/events/AUDIT_PLAN_COMPLETION-20251108-125555.md +0 -262
  297. package/one/events/BEFORE_AFTER_COMPARISON.md +0 -978
  298. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -372
  299. package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -430
  300. package/one/events/CHARTS-READY-TO-USE-20251106-080939.md +0 -184
  301. package/one/events/CHARTS-SUMMARY-20251106-080938.md +0 -196
  302. package/one/events/CLAUDE copy.md +0 -897
  303. package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -308
  304. package/one/events/CLOUDFLARE-FS-FIX-20251106-100516.md +0 -75
  305. package/one/events/COMPONENT_SHOWCASE-20251106-080938.md +0 -629
  306. package/one/events/CONNECTIONS_DEMO.md +0 -519
  307. package/one/events/CREATE-WEBSITE.md +0 -460
  308. package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -571
  309. package/one/events/CUSTOM-DOMAIN.md +0 -375
  310. package/one/events/DELIVERABLES.md +0 -450
  311. package/one/events/DELIVERABLES.txt +0 -273
  312. package/one/events/DEMO-GROUPS-PAGE.md +0 -410
  313. package/one/events/DEMO-TESTING-SUMMARY.md +0 -536
  314. package/one/events/DEMO_COMPONENTS.md +0 -505
  315. package/one/events/DEMO_HOOKS_INDEX.md +0 -352
  316. package/one/events/DEMO_INFRASTRUCTURE.md +0 -923
  317. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -588
  318. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -449
  319. package/one/events/DEMO_QUICK_REFERENCE.md +0 -459
  320. package/one/events/DEMO_SETUP.md +0 -494
  321. package/one/events/DEPLOYMENT copy.md +0 -444
  322. package/one/events/DEPLOYMENT.md +0 -196
  323. package/one/events/DESIGN-DELIVERABLES-20251106-080938.md +0 -557
  324. package/one/events/DESIGN-EXECUTIVE-SUMMARY-20251106-080938.md +0 -484
  325. package/one/events/DOCS-SYSTEM-GUIDE-20251105-142103.md +0 -458
  326. package/one/events/DOCUMENTER-DELIVERY-SUMMARY.md +0 -481
  327. package/one/events/DOCUMENTER-EXECUTION-GUIDE.md +0 -394
  328. package/one/events/DOCUMENTER-TASK-BREAKDOWN.md +0 -783
  329. package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -267
  330. package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -243
  331. package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -594
  332. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -439
  333. package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -381
  334. package/one/events/ECOMMERCE-QUICKSTART.md +0 -376
  335. package/one/events/ECOMMERCE-README.md +0 -354
  336. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -214
  337. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -414
  338. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -753
  339. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -941
  340. package/one/events/EFFECT_TS_API_PATTERN.md +0 -496
  341. package/one/events/EXECUTION-READY.md +0 -359
  342. package/one/events/EXECUTION-SUMMARY.md +0 -478
  343. package/one/events/FEATURE-2-4-COMPLETE.md +0 -320
  344. package/one/events/FEATURE_2_3_COMPLETE.md +0 -593
  345. package/one/events/FILE-REFERENCE-20251105-142103.md +0 -325
  346. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -241
  347. package/one/events/GROUPS-MIGRATION.md +0 -643
  348. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -432
  349. package/one/events/HANDOFF.md +0 -331
  350. package/one/events/HOOKS-DEMO.md +0 -459
  351. package/one/events/IMPLEMENTATION-CHECKLIST-20251105-142103.md +0 -274
  352. package/one/events/IMPLEMENTATION-REPORT-DOCS-20251105-142102.md +0 -394
  353. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -568
  354. package/one/events/IMPLEMENTATION_SUMMARY-20251106-080938.md +0 -571
  355. package/one/events/IMPLEMENTATION_SUMMARY.md +0 -547
  356. package/one/events/INDEX-ALL-AGENTS.md +0 -190
  357. package/one/events/INDEX-FRONTEND-TESTING.md +0 -524
  358. package/one/events/INDEX-PROBLEM-SOLVER.md +0 -488
  359. package/one/events/INDEX-QUALITY-AGENT-INFER65.md +0 -455
  360. package/one/events/INDEX.md +0 -295
  361. package/one/events/INDEX_QUICK_START_REDESIGN-20251106-080939.md +0 -342
  362. package/one/events/INSTALL-TESTS.md +0 -311
  363. package/one/events/INSTALLATION_FOLDERS.md +0 -534
  364. package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -223
  365. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -437
  366. package/one/events/INTEGRATION-ARCHITECTURE.md +0 -579
  367. package/one/events/INTEGRATION-CHECKLIST.md +0 -1252
  368. package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2641
  369. package/one/events/INTEGRATION-SUMMARY.md +0 -671
  370. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -684
  371. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -660
  372. package/one/events/LANDING-PAGE-QUICKSTART.md +0 -425
  373. package/one/events/LICENSE.md +0 -107
  374. package/one/events/MASTER-COORDINATION-PLAN.md +0 -613
  375. package/one/events/MASTER-ORCHESTRATION-INFER65.md +0 -441
  376. package/one/events/MASTER-PLAN-SUMMARY.md +0 -309
  377. package/one/events/MCP-CONFIGURATION.md +0 -354
  378. package/one/events/MCP-SETUP-COMPLETE.md +0 -223
  379. package/one/events/MIGRATION-REPORT.md +0 -453
  380. package/one/events/MIGRATION.md +0 -87
  381. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1663
  382. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -643
  383. package/one/events/NEWS-COMMANDS.md +0 -506
  384. package/one/events/NEWS-SYSTEM-SUMMARY.md +0 -480
  385. package/one/events/NODE-UPGRADE.md +0 -129
  386. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -416
  387. package/one/events/ONTOLOGY-HOOKS-README.md +0 -718
  388. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -383
  389. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -569
  390. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -491
  391. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -504
  392. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -221
  393. package/one/events/PACKAGE-STRUCTURE.md +0 -328
  394. package/one/events/PLAN-COMPLETE.md +0 -429
  395. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -349
  396. package/one/events/PROBLEM-SOLVER-EXECUTIVE-SUMMARY.md +0 -484
  397. package/one/events/PROBLEM-SOLVER-QUICKSTART.md +0 -420
  398. package/one/events/PROJECTS-PLAN-SUMMARY.md +0 -480
  399. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -585
  400. package/one/events/QA-CHECKLIST.md +0 -692
  401. package/one/events/QUALITY-AGENT-SUMMARY.md +0 -334
  402. package/one/events/QUALITY-EXECUTION-CHECKLIST.md +0 -593
  403. package/one/events/QUICK-REFERENCE-FRONTEND-TESTING.md +0 -475
  404. package/one/events/QUICK-START-ONTOLOGY.md +0 -426
  405. package/one/events/QUICK_START_REDESIGN-20251106-080938.md +0 -400
  406. package/one/events/README-PROBLEM-SOLVER.md +0 -394
  407. package/one/events/README-archived.md +0 -537
  408. package/one/events/README_QUICK_START_REDESIGN-20251106-080938.md +0 -484
  409. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -657
  410. package/one/events/SEARCH_DEMO_DELIVERY.md +0 -433
  411. package/one/events/SEARCH_DEMO_SUMMARY.md +0 -321
  412. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -399
  413. package/one/events/SECURITY-AUDIT-FIXES.md +0 -394
  414. package/one/events/SECURITY-SCAN-COMPLETE.md +0 -299
  415. package/one/events/SHOP-BUILD-STATUS.md +0 -132
  416. package/one/events/SHOP-PREMIUM-UPDATE.md +0 -165
  417. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -280
  418. package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -317
  419. package/one/events/SPECIALIST-QUICK-REFERENCE.md +0 -678
  420. package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -377
  421. package/one/events/STRIPE-INTEGRATION.md +0 -432
  422. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -447
  423. package/one/events/STRIPE-SETUP-GUIDE.md +0 -480
  424. package/one/events/TEST-PLAN-INDEX.md +0 -364
  425. package/one/events/TEST-PLAN.md +0 -1435
  426. package/one/events/TEST-SUMMARY.md +0 -411
  427. package/one/events/TESTING-DELIVERY.txt +0 -372
  428. package/one/events/TESTS-QUICK-REF.md +0 -280
  429. package/one/events/TRANSITIONS-QUICK-START.md +0 -159
  430. package/one/events/TRANSPARENCY-FIXES.md +0 -293
  431. package/one/events/TYPESCRIPT_FIXES.md +0 -170
  432. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
  433. package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -359
  434. package/one/events/VERIFICATION_CHECKLIST-20251106-080938.md +0 -326
  435. package/one/events/VIEW-TRANSITIONS.md +0 -446
  436. package/one/events/agent-command-implementation.md +0 -305
  437. package/one/events/agent-director-enhancement-summary.md +0 -404
  438. package/one/events/agent-director-routing-update.md +0 -214
  439. package/one/events/agent-onboard-implementation-summary.md +0 -475
  440. package/one/events/agent-ontology-alignment-completion.md +0 -263
  441. package/one/events/ai-integration-complete.md +0 -294
  442. package/one/events/ai-integration-lessons-learned.md +0 -511
  443. package/one/events/backend-integration-tests.md +0 -624
  444. package/one/events/backend-structure-diagram.txt +0 -393
  445. package/one/events/backend-structure-summary.txt +0 -269
  446. package/one/events/bullfm-video-podcast-analysis.md +0 -319
  447. package/one/events/clean-agent-ontology-cleanup-report.md +0 -371
  448. package/one/events/clean-agent-todo-analysis-summary.md +0 -336
  449. package/one/events/cloudflare-automation-complete.md +0 -350
  450. package/one/events/cloudflare-pages-infrastructure-setup.md +0 -282
  451. package/one/events/contact-page-complete.md +0 -316
  452. package/one/events/convex-analysis-index.md +0 -322
  453. package/one/events/convex-structure-analysis.md +0 -718
  454. package/one/events/creation-instructions-9-todos.md +0 -906
  455. package/one/events/cycle-3-video-player-port-20251108.md +0 -368
  456. package/one/events/cycle-3-video-player-port-complete-20251108.md +0 -334
  457. package/one/events/deployment-installation-folders.md +0 -178
  458. package/one/events/deployment-ops-summary.md +0 -386
  459. package/one/events/deployment-verification.md +0 -366
  460. package/one/events/design-spec-complete.md +0 -226
  461. package/one/events/documentation-audit-index.md +0 -473
  462. package/one/events/documentation-audit-summary.md +0 -417
  463. package/one/events/documentation-improvement-roadmap.md +0 -906
  464. package/one/events/documentation-standards-compliance-report.md +0 -538
  465. package/one/events/documentation-updates.md +0 -370
  466. package/one/events/events.md +0 -563
  467. package/one/events/fix-product-hydration-20251106.md +0 -211
  468. package/one/events/frontend-effects-complete.md +0 -584
  469. package/one/events/frontend-effects-orchestration.md +0 -1356
  470. package/one/events/frontend-effects-risk-register.md +0 -1055
  471. package/one/events/frontend-effects-week1-assignments.md +0 -1594
  472. package/one/events/hook-ontology-alignment-summary.md +0 -528
  473. package/one/events/installation-folders-workflow-integration.md +0 -458
  474. package/one/events/landing-page-generator.md +0 -476
  475. package/one/events/legal-assessment-2025-10-16.md +0 -1917
  476. package/one/events/master-coordination-plan.json +0 -1078
  477. package/one/events/master-plan-9-todos.md +0 -900
  478. package/one/events/mobile-performance-optimization.md +0 -179
  479. package/one/events/onboarding-implementation-complete.md +0 -523
  480. package/one/events/ontology-audit-agent-clone.md +0 -323
  481. package/one/events/ontology-test-examples.md +0 -580
  482. package/one/events/phase1-backend-implementation-complete.md +0 -536
  483. package/one/events/plan-completion-audit.md +0 -707
  484. package/one/events/plan-files-updated.md +0 -273
  485. package/one/events/production-readiness-plan.md +0 -389
  486. package/one/events/readme.md +0 -100
  487. package/one/events/release.md +0 -272
  488. package/one/events/root-cleanup-alignment-report.md +0 -265
  489. package/one/events/security-fixes-2025-01-15.md +0 -226
  490. package/one/events/separate-implementation-status.md +0 -555
  491. package/one/events/server-command-optimization-20251108.md +0 -150
  492. package/one/events/session-summary-2025-10-18.md +0 -366
  493. package/one/events/skills-complete.md +0 -351
  494. package/one/events/skills-infer-6-10-summary.md +0 -70
  495. package/one/events/skills-phase1-complete.md +0 -281
  496. package/one/events/specialist-assignments.md +0 -766
  497. package/one/events/structural-analysis-architecture-vs-plans.md +0 -600
  498. package/one/events/test-dashboard.md +0 -363
  499. package/one/events/test-index.md +0 -421
  500. package/one/events/test-report-ontology.md +0 -611
  501. package/one/events/testing-summary.md +0 -388
  502. package/one/events/todo-agent-builder.md +0 -1180
  503. package/one/events/todo-agent-director.md +0 -164
  504. package/one/events/todo-agent-documenter.md +0 -1815
  505. package/one/events/todo-agent-frontend.md +0 -1542
  506. package/one/events/todo-agent-problem-solver.md +0 -1682
  507. package/one/events/todo-agent-quality.md +0 -1647
  508. package/one/events/todo-refactoring-complete.md +0 -408
  509. package/one/events/wave1-backend-implementation-complete.md +0 -698
  510. package/one/events/web-AI_INTEGRATION_PHASE2_SUMMARY-20251111-152540.md +0 -529
  511. package/one/events/web-BUY-IN-CHATGPT-README-20251116-235241.md +0 -491
  512. package/one/events/web-CHARTS-IMPLEMENTATION-20251106-080939.md +0 -576
  513. package/one/events/web-CHARTS-QUICKSTART-20251106-080939.md +0 -416
  514. package/one/events/web-CODE-HIGHLIGHTING-SUMMARY-20251111-152540.md +0 -442
  515. package/one/events/web-DEPLOYMENT_SUMMARY-20251116-005428.md +0 -290
  516. package/one/events/web-DESIGN-SUMMARY-20251106-080939.md +0 -514
  517. package/one/events/web-README-AI-INTEGRATION-20251111-152540.md +0 -196
  518. package/one/events/web-RECHARTS-INTEGRATION-20251111-152540.md +0 -265
  519. package/one/events/web-RELEASE_OPTIMIZATION_PLAN-20251116-005428.md +0 -447
  520. package/one/events/web-TEST-CLEANUP-20251105-143205.md +0 -3
  521. package/one/events/web-USING-ANY-COMPONENT-IN-CHAT-20251111-152540.md +0 -561
  522. package/one/events/web-test-code-highlighting-20251111-152540.md +0 -231
  523. package/one/groups/features.md +0 -2904
  524. package/one/groups/groups.md +0 -587
  525. package/one/groups/one.md +0 -619
  526. package/one/groups/strategy-copy.md +0 -887
  527. package/one/learning/.obsidian/app.json +0 -1
  528. package/one/learning/.obsidian/appearance.json +0 -1
  529. package/one/learning/.obsidian/core-plugins.json +0 -33
  530. package/one/learning/.obsidian/ecommerce-ontology.md +0 -210
  531. package/one/learning/.obsidian/workspace.json +0 -211
  532. package/one/learning/100-inference-quick-reference.md +0 -449
  533. package/one/learning/ag-ui-protocol.md +0 -613
  534. package/one/learning/agent-onboard-usage.md +0 -630
  535. package/one/learning/agentic-commerce.md +0 -146
  536. package/one/learning/ai-agents-vs-memecoins-thesis.md +0 -683
  537. package/one/learning/ai-api-reference.md +0 -715
  538. package/one/learning/ai-platform.md +0 -323
  539. package/one/learning/ai-quickstart.md +0 -355
  540. package/one/learning/ai-sdk-implementation.md +0 -436
  541. package/one/learning/ai-token-crypto-analysis-framework.md +0 -1191
  542. package/one/learning/ai-token-paradigm-shift-2025.md +0 -732
  543. package/one/learning/altcoin-cycle-prediction-ontology.md +0 -884
  544. package/one/learning/altcoin-cycle-trading-strategy.md +0 -642
  545. package/one/learning/architecture-any-backend.md +0 -1589
  546. package/one/learning/architecture-diagram.md +0 -404
  547. package/one/learning/architecture-frontend.md +0 -1014
  548. package/one/learning/architecture.md +0 -1742
  549. package/one/learning/archived/ontology.old.md +0 -2840
  550. package/one/learning/astro-effect-complete-vision.md +0 -2148
  551. package/one/learning/astro-effect-simple-architecture.md +0 -750
  552. package/one/learning/audit-agent-onboard-alignment.md +0 -481
  553. package/one/learning/audit-agent-sales-alignment.md +0 -444
  554. package/one/learning/backend-api-reference.md +0 -728
  555. package/one/learning/cascading-context-specification.md +0 -1617
  556. package/one/learning/claude-code-integration.md +0 -1293
  557. package/one/learning/cli-claude-handoff.md +0 -736
  558. package/one/learning/context-engineering.md +0 -610
  559. package/one/learning/crypto-analysis-strategy.md +0 -1276
  560. package/one/learning/crypto-cycle-2024-2025-analysis.md +0 -44
  561. package/one/learning/crypto.md +0 -978
  562. package/one/learning/develop/design.md +0 -364
  563. package/one/learning/develop/index.md +0 -145
  564. package/one/learning/development-commands.md +0 -251
  565. package/one/learning/docs.md +0 -627
  566. package/one/learning/dsl.md +0 -1678
  567. package/one/learning/event-driven-documentation.md +0 -270
  568. package/one/learning/files.md +0 -2489
  569. package/one/learning/frontend.md +0 -1056
  570. package/one/learning/games-english.md +0 -691
  571. package/one/learning/games.md +0 -1082
  572. package/one/learning/generative-ui-patterns.md +0 -559
  573. package/one/learning/guidelines.md +0 -314
  574. package/one/learning/hono.md +0 -2127
  575. package/one/learning/implementation-examples.md +0 -2554
  576. package/one/learning/installation-folders.md +0 -366
  577. package/one/learning/institutional-cycle-paradigm-2025.md +0 -555
  578. package/one/learning/knowledge.md +0 -660
  579. package/one/learning/language.md +0 -998
  580. package/one/learning/lessons-learned.md +0 -378
  581. package/one/learning/lessons-website-building-focus.md +0 -382
  582. package/one/learning/merge-report.md +0 -254
  583. package/one/learning/metadata-system.md +0 -504
  584. package/one/learning/nine-padel-playbook.md +0 -229
  585. package/one/learning/one-protocol-ai-agents.md +0 -892
  586. package/one/learning/one-protocol-executive-report.md +0 -617
  587. package/one/learning/one-protocol-standard.md +0 -869
  588. package/one/learning/one-protocol-whitepaper.md +0 -756
  589. package/one/learning/ontology-blog.yaml +0 -47
  590. package/one/learning/ontology-cheatsheet.md +0 -617
  591. package/one/learning/ontology-community.yaml +0 -65
  592. package/one/learning/ontology-core-universal.md +0 -740
  593. package/one/learning/ontology-core.yaml +0 -63
  594. package/one/learning/ontology-courses.yaml +0 -76
  595. package/one/learning/ontology-creator.md +0 -402
  596. package/one/learning/ontology-crypto.md +0 -1603
  597. package/one/learning/ontology-developer-guide.md +0 -814
  598. package/one/learning/ontology-documentation.md +0 -377
  599. package/one/learning/ontology-ecommerce.md +0 -269
  600. package/one/learning/ontology-education-game.md +0 -1654
  601. package/one/learning/ontology-education.md +0 -938
  602. package/one/learning/ontology-engineering-specification.md +0 -1310
  603. package/one/learning/ontology-engineering.md +0 -1676
  604. package/one/learning/ontology-files.yaml +0 -525
  605. package/one/learning/ontology-frontend-master.md +0 -2898
  606. package/one/learning/ontology-frontend-specifications.md +0 -2196
  607. package/one/learning/ontology-frontend.md +0 -2475
  608. package/one/learning/ontology-index.md +0 -397
  609. package/one/learning/ontology-minimal.yaml +0 -301
  610. package/one/learning/ontology-portfolio.yaml +0 -45
  611. package/one/learning/ontology-quickstart.md +0 -602
  612. package/one/learning/ontology-release.md +0 -317
  613. package/one/learning/ontology-shop.yaml +0 -148
  614. package/one/learning/ontology-tokens.yaml +0 -51
  615. package/one/learning/ontology-tutorial.md +0 -455
  616. package/one/learning/ontology-v2.md +0 -4449
  617. package/one/learning/ontology-video-script.md +0 -939
  618. package/one/learning/ontology-visual-guide.md +0 -378
  619. package/one/learning/ontology.md +0 -3847
  620. package/one/learning/ontology.yaml +0 -1653
  621. package/one/learning/parallel-agents.md +0 -932
  622. package/one/learning/patterns/backend/convex-mutation-pattern.md +0 -130
  623. package/one/learning/patterns/backend/convex-query-pattern.md +0 -143
  624. package/one/learning/patterns/backend/mutation-template.md +0 -249
  625. package/one/learning/patterns/backend/query-template.md +0 -286
  626. package/one/learning/patterns/backend/service-template.md +0 -258
  627. package/one/learning/patterns/design/component-architecture.md +0 -435
  628. package/one/learning/patterns/design/index.md +0 -160
  629. package/one/learning/patterns/design/test-driven-design-pattern.md +0 -196
  630. package/one/learning/patterns/design/wireframe-template.md +0 -250
  631. package/one/learning/patterns/frontend/component-template.md +0 -246
  632. package/one/learning/patterns/frontend/form-template.md +0 -348
  633. package/one/learning/patterns/frontend/page-template.md +0 -209
  634. package/one/learning/patterns/frontend/react-component-pattern.md +0 -188
  635. package/one/learning/patterns/test/acceptance-criteria-template.md +0 -396
  636. package/one/learning/patterns/test/technical-test-template.md +0 -566
  637. package/one/learning/patterns/test/test-driven-pattern.md +0 -160
  638. package/one/learning/patterns/test/user-flow-template.md +0 -272
  639. package/one/learning/performance.md +0 -459
  640. package/one/learning/provider-agnostic-content.md +0 -995
  641. package/one/learning/provider-creation-guide.md +0 -1082
  642. package/one/learning/quality-loop.md +0 -419
  643. package/one/learning/quick-start-ontology-mapping.md +0 -773
  644. package/one/learning/readme-architecture.md +0 -158
  645. package/one/learning/readme.md +0 -149
  646. package/one/learning/rules.md +0 -644
  647. package/one/learning/score.md +0 -85
  648. package/one/learning/specifications.md +0 -873
  649. package/one/learning/tags.md +0 -148
  650. package/one/learning/todo-template.md +0 -269
  651. package/one/learning/todo.md +0 -269
  652. package/one/learning/troubleshooting.md +0 -434
  653. package/one/learning/typescript-patterns.md +0 -321
  654. package/one/learning/universal-generation-language.md +0 -827
  655. package/one/learning/x402-research.md +0 -104
  656. package/one/license.md +0 -107
  657. package/one/paths/a2a.md +0 -600
  658. package/one/paths/acp.md +0 -808
  659. package/one/paths/acps.md +0 -749
  660. package/one/paths/agentkit.md +0 -367
  661. package/one/paths/agui.md +0 -785
  662. package/one/paths/any-backend.md +0 -1720
  663. package/one/paths/ap2.md +0 -1072
  664. package/one/paths/api/queries-reference.md +0 -860
  665. package/one/paths/api-docs.md +0 -1909
  666. package/one/paths/api-reference.md +0 -1029
  667. package/one/paths/api.md +0 -2208
  668. package/one/paths/architecture-diagram.md +0 -112
  669. package/one/paths/communications.md +0 -467
  670. package/one/paths/connections.md +0 -357
  671. package/one/paths/copilotkit.md +0 -1577
  672. package/one/paths/cryptonetworks.md +0 -799
  673. package/one/paths/documentation.md +0 -1138
  674. package/one/paths/effect.md +0 -297
  675. package/one/paths/elizaos.md +0 -1308
  676. package/one/paths/groups.md +0 -814
  677. package/one/paths/inference.md +0 -76
  678. package/one/paths/integration-examples.md +0 -893
  679. package/one/paths/integration-guide.md +0 -887
  680. package/one/paths/integration-phase2.md +0 -754
  681. package/one/paths/kyc.md +0 -650
  682. package/one/paths/mcp.md +0 -860
  683. package/one/paths/membership.md +0 -1170
  684. package/one/paths/middleware.md +0 -1085
  685. package/one/paths/multitenant.md +0 -1359
  686. package/one/paths/n8n.md +0 -1033
  687. package/one/paths/patterns.md +0 -107
  688. package/one/paths/protocols.md +0 -297
  689. package/one/paths/relationships.md +0 -125
  690. package/one/paths/schema.md +0 -605
  691. package/one/paths/service-layer.md +0 -568
  692. package/one/paths/vectors.md +0 -225
  693. package/one/paths/wordpress.md +0 -1320
  694. package/one/paths/workflow-copy.md +0 -923
  695. package/one/paths/workflow-examples.md +0 -759
  696. package/one/paths/workflow-onboarding.md +0 -701
  697. package/one/paths/workflow.md +0 -923
  698. package/one/paths/workflows/delegation.md +0 -903
  699. package/one/paths/workflows/frontend.md +0 -1055
  700. package/one/paths/workflows/strategy.md +0 -921
  701. package/one/paths/workflows/tasks.md +0 -716
  702. package/one/paths/x402-baazar.md +0 -131
  703. package/one/paths/x402.md +0 -1353
  704. package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +0 -401
  705. package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +0 -588
  706. package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +0 -461
  707. package/one/things/CHECKLIST.md +0 -407
  708. package/one/things/IMPLEMENTATION_STATUS.md +0 -379
  709. package/one/things/ONE.md +0 -529
  710. package/one/things/agents/agent-backend.md +0 -1501
  711. package/one/things/agents/agent-builder.md +0 -1064
  712. package/one/things/agents/agent-clean.md +0 -1112
  713. package/one/things/agents/agent-clone.md +0 -1324
  714. package/one/things/agents/agent-deploy.md +0 -986
  715. package/one/things/agents/agent-designer.md +0 -2305
  716. package/one/things/agents/agent-director.md +0 -1526
  717. package/one/things/agents/agent-documenter.md +0 -1129
  718. package/one/things/agents/agent-frontend.md +0 -1201
  719. package/one/things/agents/agent-integrator.md +0 -1269
  720. package/one/things/agents/agent-lawyer.md +0 -1371
  721. package/one/things/agents/agent-problem-solver.md +0 -1457
  722. package/one/things/agents/agent-quality.md +0 -1483
  723. package/one/things/agents/agent-sales.md +0 -1074
  724. package/one/things/cascade/cascade.yaml +0 -481
  725. package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +0 -523
  726. package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +0 -314
  727. package/one/things/cascade/docs/examples/1-1-agent-prompts.md +0 -562
  728. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +0 -543
  729. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +0 -272
  730. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +0 -548
  731. package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +0 -586
  732. package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +0 -267
  733. package/one/things/cascade/docs/examples/1-3-event-coordination.md +0 -547
  734. package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +0 -665
  735. package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +0 -236
  736. package/one/things/cascade/docs/examples/1-4-knowledge-management.md +0 -652
  737. package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +0 -860
  738. package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +0 -255
  739. package/one/things/cascade/docs/examples/1-5-quality-loops.md +0 -725
  740. package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +0 -659
  741. package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +0 -256
  742. package/one/things/cascade/docs/examples/1-6-numbering-structure.md +0 -639
  743. package/one/things/cascade/docs/examples/readme.md +0 -259
  744. package/one/things/cascade/docs/getting-started.md +0 -533
  745. package/one/things/cascade/docs/workflow.md +0 -1378
  746. package/one/things/cascade/readme.md +0 -379
  747. package/one/things/cascade/templates/feature-template.md +0 -289
  748. package/one/things/claude/agents/advocacy-activation-manager.md +0 -710
  749. package/one/things/claude/agents/advocacy-campaign-designer.md +0 -688
  750. package/one/things/claude/agents/analyst.md +0 -508
  751. package/one/things/claude/agents/architect.md +0 -505
  752. package/one/things/claude/agents/brand-identity-specialist.md +0 -538
  753. package/one/things/claude/agents/bstp-token-strategist.md +0 -690
  754. package/one/things/claude/agents/builder-repo.md +0 -532
  755. package/one/things/claude/agents/bullstamp-community-builder.md +0 -597
  756. package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +0 -529
  757. package/one/things/claude/agents/bulltilt-platform-growth.md +0 -590
  758. package/one/things/claude/agents/company-bullstamp-character.md +0 -602
  759. package/one/things/claude/agents/company-bullstamp-community.md +0 -307
  760. package/one/things/claude/agents/company-bullstamp-marketing.md +0 -307
  761. package/one/things/claude/agents/company-bullstamp-token.md +0 -307
  762. package/one/things/claude/agents/company-bulltilt-growth.md +0 -307
  763. package/one/things/claude/agents/content-bibliography-formatter.md +0 -404
  764. package/one/things/claude/agents/content-calendar-planner.md +0 -473
  765. package/one/things/claude/agents/content-chapter-formatter.md +0 -513
  766. package/one/things/claude/agents/content-formatter.md +0 -571
  767. package/one/things/claude/agents/content-hook-specialist.md +0 -485
  768. package/one/things/claude/agents/content-image-formatter.md +0 -560
  769. package/one/things/claude/agents/content-introduction-formatter.md +0 -510
  770. package/one/things/claude/agents/content-multiplication-engine.md +0 -579
  771. package/one/things/claude/agents/content-playbook-writer.md +0 -473
  772. package/one/things/claude/agents/content-team-manager.md +0 -647
  773. package/one/things/claude/agents/content-toc-formatter.md +0 -547
  774. package/one/things/claude/agents/convex-backend-specialist.md +0 -2725
  775. package/one/things/claude/agents/core-manager.md +0 -607
  776. package/one/things/claude/agents/core-master.md +0 -426
  777. package/one/things/claude/agents/cross-functional-manager.md +0 -476
  778. package/one/things/claude/agents/crypto-airdrop-strategist.md +0 -622
  779. package/one/things/claude/agents/crypto-analytics-educator.md +0 -596
  780. package/one/things/claude/agents/crypto-architecture-specialist.md +0 -497
  781. package/one/things/claude/agents/crypto-community-analyst.md +0 -314
  782. package/one/things/claude/agents/crypto-community-psychologist.md +0 -546
  783. package/one/things/claude/agents/crypto-dex-optimization-expert.md +0 -579
  784. package/one/things/claude/agents/crypto-dex-optimizer.md +0 -307
  785. package/one/things/claude/agents/crypto-diamond-formation-specialist.md +0 -552
  786. package/one/things/claude/agents/crypto-diamond-hands.md +0 -307
  787. package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +0 -597
  788. package/one/things/claude/agents/crypto-engagement-specialist.md +0 -581
  789. package/one/things/claude/agents/crypto-market-researcher.md +0 -307
  790. package/one/things/claude/agents/crypto-marketing-orchestrator.md +0 -563
  791. package/one/things/claude/agents/crypto-network-effect-amplifier.md +0 -614
  792. package/one/things/claude/agents/crypto-optimization-analyst.md +0 -597
  793. package/one/things/claude/agents/crypto-strategic-synthesizer.md +0 -556
  794. package/one/things/claude/agents/crypto-team-manager.md +0 -392
  795. package/one/things/claude/agents/crypto-token-analyst.md +0 -319
  796. package/one/things/claude/agents/crypto-viral-content-creator.md +0 -549
  797. package/one/things/claude/agents/crypto-wallet-identification-expert.md +0 -527
  798. package/one/things/claude/agents/crypto-wallet-identifier.md +0 -307
  799. package/one/things/claude/agents/customer-journey-designer.md +0 -474
  800. package/one/things/claude/agents/customer-success-manager.md +0 -574
  801. package/one/things/claude/agents/dev.md +0 -406
  802. package/one/things/claude/agents/documenter.md +0 -548
  803. package/one/things/claude/agents/elevate-marketing-orchestrator.md +0 -403
  804. package/one/things/claude/agents/engagement-specialist.md +0 -502
  805. package/one/things/claude/agents/engineering-architect.md +0 -387
  806. package/one/things/claude/agents/engineering-business-analyst.md +0 -527
  807. package/one/things/claude/agents/engineering-developer.md +0 -386
  808. package/one/things/claude/agents/engineering-director.md +0 -322
  809. package/one/things/claude/agents/engineering-ingestor.md +0 -659
  810. package/one/things/claude/agents/engineering-product-manager.md +0 -525
  811. package/one/things/claude/agents/engineering-product-owner.md +0 -527
  812. package/one/things/claude/agents/engineering-project-coordinator.md +0 -525
  813. package/one/things/claude/agents/engineering-quality-assurance.md +0 -392
  814. package/one/things/claude/agents/engineering-team-manager.md +0 -515
  815. package/one/things/claude/agents/engineering-user-experience.md +0 -386
  816. package/one/things/claude/agents/framework-elevate-manager.md +0 -309
  817. package/one/things/claude/agents/improver.md +0 -805
  818. package/one/things/claude/agents/intelligence-team-manager.md +0 -390
  819. package/one/things/claude/agents/lead-capture-expert.md +0 -459
  820. package/one/things/claude/agents/lead-magnet-creator.md +0 -446
  821. package/one/things/claude/agents/market-research-analyst.md +0 -435
  822. package/one/things/claude/agents/marketing-brand-identity.md +0 -344
  823. package/one/things/claude/agents/marketing-content-hooks.md +0 -455
  824. package/one/things/claude/agents/marketing-content-multiplier.md +0 -331
  825. package/one/things/claude/agents/marketing-content-poster.md +0 -372
  826. package/one/things/claude/agents/marketing-customer-journey.md +0 -331
  827. package/one/things/claude/agents/marketing-director.md +0 -402
  828. package/one/things/claude/agents/marketing-engagement.md +0 -331
  829. package/one/things/claude/agents/marketing-lead-capture.md +0 -331
  830. package/one/things/claude/agents/marketing-lead-magnet.md +0 -331
  831. package/one/things/claude/agents/marketing-network-effects.md +0 -331
  832. package/one/things/claude/agents/marketing-nurture-campaigns.md +0 -331
  833. package/one/things/claude/agents/marketing-share-optimizer.md +0 -331
  834. package/one/things/claude/agents/marketing-team-manager.md +0 -451
  835. package/one/things/claude/agents/marketing-viral-growth.md +0 -232
  836. package/one/things/claude/agents/mission-commander.md +0 -378
  837. package/one/things/claude/agents/network-effect-analyst.md +0 -604
  838. package/one/things/claude/agents/nextjs-15-specialist.md +0 -1634
  839. package/one/things/claude/agents/npx.md +0 -946
  840. package/one/things/claude/agents/nurture-campaign-manager.md +0 -554
  841. package/one/things/claude/agents/one-master.md +0 -378
  842. package/one/things/claude/agents/one-orchestrator.md +0 -345
  843. package/one/things/claude/agents/one.md +0 -658
  844. package/one/things/claude/agents/playbook-generator.md +0 -526
  845. package/one/things/claude/agents/pm.md +0 -349
  846. package/one/things/claude/agents/po.md +0 -370
  847. package/one/things/claude/agents/qa.md +0 -361
  848. package/one/things/claude/agents/research-foundation-analyst.md +0 -324
  849. package/one/things/claude/agents/research-intelligence-gatherer.md +0 -435
  850. package/one/things/claude/agents/research-market-analyst.md +0 -324
  851. package/one/things/claude/agents/research-team-manager.md +0 -489
  852. package/one/things/claude/agents/sales-environment-optimizer.md +0 -519
  853. package/one/things/claude/agents/sales-team-manager.md +0 -407
  854. package/one/things/claude/agents/sales-upsell-strategist.md +0 -324
  855. package/one/things/claude/agents/service-advocacy-campaigns.md +0 -324
  856. package/one/things/claude/agents/service-advocacy-manager.md +0 -324
  857. package/one/things/claude/agents/service-success-manager.md +0 -324
  858. package/one/things/claude/agents/service-team-manager.md +0 -405
  859. package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +0 -2357
  860. package/one/things/claude/agents/share-optimization-specialist.md +0 -576
  861. package/one/things/claude/agents/sm.md +0 -352
  862. package/one/things/claude/agents/story-teller.md +0 -498
  863. package/one/things/claude/agents/task-master.md +0 -621
  864. package/one/things/claude/agents/tauri-cross-platform-specialist.md +0 -1912
  865. package/one/things/claude/agents/tester.md +0 -595
  866. package/one/things/claude/agents/the-bull-character-manager.md +0 -603
  867. package/one/things/claude/agents/tools-playbook-generator.md +0 -492
  868. package/one/things/claude/agents/turbo-repo-builder.md +0 -346
  869. package/one/things/claude/agents/upsell-strategist.md +0 -503
  870. package/one/things/claude/agents/ux-expert.md +0 -360
  871. package/one/things/claude/agents/viral-growth-orchestrator.md +0 -520
  872. package/one/things/claude/claude-code-hooks-development.json +0 -21
  873. package/one/things/claude/claude-code-hooks-production.json +0 -21
  874. package/one/things/claude/claude-code-hooks.json +0 -25
  875. package/one/things/claude/commands/agent.md +0 -124
  876. package/one/things/claude/commands/cascade-status.md +0 -153
  877. package/one/things/claude/commands/ingest.md +0 -343
  878. package/one/things/claude/commands/ingestor.md +0 -158
  879. package/one/things/claude/commands/mission.md +0 -103
  880. package/one/things/claude/commands/npx.md +0 -156
  881. package/one/things/claude/commands/one.md +0 -486
  882. package/one/things/claude/commands/quality-check.md +0 -252
  883. package/one/things/claude/commands/smart-route.md +0 -261
  884. package/one/things/claude/commands/start.md +0 -139
  885. package/one/things/claude/commands/story.md +0 -103
  886. package/one/things/claude/commands/task.md +0 -193
  887. package/one/things/claude/hook-bypass.json +0 -32
  888. package/one/things/claude/hooks/agent-hook-config.json +0 -427
  889. package/one/things/claude/hooks/build-hook.sh +0 -156
  890. package/one/things/claude/hooks/cleanup-hook.sh +0 -201
  891. package/one/things/claude/hooks/file-organization-hook.sh +0 -80
  892. package/one/things/claude/hooks/format-hook.sh +0 -43
  893. package/one/things/claude/hooks/hook-bypass.sh +0 -293
  894. package/one/things/claude/hooks/hook-debouncer.sh +0 -62
  895. package/one/things/claude/hooks/hook-logger.sh +0 -89
  896. package/one/things/claude/hooks/lint-hook.sh +0 -140
  897. package/one/things/claude/hooks/notification-hook.sh +0 -204
  898. package/one/things/claude/hooks/ontology-validation-hook.sh +0 -86
  899. package/one/things/claude/hooks/performance-metrics.json +0 -25
  900. package/one/things/claude/hooks/security-hook.sh +0 -256
  901. package/one/things/claude/hooks/story-validation-hook-enhanced.sh +0 -210
  902. package/one/things/claude/hooks/story-validation-hook.sh +0 -145
  903. package/one/things/claude/hooks/test-hook.sh +0 -145
  904. package/one/things/claude/hooks/test-story-validation.sh +0 -170
  905. package/one/things/claude/settings-local.json +0 -86
  906. package/one/things/cli/cli-code.md +0 -677
  907. package/one/things/cli/cli-compiler-code.md +0 -677
  908. package/one/things/cli/cli.md +0 -871
  909. package/one/things/components/card-shadcn.md +0 -953
  910. package/one/things/components/card.md +0 -1041
  911. package/one/things/components.md +0 -1743
  912. package/one/things/componets.md +0 -19
  913. package/one/things/contracts/Move.toml +0 -12
  914. package/one/things/contracts/README.md +0 -288
  915. package/one/things/contracts/one.move +0 -762
  916. package/one/things/contracts/sdk.ts +0 -579
  917. package/one/things/creator-diagram.md +0 -184
  918. package/one/things/crypto/FEATURES.md +0 -78
  919. package/one/things/crypto/ONECORE.md +0 -62
  920. package/one/things/crypto/ONECOREFAQ.md +0 -22
  921. package/one/things/crypto/ONECOREHOW.md +0 -46
  922. package/one/things/crypto/ONEENTERPRISE.md +0 -64
  923. package/one/things/crypto/ONEENTERPRISEFAQ.md +0 -64
  924. package/one/things/crypto/ONEENTERPRISEHOW.md +0 -53
  925. package/one/things/crypto/ONEPRO.md +0 -60
  926. package/one/things/crypto/ONEPROFAQ.md +0 -22
  927. package/one/things/crypto/ONEPROHOW.md +0 -53
  928. package/one/things/crypto/READMEAGENCY.md +0 -64
  929. package/one/things/crypto/VSL.md +0 -45
  930. package/one/things/crypto/WebsiteCopy.md +0 -176
  931. package/one/things/demo-accessibility-animations.md +0 -1025
  932. package/one/things/demo-components.md +0 -1310
  933. package/one/things/demo-design-summary.md +0 -692
  934. package/one/things/demo-design-system.md +0 -973
  935. package/one/things/demo-page-layouts.md +0 -1016
  936. package/one/things/design-system.md +0 -832
  937. package/one/things/designs/accessibility-audit.md +0 -877
  938. package/one/things/designs/component-specifications.md +0 -855
  939. package/one/things/designs/design-overview.md +0 -377
  940. package/one/things/designs/design-tokens.md +0 -448
  941. package/one/things/designs/wireframes-dashboard.md +0 -710
  942. package/one/things/docs/api-requests.md +0 -987
  943. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +0 -485
  944. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +0 -465
  945. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +0 -425
  946. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +0 -451
  947. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +0 -536
  948. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +0 -650
  949. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +0 -473
  950. package/one/things/docs/ecommerce/QUICK-START.md +0 -405
  951. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +0 -567
  952. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +0 -271
  953. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +0 -171
  954. package/one/things/docs/ecommerce/demo.astro +0 -309
  955. package/one/things/examples/children/lemonade-stand.md +0 -404
  956. package/one/things/examples/enterprise/crm-saas.md +0 -1444
  957. package/one/things/features/1-1-agent-prompts.md +0 -562
  958. package/one/things/features/1-2-yaml-orchestrator.md +0 -548
  959. package/one/things/features/1-3-event-coordination.md +0 -547
  960. package/one/things/features/1-4-knowledge-management.md +0 -652
  961. package/one/things/features/1-5-quality-loops.md +0 -725
  962. package/one/things/features/1-6-numbering-structure.md +0 -639
  963. package/one/things/features/2-1-dataprovider-interface.md +0 -2583
  964. package/one/things/features/2-2-config-system.md +0 -3242
  965. package/one/things/features/2-3-effectts-services.md +0 -1645
  966. package/one/things/features/2-4-react-hooks.md +0 -2136
  967. package/one/things/features/2-5-auth-migration.md +0 -2144
  968. package/one/things/features/2-6-dashboard-migration.md +0 -2084
  969. package/one/things/features/2-7-alternative-providers.md +0 -2578
  970. package/one/things/features/2-7-implementation-report.md +0 -724
  971. package/one/things/features/2-cli.md +0 -1720
  972. package/one/things/features/2-design.md +0 -1770
  973. package/one/things/features/2-tests.md +0 -576
  974. package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +0 -576
  975. package/one/things/features/DECOUPLING.md +0 -290
  976. package/one/things/features/DEPLOYMENT.md +0 -470
  977. package/one/things/features/IMPLEMENTATION_SUMMARY.md +0 -362
  978. package/one/things/features/improve.md +0 -861
  979. package/one/things/features/remove-convex-deps.md +0 -63
  980. package/one/things/features/top-features.md +0 -87
  981. package/one/things/features/use-one-backend.md +0 -1217
  982. package/one/things/features-in-english.md +0 -200
  983. package/one/things/files.yaml +0 -721
  984. package/one/things/ideas/1-create-workflow.md +0 -207
  985. package/one/things/ideas/2-backend-agnostic-frontend.md +0 -439
  986. package/one/things/implementation/backend-guide.md +0 -457
  987. package/one/things/interface.md +0 -257
  988. package/one/things/landing-page-implementation.md +0 -455
  989. package/one/things/legal/README.md +0 -234
  990. package/one/things/legal/privacy-policy.md +0 -1227
  991. package/one/things/legal/terms-of-service.md +0 -1432
  992. package/one/things/master-workflow-plan.md +0 -806
  993. package/one/things/pay.one.ie.md +0 -53
  994. package/one/things/plans/0-in-sync.md +0 -136
  995. package/one/things/plans/0-timeline.md +0 -36
  996. package/one/things/plans/1-create-workflow.md +0 -732
  997. package/one/things/plans/QUICK-START-SIMPLIFICATION.md +0 -333
  998. package/one/things/plans/README-SIMPLIFICATION.md +0 -349
  999. package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +0 -16
  1000. package/one/things/plans/SIMPLIFICATION-SUMMARY.md +0 -455
  1001. package/one/things/plans/ai-elements-integration.md +0 -483
  1002. package/one/things/plans/ai-elements.md +0 -1278
  1003. package/one/things/plans/ai-integration-plan.md +0 -263
  1004. package/one/things/plans/ai-integration.md +0 -996
  1005. package/one/things/plans/ai-sdk.md +0 -798
  1006. package/one/things/plans/ai-tools.md +0 -621
  1007. package/one/things/plans/app.md +0 -832
  1008. package/one/things/plans/architecture-summary.md +0 -312
  1009. package/one/things/plans/async-ai-agents.md +0 -233
  1010. package/one/things/plans/backend-agnostic-frontend.md +0 -390
  1011. package/one/things/plans/backend-cleanup-quickstart.md +0 -380
  1012. package/one/things/plans/backend-ontology-conformance.md +0 -475
  1013. package/one/things/plans/backend-status.md +0 -599
  1014. package/one/things/plans/backend-structure.md +0 -847
  1015. package/one/things/plans/backend-target-structure.md +0 -482
  1016. package/one/things/plans/backend.md +0 -1175
  1017. package/one/things/plans/better-auth-any-backend-revised.md +0 -1103
  1018. package/one/things/plans/better-auth-any-backend.md +0 -1896
  1019. package/one/things/plans/better-auth-available-features.md +0 -273
  1020. package/one/things/plans/big-plan.md +0 -52
  1021. package/one/things/plans/cli-updates-required.md +0 -320
  1022. package/one/things/plans/complete-step-by-step.md +0 -1409
  1023. package/one/things/plans/components.md +0 -709
  1024. package/one/things/plans/convex-agents.md +0 -1034
  1025. package/one/things/plans/convex-better-auth.md +0 -1141
  1026. package/one/things/plans/convex-on-off.md +0 -407
  1027. package/one/things/plans/crypto-token-researcher.md +0 -629
  1028. package/one/things/plans/data-quality-metrics.md +0 -745
  1029. package/one/things/plans/deep-researcher-agent.md +0 -466
  1030. package/one/things/plans/deploy-to-cloudflare.md +0 -623
  1031. package/one/things/plans/deployment-architecture.md +0 -469
  1032. package/one/things/plans/desktop.md +0 -1139
  1033. package/one/things/plans/development-plan.md +0 -1283
  1034. package/one/things/plans/development-workflow-tldr.md +0 -207
  1035. package/one/things/plans/development-workflow.md +0 -959
  1036. package/one/things/plans/dsl-claude-code.md +0 -1011
  1037. package/one/things/plans/effect-components.md +0 -1743
  1038. package/one/things/plans/effect-patterns-reference.md +0 -2235
  1039. package/one/things/plans/effect.md +0 -1806
  1040. package/one/things/plans/email.md +0 -966
  1041. package/one/things/plans/enhance-auth.md +0 -1692
  1042. package/one/things/plans/execution-strategy.md +0 -1291
  1043. package/one/things/plans/existing-infrastructure.md +0 -712
  1044. package/one/things/plans/feature-based-sites.md +0 -894
  1045. package/one/things/plans/frontend-effects.md +0 -1276
  1046. package/one/things/plans/group-folder-multi-tenancy.md +0 -893
  1047. package/one/things/plans/improve-codebase.md +0 -1811
  1048. package/one/things/plans/install-components.md +0 -215
  1049. package/one/things/plans/integrate-frontend-and-backend.md +0 -603
  1050. package/one/things/plans/landing.md +0 -820
  1051. package/one/things/plans/layout.md +0 -249
  1052. package/one/things/plans/mail-backend.md +0 -1361
  1053. package/one/things/plans/mail.md +0 -2677
  1054. package/one/things/plans/mcp-clear-context-prompt.md +0 -81
  1055. package/one/things/plans/mcp-simple.md +0 -248
  1056. package/one/things/plans/multi-ontology-architecture.md +0 -885
  1057. package/one/things/plans/next-features.md +0 -114
  1058. package/one/things/plans/npx-agent-safety.md +0 -785
  1059. package/one/things/plans/npx-agent.md +0 -1089
  1060. package/one/things/plans/onboarding.md +0 -51
  1061. package/one/things/plans/one-protocol-and-payone-usage.md +0 -82
  1062. package/one/things/plans/one.md +0 -677
  1063. package/one/things/plans/ontology-6-dimensions.md +0 -2201
  1064. package/one/things/plans/ontology-compliance-audit.md +0 -342
  1065. package/one/things/plans/ontology-driven-strategy.md +0 -882
  1066. package/one/things/plans/ontology-refine.md +0 -586
  1067. package/one/things/plans/ontology-ui-approach.md +0 -375
  1068. package/one/things/plans/open-agent.md +0 -840
  1069. package/one/things/plans/performace.md +0 -122
  1070. package/one/things/plans/phase-1-foundation.md +0 -620
  1071. package/one/things/plans/phase-3-implementation.md +0 -1037
  1072. package/one/things/plans/plan-connect-to-api.md +0 -146
  1073. package/one/things/plans/quick-wins.md +0 -1428
  1074. package/one/things/plans/r2.md +0 -777
  1075. package/one/things/plans/readme-backend-cleanup.md +0 -402
  1076. package/one/things/plans/release.md +0 -507
  1077. package/one/things/plans/remove-backend-development-from-agents.md +0 -1331
  1078. package/one/things/plans/repos.md +0 -98
  1079. package/one/things/plans/separate-copy-2.md +0 -1349
  1080. package/one/things/plans/separate-copy-3.md +0 -2479
  1081. package/one/things/plans/separate-copy.md +0 -1349
  1082. package/one/things/plans/separate-demo.md +0 -864
  1083. package/one/things/plans/separate.md +0 -1999
  1084. package/one/things/plans/sequence.md +0 -2040
  1085. package/one/things/plans/shadcn-integration-summary.md +0 -510
  1086. package/one/things/plans/sidebar.md +0 -206
  1087. package/one/things/plans/skills.md +0 -709
  1088. package/one/things/plans/small-fixes.md +0 -23
  1089. package/one/things/plans/start-new.md +0 -764
  1090. package/one/things/plans/switch-off-auth.md +0 -42
  1091. package/one/things/plans/sync-checklist.md +0 -351
  1092. package/one/things/plans/test-backend-connection.md +0 -514
  1093. package/one/things/plans/unified-implementation-plan.md +0 -934
  1094. package/one/things/plans/update-demos.md +0 -581
  1095. package/one/things/plans/use-our-backend.md +0 -572
  1096. package/one/things/plans/video-backend.md +0 -638
  1097. package/one/things/plans/video-frontend.md +0 -490
  1098. package/one/things/plans/video-old-archived.md +0 -656
  1099. package/one/things/plans/wave1-onboarding-100-inferences.md +0 -1686
  1100. package/one/things/plans/wave1-onboarding-vision.md +0 -744
  1101. package/one/things/plans/wave1-orchestration-summary.md +0 -604
  1102. package/one/things/plans/wave1-specialist-assignments.md +0 -1413
  1103. package/one/things/plans/workflow-files.md +0 -1210
  1104. package/one/things/plans/workflow.md +0 -1378
  1105. package/one/things/plans-u.md +0 -905
  1106. package/one/things/products/Blockchain Products.md +0 -6278
  1107. package/one/things/products/cascade-landing-page.md +0 -841
  1108. package/one/things/products/cascade.md +0 -1568
  1109. package/one/things/products/context-engineering.md +0 -1488
  1110. package/one/things/products/onthology.md +0 -15
  1111. package/one/things/products/ontology-ui-shadcn.md +0 -1302
  1112. package/one/things/products/ontology-ui.md +0 -1429
  1113. package/one/things/products/ontology.md +0 -789
  1114. package/one/things/products/sdk.md +0 -573
  1115. package/one/things/promptkit.md +0 -930
  1116. package/one/things/repos/all-repos.md +0 -0
  1117. package/one/things/scripts-clean-mac.sh +0 -409
  1118. package/one/things/service-providers-new.md +0 -1052
  1119. package/one/things/service-providers.md +0 -1121
  1120. package/one/things/structure.md +0 -532
  1121. package/one/things/system.md +0 -618
  1122. package/one/things/templates.md +0 -294
  1123. package/one/things/tests/2-1-dataprovider-interface.md +0 -1216
  1124. package/one/things/tests/2-1-test-analysis.md +0 -544
  1125. package/one/things/things.md +0 -384
  1126. package/one/things/todo-acp-integration.md +0 -744
  1127. package/one/things/todo-ai.md +0 -933
  1128. package/one/things/todo-api.md +0 -1078
  1129. package/one/things/todo-assignment.md +0 -580
  1130. package/one/things/todo-buy-chatgpt.md +0 -1450
  1131. package/one/things/todo-components.md +0 -1683
  1132. package/one/things/todo-connections.md +0 -278
  1133. package/one/things/todo-ecommerce-frontend.md +0 -1313
  1134. package/one/things/todo-ecommerce.md +0 -569
  1135. package/one/things/todo-effects.md +0 -1075
  1136. package/one/things/todo-frontend-effects.md +0 -977
  1137. package/one/things/todo-landing-page.md +0 -1091
  1138. package/one/things/todo-mail.md +0 -1160
  1139. package/one/things/todo-master-plan.md +0 -490
  1140. package/one/things/todo-onboard.md +0 -666
  1141. package/one/things/todo-one-ie.md +0 -538
  1142. package/one/things/todo-page.md +0 -606
  1143. package/one/things/todo-plans.md +0 -282
  1144. package/one/things/todo-projects.md +0 -241
  1145. package/one/things/todo-refactoring-plan.md +0 -366
  1146. package/one/things/todo-release.md +0 -654
  1147. package/one/things/todo-sequence.md +0 -1621
  1148. package/one/things/todo-use-our-backend.md +0 -1908
  1149. package/one/things/todo-workflow.md +0 -626
  1150. package/one/things/todo-x402.md +0 -2047
  1151. package/one/things/todo.md +0 -21
  1152. package/one/things/video/scripts-crypto.md +0 -835
  1153. package/one/things/video-script-backup.md +0 -318
  1154. package/one/things/video-script-demo.md +0 -382
  1155. package/one/things/video-script-ontology.md +0 -333
  1156. package/one/things/video-script.md +0 -361
@@ -1,2489 +0,0 @@
1
- ---
2
- title: Files
3
- dimension: knowledge
4
- category: files.md
5
- tags: agent, ai, backend, blockchain, frontend
6
- related_dimensions: events, things
7
- scope: global
8
- created: 2025-11-03
9
- updated: 2025-11-03
10
- version: 1.0.0
11
- ai_context: |
12
- This document is part of the knowledge dimension in the files.md category.
13
- Location: one/knowledge/files.md
14
- Purpose: Documents one platform - file system map
15
- Related dimensions: events, things
16
- For AI agents: Read this to understand files.
17
- ---
18
-
19
- # ONE Platform - File System Map
20
-
21
- **Version:** 1.0.0
22
- **Last Updated:** 2025-01-15
23
- **Purpose:** Exact location for every file type - AI agents use this to know where to place generated code
24
-
25
- ---
26
-
27
- ## How AI Agents Use This Map
28
-
29
- **Before creating ANY file:**
30
- 1. Find the file type in this map
31
- 2. Use the exact path shown
32
- 3. Follow naming conventions precisely
33
- 4. Update this map if creating new directories
34
-
35
- **Never:**
36
- - Create files in random locations
37
- - Invent new directory structures
38
- - Use different naming conventions
39
- - Skip updating this map
40
-
41
- ---
42
-
43
- ## Complete Directory Tree
44
-
45
- ```
46
- one/
47
- │
48
- ├── .ai/ # AI AGENT CONTEXT (never commit secrets)
49
- │ ├── agents/ # Agent specifications
50
- │ │ ├── frontend-agent.md # Astro/React specialist
51
- │ │ ├── backend-agent.md # Convex/Effect.ts specialist
52
- │ │ ├── auth-agent.md # Auth specialist
53
- │ │ ├── blockchain-agent.md # Web3 specialist
54
- │ │ ├── ai-ml-agent.md # AI/ML specialist
55
- │ │ └── ingestor-agent.md # Migration specialist
56
- │ │
57
- │ ├── context/ # System context
58
- │ │ ├── ontology.md # ✅ CREATED - 6-dimension data model
59
- │ │ ├── architecture.md # ✅ CREATED - System design + FP
60
- │ │ ├── patterns.md # ✅ CREATED - Code patterns
61
- │ │ ├── file-map.md # ✅ THIS FILE
62
- │ │ └── dependencies.md # Package versions & APIs
63
- │ │
64
- │ ├── specs/ # Feature specifications
65
- │ │ ├── auth-flow.md # Authentication system
66
- │ │ ├── ai-clone-creation.md # AI clone pipeline
67
- │ │ ├── token-economics.md # Token system
68
- │ │ ├── elevate-journey.md # ELEVATE workflow
69
- │ │ ├── content-generation.md # Content automation
70
- │ │ ├── viral-loops.md # Growth mechanisms
71
- │ │ ├── course-builder.md # AI course generation
72
- │ │ └── analytics-dashboard.md # Analytics & insights
73
- │ │
74
- │ ├── prompts/ # Reusable prompts
75
- │ │ ├── new-feature.md # Feature creation template
76
- │ │ ├── fix-bug.md # Bug fixing workflow
77
- │ │ ├── refactor.md # Refactoring guide
78
- │ │ ├── test-generation.md # Test creation
79
- │ │ └── documentation.md # Doc generation
80
- │ │
81
- │ └── rules.md # ✅ CREATED - Golden rules
82
- │
83
- ├── docs/ # HUMAN DOCUMENTATION
84
- │ │
85
- │ ├── # CORE DOCUMENTATION
86
- │ ├── Strategy.md # ✅ Platform vision & business strategy
87
- │ ├── Ontology.md # ✅ 6-dimension data model (25 connections, 35 events)
88
- │ ├── Architecture.md # ✅ Technical architecture & FP patterns
89
- │ ├── Rules.md # ✅ Golden rules for development
90
- │ ├── Patterns.md # ✅ Code patterns & best practices
91
- │ ├── Files.md # ✅ THIS FILE - File system map
92
- │ ├── Workflow.md # ✅ Ontology-driven development flow
93
- │ ├── Documentation-Map.md # ✅ Visual map of how all docs work together
94
- │ │
95
- │ ├── # DSL DOCUMENTATION
96
- │ ├── DSL.md # ✅ DSL overview & introduction
97
- │ ├── ONE DSL.md # ✅ Technical DSL (JSON-like, 25+35 types)
98
- │ ├── ONE DSL English.md # ✅ Plain English DSL (compiles to Technical)
99
- │ │
100
- │ ├── # PROTOCOL DOCUMENTATION
101
- │ ├── README-Protocols.md # ✅ Protocol overview
102
- │ ├── A2A.md # ✅ Agent-to-Agent protocol
103
- │ ├── ACP.md # ✅ Agentic Commerce Protocol
104
- │ ├── AP2.md # ✅ Agent Payments Protocol (mandates)
105
- │ ├── ACPayments.md # ✅ Agentic Commerce Payments
106
- │ ├── X402.md # ✅ HTTP Micropayments (402 status)
107
- │ ├── AGUI.md # ✅ Generative UI (CopilotKit)
108
- │ │
109
- │ ├── # INTEGRATION DOCUMENTATION
110
- │ ├── ElizaOS.md # ✅ ElizaOS integration (external AI agents)
111
- │ ├── CopilotKit.md # ✅ CopilotKit/AG-UI integration (generative UI)
112
- │ ├── PromptKit.md # ✅ PromptKit integration (AI UI components)
113
- │ ├── MCP.md # ✅ Model Context Protocol
114
- │ ├── N8N.md # ✅ n8n workflow automation
115
- │ ├── Agent-Communications.md # ✅ Agent communication patterns
116
- │ │
117
- │ ├── # IMPLEMENTATION GUIDES
118
- │ ├── Implementation.md # ✅ Implementation patterns
119
- │ ├── Implementation Examples.md # ✅ Code examples
120
- │ ├── Specifications.md # ✅ Technical specifications
121
- │ ├── Components.md # ✅ Convex components + Effect.ts integration
122
- │ ├── Schema.md # ✅ Database schema details
123
- │ │
124
- │ ├── # SERVICE LAYER DOCUMENTATION
125
- │ ├── Service Layer.md # ✅ Effect.ts service layer architecture
126
- │ ├── Service Providers.md # ✅ External service providers (OpenAI, ElevenLabs, Stripe, Blockchain)
127
- │ ├── Service Providers - New.md # ✅ New providers (D-ID, HeyGen, Uniswap, Alchemy, Twilio, AWS, Cloudflare Stream)
128
- │ │
129
- │ ├── # WORKFLOW & TOOLS
130
- │ ├── Workflow Examples.md # ✅ Development workflow examples
131
- │ ├── CLI.md # ✅ CLI tool documentation
132
- │ ├── CLI Code.md # ✅ CLI implementation
133
- │ ├── CLI Compiler Code.md # ✅ CLI compiler implementation
134
- │ ├── Agent Ingestor.md # ✅ Migration agent documentation
135
- │ │
136
- │ ├── # DIAGRAMS & VISUALS
137
- │ ├── Architecture Diagram.md # ✅ Architecture visualizations
138
- │ ├── Creator Diagram.md # ✅ Creator flow diagrams
139
- │ │
140
- │ ├── # API DOCUMENTATION
141
- │ ├── API.md # ✅ API reference
142
- │ ├── API-docs.md # ✅ Detailed API documentation
143
- │ │
144
- │ └── # MIGRATION & UPDATES
145
- │ ├── OntologyUpdates.md # ✅ Ontology evolution log
146
- │ └── Effects Provider.md # ✅ Effect.ts provider patterns (deprecated - see Service Layer.md)
147
- │
148
- ├── src/ # FRONTEND SOURCE
149
- │ │
150
- │ ├── components/ # React components
151
- │ │ │
152
- │ │ ├── ui/ # shadcn/ui primitives (50+)
153
- │ │ │ ├── button.tsx # Button component
154
- │ │ │ ├── card.tsx # Card component
155
- │ │ │ ├── dialog.tsx # Dialog/modal
156
- │ │ │ ├── input.tsx # Input field
157
- │ │ │ ├── label.tsx # Label
158
- │ │ │ ├── select.tsx # Select dropdown
159
- │ │ │ ├── checkbox.tsx # Checkbox
160
- │ │ │ ├── radio-group.tsx # Radio buttons
161
- │ │ │ ├── switch.tsx # Toggle switch
162
- │ │ │ ├── slider.tsx # Slider
163
- │ │ │ ├── progress.tsx # Progress bar
164
- │ │ │ ├── alert.tsx # Alert messages
165
- │ │ │ ├── badge.tsx # Badge/tag
166
- │ │ │ ├── avatar.tsx # Avatar image
167
- │ │ │ ├── skeleton.tsx # Loading skeleton
168
- │ │ │ ├── toast.tsx # Toast notifications
169
- │ │ │ ├── tooltip.tsx # Tooltips
170
- │ │ │ ├── popover.tsx # Popover
171
- │ │ │ ├── dropdown-menu.tsx # Dropdown menu
172
- │ │ │ ├── context-menu.tsx # Context menu
173
- │ │ │ ├── menubar.tsx # Menu bar
174
- │ │ │ ├── navigation-menu.tsx # Navigation
175
- │ │ │ ├── breadcrumb.tsx # Breadcrumbs
176
- │ │ │ ├── tabs.tsx # Tab panels
177
- │ │ │ ├── accordion.tsx # Accordion
178
- │ │ │ ├── collapsible.tsx # Collapsible
179
- │ │ │ ├── sheet.tsx # Side sheet
180
- │ │ │ ├── drawer.tsx # Drawer
181
- │ │ │ ├── hover-card.tsx # Hover card
182
- │ │ │ ├── table.tsx # Data table
183
- │ │ │ ├── calendar.tsx # Date picker
184
- │ │ │ ├── command.tsx # Command palette
185
- │ │ │ ├── separator.tsx # Separator line
186
- │ │ │ ├── scroll-area.tsx # Scroll container
187
- │ │ │ ├── textarea.tsx # Text area
188
- │ │ │ ├── form.tsx # Form wrapper
189
- │ │ │ └── [more shadcn components] # 50+ total
190
- │ │ │
191
- │ │ ├── prompt-kit/ # 🤖 PROMPT KIT AI COMPONENTS
192
- │ │ │ ├── # Chat Components
193
- │ │ │ ├── message.tsx # AI message component
194
- │ │ │ ├── prompt-input.tsx # Auto-resize AI input
195
- │ │ │ ├── chat-container.tsx # Auto-scroll chat
196
- │ │ │ ├── response-stream.tsx # Streaming responses
197
- │ │ │ │
198
- │ │ │ ├── # Agent Components
199
- │ │ │ ├── reasoning.tsx # Show agent thinking
200
- │ │ │ ├── tool.tsx # Display function calls
201
- │ │ │ ├── agent-card.tsx # Agent info card
202
- │ │ │ │
203
- │ │ │ ├── # Generative UI Components (CopilotKit-inspired)
204
- │ │ │ ├── generative-ui-renderer.tsx # Render agent UI messages
205
- │ │ │ ├── dynamic-chart.tsx # Agent-generated charts
206
- │ │ │ ├── dynamic-table.tsx # Agent-generated tables
207
- │ │ │ ├── dynamic-form.tsx # Agent-generated forms
208
- │ │ │ ├── dynamic-card.tsx # Agent-generated cards
209
- │ │ │ │
210
- │ │ │ ├── # Context Components
211
- │ │ │ ├── context-provider.tsx # AG-UI context sharing
212
- │ │ │ ├── context-viewer.tsx # View shared context
213
- │ │ │ │
214
- │ │ │ └── # Action Components
215
- │ │ │ ├── action-trigger.tsx # Human-in-the-loop actions
216
- │ │ │ ├── action-approval.tsx # Approve agent actions
217
- │ │ │ └── multi-agent-panel.tsx # Multi-agent coordination
218
- │ │ │
219
- │ │ └── features/ # Feature-specific components
220
- │ │ │
221
- │ │ ├── auth/ # 🔐 AUTHENTICATION
222
- │ │ │ ├── SignInForm.tsx # Sign in form
223
- │ │ │ ├── SignUpForm.tsx # Sign up form
224
- │ │ │ ├── PasswordReset.tsx # Password reset
225
- │ │ │ ├── EmailVerification.tsx # Email verify
226
- │ │ │ ├── MagicLinkForm.tsx # Magic link auth
227
- │ │ │ ├── TwoFactorSetup.tsx # 2FA setup
228
- │ │ │ ├── TwoFactorVerify.tsx # 2FA verify
229
- │ │ │ ├── OAuthButtons.tsx # OAuth buttons (GitHub, Google)
230
- │ │ │ ├── SessionManager.tsx # Session display
231
- │ │ │ └── AuthGuard.tsx # Auth wrapper
232
- │ │ │
233
- │ │ ├── creators/ # 👤 CREATOR FEATURES
234
- │ │ │ ├── CreatorOnboarding.tsx # Multi-step onboarding
235
- │ │ │ ├── CreatorProfile.tsx # Public profile display
236
- │ │ │ ├── CreatorDashboard.tsx # Main dashboard
237
- │ │ │ ├── CreatorWebsite.tsx # Auto-generated website
238
- │ │ │ ├── ContentUploader.tsx # Upload videos/content
239
- │ │ │ ├── SocialConnector.tsx # Connect social accounts
240
- │ │ │ ├── AICloneStatus.tsx # Clone training status
241
- │ │ │ ├── RevenueChart.tsx # Revenue analytics
242
- │ │ │ ├── AudienceInsights.tsx # Audience analytics
243
- │ │ │ ├── SettingsForm.tsx # Settings
244
- │ │ │ └── BrandCustomizer.tsx # Brand colors/theme
245
- │ │ │
246
- │ │ ├── ai-clone/ # 🤖 AI CLONE FEATURES (Feature #1)
247
- │ │ │ ├── # Clone Creation
248
- │ │ │ ├── CloneWizard.tsx # Multi-step clone creation
249
- │ │ │ ├── VideoUploader.tsx # Upload training videos (3+ required)
250
- │ │ │ ├── VoiceCloner.tsx # Voice cloning interface
251
- │ │ │ ├── AppearanceCloner.tsx # Appearance cloning UI
252
- │ │ │ ├── PersonalityBuilder.tsx # Build personality from content
253
- │ │ │ ├── TrainingProgress.tsx # Training status & progress
254
- │ │ │ ├── KnowledgeBaseManager.tsx # Manage RAG knowledge
255
- │ │ │ │
256
- │ │ │ ├── # Clone Interaction
257
- │ │ │ ├── CloneChat.tsx # Chat with AI clone
258
- │ │ │ ├── CloneChatMessage.tsx # Chat message component
259
- │ │ │ ├── CloneVoiceChat.tsx # Voice chat interface (future)
260
- │ │ │ ├── CloneVideoCall.tsx # Video call with clone (future)
261
- │ │ │ ├── VoicePlayer.tsx # Voice playback
262
- │ │ │ ├── CloneEmbed.tsx # Embeddable clone widget
263
- │ │ │ │
264
- │ │ │ ├── # Clone Management
265
- │ │ │ ├── CloneEditor.tsx # Edit clone settings
266
- │ │ │ ├── PersonalityEditor.tsx # Edit personality traits
267
- │ │ │ ├── ResponseEditor.tsx # Edit common responses
268
- │ │ │ ├── CloneAnalytics.tsx # Clone usage analytics
269
- │ │ │ └── CloneSettings.tsx # Clone configuration
270
- │ │ │
271
- │ │ ├── tokens/ # 💰 TOKEN ECONOMY (Feature #8)
272
- │ │ │ ├── # Token Purchase
273
- │ │ │ ├── TokenPurchase.tsx # Buy tokens UI
274
- │ │ │ ├── TokenCheckout.tsx # Checkout flow
275
- │ │ │ ├── PaymentMethods.tsx # Payment options (Stripe, crypto)
276
- │ │ │ ├── PurchaseConfirm.tsx # Confirm purchase
277
- │ │ │ │
278
- │ │ │ ├── # Token Display
279
- │ │ │ ├── TokenBalance.tsx # Balance display
280
- │ │ │ ├── TokenChart.tsx # Price chart
281
- │ │ │ ├── TokenStats.tsx # Token statistics
282
- │ │ │ ├── TokenHolders.tsx # Holder leaderboard
283
- │ │ │ ├── TransactionHistory.tsx # TX history
284
- │ │ │ │
285
- │ │ │ ├── # Token Staking
286
- │ │ │ ├── StakingInterface.tsx # Stake tokens UI
287
- │ │ │ ├── StakingRewards.tsx # Rewards display
288
- │ │ │ ├── UnstakeModal.tsx # Unstake flow
289
- │ │ │ │
290
- │ │ │ ├── # Token Economics
291
- │ │ │ ├── TokenLaunchWizard.tsx # Launch creator token
292
- │ │ │ ├── TokenomicsConfig.tsx # Configure economics
293
- │ │ │ ├── BurnMechanism.tsx # Burn display/trigger
294
- │ │ │ ├── RewardCalculator.tsx # Reward estimation
295
- │ │ │ └── TokenGovernance.tsx # Governance voting
296
- │ │ │
297
- │ │ ├── courses/ # 📚 AI-POWERED LMS (Feature #5)
298
- │ │ │ ├── # Course Creation
299
- │ │ │ ├── CourseWizard.tsx # AI-assisted course builder
300
- │ │ │ ├── CourseOutlineGen.tsx # AI outline generation
301
- │ │ │ ├── LessonBuilder.tsx # Build single lesson
302
- │ │ │ ├── QuizBuilder.tsx # Build quizzes
303
- │ │ │ ├── AssignmentBuilder.tsx # Build assignments
304
- │ │ │ ├── CertificateDesigner.tsx # Design certificates
305
- │ │ │ │
306
- │ │ │ ├── # Course Display
307
- │ │ │ ├── CourseCatalog.tsx # Browse courses
308
- │ │ │ ├── CourseCard.tsx # Course card
309
- │ │ │ ├── CourseDetail.tsx # Course details
310
- │ │ │ ├── EnrollmentButton.tsx # Enroll with tokens
311
- │ │ │ │
312
- │ │ │ ├── # Learning Experience
313
- │ │ │ ├── LessonPlayer.tsx # Watch/read lesson
314
- │ │ │ ├── VideoPlayer.tsx # Video lessons
315
- │ │ │ ├── InteractiveLecture.tsx # Interactive content
316
- │ │ │ ├── QuizInterface.tsx # Take quiz
317
- │ │ │ ├── AssignmentSubmit.tsx # Submit assignment
318
- │ │ │ ├── AITutor.tsx # AI clone teaches
319
- │ │ │ ├── ProgressTracker.tsx # Progress bar
320
- │ │ │ ├── GamificationBadges.tsx # Achievements
321
- │ │ │ ├── CertificateDisplay.tsx # Earned certificate
322
- │ │ │ └── NextLessonSuggest.tsx # AI suggestions
323
- │ │ │
324
- │ │ ├── community/ # 💬 LIVING COMMUNITY (Feature #6)
325
- │ │ │ ├── # Messaging
326
- │ │ │ ├── MessageList.tsx # Message feed
327
- │ │ │ ├── MessageComposer.tsx # Compose message
328
- │ │ │ ├── MessageItem.tsx # Single message
329
- │ │ │ ├── ThreadView.tsx # Message threads
330
- │ │ │ ├── DirectMessages.tsx # DMs
331
- │ │ │ ├── CloneResponses.tsx # AI clone replies
332
- │ │ │ │
333
- │ │ │ ├── # Members
334
- │ │ │ ├── MemberList.tsx # All members
335
- │ │ │ ├── MemberCard.tsx # Member card
336
- │ │ │ ├── MemberProfile.tsx # Member profile
337
- │ │ │ ├── FollowersList.tsx # Followers
338
- │ │ │ ├── TopContributors.tsx # Leaderboard
339
- │ │ │ │
340
- │ │ │ ├── # Activity
341
- │ │ │ ├── ActivityFeed.tsx # Real-time feed
342
- │ │ │ ├── LiveEvents.tsx # Live events
343
- │ │ │ ├── Polls.tsx # Community polls
344
- │ │ │ ├── QandA.tsx # Q&A forum
345
- │ │ │ ├── Announcements.tsx # Creator announcements
346
- │ │ │ │
347
- │ │ │ ├── # Moderation
348
- │ │ │ ├── ModerationQueue.tsx # Moderation queue
349
- │ │ │ ├── ReportContent.tsx # Report system
350
- │ │ │ ├── BanUser.tsx # Ban/mute users
351
- │ │ │ └── AIModeration.tsx # AI moderation
352
- │ │ │
353
- │ │ ├── elevate/ # 🚀 ELEVATE JOURNEY (9 Steps)
354
- │ │ │ ├── JourneyMap.tsx # Full journey map
355
- │ │ │ ├── StepCard.tsx # Single step card
356
- │ │ │ ├── ProgressRing.tsx # Progress visualization
357
- │ │ │ ├── AchievementBadge.tsx # Achievement badges
358
- │ │ │ │
359
- │ │ │ ├── # Step Components
360
- │ │ │ ├── Step1Hook.tsx # Hook: Business analysis
361
- │ │ │ ├── Step2Gift.tsx # Gift: Free insights
362
- │ │ │ ├── Step3Identify.tsx # Identify: €100 payment
363
- │ │ │ ├── Step4Engage.tsx # Engage: Workshop access
364
- │ │ │ ├── Step5Ascend.tsx # Ascend: Advanced training
365
- │ │ │ ├── Step6Deliver.tsx # Deliver: Implementation
366
- │ │ │ ├── Step7Nurture.tsx # Nurture: Ongoing support
367
- │ │ │ ├── Step8Refer.tsx # Refer: Referral program
368
- │ │ │ ├── Step9Rebuild.tsx # Rebuild: Optimization
369
- │ │ │ │
370
- │ │ │ ├── PaymentGate.tsx # Payment checkpoint
371
- │ │ │ ├── WaitingRoom.tsx # Timed waiting
372
- │ │ │ └── CompletionCert.tsx # Journey completion
373
- │ │ │
374
- │ │ ├── content/ # 📝 CONTENT AUTOMATION (Feature #2)
375
- │ │ │ ├── # Content Creation
376
- │ │ │ ├── ContentWizard.tsx # AI content generation wizard
377
- │ │ │ ├── ContentEditor.tsx # Edit content
378
- │ │ │ ├── AIWriter.tsx # AI writing assistant
379
- │ │ │ ├── ContentScheduler.tsx # Schedule posts
380
- │ │ │ ├── CalendarView.tsx # Content calendar
381
- │ │ │ │
382
- │ │ │ ├── # Content Display
383
- │ │ │ ├── ContentGrid.tsx # Content grid
384
- │ │ │ ├── ContentCard.tsx # Content card
385
- │ │ │ ├── ContentPreview.tsx # Preview
386
- │ │ │ ├── ContentStats.tsx # Performance stats
387
- │ │ │ │
388
- │ │ │ ├── # Social Distribution
389
- │ │ │ ├── SocialPublisher.tsx # Publish to all platforms
390
- │ │ │ ├── PlatformSelector.tsx # Select platforms
391
- │ │ │ ├── PostCustomizer.tsx # Customize per platform
392
- │ │ │ ├── HashtagSuggest.tsx # AI hashtag suggestions
393
- │ │ │ │
394
- │ │ │ ├── # Content Templates
395
- │ │ │ ├── TemplateLibrary.tsx # Content templates
396
- │ │ │ ├── TemplateEditor.tsx # Edit templates
397
- │ │ │ └── BrandGuidelines.tsx # Brand consistency
398
- │ │ │
399
- │ │ ├── ugc/ # 🎨 USER-GENERATED CONTENT (Feature #4)
400
- │ │ │ ├── UGCCreator.tsx # Create UGC with AI
401
- │ │ │ ├── UGCGallery.tsx # Browse UGC
402
- │ │ │ ├── UGCCard.tsx # UGC display card
403
- │ │ │ ├── ShareUGC.tsx # Share UGC (earn tokens)
404
- │ │ │ ├── UGCRewards.tsx # Token rewards for UGC
405
- │ │ │ ├── FeaturedUGC.tsx # Featured content
406
- │ │ │ ├── UGCModeration.tsx # Moderate UGC
407
- │ │ │ └── ViralTracker.tsx # Track viral spread
408
- │ │ │
409
- │ │ ├── livestream/ # 📹 LIVESTREAM (AI + Human Mix)
410
- │ │ │ ├── LivestreamStudio.tsx # Livestream control room
411
- │ │ │ ├── StreamPlayer.tsx # Watch stream
412
- │ │ │ ├── ChatOverlay.tsx # Live chat
413
- │ │ │ ├── CloneMixer.tsx # Mix AI clone + human
414
- │ │ │ ├── DonationWidget.tsx # Donations (tokens)
415
- │ │ │ ├── ViewerList.tsx # Live viewers
416
- │ │ │ ├── StreamSchedule.tsx # Schedule streams
417
- │ │ │ └── StreamAnalytics.tsx # Stream stats
418
- │ │ │
419
- │ │ ├── analytics/ # 📊 ANALYTICS & BUSINESS OS (Feature #7)
420
- │ │ │ ├── # Dashboard
421
- │ │ │ ├── AnalyticsDashboard.tsx # Main dashboard
422
- │ │ │ ├── MetricCard.tsx # Metric display
423
- │ │ │ ├── KPIOverview.tsx # Key metrics
424
- │ │ │ │
425
- │ │ │ ├── # Charts
426
- │ │ │ ├── GrowthChart.tsx # Growth over time
427
- │ │ │ ├── RevenueChart.tsx # Revenue analytics
428
- │ │ │ ├── TokenChart.tsx # Token metrics
429
- │ │ │ ├── EngagementChart.tsx # Engagement metrics
430
- │ │ │ ├── FunnelVisualization.tsx # Conversion funnel
431
- │ │ │ │
432
- │ │ │ ├── # Insights
433
- │ │ │ ├── AIInsights.tsx # AI-generated insights
434
- │ │ │ ├── PredictionsPanel.tsx # AI predictions
435
- │ │ │ ├── RecommendationsPanel.tsx # AI recommendations
436
- │ │ │ ├── AnomalyDetection.tsx # Detect anomalies
437
- │ │ │ │
438
- │ │ │ ├── # Reports
439
- │ │ │ ├── ReportBuilder.tsx # Build custom reports
440
- │ │ │ ├── ExportReports.tsx # Export data
441
- │ │ │ ├── ScheduledReports.tsx # Auto-send reports
442
- │ │ │ │
443
- │ │ │ └── # Real-time
444
- │ │ │ ├── RealtimeFeed.tsx # Live activity feed
445
- │ │ │ └── AlertsPanel.tsx # Important alerts
446
- │ │ │
447
- │ │ ├── viral/ # 🔥 VIRAL MECHANICS
448
- │ │ │ ├── ShareRewards.tsx # Share to earn tokens
449
- │ │ │ ├── ReferralDashboard.tsx # Referral tracking
450
- │ │ │ ├── ViralLoop.tsx # Viral loop mechanics
451
- │ │ │ ├── SocialProof.tsx # Success stories
452
- │ │ │ ├── Leaderboard.tsx # Top referrers
453
- │ │ │ └── InviteFlow.tsx # Invite friends
454
- │ │ │
455
- │ │ ├── wallet/ # 👛 WALLET & CRYPTO
456
- │ │ │ ├── WalletConnect.tsx # Connect wallet
457
- │ │ │ ├── WalletDisplay.tsx # Show balances
458
- │ │ │ ├── TransactionList.tsx # TX history
459
- │ │ │ ├── SendTokens.tsx # Send tokens
460
- │ │ │ ├── ReceiveTokens.tsx # Receive QR
461
- │ │ │ └── SwapTokens.tsx # Swap tokens (DEX)
462
- │ │ │
463
- │ │ └── notifications/ # 🔔 NOTIFICATIONS
464
- │ │ ├── NotificationCenter.tsx # All notifications
465
- │ │ ├── NotificationBell.tsx # Bell icon + badge
466
- │ │ ├── NotificationItem.tsx # Single notification
467
- │ │ ├── EmailPreferences.tsx # Email settings
468
- │ │ ├── PushSettings.tsx # Push notification settings
469
- │ │ └── InAppNotif.tsx # In-app toasts
470
- │ │
471
- │ ├── layouts/ # Astro layouts
472
- │ │ ├── Layout.astro # Base layout
473
- │ │ ├── Dashboard.astro # Dashboard layout
474
- │ │ ├── Marketing.astro # Marketing layout
475
- │ │ └── Auth.astro # Auth layout
476
- │ │
477
- │ ├── pages/ # 📄 ASTRO PAGES (File-based routing)
478
- │ │ │
479
- │ │ │ # ═══════════════════════════════════════════════════════════════════
480
- │ │ │ # PAGES ORGANIZED BY THE 8 CORE PLATFORM FEATURES
481
- │ │ │ # Based on Strategy.md vision - complete creator operating system
482
- │ │ │ # ═══════════════════════════════════════════════════════════════════
483
- │ │ │
484
- │ │ ├── # ═══ MARKETING & PUBLIC PAGES ═══
485
- │ │ │
486
- │ │ ├── index.astro # ✅ Marketing homepage (/)
487
- │ │ ├── pricing.astro # Pricing page (/pricing)
488
- │ │ ├── features.astro # Features overview (/features)
489
- │ │ ├── about.astro # About page (/about)
490
- │ │ ├── contact.astro # Contact page (/contact)
491
- │ │ ├── demo.astro # Interactive demo (/demo)
492
- │ │ ├── blog/ # Blog section
493
- │ │ │ ├── index.astro # Blog list (/blog)
494
- │ │ │ └── [...slug].astro # Blog post (/blog/[slug])
495
- │ │ ├── legal/ # Legal pages
496
- │ │ │ ├── terms.astro # Terms of service (/legal/terms)
497
- │ │ │ ├── privacy.astro # Privacy policy (/legal/privacy)
498
- │ │ │ └── cookies.astro # Cookie policy (/legal/cookies)
499
- │ │ ├── 404.astro # ✅ 404 page
500
- │ │ ├── 500.astro # 500 error page
501
- │ │ │
502
- │ │ ├── # ═══ AUTHENTICATION & ONBOARDING ═══
503
- │ │ │
504
- │ │ ├── signin.astro # ✅ Sign in page (/signin)
505
- │ │ ├── signup.astro # ✅ Sign up page (/signup)
506
- │ │ ├── forgot-password.astro # ✅ Forgot password (/forgot-password)
507
- │ │ ├── reset-password.astro # ✅ Reset password (/reset-password)
508
- │ │ ├── verify-email.astro # ✅ Email verification (/verify-email)
509
- │ │ ├── request-magic-link.astro # ✅ Magic link request (/request-magic-link)
510
- │ │ ├── mail.astro # ✅ Magic link verify (/mail)
511
- │ │ ├── onboard.astro # ✅ Creator onboarding (/onboard)
512
- │ │ ├── auth/ # Auth pages directory
513
- │ │ │ ├── signin.astro # ✅ Alt sign in (/auth/signin)
514
- │ │ │ ├── signup.astro # ✅ Alt sign up (/auth/signup)
515
- │ │ │ └── verify-2fa.astro # 2FA verification (/auth/verify-2fa)
516
- │ │ │
517
- │ │ ├── # ═══ CREATOR DASHBOARD & MANAGEMENT ═══
518
- │ │ │
519
- │ │ ├── dashboard.astro # ✅ Main dashboard (/dashboard)
520
- │ │ ├── settings.astro # ✅ Settings (/settings)
521
- │ │ │
522
- │ │ ├── creator/ # Creator-specific pages
523
- │ │ │ ├── dashboard.astro # Creator dashboard (/creator/dashboard)
524
- │ │ │ ├── profile.astro # Creator profile edit (/creator/profile)
525
- │ │ │ ├── settings.astro # Creator settings (/creator/settings)
526
- │ │ │ ├── analytics.astro # Analytics overview (/creator/analytics)
527
- │ │ │ ├── revenue.astro # Revenue dashboard (/creator/revenue)
528
- │ │ │ │
529
- │ │ │ ├── # Feature #1: AI Clone Management
530
- │ │ │ ├── clone/
531
- │ │ │ │ ├── index.astro # Clone overview (/creator/clone)
532
- │ │ │ │ ├── setup.astro # Clone setup wizard (/creator/clone/setup)
533
- │ │ │ │ ├── voice.astro # Voice cloning (/creator/clone/voice)
534
- │ │ │ │ ├── appearance.astro # Appearance cloning (/creator/clone/appearance)
535
- │ │ │ │ ├── personality.astro # Personality config (/creator/clone/personality)
536
- │ │ │ │ ├── training.astro # Training status (/creator/clone/training)
537
- │ │ │ │ ├── knowledge.astro # Knowledge base (RAG) (/creator/clone/knowledge)
538
- │ │ │ │ ├── test.astro # Test clone chat (/creator/clone/test)
539
- │ │ │ │ └── analytics.astro # Clone analytics (/creator/clone/analytics)
540
- │ │ │ │
541
- │ │ │ ├── # Feature #2: Content Automation
542
- │ │ │ ├── content/
543
- │ │ │ │ ├── index.astro # Content overview (/creator/content)
544
- │ │ │ │ ├── create.astro # Create content (/creator/content/create)
545
- │ │ │ │ ├── generate.astro # AI content gen (/creator/content/generate)
546
- │ │ │ │ ├── calendar.astro # Content calendar (/creator/content/calendar)
547
- │ │ │ │ ├── schedule.astro # Schedule posts (/creator/content/schedule)
548
- │ │ │ │ ├── library.astro # Content library (/creator/content/library)
549
- │ │ │ │ ├── templates.astro # Content templates (/creator/content/templates)
550
- │ │ │ │ ├── analytics.astro # Content analytics (/creator/content/analytics)
551
- │ │ │ │ └── social.astro # Social accounts (/creator/content/social)
552
- │ │ │ │
553
- │ │ │ ├── # Feature #3: Interactive Avatar (Livestream)
554
- │ │ │ ├── livestream/
555
- │ │ │ │ ├── index.astro # Livestream overview (/creator/livestream)
556
- │ │ │ │ ├── setup.astro # Stream setup (/creator/livestream/setup)
557
- │ │ │ │ ├── studio.astro # Live studio (/creator/livestream/studio)
558
- │ │ │ │ ├── mixer.astro # AI+Human mixer (/creator/livestream/mixer)
559
- │ │ │ │ ├── chat.astro # Live chat mgmt (/creator/livestream/chat)
560
- │ │ │ │ ├── recordings.astro # Stream recordings (/creator/livestream/recordings)
561
- │ │ │ │ └── analytics.astro # Stream analytics (/creator/livestream/analytics)
562
- │ │ │ │
563
- │ │ │ ├── # Feature #5: AI-Powered LMS (Courses)
564
- │ │ │ ├── courses/
565
- │ │ │ │ ├── index.astro # Courses overview (/creator/courses)
566
- │ │ │ │ ├── create.astro # Create course (/creator/courses/create)
567
- │ │ │ │ ├── generate.astro # AI course gen (/creator/courses/generate)
568
- │ │ │ │ ├── builder/
569
- │ │ │ │ │ └── [id].astro # Course builder (/creator/courses/builder/[id])
570
- │ │ │ │ ├── edit/
571
- │ │ │ │ │ └── [id].astro # Edit course (/creator/courses/edit/[id])
572
- │ │ │ │ ├── students.astro # Student mgmt (/creator/courses/students)
573
- │ │ │ │ ├── analytics.astro # Course analytics (/creator/courses/analytics)
574
- │ │ │ │ └── certificates.astro # Certificate mgmt (/creator/courses/certificates)
575
- │ │ │ │
576
- │ │ │ ├── # Feature #6: Living Community
577
- │ │ │ ├── community/
578
- │ │ │ │ ├── index.astro # Community overview (/creator/community)
579
- │ │ │ │ ├── members.astro # Manage members (/creator/community/members)
580
- │ │ │ │ ├── moderation.astro # Moderation queue (/creator/community/moderation)
581
- │ │ │ │ ├── channels.astro # Manage channels (/creator/community/channels)
582
- │ │ │ │ ├── events.astro # Community events (/creator/community/events)
583
- │ │ │ │ ├── analytics.astro # Community analytics (/creator/community/analytics)
584
- │ │ │ │ └── settings.astro # Community settings (/creator/community/settings)
585
- │ │ │ │
586
- │ │ │ ├── # Feature #8: Token Economy
587
- │ │ │ ├── token/
588
- │ │ │ │ ├── index.astro # Token overview (/creator/token)
589
- │ │ │ │ ├── launch.astro # Launch token wizard (/creator/token/launch)
590
- │ │ │ │ ├── economics.astro # Token economics config (/creator/token/economics)
591
- │ │ │ │ ├── holders.astro # Token holders (/creator/token/holders)
592
- │ │ │ │ ├── distribution.astro # Token distribution (/creator/token/distribution)
593
- │ │ │ │ ├── staking.astro # Staking config (/creator/token/staking)
594
- │ │ │ │ ├── governance.astro # Governance (/creator/token/governance)
595
- │ │ │ │ ├── analytics.astro # Token analytics (/creator/token/analytics)
596
- │ │ │ │ └── transactions.astro # Transaction history (/creator/token/transactions)
597
- │ │ │ │
598
- │ │ │ ├── # Feature #7: Business OS (10 AI Agents)
599
- │ │ │ ├── agents/
600
- │ │ │ │ ├── index.astro # Agents overview (/creator/agents)
601
- │ │ │ │ ├── ceo.astro # Strategy agent (/creator/agents/ceo)
602
- │ │ │ │ ├── cmo.astro # Marketing agent (/creator/agents/cmo)
603
- │ │ │ │ ├── cso.astro # Sales agent (/creator/agents/cso)
604
- │ │ │ │ ├── cxo.astro # Service agent (/creator/agents/cxo)
605
- │ │ │ │ ├── cdo.astro # Design agent (/creator/agents/cdo)
606
- │ │ │ │ ├── cto.astro # Engineering agent (/creator/agents/cto)
607
- │ │ │ │ ├── cfo.astro # Finance agent (/creator/agents/cfo)
608
- │ │ │ │ ├── clo.astro # Legal agent (/creator/agents/clo)
609
- │ │ │ │ ├── cio.astro # Intelligence agent (/creator/agents/cio)
610
- │ │ │ │ └── analytics.astro # Analytics agent (/creator/agents/analytics)
611
- │ │ │ │
612
- │ │ │ ├── # Feature #4: UGC Engine
613
- │ │ │ ├── ugc/
614
- │ │ │ │ ├── index.astro # UGC overview (/creator/ugc)
615
- │ │ │ │ ├── templates.astro # UGC templates (/creator/ugc/templates)
616
- │ │ │ │ ├── submissions.astro # Review submissions (/creator/ugc/submissions)
617
- │ │ │ │ ├── featured.astro # Featured UGC (/creator/ugc/featured)
618
- │ │ │ │ ├── rewards.astro # UGC rewards config (/creator/ugc/rewards)
619
- │ │ │ │ └── analytics.astro # UGC analytics (/creator/ugc/analytics)
620
- │ │ │ │
621
- │ │ │ ├── # Viral Growth
622
- │ │ │ ├── growth/
623
- │ │ │ │ ├── index.astro # Growth overview (/creator/growth)
624
- │ │ │ │ ├── referrals.astro # Referral program (/creator/growth/referrals)
625
- │ │ │ │ ├── viral.astro # Viral loops config (/creator/growth/viral)
626
- │ │ │ │ ├── incentives.astro # Growth incentives (/creator/growth/incentives)
627
- │ │ │ │ └── analytics.astro # Growth analytics (/creator/growth/analytics)
628
- │ │ │ │
629
- │ │ │ └── # ELEVATE Journey
630
- │ │ │ ├── elevate/
631
- │ │ │ ├── index.astro # ELEVATE overview (/creator/elevate)
632
- │ │ │ ├── journey.astro # Journey editor (/creator/elevate/journey)
633
- │ │ │ ├── steps.astro # Step config (/creator/elevate/steps)
634
- │ │ │ ├── participants.astro # Journey participants (/creator/elevate/participants)
635
- │ │ │ └── analytics.astro # Journey analytics (/creator/elevate/analytics)
636
- │ │ │
637
- │ │ ├── # ═══ PUBLIC CREATOR PROFILES ═══
638
- │ │ │
639
- │ │ ├── [username]/ # Public creator profile (dynamic route)
640
- │ │ │ ├── index.astro # Creator homepage (/[username])
641
- │ │ │ ├── about.astro # About creator (/[username]/about)
642
- │ │ │ ├── content.astro # Content gallery (/[username]/content)
643
- │ │ │ ├── courses.astro # Courses catalog (/[username]/courses)
644
- │ │ │ ├── community.astro # Join community (/[username]/community)
645
- │ │ │ ├── token.astro # Buy token (/[username]/token)
646
- │ │ │ └── chat.astro # Chat with AI clone (/[username]/chat)
647
- │ │ │
648
- │ │ ├── # ═══ FAN/AUDIENCE EXPERIENCE ═══
649
- │ │ │
650
- │ │ ├── chat/ # Chat with AI clones
651
- │ │ │ ├── index.astro # Chat overview (/chat)
652
- │ │ │ └── [cloneId].astro # Chat with clone (/chat/[cloneId])
653
- │ │ │
654
- │ │ ├── courses/ # Course marketplace & learning
655
- │ │ │ ├── index.astro # Browse courses (/courses)
656
- │ │ │ ├── [id].astro # Course details (/courses/[id])
657
- │ │ │ ├── enroll/
658
- │ │ │ │ └── [id].astro # Enroll in course (/courses/enroll/[id])
659
- │ │ │ ├── learn/
660
- │ │ │ │ └── [id].astro # Take course (/courses/learn/[id])
661
- │ │ │ ├── my-courses.astro # My enrolled courses (/courses/my-courses)
662
- │ │ │ ├── progress.astro # Learning progress (/courses/progress)
663
- │ │ │ └── certificates.astro # My certificates (/courses/certificates)
664
- │ │ │
665
- │ │ ├── community/ # Community features
666
- │ │ │ ├── index.astro # Community home (/community)
667
- │ │ │ ├── [creatorId]/ # Creator community
668
- │ │ │ │ ├── index.astro # Community feed (/community/[creatorId])
669
- │ │ │ │ ├── channels/
670
- │ │ │ │ │ └── [channelId].astro # Channel view (/community/[creatorId]/channels/[channelId])
671
- │ │ │ │ ├── events.astro # Community events (/community/[creatorId]/events)
672
- │ │ │ │ └── members.astro # Community members (/community/[creatorId]/members)
673
- │ │ │ └── my-communities.astro # My communities (/community/my-communities)
674
- │ │ │
675
- │ │ ├── tokens/ # Token marketplace
676
- │ │ │ ├── index.astro # Token marketplace (/tokens)
677
- │ │ │ ├── [symbol]/ # Token details
678
- │ │ │ │ ├── index.astro # Token overview (/tokens/[symbol])
679
- │ │ │ │ ├── buy.astro # Buy token (/tokens/[symbol]/buy)
680
- │ │ │ │ ├── stake.astro # Stake tokens (/tokens/[symbol]/stake)
681
- │ │ │ │ ├── chart.astro # Price chart (/tokens/[symbol]/chart)
682
- │ │ │ │ └── holders.astro # Token holders (/tokens/[symbol]/holders)
683
- │ │ │ ├── portfolio.astro # My token portfolio (/tokens/portfolio)
684
- │ │ │ ├── wallet.astro # Wallet mgmt (/tokens/wallet)
685
- │ │ │ └── transactions.astro # Transaction history (/tokens/transactions)
686
- │ │ │
687
- │ │ ├── ugc/ # User-generated content
688
- │ │ │ ├── index.astro # UGC gallery (/ugc)
689
- │ │ │ ├── create.astro # Create UGC (/ugc/create)
690
- │ │ │ ├── my-content.astro # My UGC (/ugc/my-content)
691
- │ │ │ ├── rewards.astro # UGC rewards (/ugc/rewards)
692
- │ │ │ └── [id].astro # View UGC (/ugc/[id])
693
- │ │ │
694
- │ │ ├── livestream/ # Livestream viewing
695
- │ │ │ ├── index.astro # Browse streams (/livestream)
696
- │ │ │ ├── [streamId].astro # Watch stream (/livestream/[streamId])
697
- │ │ │ └── schedule.astro # Stream schedule (/livestream/schedule)
698
- │ │ │
699
- │ │ ├── elevate/ # ELEVATE journey (fan experience)
700
- │ │ │ ├── index.astro # ELEVATE overview (/elevate)
701
- │ │ │ ├── join.astro # Join journey (/elevate/join)
702
- │ │ │ ├── journey/
703
- │ │ │ │ └── [id].astro # Journey progress (/elevate/journey/[id])
704
- │ │ │ └── completed.astro # Completed journeys (/elevate/completed)
705
- │ │ │
706
- │ │ ├── wallet/ # Wallet & crypto
707
- │ │ │ ├── index.astro # Wallet overview (/wallet)
708
- │ │ │ ├── connect.astro # Connect wallet (/wallet/connect)
709
- │ │ │ ├── balance.astro # Token balances (/wallet/balance)
710
- │ │ │ ├── send.astro # Send tokens (/wallet/send)
711
- │ │ │ ├── receive.astro # Receive tokens (/wallet/receive)
712
- │ │ │ └── history.astro # Transaction history (/wallet/history)
713
- │ │ │
714
- │ │ ├── notifications/ # Notifications
715
- │ │ │ ├── index.astro # All notifications (/notifications)
716
- │ │ │ └── settings.astro # Notification settings (/notifications/settings)
717
- │ │ │
718
- │ │ └── # ═══ API ROUTES ═══
719
- │ │ │
720
- │ │ └── api/ # API endpoints
721
- │ │ ├── auth/
722
- │ │ │ └── [...all].ts # ✅ Better Auth handler
723
- │ │ ├── trpc/
724
- │ │ │ └── [trpc].ts # tRPC endpoint (if using)
725
- │ │ ├── webhooks/
726
- │ │ │ ├── stripe.ts # Stripe webhooks
727
- │ │ │ ├── coinbase.ts # Coinbase webhooks
728
- │ │ │ └── resend.ts # Resend webhooks
729
- │ │ └── convex/
730
- │ │ └── sync.ts # Convex sync endpoint
731
- │ │
732
- │ ├── lib/ # Frontend utilities
733
- │ │ ├── auth-client.ts # Better Auth client
734
- │ │ ├── convex-client.ts # Convex setup
735
- │ │ ├── utils.ts # cn() + helpers
736
- │ │ ├── hooks.ts # Custom hooks
737
- │ │ ├── validators.ts # Zod schemas
738
- │ │ └── constants.ts # Constants
739
- │ │
740
- │ ├── styles/ # Styles
741
- │ │ ├── global.css # Global + Tailwind
742
- │ │ └── themes/
743
- │ │ ├── light.css # Light theme vars
744
- │ │ └── dark.css # Dark theme vars
745
- │ │
746
- │ └── types/ # Frontend types
747
- │ ├── index.ts # Shared types
748
- │ ├── entities.ts # Entity types
749
- │ ├── auth.ts # Auth types
750
- │ └── api.ts # API types
751
- │
752
- ├── convex/ # 🔷 CONVEX BACKEND (Effect.ts-Powered Architecture)
753
- │ │
754
- │ │ # ═══════════════════════════════════════════════════════════════════════════════
755
- │ │ # EFFECT.TS ARCHITECTURE: How Effect.ts Covers the Entire Application
756
- │ │ # ═══════════════════════════════════════════════════════════════════════════════
757
- │ │ #
758
- │ │ # The ONE Platform uses Effect.ts as the CORE architecture pattern. Here's how:
759
- │ │ #
760
- │ │ # 📊 THREE-LAYER ARCHITECTURE:
761
- │ │ #
762
- │ │ # Layer 1: CONVEX API (Thin Wrappers)
763
- │ │ # ├── mutations/ → Write operations (user-facing API)
764
- │ │ # ├── queries/ → Read operations (user-facing API)
765
- │ │ # └── actions/ → External calls (user-facing API)
766
- │ │ #
767
- │ │ # Layer 2: EFFECT.TS SERVICES (Business Logic - 100% of app logic lives here)
768
- │ │ # ├── core/ → Database, Auth, Storage, Cache, Queue
769
- │ │ # ├── ai/ → AI Clone, Content Gen, Chat, RAG
770
- │ │ # ├── business/ → 10 AI C-Suite Agents (CEO, CMO, CFO, etc.)
771
- │ │ # ├── community/ → Messages, Moderation, Engagement
772
- │ │ # ├── tokens/ → Purchase, Staking, Economics, Governance
773
- │ │ # ├── courses/ → Builder, Generation, Progress, Gamification
774
- │ │ # ├── content/ → Creation, Automation, Distribution
775
- │ │ # ├── ugc/ → UGC creation, rewards, viral mechanics
776
- │ │ # ├── livestream/ → Streaming, AI+Human mixing, chat, donations
777
- │ │ # ├── elevate/ → 9-step journey orchestration
778
- │ │ # ├── analytics/ → Metrics, Insights, Predictions, Reports
779
- │ │ # ├── viral/ → Referrals, Share-to-earn, Viral loops
780
- │ │ # ├── entities/ → CRUD for all 56 entity types
781
- │ │ # ├── connections/ → Manage 25 connection types
782
- │ │ # ├── events/ → Log, track, replay 35 event types
783
- │ │ # └── protocols/ → A2A, ACP, AP2, X402, AG-UI, MCP integration
784
- │ │ #
785
- │ │ # Layer 3: EXTERNAL PROVIDERS (Effect.ts Wrappers - 26 providers)
786
- │ │ # ├── AI/LLM (5) → OpenAI, Anthropic, ElevenLabs, D-ID, HeyGen
787
- │ │ # ├── Blockchain (4) → Base, Alchemy, Uniswap, WalletConnect
788
- │ │ # ├── Payment (2) → Stripe (fiat), Coinbase (crypto)
789
- │ │ # ├── Communication (4) → Resend, SendGrid, Twilio, Pusher
790
- │ │ # ├── Media/Storage (2) → AWS S3, Cloudflare Stream
791
- │ │ # ├── Integration (3) → ElizaOS, CopilotKit, n8n
792
- │ │ # └── Social Media (6) → Twitter, Instagram, YouTube, TikTok, LinkedIn, Facebook
793
- │ │ #
794
- │ │ # 🎯 EFFECT.TS BENEFITS:
795
- │ │ #
796
- │ │ # 1. Type-Safe Errors:
797
- │ │ # - NO try/catch blocks
798
- │ │ # - Every error is typed (InsufficientContentError, VoiceCloneFailedError, etc.)
799
- │ │ # - Pattern matching on error types
800
- │ │ #
801
- │ │ # 2. Dependency Injection:
802
- │ │ # - Services declare their dependencies explicitly
803
- │ │ # - Easy to mock for testing (MockAICloneService, MockStripeProvider, etc.)
804
- │ │ # - Compose services into larger workflows
805
- │ │ #
806
- │ │ # 3. Composability:
807
- │ │ # - Services combine like LEGO blocks
808
- │ │ # - Parallel execution: Effect.all([...], { concurrency: 5 })
809
- │ │ # - Sequential execution: Effect.gen chaining
810
- │ │ # - Retries, timeouts, circuit breakers built-in
811
- │ │ #
812
- │ │ # 4. Platform Agnostic:
813
- │ │ # - Services are pure functions (no Convex-specific code)
814
- │ │ # - Can run in: Convex, Node.js, Cloudflare Workers, Deno, Bun
815
- │ │ # - Easy to migrate if needed
816
- │ │ #
817
- │ │ # 5. Testability:
818
- │ │ # - Mock any dependency
819
- │ │ # - Test services in isolation
820
- │ │ # - Integration tests compose real services
821
- │ │ #
822
- │ │ # 6. Observability:
823
- │ │ # - Built-in logging: Effect.logInfo, Effect.logError
824
- │ │ # - Tracing: Effect.withSpan for distributed tracing
825
- │ │ # - Metrics: Track execution time, errors, retries
826
- │ │ #
827
- │ │ # 🔄 EXECUTION FLOW EXAMPLE (Token Purchase):
828
- │ │ #
829
- │ │ # 1. User clicks "Buy 100 Tokens"
830
- │ │ # 2. Frontend calls: useMutation(api.tokens.purchase)
831
- │ │ # 3. Convex mutation validates args
832
- │ │ # 4. Mutation calls: TokenService.purchaseTokens(...)
833
- │ │ # 5. TokenService orchestrates:
834
- │ │ # a) Charge payment (StripeProvider)
835
- │ │ # b) Mint tokens (BaseProvider)
836
- │ │ # c) Update balance (ConvexDatabase)
837
- │ │ # d) Log event (EventService)
838
- │ │ # 6. All operations atomic (succeed together or fail together)
839
- │ │ # 7. Automatic rollback on error
840
- │ │ # 8. Return result to user
841
- │ │ #
842
- │ │ # 📚 KEY PRINCIPLES:
843
- │ │ #
844
- │ │ # - ALL business logic in services/ (100% Effect.ts)
845
- │ │ # - Convex functions are THIN WRAPPERS (validate → call service → return)
846
- │ │ # - NO business logic in mutations/queries/actions
847
- │ │ # - Services are pure, testable, composable
848
- │ │ # - Explicit types everywhere (no `any`, typed errors)
849
- │ │ #
850
- │ │ # ═══════════════════════════════════════════════════════════════════════════════
851
- │ │ # STATUS: PLANNED (not yet implemented - this is the blueprint)
852
- │ │ # ═══════════════════════════════════════════════════════════════════════════════
853
- │ │
854
- │ ├── schema/ # 📊 DATABASE SCHEMA (PLANNED)
855
- │ │ ├── index.ts # Main schema export (TODO)
856
- │ │ ├── entities.ts # Entities table definition (TODO)
857
- │ │ ├── connections.ts # Connections table definition (TODO)
858
- │ │ ├── events.ts # Events table definition (TODO)
859
- │ │ ├── tags.ts # Tags table definitions (TODO)
860
- │ │ └── types.ts # Property type definitions (TODO)
861
- │ │
862
- │ ├── services/ # 🎯 EFFECT.TS SERVICES (PLANNED - Core Architecture)
863
- │ │ │
864
- │ │ │ # ═══════════════════════════════════════════════════════════
865
- │ │ │ # EFFECT.TS SERVICE LAYER OVERVIEW
866
- │ │ │ # ═══════════════════════════════════════════════════════════
867
- │ │ │ # This is the CORE of the ONE Platform architecture.
868
- │ │ │ # ALL business logic lives here as pure Effect.ts services.
869
- │ │ │ # Convex functions are THIN WRAPPERS that call these services.
870
- │ │ │ #
871
- │ │ │ # Pattern (REPLICATE EXACTLY):
872
- │ │ │ #
873
- │ │ │ # export class ServiceName extends Effect.Service<ServiceName>()(
874
- │ │ │ # "ServiceName",
875
- │ │ │ # {
876
- │ │ │ # effect: Effect.gen(function* () {
877
- │ │ │ # const db = yield* ConvexDatabase;
878
- │ │ │ # const provider = yield* ExternalProvider;
879
- │ │ │ #
880
- │ │ │ # return {
881
- │ │ │ # operation: (args) => Effect.gen(function* () {
882
- │ │ │ # // Pure functional logic
883
- │ │ │ # // Explicit error handling
884
- │ │ │ # // Composable operations
885
- │ │ │ # })
886
- │ │ │ # };
887
- │ │ │ # }),
888
- │ │ │ # dependencies: [ConvexDatabase.Default, Provider.Default]
889
- │ │ │ # }
890
- │ │ │ # ) {}
891
- │ │ │ #
892
- │ │ │ # Benefits:
893
- │ │ │ # - Pure functions (testable)
894
- │ │ │ # - Typed errors (no exceptions)
895
- │ │ │ # - Dependency injection (composable)
896
- │ │ │ # - Platform agnostic (can run anywhere)
897
- │ │ │ # ═══════════════════════════════════════════════════════════
898
- │ │ │
899
- │ │ ├── index.ts # Service exports + MainLayer composition (TODO)
900
- │ │ │
901
- │ │ ├── core/ # 🔧 CORE INFRASTRUCTURE SERVICES
902
- │ │ │ │
903
- │ │ │ │ # Database, Auth, Storage, Cache, Queue - foundational services
904
- │ │ │ │ # These provide the base layer for all other services
905
- │ │ │ │
906
- │ │ │ ├── database.ts # ConvexDatabase service (CRUD, queries, transactions)
907
- │ │ │ ├── auth.ts # Auth service (Better Auth wrapper, session mgmt)
908
- │ │ │ ├── storage.ts # File storage service (R2/S3 integration)
909
- │ │ │ ├── cache.ts # Caching layer service (Redis-like operations)
910
- │ │ │ └── queue.ts # Job queue service (background tasks)
911
- │ │ │
912
- │ │ ├── ai/ # 🤖 AI SERVICES (Feature #1 - AI Clone Technology)
913
- │ │ │ │
914
- │ │ │ │ # AI Clone Creation, Training, and Interaction Services
915
- │ │ │ │ # Depends on: OpenAI, Anthropic, ElevenLabs, D-ID, HeyGen providers
916
- │ │ │ │
917
- │ │ │ ├── clone.ts # AI clone orchestration (create, train, deploy)
918
- │ │ │ ├── voice-clone.ts # Voice cloning via ElevenLabs (3+ samples)
919
- │ │ │ ├── appearance-clone.ts # Appearance cloning via D-ID/HeyGen
920
- │ │ │ ├── personality.ts # Personality extraction from creator content
921
- │ │ │ ├── rag.ts # RAG knowledge base (embeddings + vector search)
922
- │ │ │ ├── training.ts # Clone training pipeline (async workflows)
923
- │ │ │ │
924
- │ │ │ │ # Content Generation Services (Feature #2)
925
- │ │ │ │
926
- │ │ │ ├── content-generation.ts # AI content creation (GPT-4, Claude)
927
- │ │ │ ├── content-strategy.ts # Content strategy planning
928
- │ │ │ ├── social-optimization.ts # Social media post optimization
929
- │ │ │ ├── hashtag-generation.ts # AI hashtag suggestions
930
- │ │ │ │
931
- │ │ │ │ # Conversational AI Services
932
- │ │ │ │
933
- │ │ │ ├── chat.ts # Chat interactions with AI clone
934
- │ │ │ ├── context-manager.ts # Conversation context tracking
935
- │ │ │ └── response-generation.ts # Streaming response generation
936
- │ │ │
937
- │ │ ├── business/ # 💼 BUSINESS AGENTS SERVICES (10 AI C-Suite Agents)
938
- │ │ │ │
939
- │ │ │ │ # Autonomous AI agents that run a creator's entire business
940
- │ │ │ │ # Each agent has specialized expertise and can collaborate
941
- │ │ │ │ # Depends on: Convex Agent component, OpenAI, Anthropic
942
- │ │ │ │
943
- │ │ │ ├── orchestrator.ts # Multi-agent orchestration & coordination
944
- │ │ │ ├── strategy.ts # Strategy Agent (CEO) - vision, goals, OKRs
945
- │ │ │ ├── marketing.ts # Marketing Agent (CMO) - campaigns, SEO, brand
946
- │ │ │ ├── sales.ts # Sales Agent (CSO) - funnels, conversion, follow-up
947
- │ │ │ ├── service.ts # Service Agent (CXO) - customer success, support
948
- │ │ │ ├── design.ts # Design Agent (CDO) - branding, assets, UX
949
- │ │ │ ├── engineering.ts # Engineering Agent (CTO) - automation, optimization
950
- │ │ │ ├── finance.ts # Finance Agent (CFO) - revenue, forecasting, costs
951
- │ │ │ ├── legal.ts # Legal Agent (CLO) - compliance, contracts, IP
952
- │ │ │ ├── intelligence.ts # Intelligence Agent (CIO) - analytics, insights
953
- │ │ │ └── analytics.ts # Analytics Agent - data analysis, reporting
954
- │ │ │
955
- │ │ ├── community/ # 💬 COMMUNITY SERVICES (Feature #6 - Living Community)
956
- │ │ │ │
957
- │ │ │ │ # Real-time community features with AI clone participation
958
- │ │ │ │ # Depends on: Pusher (real-time), OpenAI (moderation)
959
- │ │ │ │
960
- │ │ │ ├── messages.ts # Message handling (create, edit, delete, reactions)
961
- │ │ │ ├── moderation.ts # AI + human moderation (content filtering)
962
- │ │ │ ├── engagement.ts # Engagement tracking (likes, shares, comments)
963
- │ │ │ ├── notifications.ts # Notification dispatch (push, email, in-app)
964
- │ │ │ ├── threads.ts # Thread management (conversations, replies)
965
- │ │ │ └── direct-messages.ts # DM handling (private messaging)
966
- │ │ │
967
- │ │ ├── tokens/ # 💰 TOKEN SERVICES (Feature #8 - Token Economy)
968
- │ │ │ │
969
- │ │ │ │ # Creator token economy - purchase, stake, govern, earn
970
- │ │ │ │ # Depends on: Base blockchain, Uniswap, Stripe, Coinbase
971
- │ │ │ │
972
- │ │ │ ├── purchase.ts # Token purchase (fiat → crypto, atomic txs)
973
- │ │ │ ├── rewards.ts # Reward distribution (engagement rewards)
974
- │ │ │ ├── staking.ts # Staking logic (lock tokens, earn yield)
975
- │ │ │ ├── economics.ts # Token economics (bonding curves, supply)
976
- │ │ │ ├── burn.ts # Burn mechanism (deflationary pressure)
977
- │ │ │ ├── governance.ts # Governance voting (DAO features)
978
- │ │ │ └── distribution.ts # Token distribution (airdrops, rewards)
979
- │ │ │
980
- │ │ ├── courses/ # 📚 COURSE SERVICES (Feature #5 - AI-Powered LMS)
981
- │ │ │ │
982
- │ │ │ │ # AI-generated courses with personalized learning paths
983
- │ │ │ │ # Depends on: OpenAI (content gen), ConvexDatabase (progress)
984
- │ │ │ │
985
- │ │ │ ├── builder.ts # Course builder (manual + AI-assisted)
986
- │ │ │ ├── generation.ts # AI course generation (full course from topic)
987
- │ │ │ ├── enrollment.ts # Enrollment logic (token-gated access)
988
- │ │ │ ├── progress.ts # Progress tracking (completion, time spent)
989
- │ │ │ ├── assessment.ts # Quiz/assignment grading (AI + manual)
990
- │ │ │ ├── personalization.ts # Personalized learning paths (adaptive)
991
- │ │ │ ├── certificates.ts # Certificate issuance (NFT certificates)
992
- │ │ │ └── gamification.ts # Gamification logic (badges, streaks, XP)
993
- │ │ │
994
- │ │ ├── content/ # 📝 CONTENT SERVICES (Feature #2 - Content Automation)
995
- │ │ │ │
996
- │ │ │ │ # AI-powered content creation and multi-platform distribution
997
- │ │ │ │ # Depends on: OpenAI, social media providers (6), AWS S3
998
- │ │ │ │
999
- │ │ │ ├── creation.ts # Content creation (AI-assisted writing, images)
1000
- │ │ │ ├── automation.ts # Automated publishing (scheduled posts)
1001
- │ │ │ ├── scheduling.ts # Content calendar scheduling (optimal timing)
1002
- │ │ │ ├── distribution.ts # Multi-platform distribution (X, IG, YT, etc.)
1003
- │ │ │ ├── optimization.ts # Content optimization (SEO, hashtags, CTR)
1004
- │ │ │ └── templates.ts # Template management (reusable formats)
1005
- │ │ │
1006
- │ │ ├── ugc/ # 🎨 UGC SERVICES (Feature #4 - User-Generated Content)
1007
- │ │ │ │
1008
- │ │ │ │ # UGC creation tools + viral mechanics + token rewards
1009
- │ │ │ │ # Depends on: OpenAI (generation), TokenService (rewards)
1010
- │ │ │ │
1011
- │ │ │ ├── creation.ts # UGC creation tools (AI templates, meme gen)
1012
- │ │ │ ├── moderation.ts # UGC moderation (AI + human review)
1013
- │ │ │ ├── rewards.ts # UGC token rewards (share-to-earn)
1014
- │ │ │ ├── viral.ts # Viral mechanics (amplification loops)
1015
- │ │ │ └── featured.ts # Featured UGC selection (trending algorithm)
1016
- │ │ │
1017
- │ │ ├── livestream/ # 📹 LIVESTREAM SERVICES (Feature #3 - Interactive Avatar)
1018
- │ │ │ │
1019
- │ │ │ │ # Live streaming with AI clone + human hybrid interaction
1020
- │ │ │ │ # Depends on: Cloudflare Stream, Pusher, AI clone services
1021
- │ │ │ │
1022
- │ │ │ ├── streaming.ts # Stream management (RTMP, WebRTC, recording)
1023
- │ │ │ ├── clone-mixer.ts # Mix AI clone + human (hybrid streams)
1024
- │ │ │ ├── chat.ts # Live chat (real-time messaging)
1025
- │ │ │ ├── donations.ts # Donation handling (token tips, fiat)
1026
- │ │ │ └── recording.ts # Stream recording (VOD generation, clips)
1027
- │ │ │
1028
- │ │ ├── elevate/ # 🚀 ELEVATE SERVICES (9-Step Customer Journey)
1029
- │ │ │ │
1030
- │ │ │ │ # ELEVATE journey orchestration - multi-week workflows
1031
- │ │ │ │ # Depends on: Workflow component, payment services
1032
- │ │ │ │
1033
- │ │ │ ├── journey.ts # Journey orchestration (9-step workflow)
1034
- │ │ │ ├── step-handler.ts # Step execution (hook, gift, identify, etc.)
1035
- │ │ │ ├── timing.ts # Timed waiting logic (delays between steps)
1036
- │ │ │ ├── progression.ts # Progress tracking (completion tracking)
1037
- │ │ │ └── completion.ts # Journey completion (certificate issuance)
1038
- │ │ │
1039
- │ │ ├── analytics/ # 📊 ANALYTICS SERVICES (Feature #7 - Business OS)
1040
- │ │ │ │
1041
- │ │ │ │ # AI-powered analytics, insights, predictions
1042
- │ │ │ │ # Depends on: OpenAI (insights), ConvexDatabase (metrics)
1043
- │ │ │ │
1044
- │ │ │ ├── metrics.ts # Metric calculation (KPIs, aggregations)
1045
- │ │ │ ├── insights.ts # AI insights generation (anomaly detection)
1046
- │ │ │ ├── predictions.ts # Predictive analytics (forecasting)
1047
- │ │ │ ├── recommendations.ts # AI recommendations (optimization suggestions)
1048
- │ │ │ ├── reporting.ts # Report generation (PDF, dashboards)
1049
- │ │ │ └── real-time.ts # Real-time analytics (live metrics)
1050
- │ │ │
1051
- │ │ ├── viral/ # 🔥 VIRAL SERVICES (Growth Mechanisms)
1052
- │ │ │ │
1053
- │ │ │ │ # Viral growth mechanics - referrals, share-to-earn, loops
1054
- │ │ │ │ # Depends on: TokenService (rewards), social providers
1055
- │ │ │ │
1056
- │ │ │ ├── referrals.ts # Referral tracking (invite codes, attribution)
1057
- │ │ │ ├── share-rewards.ts # Share-to-earn logic (token rewards for shares)
1058
- │ │ │ ├── viral-loops.ts # Viral loop mechanics (k-factor optimization)
1059
- │ │ │ └── social-proof.ts # Success story tracking (testimonials, wins)
1060
- │ │ │
1061
- │ │ ├── entities/ # 📦 ENTITY SERVICES (Ontology CRUD Operations)
1062
- │ │ │ │
1063
- │ │ │ │ # Type-safe CRUD for each entity type in the ontology
1064
- │ │ │ │ # Depends on: ConvexDatabase service
1065
- │ │ │ │
1066
- │ │ │ ├── creator.ts # Creator CRUD (create, read, update, deactivate)
1067
- │ │ │ ├── content.ts # Content CRUD (posts, videos, articles)
1068
- │ │ │ ├── user.ts # User CRUD (audience members)
1069
- │ │ │ ├── clone.ts # AI clone CRUD (manage clones)
1070
- │ │ │ ├── course.ts # Course CRUD (lessons, modules, quizzes)
1071
- │ │ │ ├── token.ts # Token CRUD (creator tokens)
1072
- │ │ │ └── community.ts # Community CRUD (spaces, channels)
1073
- │ │ │
1074
- │ │ ├── connections/ # 🔗 CONNECTION SERVICES (Relationship Management)
1075
- │ │ │ │
1076
- │ │ │ │ # Manage relationships between entities (25 connection types)
1077
- │ │ │ │ # Depends on: ConvexDatabase, EventService (logging)
1078
- │ │ │ │
1079
- │ │ │ ├── follow.ts # Follow/unfollow (creator ↔ user)
1080
- │ │ │ ├── enrollment.ts # Course enrollment (user → course)
1081
- │ │ │ ├── ownership.ts # Ownership management (creator → content)
1082
- │ │ │ ├── token-holding.ts # Token balance tracking (user ↔ token)
1083
- │ │ │ └── relationships.ts # Generic relationships (extensible)
1084
- │ │ │
1085
- │ │ ├── events/ # 📅 EVENT SERVICES (Event Sourcing & Analytics)
1086
- │ │ │ │
1087
- │ │ │ │ # Event logging, tracking, replay (35 event types)
1088
- │ │ │ │ # Depends on: ConvexDatabase (append-only events table)
1089
- │ │ │ │
1090
- │ │ │ ├── logging.ts # Event logging (create events with metadata)
1091
- │ │ │ ├── tracking.ts # Event tracking (aggregate, query, filter)
1092
- │ │ │ └── replay.ts # Event replay/audit (time-travel queries)
1093
- │ │ │
1094
- │ │ ├── protocols/ # 🌐 PROTOCOL SERVICES (External Standards)
1095
- │ │ │ │
1096
- │ │ │ │ # Integration with external protocols (A2A, ACP, AP2, X402, AG-UI, MCP)
1097
- │ │ │ │ # All map to ontology via metadata.protocol field
1098
- │ │ │ │
1099
- │ │ │ ├── a2a.ts # A2A protocol handler (agent-to-agent)
1100
- │ │ │ ├── acp.ts # ACP protocol handler (commerce REST API)
1101
- │ │ │ ├── ap2.ts # AP2 protocol handler (payment mandates)
1102
- │ │ │ ├── x402.ts # X402 protocol handler (HTTP micropayments)
1103
- │ │ │ ├── ag-ui.ts # AG-UI protocol handler (generative UI)
1104
- │ │ │ ├── mcp.ts # MCP protocol handler (model context)
1105
- │ │ │ │
1106
- │ │ │ ├── ag-ui/ # 🎨 AG-UI PROTOCOL IMPLEMENTATION
1107
- │ │ │ │ │
1108
- │ │ │ │ │ # CopilotKit-inspired generative UI protocol
1109
- │ │ │ │ │ # Agents dynamically generate UI components
1110
- │ │ │ │ │
1111
- │ │ │ │ ├── context-manager.ts # Context sharing (app state → agent awareness)
1112
- │ │ │ │ ├── ui-generator.ts # Dynamic UI generation (charts, forms, etc.)
1113
- │ │ │ │ ├── action-handler.ts # Human-in-the-loop actions (approvals)
1114
- │ │ │ │ ├── agent-coordinator.ts # Multi-agent coordination (task delegation)
1115
- │ │ │ │ └── renderer.ts # Component renderer (React component generation)
1116
- │ │ │
1117
- │ │ └── providers/ # 🔌 EXTERNAL PROVIDERS (Effect.ts Wrappers - 26 Total)
1118
- │ │ │
1119
- │ │ │ # ═══════════════════════════════════════════════════════════
1120
- │ │ │ # ALL EXTERNAL SERVICES WRAPPED WITH EFFECT.TS
1121
- │ │ │ # ═══════════════════════════════════════════════════════════
1122
- │ │ │ # Every provider follows the same pattern:
1123
- │ │ │ # 1. Define typed errors (class XError extends Data.TaggedError)
1124
- │ │ │ # 2. Define service interface (class XService extends Context.Tag)
1125
- │ │ │ # 3. Implement service layer (XServiceLive = Layer.effect)
1126
- │ │ │ # 4. Export for dependency injection
1127
- │ │ │ #
1128
- │ │ │ # Benefits:
1129
- │ │ │ # - Type-safe error handling (no try/catch)
1130
- │ │ │ # - Testable (mock any provider)
1131
- │ │ │ # - Composable (combine services easily)
1132
- │ │ │ # - Retries, timeouts, circuit breakers built-in
1133
- │ │ │ # ═══════════════════════════════════════════════════════════
1134
- │ │ │
1135
- │ │ ├── # ═══ AI/LLM PROVIDERS (5) ═══
1136
- │ │ │
1137
- │ │ ├── openai.ts # OpenAI (GPT-4o, DALL-E 3, text-embedding-3-small, TTS)
1138
- │ │ │ # Services: chat, embeddings, images, audio, moderation
1139
- │ │ │
1140
- │ │ ├── anthropic.ts # Anthropic (Claude 3.5 Sonnet, 200K context)
1141
- │ │ │ # Services: chat, tool use, vision, streaming
1142
- │ │ │
1143
- │ │ ├── elevenlabs.ts # ElevenLabs (voice cloning, multilingual TTS)
1144
- │ │ │ # Services: cloneVoice, textToSpeech, voiceLibrary
1145
- │ │ │
1146
- │ │ ├── d-id.ts # D-ID (AI video avatars, talking head generation)
1147
- │ │ │ # Services: createAvatar, generateVideo, streaming
1148
- │ │ │
1149
- │ │ ├── heygen.ts # HeyGen (AI video avatars, alternative to D-ID)
1150
- │ │ │ # Services: createAvatar, generateVideo, templates
1151
- │ │ │
1152
- │ │ ├── # ═══ BLOCKCHAIN PROVIDERS (4 - Base L2 Focus) ═══
1153
- │ │ │
1154
- │ │ ├── base.ts # Base L2 (Coinbase L2, low fees, EVM compatible)
1155
- │ │ │ # Services: deployToken, mint, burn, transfer, balanceOf
1156
- │ │ │
1157
- │ │ ├── alchemy.ts # Alchemy (Base RPC, indexing, NFT API, webhooks)
1158
- │ │ │ # Services: getBalance, getTxs, subscribeToAddress
1159
- │ │ │
1160
- │ │ ├── uniswap.ts # Uniswap V3 (DEX on Base, swaps, liquidity pools)
1161
- │ │ │ # Services: swap, addLiquidity, getPrice, getPool
1162
- │ │ │
1163
- │ │ ├── wallet-connect.ts # WalletConnect (multi-wallet connection protocol)
1164
- │ │ │ # Services: connect, sign, sendTransaction
1165
- │ │ │
1166
- │ │ ├── # ═══ PAYMENT PROVIDERS (2) ═══
1167
- │ │ │
1168
- │ │ ├── stripe.ts # Stripe (FIAT ONLY - USD, EUR, cards, bank transfers)
1169
- │ │ │ # Services: createPaymentIntent, refund, subscriptions
1170
- │ │ │
1171
- │ │ ├── coinbase.ts # Coinbase Commerce (crypto payments, multi-chain)
1172
- │ │ │ # Services: createCharge, getCharge, webhooks
1173
- │ │ │
1174
- │ │ ├── # ═══ COMMUNICATION PROVIDERS (4) ═══
1175
- │ │ │
1176
- │ │ ├── resend.ts # Resend (PRIMARY - transactional email, templates)
1177
- │ │ │ # Services: sendEmail, sendBatch, getDomains
1178
- │ │ │
1179
- │ │ ├── sendgrid.ts # SendGrid (FALLBACK - marketing email, A/B tests)
1180
- │ │ │ # Services: sendEmail, templates, analytics
1181
- │ │ │
1182
- │ │ ├── twilio.ts # Twilio (SMS, voice calls, 2FA/OTP, programmable)
1183
- │ │ │ # Services: sendSMS, makeCall, verify2FA
1184
- │ │ │
1185
- │ │ ├── pusher.ts # Pusher (real-time WebSockets, presence, private channels)
1186
- │ │ │ # Services: trigger, batch, presence, webhooks
1187
- │ │ │
1188
- │ │ ├── # ═══ MEDIA/STORAGE PROVIDERS (2) ═══
1189
- │ │ │
1190
- │ │ ├── aws.ts # AWS (S3 general storage + CloudFront CDN)
1191
- │ │ │ # Services: uploadFile, signedUrl, multipart, cdn
1192
- │ │ │ # Use for: images, videos, audio, documents (NOT livestreaming)
1193
- │ │ │
1194
- │ │ ├── cloudflare-stream.ts # Cloudflare Stream (LIVESTREAMING ONLY - RTMP, WebRTC)
1195
- │ │ │ # Services: createStream, recordStream, webhooks
1196
- │ │ │ # Use for: live streams ONLY (NOT general storage)
1197
- │ │ │
1198
- │ │ ├── # ═══ INTEGRATION PROVIDERS (3) ═══
1199
- │ │ │
1200
- │ │ ├── elizaos.ts # ElizaOS (external AI agents via A2A protocol)
1201
- │ │ │ # Services: registerAgent, sendMessage, subscribe
1202
- │ │ │
1203
- │ │ ├── copilotkit.ts # CopilotKit (generative UI patterns, context sharing)
1204
- │ │ │ # Services: shareContext, generateUI, actions
1205
- │ │ │
1206
- │ │ ├── n8n.ts # n8n (workflow automation, API orchestration)
1207
- │ │ │ # Services: triggerWorkflow, getExecution, webhooks
1208
- │ │ │
1209
- │ │ └── # ═══ SOCIAL MEDIA PROVIDERS (6) ═══
1210
- │ │ │
1211
- │ │ ├── twitter.ts # Twitter/X API (tweets, threads, media, analytics)
1212
- │ │ │ # Services: tweet, uploadMedia, getMetrics
1213
- │ │ │
1214
- │ │ ├── instagram.ts # Instagram Graph API (posts, stories, reels, insights)
1215
- │ │ │ # Services: createPost, uploadStory, getInsights
1216
- │ │ │
1217
- │ │ ├── youtube.ts # YouTube Data API (videos, playlists, live, comments)
1218
- │ │ │ # Services: uploadVideo, createPlaylist, getLiveChat
1219
- │ │ │
1220
- │ │ ├── tiktok.ts # TikTok API (videos, analytics, user data)
1221
- │ │ │ # Services: uploadVideo, getAnalytics, getUserInfo
1222
- │ │ │
1223
- │ │ ├── linkedin.ts # LinkedIn API (posts, articles, pages, analytics)
1224
- │ │ │ # Services: createPost, publishArticle, getPageStats
1225
- │ │ │
1226
- │ │ └── facebook.ts # Facebook Graph API (page posts, media, ads, insights)
1227
- │ │ # Services: createPagePost, uploadMedia, getInsights
1228
- │ │
1229
- │ ├── mutations/ # 📝 CONVEX MUTATIONS (Thin Wrappers - Write Operations)
1230
- │ │ │
1231
- │ │ │ # IMPORTANT: These are THIN WRAPPERS around Effect.ts services
1232
- │ │ │ # Pattern: validate args → call service → handle errors
1233
- │ │ │ # NO business logic here - all logic in services/
1234
- │ │ │
1235
- │ │ ├── auth.ts # Auth mutations (signup, login, logout, reset password)
1236
- │ │ ├── creators.ts # Creator mutations (create, update, deactivate)
1237
- │ │ ├── clone.ts # Clone mutations (create clone, update personality)
1238
- │ │ ├── content.ts # Content mutations (publish, edit, delete)
1239
- │ │ ├── tokens.ts # Token mutations (purchase, stake, unstake)
1240
- │ │ ├── courses.ts # Course mutations (create, publish, enroll)
1241
- │ │ ├── community.ts # Community mutations (post, comment, react)
1242
- │ │ ├── connections.ts # Connection mutations (follow, connect, disconnect)
1243
- │ │ └── elevate.ts # ELEVATE mutations (start journey, complete step)
1244
- │ │
1245
- │ ├── queries/ # 🔍 CONVEX QUERIES (Thin Wrappers - Read Operations)
1246
- │ │ │
1247
- │ │ │ # IMPORTANT: These are THIN WRAPPERS around Effect.ts services
1248
- │ │ │ # Pattern: validate args → call service → return data
1249
- │ │ │ # NO business logic here - all logic in services/
1250
- │ │ │
1251
- │ │ ├── auth.ts # Auth queries (getCurrentUser, getSession)
1252
- │ │ ├── creators.ts # Creator queries (getCreator, listCreators)
1253
- │ │ ├── clone.ts # Clone queries (getClone, getTrainingStatus)
1254
- │ │ ├── content.ts # Content queries (getContent, listContent, search)
1255
- │ │ ├── tokens.ts # Token queries (getBalance, getPrice, getHolders)
1256
- │ │ ├── courses.ts # Course queries (getCourse, listCourses, getProgress)
1257
- │ │ ├── community.ts # Community queries (getPosts, getMessages, getThreads)
1258
- │ │ ├── connections.ts # Connection queries (getFollowers, getConnections)
1259
- │ │ ├── analytics.ts # Analytics queries (getMetrics, getInsights)
1260
- │ │ └── search.ts # Search queries (searchAll, searchContent, searchUsers)
1261
- │ │
1262
- │ ├── actions/ # ⚡ CONVEX ACTIONS (Thin Wrappers - External Calls)
1263
- │ │ │
1264
- │ │ │ # IMPORTANT: These are THIN WRAPPERS around Effect.ts services
1265
- │ │ │ # Actions can call external APIs (OpenAI, Stripe, blockchain, etc.)
1266
- │ │ │ # Pattern: validate args → call service → return result
1267
- │ │ │ # NO business logic here - all logic in services/
1268
- │ │ │
1269
- │ │ ├── ai/ # AI actions (external AI API calls)
1270
- │ │ │ ├── clone-voice.ts # Voice cloning via ElevenLabs
1271
- │ │ │ ├── clone-appearance.ts # Appearance cloning via D-ID/HeyGen
1272
- │ │ │ ├── generate-content.ts # Content generation via OpenAI/Anthropic
1273
- │ │ │ ├── chat.ts # AI chat interactions
1274
- │ │ │ └── analyze.ts # Content/personality analysis
1275
- │ │ │
1276
- │ │ ├── blockchain/ # Blockchain actions (Base L2 interactions)
1277
- │ │ │ ├── deploy-token.ts # Deploy ERC-20 token contract
1278
- │ │ │ ├── mint.ts # Mint tokens to address
1279
- │ │ │ ├── burn.ts # Burn tokens (deflationary)
1280
- │ │ │ └── transfer.ts # Transfer tokens between addresses
1281
- │ │ │
1282
- │ │ ├── payments/ # Payment actions (Stripe, Coinbase)
1283
- │ │ │ ├── create-checkout.ts # Create payment intent/charge
1284
- │ │ │ ├── webhook.ts # Handle payment webhooks
1285
- │ │ │ └── refund.ts # Process refunds
1286
- │ │ │
1287
- │ │ └── emails/ # Email actions (Resend, SendGrid)
1288
- │ │ ├── send-verification.ts # Email verification
1289
- │ │ ├── send-reset.ts # Password reset
1290
- │ │ └── send-notification.ts # General notifications
1291
- │ │
1292
- │ ├── workflows/ # Long-running workflows
1293
- │ │ ├── creator-launch.ts # Creator onboard
1294
- │ │ ├── elevate-journey.ts # ELEVATE flow
1295
- │ │ ├── content-pipeline.ts # Content gen
1296
- │ │ ├── token-launch.ts # Token deploy
1297
- │ │ └── daily-operations.ts # Daily tasks
1298
- │ │
1299
- │ ├── crons/ # Scheduled functions
1300
- │ │ ├── daily-content.ts # Daily content
1301
- │ │ ├── update-analytics.ts # Analytics
1302
- │ │ ├── token-economics.ts # Token metrics
1303
- │ │ └── cleanup.ts # Cleanup
1304
- │ │
1305
- │ ├── http/ # HTTP endpoints
1306
- │ │ ├── webhooks.ts # Webhook handler
1307
- │ │ └── health.ts # Health check
1308
- │ │
1309
- │ ├── lib/ # Backend utilities
1310
- │ │ ├── errors.ts # Error classes
1311
- │ │ ├── validators.ts # Validation
1312
- │ │ └── helpers.ts # Helpers
1313
- │ │
1314
- │ ├── # ═══════════════════════════════════════════════════════════════════════
1315
- │ │ # CURRENT STATE: Existing Files (Already Implemented)
1316
- │ │ # ═══════════════════════════════════════════════════════════════════════
1317
- │ │
1318
- │ ├── schema.ts # ✅ Current schema (6-dimension ontology: entities, connections, events, tags)
1319
- │ ├── auth.ts # ✅ Better Auth integration (GitHub, Google OAuth, magic link, 2FA)
1320
- │ ├── auth.config.ts # ✅ Better Auth configuration
1321
- │ ├── http.ts # ✅ HTTP endpoint handler (Better Auth routes + API endpoints)
1322
- │ ├── convex.config.ts # ✅ Convex config + Resend component + MCP integration
1323
- │ ├── README.md # ✅ Convex setup documentation
1324
- │ ├── tsconfig.json # ✅ TypeScript configuration for Convex backend
1325
- │ │
1326
- │ ├── _generated/ # ✅ Auto-generated Convex files (DO NOT EDIT)
1327
- │ │ ├── api.d.ts # Generated API type definitions (queries, mutations, actions)
1328
- │ │ ├── api.js # Generated API runtime code
1329
- │ │ ├── dataModel.d.ts # Generated data model types from schema.ts
1330
- │ │ └── server.d.ts # Generated server-side types and utilities
1331
- │ │
1332
- │ ├── # ═══════════════════════════════════════════════════════════════════════
1333
- │ │ # API DOCUMENTATION & SPECIFICATIONS
1334
- │ │ # ═══════════════════════════════════════════════════════════════════════
1335
- │ │
1336
- │ ├── docs/ # API documentation (lives in /docs/ directory)
1337
- │ │ ├── API.md # ✅ Complete API reference (Convex, Effect.ts, integrations)
1338
- │ │ ├── API-docs.md # ✅ OpenAPI 3.1.0 specification (auto-generated)
1339
- │ │ ├── AGENTS.md # ✅ Agent development guide (Convex patterns)
1340
- │ │ ├── Specifications.md # ✅ Protocol specifications (A2A, ACP, AP2, X402, ACPayments, AGUI)
1341
- │ │ └── Integration-Guides.md # 📋 PLANNED: Integration guides for external services
1342
- │ │
1343
- │ ├── # ═══════════════════════════════════════════════════════════════════════
1344
- │ │ # NEXT STEPS: Implementation Roadmap
1345
- │ │ # ═══════════════════════════════════════════════════════════════════════
1346
- │ │ #
1347
- │ │ # Week 1-2: Foundation
1348
- │ │ # - Implement schema/ directory (6 dimensions: entities, connections, events, tags)
1349
- │ │ # - Create ConvexDatabase service (core/database.ts)
1350
- │ │ # - Create EntityService, ConnectionService, EventService
1351
- │ │ #
1352
- │ │ # Week 3-4: Core Services
1353
- │ │ # - Implement auth service (core/auth.ts)
1354
- │ │ # - Implement storage service (core/storage.ts)
1355
- │ │ # - Create basic CRUD mutations/queries
1356
- │ │ #
1357
- │ │ # Week 5-8: AI Services
1358
- │ │ # - Implement OpenAI, Anthropic providers
1359
- │ │ # - Create AI clone services (ai/clone.ts, ai/voice-clone.ts)
1360
- │ │ # - Implement RAG service (ai/rag.ts)
1361
- │ │ #
1362
- │ │ # Week 9-12: Platform Features
1363
- │ │ # - Token economy services (tokens/)
1364
- │ │ # - Course services (courses/)
1365
- │ │ # - Community services (community/)
1366
- │ │ # - Business agents (business/)
1367
- │ │ #
1368
- │ │ # Week 13-16: Protocols & Integrations
1369
- │ │ # - Protocol services (protocols/a2a.ts, protocols/acp.ts, etc.)
1370
- │ │ # - External integrations (ElizaOS, CopilotKit, n8n)
1371
- │ │ # - Social media providers
1372
- │ │ #
1373
- │ │ # Week 17-20: Polish & Scale
1374
- │ │ # - Performance optimization
1375
- │ │ # - Testing (unit, integration, e2e)
1376
- │ │ # - Documentation
1377
- │ │ # - Deployment
1378
- │ │ # ═══════════════════════════════════════════════════════════════════════
1379
- │ │
1380
- │ ├── components/ # 🧩 CONVEX COMPONENTS INTEGRATION (PLANNED)
1381
- │ │ ├── # Component Wrappers (Effect.ts services)
1382
- │ │ ├── agent.wrapper.ts # @convex-dev/agent wrapper
1383
- │ │ ├── workflow.wrapper.ts # @convex-dev/workflow wrapper
1384
- │ │ ├── rag.wrapper.ts # @convex-dev/rag wrapper
1385
- │ │ ├── rate-limiter.wrapper.ts # @convex-dev/rate-limiter wrapper
1386
- │ │ ├── retrier.wrapper.ts # @convex-dev/action-retrier wrapper
1387
- │ │ ├── workpool.wrapper.ts # @convex-dev/workpool wrapper
1388
- │ │ ├── streaming.wrapper.ts # @convex-dev/persistent-text-streaming wrapper
1389
- │ │ ├── crons.wrapper.ts # @convex-dev/crons wrapper
1390
- │ │ └── resend.wrapper.ts # @convex-dev/resend wrapper
1391
- │ │
1392
- │ ├── confect.ts # Confect setup (optional)
1393
- │ ├── convex.config.ts # Convex config + components registration
1394
- │ │
1395
- │ └── _generated/ # Generated (don't edit)
1396
- │ ├── api.d.ts # API types
1397
- │ ├── api.js # API runtime
1398
- │ ├── dataModel.d.ts # Data model
1399
- │ └── server.d.ts # Server types
1400
- │
1401
- ├── tests/ # TESTS
1402
- │ ├── unit/ # Unit tests
1403
- │ │ ├── services/ # Service tests
1404
- │ │ │ ├── ai-clone.test.ts
1405
- │ │ │ ├── token.test.ts
1406
- │ │ │ ├── course.test.ts
1407
- │ │ │ └── agents.test.ts
1408
- │ │ │
1409
- │ │ ├── utils/ # Utility tests
1410
- │ │ │ ├── validators.test.ts
1411
- │ │ │ └── helpers.test.ts
1412
- │ │ │
1413
- │ │ └── components/ # Component tests
1414
- │ │ ├── auth.test.tsx
1415
- │ │ └── tokens.test.tsx
1416
- │ │
1417
- │ ├── integration/ # Integration tests
1418
- │ │ ├── auth-flow.test.ts
1419
- │ │ ├── token-purchase.test.ts
1420
- │ │ ├── clone-creation.test.ts
1421
- │ │ └── content-generation.test.ts
1422
- │ │
1423
- │ ├── e2e/ # E2E tests
1424
- │ │ ├── creator-onboarding.spec.ts
1425
- │ │ ├── audience-journey.spec.ts
1426
- │ │ ├── token-flow.spec.ts
1427
- │ │ └── elevate-journey.spec.ts
1428
- │ │
1429
- │ ├── fixtures/ # Test fixtures
1430
- │ │ ├── creators.ts
1431
- │ │ ├── content.ts
1432
- │ │ ├── tokens.ts
1433
- │ │ └── users.ts
1434
- │ │
1435
- │ └── helpers/ # Test helpers
1436
- │ ├── setup.ts
1437
- │ ├── mocks.ts
1438
- │ └── factories.ts
1439
- │
1440
- ├── scripts/ # AUTOMATION SCRIPTS
1441
- │ ├── setup/ # Setup scripts
1442
- │ │ ├── init-dev.ts # Init dev env
1443
- │ │ ├── seed-data.ts # Seed data
1444
- │ │ └── create-admin.ts # Create admin
1445
- │ │
1446
- │ ├── migration/ # Migration scripts
1447
- │ │ ├── inventory-one-ie.md # one.ie inventory
1448
- │ │ ├── inventory-bullfm.md # bullfm inventory
1449
- │ │ ├── mappings.md # Data mappings
1450
- │ │ ├── migrate-one-ie.ts # Migrate one.ie
1451
- │ │ ├── migrate-bullfm.ts # Migrate bullfm
1452
- │ │ ├── transform-data.ts # Transform
1453
- │ │ └── verify-migration.ts # Verify
1454
- │ │
1455
- │ ├── deploy/ # Deployment scripts
1456
- │ │ ├── pre-deploy.ts # Pre-deploy
1457
- │ │ ├── deploy.ts # Deploy
1458
- │ │ └── post-deploy.ts # Post-deploy
1459
- │ │
1460
- │ └── utils/ # Utility scripts
1461
- │ ├── backup-db.ts # Backup
1462
- │ ├── analyze-performance.ts # Performance
1463
- │ └── generate-types.ts # Generate types
1464
- │
1465
- ├── public/ # STATIC ASSETS
1466
- │ ├── images/
1467
- │ │ ├── logo.svg
1468
- │ │ ├── logo-dark.svg
1469
- │ │ ├── hero.png
1470
- │ │ └── features/
1471
- │ │
1472
- │ ├── icons/
1473
- │ │ ├── favicon.ico
1474
- │ │ ├── apple-touch-icon.png
1475
- │ │ └── manifest-icon-192.png
1476
- │ │
1477
- │ └── fonts/
1478
- │ └── inter/
1479
- │
1480
- ├── .vscode/ # VS CODE SETTINGS
1481
- │ ├── settings.json # Workspace settings
1482
- │ ├── extensions.json # Extensions
1483
- │ ├── tasks.json # Tasks
1484
- │ └── launch.json # Debug config
1485
- │
1486
- ├── .github/ # GITHUB
1487
- │ └── workflows/
1488
- │ ├── ci.yml # CI pipeline
1489
- │ ├── deploy.yml # Deploy workflow
1490
- │ └── tests.yml # Test workflow
1491
- │
1492
- ├── astro.config.mjs # Astro config
1493
- ├── tailwind.config.mjs # Tailwind config
1494
- ├── tsconfig.json # TypeScript config
1495
- ├── package.json # Dependencies
1496
- ├── bun.lockb # Lock file
1497
- ├── .env.example # Env template
1498
- ├── .env.local # Local env (gitignored)
1499
- ├── .gitignore # Git ignore
1500
- ├── .eslintrc.json # ESLint config
1501
- ├── .prettierrc # Prettier config
1502
- ├── vitest.config.ts # Test config
1503
- └── README.md # Root README
1504
- ```
1505
-
1506
- ---
1507
-
1508
- ## Naming Conventions
1509
-
1510
- ### Files
1511
-
1512
- **Components (React):**
1513
- ```
1514
- PascalCase.tsx
1515
- ✅ CreatorProfile.tsx
1516
- ✅ TokenPurchase.tsx
1517
- ❌ creatorProfile.tsx
1518
- ❌ creator-profile.tsx
1519
- ```
1520
-
1521
- **Pages (Astro):**
1522
- ```
1523
- kebab-case.astro or [param].astro
1524
- ✅ signin.astro
1525
- ✅ [username].astro
1526
- ✅ reset-password.astro
1527
- ❌ SignIn.astro
1528
- ❌ resetPassword.astro
1529
- ```
1530
-
1531
- **Services (Effect.ts):**
1532
- ```
1533
- camelCase.ts
1534
- ✅ clone.ts
1535
- ✅ content-generation.ts
1536
- ✅ token-economics.ts
1537
- ❌ Clone.ts
1538
- ❌ contentGeneration.ts
1539
- ```
1540
-
1541
- **Mutations/Queries/Actions:**
1542
- ```
1543
- camelCase.ts (grouped by domain)
1544
- ✅ creators.ts
1545
- ✅ tokens.ts
1546
- ❌ Creators.ts
1547
- ❌ creator-mutations.ts (redundant)
1548
- ```
1549
-
1550
- **Tests:**
1551
- ```
1552
- [name].test.ts or [name].spec.ts
1553
- ✅ token.test.ts (unit)
1554
- ✅ token-flow.spec.ts (e2e)
1555
- ❌ tokenTest.ts
1556
- ```
1557
-
1558
- ### Exports
1559
-
1560
- **Components:**
1561
- ```typescript
1562
- // ✅ CORRECT: Named export matching filename
1563
- export function CreatorProfile() { }
1564
-
1565
- // ❌ WRONG: Default export or mismatched name
1566
- export default function Profile() { }
1567
- ```
1568
-
1569
- **Services:**
1570
- ```typescript
1571
- // ✅ CORRECT: Class with Service suffix
1572
- export class TokenService extends Effect.Service<TokenService>()
1573
-
1574
- // ❌ WRONG: No suffix or different name
1575
- export class Token extends Effect.Service<Token>()
1576
- ```
1577
-
1578
- **Mutations/Queries:**
1579
- ```typescript
1580
- // ✅ CORRECT: Named export
1581
- export const create = mutation({ })
1582
- export const get = query({ })
1583
-
1584
- // ❌ WRONG: Default export
1585
- export default mutation({ })
1586
- ```
1587
-
1588
- ---
1589
-
1590
- ## Where Each File Type Goes
1591
-
1592
- ### Frontend Components
1593
-
1594
- **shadcn/ui primitives:**
1595
- ```
1596
- Location: src/components/ui/[component].tsx
1597
- Example: src/components/ui/button.tsx
1598
- Rule: Only shadcn components, no custom logic
1599
- ```
1600
-
1601
- **Feature components:**
1602
- ```
1603
- Location: src/components/features/[domain]/[Component].tsx
1604
- Example: src/components/features/tokens/TokenPurchase.tsx
1605
- Rule: Grouped by domain, one component per file
1606
- ```
1607
-
1608
- ### Backend Services
1609
-
1610
- **Effect.ts services:**
1611
- ```
1612
- Location: convex/services/[category]/[service].ts
1613
- Example: convex/services/ai/clone.ts
1614
- Rule: Business logic only, pure functions
1615
- ```
1616
-
1617
- **Convex functions:**
1618
- ```
1619
- Mutations: convex/mutations/[domain].ts
1620
- Queries: convex/queries/[domain].ts
1621
- Actions: convex/actions/[category]/[action].ts
1622
- Rule: Thin wrappers around services
1623
- ```
1624
-
1625
- ### Schema
1626
-
1627
- **Schema files:**
1628
- ```
1629
- Location: convex/schema/[table].ts
1630
- Example: convex/schema/entities.ts
1631
- Rule: One file per table definition
1632
- ```
1633
-
1634
- **Type definitions:**
1635
- ```
1636
- Location: convex/schema/types.ts
1637
- Rule: Property types for entities
1638
- ```
1639
-
1640
- ### Tests
1641
-
1642
- **Unit tests:**
1643
- ```
1644
- Location: tests/unit/[category]/[name].test.ts
1645
- Example: tests/unit/services/token.test.ts
1646
- Rule: Mirror source structure
1647
- ```
1648
-
1649
- **Integration tests:**
1650
- ```
1651
- Location: tests/integration/[feature].test.ts
1652
- Example: tests/integration/token-purchase.test.ts
1653
- Rule: End-to-end feature flows
1654
- ```
1655
-
1656
- **E2E tests:**
1657
- ```
1658
- Location: tests/e2e/[flow].spec.ts
1659
- Example: tests/e2e/creator-onboarding.spec.ts
1660
- Rule: Full user journeys with Playwright
1661
- ```
1662
-
1663
- ### Documentation
1664
-
1665
- **AI context:**
1666
- ```
1667
- Location: .ai/context/[topic].md
1668
- Rule: For AI agents, technical
1669
- ```
1670
-
1671
- **Human docs:**
1672
- ```
1673
- Location: docs/[topic].md
1674
- Rule: For developers, user-friendly
1675
- ```
1676
-
1677
- ---
1678
-
1679
- ## File Creation Checklist
1680
-
1681
- When creating a new file, verify:
1682
-
1683
- - [ ] File is in correct directory per this map
1684
- - [ ] Filename follows naming convention
1685
- - [ ] Export name matches filename
1686
- - [ ] Imports use path aliases (@/)
1687
- - [ ] File is added to this map (if new category)
1688
- - [ ] Related test file created
1689
-
1690
- ---
1691
-
1692
- ## Path Aliases
1693
-
1694
- ```typescript
1695
- // Use these in imports:
1696
- import { Button } from "@/components/ui/button"
1697
- import { api } from "@/convex/_generated/api"
1698
- import { useAuth } from "@/lib/hooks"
1699
-
1700
- // Never use relative paths:
1701
- import { Button } from "../../../components/ui/button" // ❌ WRONG
1702
- ```
1703
-
1704
- **Configured in:**
1705
- - `tsconfig.json` - TypeScript
1706
- - `astro.config.mjs` - Astro
1707
-
1708
- ---
1709
-
1710
- ## Convex Components Architecture
1711
-
1712
- ### Official Convex Components Used
1713
-
1714
- This project uses 9 official Convex components wrapped with Effect.ts for enhanced composition:
1715
-
1716
- #### 1. @convex-dev/agent
1717
- ```
1718
- Location: convex/components/agent.wrapper.ts
1719
- Purpose: AI agent orchestration with tools, streaming, RAG
1720
- Features:
1721
- - Multi-agent conversations
1722
- - Tool calling
1723
- - Built-in RAG
1724
- - Usage tracking
1725
- - Streaming responses
1726
- ```
1727
-
1728
- #### 2. @convex-dev/workflow
1729
- ```
1730
- Location: convex/components/workflow.wrapper.ts
1731
- Purpose: Durable, long-running workflows
1732
- Features:
1733
- - Step-by-step execution
1734
- - Automatic retries
1735
- - Journaling
1736
- - Parallel steps
1737
- - Conditional logic
1738
- ```
1739
-
1740
- #### 3. @convex-dev/rag
1741
- ```
1742
- Location: convex/components/rag.wrapper.ts
1743
- Purpose: Retrieval Augmented Generation
1744
- Features:
1745
- - Vector embeddings
1746
- - Semantic search
1747
- - Chunking
1748
- - Namespace isolation
1749
- - Filter support
1750
- ```
1751
-
1752
- #### 4. @convex-dev/rate-limiter
1753
- ```
1754
- Location: convex/components/rate-limiter.wrapper.ts
1755
- Purpose: Token bucket & fixed window rate limiting
1756
- Features:
1757
- - Per-user limits
1758
- - Global limits
1759
- - Token reservation
1760
- - Sharding support
1761
- ```
1762
-
1763
- #### 5. @convex-dev/action-retrier
1764
- ```
1765
- Location: convex/components/retrier.wrapper.ts
1766
- Purpose: Persistent action retries with backoff
1767
- Features:
1768
- - Exponential backoff
1769
- - Status tracking
1770
- - Completion callbacks
1771
- - Cancellation
1772
- ```
1773
-
1774
- #### 6. @convex-dev/workpool
1775
- ```
1776
- Location: convex/components/workpool.wrapper.ts
1777
- Purpose: Task queue with parallelism control
1778
- Features:
1779
- - Concurrent execution limits
1780
- - Priority queues
1781
- - Completion callbacks
1782
- - Status tracking
1783
- ```
1784
-
1785
- #### 7. @convex-dev/persistent-text-streaming
1786
- ```
1787
- Location: convex/components/streaming.wrapper.ts
1788
- Purpose: HTTP streaming for LLM responses
1789
- Features:
1790
- - Delta storage
1791
- - WebSocket delivery
1792
- - Client subscriptions
1793
- - Backpressure handling
1794
- ```
1795
-
1796
- #### 8. @convex-dev/crons
1797
- ```
1798
- Location: convex/components/crons.wrapper.ts
1799
- Purpose: Dynamic cron job scheduling
1800
- Features:
1801
- - Dynamic registration
1802
- - Cron expressions
1803
- - Interval scheduling
1804
- - Job management
1805
- ```
1806
-
1807
- #### 9. @convex-dev/resend
1808
- ```
1809
- Location: convex/components/resend.wrapper.ts
1810
- Purpose: Email sending via Resend
1811
- Features:
1812
- - Email delivery
1813
- - Status tracking
1814
- - Event webhooks
1815
- - Template support
1816
- ```
1817
-
1818
- ### Effect.ts Integration Pattern
1819
-
1820
- All components follow this pattern:
1821
-
1822
- ```typescript
1823
- // 1. Define Effect Service
1824
- class AgentService extends Context.Tag("AgentService")<
1825
- AgentService,
1826
- {
1827
- readonly generateResponse: (...) => Effect.Effect<Result, Error>
1828
- }
1829
- >() {}
1830
-
1831
- // 2. Create Service Layer
1832
- const AgentServiceLive = Layer.effect(
1833
- AgentService,
1834
- Effect.gen(function* () {
1835
- const agent = new Agent(components.agent, { ... })
1836
- return {
1837
- generateResponse: (...) => Effect.tryPromise({ ... })
1838
- }
1839
- })
1840
- )
1841
-
1842
- // 3. Use in Convex functions
1843
- export const myAction = action({
1844
- handler: (ctx, args) =>
1845
- Effect.gen(function* () {
1846
- const agentService = yield* AgentService
1847
- const result = yield* agentService.generateResponse(...)
1848
- return result
1849
- }).pipe(
1850
- Effect.provide(AgentServiceLive),
1851
- Effect.runPromise
1852
- )
1853
- })
1854
- ```
1855
-
1856
- ### Confect Integration (Optional)
1857
-
1858
- For teams fully invested in Effect.ts:
1859
-
1860
- ```
1861
- Location: convex/confect.ts
1862
- Purpose: Native Effect.ts Convex functions
1863
- Features:
1864
- - Effect Schema instead of Validators
1865
- - Option<A> instead of A | null
1866
- - Effect-native database ops
1867
- - Full Effect integration
1868
- ```
1869
-
1870
- ---
1871
-
1872
- ## PromptKit & CopilotKit Integration
1873
-
1874
- ### PromptKit AI Components
1875
-
1876
- **Purpose:** Production-ready AI/chat UI components built on shadcn/ui
1877
-
1878
- **Location:** `src/components/prompt-kit/`
1879
-
1880
- **Key Components:**
1881
- - **Chat:** message.tsx, prompt-input.tsx, chat-container.tsx, response-stream.tsx
1882
- - **Agents:** reasoning.tsx, tool.tsx, agent-card.tsx
1883
- - **Generative UI:** generative-ui-renderer.tsx, dynamic-chart.tsx, dynamic-table.tsx, dynamic-form.tsx
1884
- - **Context:** context-provider.tsx, context-viewer.tsx
1885
- - **Actions:** action-trigger.tsx, action-approval.tsx, multi-agent-panel.tsx
1886
-
1887
- **Installation:**
1888
- ```bash
1889
- # Install via shadcn CLI
1890
- bunx shadcn@latest add "https://www.prompt-kit.com/c/[COMPONENT_NAME].json"
1891
- ```
1892
-
1893
- **Features:**
1894
- - Auto-scrolling chat containers
1895
- - Auto-resizing text inputs
1896
- - Streaming response display
1897
- - Agent reasoning visualization
1898
- - Function call display
1899
- - Markdown rendering
1900
- - Code syntax highlighting
1901
-
1902
- ### CopilotKit/AG-UI Protocol
1903
-
1904
- **Purpose:** Agent-to-frontend communication protocol for generative UI
1905
-
1906
- **Location:** `convex/services/protocols/ag-ui/`
1907
-
1908
- **Architecture:**
1909
-
1910
- ```
1911
- Frontend (PromptKit Components)
1912
- ↕️ (AG-UI Protocol Messages)
1913
- Backend (Effect.ts Services)
1914
- ├── context-manager.ts # Bidirectional context sharing
1915
- ├── ui-generator.ts # Dynamic UI component generation
1916
- ├── action-handler.ts # Human-in-the-loop actions
1917
- ├── agent-coordinator.ts # Multi-agent orchestration
1918
- └── renderer.ts # Component rendering logic
1919
- ```
1920
-
1921
- **Protocol Features:**
1922
- 1. **Context Sharing** - App state ↔️ Agent awareness
1923
- 2. **Generative UI** - Agents dynamically create UI components
1924
- 3. **Human-in-the-Loop** - Action approval/rejection
1925
- 4. **Multi-Agent** - Coordinate multiple agents
1926
- 5. **Real-time** - Convex subscriptions for live updates
1927
-
1928
- **Integration Pattern:**
1929
-
1930
- ```typescript
1931
- // Frontend (PromptKit)
1932
- import { GenerativeUIRenderer } from "@/components/prompt-kit/generative-ui-renderer"
1933
- import { useQuery } from "convex/react"
1934
- import { api } from "@/convex/_generated/api"
1935
-
1936
- export function AIChat() {
1937
- const messages = useQuery(api.agui.getMessages, { threadId })
1938
-
1939
- return (
1940
- <ChatContainer>
1941
- {messages?.map(msg => (
1942
- msg.type === "ui" ? (
1943
- <GenerativeUIRenderer component={msg.component} data={msg.data} />
1944
- ) : (
1945
- <Message content={msg.content} />
1946
- )
1947
- ))}
1948
- </ChatContainer>
1949
- )
1950
- }
1951
-
1952
- // Backend (Effect.ts + Convex)
1953
- export const generateUI = action({
1954
- handler: (ctx, args) =>
1955
- Effect.gen(function* () {
1956
- const aguiService = yield* AGUIService
1957
-
1958
- // Generate dynamic UI component
1959
- const uiComponent = yield* aguiService.generateComponent({
1960
- type: "chart",
1961
- data: args.chartData,
1962
- config: { theme: "dark" }
1963
- })
1964
-
1965
- // Send to frontend
1966
- yield* Effect.tryPromise({
1967
- try: () => ctx.runMutation(api.agui.sendUI, {
1968
- threadId: args.threadId,
1969
- component: uiComponent
1970
- })
1971
- })
1972
- }).pipe(Effect.provide(AGUIServiceLive), Effect.runPromise)
1973
- })
1974
- ```
1975
-
1976
- **Documentation:**
1977
- - `docs/PromptKit.md` - Component usage & examples
1978
- - `docs/CopilotKit.md` - AG-UI protocol & generative UI patterns
1979
- - `docs/AGUI.md` - Complete AG-UI protocol specification
1980
-
1981
- ---
1982
-
1983
- ## Service Providers Architecture
1984
-
1985
- ### Overview
1986
-
1987
- All external service providers are wrapped with **Effect.ts** for type-safe error handling, dependency injection, and composability.
1988
-
1989
- **Total Providers:** 26
1990
- - AI/LLM: 5
1991
- - Blockchain: 4
1992
- - Payment: 2
1993
- - Communication: 4
1994
- - Media/Storage: 2
1995
- - Integration: 3
1996
- - Social Media: 6
1997
-
1998
- ### Effect.ts Pattern
1999
-
2000
- Every provider follows this pattern:
2001
-
2002
- ```typescript
2003
- // 1. Define typed errors
2004
- export class ProviderError extends Data.TaggedError("ProviderError")<{
2005
- message: string
2006
- cause?: unknown
2007
- }> {}
2008
-
2009
- // 2. Define service interface
2010
- export class ProviderService extends Context.Tag("ProviderService")<
2011
- ProviderService,
2012
- {
2013
- readonly operation: (...args) => Effect.Effect<Result, Error>
2014
- }
2015
- >() {}
2016
-
2017
- // 3. Implement service layer
2018
- export const ProviderServiceLive = Layer.effect(
2019
- ProviderService,
2020
- Effect.gen(function* () {
2021
- const apiKey = process.env.PROVIDER_API_KEY
2022
- const client = new ProviderSDK({ apiKey })
2023
-
2024
- return {
2025
- operation: (...args) =>
2026
- Effect.tryPromise({
2027
- try: () => client.doSomething(args),
2028
- catch: (error) => new ProviderError({ cause: error })
2029
- })
2030
- }
2031
- })
2032
- )
2033
- ```
2034
-
2035
- ### Provider Categories
2036
-
2037
- #### **1. AI/LLM Providers (5)**
2038
-
2039
- **OpenAI (`openai.ts`)**
2040
- - GPT-4 chat completions
2041
- - DALL-E image generation
2042
- - Text embeddings (text-embedding-3-small)
2043
- - Text-to-Speech (TTS)
2044
- - Function calling
2045
-
2046
- **Anthropic (`anthropic.ts`)**
2047
- - Claude 3.5 Sonnet
2048
- - Long context windows (200K tokens)
2049
- - Tool use
2050
- - Vision capabilities
2051
-
2052
- **ElevenLabs (`elevenlabs.ts`)**
2053
- - Voice cloning (3+ samples required)
2054
- - Text-to-Speech
2055
- - Voice library
2056
- - Multi-lingual support
2057
-
2058
- **D-ID (`d-id.ts`)**
2059
- - AI video avatar creation
2060
- - Appearance cloning from images
2061
- - Talking head videos
2062
- - Real-time streaming
2063
-
2064
- **HeyGen (`heygen.ts`)**
2065
- - Alternative AI video avatars
2066
- - Multi-language support
2067
- - Custom avatar training
2068
- - Video generation
2069
-
2070
- #### **2. Blockchain Providers (4 - Base L2 Focus)**
2071
-
2072
- **Base (`base.ts`)**
2073
- - Primary blockchain (Coinbase L2)
2074
- - Low gas fees
2075
- - EVM compatible
2076
- - Token deployment & transfers
2077
-
2078
- **Alchemy (`alchemy.ts`)**
2079
- - Base chain RPC provider
2080
- - Transaction indexing
2081
- - WebSocket subscriptions
2082
- - NFT API
2083
- - Enhanced APIs
2084
-
2085
- **Uniswap (`uniswap.ts`)**
2086
- - DEX on Base
2087
- - Token swaps
2088
- - Liquidity pools
2089
- - Price discovery
2090
- - V3 concentrated liquidity
2091
-
2092
- **WalletConnect (`wallet-connect.ts`)**
2093
- - Wallet connection protocol
2094
- - Multi-wallet support
2095
- - QR code signing
2096
- - Session management
2097
-
2098
- #### **3. Payment Providers (2)**
2099
-
2100
- **Stripe (`stripe.ts`)**
2101
- - **Fiat payments ONLY** (USD, cards, bank transfers)
2102
- - Subscriptions
2103
- - Invoicing
2104
- - Payment intents
2105
- - Webhook handling
2106
- - Customer portal
2107
-
2108
- **Coinbase Commerce (`coinbase.ts`)**
2109
- - Cryptocurrency payments
2110
- - Multiple chains
2111
- - Payment tracking
2112
- - Webhook events
2113
-
2114
- #### **4. Communication Providers (4)**
2115
-
2116
- **Resend (`resend.ts`)**
2117
- - **Primary email provider**
2118
- - Transactional emails
2119
- - Email verification
2120
- - Password reset
2121
- - Template support
2122
- - High deliverability
2123
-
2124
- **SendGrid (`sendgrid.ts`)**
2125
- - **Alternative email provider**
2126
- - Marketing emails
2127
- - Template engine
2128
- - Analytics
2129
- - A/B testing
2130
-
2131
- **Twilio (`twilio.ts`)**
2132
- - SMS messaging
2133
- - Voice calls
2134
- - 2FA/OTP
2135
- - Programmable messaging
2136
- - Call recording
2137
-
2138
- **Pusher (`pusher.ts`)**
2139
- - Real-time WebSockets
2140
- - Presence channels
2141
- - Private channels
2142
- - Client events
2143
- - Fallback support
2144
-
2145
- #### **5. Media/Storage Providers (2)**
2146
-
2147
- **AWS (`aws.ts`)**
2148
- - **S3:** General media storage (images, videos, audio, documents)
2149
- - **CloudFront:** Global CDN for fast delivery
2150
- - **Signed URLs:** Secure uploads/downloads
2151
- - **Multipart uploads:** Large file handling
2152
-
2153
- **Cloudflare Stream (`cloudflare-stream.ts`)**
2154
- - **Livestreaming ONLY** (not general storage)
2155
- - RTMP/WebRTC ingestion
2156
- - Adaptive bitrate streaming
2157
- - DVR functionality
2158
- - Real-time analytics
2159
-
2160
- #### **6. Integration Providers (3)**
2161
-
2162
- **ElizaOS (`elizaos.ts`)**
2163
- - External AI agent integration
2164
- - Agent discovery
2165
- - Message routing
2166
- - Plugin system
2167
- - Multi-agent coordination
2168
-
2169
- **CopilotKit (`copilotkit.ts`)**
2170
- - Generative UI patterns
2171
- - Context sharing
2172
- - Action system
2173
- - Component rendering
2174
-
2175
- **n8n (`n8n.ts`)**
2176
- - Workflow automation
2177
- - API orchestration
2178
- - Data transformation
2179
- - Scheduled tasks
2180
- - Webhook triggers
2181
-
2182
- #### **7. Social Media Providers (6)**
2183
-
2184
- **Twitter/X (`twitter.ts`)**
2185
- - Post tweets
2186
- - Thread creation
2187
- - Media uploads
2188
- - Analytics
2189
- - OAuth authentication
2190
-
2191
- **Instagram (`instagram.ts`)**
2192
- - Post images/videos
2193
- - Stories
2194
- - Reels
2195
- - Insights
2196
- - Graph API
2197
-
2198
- **YouTube (`youtube.ts`)**
2199
- - Video uploads
2200
- - Playlist management
2201
- - Analytics
2202
- - Live streaming
2203
- - Comments
2204
-
2205
- **TikTok (`tiktok.ts`)**
2206
- - Video uploads
2207
- - Analytics
2208
- - User data
2209
- - Engagement metrics
2210
-
2211
- **LinkedIn (`linkedin.ts`)**
2212
- - Post updates
2213
- - Article publishing
2214
- - Company pages
2215
- - Analytics
2216
-
2217
- **Facebook (`facebook.ts`)**
2218
- - Page posts
2219
- - Media uploads
2220
- - Insights
2221
- - Ads API
2222
-
2223
- ### Architecture Principles
2224
-
2225
- **1. Media Storage Strategy**
2226
- - **AWS S3 + CloudFront:** All static media (images, videos, audio, documents)
2227
- - **Cloudflare Stream:** Livestreaming ONLY (RTMP, WebRTC, adaptive streaming)
2228
-
2229
- **2. Payment Strategy**
2230
- - **Stripe:** All fiat payments (USD, credit cards, bank transfers, subscriptions)
2231
- - **Blockchain:** All crypto payments (token purchases, staking, transfers)
2232
-
2233
- **3. Multi-Chain Architecture**
2234
- - Each blockchain has dedicated provider
2235
- - Unified Effect.ts interface
2236
- - Easy to add new chains (Sui, Solana, Ethereum mainnet)
2237
- - Chain-specific optimizations
2238
-
2239
- **4. Email Strategy**
2240
- - **Resend:** Primary (transactional emails)
2241
- - **SendGrid:** Fallback + marketing emails
2242
- - Automatic failover
2243
-
2244
- **5. Error Handling**
2245
- - All providers use typed errors
2246
- - Retry logic with exponential backoff
2247
- - Circuit breaker pattern
2248
- - Fallback providers
2249
-
2250
- ### Documentation
2251
-
2252
- - `docs/Service Layer.md` - Effect.ts service architecture
2253
- - `docs/Service Providers.md` - Original providers (OpenAI, ElevenLabs, Stripe, Blockchain)
2254
- - `docs/Service Providers - New.md` - New providers (D-ID, HeyGen, Uniswap, Alchemy, Twilio, AWS, Cloudflare)
2255
-
2256
- ## Special Directories
2257
-
2258
- ### Don't Edit
2259
-
2260
- ```
2261
- convex/_generated/ # Auto-generated by Convex
2262
- node_modules/ # Dependencies
2263
- dist/ # Build output
2264
- .astro/ # Astro cache
2265
- ```
2266
-
2267
- ### Don't Commit
2268
-
2269
- ```
2270
- .env.local # Local environment
2271
- .DS_Store # macOS
2272
- *.log # Log files
2273
- coverage/ # Test coverage
2274
- ```
2275
-
2276
- ---
2277
-
2278
- ## Migration Notes
2279
-
2280
- **From one.ie and bullfm:**
2281
-
2282
- Old structure → New structure mapping:
2283
-
2284
- ```
2285
- one.ie/components/Auth/ → src/components/features/auth/
2286
- one.ie/pages/dashboard/ → src/pages/dashboard.astro
2287
- one.ie/lib/api/ → convex/mutations/ + queries/
2288
- one.ie/models/ → convex/schema/
2289
- one.ie/utils/ → src/lib/
2290
-
2291
- bullfm/components/ → src/components/features/[domain]/
2292
- bullfm/api/ → convex/actions/
2293
- ```
2294
-
2295
- **Ingestor agent will handle this mapping automatically.**
2296
-
2297
- ---
2298
-
2299
- ## Summary
2300
-
2301
- **Key principles:**
2302
- 1. Everything has a specific place
2303
- 2. Naming is consistent and predictable
2304
- 3. Structure mirrors functionality
2305
- 4. AI agents know exactly where to put files
2306
- 5. No ambiguity, no guessing
2307
-
2308
- **When in doubt:**
2309
- - Read this file
2310
- - Find similar existing file
2311
- - Follow the same pattern
2312
- - Update this file if creating new structure
2313
-
2314
- **This map is the source of truth for file locations.**
2315
-
2316
- ---
2317
-
2318
- ## Effect.ts Architecture Summary
2319
-
2320
- ### How Effect.ts Covers the Entire ONE Platform
2321
-
2322
- The ONE Platform is built on a **pure Effect.ts service layer** that covers 100% of application logic:
2323
-
2324
- #### 🎯 Coverage Breakdown
2325
-
2326
- **1. Core Infrastructure (5 services)**
2327
- - Database operations (CRUD, queries, transactions)
2328
- - Authentication (Better Auth integration, sessions)
2329
- - File storage (R2/S3 uploads, signed URLs)
2330
- - Caching (Redis-like operations)
2331
- - Job queues (background tasks)
2332
-
2333
- **2. Platform Features (78 services across 12 domains)**
2334
- - AI Clone Technology: 12 services
2335
- - Content Automation: 6 services
2336
- - Interactive Avatar (Livestream): 5 services
2337
- - User-Generated Content: 5 services
2338
- - AI-Powered LMS: 8 services
2339
- - Living Community: 6 services
2340
- - Business OS (Analytics): 6 services
2341
- - Token Economy: 7 services
2342
- - ELEVATE Journey: 5 services
2343
- - Viral Mechanisms: 4 services
2344
- - Business Agents: 11 services (10 C-suite + orchestrator)
2345
- - Ontology Operations: 3 services (entities, connections, events)
2346
-
2347
- **3. External Integrations (26 providers)**
2348
- - AI/LLM: 5 providers (OpenAI, Anthropic, ElevenLabs, D-ID, HeyGen)
2349
- - Blockchain: 4 providers (Base, Alchemy, Uniswap, WalletConnect)
2350
- - Payments: 2 providers (Stripe for fiat, Coinbase for crypto)
2351
- - Communication: 4 providers (Resend, SendGrid, Twilio, Pusher)
2352
- - Media/Storage: 2 providers (AWS S3, Cloudflare Stream)
2353
- - Integration: 3 providers (ElizaOS, CopilotKit, n8n)
2354
- - Social Media: 6 providers (Twitter, Instagram, YouTube, TikTok, LinkedIn, Facebook)
2355
-
2356
- **4. Protocol Implementations (6 protocols)**
2357
- - A2A (Agent-to-Agent)
2358
- - ACP (Agentic Commerce)
2359
- - AP2 (Agent Payments Protocol)
2360
- - X402 (HTTP Micropayments)
2361
- - AG-UI (Generative UI)
2362
- - MCP (Model Context Protocol)
2363
-
2364
- **Total Effect.ts Services: 115+**
2365
- - 5 core infrastructure services
2366
- - 78 platform feature services
2367
- - 26 external provider wrappers
2368
- - 6 protocol implementations
2369
-
2370
- #### 🏗️ Three-Layer Architecture
2371
-
2372
- ```
2373
- ┌─────────────────────────────────────────────────────────┐
2374
- │ LAYER 1: CONVEX API (Thin Wrappers) │
2375
- │ - mutations/ (write operations) │
2376
- │ - queries/ (read operations) │
2377
- │ - actions/ (external calls) │
2378
- │ │
2379
- │ Pattern: validate args → call service → return result │
2380
- │ NO business logic here │
2381
- └─────────────────┬───────────────────────────────────────┘
2382
- │
2383
- ┌─────────────────▼───────────────────────────────────────┐
2384
- │ LAYER 2: EFFECT.TS SERVICES (Business Logic) │
2385
- │ - 100% of application logic lives here │
2386
- │ - Pure functions (testable, composable) │
2387
- │ - Typed errors (no exceptions) │
2388
- │ - Dependency injection │
2389
- │ - Platform agnostic │
2390
- │ │
2391
- │ Pattern: Effect.Service with explicit dependencies │
2392
- └─────────────────┬───────────────────────────────────────┘
2393
- │
2394
- ┌─────────────────▼───────────────────────────────────────┐
2395
- │ LAYER 3: EXTERNAL PROVIDERS (Effect.ts Wrappers) │
2396
- │ - 26 external services wrapped with Effect.ts │
2397
- │ - Type-safe error handling │
2398
- │ - Automatic retries, timeouts, circuit breakers │
2399
- │ - Easy to mock for testing │
2400
- │ │
2401
- │ Pattern: Context.Tag + Layer.effect │
2402
- └─────────────────────────────────────────────────────────┘
2403
- ```
2404
-
2405
- #### 🎁 Effect.ts Benefits
2406
-
2407
- **1. Type-Safe Errors**
2408
- - No try/catch blocks
2409
- - Every error is typed (e.g., `InsufficientContentError`, `VoiceCloneFailedError`)
2410
- - Pattern matching on error types
2411
- - Exhaustive error handling
2412
-
2413
- **2. Dependency Injection**
2414
- - Services declare dependencies explicitly
2415
- - Easy to mock for testing (`MockStripeProvider`, `MockOpenAIProvider`)
2416
- - Compose services into larger workflows
2417
- - MainLayer combines all services
2418
-
2419
- **3. Composability**
2420
- - Services combine like LEGO blocks
2421
- - Parallel execution: `Effect.all([...], { concurrency: 5 })`
2422
- - Sequential execution: `Effect.gen` chaining
2423
- - Retries, timeouts, circuit breakers built-in
2424
-
2425
- **4. Platform Agnostic**
2426
- - Services are pure functions (no Convex-specific code)
2427
- - Can run in: Convex, Node.js, Cloudflare Workers, Deno, Bun
2428
- - Easy to migrate if needed
2429
- - Testable outside of Convex
2430
-
2431
- **5. Observability**
2432
- - Built-in logging: `Effect.logInfo`, `Effect.logError`
2433
- - Tracing: `Effect.withSpan` for distributed tracing
2434
- - Metrics: Track execution time, errors, retries
2435
- - Debugging: Full execution trace
2436
-
2437
- **6. Testability**
2438
- - Mock any dependency
2439
- - Test services in isolation
2440
- - Integration tests compose real services
2441
- - Property-based testing support
2442
-
2443
- #### 📊 Current Implementation Status
2444
-
2445
- **✅ Implemented (Current State)**
2446
- - Better Auth integration (convex/auth.ts)
2447
- - Basic schema (convex/schema.ts)
2448
- - HTTP routes (convex/http.ts)
2449
- - Convex configuration (convex.config.ts)
2450
-
2451
- **🚧 In Progress (Planned - 20 Week Roadmap)**
2452
- - Schema implementation (6 dimensions: entities, connections, events, tags)
2453
- - Core services (database, auth, storage, cache, queue)
2454
- - Platform feature services (AI, tokens, courses, community, etc.)
2455
- - External provider wrappers (26 providers)
2456
- - Protocol implementations (A2A, ACP, AP2, X402, AG-UI, MCP)
2457
-
2458
- **📅 Implementation Timeline**
2459
- - Week 1-2: Foundation (schema + core services)
2460
- - Week 3-4: Core services (auth, storage, basic CRUD)
2461
- - Week 5-8: AI services (clone, RAG, content generation)
2462
- - Week 9-12: Platform features (tokens, courses, community)
2463
- - Week 13-16: Protocols & integrations
2464
- - Week 17-20: Polish & scale
2465
-
2466
- #### 🔑 Key Principles
2467
-
2468
- 1. **ALL business logic in services/** - 100% Effect.ts, no exceptions
2469
- 2. **Convex functions are THIN WRAPPERS** - Validate → call service → return
2470
- 3. **NO business logic in mutations/queries/actions** - Keep them simple
2471
- 4. **Services are pure, testable, composable** - No side effects
2472
- 5. **Explicit types everywhere** - No `any`, typed errors with `_tag`
2473
- 6. **Platform agnostic** - Services can run anywhere
2474
- 7. **Dependency injection** - Mock any service for testing
2475
- 8. **Observability first** - Logging, tracing, metrics built-in
2476
-
2477
- This architecture ensures:
2478
- - **Consistency**: Same patterns everywhere
2479
- - **Type Safety**: Compiler catches errors
2480
- - **Testability**: Pure functions are easy to test
2481
- - **Composability**: Services combine cleanly
2482
- - **AI-Friendly**: Explicit patterns AI can learn
2483
- - **Scalability**: Code quality improves as codebase grows
2484
-
2485
- ---
2486
-
2487
- **Last updated:** 2025-01-15
2488
- **Maintained by:** AI agents + human developers
2489
- **Update frequency:** Every time new directory created