oneie 3.6.18 → 3.6.21

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 (58) hide show
  1. package/.claude/agents/agent-ops.md +63 -2
  2. package/.claude/commands/commit.md +95 -0
  3. package/.claude/commands/npx.md +2 -2
  4. package/.claude/commands/one.md +7 -1
  5. package/.claude/commands/push.md +113 -21
  6. package/.claude/commands/release.md +2 -2
  7. package/.claude/hooks/release-cli.sh +195 -0
  8. package/CLAUDE.md +131 -12
  9. package/README.md +778 -497
  10. package/one/groups/one.md +1 -1
  11. package/one/knowledge/architecture-frontend.md +5 -0
  12. package/one/knowledge/archived/ontology.old.md +1 -1
  13. package/one/knowledge/develop/design.md +364 -0
  14. package/one/knowledge/develop/index.md +145 -0
  15. package/one/knowledge/metadata-system.md +1 -1
  16. package/one/knowledge/ontology-engineering.md +1 -1
  17. package/one/knowledge/ontology.md +1 -1
  18. package/one/knowledge/patterns/design/index.md +160 -0
  19. package/one/knowledge/quick-start-ontology-mapping.md +773 -0
  20. package/one/knowledge/todo-template.md +100 -100
  21. package/one/knowledge/todo.md +100 -100
  22. package/one/people/anthony-o-connell.md +3 -3
  23. package/one/things/master-workflow-plan.md +2 -2
  24. package/one/things/plans/execution-strategy.md +243 -243
  25. package/one/things/plans/wave1-specialist-assignments.md +1 -1
  26. package/one/things/todo-ai.md +100 -100
  27. package/one/things/todo-assignment.md +21 -21
  28. package/one/things/todo-effects.md +100 -100
  29. package/one/things/todo-frontend-effects.md +100 -100
  30. package/one/things/todo-master-plan.md +1 -1
  31. package/one/things/todo-sequence.md +1 -1
  32. package/package.json +1 -1
  33. package/.claude/agents/NEWS-QUICKSTART.md +0 -321
  34. package/.claude/agents/NEWS-README.md +0 -353
  35. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  36. package/.claude/hooks/README-root-cleanup.md +0 -200
  37. package/.claude/hooks/README.md +0 -284
  38. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  39. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  40. package/.claude/hooks/check-filenames.py +0 -177
  41. package/.claude/hooks/clean-post.py +0 -468
  42. package/.claude/hooks/clean-pre.py +0 -393
  43. package/.claude/hooks/clean-root-markdown.sh +0 -73
  44. package/.claude/hooks/done.py +0 -236
  45. package/.claude/hooks/format-hook.sh +0 -163
  46. package/.claude/hooks/hook-logger.sh +0 -173
  47. package/.claude/hooks/knowledge-post.py +0 -355
  48. package/.claude/hooks/knowledge-pre.py +0 -245
  49. package/.claude/hooks/notification-hook.sh +0 -279
  50. package/.claude/hooks/root-cleanup.py +0 -217
  51. package/.claude/hooks/security-hook.sh +0 -397
  52. package/.claude/hooks/tag-all-docs.py +0 -464
  53. package/.claude/hooks/test-validate-ontology.sh +0 -170
  54. package/.claude/hooks/todo.py +0 -368
  55. package/.claude/hooks/track-changes.sh +0 -101
  56. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  57. package/.claude/hooks/validate-ontology-structure.py +0 -518
  58. package/TESTING-ONBOARDING.md +0 -185
package/CLAUDE.md CHANGED
@@ -101,7 +101,7 @@ Web (Astro + React) → Backend (Convex) → 6-Dimension Ontology
101
101
 
102
102
  ## Planning Paradigm: Cycle-Based Execution
103
103
 
104
- **CRITICAL:** We don't plan in days. We plan in **cycle passes** (Infer 1-100).
104
+ **CRITICAL:** We don't plan in days. We plan in **cycle passes** (Cycle 1-100).
105
105
 
106
106
  ### Why Cycle-Based Planning?
107
107
 
@@ -110,7 +110,7 @@ Traditional planning uses time estimates ("Day 1-3", "Week 2"), which are:
110
110
  - Context-heavy (requires re-planning)
111
111
  - Sequential (blocks parallel work)
112
112
 
113
- Cycle-based planning uses **sequence positions** ("Infer 1-100"), which are:
113
+ Cycle-based planning uses **sequence positions** ("Cycle 1-100"), which are:
114
114
  - Precise (each cycle is a concrete step)
115
115
  - Context-light (< 3000 tokens per cycle)
116
116
  - Parallel-friendly (cycles can run concurrently when dependencies allow)
@@ -120,16 +120,16 @@ Cycle-based planning uses **sequence positions** ("Infer 1-100"), which are:
120
120
  Every feature follows a **100-cycle sequence** (see `one/knowledge/todo.md`):
121
121
 
122
122
  ```
123
- Infer 1-10: Foundation & Setup (validate, map, plan)
124
- Infer 11-20: Backend Schema & Services (database, business logic)
125
- Infer 21-30: Frontend Pages & Components (UI, interactions)
126
- Infer 31-40: Integration & Connections (external systems)
127
- Infer 41-50: Authentication & Authorization (security)
128
- Infer 51-60: Knowledge & RAG (embeddings, search)
129
- Infer 61-70: Quality & Testing (unit, integration, e2e)
130
- Infer 71-80: Design & Wireframes (UI/UX, accessibility)
131
- Infer 81-90: Performance & Optimization (speed, efficiency)
132
- Infer 91-100: Deployment & Documentation (production, guides)
123
+ Cycle 1-10: Foundation & Setup (validate, map, plan)
124
+ Cycle 11-20: Backend Schema & Services (database, business logic)
125
+ Cycle 21-30: Frontend Pages & Components (UI, interactions)
126
+ Cycle 31-40: Integration & Connections (external systems)
127
+ Cycle 41-50: Authentication & Authorization (security)
128
+ Cycle 51-60: Knowledge & RAG (embeddings, search)
129
+ Cycle 61-70: Quality & Testing (unit, integration, e2e)
130
+ Cycle 71-80: Design & Wireframes (UI/UX, accessibility)
131
+ Cycle 81-90: Performance & Optimization (speed, efficiency)
132
+ Cycle 91-100: Deployment & Documentation (production, guides)
133
133
  ```
134
134
 
135
135
  ### How to Use Cycle Planning
@@ -949,6 +949,103 @@ npx convex deploy
949
949
 
950
950
  Convex automatically deploys on git push when connected to GitHub.
951
951
 
952
+ ## The English → Code → Reality Workflow
953
+
954
+ **In Minutes, Not Months**
955
+
956
+ Describe your feature in plain English. The system validates it against the ontology, compiles to TypeScript, generates tests, and deploys to the edge.
957
+
958
+ ### The Four-Step Workflow
959
+
960
+ #### 1️⃣ Write in English
961
+
962
+ Describe what you want: `"CREATE ai clone"`, `"CALL OpenAI"`, `"RECORD purchase"`. Use 15 simple commands anyone can understand.
963
+
964
+ ```
965
+ Creator: "CREATE my AI clone"
966
+ Seller: "RECORD purchase event"
967
+ Engineer: "CONNECT to Stripe API"
968
+ ```
969
+
970
+ #### 2️⃣ System Validates
971
+
972
+ Checks against the ontology: Do these entity types exist? Are connections valid? Are services available? Instant feedback.
973
+
974
+ ```
975
+ ✓ ai_clone entity type exists
976
+ ✓ tokens_purchased event valid
977
+ ✓ Stripe service available
978
+ ```
979
+
980
+ #### 3️⃣ Code Generated
981
+
982
+ Compiles to production TypeScript with Effect.ts, Convex functions, React components, full test suite. Type-safe, tested, ready.
983
+
984
+ ```
985
+ Backend Frontend Tests
986
+ ├─ Mutations ├─ Components └─ 50+ cases
987
+ ├─ Queries └─ Pages
988
+ └─ Services
989
+ ```
990
+
991
+ #### 4️⃣ Deploy to Edge
992
+
993
+ Push to Cloudflare's global network. Unlimited requests, instant updates, zero configuration. Live in 60 seconds.
994
+
995
+ ```
996
+ 330+ locations worldwide
997
+ < 330ms average response time
998
+ Free tier unlimited
999
+ ```
1000
+
1001
+ ### Why This Works
1002
+
1003
+ Every feature follows this flow:
1004
+
1005
+ 1. **English → Ontology** - Validates intent against 6 dimensions
1006
+ 2. **Ontology → Code** - Generates type-safe services
1007
+ 3. **Code → Tests** - Creates 50+ test cases automatically
1008
+ 4. **Tests → Deploy** - Pushes to edge with zero downtime
1009
+
1010
+ The ontology ensures consistency. The compiler ensures quality. The edge ensures performance.
1011
+
1012
+ ## Plain English DSL
1013
+
1014
+ ### Write Features in English. The System Builds Everything.
1015
+
1016
+ Describe what you want in plain English. The compiler checks every line against the ontology, generates TypeScript and tests, and deploys to the edge.
1017
+
1018
+ **Example: Chat with AI Clone**
1019
+
1020
+ ```
1021
+ FEATURE: Let fans chat with my AI clone
1022
+
1023
+ WHEN a fan sends a message
1024
+ CHECK they own tokens
1025
+ GET conversation history
1026
+ CALL OpenAI with my personality
1027
+ RECORD the interaction
1028
+ REWARD fan with 10 tokens
1029
+ GIVE AI response to fan
1030
+ ```
1031
+
1032
+ **What maps to ontology:**
1033
+
1034
+ - **Things Touched:** fan, ai_clone, message, token — all typed rows
1035
+ - **Connections Updated:** fan `holds_tokens` token, fan `interacted_with` clone with metadata
1036
+ - **Events Logged:** message_sent, tokens_earned, clone_interaction with timestamps
1037
+ - **Knowledge Indexed:** Clone personality, embeddings, conversation history for retrieval
1038
+
1039
+ **5 Core Commands:**
1040
+
1041
+ | Command | Purpose | Example |
1042
+ | --------- | ----------------------------------- | -------------------------------- |
1043
+ | `CREATE` | Add typed Things into the graph | `CREATE ai clone WITH voice ID` |
1044
+ | `CONNECT` | Define relationships with metadata | `CONNECT fan to token as holder` |
1045
+ | `RECORD` | Append immutable Events | `RECORD tokens purchased BY fan` |
1046
+ | `CALL` | Invoke services and persist outputs | `CALL Stripe to charge payment` |
1047
+ | `CHECK` | Enforce guardrails before action | `CHECK user has tokens` |
1048
+
952
1049
  ## Philosophy
953
1050
 
954
1051
  **Simple enough for children. Powerful enough for enterprises.**
@@ -962,6 +1059,28 @@ Convex automatically deploys on git push when connected to GitHub.
962
1059
 
963
1060
  Everything else is just data. This ontology scales from friend circles (2 people) to global governments (billions) without schema changes.
964
1061
 
1062
+ ## 🤖 Claude Automation Stack
1063
+
1064
+ ### `.claude/agents/*`
1065
+
1066
+ - **Director (`agent-director.md`)** validates ideas against the 6 dimensions, sequences numbered plans, and routes work to the right specialist.
1067
+ - **Builder squad (`agent-builder.md`, `agent-backend.md`, `agent-frontend.md`)** implements Convex services, Astro interfaces, and cross-cutting features while preserving multi-tenant boundaries and typed contracts.
1068
+ - **Integration lead (`agent-integrator.md`)** connects external protocols (A2A, ACP, AP2, X402, AG-UI) and reconciles third-party data so it lands in groups, people, things, connections, events, and knowledge.
1069
+ - **Quality loop (`agent-quality.md`, `agent-clean.md`, `agent-problem-solver.md`)** defines acceptance up front, enforces guardrails, diagnoses failures, and refactors without breaking ontology guarantees.
1070
+ - **Design + knowledge (`agent-designer.md`, `agent-documenter.md`)** translate specs into accessible UI systems, tokens, and documentation so the knowledge dimension stays queryable for future generations.
1071
+ - **Growth ops (`agent-clone.md`, `agent-sales.md`)** migrate legacy assets, build AI clones, manage trials, and tie revenue attribution back to event streams.
1072
+
1073
+ **Cascade in practice:** Director validates → Quality defines tests → Designers supply artifacts → Specialists build → Clean and Problem Solver close gaps → Documenter updates knowledge. Every agent reads and writes to the same ontology, so each run leaves richer context for the next.
1074
+
1075
+ ### MCP Servers (`.mcp.json`)
1076
+
1077
+ - **shadcn** (`npx shadcn@latest mcp`) gives UI agents instant access to audited component recipes without leaving Claude Code.
1078
+ - **cloudflare-builds** (`npx -y mcp-remote https://builds.mcp.cloudflare.com/sse`) lets release flows trigger deployments, inspect logs, and roll back while emitting auditable events.
1079
+ - **cloudflare-docs** (`npx -y mcp-remote https://docs.mcp.cloudflare.com/sse`) streams authoritative references so integrators and quality agents stay aligned with platform guidance.
1080
+ - **chrome-devtools** (`npx -y chrome-devtools-mcp@latest`) enables live performance profiling; findings roll into knowledge chunks for future optimizations.
1081
+
1082
+ **How it fits:** `.claude/commands/*` orchestrate the workflow (plan → build → release), `.claude/hooks/*` enforce guardrails, agents execute the steps, and MCP servers provide live tool access—all grounded in the ONE ontology as the single source of truth.
1083
+
965
1084
  ## Getting Help
966
1085
 
967
1086
  For questions about: