oneie 3.6.40 → 3.8.0

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 (984) hide show
  1. package/README.md +28 -9
  2. package/dist/admin/build.d.ts +15 -0
  3. package/dist/admin/build.d.ts.map +1 -0
  4. package/dist/admin/build.js +295 -0
  5. package/dist/admin/build.js.map +1 -0
  6. package/dist/admin/index.d.ts +24 -0
  7. package/dist/admin/index.d.ts.map +1 -0
  8. package/dist/admin/index.js +98 -0
  9. package/dist/admin/index.js.map +1 -0
  10. package/dist/admin/list.d.ts +14 -0
  11. package/dist/admin/list.d.ts.map +1 -0
  12. package/dist/admin/list.js +90 -0
  13. package/dist/admin/list.js.map +1 -0
  14. package/dist/admin/manifest.d.ts +86 -0
  15. package/dist/admin/manifest.d.ts.map +1 -0
  16. package/dist/admin/manifest.js +183 -0
  17. package/dist/admin/manifest.js.map +1 -0
  18. package/dist/admin/monorepo.d.ts +25 -0
  19. package/dist/admin/monorepo.d.ts.map +1 -0
  20. package/dist/admin/monorepo.js +59 -0
  21. package/dist/admin/monorepo.js.map +1 -0
  22. package/dist/admin/release.d.ts +17 -0
  23. package/dist/admin/release.d.ts.map +1 -0
  24. package/dist/admin/release.js +144 -0
  25. package/dist/admin/release.js.map +1 -0
  26. package/dist/admin/sync.d.ts +14 -0
  27. package/dist/admin/sync.d.ts.map +1 -0
  28. package/dist/admin/sync.js +104 -0
  29. package/dist/admin/sync.js.map +1 -0
  30. package/dist/admin/validate.d.ts +15 -0
  31. package/dist/admin/validate.d.ts.map +1 -0
  32. package/dist/admin/validate.js +169 -0
  33. package/dist/admin/validate.js.map +1 -0
  34. package/dist/commands/agent.d.ts +2 -0
  35. package/dist/commands/agent.d.ts.map +1 -1
  36. package/dist/commands/agent.js +44 -0
  37. package/dist/commands/agent.js.map +1 -1
  38. package/dist/commands/ask.d.ts +4 -0
  39. package/dist/commands/ask.d.ts.map +1 -0
  40. package/dist/commands/ask.js +8 -0
  41. package/dist/commands/ask.js.map +1 -0
  42. package/dist/commands/bounty.d.ts +4 -0
  43. package/dist/commands/bounty.d.ts.map +1 -0
  44. package/dist/commands/bounty.js +24 -0
  45. package/dist/commands/bounty.js.map +1 -0
  46. package/dist/commands/capabilities.d.ts +4 -0
  47. package/dist/commands/capabilities.d.ts.map +1 -0
  48. package/dist/commands/capabilities.js +18 -0
  49. package/dist/commands/capabilities.js.map +1 -0
  50. package/dist/commands/claw.d.ts +4 -0
  51. package/dist/commands/claw.d.ts.map +1 -0
  52. package/dist/commands/claw.js +14 -0
  53. package/dist/commands/claw.js.map +1 -0
  54. package/dist/commands/commend.d.ts +4 -0
  55. package/dist/commands/commend.d.ts.map +1 -0
  56. package/dist/commands/commend.js +13 -0
  57. package/dist/commands/commend.js.map +1 -0
  58. package/dist/commands/completion.d.ts +4 -0
  59. package/dist/commands/completion.d.ts.map +1 -0
  60. package/dist/commands/completion.js +49 -0
  61. package/dist/commands/completion.js.map +1 -0
  62. package/dist/commands/config.d.ts +4 -0
  63. package/dist/commands/config.d.ts.map +1 -0
  64. package/dist/commands/config.js +78 -0
  65. package/dist/commands/config.js.map +1 -0
  66. package/dist/commands/deploy.d.ts +4 -0
  67. package/dist/commands/deploy.d.ts.map +1 -0
  68. package/dist/commands/deploy.js +10 -0
  69. package/dist/commands/deploy.js.map +1 -0
  70. package/dist/commands/doctor.d.ts +4 -0
  71. package/dist/commands/doctor.d.ts.map +1 -0
  72. package/dist/commands/doctor.js +72 -0
  73. package/dist/commands/doctor.js.map +1 -0
  74. package/dist/commands/export.d.ts +4 -0
  75. package/dist/commands/export.d.ts.map +1 -0
  76. package/dist/commands/export.js +15 -0
  77. package/dist/commands/export.js.map +1 -0
  78. package/dist/commands/fade.d.ts +4 -0
  79. package/dist/commands/fade.d.ts.map +1 -0
  80. package/dist/commands/fade.js +15 -0
  81. package/dist/commands/fade.js.map +1 -0
  82. package/dist/commands/flag.d.ts +4 -0
  83. package/dist/commands/flag.d.ts.map +1 -0
  84. package/dist/commands/flag.js +13 -0
  85. package/dist/commands/flag.js.map +1 -0
  86. package/dist/commands/forget.d.ts +4 -0
  87. package/dist/commands/forget.d.ts.map +1 -0
  88. package/dist/commands/forget.js +16 -0
  89. package/dist/commands/forget.js.map +1 -0
  90. package/dist/commands/frontier.d.ts +4 -0
  91. package/dist/commands/frontier.d.ts.map +1 -0
  92. package/dist/commands/frontier.js +11 -0
  93. package/dist/commands/frontier.js.map +1 -0
  94. package/dist/commands/health.d.ts +4 -0
  95. package/dist/commands/health.d.ts.map +1 -0
  96. package/dist/commands/health.js +11 -0
  97. package/dist/commands/health.js.map +1 -0
  98. package/dist/commands/highways.d.ts +4 -0
  99. package/dist/commands/highways.d.ts.map +1 -0
  100. package/dist/commands/highways.js +14 -0
  101. package/dist/commands/highways.js.map +1 -0
  102. package/dist/commands/hire.d.ts +4 -0
  103. package/dist/commands/hire.d.ts.map +1 -0
  104. package/dist/commands/hire.js +16 -0
  105. package/dist/commands/hire.js.map +1 -0
  106. package/dist/commands/init.d.ts.map +1 -1
  107. package/dist/commands/init.js +69 -42
  108. package/dist/commands/init.js.map +1 -1
  109. package/dist/commands/know.d.ts +4 -0
  110. package/dist/commands/know.d.ts.map +1 -0
  111. package/dist/commands/know.js +8 -0
  112. package/dist/commands/know.js.map +1 -0
  113. package/dist/commands/launch.d.ts +4 -0
  114. package/dist/commands/launch.d.ts.map +1 -0
  115. package/dist/commands/launch.js +16 -0
  116. package/dist/commands/launch.js.map +1 -0
  117. package/dist/commands/mark.d.ts +4 -0
  118. package/dist/commands/mark.d.ts.map +1 -0
  119. package/dist/commands/mark.js +15 -0
  120. package/dist/commands/mark.js.map +1 -0
  121. package/dist/commands/pay.d.ts +4 -0
  122. package/dist/commands/pay.d.ts.map +1 -0
  123. package/dist/commands/pay.js +21 -0
  124. package/dist/commands/pay.js.map +1 -0
  125. package/dist/commands/pipe.d.ts +4 -0
  126. package/dist/commands/pipe.d.ts.map +1 -0
  127. package/dist/commands/pipe.js +35 -0
  128. package/dist/commands/pipe.js.map +1 -0
  129. package/dist/commands/publish.d.ts +4 -0
  130. package/dist/commands/publish.d.ts.map +1 -0
  131. package/dist/commands/publish.js +23 -0
  132. package/dist/commands/publish.js.map +1 -0
  133. package/dist/commands/recall.d.ts +4 -0
  134. package/dist/commands/recall.d.ts.map +1 -0
  135. package/dist/commands/recall.js +12 -0
  136. package/dist/commands/recall.js.map +1 -0
  137. package/dist/commands/repl.d.ts +4 -0
  138. package/dist/commands/repl.d.ts.map +1 -0
  139. package/dist/commands/repl.js +56 -0
  140. package/dist/commands/repl.js.map +1 -0
  141. package/dist/commands/reveal.d.ts +4 -0
  142. package/dist/commands/reveal.d.ts.map +1 -0
  143. package/dist/commands/reveal.js +11 -0
  144. package/dist/commands/reveal.js.map +1 -0
  145. package/dist/commands/revenue.d.ts +4 -0
  146. package/dist/commands/revenue.d.ts.map +1 -0
  147. package/dist/commands/revenue.js +11 -0
  148. package/dist/commands/revenue.js.map +1 -0
  149. package/dist/commands/select.d.ts +4 -0
  150. package/dist/commands/select.d.ts.map +1 -0
  151. package/dist/commands/select.js +19 -0
  152. package/dist/commands/select.js.map +1 -0
  153. package/dist/commands/signal.d.ts +4 -0
  154. package/dist/commands/signal.d.ts.map +1 -0
  155. package/dist/commands/signal.js +8 -0
  156. package/dist/commands/signal.js.map +1 -0
  157. package/dist/commands/stats.d.ts +4 -0
  158. package/dist/commands/stats.d.ts.map +1 -0
  159. package/dist/commands/stats.js +11 -0
  160. package/dist/commands/stats.js.map +1 -0
  161. package/dist/commands/status.d.ts +4 -0
  162. package/dist/commands/status.d.ts.map +1 -0
  163. package/dist/commands/status.js +18 -0
  164. package/dist/commands/status.js.map +1 -0
  165. package/dist/commands/sync.d.ts +4 -0
  166. package/dist/commands/sync.d.ts.map +1 -0
  167. package/dist/commands/sync.js +20 -0
  168. package/dist/commands/sync.js.map +1 -0
  169. package/dist/commands/tail.d.ts +4 -0
  170. package/dist/commands/tail.d.ts.map +1 -0
  171. package/dist/commands/tail.js +51 -0
  172. package/dist/commands/tail.js.map +1 -0
  173. package/dist/commands/warn.d.ts +4 -0
  174. package/dist/commands/warn.d.ts.map +1 -0
  175. package/dist/commands/warn.js +15 -0
  176. package/dist/commands/warn.js.map +1 -0
  177. package/dist/create-org-profile.js +2 -2
  178. package/dist/create-user-profile.js +2 -2
  179. package/dist/index.js +135 -7
  180. package/dist/index.js.map +1 -1
  181. package/dist/lib/args.d.ts +11 -0
  182. package/dist/lib/args.d.ts.map +1 -0
  183. package/dist/lib/args.js +57 -0
  184. package/dist/lib/args.js.map +1 -0
  185. package/dist/lib/config.d.ts +12 -0
  186. package/dist/lib/config.d.ts.map +1 -0
  187. package/dist/lib/config.js +38 -0
  188. package/dist/lib/config.js.map +1 -0
  189. package/dist/lib/http.d.ts +9 -0
  190. package/dist/lib/http.d.ts.map +1 -0
  191. package/dist/lib/http.js +25 -0
  192. package/dist/lib/http.js.map +1 -0
  193. package/dist/lib/output.d.ts +5 -0
  194. package/dist/lib/output.d.ts.map +1 -0
  195. package/dist/lib/output.js +32 -0
  196. package/dist/lib/output.js.map +1 -0
  197. package/dist/lib/sdk.d.ts +10 -0
  198. package/dist/lib/sdk.d.ts.map +1 -0
  199. package/dist/lib/sdk.js +22 -0
  200. package/dist/lib/sdk.js.map +1 -0
  201. package/dist/lib/telemetry.d.ts +4 -0
  202. package/dist/lib/telemetry.d.ts.map +1 -0
  203. package/dist/lib/telemetry.js +61 -0
  204. package/dist/lib/telemetry.js.map +1 -0
  205. package/dist/utils/file-resolver.js +1 -3
  206. package/dist/utils/file-resolver.js.map +1 -1
  207. package/dist/utils/installation-setup.d.ts +15 -0
  208. package/dist/utils/installation-setup.d.ts.map +1 -1
  209. package/dist/utils/installation-setup.js +71 -8
  210. package/dist/utils/installation-setup.js.map +1 -1
  211. package/package.json +5 -21
  212. package/.claude/agents/TROUBLESHOOTING.md +0 -530
  213. package/.claude/agents/agent-backend.md +0 -574
  214. package/.claude/agents/agent-builder.md +0 -911
  215. package/.claude/agents/agent-claude.md +0 -645
  216. package/.claude/agents/agent-clean.md +0 -477
  217. package/.claude/agents/agent-clone.md +0 -554
  218. package/.claude/agents/agent-designer.md +0 -1080
  219. package/.claude/agents/agent-director.md +0 -2254
  220. package/.claude/agents/agent-documenter.md +0 -688
  221. package/.claude/agents/agent-frontend.md +0 -1199
  222. package/.claude/agents/agent-integrator.md +0 -670
  223. package/.claude/agents/agent-lawyer.md +0 -1320
  224. package/.claude/agents/agent-news.md +0 -363
  225. package/.claude/agents/agent-onboard.md +0 -613
  226. package/.claude/agents/agent-ontology.md +0 -585
  227. package/.claude/agents/agent-ops.md +0 -1275
  228. package/.claude/agents/agent-problem-solver.md +0 -669
  229. package/.claude/agents/agent-quality.md +0 -1042
  230. package/.claude/agents/agent-sales.md +0 -507
  231. package/.claude/agents/agent-writer.md +0 -1068
  232. package/.claude/commands/cascade.md +0 -742
  233. package/.claude/commands/chat.md +0 -728
  234. package/.claude/commands/commit.md +0 -95
  235. package/.claude/commands/create.md +0 -544
  236. package/.claude/commands/deploy.md +0 -309
  237. package/.claude/commands/fast.md +0 -636
  238. package/.claude/commands/mcp-on.md +0 -191
  239. package/.claude/commands/media-upload.md +0 -186
  240. package/.claude/commands/news.md +0 -274
  241. package/.claude/commands/onboard.md +0 -440
  242. package/.claude/commands/one.md +0 -398
  243. package/.claude/commands/optimize.md +0 -74
  244. package/.claude/commands/plan.md +0 -719
  245. package/.claude/commands/push.md +0 -214
  246. package/.claude/commands/release.md +0 -105
  247. package/.claude/commands/review.md +0 -99
  248. package/.claude/commands/server.md +0 -487
  249. package/.claude/commands/start.md +0 -227
  250. package/.claude/commands/test.md +0 -197
  251. package/.claude/commands/validate.md +0 -140
  252. package/.claude/hooks/.last-news-context +0 -1
  253. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +0 -473
  254. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  255. package/.claude/hooks/README-news-generation.md +0 -364
  256. package/.claude/hooks/README-root-cleanup.md +0 -200
  257. package/.claude/hooks/README.md +0 -284
  258. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  259. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  260. package/.claude/hooks/auto-format.sh +0 -106
  261. package/.claude/hooks/check-filenames.py +0 -177
  262. package/.claude/hooks/clean-post.py +0 -468
  263. package/.claude/hooks/clean-pre.py +0 -393
  264. package/.claude/hooks/clean-root-markdown.sh +0 -73
  265. package/.claude/hooks/commit-push.sh +0 -95
  266. package/.claude/hooks/done.py +0 -236
  267. package/.claude/hooks/format-hook.sh +0 -163
  268. package/.claude/hooks/formatting.py +0 -187
  269. package/.claude/hooks/hook-logger.sh +0 -173
  270. package/.claude/hooks/knowledge-post.py +0 -355
  271. package/.claude/hooks/knowledge-pre.py +0 -245
  272. package/.claude/hooks/mcp-on.sh +0 -134
  273. package/.claude/hooks/notification-hook.sh +0 -279
  274. package/.claude/hooks/ontology-validation.py +0 -255
  275. package/.claude/hooks/push.sh +0 -153
  276. package/.claude/hooks/release-cli.sh +0 -205
  277. package/.claude/hooks/root-cleanup.py +0 -217
  278. package/.claude/hooks/security-hook.sh +0 -397
  279. package/.claude/hooks/tag-all-docs.py +0 -464
  280. package/.claude/hooks/test-validate-ontology.sh +0 -170
  281. package/.claude/hooks/todo.py +0 -368
  282. package/.claude/hooks/track-changes.sh +0 -101
  283. package/.claude/hooks/validate-imports.py +0 -182
  284. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  285. package/.claude/hooks/validate-ontology-structure.py +0 -558
  286. package/.claude/hooks/validate-ontology-structure.py.backup +0 -518
  287. package/.claude/hooks/validate-ontology.py +0 -140
  288. package/.claude/hooks/write-news.sh +0 -194
  289. package/.claude/skills/INDEX.md +0 -523
  290. package/.claude/skills/REGISTRY.md +0 -529
  291. package/.claude/skills/agent-backend-create-mutation.md +0 -319
  292. package/.claude/skills/agent-designer-create-wireframe.md +0 -341
  293. package/.claude/skills/agent-frontend-create-page.md +0 -413
  294. package/.claude/skills/agents/README.md +0 -238
  295. package/.claude/skills/astro/add-content-collection.md +0 -30
  296. package/.claude/skills/astro/check-build.md +0 -29
  297. package/.claude/skills/astro/create-component.md +0 -29
  298. package/.claude/skills/astro/create-page.md +0 -30
  299. package/.claude/skills/astro/optimize-performance.md +0 -21
  300. package/.claude/skills/convex/check-deployment.md +0 -46
  301. package/.claude/skills/convex/create-mutation.md +0 -405
  302. package/.claude/skills/convex/create-query.md +0 -52
  303. package/.claude/skills/convex/read-schema.md +0 -373
  304. package/.claude/skills/convex/test-function.md +0 -50
  305. package/.claude/skills/deployment/check-deployment-health.md +0 -20
  306. package/.claude/skills/deployment/create-release.md +0 -21
  307. package/.claude/skills/deployment/deploy-cloudflare.md +0 -31
  308. package/.claude/skills/deployment/deploy-convex.md +0 -30
  309. package/.claude/skills/deployment/sync-repositories.md +0 -19
  310. package/.claude/skills/design/check-accessibility.md +0 -21
  311. package/.claude/skills/design/create-component-spec.md +0 -27
  312. package/.claude/skills/design/generate-design-tokens.md +0 -24
  313. package/.claude/skills/design/generate-wireframe.md +0 -30
  314. package/.claude/skills/documentation/create-migration-guide.md +0 -20
  315. package/.claude/skills/documentation/generate-api-docs.md +0 -27
  316. package/.claude/skills/documentation/generate-readme.md +0 -22
  317. package/.claude/skills/documentation/update-knowledge.md +0 -20
  318. package/.claude/skills/integration/connect-external-system.md +0 -21
  319. package/.claude/skills/integration/implement-a2a.md +0 -20
  320. package/.claude/skills/integration/implement-acp.md +0 -20
  321. package/.claude/skills/integration/verify-integration.md +0 -20
  322. package/.claude/skills/ontology/README.md +0 -255
  323. package/.claude/skills/ontology/check-dimension.md +0 -307
  324. package/.claude/skills/ontology/generate-entity-type.md +0 -339
  325. package/.claude/skills/ontology/validate-schema.md +0 -229
  326. package/.claude/skills/ontology/verify-relationships.md +0 -310
  327. package/.claude/skills/problem-solving/analyze-test-failure.md +0 -21
  328. package/.claude/skills/problem-solving/identify-root-cause.md +0 -20
  329. package/.claude/skills/problem-solving/propose-solution.md +0 -29
  330. package/.claude/skills/problem-solving/verify-fix.md +0 -21
  331. package/.claude/skills/sales/generate-demo-script.md +0 -21
  332. package/.claude/skills/sales/qualify-lead.md +0 -30
  333. package/.claude/skills/sales/track-trial.md +0 -20
  334. package/.claude/skills/sales/verify-kyc.md +0 -20
  335. package/.claude/skills/testing/analyze-coverage.md +0 -24
  336. package/.claude/skills/testing/generate-tests.md +0 -24
  337. package/.claude/skills/testing/run-tests.md +0 -27
  338. package/.claude/skills/testing/validate-e2e.md +0 -25
  339. package/AGENTS.md +0 -60
  340. package/CLAUDE.md +0 -321
  341. package/CREATE-WEBSITE.md +0 -458
  342. package/SECURITY.md +0 -31
  343. package/dist/commands/create-website.d.ts +0 -19
  344. package/dist/commands/create-website.d.ts.map +0 -1
  345. package/dist/commands/create-website.js +0 -231
  346. package/dist/commands/create-website.js.map +0 -1
  347. package/folders.yaml +0 -92
  348. package/one/README.md +0 -760
  349. package/one/connections/a2a.md +0 -600
  350. package/one/connections/acp.md +0 -808
  351. package/one/connections/acps.md +0 -749
  352. package/one/connections/agentkit.md +0 -367
  353. package/one/connections/agui.md +0 -785
  354. package/one/connections/any-backend.md +0 -1720
  355. package/one/connections/ap2.md +0 -1072
  356. package/one/connections/api/queries-reference.md +0 -860
  357. package/one/connections/api-docs.md +0 -1909
  358. package/one/connections/api-reference.md +0 -1029
  359. package/one/connections/api.md +0 -2208
  360. package/one/connections/architecture-diagram.md +0 -112
  361. package/one/connections/communications.md +0 -467
  362. package/one/connections/connections.md +0 -357
  363. package/one/connections/copilotkit.md +0 -1577
  364. package/one/connections/cryptonetworks.md +0 -799
  365. package/one/connections/documentation.md +0 -1138
  366. package/one/connections/effect.md +0 -297
  367. package/one/connections/elizaos.md +0 -1308
  368. package/one/connections/groups.md +0 -814
  369. package/one/connections/inference.md +0 -76
  370. package/one/connections/integration-examples.md +0 -893
  371. package/one/connections/integration-guide.md +0 -887
  372. package/one/connections/integration-phase2.md +0 -754
  373. package/one/connections/kyc.md +0 -650
  374. package/one/connections/mcp.md +0 -860
  375. package/one/connections/membership.md +0 -1170
  376. package/one/connections/middleware.md +0 -1085
  377. package/one/connections/multitenant.md +0 -1359
  378. package/one/connections/n8n.md +0 -1033
  379. package/one/connections/patterns.md +0 -107
  380. package/one/connections/protocols.md +0 -297
  381. package/one/connections/relationships.md +0 -125
  382. package/one/connections/schema.md +0 -605
  383. package/one/connections/service-layer.md +0 -568
  384. package/one/connections/vectors.md +0 -225
  385. package/one/connections/wordpress.md +0 -1320
  386. package/one/connections/workflow-copy.md +0 -923
  387. package/one/connections/workflow-examples.md +0 -759
  388. package/one/connections/workflow-onboarding.md +0 -701
  389. package/one/connections/workflow.md +0 -923
  390. package/one/connections/workflows/delegation.md +0 -903
  391. package/one/connections/workflows/frontend.md +0 -1055
  392. package/one/connections/workflows/strategy.md +0 -921
  393. package/one/connections/workflows/tasks.md +0 -716
  394. package/one/connections/x402-baazar.md +0 -131
  395. package/one/connections/x402.md +0 -1353
  396. package/one/groups/features.md +0 -2904
  397. package/one/groups/groups.md +0 -587
  398. package/one/groups/one.md +0 -619
  399. package/one/groups/strategy-copy.md +0 -887
  400. package/one/knowledge/.obsidian/app.json +0 -1
  401. package/one/knowledge/.obsidian/appearance.json +0 -1
  402. package/one/knowledge/.obsidian/core-plugins.json +0 -33
  403. package/one/knowledge/.obsidian/ecommerce-ontology.md +0 -210
  404. package/one/knowledge/.obsidian/workspace.json +0 -211
  405. package/one/knowledge/100-inference-quick-reference.md +0 -449
  406. package/one/knowledge/ag-ui-protocol.md +0 -613
  407. package/one/knowledge/agent-onboard-usage.md +0 -630
  408. package/one/knowledge/agentic-commerce.md +0 -146
  409. package/one/knowledge/ai-agents-vs-memecoins-thesis.md +0 -683
  410. package/one/knowledge/ai-api-reference.md +0 -715
  411. package/one/knowledge/ai-platform.md +0 -323
  412. package/one/knowledge/ai-quickstart.md +0 -355
  413. package/one/knowledge/ai-sdk-implementation.md +0 -436
  414. package/one/knowledge/ai-token-crypto-analysis-framework.md +0 -1191
  415. package/one/knowledge/ai-token-paradigm-shift-2025.md +0 -732
  416. package/one/knowledge/altcoin-cycle-prediction-ontology.md +0 -884
  417. package/one/knowledge/altcoin-cycle-trading-strategy.md +0 -642
  418. package/one/knowledge/architecture-any-backend.md +0 -1589
  419. package/one/knowledge/architecture-diagram.md +0 -404
  420. package/one/knowledge/architecture-frontend.md +0 -1014
  421. package/one/knowledge/architecture.md +0 -1742
  422. package/one/knowledge/archived/ontology.old.md +0 -2840
  423. package/one/knowledge/astro-effect-complete-vision.md +0 -2148
  424. package/one/knowledge/astro-effect-simple-architecture.md +0 -750
  425. package/one/knowledge/audit-agent-onboard-alignment.md +0 -481
  426. package/one/knowledge/audit-agent-sales-alignment.md +0 -444
  427. package/one/knowledge/backend-api-reference.md +0 -728
  428. package/one/knowledge/cascading-context-specification.md +0 -1617
  429. package/one/knowledge/claude-code-integration.md +0 -1293
  430. package/one/knowledge/cli-claude-handoff.md +0 -736
  431. package/one/knowledge/context-engineering.md +0 -610
  432. package/one/knowledge/crypto-analysis-strategy.md +0 -1276
  433. package/one/knowledge/crypto-cycle-2024-2025-analysis.md +0 -44
  434. package/one/knowledge/crypto.md +0 -978
  435. package/one/knowledge/develop/design.md +0 -364
  436. package/one/knowledge/develop/index.md +0 -145
  437. package/one/knowledge/development-commands.md +0 -251
  438. package/one/knowledge/docs.md +0 -627
  439. package/one/knowledge/dsl.md +0 -1678
  440. package/one/knowledge/event-driven-documentation.md +0 -270
  441. package/one/knowledge/files.md +0 -2489
  442. package/one/knowledge/frontend.md +0 -1056
  443. package/one/knowledge/games-english.md +0 -691
  444. package/one/knowledge/games.md +0 -1082
  445. package/one/knowledge/generative-ui-patterns.md +0 -559
  446. package/one/knowledge/guidelines.md +0 -314
  447. package/one/knowledge/hono.md +0 -2127
  448. package/one/knowledge/implementation-examples.md +0 -2554
  449. package/one/knowledge/installation-folders.md +0 -366
  450. package/one/knowledge/institutional-cycle-paradigm-2025.md +0 -555
  451. package/one/knowledge/knowledge.md +0 -660
  452. package/one/knowledge/language.md +0 -998
  453. package/one/knowledge/lessons-learned.md +0 -378
  454. package/one/knowledge/lessons-website-building-focus.md +0 -382
  455. package/one/knowledge/merge-report.md +0 -254
  456. package/one/knowledge/metadata-system.md +0 -504
  457. package/one/knowledge/nine-padel-playbook.md +0 -229
  458. package/one/knowledge/one-protocol-ai-agents.md +0 -892
  459. package/one/knowledge/one-protocol-executive-report.md +0 -617
  460. package/one/knowledge/one-protocol-standard.md +0 -869
  461. package/one/knowledge/one-protocol-whitepaper.md +0 -756
  462. package/one/knowledge/ontology-blog.yaml +0 -47
  463. package/one/knowledge/ontology-cheatsheet.md +0 -617
  464. package/one/knowledge/ontology-community.yaml +0 -65
  465. package/one/knowledge/ontology-core-universal.md +0 -740
  466. package/one/knowledge/ontology-core.yaml +0 -63
  467. package/one/knowledge/ontology-courses.yaml +0 -76
  468. package/one/knowledge/ontology-creator.md +0 -402
  469. package/one/knowledge/ontology-crypto.md +0 -1603
  470. package/one/knowledge/ontology-developer-guide.md +0 -814
  471. package/one/knowledge/ontology-documentation.md +0 -377
  472. package/one/knowledge/ontology-ecommerce.md +0 -269
  473. package/one/knowledge/ontology-education-game.md +0 -1654
  474. package/one/knowledge/ontology-education.md +0 -938
  475. package/one/knowledge/ontology-engineering-specification.md +0 -1310
  476. package/one/knowledge/ontology-engineering.md +0 -1676
  477. package/one/knowledge/ontology-files.yaml +0 -525
  478. package/one/knowledge/ontology-frontend-master.md +0 -2898
  479. package/one/knowledge/ontology-frontend-specifications.md +0 -2196
  480. package/one/knowledge/ontology-frontend.md +0 -2475
  481. package/one/knowledge/ontology-index.md +0 -397
  482. package/one/knowledge/ontology-minimal.yaml +0 -301
  483. package/one/knowledge/ontology-portfolio.yaml +0 -45
  484. package/one/knowledge/ontology-quickstart.md +0 -602
  485. package/one/knowledge/ontology-release.md +0 -317
  486. package/one/knowledge/ontology-shop.yaml +0 -148
  487. package/one/knowledge/ontology-tokens.yaml +0 -51
  488. package/one/knowledge/ontology-tutorial.md +0 -455
  489. package/one/knowledge/ontology-v2.md +0 -4449
  490. package/one/knowledge/ontology-video-script.md +0 -939
  491. package/one/knowledge/ontology-visual-guide.md +0 -378
  492. package/one/knowledge/ontology.md +0 -3847
  493. package/one/knowledge/ontology.yaml +0 -1653
  494. package/one/knowledge/parallel-agents.md +0 -932
  495. package/one/knowledge/patterns/backend/convex-mutation-pattern.md +0 -130
  496. package/one/knowledge/patterns/backend/convex-query-pattern.md +0 -143
  497. package/one/knowledge/patterns/backend/mutation-template.md +0 -249
  498. package/one/knowledge/patterns/backend/query-template.md +0 -286
  499. package/one/knowledge/patterns/backend/service-template.md +0 -258
  500. package/one/knowledge/patterns/design/component-architecture.md +0 -435
  501. package/one/knowledge/patterns/design/index.md +0 -160
  502. package/one/knowledge/patterns/design/test-driven-design-pattern.md +0 -196
  503. package/one/knowledge/patterns/design/wireframe-template.md +0 -250
  504. package/one/knowledge/patterns/frontend/component-template.md +0 -246
  505. package/one/knowledge/patterns/frontend/form-template.md +0 -348
  506. package/one/knowledge/patterns/frontend/page-template.md +0 -209
  507. package/one/knowledge/patterns/frontend/react-component-pattern.md +0 -188
  508. package/one/knowledge/patterns/test/acceptance-criteria-template.md +0 -396
  509. package/one/knowledge/patterns/test/technical-test-template.md +0 -566
  510. package/one/knowledge/patterns/test/test-driven-pattern.md +0 -160
  511. package/one/knowledge/patterns/test/user-flow-template.md +0 -272
  512. package/one/knowledge/performance.md +0 -459
  513. package/one/knowledge/provider-agnostic-content.md +0 -995
  514. package/one/knowledge/provider-creation-guide.md +0 -1082
  515. package/one/knowledge/quality-loop.md +0 -419
  516. package/one/knowledge/quick-start-ontology-mapping.md +0 -773
  517. package/one/knowledge/readme-architecture.md +0 -158
  518. package/one/knowledge/readme.md +0 -149
  519. package/one/knowledge/rules.md +0 -644
  520. package/one/knowledge/score.md +0 -85
  521. package/one/knowledge/specifications.md +0 -873
  522. package/one/knowledge/tags.md +0 -148
  523. package/one/knowledge/todo-template.md +0 -269
  524. package/one/knowledge/todo.md +0 -269
  525. package/one/knowledge/troubleshooting.md +0 -434
  526. package/one/knowledge/typescript-patterns.md +0 -321
  527. package/one/knowledge/universal-generation-language.md +0 -827
  528. package/one/knowledge/x402-research.md +0 -104
  529. package/one/license.md +0 -107
  530. package/one/people/anthony-o-connell.md +0 -469
  531. package/one/people/people.md +0 -590
  532. package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +0 -401
  533. package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +0 -588
  534. package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +0 -461
  535. package/one/things/CHECKLIST.md +0 -407
  536. package/one/things/IMPLEMENTATION_STATUS.md +0 -379
  537. package/one/things/ONE.md +0 -529
  538. package/one/things/agents/agent-backend.md +0 -1501
  539. package/one/things/agents/agent-builder.md +0 -1064
  540. package/one/things/agents/agent-clean.md +0 -1112
  541. package/one/things/agents/agent-clone.md +0 -1324
  542. package/one/things/agents/agent-deploy.md +0 -986
  543. package/one/things/agents/agent-designer.md +0 -2305
  544. package/one/things/agents/agent-director.md +0 -1526
  545. package/one/things/agents/agent-documenter.md +0 -1129
  546. package/one/things/agents/agent-frontend.md +0 -1201
  547. package/one/things/agents/agent-integrator.md +0 -1269
  548. package/one/things/agents/agent-lawyer.md +0 -1371
  549. package/one/things/agents/agent-problem-solver.md +0 -1457
  550. package/one/things/agents/agent-quality.md +0 -1483
  551. package/one/things/agents/agent-sales.md +0 -1074
  552. package/one/things/cascade/cascade.yaml +0 -481
  553. package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +0 -523
  554. package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +0 -314
  555. package/one/things/cascade/docs/examples/1-1-agent-prompts.md +0 -562
  556. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +0 -543
  557. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +0 -272
  558. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +0 -548
  559. package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +0 -586
  560. package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +0 -267
  561. package/one/things/cascade/docs/examples/1-3-event-coordination.md +0 -547
  562. package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +0 -665
  563. package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +0 -236
  564. package/one/things/cascade/docs/examples/1-4-knowledge-management.md +0 -652
  565. package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +0 -860
  566. package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +0 -255
  567. package/one/things/cascade/docs/examples/1-5-quality-loops.md +0 -725
  568. package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +0 -659
  569. package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +0 -256
  570. package/one/things/cascade/docs/examples/1-6-numbering-structure.md +0 -639
  571. package/one/things/cascade/docs/examples/readme.md +0 -259
  572. package/one/things/cascade/docs/getting-started.md +0 -533
  573. package/one/things/cascade/docs/workflow.md +0 -1378
  574. package/one/things/cascade/readme.md +0 -379
  575. package/one/things/cascade/templates/feature-template.md +0 -289
  576. package/one/things/claude/agents/advocacy-activation-manager.md +0 -710
  577. package/one/things/claude/agents/advocacy-campaign-designer.md +0 -688
  578. package/one/things/claude/agents/analyst.md +0 -508
  579. package/one/things/claude/agents/architect.md +0 -505
  580. package/one/things/claude/agents/brand-identity-specialist.md +0 -538
  581. package/one/things/claude/agents/bstp-token-strategist.md +0 -690
  582. package/one/things/claude/agents/builder-repo.md +0 -532
  583. package/one/things/claude/agents/bullstamp-community-builder.md +0 -597
  584. package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +0 -529
  585. package/one/things/claude/agents/bulltilt-platform-growth.md +0 -590
  586. package/one/things/claude/agents/company-bullstamp-character.md +0 -602
  587. package/one/things/claude/agents/company-bullstamp-community.md +0 -307
  588. package/one/things/claude/agents/company-bullstamp-marketing.md +0 -307
  589. package/one/things/claude/agents/company-bullstamp-token.md +0 -307
  590. package/one/things/claude/agents/company-bulltilt-growth.md +0 -307
  591. package/one/things/claude/agents/content-bibliography-formatter.md +0 -404
  592. package/one/things/claude/agents/content-calendar-planner.md +0 -473
  593. package/one/things/claude/agents/content-chapter-formatter.md +0 -513
  594. package/one/things/claude/agents/content-formatter.md +0 -571
  595. package/one/things/claude/agents/content-hook-specialist.md +0 -485
  596. package/one/things/claude/agents/content-image-formatter.md +0 -560
  597. package/one/things/claude/agents/content-introduction-formatter.md +0 -510
  598. package/one/things/claude/agents/content-multiplication-engine.md +0 -579
  599. package/one/things/claude/agents/content-playbook-writer.md +0 -473
  600. package/one/things/claude/agents/content-team-manager.md +0 -647
  601. package/one/things/claude/agents/content-toc-formatter.md +0 -547
  602. package/one/things/claude/agents/convex-backend-specialist.md +0 -2725
  603. package/one/things/claude/agents/core-manager.md +0 -607
  604. package/one/things/claude/agents/core-master.md +0 -426
  605. package/one/things/claude/agents/cross-functional-manager.md +0 -476
  606. package/one/things/claude/agents/crypto-airdrop-strategist.md +0 -622
  607. package/one/things/claude/agents/crypto-analytics-educator.md +0 -596
  608. package/one/things/claude/agents/crypto-architecture-specialist.md +0 -497
  609. package/one/things/claude/agents/crypto-community-analyst.md +0 -314
  610. package/one/things/claude/agents/crypto-community-psychologist.md +0 -546
  611. package/one/things/claude/agents/crypto-dex-optimization-expert.md +0 -579
  612. package/one/things/claude/agents/crypto-dex-optimizer.md +0 -307
  613. package/one/things/claude/agents/crypto-diamond-formation-specialist.md +0 -552
  614. package/one/things/claude/agents/crypto-diamond-hands.md +0 -307
  615. package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +0 -597
  616. package/one/things/claude/agents/crypto-engagement-specialist.md +0 -581
  617. package/one/things/claude/agents/crypto-market-researcher.md +0 -307
  618. package/one/things/claude/agents/crypto-marketing-orchestrator.md +0 -563
  619. package/one/things/claude/agents/crypto-network-effect-amplifier.md +0 -614
  620. package/one/things/claude/agents/crypto-optimization-analyst.md +0 -597
  621. package/one/things/claude/agents/crypto-strategic-synthesizer.md +0 -556
  622. package/one/things/claude/agents/crypto-team-manager.md +0 -392
  623. package/one/things/claude/agents/crypto-token-analyst.md +0 -319
  624. package/one/things/claude/agents/crypto-viral-content-creator.md +0 -549
  625. package/one/things/claude/agents/crypto-wallet-identification-expert.md +0 -527
  626. package/one/things/claude/agents/crypto-wallet-identifier.md +0 -307
  627. package/one/things/claude/agents/customer-journey-designer.md +0 -474
  628. package/one/things/claude/agents/customer-success-manager.md +0 -574
  629. package/one/things/claude/agents/dev.md +0 -406
  630. package/one/things/claude/agents/documenter.md +0 -548
  631. package/one/things/claude/agents/elevate-marketing-orchestrator.md +0 -403
  632. package/one/things/claude/agents/engagement-specialist.md +0 -502
  633. package/one/things/claude/agents/engineering-architect.md +0 -387
  634. package/one/things/claude/agents/engineering-business-analyst.md +0 -527
  635. package/one/things/claude/agents/engineering-developer.md +0 -386
  636. package/one/things/claude/agents/engineering-director.md +0 -322
  637. package/one/things/claude/agents/engineering-ingestor.md +0 -659
  638. package/one/things/claude/agents/engineering-product-manager.md +0 -525
  639. package/one/things/claude/agents/engineering-product-owner.md +0 -527
  640. package/one/things/claude/agents/engineering-project-coordinator.md +0 -525
  641. package/one/things/claude/agents/engineering-quality-assurance.md +0 -392
  642. package/one/things/claude/agents/engineering-team-manager.md +0 -515
  643. package/one/things/claude/agents/engineering-user-experience.md +0 -386
  644. package/one/things/claude/agents/framework-elevate-manager.md +0 -309
  645. package/one/things/claude/agents/improver.md +0 -805
  646. package/one/things/claude/agents/intelligence-team-manager.md +0 -390
  647. package/one/things/claude/agents/lead-capture-expert.md +0 -459
  648. package/one/things/claude/agents/lead-magnet-creator.md +0 -446
  649. package/one/things/claude/agents/market-research-analyst.md +0 -435
  650. package/one/things/claude/agents/marketing-brand-identity.md +0 -344
  651. package/one/things/claude/agents/marketing-content-hooks.md +0 -455
  652. package/one/things/claude/agents/marketing-content-multiplier.md +0 -331
  653. package/one/things/claude/agents/marketing-content-poster.md +0 -372
  654. package/one/things/claude/agents/marketing-customer-journey.md +0 -331
  655. package/one/things/claude/agents/marketing-director.md +0 -402
  656. package/one/things/claude/agents/marketing-engagement.md +0 -331
  657. package/one/things/claude/agents/marketing-lead-capture.md +0 -331
  658. package/one/things/claude/agents/marketing-lead-magnet.md +0 -331
  659. package/one/things/claude/agents/marketing-network-effects.md +0 -331
  660. package/one/things/claude/agents/marketing-nurture-campaigns.md +0 -331
  661. package/one/things/claude/agents/marketing-share-optimizer.md +0 -331
  662. package/one/things/claude/agents/marketing-team-manager.md +0 -451
  663. package/one/things/claude/agents/marketing-viral-growth.md +0 -232
  664. package/one/things/claude/agents/mission-commander.md +0 -378
  665. package/one/things/claude/agents/network-effect-analyst.md +0 -604
  666. package/one/things/claude/agents/nextjs-15-specialist.md +0 -1634
  667. package/one/things/claude/agents/npx.md +0 -946
  668. package/one/things/claude/agents/nurture-campaign-manager.md +0 -554
  669. package/one/things/claude/agents/one-master.md +0 -378
  670. package/one/things/claude/agents/one-orchestrator.md +0 -345
  671. package/one/things/claude/agents/one.md +0 -658
  672. package/one/things/claude/agents/playbook-generator.md +0 -526
  673. package/one/things/claude/agents/pm.md +0 -349
  674. package/one/things/claude/agents/po.md +0 -370
  675. package/one/things/claude/agents/qa.md +0 -361
  676. package/one/things/claude/agents/research-foundation-analyst.md +0 -324
  677. package/one/things/claude/agents/research-intelligence-gatherer.md +0 -435
  678. package/one/things/claude/agents/research-market-analyst.md +0 -324
  679. package/one/things/claude/agents/research-team-manager.md +0 -489
  680. package/one/things/claude/agents/sales-environment-optimizer.md +0 -519
  681. package/one/things/claude/agents/sales-team-manager.md +0 -407
  682. package/one/things/claude/agents/sales-upsell-strategist.md +0 -324
  683. package/one/things/claude/agents/service-advocacy-campaigns.md +0 -324
  684. package/one/things/claude/agents/service-advocacy-manager.md +0 -324
  685. package/one/things/claude/agents/service-success-manager.md +0 -324
  686. package/one/things/claude/agents/service-team-manager.md +0 -405
  687. package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +0 -2357
  688. package/one/things/claude/agents/share-optimization-specialist.md +0 -576
  689. package/one/things/claude/agents/sm.md +0 -352
  690. package/one/things/claude/agents/story-teller.md +0 -498
  691. package/one/things/claude/agents/task-master.md +0 -621
  692. package/one/things/claude/agents/tauri-cross-platform-specialist.md +0 -1912
  693. package/one/things/claude/agents/tester.md +0 -595
  694. package/one/things/claude/agents/the-bull-character-manager.md +0 -603
  695. package/one/things/claude/agents/tools-playbook-generator.md +0 -492
  696. package/one/things/claude/agents/turbo-repo-builder.md +0 -346
  697. package/one/things/claude/agents/upsell-strategist.md +0 -503
  698. package/one/things/claude/agents/ux-expert.md +0 -360
  699. package/one/things/claude/agents/viral-growth-orchestrator.md +0 -520
  700. package/one/things/claude/claude-code-hooks-development.json +0 -21
  701. package/one/things/claude/claude-code-hooks-production.json +0 -21
  702. package/one/things/claude/claude-code-hooks.json +0 -25
  703. package/one/things/claude/commands/agent.md +0 -124
  704. package/one/things/claude/commands/cascade-status.md +0 -153
  705. package/one/things/claude/commands/ingest.md +0 -343
  706. package/one/things/claude/commands/ingestor.md +0 -158
  707. package/one/things/claude/commands/mission.md +0 -103
  708. package/one/things/claude/commands/npx.md +0 -156
  709. package/one/things/claude/commands/one.md +0 -486
  710. package/one/things/claude/commands/quality-check.md +0 -252
  711. package/one/things/claude/commands/smart-route.md +0 -261
  712. package/one/things/claude/commands/start.md +0 -139
  713. package/one/things/claude/commands/story.md +0 -103
  714. package/one/things/claude/commands/task.md +0 -193
  715. package/one/things/claude/hook-bypass.json +0 -32
  716. package/one/things/claude/hooks/agent-hook-config.json +0 -427
  717. package/one/things/claude/hooks/build-hook.sh +0 -156
  718. package/one/things/claude/hooks/cleanup-hook.sh +0 -201
  719. package/one/things/claude/hooks/file-organization-hook.sh +0 -80
  720. package/one/things/claude/hooks/format-hook.sh +0 -43
  721. package/one/things/claude/hooks/hook-bypass.sh +0 -293
  722. package/one/things/claude/hooks/hook-debouncer.sh +0 -62
  723. package/one/things/claude/hooks/hook-logger.sh +0 -89
  724. package/one/things/claude/hooks/lint-hook.sh +0 -140
  725. package/one/things/claude/hooks/notification-hook.sh +0 -204
  726. package/one/things/claude/hooks/ontology-validation-hook.sh +0 -86
  727. package/one/things/claude/hooks/performance-metrics.json +0 -25
  728. package/one/things/claude/hooks/security-hook.sh +0 -256
  729. package/one/things/claude/hooks/story-validation-hook-enhanced.sh +0 -210
  730. package/one/things/claude/hooks/story-validation-hook.sh +0 -145
  731. package/one/things/claude/hooks/test-hook.sh +0 -145
  732. package/one/things/claude/hooks/test-story-validation.sh +0 -170
  733. package/one/things/claude/settings-local.json +0 -86
  734. package/one/things/cli/cli-code.md +0 -677
  735. package/one/things/cli/cli-compiler-code.md +0 -677
  736. package/one/things/cli/cli.md +0 -871
  737. package/one/things/components/card-shadcn.md +0 -953
  738. package/one/things/components/card.md +0 -1041
  739. package/one/things/components.md +0 -1743
  740. package/one/things/componets.md +0 -19
  741. package/one/things/contracts/Move.toml +0 -12
  742. package/one/things/contracts/README.md +0 -288
  743. package/one/things/contracts/one.move +0 -762
  744. package/one/things/contracts/sdk.ts +0 -578
  745. package/one/things/creator-diagram.md +0 -184
  746. package/one/things/crypto/FEATURES.md +0 -78
  747. package/one/things/crypto/ONECORE.md +0 -62
  748. package/one/things/crypto/ONECOREFAQ.md +0 -22
  749. package/one/things/crypto/ONECOREHOW.md +0 -46
  750. package/one/things/crypto/ONEENTERPRISE.md +0 -64
  751. package/one/things/crypto/ONEENTERPRISEFAQ.md +0 -64
  752. package/one/things/crypto/ONEENTERPRISEHOW.md +0 -53
  753. package/one/things/crypto/ONEPRO.md +0 -60
  754. package/one/things/crypto/ONEPROFAQ.md +0 -22
  755. package/one/things/crypto/ONEPROHOW.md +0 -53
  756. package/one/things/crypto/READMEAGENCY.md +0 -64
  757. package/one/things/crypto/VSL.md +0 -45
  758. package/one/things/crypto/WebsiteCopy.md +0 -176
  759. package/one/things/demo-accessibility-animations.md +0 -1025
  760. package/one/things/demo-components.md +0 -1310
  761. package/one/things/demo-design-summary.md +0 -692
  762. package/one/things/demo-design-system.md +0 -973
  763. package/one/things/demo-page-layouts.md +0 -1016
  764. package/one/things/design-system.md +0 -832
  765. package/one/things/designs/accessibility-audit.md +0 -877
  766. package/one/things/designs/component-specifications.md +0 -855
  767. package/one/things/designs/design-overview.md +0 -377
  768. package/one/things/designs/design-tokens.md +0 -448
  769. package/one/things/designs/wireframes-dashboard.md +0 -710
  770. package/one/things/docs/api-requests.md +0 -987
  771. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +0 -485
  772. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +0 -465
  773. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +0 -425
  774. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +0 -451
  775. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +0 -536
  776. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +0 -650
  777. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +0 -473
  778. package/one/things/docs/ecommerce/QUICK-START.md +0 -405
  779. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +0 -567
  780. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +0 -271
  781. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +0 -171
  782. package/one/things/docs/ecommerce/demo.astro +0 -309
  783. package/one/things/examples/children/lemonade-stand.md +0 -404
  784. package/one/things/examples/enterprise/crm-saas.md +0 -1444
  785. package/one/things/features/1-1-agent-prompts.md +0 -562
  786. package/one/things/features/1-2-yaml-orchestrator.md +0 -548
  787. package/one/things/features/1-3-event-coordination.md +0 -547
  788. package/one/things/features/1-4-knowledge-management.md +0 -652
  789. package/one/things/features/1-5-quality-loops.md +0 -725
  790. package/one/things/features/1-6-numbering-structure.md +0 -639
  791. package/one/things/features/2-1-dataprovider-interface.md +0 -2583
  792. package/one/things/features/2-2-config-system.md +0 -3242
  793. package/one/things/features/2-3-effectts-services.md +0 -1645
  794. package/one/things/features/2-4-react-hooks.md +0 -2136
  795. package/one/things/features/2-5-auth-migration.md +0 -2144
  796. package/one/things/features/2-6-dashboard-migration.md +0 -2084
  797. package/one/things/features/2-7-alternative-providers.md +0 -2578
  798. package/one/things/features/2-7-implementation-report.md +0 -724
  799. package/one/things/features/2-cli.md +0 -1720
  800. package/one/things/features/2-design.md +0 -1770
  801. package/one/things/features/2-tests.md +0 -576
  802. package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +0 -576
  803. package/one/things/features/DECOUPLING.md +0 -290
  804. package/one/things/features/DEPLOYMENT.md +0 -470
  805. package/one/things/features/IMPLEMENTATION_SUMMARY.md +0 -362
  806. package/one/things/features/improve.md +0 -861
  807. package/one/things/features/remove-convex-deps.md +0 -63
  808. package/one/things/features/top-features.md +0 -87
  809. package/one/things/features/use-one-backend.md +0 -1217
  810. package/one/things/features-in-english.md +0 -200
  811. package/one/things/files.yaml +0 -721
  812. package/one/things/ideas/1-create-workflow.md +0 -207
  813. package/one/things/ideas/2-backend-agnostic-frontend.md +0 -439
  814. package/one/things/implementation/backend-guide.md +0 -457
  815. package/one/things/interface.md +0 -257
  816. package/one/things/landing-page-implementation.md +0 -455
  817. package/one/things/legal/README.md +0 -234
  818. package/one/things/legal/privacy-policy.md +0 -1227
  819. package/one/things/legal/terms-of-service.md +0 -1432
  820. package/one/things/master-workflow-plan.md +0 -806
  821. package/one/things/pay.one.ie.md +0 -53
  822. package/one/things/plans/0-in-sync.md +0 -136
  823. package/one/things/plans/0-timeline.md +0 -36
  824. package/one/things/plans/1-create-workflow.md +0 -732
  825. package/one/things/plans/QUICK-START-SIMPLIFICATION.md +0 -333
  826. package/one/things/plans/README-SIMPLIFICATION.md +0 -349
  827. package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +0 -16
  828. package/one/things/plans/SIMPLIFICATION-SUMMARY.md +0 -455
  829. package/one/things/plans/ai-elements-integration.md +0 -483
  830. package/one/things/plans/ai-elements.md +0 -1278
  831. package/one/things/plans/ai-integration-plan.md +0 -263
  832. package/one/things/plans/ai-integration.md +0 -996
  833. package/one/things/plans/ai-sdk.md +0 -798
  834. package/one/things/plans/ai-tools.md +0 -621
  835. package/one/things/plans/app.md +0 -832
  836. package/one/things/plans/architecture-summary.md +0 -312
  837. package/one/things/plans/async-ai-agents.md +0 -233
  838. package/one/things/plans/backend-agnostic-frontend.md +0 -390
  839. package/one/things/plans/backend-cleanup-quickstart.md +0 -380
  840. package/one/things/plans/backend-ontology-conformance.md +0 -475
  841. package/one/things/plans/backend-status.md +0 -599
  842. package/one/things/plans/backend-structure.md +0 -847
  843. package/one/things/plans/backend-target-structure.md +0 -482
  844. package/one/things/plans/backend.md +0 -1175
  845. package/one/things/plans/better-auth-any-backend-revised.md +0 -1103
  846. package/one/things/plans/better-auth-any-backend.md +0 -1896
  847. package/one/things/plans/better-auth-available-features.md +0 -273
  848. package/one/things/plans/big-plan.md +0 -52
  849. package/one/things/plans/cli-updates-required.md +0 -320
  850. package/one/things/plans/complete-step-by-step.md +0 -1409
  851. package/one/things/plans/components.md +0 -709
  852. package/one/things/plans/convex-agents.md +0 -1034
  853. package/one/things/plans/convex-better-auth.md +0 -1141
  854. package/one/things/plans/convex-on-off.md +0 -407
  855. package/one/things/plans/crypto-token-researcher.md +0 -629
  856. package/one/things/plans/data-quality-metrics.md +0 -745
  857. package/one/things/plans/deep-researcher-agent.md +0 -466
  858. package/one/things/plans/deploy-to-cloudflare.md +0 -623
  859. package/one/things/plans/deployment-architecture.md +0 -469
  860. package/one/things/plans/desktop.md +0 -1139
  861. package/one/things/plans/development-plan.md +0 -1283
  862. package/one/things/plans/development-workflow-tldr.md +0 -207
  863. package/one/things/plans/development-workflow.md +0 -959
  864. package/one/things/plans/dsl-claude-code.md +0 -1011
  865. package/one/things/plans/effect-components.md +0 -1743
  866. package/one/things/plans/effect-patterns-reference.md +0 -2235
  867. package/one/things/plans/effect.md +0 -1806
  868. package/one/things/plans/email.md +0 -966
  869. package/one/things/plans/enhance-auth.md +0 -1692
  870. package/one/things/plans/execution-strategy.md +0 -1291
  871. package/one/things/plans/existing-infrastructure.md +0 -712
  872. package/one/things/plans/feature-based-sites.md +0 -894
  873. package/one/things/plans/frontend-effects.md +0 -1276
  874. package/one/things/plans/group-folder-multi-tenancy.md +0 -893
  875. package/one/things/plans/improve-codebase.md +0 -1811
  876. package/one/things/plans/install-components.md +0 -215
  877. package/one/things/plans/integrate-frontend-and-backend.md +0 -603
  878. package/one/things/plans/landing.md +0 -820
  879. package/one/things/plans/layout.md +0 -249
  880. package/one/things/plans/mail-backend.md +0 -1361
  881. package/one/things/plans/mail.md +0 -2677
  882. package/one/things/plans/mcp-clear-context-prompt.md +0 -81
  883. package/one/things/plans/mcp-simple.md +0 -248
  884. package/one/things/plans/multi-ontology-architecture.md +0 -885
  885. package/one/things/plans/next-features.md +0 -114
  886. package/one/things/plans/npx-agent-safety.md +0 -785
  887. package/one/things/plans/npx-agent.md +0 -1089
  888. package/one/things/plans/onboarding.md +0 -51
  889. package/one/things/plans/one-protocol-and-payone-usage.md +0 -82
  890. package/one/things/plans/one.md +0 -677
  891. package/one/things/plans/ontology-6-dimensions.md +0 -2201
  892. package/one/things/plans/ontology-compliance-audit.md +0 -342
  893. package/one/things/plans/ontology-driven-strategy.md +0 -882
  894. package/one/things/plans/ontology-refine.md +0 -586
  895. package/one/things/plans/ontology-ui-approach.md +0 -375
  896. package/one/things/plans/open-agent.md +0 -840
  897. package/one/things/plans/performace.md +0 -122
  898. package/one/things/plans/phase-1-foundation.md +0 -620
  899. package/one/things/plans/phase-3-implementation.md +0 -1037
  900. package/one/things/plans/plan-connect-to-api.md +0 -146
  901. package/one/things/plans/quick-wins.md +0 -1428
  902. package/one/things/plans/r2.md +0 -777
  903. package/one/things/plans/readme-backend-cleanup.md +0 -402
  904. package/one/things/plans/release.md +0 -507
  905. package/one/things/plans/remove-backend-development-from-agents.md +0 -1331
  906. package/one/things/plans/repos.md +0 -98
  907. package/one/things/plans/separate-copy-2.md +0 -1349
  908. package/one/things/plans/separate-copy-3.md +0 -2479
  909. package/one/things/plans/separate-copy.md +0 -1349
  910. package/one/things/plans/separate-demo.md +0 -864
  911. package/one/things/plans/separate.md +0 -1999
  912. package/one/things/plans/sequence.md +0 -2040
  913. package/one/things/plans/shadcn-integration-summary.md +0 -510
  914. package/one/things/plans/sidebar.md +0 -206
  915. package/one/things/plans/skills.md +0 -709
  916. package/one/things/plans/small-fixes.md +0 -23
  917. package/one/things/plans/start-new.md +0 -764
  918. package/one/things/plans/switch-off-auth.md +0 -42
  919. package/one/things/plans/sync-checklist.md +0 -351
  920. package/one/things/plans/test-backend-connection.md +0 -514
  921. package/one/things/plans/unified-implementation-plan.md +0 -934
  922. package/one/things/plans/update-demos.md +0 -581
  923. package/one/things/plans/use-our-backend.md +0 -572
  924. package/one/things/plans/video-backend.md +0 -638
  925. package/one/things/plans/video-frontend.md +0 -490
  926. package/one/things/plans/video-old-archived.md +0 -656
  927. package/one/things/plans/wave1-onboarding-100-inferences.md +0 -1686
  928. package/one/things/plans/wave1-onboarding-vision.md +0 -744
  929. package/one/things/plans/wave1-orchestration-summary.md +0 -604
  930. package/one/things/plans/wave1-specialist-assignments.md +0 -1413
  931. package/one/things/plans/workflow-files.md +0 -1210
  932. package/one/things/plans/workflow.md +0 -1378
  933. package/one/things/plans-u.md +0 -905
  934. package/one/things/products/Blockchain Products.md +0 -6278
  935. package/one/things/products/cascade-landing-page.md +0 -841
  936. package/one/things/products/cascade.md +0 -1568
  937. package/one/things/products/context-engineering.md +0 -1488
  938. package/one/things/products/onthology.md +0 -15
  939. package/one/things/products/ontology-ui-shadcn.md +0 -1302
  940. package/one/things/products/ontology-ui.md +0 -1429
  941. package/one/things/products/ontology.md +0 -789
  942. package/one/things/products/sdk.md +0 -573
  943. package/one/things/promptkit.md +0 -930
  944. package/one/things/repos/all-repos.md +0 -0
  945. package/one/things/scripts-clean-mac.sh +0 -409
  946. package/one/things/service-providers-new.md +0 -1052
  947. package/one/things/service-providers.md +0 -1121
  948. package/one/things/structure.md +0 -532
  949. package/one/things/system.md +0 -618
  950. package/one/things/templates.md +0 -294
  951. package/one/things/tests/2-1-dataprovider-interface.md +0 -1216
  952. package/one/things/tests/2-1-test-analysis.md +0 -544
  953. package/one/things/things.md +0 -384
  954. package/one/things/todo-acp-integration.md +0 -744
  955. package/one/things/todo-ai.md +0 -933
  956. package/one/things/todo-api.md +0 -1078
  957. package/one/things/todo-assignment.md +0 -580
  958. package/one/things/todo-buy-chatgpt.md +0 -1450
  959. package/one/things/todo-components.md +0 -1683
  960. package/one/things/todo-connections.md +0 -278
  961. package/one/things/todo-ecommerce-frontend.md +0 -1313
  962. package/one/things/todo-ecommerce.md +0 -569
  963. package/one/things/todo-effects.md +0 -1075
  964. package/one/things/todo-frontend-effects.md +0 -977
  965. package/one/things/todo-landing-page.md +0 -1091
  966. package/one/things/todo-mail.md +0 -1160
  967. package/one/things/todo-master-plan.md +0 -490
  968. package/one/things/todo-onboard.md +0 -666
  969. package/one/things/todo-one-ie.md +0 -538
  970. package/one/things/todo-page.md +0 -606
  971. package/one/things/todo-plans.md +0 -282
  972. package/one/things/todo-projects.md +0 -241
  973. package/one/things/todo-refactoring-plan.md +0 -366
  974. package/one/things/todo-release.md +0 -654
  975. package/one/things/todo-sequence.md +0 -1621
  976. package/one/things/todo-use-our-backend.md +0 -1908
  977. package/one/things/todo-workflow.md +0 -626
  978. package/one/things/todo-x402.md +0 -2047
  979. package/one/things/todo.md +0 -21
  980. package/one/things/video/scripts-crypto.md +0 -835
  981. package/one/things/video-script-backup.md +0 -318
  982. package/one/things/video-script-demo.md +0 -382
  983. package/one/things/video-script-ontology.md +0 -333
  984. 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