oneie 3.6.14 → 3.6.15

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 (312) hide show
  1. package/.claude/agents/agent-director.md +6 -6
  2. package/.claude/agents/agent-onboard.md +8 -8
  3. package/.claude/commands/cascade.md +49 -20
  4. package/.claude/commands/create.md +397 -0
  5. package/.claude/commands/npx.md +64 -113
  6. package/.claude/commands/one.md +10 -28
  7. package/.claude/commands/plan.md +65 -65
  8. package/.claude/commands/push.md +63 -452
  9. package/.claude/commands/release.md +26 -395
  10. package/.claude/hooks/README-knowledge-hooks.md +4 -4
  11. package/.claude/hooks/README.md +13 -13
  12. package/.claude/hooks/clean-root-markdown.sh +73 -0
  13. package/.claude/hooks/track-changes.sh +101 -0
  14. package/.claude/skills/ontology/README.md +1 -1
  15. package/CLAUDE.md +38 -25
  16. package/one/README.md +3 -3
  17. package/one/connections/documentation.md +1 -1
  18. package/one/connections/inference.md +9 -9
  19. package/one/connections/workflow-copy.md +1 -1
  20. package/one/connections/workflow-onboarding.md +85 -85
  21. package/one/connections/workflow.md +1 -1
  22. package/one/groups/groups.md +31 -31
  23. package/one/groups/one.md +26 -26
  24. package/one/knowledge/100-inference-quick-reference.md +38 -38
  25. package/one/knowledge/ai-token-crypto-analysis-framework.md +15 -15
  26. package/one/knowledge/archived/ontology.old.md +11 -11
  27. package/one/knowledge/audit-agent-onboard-alignment.md +1 -1
  28. package/one/knowledge/cli-claude-handoff.md +36 -36
  29. package/one/knowledge/crypto-analysis-strategy.md +8 -8
  30. package/one/knowledge/event-driven-documentation.md +270 -0
  31. package/one/knowledge/knowledge.md +28 -28
  32. package/one/knowledge/lessons-website-building-focus.md +1 -1
  33. package/one/knowledge/metadata-system.md +11 -11
  34. package/one/knowledge/ontology-crypto.md +19 -19
  35. package/one/knowledge/ontology-documentation.md +7 -7
  36. package/one/knowledge/ontology-engineering.md +3 -3
  37. package/one/knowledge/ontology-files.yaml +3 -3
  38. package/one/knowledge/ontology-release.md +3 -3
  39. package/one/knowledge/ontology.md +10 -10
  40. package/one/knowledge/ontology.yaml +7 -7
  41. package/one/knowledge/score.md +4 -4
  42. package/one/knowledge/todo-template.md +55 -55
  43. package/one/knowledge/todo.md +55 -55
  44. package/one/knowledge/typescript-patterns.md +1 -1
  45. package/one/knowledge/x402-research.md +1 -1
  46. package/one/people/anthony-o-connell.md +19 -19
  47. package/one/people/people.md +1 -1
  48. package/one/things/IMPLEMENTATION_STATUS.md +12 -12
  49. package/one/things/agents/agent-backend.md +4 -4
  50. package/one/things/agents/agent-clean.md +16 -16
  51. package/one/things/agents/agent-deploy.md +6 -6
  52. package/one/things/agents/agent-sales.md +6 -6
  53. package/one/things/claude/agents/nextjs-15-specialist.md +1 -1
  54. package/one/things/demo-design-summary.md +6 -6
  55. package/one/things/examples/enterprise/crm-saas.md +24 -24
  56. package/one/things/features/2-1-dataprovider-interface.md +6 -6
  57. package/one/things/features/2-3-effectts-services.md +7 -7
  58. package/one/things/features/2-4-react-hooks.md +4 -4
  59. package/one/things/features/2-cli.md +3 -3
  60. package/one/things/features/2-design.md +2 -2
  61. package/one/things/features/use-one-backend.md +2 -2
  62. package/one/things/files.yaml +3 -3
  63. package/one/things/implementation/backend-guide.md +1 -1
  64. package/one/things/interface.md +8 -8
  65. package/one/things/landing-page-implementation.md +10 -10
  66. package/one/things/legal/privacy-policy.md +2 -2
  67. package/one/things/legal/terms-of-service.md +6 -6
  68. package/one/things/master-workflow-plan.md +16 -16
  69. package/one/things/plans/0-in-sync.md +136 -0
  70. package/one/things/plans/SIMPLIFICATION-SUMMARY.md +4 -4
  71. package/one/things/plans/ai-elements.md +7 -7
  72. package/one/things/plans/ai-integration.md +3 -3
  73. package/one/things/plans/ai-sdk.md +8 -8
  74. package/one/things/plans/backend-cleanup-quickstart.md +3 -3
  75. package/one/things/plans/backend-ontology-conformance.md +40 -40
  76. package/one/things/plans/backend-status.md +6 -6
  77. package/one/things/plans/backend-target-structure.md +2 -2
  78. package/one/things/plans/backend.md +1 -1
  79. package/one/things/plans/better-auth-any-backend.md +1 -1
  80. package/one/things/plans/components.md +32 -32
  81. package/one/things/plans/convex-agents.md +8 -8
  82. package/one/things/plans/deep-researcher-agent.md +1 -1
  83. package/one/things/plans/development-plan.md +49 -49
  84. package/one/things/plans/development-workflow.md +1 -1
  85. package/one/things/plans/effect.md +6 -6
  86. package/one/things/plans/execution-strategy.md +61 -61
  87. package/one/things/plans/existing-infrastructure.md +1 -1
  88. package/one/things/plans/frontend-effects.md +10 -10
  89. package/one/things/plans/group-folder-multi-tenancy.md +95 -95
  90. package/one/things/plans/integrate-frontend-and-backend.md +9 -9
  91. package/one/things/plans/onboarding.md +2 -2
  92. package/one/things/plans/ontology-6-dimensions.md +7 -7
  93. package/one/things/plans/ontology-compliance-audit.md +1 -1
  94. package/one/things/plans/phase-1-foundation.md +12 -12
  95. package/one/things/plans/readme-backend-cleanup.md +3 -3
  96. package/one/things/plans/sequence.md +129 -129
  97. package/one/things/plans/skills.md +30 -30
  98. package/one/things/plans/start-new.md +5 -5
  99. package/one/things/plans/sync-checklist.md +4 -4
  100. package/one/things/plans/unified-implementation-plan.md +1 -1
  101. package/one/things/plans/update-demos.md +53 -53
  102. package/one/things/plans/use-our-backend.md +30 -30
  103. package/one/things/plans/wave1-onboarding-100-inferences.md +152 -152
  104. package/one/things/plans/wave1-onboarding-vision.md +7 -7
  105. package/one/things/plans/wave1-orchestration-summary.md +67 -67
  106. package/one/things/plans/wave1-specialist-assignments.md +121 -121
  107. package/one/things/products/ontology.md +2 -2
  108. package/one/things/repos/all-repos.md +0 -0
  109. package/one/things/structure.md +2 -2
  110. package/one/things/tests/2-1-dataprovider-interface.md +2 -2
  111. package/one/things/tests/2-1-test-analysis.md +1 -1
  112. package/one/things/things.md +3 -3
  113. package/one/things/todo-acp-integration.md +33 -33
  114. package/one/things/todo-ai.md +37 -37
  115. package/one/things/todo-api.md +114 -114
  116. package/one/things/todo-assignment.md +39 -39
  117. package/one/things/todo-buy-chatgpt.md +113 -113
  118. package/one/things/todo-components.md +211 -211
  119. package/one/things/todo-ecommerce-frontend.md +82 -82
  120. package/one/things/todo-ecommerce.md +36 -36
  121. package/one/things/todo-effects.md +36 -36
  122. package/one/things/todo-frontend-effects.md +25 -25
  123. package/one/things/todo-landing-page.md +63 -63
  124. package/one/things/todo-mail.md +73 -73
  125. package/one/things/todo-master-plan.md +32 -32
  126. package/one/things/todo-onboard.md +48 -48
  127. package/one/things/todo-one-ie.md +48 -48
  128. package/one/things/todo-page.md +42 -42
  129. package/one/things/todo-plans.md +48 -48
  130. package/one/things/todo-refactoring-plan.md +5 -5
  131. package/one/things/todo-sequence.md +98 -98
  132. package/one/things/todo-use-our-backend.md +219 -219
  133. package/one/things/todo-x402.md +116 -116
  134. package/one/things/video-script-ontology.md +20 -20
  135. package/package.json +7 -2
  136. package/.claude/commands/build.md +0 -293
  137. package/one/.claude/settings.local.json +0 -11
  138. package/one/.obsidian/app.json +0 -8
  139. package/one/.obsidian/appearance.json +0 -1
  140. package/one/.obsidian/community-plugins.json +0 -5
  141. package/one/.obsidian/core-plugins.json +0 -33
  142. package/one/.obsidian/plugins/easy-bake/main.js +0 -361
  143. package/one/.obsidian/plugins/easy-bake/manifest.json +0 -11
  144. package/one/.obsidian/plugins/easy-bake/styles.css +0 -10
  145. package/one/.obsidian/plugins/editing-toolbar/data.json +0 -328
  146. package/one/.obsidian/plugins/editing-toolbar/main.js +0 -12
  147. package/one/.obsidian/plugins/editing-toolbar/manifest.json +0 -10
  148. package/one/.obsidian/plugins/editing-toolbar/styles.css +0 -1338
  149. package/one/.obsidian/plugins/terminal/data.json +0 -154
  150. package/one/.obsidian/plugins/terminal/main.js +0 -197
  151. package/one/.obsidian/plugins/terminal/manifest.json +0 -14
  152. package/one/.obsidian/plugins/terminal/styles.css +0 -32
  153. package/one/.obsidian/workspace.json +0 -266
  154. package/one/events/2024-10-14-deployment-plan.md +0 -330
  155. package/one/events/2024-10-14-deployment-success.md +0 -447
  156. package/one/events/2024-10-14-final-sync-complete.md +0 -250
  157. package/one/events/2024-10-14-release-v2.0.6.md +0 -414
  158. package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -495
  159. package/one/events/2024-10-15-handoff-to-clean.md +0 -347
  160. package/one/events/2024-10-15-package-manager-tests.md +0 -442
  161. package/one/events/2024-10-15-release-command-complete.md +0 -416
  162. package/one/events/2025-10-15-private-files-secured.md +0 -359
  163. package/one/events/2025-10-15-unignore-public-group-docs.md +0 -298
  164. package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +0 -335
  165. package/one/events/ALIGNMENT_SUMMARY.md +0 -280
  166. package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -280
  167. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -654
  168. package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +0 -598
  169. package/one/events/BEFORE_AFTER_COMPARISON.md +0 -978
  170. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -372
  171. package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -430
  172. package/one/events/CLAUDE copy.md +0 -897
  173. package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -308
  174. package/one/events/CONNECTIONS_DEMO.md +0 -519
  175. package/one/events/CREATE-WEBSITE.md +0 -460
  176. package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -522
  177. package/one/events/CUSTOM-DOMAIN.md +0 -375
  178. package/one/events/DELIVERABLES.md +0 -450
  179. package/one/events/DEMO-GROUPS-PAGE.md +0 -410
  180. package/one/events/DEMO-TESTING-SUMMARY.md +0 -536
  181. package/one/events/DEMO_COMPONENTS.md +0 -505
  182. package/one/events/DEMO_HOOKS_INDEX.md +0 -352
  183. package/one/events/DEMO_INFRASTRUCTURE.md +0 -923
  184. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -588
  185. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -449
  186. package/one/events/DEMO_QUICK_REFERENCE.md +0 -459
  187. package/one/events/DEMO_SETUP.md +0 -494
  188. package/one/events/DEPLOYMENT copy.md +0 -444
  189. package/one/events/DEPLOYMENT.md +0 -196
  190. package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -267
  191. package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -243
  192. package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -594
  193. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -439
  194. package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -381
  195. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -214
  196. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -414
  197. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -753
  198. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -941
  199. package/one/events/EFFECT_TS_API_PATTERN.md +0 -496
  200. package/one/events/FEATURE-2-4-COMPLETE.md +0 -320
  201. package/one/events/FEATURE_2_3_COMPLETE.md +0 -593
  202. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -241
  203. package/one/events/GROUPS-MIGRATION.md +0 -643
  204. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -432
  205. package/one/events/HANDOFF.md +0 -331
  206. package/one/events/HOOKS-DEMO.md +0 -459
  207. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -521
  208. package/one/events/IMPLEMENTATION_SUMMARY.md +0 -547
  209. package/one/events/INSTALL-TESTS.md +0 -311
  210. package/one/events/INSTALLATION_FOLDERS.md +0 -534
  211. package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -223
  212. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -437
  213. package/one/events/INTEGRATION-ARCHITECTURE.md +0 -579
  214. package/one/events/INTEGRATION-CHECKLIST.md +0 -1252
  215. package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2641
  216. package/one/events/INTEGRATION-SUMMARY.md +0 -671
  217. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -684
  218. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -660
  219. package/one/events/LANDING-PAGE-QUICKSTART.md +0 -425
  220. package/one/events/LICENSE.md +0 -107
  221. package/one/events/MCP-CONFIGURATION.md +0 -354
  222. package/one/events/MCP-SETUP-COMPLETE.md +0 -223
  223. package/one/events/MIGRATION-REPORT.md +0 -453
  224. package/one/events/MIGRATION.md +0 -87
  225. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1645
  226. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -591
  227. package/one/events/NODE-UPGRADE.md +0 -129
  228. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -416
  229. package/one/events/ONTOLOGY-HOOKS-README.md +0 -718
  230. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -383
  231. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -543
  232. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -473
  233. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -504
  234. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -221
  235. package/one/events/PACKAGE-STRUCTURE.md +0 -328
  236. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -349
  237. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -585
  238. package/one/events/QA-CHECKLIST.md +0 -692
  239. package/one/events/QUICK-START-ONTOLOGY.md +0 -426
  240. package/one/events/README-archived.md +0 -537
  241. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -657
  242. package/one/events/SEARCH_DEMO_DELIVERY.md +0 -433
  243. package/one/events/SEARCH_DEMO_SUMMARY.md +0 -321
  244. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -399
  245. package/one/events/SECURITY-AUDIT-FIXES.md +0 -394
  246. package/one/events/SECURITY-SCAN-COMPLETE.md +0 -299
  247. package/one/events/SHOP-BUILD-STATUS.md +0 -132
  248. package/one/events/SHOP-PREMIUM-UPDATE.md +0 -165
  249. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -280
  250. package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -317
  251. package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -377
  252. package/one/events/STRIPE-INTEGRATION.md +0 -432
  253. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -447
  254. package/one/events/STRIPE-SETUP-GUIDE.md +0 -480
  255. package/one/events/TEST-PLAN-INDEX.md +0 -364
  256. package/one/events/TEST-PLAN.md +0 -1435
  257. package/one/events/TEST-SUMMARY.md +0 -411
  258. package/one/events/TESTING-DELIVERY.txt +0 -372
  259. package/one/events/TESTS-QUICK-REF.md +0 -280
  260. package/one/events/TRANSITIONS-QUICK-START.md +0 -159
  261. package/one/events/TRANSPARENCY-FIXES.md +0 -293
  262. package/one/events/TYPESCRIPT_FIXES.md +0 -170
  263. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
  264. package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -359
  265. package/one/events/VIEW-TRANSITIONS.md +0 -446
  266. package/one/events/agent-director-enhancement-summary.md +0 -404
  267. package/one/events/agent-onboard-implementation-summary.md +0 -475
  268. package/one/events/agent-ontology-alignment-completion.md +0 -263
  269. package/one/events/backend-integration-tests.md +0 -624
  270. package/one/events/backend-structure-diagram.txt +0 -393
  271. package/one/events/backend-structure-summary.txt +0 -269
  272. package/one/events/clean-agent-ontology-cleanup-report.md +0 -371
  273. package/one/events/clean-agent-todo-analysis-summary.md +0 -336
  274. package/one/events/cloudflare-automation-complete.md +0 -350
  275. package/one/events/cloudflare-pages-infrastructure-setup.md +0 -282
  276. package/one/events/contact-page-complete.md +0 -316
  277. package/one/events/convex-analysis-index.md +0 -322
  278. package/one/events/convex-structure-analysis.md +0 -718
  279. package/one/events/deployment-installation-folders.md +0 -178
  280. package/one/events/deployment-ops-summary.md +0 -386
  281. package/one/events/deployment-verification.md +0 -366
  282. package/one/events/design-spec-complete.md +0 -226
  283. package/one/events/documentation-audit-index.md +0 -473
  284. package/one/events/documentation-audit-summary.md +0 -417
  285. package/one/events/documentation-improvement-roadmap.md +0 -906
  286. package/one/events/documentation-standards-compliance-report.md +0 -538
  287. package/one/events/events.md +0 -563
  288. package/one/events/frontend-effects-complete.md +0 -584
  289. package/one/events/frontend-effects-orchestration.md +0 -1356
  290. package/one/events/frontend-effects-risk-register.md +0 -1055
  291. package/one/events/frontend-effects-week1-assignments.md +0 -1594
  292. package/one/events/hook-ontology-alignment-summary.md +0 -528
  293. package/one/events/installation-folders-workflow-integration.md +0 -458
  294. package/one/events/landing-page-generator.md +0 -476
  295. package/one/events/legal-assessment-2025-10-16.md +0 -1917
  296. package/one/events/onboarding-implementation-complete.md +0 -523
  297. package/one/events/ontology-test-examples.md +0 -580
  298. package/one/events/phase1-backend-implementation-complete.md +0 -536
  299. package/one/events/release.md +0 -272
  300. package/one/events/root-cleanup-alignment-report.md +0 -265
  301. package/one/events/separate-implementation-status.md +0 -555
  302. package/one/events/session-summary-2025-10-18.md +0 -366
  303. package/one/events/skills-complete.md +0 -351
  304. package/one/events/skills-infer-6-10-summary.md +0 -70
  305. package/one/events/skills-phase1-complete.md +0 -281
  306. package/one/events/structural-analysis-architecture-vs-plans.md +0 -559
  307. package/one/events/test-dashboard.md +0 -363
  308. package/one/events/test-index.md +0 -379
  309. package/one/events/test-report-ontology.md +0 -600
  310. package/one/events/testing-summary.md +0 -362
  311. package/one/events/todo-refactoring-complete.md +0 -408
  312. package/one/events/wave1-backend-implementation-complete.md +0 -698
@@ -1,897 +0,0 @@
1
- # CLAUDE.md
2
-
3
- This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
-
5
- ## Architecture Overview
6
-
7
- **ONE Platform** is a multi-tenant AI-native platform built on a **6-dimension ontology** that models reality through: Groups, People, Things, Connections, Events, and Knowledge. The architecture separates concerns into three distinct layers:
8
-
9
- ```
10
- Web (Astro + React) → Backend (Convex) → 6-Dimension Ontology
11
- ```
12
-
13
- **Key Repositories:**
14
-
15
- - `/web` - Main web application (Astro 5, React 19, Tailwind v4)
16
- - `/backend` - Headless Convex backend (6-dimension ontology, auth, real-time)
17
- - `/apps` - Example applications and integrations
18
- - `/one` - Comprehensive platform documentation (41 files, 8 layers)
19
-
20
- ## Planning Paradigm: Inference-Based Execution
21
-
22
- **CRITICAL:** We don't plan in days. We plan in **inference passes** (Infer 1-100).
23
-
24
- ### Why Inference-Based Planning?
25
-
26
- Traditional planning uses time estimates ("Day 1-3", "Week 2"), which are:
27
- - Inaccurate (time varies wildly)
28
- - Context-heavy (requires re-planning)
29
- - Sequential (blocks parallel work)
30
-
31
- Inference-based planning uses **sequence positions** ("Infer 1-100"), which are:
32
- - Precise (each inference is a concrete step)
33
- - Context-light (< 3000 tokens per inference)
34
- - Parallel-friendly (inferences can run concurrently when dependencies allow)
35
-
36
- ### The 100-Inference Template
37
-
38
- Every feature follows a **100-inference sequence** (see `one/knowledge/todo.md`):
39
-
40
- ```
41
- Infer 1-10: Foundation & Setup (validate, map, plan)
42
- Infer 11-20: Backend Schema & Services (database, business logic)
43
- Infer 21-30: Frontend Pages & Components (UI, interactions)
44
- Infer 31-40: Integration & Connections (external systems)
45
- Infer 41-50: Authentication & Authorization (security)
46
- Infer 51-60: Knowledge & RAG (embeddings, search)
47
- Infer 61-70: Quality & Testing (unit, integration, e2e)
48
- Infer 71-80: Design & Wireframes (UI/UX, accessibility)
49
- Infer 81-90: Performance & Optimization (speed, efficiency)
50
- Infer 91-100: Deployment & Documentation (production, guides)
51
- ```
52
-
53
- ### How to Use Inference Planning
54
-
55
- 1. **Start with the sequence:** Read `one/knowledge/todo.md` to understand the flow
56
- 2. **Do the next thing:** Execute the next inference in sequence
57
- 3. **Use hooks for context:**
58
- - `.claude/hooks/todo` loads current inference context automatically
59
- - `.claude/hooks/done` marks complete and advances to next
60
- 4. **Adapt as needed:** Skip irrelevant inferences, add extras for complex features
61
- 5. **Run in parallel:** Execute independent inferences concurrently (e.g., Backend + Frontend after schema defined)
62
-
63
- ### Commands for Inference Workflow
64
-
65
- ```
66
- ██████╗ ███╗ ██╗███████╗
67
- ██╔═══██╗████╗ ██║██╔════╝
68
- ██║ ██║██╔██╗ ██║█████╗
69
- ██║ ██║██║╚██╗██║██╔══╝
70
- ╚██████╔╝██║ ╚████║███████╗
71
- ╚═════╝ ╚═╝ ╚═══╝╚══════╝
72
-
73
- Make Your Ideas Real
74
-
75
- https://one.ie • npx oneie
76
-
77
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
78
- /now /next /todo /done
79
- /build /design /deploy /see
80
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
81
- ```
82
-
83
- **Workflow Commands:**
84
- - `/now` - Display current inference and what you're working on
85
- - `/next` - Advance to next inference and load context
86
- - `/todo` - View complete task list (100-inference sequence)
87
- - `/done` - Mark current inference complete and advance
88
-
89
- **Creation Commands:**
90
- - `/build` - Build features with AI specialists
91
- - `/design` - Create wireframes & UI components
92
- - `/deploy` - Ship to production
93
-
94
- **Insight Commands:**
95
- - `/see` - View analytics, refine vision, explore courses
96
-
97
- ### Benefits
98
-
99
- - **98% context reduction:** 150k tokens → 3k tokens per inference
100
- - **5x faster execution:** 115s → 20s per feature average
101
- - **Flawless execution:** "Do the next thing, perfectly"
102
- - **Continuous learning:** Lessons captured after each inference
103
- - **Parallel execution:** Multiple inferences running concurrently
104
-
105
- **Golden Rule:** Plan in inferences, not days. Where in the sequence does each thing belong?
106
-
107
- ## The 6-Dimension Ontology (Core Data Model)
108
-
109
- **CRITICAL:** Every feature MUST map to these 6 dimensions. If it doesn't, rethink your approach.
110
-
111
- ### 1. groups
112
-
113
- Hierarchical containers for collaboration - who belongs where and at what level
114
-
115
- - **Infinite nesting:** Groups can contain groups (parent → child → grandchild...)
116
- - **6 group types:** friend_circle, business, community, dao, government, organization
117
- - **Data scoping:** All dimensions (things, connections, events, knowledge) scoped to groupId
118
- - **Flexible scale:** From friend circles (2 people) to governments (billions of people)
119
- - **Multi-tenancy:** Each group has independent data, billing, quotas, and customization
120
- - **Hierarchical access:** Parent groups can access child group data (configurable)
121
- - **Plans:** starter, pro, enterprise (at organization level)
122
-
123
- ### 2. people
124
-
125
- Authorization & governance - who can do what
126
-
127
- - **4 roles**: platform_owner, org_owner, org_user, customer
128
- - Represented as things with `type: 'creator'` and `properties.role`
129
- - Every action has an actor (person)
130
-
131
- ### 3. things (entities table)
132
-
133
- All nouns in the system - users, agents, content, tokens, courses
134
-
135
- - **66+ entity types** defined in schema
136
- - Flexible `properties` field for type-specific data
137
- - Status lifecycle: draft → active → published → archived
138
- - Every thing belongs to a group (scoped via groupId)
139
-
140
- ### 4. connections
141
-
142
- All relationships between entities
143
-
144
- - **25+ connection types**: owns, authored, holds_tokens, enrolled_in, etc.
145
- - **7 consolidated types** with rich metadata: transacted, communicated, delegated, etc.
146
- - Bidirectional with temporal validity (validFrom/validTo)
147
- - Scoped to groups (via groupId)
148
-
149
- ### 5. events
150
-
151
- All actions and state changes over time
152
-
153
- - **67+ event types** including inference and blockchain events
154
- - Complete audit trail with actor (person), target (thing), timestamp
155
- - **Consolidated event families** with metadata.protocol for multi-protocol support
156
- - Scoped to groups (via groupId)
157
-
158
- ### 6. knowledge
159
-
160
- Labels, embeddings, and semantic search
161
-
162
- - Vector storage for RAG (Retrieval-Augmented Generation)
163
- - Linked to things via junction table
164
- - Supports categorization and taxonomy
165
- - Scoped to groups (via groupId)
166
-
167
- **Golden Rule:** If you can't map a feature to these 6 dimensions, you're thinking about it wrong.
168
-
169
- **Implementation:** The 6 dimensions are implemented using 5 database tables (groups, things, connections, events, knowledge), with people represented as things with role metadata.
170
-
171
- **Schema Structure:**
172
-
173
- ```typescript
174
- // groups table
175
- {
176
- _id: Id<"groups">,
177
- name: string,
178
- type: "friend_circle" | "business" | "community" | "dao" | "government" | "organization",
179
- parentGroupId?: Id<"groups">, // For hierarchical nesting
180
- properties: {
181
- description?: string,
182
- plan?: "starter" | "pro" | "enterprise",
183
- settings?: any,
184
- // ... type-specific fields
185
- },
186
- status: "draft" | "active" | "archived",
187
- createdAt: number,
188
- updatedAt: number
189
- }
190
-
191
- // All other dimensions include groupId:
192
- things → groupId: Id<"groups">
193
- connections → groupId: Id<"groups">
194
- events → groupId: Id<"groups">
195
- knowledge → groupId: Id<"groups">
196
- ```
197
-
198
- ## Installation Folders
199
-
200
- **NEW:** Each ONE installation can have a top-level folder for organization-specific customization.
201
-
202
- ### Architecture
203
-
204
- ```
205
- /
206
- ├── one/ # Global templates (everyone uses these)
207
- │ └── knowledge/
208
- │ └── ontology.md # Universal 6-dimension ontology
209
- ├── <installation-name>/ # Customer-specific overrides
210
- │ ├── knowledge/
211
- │ │ ├── brand-guide.md # Custom branding only
212
- │ │ ├── features.md # Organization features
213
- │ │ └── rules.md # Org-specific rules
214
- │ └── groups/ # Hierarchical group docs
215
- ├── web/
216
- ├── backend/
217
- └── .claude/
218
- ```
219
-
220
- ### What Goes Where
221
-
222
- **Global (everyone uses):**
223
- - `/one/knowledge/ontology.md` - Universal 6-dimension ontology
224
- - `/one/knowledge/architecture.md` - Platform architecture
225
- - All `/one/*` documentation
226
-
227
- **Installation-specific (per organization):**
228
- - Brand identity (colors, logos, fonts, tone)
229
- - Organization features and capabilities
230
- - Group-specific documentation
231
- - Custom business rules
232
-
233
- ### Key Principle
234
-
235
- **Data isolation happens via `groupId` in the database, NOT via schema customization.**
236
-
237
- The 6-dimension ontology is universal and flexible enough for all use cases.
238
-
239
- ### Initialize Installation
240
-
241
- ```bash
242
- npx oneie init
243
- # Prompts for organization name and installation identifier
244
- # Creates folder structure and updates .env.local
245
- ```
246
-
247
- ### Usage
248
-
249
- **Add installation-specific branding:**
250
- ```bash
251
- mkdir -p /acme/knowledge
252
- echo "# Acme Brand Guide" > /acme/knowledge/brand-guide.md
253
- ```
254
-
255
- **Document organization features:**
256
- ```bash
257
- echo "# Acme Features" > /acme/knowledge/features.md
258
- ```
259
-
260
- **Add group-specific docs:**
261
- ```bash
262
- mkdir -p /acme/groups/engineering
263
- echo "# Engineering Practices" > /acme/groups/engineering/practices.md
264
- ```
265
-
266
- ### Important Distinctions
267
-
268
- - **Installation folder** = Filesystem customization for branding and features
269
- - **Database groups** = Runtime data isolation per group (via `groupId`)
270
- - One installation can serve many database groups
271
- - **ONE ontology** = Universal schema shared by all installations
272
-
273
- ### Security
274
-
275
- - Never store secrets in installation folders
276
- - Use `.env.local` for sensitive configuration
277
- - Installation folders excluded from git by default
278
-
279
- ## Development Commands
280
-
281
- ### Frontend Development
282
-
283
- ```bash
284
- cd web/
285
-
286
- # Development server (localhost:4321)
287
- bun run dev
288
-
289
- # Build for production (includes type checking)
290
- bun run build
291
-
292
- # Type checking only
293
- bunx astro check
294
-
295
- # Generate content collection types
296
- bunx astro sync
297
-
298
- # Linting
299
- bun run lint
300
-
301
- # Formatting
302
- bun run format
303
- ```
304
-
305
- ### Backend Development
306
-
307
- ```bash
308
- cd backend/
309
-
310
- # Start Convex dev server (watch mode)
311
- npx convex dev
312
-
313
- # Deploy to production
314
- npx convex deploy
315
-
316
- # Run query from CLI
317
- npx convex run queries/entities:list '{"type": "user"}'
318
-
319
- # View function logs
320
- npx convex logs --history 50 --success
321
- ```
322
-
323
- ### Testing
324
-
325
- ```bash
326
- cd web/
327
-
328
- # Run all tests
329
- bun test
330
-
331
- # Run auth tests specifically
332
- bun test test/auth
333
-
334
- # Watch mode
335
- bun test --watch
336
- ```
337
-
338
- **Test Coverage:**
339
-
340
- - 50+ test cases for authentication (6 methods: email/password, OAuth, magic links, password reset, email verification, 2FA)
341
- - Integration tests verify frontend → backend auth flows
342
- - Backend connection: `https://shocking-falcon-870.convex.cloud`
343
-
344
- ## Technology Stack
345
-
346
- ### Frontend Layer
347
-
348
- - **Astro 5.14+**: Static site generation + server-side rendering
349
- - **React 19**: Islands architecture with selective hydration
350
- - **Tailwind CSS v4**: CSS-based configuration (no JS config)
351
- - **shadcn/ui**: 50+ pre-installed accessible components
352
- - **TypeScript 5.9+**: Strict mode with path aliases
353
- - **Better Auth**: Multi-method authentication
354
-
355
- ### Backend Layer
356
-
357
- - **Convex**: Real-time database with typed functions
358
- - **Better Auth + Convex Adapter**: Authentication system
359
- - **@convex-dev/resend**: Email component for transactional emails
360
- - **@convex-dev/rate-limiter**: Brute force protection
361
-
362
- ### Deployment
363
-
364
- - **Frontend**: Cloudflare Pages with React 19 SSR (using `react-dom/server.edge`)
365
- - **Backend**: Convex Cloud (`shocking-falcon-870.convex.cloud`)
366
- - **Edge Runtime**: Cloudflare Workers compatibility
367
-
368
- ## Root Directory File Policy
369
-
370
- **CRITICAL:** Only these markdown files belong in the root directory:
371
- - **README.md** - Platform overview and quick start
372
- - **LICENSE.md** - Legal terms and conditions
373
- - **SECURITY.md** - Security policy and vulnerability reporting
374
- - **CLAUDE.md** - Claude Code instructions (this file)
375
- - **AGENTS.md** - AI agent coordination and rules
376
-
377
- All other documentation belongs in the `one/` directory following the 6-dimension ontology:
378
- - **one/events/** - Deployment plans, release notes, test results, agent summaries
379
- - **one/knowledge/** - Architecture, patterns, rules, guides
380
- - **one/connections/** - Protocols, workflows, integrations
381
- - **one/things/** - Specifications, plans, agent definitions
382
- - **one/people/** - Roles, governance, organization
383
-
384
- **Why:** This keeps the root clean and scannable, while organizing all documentation by ontology dimensions.
385
-
386
- ## File Structure
387
-
388
- ```
389
- ONE/
390
- ├── web/ # Main Astro application
391
- │ ├── src/
392
- │ │ ├── pages/ # File-based routing
393
- │ │ ├── components/ # React components + shadcn/ui
394
- │ │ ├── layouts/ # Page layouts
395
- │ │ ├── content/ # Content collections (blog, etc.)
396
- │ │ ├── lib/ # Utilities
397
- │ │ └── styles/ # Global CSS + Tailwind config
398
- │ ├── convex/ # Convex schema and functions (legacy)
399
- │ └── test/ # Test suites
400
- │
401
- ├── backend/ # Headless Convex backend
402
- │ └── convex/
403
- │ ├── schema.ts # 6-dimension ontology schema (5 tables)
404
- │ ├── auth.ts # Better Auth configuration
405
- │ ├── queries/ # Read operations
406
- │ ├── mutations/ # Write operations
407
- │ └── _generated/ # Auto-generated types
408
- │
409
- ├── one/ # Platform documentation (41 files)
410
- │ ├── connections/ # Ontology, protocols, patterns
411
- │ ├── things/ # Architecture, specifications
412
- │ ├── events/ # Event specifications, deployment history
413
- │ ├── knowledge/ # RAG, AI, implementation
414
- │ └── people/ # Roles, governance, organization
415
- │
416
- ├── .claude/ # Claude Code configuration
417
- │ ├── agents/ # AI agent definitions (agent-ops, etc.)
418
- │ └── commands/ # Slash commands (/release, etc.)
419
- │
420
- └── apps/ # Example applications
421
- ├── one/ # Assembly repository (synced from root)
422
- ├── eliza/ # ElizaOS integration
423
- └── stack/ # Stack Auth example
424
- ```
425
-
426
- ## Development Workflow (6-Phase Process)
427
-
428
- Before implementing ANY feature, follow this workflow defined in `one/connections/workflow.md`:
429
-
430
- ### Phase 1: UNDERSTAND
431
-
432
- 1. Read `/one/knowledge/ontology.md` (universal 6-dimension ontology)
433
- 2. Read `web/AGENTS.md` (Convex patterns and quick reference)
434
- 3. Read `/one/knowledge/rules.md` (golden rules for AI agents)
435
- 4. Check installation folder for branding: `/<installation>/knowledge/brand-guide.md` (if exists)
436
- 5. Identify feature category (entity, relationship, action, query)
437
- 6. Find similar patterns in existing code
438
-
439
- ### Phase 2: MAP TO ONTOLOGY
440
-
441
- 1. Identify **groups** (which group owns this? any parent/child relationships?)
442
- 2. Identify **people** (who can access/modify this?)
443
- 3. Identify **things** (what entities are involved?)
444
- 4. Identify **connections** (how do they relate?)
445
- 5. Identify **events** (what actions need logging?)
446
- 6. Identify **knowledge** (what needs to be learned/searched?)
447
- 7. Check if group has specific docs in `/<installation-name>/groups/<group-slug>/`
448
-
449
- ### Phase 3: DESIGN SERVICES
450
-
451
- 1. Design Effect.ts service (pure business logic)
452
- 2. Define types (no `any` except in entity `properties`)
453
- 3. Define errors (tagged unions with `_tag`)
454
- 4. Plan dependencies and layers
455
-
456
- ### Phase 4: IMPLEMENT BACKEND
457
-
458
- 1. Update schema if needed (`backend/convex/schema.ts`)
459
- 2. Create Convex mutations/queries (thin wrappers)
460
- 3. Implement Effect.ts services (`convex/services/`)
461
- 4. Add proper error handling
462
-
463
- ### Phase 5: BUILD FRONTEND
464
-
465
- 1. Create React components (`src/components/features/`)
466
- 2. Use shadcn/ui components
467
- 3. Add loading/error states
468
- 4. Create Astro pages with SSR data fetching
469
- 5. Add `client:load` for interactive components
470
-
471
- ### Phase 6: TEST & DOCUMENT
472
-
473
- 1. Write unit tests for services
474
- 2. Write integration tests for full flows
475
- 3. Update documentation:
476
- - **Platform-wide features:** Add to `/one/<dimension>/`
477
- - **Organization features:** Add to `/<installation-name>/knowledge/features.md`
478
- - **Group-specific practices:** Add to `/<installation-name>/groups/<group-slug>/`
479
- 4. Run type checking (`bunx astro check`)
480
-
481
- ## Key Patterns and Best Practices
482
-
483
- ### Convex Query Pattern
484
-
485
- ```typescript
486
- // backend/convex/queries/entities.ts
487
- import { query } from "./_generated/server";
488
- import { v } from "convex/values";
489
-
490
- export const list = query({
491
- args: { type: v.string() },
492
- handler: async (ctx, args) => {
493
- return await ctx.db
494
- .query("entities")
495
- .withIndex("by_type", (q) => q.eq("type", args.type))
496
- .collect();
497
- },
498
- });
499
- ```
500
-
501
- ### Convex Mutation Pattern
502
-
503
- ```typescript
504
- // backend/convex/mutations/entities.ts
505
- import { mutation } from "./_generated/server";
506
- import { v } from "convex/values";
507
-
508
- export const create = mutation({
509
- args: {
510
- groupId: v.id("groups"),
511
- type: v.string(),
512
- name: v.string(),
513
- properties: v.any(),
514
- },
515
- handler: async (ctx, args) => {
516
- const entityId = await ctx.db.insert("things", {
517
- groupId: args.groupId,
518
- type: args.type,
519
- name: args.name,
520
- properties: args.properties,
521
- status: "draft",
522
- createdAt: Date.now(),
523
- updatedAt: Date.now(),
524
- });
525
-
526
- // Log creation event
527
- await ctx.db.insert("events", {
528
- groupId: args.groupId,
529
- type: "entity_created",
530
- actorId: ctx.auth?.getUserIdentity()?.tokenIdentifier,
531
- targetId: entityId,
532
- timestamp: Date.now(),
533
- metadata: { entityType: args.type },
534
- });
535
-
536
- return entityId;
537
- },
538
- });
539
- ```
540
-
541
- ### Hierarchical Group Pattern
542
-
543
- ```typescript
544
- // backend/convex/mutations/groups.ts
545
- import { mutation } from "./_generated/server";
546
- import { v } from "convex/values";
547
-
548
- // Create parent group
549
- export const createOrganization = mutation({
550
- args: {
551
- name: v.string(),
552
- plan: v.optional(v.union(v.literal("starter"), v.literal("pro"), v.literal("enterprise"))),
553
- },
554
- handler: async (ctx, args) => {
555
- const groupId = await ctx.db.insert("groups", {
556
- name: args.name,
557
- type: "organization",
558
- parentGroupId: undefined, // Top-level group
559
- properties: {
560
- plan: args.plan || "starter",
561
- },
562
- status: "active",
563
- createdAt: Date.now(),
564
- updatedAt: Date.now(),
565
- });
566
- return groupId;
567
- },
568
- });
569
-
570
- // Create child group (e.g., department within organization)
571
- export const createSubGroup = mutation({
572
- args: {
573
- parentGroupId: v.id("groups"),
574
- name: v.string(),
575
- type: v.union(
576
- v.literal("friend_circle"),
577
- v.literal("business"),
578
- v.literal("community"),
579
- v.literal("dao"),
580
- v.literal("government"),
581
- v.literal("organization")
582
- ),
583
- },
584
- handler: async (ctx, args) => {
585
- // Verify parent exists
586
- const parent = await ctx.db.get(args.parentGroupId);
587
- if (!parent) throw new Error("Parent group not found");
588
-
589
- const groupId = await ctx.db.insert("groups", {
590
- name: args.name,
591
- type: args.type,
592
- parentGroupId: args.parentGroupId, // Link to parent
593
- properties: {},
594
- status: "active",
595
- createdAt: Date.now(),
596
- updatedAt: Date.now(),
597
- });
598
-
599
- return groupId;
600
- },
601
- });
602
- ```
603
-
604
- ### React Component with Convex Hooks
605
-
606
- ```typescript
607
- // frontend/src/components/features/EntityList.tsx
608
- import { useQuery } from "convex/react";
609
- import { api } from "@/convex/_generated/api";
610
-
611
- export function EntityList({ groupId, type }: { groupId: string; type: string }) {
612
- const entities = useQuery(api.queries.entities.list, { groupId, type });
613
-
614
- if (entities === undefined) return <div>Loading...</div>;
615
-
616
- return (
617
- <div>
618
- {entities.map((entity) => (
619
- <div key={entity._id}>{entity.name}</div>
620
- ))}
621
- </div>
622
- );
623
- }
624
- ```
625
-
626
- ### Astro Page with SSR
627
-
628
- ```astro
629
- ---
630
- // frontend/src/pages/groups/[groupId]/entities/[type].astro
631
- import { ConvexHttpClient } from "convex/browser";
632
- import { api } from "@/convex/_generated/api";
633
- import EntityList from "@/components/features/EntityList";
634
-
635
- const convex = new ConvexHttpClient(import.meta.env.PUBLIC_CONVEX_URL);
636
- const entities = await convex.query(api.queries.entities.list, {
637
- groupId: Astro.params.groupId,
638
- type: Astro.params.type
639
- });
640
- ---
641
-
642
- <Layout>
643
- <h1>{Astro.params.type} Entities</h1>
644
- <EntityList
645
- client:load
646
- groupId={Astro.params.groupId}
647
- type={Astro.params.type}
648
- />
649
- </Layout>
650
- ```
651
-
652
- ### Tailwind v4 Styling
653
-
654
- ```css
655
- /* src/styles/global.css */
656
- @import "tailwindcss";
657
-
658
- @theme {
659
- --color-background: 0 0% 100%;
660
- --color-foreground: 222.2 84% 4.9%;
661
- --color-primary: 222.2 47.4% 11.2%;
662
- }
663
-
664
- /* Dark mode overrides */
665
- @variant dark (.dark &);
666
-
667
- .dark {
668
- --color-background: 222.2 84% 4.9%;
669
- --color-foreground: 210 40% 98%;
670
- }
671
-
672
- /* Use colors with hsl() wrapper */
673
- .my-component {
674
- background-color: hsl(var(--color-background));
675
- color: hsl(var(--color-foreground));
676
- }
677
- ```
678
-
679
- ## Important Guidelines
680
-
681
- ### Authentication
682
-
683
- - Backend handles all auth logic (`backend/convex/auth.ts`)
684
- - Frontend uses Better Auth client hooks
685
- - 6 authentication methods supported
686
- - All auth pages under `/account/*` route
687
-
688
- ### Environment Variables
689
-
690
- **Root (.env) - CRITICAL FOR DEPLOYMENTS:**
691
-
692
- ```bash
693
- # Cloudflare Global API Key - FULL ACCESS to Cloudflare API
694
- # This provides complete programmatic access for automated deployments
695
- CLOUDFLARE_GLOBAL_API_KEY=your-cloudflare-global-api-key
696
- CLOUDFLARE_ACCOUNT_ID=your-cloudflare-account-id
697
- CLOUDFLARE_EMAIL=your-cloudflare-email
698
-
699
- # Alternative: Cloudflare API Token (scoped access)
700
- CLOUDFLARE_API_TOKEN=your-cloudflare-api-token
701
- ```
702
-
703
- **IMPORTANT:** The `CLOUDFLARE_GLOBAL_API_KEY` in `.env` provides **FULL ACCESS** to the Cloudflare API. This enables automated deployments via `./scripts/cloudflare-deploy.sh` and the `/release` command without manual intervention. Keep this key secure and never commit `.env` to version control.
704
-
705
- **Web (.env.local):**
706
-
707
- ```bash
708
- PUBLIC_CONVEX_URL=https://shocking-falcon-870.convex.cloud
709
- CONVEX_DEPLOYMENT=prod:shocking-falcon-870
710
- BETTER_AUTH_SECRET=your-secret-key
711
- BETTER_AUTH_URL=http://localhost:4321
712
- # OAuth credentials...
713
- ```
714
-
715
- **Backend (.env.local):**
716
-
717
- ```bash
718
- CONVEX_DEPLOYMENT=prod:shocking-falcon-870
719
- RESEND_API_KEY=your-resend-api-key
720
- RESEND_FROM_EMAIL=noreply@yourdomain.com
721
- ```
722
-
723
- ### Tailwind v4 Specifics
724
-
725
- - NO `tailwind.config.mjs` file - use CSS `@theme` blocks
726
- - ALWAYS use HSL format: `--color-name: 0 0% 100%`
727
- - ALWAYS wrap with `hsl()`: `hsl(var(--color-background))`
728
- - NO `@apply` directive in Tailwind v4
729
- - Use `@variant dark (.dark &)` for dark mode
730
- - Add `@source` directive to scan component files
731
-
732
- ### React 19 + Cloudflare
733
-
734
- - Uses `react-dom/server.edge` for SSR compatibility
735
- - Configured in `astro.config.mjs` with Vite alias
736
- - Deployed to Cloudflare Pages with edge rendering
737
-
738
- ### Content Collections
739
-
740
- - Blog posts in `src/content/blog/`
741
- - Type-safe schemas in `src/content/config.ts`
742
- - Run `bunx astro sync` after content changes
743
- - Use `CollectionEntry<"blog">` type (lowercase)
744
-
745
- ## Common Issues and Solutions
746
-
747
- ### Issue: TypeScript errors after schema changes
748
-
749
- ```bash
750
- cd backend && npx convex dev # Regenerate types
751
- cd web && bunx astro check
752
- ```
753
-
754
- ### Issue: Auth not working
755
-
756
- Check that BETTER_AUTH_SECRET matches between frontend and backend `.env.local` files.
757
-
758
- ### Issue: Hydration mismatch
759
-
760
- Add `client:load` directive to interactive React components used in Astro pages.
761
-
762
- ### Issue: Tailwind styles not applying
763
-
764
- Ensure colors use HSL format wrapped with `hsl()` function, not OKLCH or raw values.
765
-
766
- ### Issue: Build fails on Cloudflare
767
-
768
- Verify `react-dom/server.edge` alias is set in `astro.config.mjs` under `vite.resolve.alias`.
769
-
770
- ## Critical Reading Before Coding
771
-
772
- **For ANY feature implementation, read in this order:**
773
-
774
- 1. **`/one/knowledge/ontology.md`** - Universal 6-dimension ontology specification (Version 1.0.0)
775
- 2. **`web/AGENTS.md`** - Quick reference for Convex patterns
776
- 3. **`/one/knowledge/rules.md`** - Golden rules for AI development
777
- 4. **`/one/connections/workflow.md`** - 6-phase development workflow
778
- 5. **`/one/connections/patterns.md`** - Proven code patterns to replicate
779
- 6. **Check installation folder** (if `INSTALLATION_NAME` is set):
780
- - `/<installation-name>/knowledge/brand-guide.md` (custom branding)
781
- - `/<installation-name>/knowledge/features.md` (organization features)
782
- - `/<installation-name>/knowledge/rules.md` (org-specific rules)
783
- - `/<installation-name>/groups/<group-slug>/` (group-specific docs)
784
-
785
- **For specific feature types:**
786
-
787
- - **Protocol integration**: `one/connections/protocols.md` + specific protocol doc
788
- - **External integration**: `one/connections/communications.md` + specific integration doc
789
- - **Blockchain features**: `one/connections/cryptonetworks.md`
790
- - **Agent features**: `one/things/agentkit.md`, `one/things/copilotkit.md`
791
- - **Inference/AI**: `one/connections/inference.md`
792
-
793
- ## Documentation Structure
794
-
795
- The `one/` directory contains **41 documentation files** organized in **8 layers**:
796
-
797
- 1. **Strategy Layer**: Vision, revenue, organization
798
- 2. **Ontology Layer**: Core data model and 6 dimensions
799
- 3. **Protocols Layer**: A2A, ACP, AP2, X402, AG-UI specifications
800
- 4. **Services Layer**: Effect.ts patterns, service providers
801
- 5. **Implementation Layer**: Frontend, architecture, patterns
802
- 6. **Integration Layer**: ElizaOS, CopilotKit, MCP, N8N
803
- 7. **Examples Layer**: Lemonade stand, enterprise CRM
804
- 8. **Plans Layer**: Future enhancements and technical debt
805
-
806
- **Use targeted reading:** Don't read everything - follow the critical path for your specific feature type.
807
-
808
- ## Deployment
809
-
810
- ### Automated Release (v3.0.0+)
811
-
812
- **Use `/release` command for complete deployment:**
813
-
814
- ```bash
815
- # Patch release (bug fixes)
816
- /release patch
817
-
818
- # Minor release (new features)
819
- /release minor
820
-
821
- # Major release (breaking changes)
822
- /release major
823
-
824
- # Sync files without version bump
825
- /release sync
826
- ```
827
-
828
- **The release process automatically:**
829
- 1. Bumps version in `cli/package.json`
830
- 2. Syncs 518+ files from root to `cli/` and `apps/one/`:
831
- - `/one/*` → `cli/one/` and `apps/one/one/`
832
- - `/.claude/*` → `cli/.claude/` and `apps/one/one/.claude/`
833
- - `/web/*` → `apps/one/web/` (git subtree)
834
- - `CLAUDE.md`, `README.md`, `LICENSE.md`, `SECURITY.md` → all targets
835
- - `web/AGENTS.md` → `apps/one/one/AGENTS.md`
836
- 3. Commits and pushes to:
837
- - `github.com/one-ie/cli`
838
- - `github.com/one-ie/web`
839
- - `github.com/one-ie/one` (apps/one assembly repo)
840
- 4. Publishes to npm: `oneie@<version>`
841
- 5. Builds and deploys web to Cloudflare Pages
842
-
843
- **Live URLs:**
844
- - npm: https://www.npmjs.com/package/oneie
845
- - Web: https://web.one.ie
846
- - CLI: https://github.com/one-ie/cli
847
- - One: https://github.com/one-ie/one
848
-
849
- See `.claude/commands/release.md` and `.claude/agents/agent-ops.md` for details.
850
-
851
- ### Manual Deployment
852
-
853
- **Web (Cloudflare Pages):**
854
-
855
- ```bash
856
- cd web/
857
- bun run build
858
- wrangler pages deploy dist --project-name=web
859
- ```
860
-
861
- **Backend (Convex Cloud):**
862
-
863
- ```bash
864
- cd backend/
865
- npx convex deploy
866
- ```
867
-
868
- Convex automatically deploys on git push when connected to GitHub.
869
-
870
- ## Philosophy
871
-
872
- **Simple enough for children. Powerful enough for enterprises.**
873
-
874
- - Groups partition the space (hierarchical containers from friend circles to governments)
875
- - People authorize and govern (role-based access)
876
- - Things exist (entities with flexible properties)
877
- - Connections relate (relationships with metadata)
878
- - Events record (complete audit trail)
879
- - Knowledge understands (embeddings and vectors)
880
-
881
- Everything else is just data. This ontology scales from friend circles (2 people) to global governments (billions) without schema changes.
882
-
883
- ## Getting Help
884
-
885
- For questions about:
886
-
887
- - **6-Dimension Ontology**: Read `one/knowledge/ontology.md` (Version 1.0.0 - complete specification)
888
- - **Convex patterns**: Read `web/AGENTS.md`
889
- - **Architecture**: Read `one/knowledge/architecture.md`
890
- - **Workflows**: Read `one/connections/workflow.md`
891
- - **Best practices**: Read `one/knowledge/rules.md`
892
- - **Release process**: Read `.claude/commands/release.md` and `.claude/agents/agent-ops.md`
893
- - **Migration from 4-table**: Read `one/things/plans/ontology-6-dimensions.md`
894
-
895
- ---
896
-
897
- **Built with clarity, simplicity, and infinite scale in mind.**