oneie 3.6.18 → 3.6.20

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 (36) 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 +119 -0
  9. package/README.md +778 -497
  10. package/package.json +1 -1
  11. package/.claude/agents/NEWS-QUICKSTART.md +0 -321
  12. package/.claude/agents/NEWS-README.md +0 -353
  13. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  14. package/.claude/hooks/README-root-cleanup.md +0 -200
  15. package/.claude/hooks/README.md +0 -284
  16. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  17. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  18. package/.claude/hooks/check-filenames.py +0 -177
  19. package/.claude/hooks/clean-post.py +0 -468
  20. package/.claude/hooks/clean-pre.py +0 -393
  21. package/.claude/hooks/clean-root-markdown.sh +0 -73
  22. package/.claude/hooks/done.py +0 -236
  23. package/.claude/hooks/format-hook.sh +0 -163
  24. package/.claude/hooks/hook-logger.sh +0 -173
  25. package/.claude/hooks/knowledge-post.py +0 -355
  26. package/.claude/hooks/knowledge-pre.py +0 -245
  27. package/.claude/hooks/notification-hook.sh +0 -279
  28. package/.claude/hooks/root-cleanup.py +0 -217
  29. package/.claude/hooks/security-hook.sh +0 -397
  30. package/.claude/hooks/tag-all-docs.py +0 -464
  31. package/.claude/hooks/test-validate-ontology.sh +0 -170
  32. package/.claude/hooks/todo.py +0 -368
  33. package/.claude/hooks/track-changes.sh +0 -101
  34. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  35. package/.claude/hooks/validate-ontology-structure.py +0 -518
  36. package/TESTING-ONBOARDING.md +0 -185
package/CLAUDE.md CHANGED
@@ -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: