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,1908 +0,0 @@
1
- ---
2
- title: Todo Use Our Backend
3
- dimension: things
4
- primary_dimension: things
5
- category: todo-use-our-backend.md
6
- tags: agent, ai, backend, connections, convex, events, groups, cycle, knowledge, ontology
7
- related_dimensions: connections, events, groups, knowledge, people
8
- scope: global
9
- created: 2025-11-03
10
- updated: 2025-11-03
11
- version: 1.0.0
12
- ai_context: |
13
- This document is part of the things dimension in the todo-use-our-backend.md category.
14
- Location: one/things/todo-use-our-backend.md
15
- Purpose: Documents backend api service - 100 cycle todo list
16
- Related dimensions: connections, events, groups, knowledge, people
17
- For AI agents: Read this to understand todo use our backend.
18
- ---
19
-
20
- # Backend API Service - 100 Cycle Todo List
21
-
22
- **Feature:** External API Access to ONE Platform Backend
23
- **Status:** Planning Complete → Ready for Execution
24
- **Created:** 2025-10-30
25
-
26
- ## Overview
27
-
28
- This document tracks all 100 cycles for implementing the Backend-as-a-Service feature, allowing external developers to consume the ONE Platform backend via API keys with full 6-dimension ontology access and multi-tenant group isolation.
29
-
30
- ---
31
-
32
- ## Foundation Phase (Cycle 1-10)
33
-
34
- **Agent:** agent-director
35
- **Goal:** Validate idea, map to ontology, create execution plan
36
-
37
- ### ✅ Cycle 1: Validate Idea Against 6-Dimension Ontology
38
-
39
- **Status:** ✅ Complete
40
- **Task:** Ensure API service maps cleanly to Groups, People, Things, Connections, Events, Knowledge
41
- **Validation:**
42
-
43
- - Groups: Multi-tenant isolation per API consumer ✅
44
- - People: Service accounts and API key owners ✅
45
- - Things: api_key, api_application, service_account, api_quota entities ✅
46
- - Connections: owns_api_key, authenticated_by, has_quota ✅
47
- - Events: api_request_made, api_key_generated, quota_exceeded ✅
48
- - Knowledge: API docs via RAG, error message search ✅
49
-
50
- ### ✅ Cycle 2: Map Entity Types
51
-
52
- **Status:** ✅ Complete
53
- **New Entity Types:**
54
-
55
- - `api_key` - Credentials with scopes and rate limits
56
- - `api_application` - Registered app consuming API
57
- - `api_quota` - Usage limits by billing tier
58
- - `service_account` - Non-human actor for API requests
59
-
60
- **Existing Entity Types Accessible:**
61
-
62
- - All 66+ entity types available through authenticated endpoints
63
-
64
- ### ✅ Cycle 3: Identify Connection Types
65
-
66
- **Status:** ✅ Complete
67
- **New Connection Types:**
68
-
69
- - `owns_api_key` - person → api_key
70
- - `authenticated_by` - api_application → api_key
71
- - `belongs_to_org` - api_application → group
72
- - `has_quota` - api_application → api_quota
73
-
74
- ### ✅ Cycle 4: List Event Types
75
-
76
- **Status:** ✅ Complete
77
- **New Event Types:**
78
-
79
- - `api_key_generated` - New key created
80
- - `api_key_revoked` - Key invalidated
81
- - `api_request_made` - Every API call logged
82
- - `quota_exceeded` - Rate limit hit
83
- - `api_auth_failed` - Invalid key used
84
- - `api_application_registered` - New app registered
85
-
86
- ### ✅ Cycle 5: Determine Knowledge Requirements
87
-
88
- **Status:** ✅ Complete
89
- **Knowledge Dimension Usage:**
90
-
91
- - API documentation searchable via RAG
92
- - Error messages semantically indexed
93
- - Usage pattern learning for UX improvements
94
- - Auto-completion suggestions based on context
95
-
96
- ### ✅ Cycle 6: Identify Organization Scope
97
-
98
- **Status:** ✅ Complete
99
- **Multi-Tenant Strategy:**
100
-
101
- - Each API consumer = top-level group (organization)
102
- - Hierarchical sub-groups allowed for nested tenancy
103
- - All API requests automatically scoped to authenticated org's groupId
104
- - Complete data isolation enforced by schema
105
-
106
- ### ✅ Cycle 7: Define People Roles
107
-
108
- **Status:** ✅ Complete
109
- **Roles:**
110
-
111
- - `api_consumer` - External developer with org_owner role
112
- - `service_account` - Non-human actor representing API application
113
- - Permissions: read-only, read-write, admin (via API key scopes)
114
-
115
- ### ✅ Cycle 8: Create Vision Document
116
-
117
- **Status:** ✅ Complete
118
- **Deliverable:** `/one/things/plans/use-our-backend.md`
119
- **Content:** Executive summary, architecture, implementation phases, success metrics
120
-
121
- ### ✅ Cycle 9: Break Down Features
122
-
123
- **Status:** ✅ Complete
124
- **10 Major Components:**
125
-
126
- 1. API Key Generation & Management
127
- 2. Authentication Middleware
128
- 3. Group Scoping & Isolation
129
- 4. Rate Limiting & Quotas
130
- 5. Public API Gateway
131
- 6. Admin UI for Key Management
132
- 7. Developer Documentation Portal
133
- 8. Usage Analytics Dashboard
134
- 9. SDKs (JS, Python, Go, Ruby)
135
- 10. Monitoring & Operations
136
-
137
- ### ✅ Cycle 10: Create 100-Cycle Plan
138
-
139
- **Status:** ✅ Complete
140
- **Deliverable:** This file (`/one/things/todo-use-our-backend.md`)
141
-
142
- ---
143
-
144
- ## Backend Phase: Schema Design (Cycle 11-15)
145
-
146
- **Agent:** agent-backend
147
- **Goal:** Design database schema for API entities
148
-
149
- ### ⏳ Cycle 11: Extend Things Schema with API Entity Types
150
-
151
- **Status:** Pending
152
- **Dependencies:** Cycle 1-10 (Foundation complete)
153
- **Task:** Add entity type definitions for api_key, api_application, service_account, api_quota
154
- **File:** `backend/convex/schema.ts`
155
- **Acceptance Criteria:**
156
-
157
- - [ ] `api_key` type with properties: key (hashed), prefix, organizationId, scopes, rateLimit
158
- - [ ] `api_application` type with properties: name, description, webhookUrl, redirectUris
159
- - [ ] `service_account` type with properties: applicationId, permissions
160
- - [ ] `api_quota` type with properties: tier (starter/pro/enterprise), limits, usage stats
161
- - [ ] All types inherit base fields: \_id, type, name, properties, status, groupId, createdAt, updatedAt
162
-
163
- ### ⏳ Cycle 12: Add Database Indexes for API Key Lookup
164
-
165
- **Status:** Pending
166
- **Dependencies:** Cycle 11
167
- **Task:** Create indexes for fast API key validation and lookup
168
- **File:** `backend/convex/schema.ts`
169
- **Acceptance Criteria:**
170
-
171
- - [ ] Index on `things.type` + `things.properties.key` for O(log n) key lookup
172
- - [ ] Index on `things.type` + `things.properties.organizationId` for org queries
173
- - [ ] Index on `things.type` + `things.status` for active key filtering
174
- - [ ] Index on `things.properties.expiresAt` for expired key cleanup
175
-
176
- ### ⏳ Cycle 13: Design Connection Types for API Relationships
177
-
178
- **Status:** Pending
179
- **Dependencies:** Cycle 11
180
- **Task:** Add connection type definitions for API entity relationships
181
- **File:** `backend/convex/schema.ts`
182
- **Acceptance Criteria:**
183
-
184
- - [ ] `owns_api_key` connection (person → api_key)
185
- - [ ] `authenticated_by` connection (api_application → api_key)
186
- - [ ] `belongs_to_org` connection (api_application → group)
187
- - [ ] `has_quota` connection (api_application → api_quota)
188
- - [ ] All connections include bidirectional fields, validFrom/validTo, groupId
189
-
190
- ### ⏳ Cycle 14: Plan Event Types for API Audit Trail
191
-
192
- **Status:** Pending
193
- **Dependencies:** Cycle 11
194
- **Task:** Define event schemas for API operations
195
- **File:** `backend/convex/schema.ts`
196
- **Acceptance Criteria:**
197
-
198
- - [ ] `api_key_generated` event with metadata: keyId, scopes, expiresAt
199
- - [ ] `api_key_revoked` event with metadata: keyId, reason
200
- - [ ] `api_request_made` event with metadata: endpoint, method, statusCode, latency, payloadSize, ipAddress
201
- - [ ] `quota_exceeded` event with metadata: keyId, limitType (minute/day), attempted
202
- - [ ] `api_auth_failed` event with metadata: keyPrefix, reason, ipAddress
203
- - [ ] `api_application_registered` event with metadata: applicationId, initialScopes
204
-
205
- ### ⏳ Cycle 15: Create Schema Migration Strategy
206
-
207
- **Status:** Pending
208
- **Dependencies:** Cycle 11-14
209
- **Task:** Plan backward-compatible schema changes
210
- **File:** `backend/convex/migrations/add-api-entities.ts`
211
- **Acceptance Criteria:**
212
-
213
- - [ ] Migration script to add new entity types without downtime
214
- - [ ] Validation that existing data not affected
215
- - [ ] Rollback plan if migration fails
216
- - [ ] Migration tested on development environment
217
-
218
- ---
219
-
220
- ## Backend Phase: Authentication Service (Cycle 16-20)
221
-
222
- **Agent:** agent-backend
223
- **Goal:** Implement API key generation, validation, and scoping
224
-
225
- ### ⏳ Cycle 16: Implement API Key Generation
226
-
227
- **Status:** Pending
228
- **Dependencies:** Cycle 15 (Schema ready)
229
- **Task:** Create secure API key generation service
230
- **File:** `backend/convex/mutations/api-keys.ts`
231
- **Acceptance Criteria:**
232
-
233
- - [ ] Generate cryptographically secure keys (32+ bytes entropy)
234
- - [ ] Key format: `org_{orgId}_key_{random}` for easy identification
235
- - [ ] Hash keys before storage (bcrypt or Argon2)
236
- - [ ] Store only prefix in plaintext for display
237
- - [ ] Return full key only once at creation
238
- - [ ] Validate no key collisions
239
-
240
- **Example:**
241
-
242
- ```typescript
243
- export const generateApiKey = mutation({
244
- args: {
245
- name: v.string(),
246
- scopes: v.array(v.string()),
247
- expiresAt: v.optional(v.number()),
248
- },
249
- handler: async (ctx, args) => {
250
- // Generate key, hash, store, return once
251
- },
252
- });
253
- ```
254
-
255
- ### ⏳ Cycle 17: Create API Key Validation Middleware
256
-
257
- **Status:** Pending
258
- **Dependencies:** Cycle 16
259
- **Task:** Build middleware to validate API keys on every request
260
- **File:** `backend/convex/lib/api-auth.ts`
261
- **Acceptance Criteria:**
262
-
263
- - [ ] Extract API key from Authorization header (`Bearer {key}`)
264
- - [ ] Hash incoming key and compare with stored hash
265
- - [ ] Verify key status is `active` (not revoked/expired)
266
- - [ ] Check expiration timestamp if set
267
- - [ ] Update `lastUsedAt` field on successful auth
268
- - [ ] Return 401 Unauthorized for invalid keys
269
- - [ ] Log authentication failures as events
270
-
271
- **Example:**
272
-
273
- ```typescript
274
- export async function validateApiKey(
275
- ctx: QueryCtx | MutationCtx,
276
- apiKey: string,
277
- ): Promise<{ organizationId: Id<"groups">; scopes: string[] }> {
278
- // Validate and return org + scopes
279
- }
280
- ```
281
-
282
- ### ⏳ Cycle 18: Build Scope Verification System
283
-
284
- **Status:** Pending
285
- **Dependencies:** Cycle 17
286
- **Task:** Implement fine-grained permission checking based on API key scopes
287
- **File:** `backend/convex/lib/api-auth.ts`
288
- **Acceptance Criteria:**
289
-
290
- - [ ] Define scope hierarchy (e.g., `entities:write` implies `entities:read`)
291
- - [ ] Check required scopes before allowing operations
292
- - [ ] Return 403 Forbidden for insufficient scopes
293
- - [ ] Support wildcard scopes (e.g., `entities:*` for all entity operations)
294
- - [ ] Log scope violations as events
295
-
296
- **Available Scopes:**
297
-
298
- - `entities:read`, `entities:write`, `entities:delete`
299
- - `connections:read`, `connections:write`, `connections:delete`
300
- - `events:read`, `events:write`
301
- - `knowledge:read`, `knowledge:write`
302
- - `groups:read`, `groups:write`
303
- - `api_keys:manage`, `quota:view`
304
-
305
- ### ⏳ Cycle 19: Add Rate Limiting
306
-
307
- **Status:** Pending
308
- **Dependencies:** Cycle 17
309
- **Task:** Implement rate limiting per API key using @convex-dev/rate-limiter
310
- **File:** `backend/convex/lib/rate-limit.ts`
311
- **Acceptance Criteria:**
312
-
313
- - [ ] Install `@convex-dev/rate-limiter` package
314
- - [ ] Implement per-minute rate limit (60 req/min for starter)
315
- - [ ] Implement per-day rate limit (10,000 req/day for starter)
316
- - [ ] Return 429 Too Many Requests when exceeded
317
- - [ ] Include `Retry-After` header with reset time
318
- - [ ] Log quota_exceeded events
319
- - [ ] Different limits per tier (starter/pro/enterprise)
320
-
321
- **Example:**
322
-
323
- ```typescript
324
- const rateLimiter = new RateLimiter(ctx.db, {
325
- minute: { kind: "fixed window", rate: 60 },
326
- day: { kind: "fixed window", rate: 10000 },
327
- });
328
-
329
- await rateLimiter.limit(ctx, `api_key:${keyId}`);
330
- ```
331
-
332
- ### ⏳ Cycle 20: Implement Key Rotation Mechanism
333
-
334
- **Status:** Pending
335
- **Dependencies:** Cycle 16-19
336
- **Task:** Allow users to rotate API keys without downtime
337
- **File:** `backend/convex/mutations/api-keys.ts`
338
- **Acceptance Criteria:**
339
-
340
- - [ ] `rotateApiKey` mutation creates new key, marks old as `rotating`
341
- - [ ] Grace period (e.g., 24 hours) where both keys valid
342
- - [ ] After grace period, old key automatically revoked
343
- - [ ] Email notification before old key expires
344
- - [ ] Log key rotation events
345
-
346
- ---
347
-
348
- ## Backend Phase: Group Scoping Service (Cycle 21-25)
349
-
350
- **Agent:** agent-backend
351
- **Goal:** Ensure complete multi-tenant data isolation
352
-
353
- ### ⏳ Cycle 21: Create Automatic GroupId Injection Middleware
354
-
355
- **Status:** Pending
356
- **Dependencies:** Cycle 17 (API key validation complete)
357
- **Task:** Automatically scope all API requests to authenticated organization's groupId
358
- **File:** `backend/convex/lib/group-scoping.ts`
359
- **Acceptance Criteria:**
360
-
361
- - [ ] Extract organizationId from validated API key
362
- - [ ] Inject `groupId: organizationId` into all mutations/queries
363
- - [ ] Prevent clients from overriding groupId
364
- - [ ] Throw error if groupId mismatch detected
365
- - [ ] Log attempted unauthorized access
366
-
367
- **Example:**
368
-
369
- ```typescript
370
- export function withGroupScoping<T>(
371
- handler: (
372
- ctx: MutationCtx,
373
- args: T & { groupId: Id<"groups"> },
374
- ) => Promise<any>,
375
- ) {
376
- return async (ctx: MutationCtx, args: T) => {
377
- const { organizationId } = await validateApiKey(ctx, getAuthHeader(ctx));
378
- return handler(ctx, { ...args, groupId: organizationId });
379
- };
380
- }
381
- ```
382
-
383
- ### ⏳ Cycle 22: Implement Organization Isolation Checks
384
-
385
- **Status:** Pending
386
- **Dependencies:** Cycle 21
387
- **Task:** Verify queries/mutations only access data within authenticated organization
388
- **File:** `backend/convex/lib/group-scoping.ts`
389
- **Acceptance Criteria:**
390
-
391
- - [ ] All `ctx.db.query()` calls filtered by groupId
392
- - [ ] Cross-group queries explicitly blocked
393
- - [ ] Read operations verify entity belongs to authorized group
394
- - [ ] Write operations enforce groupId constraint
395
- - [ ] Delete operations verify ownership before deletion
396
-
397
- ### ⏳ Cycle 23: Build Hierarchical Group Access Rules
398
-
399
- **Status:** Pending
400
- **Dependencies:** Cycle 22
401
- **Task:** Allow parent groups to access child group data (configurable)
402
- **File:** `backend/convex/lib/group-scoping.ts`
403
- **Acceptance Criteria:**
404
-
405
- - [ ] Implement `canAccessGroup(actorGroupId, targetGroupId)` function
406
- - [ ] Walk group hierarchy tree (parentGroupId references)
407
- - [ ] Cache hierarchy lookups for performance
408
- - [ ] Respect group settings (`allowParentAccess` boolean)
409
- - [ ] Log hierarchical access attempts
410
-
411
- ### ⏳ Cycle 24: Add Cross-Group Query Prevention
412
-
413
- **Status:** Pending
414
- **Dependencies:** Cycle 23
415
- **Task:** Prevent accidental data leakage via joins/relationships
416
- **File:** `backend/convex/lib/group-scoping.ts`
417
- **Acceptance Criteria:**
418
-
419
- - [ ] Verify all connection endpoints belong to same group
420
- - [ ] Prevent event queries from crossing group boundaries
421
- - [ ] Filter knowledge search results by groupId
422
- - [ ] Validate webhook payloads don't leak cross-group data
423
- - [ ] Add integration tests for isolation
424
-
425
- ### ⏳ Cycle 25: Implement Audit Logging for API Requests
426
-
427
- **Status:** Pending
428
- **Dependencies:** Cycle 21-24
429
- **Task:** Log every API request as an event for security and analytics
430
- **File:** `backend/convex/lib/api-audit.ts`
431
- **Acceptance Criteria:**
432
-
433
- - [ ] Log `api_request_made` event with full metadata
434
- - [ ] Include: timestamp, endpoint, method, statusCode, latency, payloadSize, ipAddress, userAgent
435
- - [ ] Async logging (don't block requests)
436
- - [ ] Retention policy (30 days for starter, 1 year for enterprise)
437
- - [ ] Export API for audit log retrieval
438
-
439
- ---
440
-
441
- ## Backend Phase: API Gateway Layer (Cycle 26-30)
442
-
443
- **Agent:** agent-backend
444
- **Goal:** Create public REST-style endpoints over Convex HTTP
445
-
446
- ### ⏳ Cycle 26: Create Public API Endpoints
447
-
448
- **Status:** Pending
449
- **Dependencies:** Cycle 25 (Auth & scoping complete)
450
- **Task:** Implement RESTful HTTP endpoints for all operations
451
- **File:** `backend/convex/http.ts`
452
- **Acceptance Criteria:**
453
-
454
- - [ ] `POST /api/v1/entities` - Create entity
455
- - [ ] `GET /api/v1/entities/:id` - Get entity by ID
456
- - [ ] `GET /api/v1/entities?type={type}` - List entities by type
457
- - [ ] `PATCH /api/v1/entities/:id` - Update entity
458
- - [ ] `DELETE /api/v1/entities/:id` - Delete entity
459
- - [ ] Same pattern for connections, events, groups
460
- - [ ] All endpoints use API key authentication
461
- - [ ] All endpoints return JSON
462
-
463
- **Example:**
464
-
465
- ```typescript
466
- const http = httpRouter();
467
-
468
- http.route({
469
- path: "/api/v1/entities",
470
- method: "POST",
471
- handler: httpAction(async (ctx, request) => {
472
- const apiKey = extractApiKey(request);
473
- const { organizationId, scopes } = await validateApiKey(ctx, apiKey);
474
-
475
- const body = await request.json();
476
- const entityId = await ctx.runMutation(internal.mutations.entities.create, {
477
- ...body,
478
- groupId: organizationId,
479
- });
480
-
481
- return new Response(JSON.stringify({ id: entityId }), {
482
- status: 201,
483
- headers: { "Content-Type": "application/json" },
484
- });
485
- }),
486
- });
487
- ```
488
-
489
- ### ⏳ Cycle 27: Implement Request/Response Transformers
490
-
491
- **Status:** Pending
492
- **Dependencies:** Cycle 26
493
- **Task:** Transform Convex native types to/from JSON for HTTP
494
- **File:** `backend/convex/lib/transformers.ts`
495
- **Acceptance Criteria:**
496
-
497
- - [ ] Convert Convex Id types to strings in responses
498
- - [ ] Parse string IDs back to Id types in requests
499
- - [ ] Handle Date objects (timestamps ↔ ISO 8601 strings)
500
- - [ ] Transform `properties` field (preserve arbitrary JSON)
501
- - [ ] Validate request schemas (return 400 Bad Request for invalid)
502
-
503
- ### ⏳ Cycle 28: Add Error Handling with HTTP Status Codes
504
-
505
- **Status:** Pending
506
- **Dependencies:** Cycle 26
507
- **Task:** Map errors to appropriate HTTP status codes with helpful messages
508
- **File:** `backend/convex/lib/error-handler.ts`
509
- **Acceptance Criteria:**
510
-
511
- - [ ] 400 Bad Request - Invalid input/schema validation failed
512
- - [ ] 401 Unauthorized - Missing or invalid API key
513
- - [ ] 403 Forbidden - Insufficient scopes/permissions
514
- - [ ] 404 Not Found - Entity doesn't exist or not in org
515
- - [ ] 429 Too Many Requests - Rate limit exceeded
516
- - [ ] 500 Internal Server Error - Unexpected errors
517
- - [ ] Include error code and message in response body
518
- - [ ] Log all 500 errors to Sentry
519
-
520
- **Example Response:**
521
-
522
- ```json
523
- {
524
- "error": {
525
- "code": "INSUFFICIENT_SCOPES",
526
- "message": "API key requires 'entities:write' scope",
527
- "statusCode": 403
528
- }
529
- }
530
- ```
531
-
532
- ### ⏳ Cycle 29: Build Response Pagination System
533
-
534
- **Status:** Pending
535
- **Dependencies:** Cycle 26
536
- **Task:** Add cursor-based pagination for list endpoints
537
- **File:** `backend/convex/lib/pagination.ts`
538
- **Acceptance Criteria:**
539
-
540
- - [ ] Accept `limit` query param (default 50, max 1000)
541
- - [ ] Accept `cursor` query param for next page
542
- - [ ] Return `nextCursor` in response if more results exist
543
- - [ ] Use Convex paginate() for efficient queries
544
- - [ ] Document pagination in API reference
545
-
546
- **Example Response:**
547
-
548
- ```json
549
- {
550
- "data": [...],
551
- "pagination": {
552
- "nextCursor": "abc123...",
553
- "hasMore": true,
554
- "totalCount": 150
555
- }
556
- }
557
- ```
558
-
559
- ### ⏳ Cycle 30: Create Webhook Delivery System
560
-
561
- **Status:** Pending
562
- **Dependencies:** Cycle 26-29
563
- **Task:** Deliver events to customer webhooks in real-time
564
- **File:** `backend/convex/lib/webhooks.ts`
565
- **Acceptance Criteria:**
566
-
567
- - [ ] Accept webhook URL during API application registration
568
- - [ ] Verify webhook endpoint (send test event on registration)
569
- - [ ] Deliver events matching subscription filters
570
- - [ ] Retry failed deliveries (exponential backoff, max 3 retries)
571
- - [ ] Sign webhook payloads (HMAC-SHA256)
572
- - [ ] Log delivery attempts and failures
573
- - [ ] Provide webhook logs in dashboard
574
-
575
- ---
576
-
577
- ## Frontend Phase: API Keys Management Page (Cycle 31-35)
578
-
579
- **Agent:** agent-frontend
580
- **Goal:** UI for developers to manage API keys
581
-
582
- ### ⏳ Cycle 31: Design API Keys Management Page Wireframe
583
-
584
- **Status:** Pending
585
- **Dependencies:** Cycle 30 (Backend API complete)
586
- **Task:** Create wireframe satisfying user stories
587
- **File:** `one/things/wireframes/api-keys-page.md`
588
- **Acceptance Criteria:**
589
-
590
- - [ ] User story: "As a developer, I want to generate API keys to access the backend"
591
- - [ ] Page layout: Header, key list table, "Generate Key" button
592
- - [ ] Table columns: Name, Prefix, Scopes, Created, Last Used, Actions
593
- - [ ] Actions: Copy key (if just created), Revoke, Edit scopes
594
- - [ ] Responsive design (mobile + desktop)
595
-
596
- ### ⏳ Cycle 32: Implement Key Generation UI
597
-
598
- **Status:** Pending
599
- **Dependencies:** Cycle 31
600
- **Task:** Build modal/form for creating new API keys
601
- **File:** `web/src/components/features/api-keys/GenerateKeyModal.tsx`
602
- **Acceptance Criteria:**
603
-
604
- - [ ] Form fields: Name (required), Scopes (checkboxes), Expiration (optional)
605
- - [ ] Show scope descriptions on hover
606
- - [ ] Warn about scope implications (e.g., "entities:delete is destructive")
607
- - [ ] On success, show full key ONCE in copyable format
608
- - [ ] Alert user: "Save this key now. You won't see it again."
609
- - [ ] Automatically copy to clipboard
610
- - [ ] Close modal after key saved/copied
611
-
612
- ### ⏳ Cycle 33: Create Key Listing with Usage Stats
613
-
614
- **Status:** Pending
615
- **Dependencies:** Cycle 32
616
- **Task:** Display all API keys with usage information
617
- **File:** `web/src/components/features/api-keys/ApiKeyList.tsx`
618
- **Acceptance Criteria:**
619
-
620
- - [ ] Fetch keys using Convex query (`api.queries.apiKeys.list`)
621
- - [ ] Show key prefix (first 8 chars) + "..." for identification
622
- - [ ] Display creation date (relative: "2 days ago")
623
- - [ ] Display last used date (or "Never used")
624
- - [ ] Show scopes as badges (e.g., "entities:read", "connections:write")
625
- - [ ] Color-code status: green (active), red (revoked), yellow (expiring soon)
626
- - [ ] Loading skeleton while fetching
627
-
628
- ### ⏳ Cycle 34: Add Key Revocation Interface
629
-
630
- **Status:** Pending
631
- **Dependencies:** Cycle 33
632
- **Task:** Allow users to revoke API keys with confirmation
633
- **File:** `web/src/components/features/api-keys/RevokeKeyDialog.tsx`
634
- **Acceptance Criteria:**
635
-
636
- - [ ] "Revoke" button in key list table
637
- - [ ] Confirmation dialog: "This action cannot be undone. Revoke {keyName}?"
638
- - [ ] Optional revocation reason (dropdown: "Compromised", "Rotation", "No longer needed")
639
- - [ ] Call `api.mutations.apiKeys.revoke` on confirm
640
- - [ ] Show success toast: "API key revoked"
641
- - [ ] Update key list (mark as revoked, gray out)
642
-
643
- ### ⏳ Cycle 35: Show Last Used Timestamp and IP
644
-
645
- **Status:** Pending
646
- **Dependencies:** Cycle 33
647
- **Task:** Display detailed usage info for security monitoring
648
- **File:** `web/src/components/features/api-keys/ApiKeyDetails.tsx`
649
- **Acceptance Criteria:**
650
-
651
- - [ ] Click key row to expand details panel
652
- - [ ] Show: Last used timestamp, IP address, User agent, Request count (last 24h)
653
- - [ ] Link to full audit log for this key
654
- - [ ] Show geographic location from IP (optional, using API)
655
- - [ ] Alert if IP changed recently (potential compromise)
656
-
657
- ---
658
-
659
- ## Frontend Phase: API Documentation Portal (Cycle 36-40)
660
-
661
- **Agent:** agent-frontend
662
- **Goal:** Interactive docs for developers
663
-
664
- ### ⏳ Cycle 36: Design Documentation Portal Wireframe
665
-
666
- **Status:** Pending
667
- **Dependencies:** Cycle 30 (Backend API complete)
668
- **Task:** Create wireframe for API docs site
669
- **File:** `one/things/wireframes/api-docs-portal.md`
670
- **Acceptance Criteria:**
671
-
672
- - [ ] Layout: Sidebar (navigation), Main content (docs), Right panel ("Try It" console)
673
- - [ ] Sections: Getting Started, Authentication, Entities, Connections, Events, Errors
674
- - [ ] Search bar (semantic search via RAG)
675
- - [ ] Code examples in multiple languages (tabs for JS/Python/Go/Ruby)
676
- - [ ] Responsive (collapsible sidebar on mobile)
677
-
678
- ### ⏳ Cycle 37: Implement Interactive API Explorer
679
-
680
- **Status:** Pending
681
- **Dependencies:** Cycle 36
682
- **Task:** Build "Try It" console for testing endpoints
683
- **File:** `web/src/components/features/docs/ApiExplorer.tsx`
684
- **Acceptance Criteria:**
685
-
686
- - [ ] Endpoint selector (dropdown: POST /api/v1/entities, GET /api/v1/entities/:id, etc.)
687
- - [ ] Request builder: Headers (auto-fill API key), Body (JSON editor with syntax highlighting)
688
- - [ ] "Send Request" button
689
- - [ ] Response viewer: Status code, headers, body (formatted JSON)
690
- - [ ] Error handling (show 401/403/429 with explanations)
691
- - [ ] Save request as cURL command
692
- - [ ] Generate code snippet in selected language
693
-
694
- ### ⏳ Cycle 38: Add Code Examples in 5+ Languages
695
-
696
- **Status:** Pending
697
- **Dependencies:** Cycle 36
698
- **Task:** Provide copy-pasteable examples for common operations
699
- **File:** `web/src/content/docs/code-examples/`
700
- **Acceptance Criteria:**
701
-
702
- - [ ] Examples for: Authentication, Create entity, List entities, Update entity, Delete entity
703
- - [ ] Languages: JavaScript/TypeScript, Python, Go, Ruby, cURL
704
- - [ ] Use syntax highlighting (Prism.js or Shiki)
705
- - [ ] "Copy" button for each example
706
- - [ ] Examples use placeholder values (API_KEY, ORG_ID) with tooltips explaining replacement
707
-
708
- **Example (JavaScript):**
709
-
710
- ```javascript
711
- import { OneClient } from "@one-platform/sdk";
712
-
713
- const client = new OneClient({
714
- apiKey: "YOUR_API_KEY",
715
- organizationId: "YOUR_ORG_ID",
716
- });
717
-
718
- const course = await client.entities.create({
719
- type: "course",
720
- name: "Introduction to AI",
721
- properties: {
722
- description: "Learn AI fundamentals",
723
- price: 49.99,
724
- },
725
- });
726
- ```
727
-
728
- ### ⏳ Cycle 39: Show Real-Time Usage Stats in Docs
729
-
730
- **Status:** Pending
731
- **Dependencies:** Cycle 37
732
- **Task:** Display live API status and usage metrics
733
- **File:** `web/src/components/features/docs/ApiStatus.tsx`
734
- **Acceptance Criteria:**
735
-
736
- - [ ] Status indicator: "All Systems Operational" (green) or "Degraded Performance" (yellow)
737
- - [ ] Current requests/minute (personal usage)
738
- - [ ] Quota consumption: "2,450 / 10,000 requests today (24%)"
739
- - [ ] Latency stats: "Average response time: 120ms"
740
- - [ ] Link to full analytics dashboard
741
- - [ ] Auto-refresh every 30 seconds
742
-
743
- ### ⏳ Cycle 40: Add Error Code Reference
744
-
745
- **Status:** Pending
746
- **Dependencies:** Cycle 36
747
- **Task:** Comprehensive error documentation with solutions
748
- **File:** `web/src/content/docs/error-codes.md`
749
- **Acceptance Criteria:**
750
-
751
- - [ ] List all error codes (INVALID_API_KEY, INSUFFICIENT_SCOPES, QUOTA_EXCEEDED, etc.)
752
- - [ ] For each: HTTP status, description, common causes, solutions
753
- - [ ] Searchable (Ctrl+F friendly)
754
- - [ ] Link from error responses in API Explorer
755
-
756
- **Example:**
757
-
758
- ```markdown
759
- ### INSUFFICIENT_SCOPES (403)
760
-
761
- **Description:** Your API key does not have the required permissions.
762
-
763
- **Common Causes:**
764
-
765
- - Attempting to write data with a read-only key
766
- - Missing scope for specific resource type
767
-
768
- **Solution:**
769
-
770
- 1. Go to API Keys page
771
- 2. Edit key scopes or generate new key with required permissions
772
- 3. Required scope for this operation: `entities:write`
773
- ```
774
-
775
- ---
776
-
777
- ## Frontend Phase: Usage Dashboard (Cycle 41-45)
778
-
779
- **Agent:** agent-frontend
780
- **Goal:** Analytics and monitoring for API consumers
781
-
782
- ### ⏳ Cycle 41: Design Usage Dashboard Wireframe
783
-
784
- **Status:** Pending
785
- **Dependencies:** Cycle 30 (Backend API complete)
786
- **Task:** Create wireframe for analytics page
787
- **File:** `one/things/wireframes/usage-dashboard.md`
788
- **Acceptance Criteria:**
789
-
790
- - [ ] Layout: Top metrics cards, Charts section, Recent requests table
791
- - [ ] Metrics: Total requests (24h), Average latency, Error rate, Quota usage
792
- - [ ] Charts: Requests over time (line), Top endpoints (bar), Status codes (pie), Latency distribution (histogram)
793
- - [ ] Date range selector (Last 24h, 7 days, 30 days, Custom)
794
- - [ ] Responsive design
795
-
796
- ### ⏳ Cycle 42: Show Quota Consumption with Progress Bars
797
-
798
- **Status:** Pending
799
- **Dependencies:** Cycle 41
800
- **Task:** Visual representation of usage limits
801
- **File:** `web/src/components/features/analytics/QuotaUsage.tsx`
802
- **Acceptance Criteria:**
803
-
804
- - [ ] Per-minute quota: "45 / 60 requests (75%)" with progress bar
805
- - [ ] Per-day quota: "2,450 / 10,000 requests (24%)" with progress bar
806
- - [ ] Color-coded: Green (<50%), Yellow (50-80%), Red (>80%)
807
- - [ ] Show time until reset ("Resets in 15 minutes")
808
- - [ ] Warning if nearing limit: "You've used 90% of your daily quota"
809
-
810
- ### ⏳ Cycle 43: Add Billing Projection
811
-
812
- **Status:** Pending
813
- **Dependencies:** Cycle 42
814
- **Task:** Estimate costs based on current usage trends
815
- **File:** `web/src/components/features/analytics/BillingProjection.tsx`
816
- **Acceptance Criteria:**
817
-
818
- - [ ] Calculate: (Current daily average) \* 30 = Monthly projection
819
- - [ ] Show projected requests for month
820
- - [ ] Recommend tier upgrade if over limit: "Projected usage: 450K requests/month. Consider upgrading to Pro (100K → 1M requests)"
821
- - [ ] Chart: Usage trend (last 30 days) + forecast (next 30 days)
822
- - [ ] Link to billing/upgrade page
823
-
824
- ### ⏳ Cycle 44: Create Alert Configuration UI
825
-
826
- **Status:** Pending
827
- **Dependencies:** Cycle 42
828
- **Task:** Let users set up usage alerts
829
- **File:** `web/src/components/features/analytics/AlertConfig.tsx`
830
- **Acceptance Criteria:**
831
-
832
- - [ ] Alert types: Quota threshold (%), Error rate threshold (%), Latency threshold (ms)
833
- - [ ] Notification channels: Email, Webhook, SMS (future)
834
- - [ ] Thresholds: "Notify me when quota reaches 80%"
835
- - [ ] Test alert button (send sample notification)
836
- - [ ] Save alerts to database (new entity type: `api_alert`)
837
-
838
- ### ⏳ Cycle 45: Display Top Endpoints by Usage
839
-
840
- **Status:** Pending
841
- **Dependencies:** Cycle 41
842
- **Task:** Show which endpoints are most frequently called
843
- **File:** `web/src/components/features/analytics/TopEndpoints.tsx`
844
- **Acceptance Criteria:**
845
-
846
- - [ ] Table: Endpoint, Method, Requests (count), Avg Latency, Error Rate (%)
847
- - [ ] Sort by: Requests (desc), Latency (desc), Error rate (desc)
848
- - [ ] Filter by date range
849
- - [ ] Click endpoint to see request samples
850
- - [ ] Export to CSV
851
-
852
- ---
853
-
854
- ## Frontend Phase: Developer Onboarding Flow (Cycle 46-50)
855
-
856
- **Agent:** agent-frontend
857
- **Goal:** Seamless first-time experience
858
-
859
- ### ⏳ Cycle 46: Create "Get Started" Wizard
860
-
861
- **Status:** Pending
862
- **Dependencies:** Cycle 35 (API key management complete)
863
- **Task:** Multi-step onboarding for new developers
864
- **File:** `web/src/components/features/onboarding/OnboardingWizard.tsx`
865
- **Acceptance Criteria:**
866
-
867
- - [ ] Step 1: "Create your organization" (name, description)
868
- - [ ] Step 2: "Generate your first API key" (name, scopes)
869
- - [ ] Step 3: "Make your first API call" (copy-paste cURL example)
870
- - [ ] Step 4: "Choose your SDK" (JS/Python/Go/Ruby links)
871
- - [ ] Progress indicator (1/4, 2/4, etc.)
872
- - [ ] Skip option (save progress, resume later)
873
- - [ ] Confetti animation on completion 🎉
874
-
875
- ### ⏳ Cycle 47: Add SDK Download Options
876
-
877
- **Status:** Pending
878
- **Dependencies:** Cycle 46
879
- **Task:** Provide easy access to official SDKs
880
- **File:** `web/src/components/features/onboarding/SdkDownload.tsx`
881
- **Acceptance Criteria:**
882
-
883
- - [ ] SDK cards: JavaScript, Python, Go, Ruby (+ coming soon: Java, PHP)
884
- - [ ] Each card: Logo, install command, quick example, "View Docs" link
885
- - [ ] Install commands: `npm install @one-platform/sdk`, `pip install one-platform`, etc.
886
- - [ ] Copy button for install commands
887
- - [ ] Link to GitHub repositories
888
-
889
- ### ⏳ Cycle 48: Implement Quick Start Templates
890
-
891
- **Status:** Pending
892
- **Dependencies:** Cycle 47
893
- **Task:** Provide boilerplate projects for common use cases
894
- **File:** `web/src/content/templates/`
895
- **Acceptance Criteria:**
896
-
897
- - [ ] Templates: "Next.js + ONE Backend", "Express API + ONE", "Python Flask + ONE", "Astro + ONE"
898
- - [ ] Each template: Zip download, GitHub repo link, StackBlitz live demo
899
- - [ ] README with setup instructions
900
- - [ ] Pre-configured API client with placeholder credentials
901
- - [ ] Example: List entities, Create entity, Update entity
902
-
903
- ### ⏳ Cycle 49: Show Example Applications
904
-
905
- **Status:** Pending
906
- **Dependencies:** Cycle 48
907
- **Task:** Showcase real-world apps built on ONE Platform
908
- **File:** `web/src/components/features/onboarding/ExampleApps.tsx`
909
- **Acceptance Criteria:**
910
-
911
- - [ ] Gallery: Course platform, E-commerce store, CRM, Chat app, Task manager
912
- - [ ] Each app: Screenshot, description, "Try Demo" button, "View Code" (GitHub)
913
- - [ ] Filter by category: Education, Commerce, Productivity, Social
914
- - [ ] "Submit your app" form (user-generated examples)
915
-
916
- ### ⏳ Cycle 50: Add Video Tutorials
917
-
918
- **Status:** Pending
919
- **Dependencies:** Cycle 46-49
920
- **Task:** Embed walkthrough videos for visual learners
921
- **File:** `web/src/components/features/onboarding/VideoTutorials.tsx`
922
- **Acceptance Criteria:**
923
-
924
- - [ ] Videos: "5-minute quick start", "Authentication explained", "Building your first feature", "Advanced: Webhooks"
925
- - [ ] Embedded player (YouTube or self-hosted)
926
- - [ ] Chapters/timestamps for skipping
927
- - [ ] Transcripts available (accessibility)
928
- - [ ] "Suggest a topic" form
929
-
930
- ---
931
-
932
- ## Quality Phase: Unit Tests (Cycle 51-55)
933
-
934
- **Agent:** agent-quality
935
- **Goal:** Test individual components
936
-
937
- ### ⏳ Cycle 51: Test API Key Generation
938
-
939
- **Status:** Pending
940
- **Dependencies:** Cycle 16-20 (Auth service complete)
941
- **Task:** Validate key generation logic
942
- **File:** `backend/convex/mutations/api-keys.test.ts`
943
- **Acceptance Criteria:**
944
-
945
- - [ ] Test: Keys are cryptographically random (entropy check)
946
- - [ ] Test: No key collisions after 10,000 generations
947
- - [ ] Test: Keys match format `org_{orgId}_key_{random}`
948
- - [ ] Test: Keys hashed before storage (bcrypt/Argon2)
949
- - [ ] Test: Full key returned only once
950
- - [ ] Test: Prefix stored in plaintext for display
951
- - [ ] All tests pass (100%)
952
-
953
- ### ⏳ Cycle 52: Test Scope Validation
954
-
955
- **Status:** Pending
956
- **Dependencies:** Cycle 18 (Scope system complete)
957
- **Task:** Verify permission checks work correctly
958
- **File:** `backend/convex/lib/api-auth.test.ts`
959
- **Acceptance Criteria:**
960
-
961
- - [ ] Test: `entities:write` grants `entities:read` (hierarchy)
962
- - [ ] Test: `entities:read` does NOT grant `entities:write`
963
- - [ ] Test: Wildcard `entities:*` grants all entity operations
964
- - [ ] Test: Missing scope returns 403 Forbidden
965
- - [ ] Test: Invalid scope format rejected
966
- - [ ] All tests pass (100%)
967
-
968
- ### ⏳ Cycle 53: Test Rate Limiting
969
-
970
- **Status:** Pending
971
- **Dependencies:** Cycle 19 (Rate limiter complete)
972
- **Task:** Ensure quotas enforced correctly
973
- **File:** `backend/convex/lib/rate-limit.test.ts`
974
- **Acceptance Criteria:**
975
-
976
- - [ ] Test: 61st request in minute returns 429
977
- - [ ] Test: Request succeeds after window resets
978
- - [ ] Test: Daily limit enforced independently
979
- - [ ] Test: Different tiers have different limits
980
- - [ ] Test: Burst handling (all 60 requests in 1 second)
981
- - [ ] Test: `Retry-After` header present in 429 response
982
- - [ ] All tests pass (100%)
983
-
984
- ### ⏳ Cycle 54: Test Group Isolation
985
-
986
- **Status:** Pending
987
- **Dependencies:** Cycle 21-24 (Group scoping complete)
988
- **Task:** Validate no data leakage between organizations
989
- **File:** `backend/convex/lib/group-scoping.test.ts`
990
- **Acceptance Criteria:**
991
-
992
- - [ ] Test: Org A cannot read Org B's entities
993
- - [ ] Test: Org A cannot update Org B's entities
994
- - [ ] Test: Org A cannot delete Org B's entities
995
- - [ ] Test: Connection queries don't cross org boundaries
996
- - [ ] Test: Event logs filtered by org
997
- - [ ] Test: Knowledge search scoped to org
998
- - [ ] All tests pass (100%) - CRITICAL for security
999
-
1000
- ### ⏳ Cycle 55: Test Key Rotation
1001
-
1002
- **Status:** Pending
1003
- **Dependencies:** Cycle 20 (Key rotation complete)
1004
- **Task:** Verify seamless key rotation
1005
- **File:** `backend/convex/mutations/api-keys.test.ts`
1006
- **Acceptance Criteria:**
1007
-
1008
- - [ ] Test: Both old and new keys valid during grace period
1009
- - [ ] Test: Old key revoked after grace period expires
1010
- - [ ] Test: Email notification sent before old key expires
1011
- - [ ] Test: New key has same scopes as old key
1012
- - [ ] Test: `rotateApiKey` logs appropriate events
1013
- - [ ] All tests pass (100%)
1014
-
1015
- ---
1016
-
1017
- ## Quality Phase: Integration Tests (Cycle 56-60)
1018
-
1019
- **Agent:** agent-quality
1020
- **Goal:** Test end-to-end flows
1021
-
1022
- ### ⏳ Cycle 56: Test Full Authentication Flow
1023
-
1024
- **Status:** Pending
1025
- **Dependencies:** Cycle 51-55 (Unit tests complete)
1026
- **Task:** Validate complete auth flow from key to scoped request
1027
- **File:** `backend/convex/integration/auth-flow.test.ts`
1028
- **Acceptance Criteria:**
1029
-
1030
- - [ ] Test: Generate key → Make request → Verify success
1031
- - [ ] Test: Invalid key → 401 Unauthorized
1032
- - [ ] Test: Expired key → 401 Unauthorized
1033
- - [ ] Test: Revoked key → 401 Unauthorized
1034
- - [ ] Test: Insufficient scopes → 403 Forbidden
1035
- - [ ] Test: Valid request logs event
1036
- - [ ] All tests pass (100%)
1037
-
1038
- ### ⏳ Cycle 57: Test Multi-Tenant Isolation
1039
-
1040
- **Status:** Pending
1041
- **Dependencies:** Cycle 56
1042
- **Task:** Comprehensive cross-org security tests
1043
- **File:** `backend/convex/integration/multi-tenant.test.ts`
1044
- **Acceptance Criteria:**
1045
-
1046
- - [ ] Test: Create entity in Org A, verify not visible to Org B
1047
- - [ ] Test: Attempt to read Org B entity with Org A key → 404
1048
- - [ ] Test: Attempt to update Org B entity with Org A key → 404
1049
- - [ ] Test: Attempt to delete Org B entity with Org A key → 404
1050
- - [ ] Test: Connection creation across orgs blocked
1051
- - [ ] Test: Event queries don't leak cross-org data
1052
- - [ ] All tests pass (100%) - CRITICAL for security
1053
-
1054
- ### ⏳ Cycle 58: Test Rate Limit Enforcement
1055
-
1056
- **Status:** Pending
1057
- **Dependencies:** Cycle 56
1058
- **Task:** Validate rate limiting under real load
1059
- **File:** `backend/convex/integration/rate-limits.test.ts`
1060
- **Acceptance Criteria:**
1061
-
1062
- - [ ] Test: Send 60 requests in 1 minute → All succeed
1063
- - [ ] Test: Send 61st request → 429 Too Many Requests
1064
- - [ ] Test: Wait for window reset → Next request succeeds
1065
- - [ ] Test: Daily limit enforced after per-minute resets
1066
- - [ ] Test: Different keys have independent limits
1067
- - [ ] Test: `quota_exceeded` event logged
1068
- - [ ] All tests pass (100%)
1069
-
1070
- ### ⏳ Cycle 59: Test Webhook Delivery
1071
-
1072
- **Status:** Pending
1073
- **Dependencies:** Cycle 30 (Webhook system complete)
1074
- **Task:** Validate event delivery to customer endpoints
1075
- **File:** `backend/convex/integration/webhooks.test.ts`
1076
- **Acceptance Criteria:**
1077
-
1078
- - [ ] Test: Register webhook → Receive verification event
1079
- - [ ] Test: Create entity → Webhook receives `entity_created` event
1080
- - [ ] Test: Webhook payload includes HMAC signature
1081
- - [ ] Test: Failed delivery retries 3 times with exponential backoff
1082
- - [ ] Test: Webhook logs show delivery attempts
1083
- - [ ] All tests pass (100%)
1084
-
1085
- ### ⏳ Cycle 60: Test Concurrent Requests
1086
-
1087
- **Status:** Pending
1088
- **Dependencies:** Cycle 56-59
1089
- **Task:** Ensure no race conditions or deadlocks
1090
- **File:** `backend/convex/integration/concurrency.test.ts`
1091
- **Acceptance Criteria:**
1092
-
1093
- - [ ] Test: 100 concurrent entity creates → All succeed
1094
- - [ ] Test: Concurrent rate limit checks → Accurate counting
1095
- - [ ] Test: Concurrent key rotations → No collisions
1096
- - [ ] Test: Database transactions isolated (no dirty reads)
1097
- - [ ] Test: No deadlocks detected
1098
- - [ ] All tests pass (100%)
1099
-
1100
- ---
1101
-
1102
- ## Quality Phase: Security Tests (Cycle 61-65)
1103
-
1104
- **Agent:** agent-quality
1105
- **Goal:** Penetration testing and vulnerability scanning
1106
-
1107
- ### ⏳ Cycle 61: Test Key Brute Force Protection
1108
-
1109
- **Status:** Pending
1110
- **Dependencies:** Cycle 56-60 (Integration tests complete)
1111
- **Task:** Validate resistance to key guessing attacks
1112
- **File:** `backend/convex/security/brute-force.test.ts`
1113
- **Acceptance Criteria:**
1114
-
1115
- - [ ] Test: 10 invalid key attempts → Temporary IP ban (5 minutes)
1116
- - [ ] Test: Rate limiter independent of main API rate limits
1117
- - [ ] Test: CAPTCHA challenge after 5 failed attempts (future)
1118
- - [ ] Test: `api_auth_failed` events logged with IP
1119
- - [ ] Test: Admin notification if >100 failed attempts from single IP
1120
- - [ ] All tests pass (100%)
1121
-
1122
- ### ⏳ Cycle 62: Test SQL Injection Attempts
1123
-
1124
- **Status:** Pending
1125
- **Dependencies:** Cycle 61
1126
- **Task:** Verify Convex's built-in protection (should be safe by design)
1127
- **File:** `backend/convex/security/injection.test.ts`
1128
- **Acceptance Criteria:**
1129
-
1130
- - [ ] Test: Malicious input in entity name (e.g., `'; DROP TABLE entities; --`)
1131
- - [ ] Test: Malicious input in query parameters
1132
- - [ ] Test: Malicious input in properties field (arbitrary JSON)
1133
- - [ ] Test: No data corruption or deletion
1134
- - [ ] Test: Inputs sanitized/escaped in responses
1135
- - [ ] All tests pass (100%)
1136
-
1137
- ### ⏳ Cycle 63: Test Unauthorized Scope Escalation
1138
-
1139
- **Status:** Pending
1140
- **Dependencies:** Cycle 61-62
1141
- **Task:** Ensure users can't grant themselves additional scopes
1142
- **File:** `backend/convex/security/scope-escalation.test.ts`
1143
- **Acceptance Criteria:**
1144
-
1145
- - [ ] Test: Attempt to modify API key scopes via API → 403 Forbidden
1146
- - [ ] Test: Attempt to create key with admin scopes using non-admin key → 403
1147
- - [ ] Test: Attempt to access `api_keys:manage` endpoint without scope → 403
1148
- - [ ] Test: Scope verification happens before all operations
1149
- - [ ] Test: Scope tampering in request headers ignored
1150
- - [ ] All tests pass (100%)
1151
-
1152
- ### ⏳ Cycle 64: Test Expired Key Handling
1153
-
1154
- **Status:** Pending
1155
- **Dependencies:** Cycle 61-63
1156
- **Task:** Validate expired keys immediately rejected
1157
- **File:** `backend/convex/security/expiration.test.ts`
1158
- **Acceptance Criteria:**
1159
-
1160
- - [ ] Test: Key expires at exact timestamp → Next request fails
1161
- - [ ] Test: Expired key returns 401 with clear message: "API key expired on {date}"
1162
- - [ ] Test: Expired keys cleaned up automatically (daily cron)
1163
- - [ ] Test: Email notification sent 7 days before expiration
1164
- - [ ] Test: Renewal flow works (extend expiration)
1165
- - [ ] All tests pass (100%)
1166
-
1167
- ### ⏳ Cycle 65: Penetration Testing (OWASP Top 10)
1168
-
1169
- **Status:** Pending
1170
- **Dependencies:** Cycle 61-64
1171
- **Task:** External security audit against OWASP Top 10
1172
- **File:** `one/events/security-audit-report.md`
1173
- **Acceptance Criteria:**
1174
-
1175
- - [ ] Test: Broken Access Control (A01:2021) → No vulnerabilities
1176
- - [ ] Test: Cryptographic Failures (A02:2021) → Keys hashed, HTTPS enforced
1177
- - [ ] Test: Injection (A03:2021) → Convex safe by design
1178
- - [ ] Test: Insecure Design (A04:2021) → Rate limiting, key rotation implemented
1179
- - [ ] Test: Security Misconfiguration (A05:2021) → No default keys, proper CORS
1180
- - [ ] Test: All other OWASP categories → No critical/high vulnerabilities
1181
- - [ ] Report: No critical vulnerabilities, recommendations for improvements
1182
-
1183
- ---
1184
-
1185
- ## Quality Phase: Performance Tests (Cycle 66-70)
1186
-
1187
- **Agent:** agent-quality
1188
- **Goal:** Validate performance under load
1189
-
1190
- ### ⏳ Cycle 66: Load Test (10K Requests/Minute)
1191
-
1192
- **Status:** Pending
1193
- **Dependencies:** Cycle 61-65 (Security tests complete)
1194
- **Task:** Simulate high traffic and measure performance
1195
- **File:** `backend/convex/performance/load-test.ts`
1196
- **Acceptance Criteria:**
1197
-
1198
- - [ ] Test: Sustained 10,000 req/min for 10 minutes
1199
- - [ ] Test: All requests complete successfully
1200
- - [ ] Test: No timeouts or connection errors
1201
- - [ ] Test: Database performance stable (no degradation)
1202
- - [ ] Test: CPU/memory usage within acceptable limits
1203
- - [ ] Test: Convex functions scale automatically
1204
- - [ ] Pass: 99.9% success rate
1205
-
1206
- ### ⏳ Cycle 67: Latency Testing (p50, p95, p99)
1207
-
1208
- **Status:** Pending
1209
- **Dependencies:** Cycle 66
1210
- **Task:** Measure response times at different percentiles
1211
- **File:** `backend/convex/performance/latency-test.ts`
1212
- **Acceptance Criteria:**
1213
-
1214
- - [ ] Measure: 10,000 API requests under normal load
1215
- - [ ] Target: p50 < 100ms, p95 < 200ms, p99 < 500ms
1216
- - [ ] Breakdown by endpoint (entities, connections, events)
1217
- - [ ] Identify slowest queries for optimization
1218
- - [ ] Compare: Cold start vs warm cache performance
1219
- - [ ] Pass: All targets met
1220
-
1221
- ### ⏳ Cycle 68: Database Query Optimization
1222
-
1223
- **Status:** Pending
1224
- **Dependencies:** Cycle 67
1225
- **Task:** Optimize slow queries identified in latency tests
1226
- **File:** `backend/convex/queries/` (various files)
1227
- **Acceptance Criteria:**
1228
-
1229
- - [ ] Add indexes for frequently queried fields
1230
- - [ ] Optimize N+1 query patterns (batch fetches)
1231
- - [ ] Cache frequently accessed data (Redis/Convex caching)
1232
- - [ ] Paginate large result sets
1233
- - [ ] Use Convex's `withIndex()` for fast lookups
1234
- - [ ] Re-run latency tests → 20% improvement
1235
-
1236
- ### ⏳ Cycle 69: CDN Caching Strategy
1237
-
1238
- **Status:** Pending
1239
- **Dependencies:** Cycle 68
1240
- **Task:** Implement edge caching for static/semi-static data
1241
- **File:** `backend/convex/http.ts` (add cache headers)
1242
- **Acceptance Criteria:**
1243
-
1244
- - [ ] Cache GET requests for public data (e.g., API docs)
1245
- - [ ] Set `Cache-Control` headers (e.g., `max-age=3600` for 1 hour)
1246
- - [ ] Vary caching by API key (private data never cached)
1247
- - [ ] Implement cache invalidation on data changes
1248
- - [ ] Test: Cached requests return instantly (<10ms)
1249
- - [ ] Pass: 50% cache hit rate for eligible requests
1250
-
1251
- ### ⏳ Cycle 70: Connection Pooling Validation
1252
-
1253
- **Status:** Pending
1254
- **Dependencies:** Cycle 66-69
1255
- **Task:** Ensure efficient connection reuse
1256
- **File:** `backend/convex/lib/connection-pool.ts`
1257
- **Acceptance Criteria:**
1258
-
1259
- - [ ] Test: 1,000 concurrent requests reuse connections
1260
- - [ ] Test: No connection leaks (all connections closed)
1261
- - [ ] Test: Connection pool size scales with load
1262
- - [ ] Monitor: Connection pool metrics (active, idle, waiting)
1263
- - [ ] Optimize: Pool size configuration
1264
- - [ ] Pass: Zero connection errors under load
1265
-
1266
- ---
1267
-
1268
- ## SDK Phase: Official SDKs (Cycle 71-75)
1269
-
1270
- **Agent:** agent-builder
1271
- **Goal:** Create client libraries for popular languages
1272
-
1273
- ### ⏳ Cycle 71: JavaScript/TypeScript SDK
1274
-
1275
- **Status:** Pending
1276
- **Dependencies:** Cycle 30 (API Gateway complete)
1277
- **Task:** Build npm package for Node.js and browsers
1278
- **File:** `sdk/javascript/`
1279
- **Acceptance Criteria:**
1280
-
1281
- - [ ] Package: `@one-platform/sdk` on npm
1282
- - [ ] Support: Node.js 18+, browsers (via bundler)
1283
- - [ ] Features: Full TypeScript types, tree-shakeable, ESM + CJS
1284
- - [ ] Methods: `client.entities.create()`, `.list()`, `.get()`, `.update()`, `.delete()`
1285
- - [ ] Same for connections, events, groups
1286
- - [ ] Authentication: Constructor accepts `apiKey`, `organizationId`
1287
- - [ ] Error handling: Typed error classes (`ApiError`, `AuthError`, `RateLimitError`)
1288
- - [ ] Tests: 100% coverage
1289
- - [ ] Docs: README, API reference, examples
1290
-
1291
- **Example:**
1292
-
1293
- ```typescript
1294
- import { OneClient } from "@one-platform/sdk";
1295
-
1296
- const client = new OneClient({
1297
- apiKey: process.env.ONE_API_KEY,
1298
- organizationId: "org_abc123",
1299
- });
1300
-
1301
- const course = await client.entities.create({
1302
- type: "course",
1303
- name: "Introduction to AI",
1304
- properties: { price: 49.99 },
1305
- });
1306
- ```
1307
-
1308
- ### ⏳ Cycle 72: Python SDK
1309
-
1310
- **Status:** Pending
1311
- **Dependencies:** Cycle 71
1312
- **Task:** Build PyPI package for Python developers
1313
- **File:** `sdk/python/`
1314
- **Acceptance Criteria:**
1315
-
1316
- - [ ] Package: `one-platform` on PyPI
1317
- - [ ] Support: Python 3.8+
1318
- - [ ] Features: Type hints (mypy compatible), async support (asyncio)
1319
- - [ ] Methods: `client.entities.create()`, `.list()`, `.get()`, `.update()`, `.delete()`
1320
- - [ ] Authentication: Constructor accepts `api_key`, `organization_id`
1321
- - [ ] Error handling: Custom exceptions (`ApiError`, `AuthError`, `RateLimitError`)
1322
- - [ ] Tests: pytest, 100% coverage
1323
- - [ ] Docs: README, Sphinx API reference, examples
1324
-
1325
- **Example:**
1326
-
1327
- ```python
1328
- from one_platform import OneClient
1329
-
1330
- client = OneClient(
1331
- api_key=os.environ['ONE_API_KEY'],
1332
- organization_id='org_abc123'
1333
- )
1334
-
1335
- course = client.entities.create(
1336
- type='course',
1337
- name='Introduction to AI',
1338
- properties={'price': 49.99}
1339
- )
1340
- ```
1341
-
1342
- ### ⏳ Cycle 73: Go SDK
1343
-
1344
- **Status:** Pending
1345
- **Dependencies:** Cycle 72
1346
- **Task:** Build Go module for Go developers
1347
- **File:** `sdk/go/`
1348
- **Acceptance Criteria:**
1349
-
1350
- - [ ] Module: `github.com/one-platform/go-sdk`
1351
- - [ ] Support: Go 1.21+
1352
- - [ ] Features: Context support, generics, idiomatic error handling
1353
- - [ ] Methods: `client.Entities.Create()`, `.List()`, `.Get()`, `.Update()`, `.Delete()`
1354
- - [ ] Authentication: `NewClient(apiKey, organizationID string)`
1355
- - [ ] Error handling: Typed errors (`*ApiError`, `*AuthError`, `*RateLimitError`)
1356
- - [ ] Tests: `go test`, 100% coverage
1357
- - [ ] Docs: README, GoDoc, examples
1358
-
1359
- **Example:**
1360
-
1361
- ```go
1362
- import "github.com/one-platform/go-sdk"
1363
-
1364
- client := onesdk.NewClient(
1365
- os.Getenv("ONE_API_KEY"),
1366
- "org_abc123",
1367
- )
1368
-
1369
- course, err := client.Entities.Create(ctx, &onesdk.Entity{
1370
- Type: "course",
1371
- Name: "Introduction to AI",
1372
- Properties: map[string]any{"price": 49.99},
1373
- })
1374
- ```
1375
-
1376
- ### ⏳ Cycle 74: Ruby SDK
1377
-
1378
- **Status:** Pending
1379
- **Dependencies:** Cycle 73
1380
- **Task:** Build gem for Ruby developers
1381
- **File:** `sdk/ruby/`
1382
- **Acceptance Criteria:**
1383
-
1384
- - [ ] Gem: `one-platform` on RubyGems
1385
- - [ ] Support: Ruby 3.0+
1386
- - [ ] Features: Idiomatic Ruby (snake_case), blocks for configuration
1387
- - [ ] Methods: `client.entities.create`, `.list`, `.get`, `.update`, `.delete`
1388
- - [ ] Authentication: `OnePlatform::Client.new(api_key:, organization_id:)`
1389
- - [ ] Error handling: Custom exceptions (`ApiError`, `AuthError`, `RateLimitError`)
1390
- - [ ] Tests: RSpec, 100% coverage
1391
- - [ ] Docs: README, YARD API reference, examples
1392
-
1393
- **Example:**
1394
-
1395
- ```ruby
1396
- require 'one_platform'
1397
-
1398
- client = OnePlatform::Client.new(
1399
- api_key: ENV['ONE_API_KEY'],
1400
- organization_id: 'org_abc123'
1401
- )
1402
-
1403
- course = client.entities.create(
1404
- type: 'course',
1405
- name: 'Introduction to AI',
1406
- properties: { price: 49.99 }
1407
- )
1408
- ```
1409
-
1410
- ### ⏳ Cycle 75: Add Type Definitions (Full TypeScript Support)
1411
-
1412
- **Status:** Pending
1413
- **Dependencies:** Cycle 71-74
1414
- **Task:** Generate TypeScript definitions for all SDKs
1415
- **File:** `sdk/types/` (shared type definitions)
1416
- **Acceptance Criteria:**
1417
-
1418
- - [ ] Shared types: `Entity`, `Connection`, `Event`, `Group`, `ApiKey`
1419
- - [ ] All entity types (66+) as discriminated unions
1420
- - [ ] All connection types (25+) with proper generics
1421
- - [ ] Error types with discriminated unions
1422
- - [ ] Export types from all SDKs (`@one-platform/sdk/types`)
1423
- - [ ] IntelliSense support in VS Code
1424
- - [ ] TypeScript strict mode compatible
1425
-
1426
- ---
1427
-
1428
- ## SDK Phase: CLI Tool (Cycle 76-80)
1429
-
1430
- **Agent:** agent-builder
1431
- **Goal:** Command-line tool for API management
1432
-
1433
- ### ⏳ Cycle 76: Create `oneie` CLI for API Management
1434
-
1435
- **Status:** Pending
1436
- **Dependencies:** Cycle 71 (JS SDK complete)
1437
- **Task:** Build command-line tool using Node.js
1438
- **File:** `cli/`
1439
- **Acceptance Criteria:**
1440
-
1441
- - [ ] Package: `oneie` (already exists, extend with API commands)
1442
- - [ ] Commands: `oneie api:*` subcommands
1443
- - [ ] Authentication: Config file `~/.oneie/config.json` with API key
1444
- - [ ] Auto-completion: Bash, Zsh, Fish support
1445
- - [ ] Colored output (chalk or similar)
1446
- - [ ] Tests: CLI integration tests
1447
- - [ ] Docs: `oneie help api`
1448
-
1449
- ### ⏳ Cycle 77: Add Commands (keys:create, keys:list, keys:revoke)
1450
-
1451
- **Status:** Pending
1452
- **Dependencies:** Cycle 76
1453
- **Task:** Implement API key management commands
1454
- **File:** `cli/commands/api/keys.ts`
1455
- **Acceptance Criteria:**
1456
-
1457
- - [ ] `oneie api:keys:create` - Interactive wizard (name, scopes, expiration)
1458
- - [ ] `oneie api:keys:list` - Table of all keys (name, prefix, scopes, status)
1459
- - [ ] `oneie api:keys:revoke` - Revoke key by prefix (confirmation prompt)
1460
- - [ ] `oneie api:keys:show [prefix]` - Show detailed key info
1461
- - [ ] All commands use SDK internally
1462
- - [ ] Proper error handling (friendly messages)
1463
-
1464
- **Example:**
1465
-
1466
- ```bash
1467
- $ oneie api:keys:create
1468
- ? Key name: Production API
1469
- ? Scopes: entities:read, entities:write, connections:read
1470
- ? Expiration: Never
1471
- ✅ API key created: org_abc123_key_xyz789
1472
- ⚠️ Save this key now. You won't see it again.
1473
- ```
1474
-
1475
- ### ⏳ Cycle 78: Implement `oneie test` for Endpoint Testing
1476
-
1477
- **Status:** Pending
1478
- **Dependencies:** Cycle 77
1479
- **Task:** Interactive endpoint tester in CLI
1480
- **File:** `cli/commands/api/test.ts`
1481
- **Acceptance Criteria:**
1482
-
1483
- - [ ] `oneie api:test` - Interactive mode (select endpoint, enter params, see response)
1484
- - [ ] `oneie api:test --endpoint=POST:/api/v1/entities --body='{"type":"course"}'` - Non-interactive
1485
- - [ ] Pretty-print JSON responses (syntax highlighting)
1486
- - [ ] Show: Status code, headers, latency, response size
1487
- - [ ] Save requests as templates (`oneie api:test --save=create-course`)
1488
- - [ ] Load templates (`oneie api:test --template=create-course`)
1489
-
1490
- **Example:**
1491
-
1492
- ```bash
1493
- $ oneie api:test
1494
- ? Endpoint: POST /api/v1/entities
1495
- ? Body: {"type":"course","name":"AI 101"}
1496
- ✅ 201 Created (120ms)
1497
- {
1498
- "id": "j57abc123..."
1499
- }
1500
- ```
1501
-
1502
- ### ⏳ Cycle 79: Add `oneie logs` for Request History
1503
-
1504
- **Status:** Pending
1505
- **Dependencies:** Cycle 78
1506
- **Task:** View API request logs from CLI
1507
- **File:** `cli/commands/api/logs.ts`
1508
- **Acceptance Criteria:**
1509
-
1510
- - [ ] `oneie api:logs` - Show recent requests (last 50)
1511
- - [ ] `oneie api:logs --tail` - Live streaming logs (like `tail -f`)
1512
- - [ ] `oneie api:logs --filter=error` - Only errors
1513
- - [ ] `oneie api:logs --endpoint=/api/v1/entities` - Filter by endpoint
1514
- - [ ] Display: Timestamp, Method, Endpoint, Status, Latency
1515
- - [ ] Color-coded status (green=2xx, yellow=3xx, red=4xx/5xx)
1516
-
1517
- **Example:**
1518
-
1519
- ```bash
1520
- $ oneie api:logs --tail
1521
- [12:34:56] POST /api/v1/entities 201 (120ms)
1522
- [12:34:57] GET /api/v1/entities 200 (45ms)
1523
- [12:34:58] POST /api/v1/connections 403 (30ms) ❌
1524
- ```
1525
-
1526
- ### ⏳ Cycle 80: Create `oneie deploy` for Webhook Configuration
1527
-
1528
- **Status:** Pending
1529
- **Dependencies:** Cycle 79
1530
- **Task:** Manage webhook subscriptions from CLI
1531
- **File:** `cli/commands/api/webhooks.ts`
1532
- **Acceptance Criteria:**
1533
-
1534
- - [ ] `oneie api:webhooks:add` - Register webhook URL (interactive: URL, events)
1535
- - [ ] `oneie api:webhooks:list` - Show all webhooks
1536
- - [ ] `oneie api:webhooks:test [id]` - Send test event
1537
- - [ ] `oneie api:webhooks:logs [id]` - Show delivery attempts
1538
- - [ ] `oneie api:webhooks:remove [id]` - Delete webhook
1539
- - [ ] Validate webhook endpoint responds correctly
1540
-
1541
- **Example:**
1542
-
1543
- ```bash
1544
- $ oneie api:webhooks:add
1545
- ? Webhook URL: https://myapp.com/webhooks
1546
- ? Events: entity_created, entity_updated
1547
- ✅ Webhook created (ID: wh_123)
1548
- 📤 Sending test event...
1549
- ✅ Test event delivered successfully
1550
- ```
1551
-
1552
- ---
1553
-
1554
- ## Operations Phase: Monitoring & Observability (Cycle 81-85)
1555
-
1556
- **Agent:** agent-ops
1557
- **Goal:** Production monitoring setup
1558
-
1559
- ### ⏳ Cycle 81: Set Up API Metrics Dashboard
1560
-
1561
- **Status:** Pending
1562
- **Dependencies:** Cycle 70 (Performance tests complete)
1563
- **Task:** Create real-time monitoring dashboard
1564
- **Tool:** Grafana or Datadog
1565
- **Acceptance Criteria:**
1566
-
1567
- - [ ] Metrics: Requests/second, Latency (p50/p95/p99), Error rate (%), Active connections
1568
- - [ ] Graphs: Time series (last 24h, 7d, 30d), heatmaps (latency distribution)
1569
- - [ ] Breakdown: By endpoint, by organization, by status code
1570
- - [ ] Alerts: High error rate (>5%), high latency (p95 >500ms), downtime
1571
- - [ ] Dashboard accessible to internal team + customers (separate views)
1572
-
1573
- ### ⏳ Cycle 82: Add Error Tracking (Sentry Integration)
1574
-
1575
- **Status:** Pending
1576
- **Dependencies:** Cycle 81
1577
- **Task:** Track and triage backend errors
1578
- **Tool:** Sentry
1579
- **Acceptance Criteria:**
1580
-
1581
- - [ ] Install `@sentry/node` in backend
1582
- - [ ] Capture all 500 errors automatically
1583
- - [ ] Capture rate limit errors (for analysis)
1584
- - [ ] Group errors by type (auth failures, database errors, etc.)
1585
- - [ ] Include: Stack trace, request context, user context (orgId)
1586
- - [ ] Alert: Slack notification for critical errors
1587
- - [ ] Integration: Link Sentry issues to GitHub issues
1588
-
1589
- ### ⏳ Cycle 83: Configure Uptime Monitoring (Status Page)
1590
-
1591
- **Status:** Pending
1592
- **Dependencies:** Cycle 81-82
1593
- **Task:** Public status page for API health
1594
- **Tool:** Statuspage.io or custom
1595
- **Acceptance Criteria:**
1596
-
1597
- - [ ] Status page: `status.one.ie`
1598
- - [ ] Components: API Gateway, Database, Authentication, Webhooks
1599
- - [ ] Incidents: Automatic creation from alerting system
1600
- - [ ] Uptime: 99.9% SLA tracking (last 30d, 90d)
1601
- - [ ] Subscribe: Email/SMS/Slack notifications
1602
- - [ ] History: Past incidents with postmortems
1603
-
1604
- ### ⏳ Cycle 84: Create Alerting Rules
1605
-
1606
- **Status:** Pending
1607
- **Dependencies:** Cycle 81-83
1608
- **Task:** Define when to notify team of issues
1609
- **File:** `infrastructure/alerts.yml`
1610
- **Acceptance Criteria:**
1611
-
1612
- - [ ] Alert: Error rate >5% for 5 minutes → Page on-call engineer
1613
- - [ ] Alert: Latency p95 >500ms for 10 minutes → Slack notification
1614
- - [ ] Alert: Uptime <99.9% → Incident created automatically
1615
- - [ ] Alert: Rate limit hit by >10 orgs in 1 minute → Investigate (potential attack)
1616
- - [ ] Alert: Quota exceeded by enterprise customer → Notify sales team
1617
- - [ ] Escalation: If not acknowledged in 15 minutes, escalate to manager
1618
-
1619
- ### ⏳ Cycle 85: Implement Distributed Tracing
1620
-
1621
- **Status:** Pending
1622
- **Dependencies:** Cycle 81-84
1623
- **Task:** Trace requests across services for debugging
1624
- **Tool:** OpenTelemetry + Jaeger/Zipkin
1625
- **Acceptance Criteria:**
1626
-
1627
- - [ ] Install OpenTelemetry SDK
1628
- - [ ] Trace: API Gateway → Auth → Database → Response
1629
- - [ ] Span details: Function name, duration, input/output
1630
- - [ ] Propagate trace IDs across service boundaries
1631
- - [ ] Visualize: Flame graphs for slow requests
1632
- - [ ] Retention: 7 days of traces
1633
-
1634
- ---
1635
-
1636
- ## Operations Phase: Documentation & Knowledge Base (Cycle 86-90)
1637
-
1638
- **Agent:** agent-documenter
1639
- **Goal:** Comprehensive documentation for developers
1640
-
1641
- ### ⏳ Cycle 86: Write Comprehensive API Reference
1642
-
1643
- **Status:** Pending
1644
- **Dependencies:** Cycle 30 (API Gateway complete)
1645
- **Task:** Generate OpenAPI/Swagger spec from code
1646
- **File:** `backend/convex/openapi.yaml`
1647
- **Acceptance Criteria:**
1648
-
1649
- - [ ] OpenAPI 3.0 spec with all endpoints
1650
- - [ ] For each endpoint: Path, method, parameters, request body, responses (200/400/401/403/404/429/500)
1651
- - [ ] Examples for each endpoint
1652
- - [ ] Authentication scheme (Bearer token)
1653
- - [ ] Rate limiting headers documented
1654
- - [ ] Generate from code comments (annotations)
1655
- - [ ] Validate: No broken links, all examples valid
1656
-
1657
- ### ⏳ Cycle 87: Create Developer Guides
1658
-
1659
- **Status:** Pending
1660
- **Dependencies:** Cycle 86
1661
- **Task:** Write prose guides for common workflows
1662
- **File:** `web/src/content/docs/guides/`
1663
- **Acceptance Criteria:**
1664
-
1665
- - [ ] Guide: "Getting Started with ONE API" (5-minute tutorial)
1666
- - [ ] Guide: "Authentication Best Practices" (key rotation, scoping)
1667
- - [ ] Guide: "Building Multi-Tenant Apps" (group hierarchy patterns)
1668
- - [ ] Guide: "Webhooks Deep Dive" (setup, security, debugging)
1669
- - [ ] Guide: "Rate Limiting & Quotas" (understanding limits, upgrading tiers)
1670
- - [ ] All guides: Step-by-step, code examples, troubleshooting section
1671
-
1672
- ### ⏳ Cycle 88: Add Troubleshooting Runbook
1673
-
1674
- **Status:** Pending
1675
- **Dependencies:** Cycle 87
1676
- **Task:** Solutions for common issues
1677
- **File:** `web/src/content/docs/troubleshooting.md`
1678
- **Acceptance Criteria:**
1679
-
1680
- - [ ] Issue: "401 Unauthorized" → Check key validity, expiration, revocation status
1681
- - [ ] Issue: "403 Forbidden" → Check scopes, verify endpoint requires correct scope
1682
- - [ ] Issue: "429 Too Many Requests" → Explain rate limits, show how to check quota
1683
- - [ ] Issue: "Slow requests" → Optimization tips (pagination, filtering, caching)
1684
- - [ ] Issue: "Webhook not receiving events" → Verify URL, check logs, test endpoint
1685
- - [ ] Each issue: Symptoms, causes, step-by-step solution
1686
-
1687
- ### ⏳ Cycle 89: Generate SDK Documentation
1688
-
1689
- **Status:** Pending
1690
- **Dependencies:** Cycle 71-75 (SDKs complete)
1691
- **Task:** Auto-generate docs from code comments
1692
- **File:** `sdk/docs/`
1693
- **Acceptance Criteria:**
1694
-
1695
- - [ ] JavaScript/TypeScript: TypeDoc-generated docs
1696
- - [ ] Python: Sphinx-generated docs
1697
- - [ ] Go: GoDoc-generated docs
1698
- - [ ] Ruby: YARD-generated docs
1699
- - [ ] Hosted: `docs.one.ie/sdk/javascript`, `/python`, `/go`, `/ruby`
1700
- - [ ] Searchable: Full-text search across all SDK docs
1701
-
1702
- ### ⏳ Cycle 90: Create Migration Guides (v1 → v2)
1703
-
1704
- **Status:** Pending
1705
- **Dependencies:** Cycle 86-89
1706
- **Task:** Future-proofing for API versioning
1707
- **File:** `web/src/content/docs/migrations/`
1708
- **Acceptance Criteria:**
1709
-
1710
- - [ ] Guide: "Migrating from v1 to v2" (when v2 released)
1711
- - [ ] Breaking changes documented
1712
- - [ ] Side-by-side code comparisons
1713
- - [ ] Deprecation timeline (v1 supported for 12 months)
1714
- - [ ] Automated migration tool (CLI command)
1715
- - [ ] For now: Placeholder guide explaining versioning strategy
1716
-
1717
- ---
1718
-
1719
- ## Operations Phase: Deployment & CI/CD (Cycle 91-95)
1720
-
1721
- **Agent:** agent-ops
1722
- **Goal:** Automated deployment pipeline
1723
-
1724
- ### ⏳ Cycle 91: Configure Cloudflare Workers for API Gateway
1725
-
1726
- **Status:** Pending
1727
- **Dependencies:** Cycle 85 (Monitoring setup complete)
1728
- **Task:** Deploy API Gateway to Cloudflare's edge network
1729
- **File:** `backend/wrangler.toml`
1730
- **Acceptance Criteria:**
1731
-
1732
- - [ ] Cloudflare Workers route: `api.one.ie/*`
1733
- - [ ] Edge caching: Cache-Control headers for GET requests
1734
- - [ ] DDoS protection: Cloudflare's automatic mitigation
1735
- - [ ] Rate limiting: Cloudflare rate limiting + backend rate limiting (layered)
1736
- - [ ] SSL/TLS: HTTPS enforced, TLS 1.3
1737
- - [ ] Deploy: `wrangler deploy` from CI/CD
1738
-
1739
- ### ⏳ Cycle 92: Set Up Convex HTTP Endpoints
1740
-
1741
- **Status:** Pending
1742
- **Dependencies:** Cycle 91
1743
- **Task:** Configure Convex to handle HTTP traffic
1744
- **File:** `backend/convex/http.ts`
1745
- **Acceptance Criteria:**
1746
-
1747
- - [ ] HTTP routes registered: All `/api/v1/*` endpoints
1748
- - [ ] CORS configured: Allow all origins (or whitelist customer domains)
1749
- - [ ] Request validation: Schema validation for all inputs
1750
- - [ ] Response formatting: Consistent JSON structure
1751
- - [ ] Error handling: Proper HTTP status codes
1752
- - [ ] Deploy: `npx convex deploy` from CI/CD
1753
-
1754
- ### ⏳ Cycle 93: Implement Blue-Green Deployment
1755
-
1756
- **Status:** Pending
1757
- **Dependencies:** Cycle 92
1758
- **Task:** Zero-downtime deployment strategy
1759
- **File:** `.github/workflows/deploy-api.yml`
1760
- **Acceptance Criteria:**
1761
-
1762
- - [ ] Two environments: Blue (current production), Green (new version)
1763
- - [ ] Deploy new version to Green environment
1764
- - [ ] Run smoke tests on Green (health checks)
1765
- - [ ] Switch traffic: Blue → Green (Cloudflare Workers routing)
1766
- - [ ] Monitor: If error rate spikes, rollback to Blue
1767
- - [ ] Rollback: Automated, <1 minute to revert
1768
-
1769
- ### ⏳ Cycle 94: Add Automated Testing in CI
1770
-
1771
- **Status:** Pending
1772
- **Dependencies:** Cycle 93
1773
- **Task:** Run all tests on every commit
1774
- **File:** `.github/workflows/test-api.yml`
1775
- **Acceptance Criteria:**
1776
-
1777
- - [ ] Trigger: Every push to main, every PR
1778
- - [ ] Tests: Unit tests, integration tests, security tests
1779
- - [ ] Coverage: Fail if coverage drops below 90%
1780
- - [ ] Linting: ESLint, Prettier, TypeScript strict mode
1781
- - [ ] Build: Ensure `npx convex deploy --dry-run` succeeds
1782
- - [ ] Notify: Slack notification if tests fail
1783
-
1784
- ### ⏳ Cycle 95: Create Rollback Procedures
1785
-
1786
- **Status:** Pending
1787
- **Dependencies:** Cycle 93-94
1788
- **Task:** Define process for reverting bad deployments
1789
- **File:** `one/knowledge/rollback-procedures.md`
1790
- **Acceptance Criteria:**
1791
-
1792
- - [ ] Automatic rollback: If error rate >10% after deploy, rollback immediately
1793
- - [ ] Manual rollback: `oneie api:rollback` command (CLI)
1794
- - [ ] Rollback: Switch Cloudflare routing back to previous version
1795
- - [ ] Database migrations: Reversible (use Convex's schema versioning)
1796
- - [ ] Postmortem: Required after every rollback (document in `one/events/`)
1797
- - [ ] Test rollback: Quarterly drill to ensure process works
1798
-
1799
- ---
1800
-
1801
- ## Launch Phase: Final Steps (Cycle 96-100)
1802
-
1803
- **Agent:** agent-director
1804
- **Goal:** Security audit, load testing, launch
1805
-
1806
- ### ⏳ Cycle 96: Conduct Security Audit (External Firm)
1807
-
1808
- **Status:** Pending
1809
- **Dependencies:** Cycle 61-65 (Security tests complete)
1810
- **Task:** Hire external security firm for audit
1811
- **File:** `one/events/security-audit-final-report.md`
1812
- **Acceptance Criteria:**
1813
-
1814
- - [ ] Audit scope: API authentication, authorization, data isolation, rate limiting
1815
- - [ ] Audit duration: 2 weeks
1816
- - [ ] Deliverable: Report with findings (critical/high/medium/low)
1817
- - [ ] Fix: All critical and high vulnerabilities before launch
1818
- - [ ] Re-test: Verify fixes with auditors
1819
- - [ ] Certificate: Security audit badge for marketing
1820
-
1821
- ### ⏳ Cycle 97: Perform Load Testing at Scale
1822
-
1823
- **Status:** Pending
1824
- **Dependencies:** Cycle 66-70 (Performance tests complete)
1825
- **Task:** Validate production capacity with realistic traffic
1826
- **File:** `one/events/load-test-production-report.md`
1827
- **Acceptance Criteria:**
1828
-
1829
- - [ ] Test: 100,000 requests/minute for 1 hour (10x expected launch traffic)
1830
- - [ ] Test: 1,000 concurrent organizations
1831
- - [ ] Test: Burst traffic (10,000 req in 1 second)
1832
- - [ ] Pass: 99.9% success rate, p95 latency <200ms, no errors
1833
- - [ ] Capacity planning: Document max capacity and scaling thresholds
1834
- - [ ] Auto-scaling: Convex scales automatically (verify)
1835
-
1836
- ### ⏳ Cycle 98: Create Onboarding Materials for First 10 Customers
1837
-
1838
- **Status:** Pending
1839
- **Dependencies:** Cycle 46-50 (Onboarding flow complete)
1840
- **Task:** Personalized onboarding for early adopters
1841
- **File:** `one/events/early-customer-onboarding.md`
1842
- **Acceptance Criteria:**
1843
-
1844
- - [ ] Materials: Welcome email, 1-on-1 onboarding call, custom integration support
1845
- - [ ] Beta program: Free Pro tier for 3 months
1846
- - [ ] Feedback: Weekly surveys to gather product feedback
1847
- - [ ] Slack channel: Private channel with engineering team
1848
- - [ ] Success metrics: All 10 customers make >100 API calls within 1 week
1849
- - [ ] Case studies: Write 2-3 case studies from early customers
1850
-
1851
- ### ⏳ Cycle 99: Write Launch Announcement
1852
-
1853
- **Status:** Pending
1854
- **Dependencies:** Cycle 96-98 (All pre-launch tasks complete)
1855
- **Task:** Create launch announcement and marketing materials
1856
- **File:** `one/events/api-launch-announcement.md`
1857
- **Acceptance Criteria:**
1858
-
1859
- - [ ] Blog post: "Introducing ONE Platform Backend API"
1860
- - [ ] Content: Vision, features, pricing, getting started
1861
- - [ ] Channels: X (Twitter), LinkedIn, Product Hunt, Hacker News, Dev.to
1862
- - [ ] Video: 2-minute demo screencast
1863
- - [ ] Press release: Send to tech publications (TechCrunch, The Verge, etc.)
1864
- - [ ] Launch date: Announce date and countdown
1865
-
1866
- ### ⏳ Cycle 100: Mark Feature Complete and Notify Stakeholders
1867
-
1868
- **Status:** Pending
1869
- **Dependencies:** Cycle 99 (Launch announcement complete)
1870
- **Task:** Final sign-off and handoff
1871
- **File:** `one/events/api-feature-complete.md`
1872
- **Acceptance Criteria:**
1873
-
1874
- - [ ] All 100 cycles complete ✅
1875
- - [ ] All tests passing (unit, integration, security, performance) ✅
1876
- - [ ] Documentation complete (API reference, guides, SDKs) ✅
1877
- - [ ] Monitoring setup (dashboards, alerts, status page) ✅
1878
- - [ ] Security audit passed (no critical vulnerabilities) ✅
1879
- - [ ] Load testing passed (100K req/min sustained) ✅
1880
- - [ ] Launch announcement published ✅
1881
- - [ ] Notify stakeholders: Engineering team, sales team, customers
1882
- - [ ] Celebrate! 🎉
1883
-
1884
- ---
1885
-
1886
- ## Summary Statistics
1887
-
1888
- **Total Cycles:** 100
1889
- **Estimated Duration:** 60-90 days (with parallelization)
1890
- **Agents Involved:** 7 (director, backend, frontend, designer, quality, builder, ops, documenter, problem-solver)
1891
- **New Entity Types:** 4 (api_key, api_application, service_account, api_quota)
1892
- **New Connection Types:** 4 (owns_api_key, authenticated_by, belongs_to_org, has_quota)
1893
- **New Event Types:** 6 (api_key_generated, api_key_revoked, api_request_made, quota_exceeded, api_auth_failed, api_application_registered)
1894
- **Test Coverage:** 90%+ (300+ test cases)
1895
- **Security Audit:** External firm, OWASP Top 10
1896
- **Performance Targets:** p95 <200ms, 99.9% uptime, 100K req/min sustained
1897
-
1898
- ---
1899
-
1900
- ## Next Steps
1901
-
1902
- 1. **Start Execution:** Run `/next` to begin Cycle 1
1903
- 2. **Review Plan:** Use `/plan` to see full breakdown
1904
- 3. **Assign Agents:** Agents will be automatically assigned based on cycle type
1905
- 4. **Track Progress:** Use `/now` to see current cycle, `/done` to mark complete
1906
- 5. **Monitor Quality:** agent-quality will continuously validate ontology alignment
1907
-
1908
- **Ready to begin? Type `/next` to start Cycle 1!**