oneie 3.6.13 → 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.
- package/.claude/agents/AUDIT-agent-ops-alignment.md +379 -0
- package/.claude/agents/NEWS-QUICKSTART.md +321 -0
- package/.claude/agents/NEWS-README.md +353 -0
- package/.claude/agents/agent-backend.md +1 -1
- package/.claude/agents/agent-builder.md +220 -151
- package/.claude/agents/agent-clean.md +39 -31
- package/.claude/agents/agent-clone.md +107 -54
- package/.claude/agents/agent-designer.md +76 -71
- package/.claude/agents/agent-director.md +170 -7
- package/.claude/agents/agent-documenter.md +169 -132
- package/.claude/agents/agent-frontend.md +442 -446
- package/.claude/agents/agent-integrator.md +30 -23
- package/.claude/agents/agent-lawyer.md +145 -98
- package/.claude/agents/agent-news.md +363 -0
- package/.claude/agents/agent-onboard.md +107 -77
- package/.claude/agents/agent-ontology.md +585 -0
- package/.claude/agents/agent-ops.md +178 -171
- package/.claude/agents/agent-problem-solver.md +132 -115
- package/.claude/agents/agent-quality.md +94 -77
- package/.claude/agents/agent-sales.md +89 -67
- package/.claude/commands/cascade.md +49 -20
- package/.claude/commands/create.md +397 -0
- package/.claude/commands/npx.md +64 -113
- package/.claude/commands/one.md +10 -28
- package/.claude/commands/plan.md +65 -65
- package/.claude/commands/push.md +63 -452
- package/.claude/commands/release.md +26 -393
- package/.claude/hooks/README-knowledge-hooks.md +267 -81
- package/.claude/hooks/README-root-cleanup.md +200 -0
- package/.claude/hooks/README.md +284 -0
- package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/check-filenames.py +169 -32
- package/.claude/hooks/clean-post.py +195 -28
- package/.claude/hooks/clean-pre.py +96 -11
- package/.claude/hooks/clean-root-markdown.sh +73 -0
- package/.claude/hooks/done.py +74 -13
- package/.claude/hooks/format-hook.sh +105 -17
- package/.claude/hooks/hook-logger.sh +121 -7
- package/.claude/hooks/knowledge-post.py +136 -32
- package/.claude/hooks/knowledge-pre.py +129 -34
- package/.claude/hooks/notification-hook.sh +184 -17
- package/.claude/hooks/root-cleanup.py +181 -39
- package/.claude/hooks/security-hook.sh +248 -8
- package/.claude/hooks/tag-all-docs.py +175 -49
- package/.claude/hooks/test-validate-ontology.sh +170 -0
- package/.claude/hooks/todo.py +92 -22
- package/.claude/hooks/track-changes.sh +101 -0
- package/.claude/hooks/validate-ontology-structure-summary.md +243 -0
- package/.claude/hooks/validate-ontology-structure.py +83 -20
- package/.claude/skills/ontology/README.md +1 -1
- package/AGENTS.md +60 -245
- package/CLAUDE.md +108 -26
- package/README.md +25 -0
- package/one/README.md +21 -3
- package/one/connections/a2a.md +49 -0
- package/one/connections/acp.md +47 -0
- package/one/connections/acps.md +18 -0
- package/one/connections/agentkit.md +18 -0
- package/one/connections/agui.md +18 -0
- package/one/connections/any-backend.md +39 -21
- package/one/connections/ap2.md +74 -0
- package/one/connections/api/queries-reference.md +18 -0
- package/one/connections/api-docs.md +18 -0
- package/one/connections/api-reference.md +18 -0
- package/one/connections/api.md +18 -0
- package/one/connections/architecture-diagram.md +18 -0
- package/one/connections/communications.md +18 -0
- package/one/connections/connections.md +18 -0
- package/one/connections/copilotkit.md +18 -0
- package/one/connections/cryptonetworks.md +18 -0
- package/one/connections/documentation.md +19 -1
- package/one/connections/effect.md +18 -0
- package/one/connections/elizaos.md +18 -0
- package/one/connections/groups.md +814 -0
- package/one/connections/inference.md +21 -3
- package/one/connections/integration-examples.md +18 -0
- package/one/connections/integration-guide.md +18 -0
- package/one/connections/integration-phase2.md +32 -14
- package/one/connections/kyc.md +18 -0
- package/one/connections/mcp.md +18 -0
- package/one/connections/membership.md +18 -0
- package/one/connections/middleware.md +18 -0
- package/one/connections/multitenant.md +18 -0
- package/one/connections/n8n.md +18 -0
- package/one/connections/patterns.md +18 -0
- package/one/connections/protocols.md +20 -2
- package/one/connections/relationships.md +18 -0
- package/one/connections/schema.md +18 -0
- package/one/connections/service-layer.md +18 -0
- package/one/connections/vectors.md +18 -0
- package/one/connections/wordpress.md +18 -0
- package/one/connections/workflow-copy.md +19 -1
- package/one/connections/workflow-examples.md +18 -0
- package/one/connections/workflow-onboarding.md +102 -84
- package/one/connections/workflow.md +19 -1
- package/one/connections/workflows/delegation.md +18 -0
- package/one/connections/workflows/frontend.md +18 -0
- package/one/connections/workflows/strategy.md +18 -0
- package/one/connections/workflows/tasks.md +18 -0
- package/one/connections/x402-baazar.md +131 -0
- package/one/connections/x402.md +268 -164
- package/one/groups/features.md +26 -0
- package/one/groups/groups.md +112 -68
- package/one/groups/one.md +71 -51
- package/one/groups/{strategy copy.md → strategy-copy.md} +23 -5
- package/one/knowledge/.obsidian/ecommerce-ontology.md +18 -0
- package/one/knowledge/100-inference-quick-reference.md +49 -31
- package/one/knowledge/agent-onboard-usage.md +18 -0
- package/one/knowledge/agentic-commerce.md +146 -0
- package/one/knowledge/ai-agents-vs-memecoins-thesis.md +683 -0
- package/one/knowledge/ai-platform.md +18 -0
- package/one/knowledge/ai-token-crypto-analysis-framework.md +1191 -0
- package/one/knowledge/ai-token-paradigm-shift-2025.md +732 -0
- package/one/knowledge/altcoin-cycle-prediction-ontology.md +884 -0
- package/one/knowledge/altcoin-cycle-trading-strategy.md +642 -0
- package/one/knowledge/architecture-any-backend.md +265 -42
- package/one/knowledge/architecture-diagram.md +404 -94
- package/one/knowledge/architecture-frontend.md +130 -51
- package/one/knowledge/architecture.md +1496 -1831
- package/one/knowledge/{ontology.md.backup → archived/ontology.old.md} +28 -10
- package/one/knowledge/astro-effect-complete-vision.md +2148 -0
- package/one/knowledge/astro-effect-simple-architecture.md +717 -0
- package/one/knowledge/audit-agent-onboard-alignment.md +481 -0
- package/one/knowledge/audit-agent-sales-alignment.md +444 -0
- package/one/knowledge/backend-api-reference.md +18 -0
- package/one/knowledge/cli-claude-handoff.md +54 -36
- package/one/knowledge/context-engineering.md +610 -0
- package/one/knowledge/crypto-analysis-strategy.md +1276 -0
- package/one/knowledge/crypto-cycle-2024-2025-analysis.md +44 -0
- package/one/knowledge/crypto.md +18 -0
- package/one/knowledge/docs.md +627 -0
- package/one/knowledge/dsl.md +18 -0
- package/one/knowledge/event-driven-documentation.md +270 -0
- package/one/knowledge/files.md +18 -0
- package/one/knowledge/frontend.md +18 -0
- package/one/knowledge/hono.md +18 -0
- package/one/knowledge/implementation-examples.md +18 -0
- package/one/knowledge/installation-folders.md +18 -0
- package/one/knowledge/institutional-cycle-paradigm-2025.md +555 -0
- package/one/knowledge/knowledge.md +44 -26
- package/one/knowledge/language.md +18 -0
- package/one/knowledge/lessons-learned.md +18 -0
- package/one/knowledge/lessons-website-building-focus.md +19 -1
- package/one/knowledge/merge-report.md +254 -0
- package/one/knowledge/metadata-system.md +11 -11
- package/one/knowledge/nine-padel-playbook.md +18 -0
- package/one/knowledge/ontology-blog.yaml +42 -26
- package/one/knowledge/ontology-cheatsheet.md +18 -0
- package/one/knowledge/ontology-community.yaml +60 -37
- package/one/knowledge/ontology-core-universal.md +19 -1
- package/one/knowledge/ontology-core.yaml +58 -45
- package/one/knowledge/ontology-courses.yaml +71 -48
- package/one/knowledge/ontology-creator.md +30 -4
- package/one/knowledge/ontology-crypto.md +1603 -0
- package/one/knowledge/ontology-developer-guide.md +18 -0
- package/one/knowledge/ontology-documentation.md +52 -31
- package/one/knowledge/ontology-ecommerce.md +24 -6
- package/one/knowledge/ontology-education.md +18 -0
- package/one/knowledge/ontology-engineering-specification.md +22 -4
- package/one/knowledge/ontology-engineering.md +70 -46
- package/one/knowledge/ontology-files.yaml +525 -0
- package/one/knowledge/ontology-frontend-master.md +2898 -0
- package/one/knowledge/ontology-frontend-specifications.md +57 -49
- package/one/knowledge/ontology-frontend.md +40 -22
- package/one/knowledge/ontology-index.md +18 -0
- package/one/knowledge/ontology-minimal.yaml +18 -16
- package/one/knowledge/ontology-portfolio.yaml +40 -26
- package/one/knowledge/ontology-quickstart.md +18 -0
- package/one/knowledge/ontology-release.md +317 -0
- package/one/knowledge/ontology-shop.yaml +146 -119
- package/one/knowledge/ontology-tokens.yaml +46 -27
- package/one/knowledge/ontology-tutorial.md +18 -0
- package/one/knowledge/ontology-video-script.md +18 -0
- package/one/knowledge/ontology-visual-guide.md +20 -2
- package/one/knowledge/ontology.md +1334 -309
- package/one/knowledge/ontology.yaml +766 -278
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +48 -18
- package/one/knowledge/patterns/backend/convex-query-pattern.md +78 -23
- package/one/knowledge/patterns/backend/mutation-template.md +28 -10
- package/one/knowledge/patterns/backend/query-template.md +44 -25
- package/one/knowledge/patterns/backend/service-template.md +35 -14
- package/one/knowledge/patterns/design/component-architecture.md +45 -9
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +37 -3
- package/one/knowledge/patterns/design/wireframe-template.md +36 -2
- package/one/knowledge/patterns/frontend/component-template.md +91 -40
- package/one/knowledge/patterns/frontend/form-template.md +131 -59
- package/one/knowledge/patterns/frontend/page-template.md +59 -28
- package/one/knowledge/patterns/frontend/react-component-pattern.md +87 -27
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +28 -10
- package/one/knowledge/patterns/test/technical-test-template.md +48 -26
- package/one/knowledge/patterns/test/test-driven-pattern.md +25 -5
- package/one/knowledge/patterns/test/user-flow-template.md +18 -0
- package/one/knowledge/provider-agnostic-content.md +995 -0
- package/one/knowledge/provider-creation-guide.md +18 -0
- package/one/knowledge/quality-loop.md +18 -0
- package/one/knowledge/readme-architecture.md +158 -0
- package/one/knowledge/readme.md +18 -0
- package/one/knowledge/rules.md +18 -0
- package/one/knowledge/score.md +20 -2
- package/one/knowledge/specifications.md +18 -0
- package/one/knowledge/tags.md +18 -0
- package/one/knowledge/todo-template.md +71 -53
- package/one/knowledge/todo.md +71 -53
- package/one/knowledge/typescript-patterns.md +19 -1
- package/one/knowledge/universal-generation-language.md +827 -0
- package/one/knowledge/x402-research.md +104 -0
- package/one/license.md +18 -0
- package/one/people/anthony-o-connell.md +55 -26
- package/one/people/people.md +55 -32
- package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +401 -0
- package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +588 -0
- package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +461 -0
- package/one/things/CHECKLIST.md +51 -0
- package/one/things/IMPLEMENTATION_STATUS.md +379 -0
- package/one/things/ONE.md +19 -1
- package/one/things/agents/agent-backend.md +202 -102
- package/one/things/agents/agent-builder.md +267 -158
- package/one/things/agents/agent-clean.md +56 -31
- package/one/things/agents/agent-clone.md +33 -50
- package/one/things/agents/agent-deploy.md +65 -17
- package/one/things/agents/agent-designer.md +274 -146
- package/one/things/agents/agent-director.md +20 -2
- package/one/things/agents/agent-documenter.md +126 -46
- package/one/things/agents/agent-frontend.md +104 -22
- package/one/things/agents/agent-integrator.md +153 -76
- package/one/things/agents/agent-lawyer.md +197 -92
- package/one/things/agents/agent-problem-solver.md +302 -224
- package/one/things/agents/agent-quality.md +149 -19
- package/one/things/agents/agent-sales.md +101 -13
- package/one/things/cascade/cascade.yaml +20 -3
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +53 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +50 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +76 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +49 -3
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +45 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +32 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +45 -3
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +44 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +40 -1
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +81 -25
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +41 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +91 -16
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +136 -73
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +43 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +88 -4
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +52 -3
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +44 -1
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +78 -14
- package/one/things/cascade/docs/examples/readme.md +37 -0
- package/one/things/cascade/docs/getting-started.md +18 -0
- package/one/things/cascade/docs/workflow.md +18 -12
- package/one/things/cascade/readme.md +43 -0
- package/one/things/cascade/templates/feature-template.md +28 -6
- package/one/things/claude/agents/advocacy-activation-manager.md +64 -39
- package/one/things/claude/agents/advocacy-campaign-designer.md +64 -39
- package/one/things/claude/agents/analyst.md +64 -39
- package/one/things/claude/agents/architect.md +64 -39
- package/one/things/claude/agents/brand-identity-specialist.md +64 -39
- package/one/things/claude/agents/bstp-token-strategist.md +48 -25
- package/one/things/claude/agents/builder-repo.md +69 -26
- package/one/things/claude/agents/bullstamp-community-builder.md +48 -25
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +48 -25
- package/one/things/claude/agents/bulltilt-platform-growth.md +48 -25
- package/one/things/claude/agents/company-bullstamp-character.md +45 -30
- package/one/things/claude/agents/company-bullstamp-community.md +45 -30
- package/one/things/claude/agents/company-bullstamp-marketing.md +45 -30
- package/one/things/claude/agents/company-bullstamp-token.md +45 -30
- package/one/things/claude/agents/company-bulltilt-growth.md +45 -30
- package/one/things/claude/agents/content-bibliography-formatter.md +48 -25
- package/one/things/claude/agents/content-calendar-planner.md +59 -34
- package/one/things/claude/agents/content-chapter-formatter.md +60 -35
- package/one/things/claude/agents/content-formatter.md +59 -34
- package/one/things/claude/agents/content-hook-specialist.md +54 -31
- package/one/things/claude/agents/content-image-formatter.md +59 -34
- package/one/things/claude/agents/content-introduction-formatter.md +59 -34
- package/one/things/claude/agents/content-multiplication-engine.md +54 -31
- package/one/things/claude/agents/content-playbook-writer.md +60 -35
- package/one/things/claude/agents/content-team-manager.md +59 -34
- package/one/things/claude/agents/content-toc-formatter.md +60 -35
- package/one/things/claude/agents/convex-backend-specialist.md +380 -216
- package/one/things/claude/agents/core-manager.md +59 -34
- package/one/things/claude/agents/core-master.md +55 -32
- package/one/things/claude/agents/cross-functional-manager.md +46 -41
- package/one/things/claude/agents/crypto-airdrop-strategist.md +74 -54
- package/one/things/claude/agents/crypto-analytics-educator.md +73 -30
- package/one/things/claude/agents/crypto-architecture-specialist.md +70 -39
- package/one/things/claude/agents/crypto-community-analyst.md +47 -31
- package/one/things/claude/agents/crypto-community-psychologist.md +68 -31
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +72 -31
- package/one/things/claude/agents/crypto-dex-optimizer.md +45 -30
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +69 -30
- package/one/things/claude/agents/crypto-diamond-hands.md +45 -30
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +73 -30
- package/one/things/claude/agents/crypto-engagement-specialist.md +71 -30
- package/one/things/claude/agents/crypto-market-researcher.md +45 -30
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +74 -34
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +75 -30
- package/one/things/claude/agents/crypto-optimization-analyst.md +73 -30
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +69 -30
- package/one/things/claude/agents/crypto-team-manager.md +45 -40
- package/one/things/claude/agents/crypto-token-analyst.md +66 -25
- package/one/things/claude/agents/crypto-viral-content-creator.md +64 -61
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +61 -51
- package/one/things/claude/agents/crypto-wallet-identifier.md +45 -30
- package/one/things/claude/agents/customer-journey-designer.md +51 -58
- package/one/things/claude/agents/customer-success-manager.md +51 -58
- package/one/things/claude/agents/dev.md +51 -58
- package/one/things/claude/agents/documenter.md +71 -69
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +45 -52
- package/one/things/claude/agents/engagement-specialist.md +45 -52
- package/one/things/claude/agents/engineering-architect.md +54 -54
- package/one/things/claude/agents/engineering-business-analyst.md +46 -56
- package/one/things/claude/agents/engineering-developer.md +51 -52
- package/one/things/claude/agents/engineering-director.md +65 -25
- package/one/things/claude/agents/engineering-ingestor.md +110 -100
- package/one/things/claude/agents/engineering-product-manager.md +43 -55
- package/one/things/claude/agents/engineering-product-owner.md +46 -56
- package/one/things/claude/agents/engineering-project-coordinator.md +44 -56
- package/one/things/claude/agents/engineering-quality-assurance.md +53 -54
- package/one/things/claude/agents/engineering-team-manager.md +46 -43
- package/one/things/claude/agents/engineering-user-experience.md +51 -52
- package/one/things/claude/agents/framework-elevate-manager.md +45 -30
- package/one/things/claude/agents/improver.md +120 -78
- package/one/things/claude/agents/intelligence-team-manager.md +45 -40
- package/one/things/claude/agents/lead-capture-expert.md +45 -52
- package/one/things/claude/agents/lead-magnet-creator.md +45 -52
- package/one/things/claude/agents/market-research-analyst.md +48 -25
- package/one/things/claude/agents/marketing-brand-identity.md +57 -27
- package/one/things/claude/agents/marketing-content-hooks.md +45 -40
- package/one/things/claude/agents/marketing-content-multiplier.md +45 -40
- package/one/things/claude/agents/marketing-content-poster.md +71 -60
- package/one/things/claude/agents/marketing-customer-journey.md +45 -40
- package/one/things/claude/agents/marketing-director.md +46 -41
- package/one/things/claude/agents/marketing-engagement.md +45 -40
- package/one/things/claude/agents/marketing-lead-capture.md +45 -40
- package/one/things/claude/agents/marketing-lead-magnet.md +45 -40
- package/one/things/claude/agents/marketing-network-effects.md +45 -40
- package/one/things/claude/agents/marketing-nurture-campaigns.md +45 -40
- package/one/things/claude/agents/marketing-share-optimizer.md +45 -40
- package/one/things/claude/agents/marketing-team-manager.md +45 -40
- package/one/things/claude/agents/marketing-viral-growth.md +49 -18
- package/one/things/claude/agents/mission-commander.md +45 -40
- package/one/things/claude/agents/network-effect-analyst.md +48 -31
- package/one/things/claude/agents/nextjs-15-specialist.md +210 -123
- package/one/things/claude/agents/npx.md +126 -70
- package/one/things/claude/agents/nurture-campaign-manager.md +48 -25
- package/one/things/claude/agents/one-master.md +48 -25
- package/one/things/claude/agents/one-orchestrator.md +57 -27
- package/one/things/claude/agents/one.md +88 -31
- package/one/things/claude/agents/playbook-generator.md +48 -25
- package/one/things/claude/agents/pm.md +48 -25
- package/one/things/claude/agents/po.md +51 -26
- package/one/things/claude/agents/qa.md +50 -25
- package/one/things/claude/agents/research-foundation-analyst.md +48 -31
- package/one/things/claude/agents/research-intelligence-gatherer.md +59 -32
- package/one/things/claude/agents/research-market-analyst.md +47 -30
- package/one/things/claude/agents/research-team-manager.md +47 -40
- package/one/things/claude/agents/sales-environment-optimizer.md +50 -25
- package/one/things/claude/agents/sales-team-manager.md +47 -40
- package/one/things/claude/agents/sales-upsell-strategist.md +47 -30
- package/one/things/claude/agents/service-advocacy-campaigns.md +47 -30
- package/one/things/claude/agents/service-advocacy-manager.md +47 -30
- package/one/things/claude/agents/service-success-manager.md +47 -30
- package/one/things/claude/agents/service-team-manager.md +45 -40
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +85 -30
- package/one/things/claude/agents/share-optimization-specialist.md +50 -25
- package/one/things/claude/agents/sm.md +50 -25
- package/one/things/claude/agents/story-teller.md +51 -26
- package/one/things/claude/agents/task-master.md +52 -27
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +201 -116
- package/one/things/claude/agents/tester.md +85 -46
- package/one/things/claude/agents/the-bull-character-manager.md +48 -25
- package/one/things/claude/agents/tools-playbook-generator.md +43 -40
- package/one/things/claude/agents/turbo-repo-builder.md +57 -27
- package/one/things/claude/agents/upsell-strategist.md +48 -25
- package/one/things/claude/agents/ux-expert.md +50 -25
- package/one/things/claude/agents/viral-growth-orchestrator.md +50 -27
- package/one/things/claude/commands/agent.md +25 -5
- package/one/things/claude/commands/cascade-status.md +33 -8
- package/one/things/claude/commands/ingest.md +64 -11
- package/one/things/claude/commands/ingestor.md +29 -7
- package/one/things/claude/commands/mission.md +24 -4
- package/one/things/claude/commands/npx.md +30 -7
- package/one/things/claude/commands/one.md +114 -68
- package/one/things/claude/commands/quality-check.md +72 -24
- package/one/things/claude/commands/smart-route.md +45 -4
- package/one/things/claude/commands/start.md +22 -4
- package/one/things/claude/commands/story.md +25 -5
- package/one/things/claude/commands/task.md +21 -1
- package/one/things/cli/cli-code.md +244 -219
- package/one/things/cli/cli-compiler-code.md +244 -219
- package/one/things/cli/cli.md +30 -6
- package/one/things/components/card-shadcn.md +252 -228
- package/one/things/components/card.md +315 -324
- package/one/things/components.md +667 -593
- package/one/things/componets.md +16 -1
- package/one/things/creator-diagram.md +23 -5
- package/one/things/demo-accessibility-animations.md +73 -47
- package/one/things/demo-components.md +225 -219
- package/one/things/demo-design-summary.md +95 -32
- package/one/things/demo-design-system.md +184 -130
- package/one/things/demo-page-layouts.md +52 -25
- package/one/things/designs/accessibility-audit.md +153 -66
- package/one/things/designs/component-specifications.md +163 -65
- package/one/things/designs/design-overview.md +81 -22
- package/one/things/designs/design-tokens.md +127 -93
- package/one/things/designs/wireframes-dashboard.md +64 -7
- package/one/things/docs/api-requests.md +75 -11
- package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +18 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +57 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +62 -6
- package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +60 -5
- package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +95 -27
- package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +130 -62
- package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +43 -19
- package/one/things/docs/ecommerce/QUICK-START.md +41 -4
- package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +75 -6
- package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +58 -24
- package/one/things/examples/children/lemonade-stand.md +52 -14
- package/one/things/examples/enterprise/crm-saas.md +66 -51
- package/one/things/features/1-1-agent-prompts.md +76 -0
- package/one/things/features/1-2-yaml-orchestrator.md +32 -0
- package/one/things/features/1-3-event-coordination.md +40 -1
- package/one/things/features/1-4-knowledge-management.md +91 -16
- package/one/things/features/1-5-quality-loops.md +88 -4
- package/one/things/features/1-6-numbering-structure.md +78 -14
- package/one/things/features/2-1-dataprovider-interface.md +317 -92
- package/one/things/features/2-2-config-system.md +307 -140
- package/one/things/features/2-3-effectts-services.md +266 -119
- package/one/things/features/2-4-react-hooks.md +221 -205
- package/one/things/features/2-5-auth-migration.md +406 -308
- package/one/things/features/2-6-dashboard-migration.md +112 -13
- package/one/things/features/2-7-alternative-providers.md +138 -65
- package/one/things/features/2-7-implementation-report.md +68 -24
- package/one/things/features/2-cli.md +91 -79
- package/one/things/features/2-design.md +114 -82
- package/one/things/features/2-tests.md +56 -0
- package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +91 -36
- package/one/things/features/DECOUPLING.md +36 -18
- package/one/things/features/DEPLOYMENT.md +22 -4
- package/one/things/features/IMPLEMENTATION_SUMMARY.md +48 -2
- package/one/things/features/improve.md +47 -29
- package/one/things/features/remove-convex-deps.md +18 -0
- package/one/things/features/top-features.md +28 -20
- package/one/things/features/use-one-backend.md +212 -175
- package/one/things/features-in-english.md +19 -6
- package/one/things/files.yaml +721 -0
- package/one/things/ideas/1-create-workflow.md +18 -0
- package/one/things/ideas/2-backend-agnostic-frontend.md +57 -2
- package/one/things/implementation/backend-guide.md +65 -20
- package/one/things/interface.md +51 -8
- package/one/things/landing-page-implementation.md +455 -0
- package/one/things/legal/README.md +44 -0
- package/one/things/legal/privacy-policy.md +188 -25
- package/one/things/legal/terms-of-service.md +170 -9
- package/one/things/master-workflow-plan.md +806 -0
- package/one/things/plans/0-in-sync.md +136 -0
- package/one/things/plans/0-timeline.md +36 -0
- package/one/things/plans/1-create-workflow.md +19 -0
- package/one/things/plans/QUICK-START-SIMPLIFICATION.md +333 -0
- package/one/things/plans/README-SIMPLIFICATION.md +349 -0
- package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +16 -0
- package/one/things/plans/SIMPLIFICATION-SUMMARY.md +455 -0
- package/one/things/plans/ai-elements.md +28 -9
- package/one/things/plans/ai-integration.md +111 -62
- package/one/things/plans/ai-sdk.md +92 -55
- package/one/things/plans/ai-tools.md +621 -0
- package/one/things/plans/app.md +142 -71
- package/one/things/plans/architecture-summary.md +34 -5
- package/one/things/plans/async-ai-agents.md +19 -1
- package/one/things/plans/backend-agnostic-frontend.md +70 -8
- package/one/things/plans/backend-cleanup-quickstart.md +55 -21
- package/one/things/plans/backend-ontology-conformance.md +150 -91
- package/one/things/plans/backend-status.md +64 -6
- package/one/things/plans/backend-structure.md +103 -55
- package/one/things/plans/backend-target-structure.md +63 -19
- package/one/things/plans/backend.md +61 -19
- package/one/things/plans/better-auth-any-backend-revised.md +325 -287
- package/one/things/plans/better-auth-any-backend.md +576 -532
- package/one/things/plans/better-auth-available-features.md +43 -5
- package/one/things/plans/big-plan.md +20 -6
- package/one/things/plans/cli-updates-required.md +44 -4
- package/one/things/plans/complete-step-by-step.md +223 -116
- package/one/things/plans/components.md +709 -0
- package/one/things/plans/convex-agents.md +87 -58
- package/one/things/plans/convex-better-auth.md +186 -154
- package/one/things/plans/convex-on-off.md +47 -29
- package/one/things/plans/crypto-token-researcher.md +629 -0
- package/one/things/plans/data-quality-metrics.md +745 -0
- package/one/things/plans/deep-researcher-agent.md +466 -0
- package/one/things/plans/deploy-to-cloudflare.md +55 -13
- package/one/things/plans/deployment-architecture.md +54 -11
- package/one/things/plans/desktop.md +21 -3
- package/one/things/plans/development-plan.md +233 -170
- package/one/things/plans/development-workflow-tldr.md +207 -0
- package/one/things/plans/development-workflow.md +959 -0
- package/one/things/plans/effect-components.md +667 -593
- package/one/things/plans/effect-patterns-reference.md +2235 -0
- package/one/things/plans/effect.md +209 -136
- package/one/things/plans/email.md +21 -8
- package/one/things/plans/enhance-auth.md +64 -41
- package/one/things/plans/execution-strategy.md +1291 -0
- package/one/things/plans/existing-infrastructure.md +712 -0
- package/one/things/plans/feature-based-sites.md +124 -51
- package/one/things/plans/frontend-effects.md +1276 -0
- package/one/things/plans/group-folder-multi-tenancy.md +187 -124
- package/one/things/plans/improve-codebase.md +498 -421
- package/one/things/plans/install-components.md +18 -1
- package/one/things/plans/integrate-frontend-and-backend.md +77 -53
- package/one/things/plans/landing.md +92 -0
- package/one/things/plans/layout.md +45 -1
- package/one/things/plans/mail-backend.md +546 -493
- package/one/things/plans/mail.md +379 -326
- package/one/things/plans/mcp-clear-context-prompt.md +21 -0
- package/one/things/plans/mcp-simple.md +20 -0
- package/one/things/plans/multi-ontology-architecture.md +115 -66
- package/one/things/plans/next-features.md +31 -0
- package/one/things/plans/onboarding.md +21 -2
- package/one/things/plans/one.md +18 -0
- package/one/things/plans/ontology-6-dimensions.md +31 -52
- package/one/things/plans/ontology-compliance-audit.md +315 -0
- package/one/things/plans/ontology-driven-strategy.md +19 -3
- package/one/things/plans/ontology-refine.md +586 -0
- package/one/things/plans/ontology-ui-approach.md +18 -0
- package/one/things/plans/open-agent.md +152 -97
- package/one/things/plans/performace.md +32 -0
- package/one/things/plans/phase-1-foundation.md +620 -0
- package/one/things/plans/phase-3-implementation.md +1037 -0
- package/one/things/plans/quick-wins.md +342 -187
- package/one/things/plans/readme-backend-cleanup.md +57 -16
- package/one/things/plans/release.md +55 -2
- package/one/things/plans/repos.md +22 -0
- package/one/things/plans/separate-copy-2.md +127 -71
- package/one/things/plans/separate-copy-3.md +35 -14
- package/one/things/plans/separate-copy.md +127 -71
- package/one/things/plans/separate-demo.md +37 -3
- package/one/things/plans/separate.md +24 -6
- package/one/things/plans/sequence.md +284 -141
- package/one/things/plans/shadcn-integration-summary.md +104 -44
- package/one/things/plans/sidebar.md +44 -10
- package/one/things/plans/skills.md +133 -30
- package/one/things/plans/small-fixes.md +19 -1
- package/one/things/plans/start-new.md +39 -13
- package/one/things/plans/switch-off-auth.md +22 -0
- package/one/things/plans/sync-checklist.md +34 -4
- package/one/things/plans/test-backend-connection.md +38 -0
- package/one/things/plans/unified-implementation-plan.md +145 -63
- package/one/things/plans/update-demos.md +156 -88
- package/one/things/plans/use-our-backend.md +572 -0
- package/one/things/plans/wave1-onboarding-100-inferences.md +1686 -0
- package/one/things/plans/wave1-onboarding-vision.md +744 -0
- package/one/things/plans/wave1-orchestration-summary.md +604 -0
- package/one/things/plans/wave1-specialist-assignments.md +1413 -0
- package/one/things/plans/workflow-files.md +28 -14
- package/one/things/plans/workflow.md +18 -12
- package/one/things/products/cascade-landing-page.md +150 -46
- package/one/things/products/cascade.md +185 -135
- package/one/things/products/context-engineering.md +411 -350
- package/one/things/products/onthology.md +15 -0
- package/one/things/products/ontology-ui-shadcn.md +375 -353
- package/one/things/products/ontology-ui.md +101 -59
- package/one/things/products/ontology.md +92 -20
- package/one/things/products/sdk.md +181 -165
- package/one/things/promptkit.md +70 -43
- package/one/things/repos/all-repos.md +0 -0
- package/one/things/service-providers-new.md +95 -25
- package/one/things/service-providers.md +231 -202
- package/one/things/structure.md +532 -0
- package/one/things/system.md +18 -0
- package/one/things/templates.md +40 -0
- package/one/things/tests/2-1-dataprovider-interface.md +105 -33
- package/one/things/tests/2-1-test-analysis.md +66 -18
- package/one/things/things.md +51 -16
- package/one/things/todo-acp-integration.md +744 -0
- package/one/things/todo-ai.md +933 -0
- package/one/things/todo-api.md +1078 -0
- package/one/things/todo-assignment.md +580 -0
- package/one/things/todo-buy-chatgpt.md +1450 -0
- package/one/things/todo-components.md +1683 -0
- package/one/things/todo-connections.md +278 -0
- package/one/things/todo-ecommerce-frontend.md +1313 -0
- package/one/things/todo-ecommerce.md +569 -0
- package/one/things/todo-effects.md +1075 -0
- package/one/things/todo-frontend-effects.md +977 -0
- package/one/things/todo-landing-page.md +1091 -0
- package/one/things/todo-mail.md +1160 -0
- package/one/things/todo-master-plan.md +490 -0
- package/one/things/todo-onboard.md +666 -0
- package/one/things/todo-one-ie.md +538 -0
- package/one/things/todo-page.md +606 -0
- package/one/things/todo-plans.md +282 -0
- package/one/things/todo-projects.md +241 -0
- package/one/things/todo-refactoring-plan.md +366 -0
- package/one/things/todo-sequence.md +1621 -0
- package/one/things/todo-use-our-backend.md +1908 -0
- package/one/things/todo-workflow.md +626 -0
- package/one/things/todo-x402.md +2047 -0
- package/one/things/todo.md +459 -1075
- package/one/things/video/scripts-crypto.md +835 -0
- package/one/things/video-script-ontology.md +334 -0
- package/package.json +7 -2
- package/.claude/commands/build.md +0 -293
- package/one/.obsidian/app.json +0 -8
- package/one/.obsidian/appearance.json +0 -1
- package/one/.obsidian/community-plugins.json +0 -3
- package/one/.obsidian/core-plugins.json +0 -33
- package/one/.obsidian/plugins/easy-bake/main.js +0 -361
- package/one/.obsidian/plugins/easy-bake/manifest.json +0 -11
- package/one/.obsidian/plugins/easy-bake/styles.css +0 -10
- package/one/.obsidian/workspace.json +0 -240
- package/one/events/2024-10-14-deployment-plan.md +0 -331
- package/one/events/2024-10-14-deployment-success.md +0 -448
- package/one/events/2024-10-14-final-sync-complete.md +0 -251
- package/one/events/2024-10-14-release-v2.0.6.md +0 -415
- package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -496
- package/one/events/2024-10-15-handoff-to-clean.md +0 -348
- package/one/events/2024-10-15-package-manager-tests.md +0 -443
- package/one/events/2024-10-15-release-command-complete.md +0 -417
- package/one/events/2025-10-15-private-files-secured.md +0 -341
- package/one/events/2025-10-15-unignore-public-group-docs.md +0 -280
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -262
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -636
- package/one/events/BEFORE_AFTER_COMPARISON.md +0 -960
- package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -354
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -412
- package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -290
- package/one/events/CONNECTIONS_DEMO.md +0 -501
- package/one/events/CREATE-WEBSITE.md +0 -442
- package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -504
- package/one/events/CUSTOM-DOMAIN.md +0 -357
- package/one/events/DELIVERABLES.md +0 -432
- package/one/events/DEMO-GROUPS-PAGE.md +0 -392
- package/one/events/DEMO-TESTING-SUMMARY.md +0 -518
- package/one/events/DEMO_COMPONENTS.md +0 -487
- package/one/events/DEMO_HOOKS_INDEX.md +0 -334
- package/one/events/DEMO_INFRASTRUCTURE.md +0 -905
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -570
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -431
- package/one/events/DEMO_QUICK_REFERENCE.md +0 -441
- package/one/events/DEMO_SETUP.md +0 -476
- package/one/events/DEPLOYMENT copy.md +0 -426
- package/one/events/DEPLOYMENT.md +0 -178
- package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -251
- package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -225
- package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -576
- package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -421
- package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -363
- package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -196
- package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -396
- package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -735
- package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -923
- package/one/events/EFFECT_TS_API_PATTERN.md +0 -478
- package/one/events/FEATURE-2-4-COMPLETE.md +0 -302
- package/one/events/FEATURE_2_3_COMPLETE.md +0 -575
- package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -223
- package/one/events/GROUPS-MIGRATION.md +0 -625
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -414
- package/one/events/HANDOFF.md +0 -313
- package/one/events/HOOKS-DEMO.md +0 -441
- package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -503
- package/one/events/IMPLEMENTATION_SUMMARY.md +0 -529
- package/one/events/INSTALL-TESTS.md +0 -293
- package/one/events/INSTALLATION_FOLDERS.md +0 -516
- package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -205
- package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -419
- package/one/events/INTEGRATION-ARCHITECTURE.md +0 -561
- package/one/events/INTEGRATION-CHECKLIST.md +0 -1234
- package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2623
- package/one/events/INTEGRATION-SUMMARY.md +0 -653
- package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -666
- package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -642
- package/one/events/LANDING-PAGE-QUICKSTART.md +0 -407
- package/one/events/LICENSE.md +0 -89
- package/one/events/MCP-CONFIGURATION.md +0 -336
- package/one/events/MCP-SETUP-COMPLETE.md +0 -205
- package/one/events/MIGRATION-REPORT.md +0 -435
- package/one/events/MIGRATION.md +0 -69
- package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1627
- package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -573
- package/one/events/NODE-UPGRADE.md +0 -111
- package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -398
- package/one/events/ONTOLOGY-HOOKS-README.md +0 -700
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -365
- package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -525
- package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -455
- package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -486
- package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -203
- package/one/events/PACKAGE-STRUCTURE.md +0 -310
- package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -331
- package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -567
- package/one/events/QA-CHECKLIST.md +0 -674
- package/one/events/QUICK-START-ONTOLOGY.md +0 -408
- package/one/events/README-archived.md +0 -519
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -639
- package/one/events/SEARCH_DEMO_DELIVERY.md +0 -415
- package/one/events/SEARCH_DEMO_SUMMARY.md +0 -303
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -381
- package/one/events/SECURITY-AUDIT-FIXES.md +0 -376
- package/one/events/SECURITY-SCAN-COMPLETE.md +0 -281
- package/one/events/SHOP-BUILD-STATUS.md +0 -114
- package/one/events/SHOP-PREMIUM-UPDATE.md +0 -149
- package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -262
- package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -299
- package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -359
- package/one/events/STRIPE-INTEGRATION.md +0 -414
- package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -429
- package/one/events/STRIPE-SETUP-GUIDE.md +0 -462
- package/one/events/TEST-PLAN-INDEX.md +0 -346
- package/one/events/TEST-PLAN.md +0 -1417
- package/one/events/TEST-SUMMARY.md +0 -393
- package/one/events/TESTING-DELIVERY.txt +0 -372
- package/one/events/TESTS-QUICK-REF.md +0 -262
- package/one/events/TRANSITIONS-QUICK-START.md +0 -141
- package/one/events/TRANSPARENCY-FIXES.md +0 -275
- package/one/events/TYPESCRIPT_FIXES.md +0 -152
- package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -341
- package/one/events/VIEW-TRANSITIONS.md +0 -428
- package/one/events/agent-director-enhancement-summary.md +0 -386
- package/one/events/agent-onboard-implementation-summary.md +0 -457
- package/one/events/backend-integration-tests.md +0 -606
- package/one/events/backend-structure-diagram.txt +0 -393
- package/one/events/backend-structure-summary.txt +0 -269
- package/one/events/clean-agent-ontology-cleanup-report.md +0 -353
- package/one/events/cloudflare-automation-complete.md +0 -332
- package/one/events/cloudflare-pages-infrastructure-setup.md +0 -264
- package/one/events/contact-page-complete.md +0 -298
- package/one/events/convex-analysis-index.md +0 -304
- package/one/events/convex-structure-analysis.md +0 -700
- package/one/events/deployment-installation-folders.md +0 -160
- package/one/events/deployment-ops-summary.md +0 -368
- package/one/events/deployment-verification.md +0 -348
- package/one/events/design-spec-complete.md +0 -208
- package/one/events/events.md +0 -545
- package/one/events/installation-folders-workflow-integration.md +0 -440
- package/one/events/landing-page-generator.md +0 -458
- package/one/events/legal-assessment-2025-10-16.md +0 -1899
- package/one/events/onboarding-implementation-complete.md +0 -505
- package/one/events/ontology-test-examples.md +0 -562
- package/one/events/phase1-backend-implementation-complete.md +0 -518
- package/one/events/release.md +0 -254
- package/one/events/separate-implementation-status.md +0 -537
- package/one/events/session-summary-2025-10-18.md +0 -348
- package/one/events/skills-complete.md +0 -333
- package/one/events/skills-infer-6-10-summary.md +0 -52
- package/one/events/skills-phase1-complete.md +0 -263
- package/one/events/test-dashboard.md +0 -345
- package/one/events/test-index.md +0 -361
- package/one/events/test-report-ontology.md +0 -582
- package/one/events/testing-summary.md +0 -344
- package/one/knowledge/CLOUDFLARE_ENV_SETUP.md +0 -49
- package/one/knowledge/docs/flow.md +0 -0
- package/one/knowledge/documentation-summary.md +0 -285
- package/one/knowledge/inference-score.md +0 -159
- package/one/knowledge/ontology-frontend-copy-2.md +0 -1492
- package/one/knowledge/ontology-frontend-copy.md +0 -753
- package/one/knowledge/ontology-migration-guide.md +0 -811
- package/one/things/features/0 All Features.md +0 -2
- package/one/things/plans/1-create-workflow-status.md +0 -555
- package/one/things/plans/2-backend-agnostic-frontend.md +0 -546
- package/one/things/plans/2-sites.md +0 -895
- package/one/things/plans/3-groups.md +0 -735
- package/one/things/plans/5-build-frontend.md +0 -0
- package/one/things/plans/5-complete.md +0 -17
- package/one/things/plans/agent-director-100-inference-plans.md +0 -410
- package/one/things/plans/dual-website-strategy.md +0 -612
- package/one/things/plans/releases.md +0 -809
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Effect
|
|
3
|
+
dimension: things
|
|
4
|
+
category: plans
|
|
5
|
+
tags: architecture, backend, frontend, cycle, ontology, testing
|
|
6
|
+
related_dimensions: connections, events, people
|
|
7
|
+
scope: global
|
|
8
|
+
created: 2025-11-03
|
|
9
|
+
updated: 2025-11-03
|
|
10
|
+
version: 1.0.0
|
|
11
|
+
ai_context: |
|
|
12
|
+
This document is part of the things dimension in the plans category.
|
|
13
|
+
Location: one/things/plans/effect.md
|
|
14
|
+
Purpose: Documents effect.ts integration plan: backend-agnostic architecture
|
|
15
|
+
Related dimensions: connections, events, people
|
|
16
|
+
For AI agents: Read this to understand effect.
|
|
17
|
+
---
|
|
18
|
+
|
|
1
19
|
# Effect.ts Integration Plan: Backend-Agnostic Architecture
|
|
2
20
|
|
|
3
21
|
**Status:** ✅ Phase 1-2 Complete (DataProvider + Services) | 🚧 Phases 3-7 In Progress
|
|
@@ -9,7 +27,7 @@
|
|
|
9
27
|
**Effect.ts powers the backend-agnostic architecture of ONE Platform** by providing type-safe, composable services that work with ANY backend (Convex, WordPress, Supabase, Notion, etc.). This document describes how Effect.ts integrates with the DataProvider pattern to enable:
|
|
10
28
|
|
|
11
29
|
1. **Backend Independence**: Frontend works with any backend that implements the 6-dimension ontology
|
|
12
|
-
2. **Type Safety**: Complete type
|
|
30
|
+
2. **Type Safety**: Complete type cycle from database to UI with zero runtime overhead
|
|
13
31
|
3. **Composability**: Services compose via Layer.mergeAll for dependency injection
|
|
14
32
|
4. **Error Handling**: Tagged errors replace try/catch throughout the stack
|
|
15
33
|
5. **Testing**: Mock providers enable isolated service testing
|
|
@@ -74,21 +92,25 @@ Based on production patterns from 14.ai (AI customer support) and the unified im
|
|
|
74
92
|
### Key Architectural Decisions
|
|
75
93
|
|
|
76
94
|
**1. Backend-Agnostic by Default**
|
|
95
|
+
|
|
77
96
|
- Services use `DataProvider`, not direct backend calls
|
|
78
97
|
- Frontend can work with Convex, WordPress, Supabase, etc.
|
|
79
98
|
- Change backend = edit ONE line in `astro.config.ts`
|
|
80
99
|
|
|
81
100
|
**2. 6-Dimension Ontology as Source of Truth**
|
|
101
|
+
|
|
82
102
|
- Every feature maps to: groups, people, things, connections, events, knowledge
|
|
83
103
|
- DataProvider interface enforces this structure
|
|
84
104
|
- Backends implement the ontology their own way (see `one/knowledge/ontology.md`)
|
|
85
105
|
|
|
86
106
|
**3. Effect.ts for Services, Not Everywhere**
|
|
107
|
+
|
|
87
108
|
- Backend: Effect.ts services with typed errors
|
|
88
109
|
- Frontend: Standard React hooks (useEffectRunner for complex flows)
|
|
89
110
|
- Keep it simple: Effect where it adds value, standard TypeScript elsewhere
|
|
90
111
|
|
|
91
112
|
**4. Separation Enables Installation**
|
|
113
|
+
|
|
92
114
|
- When users run `npx oneie`, they get frontend only
|
|
93
115
|
- Backend is OFF by default (users can connect their own)
|
|
94
116
|
- Organizations can use existing infrastructure (WordPress, Notion, etc.)
|
|
@@ -100,12 +122,14 @@ Based on production patterns from 14.ai (AI customer support) and the unified im
|
|
|
100
122
|
### ✅ COMPLETED (Phases 1-2: 4 weeks)
|
|
101
123
|
|
|
102
124
|
**Phase 1: DataProvider Foundation** ✅
|
|
125
|
+
|
|
103
126
|
- DataProvider interface complete: `/web/src/providers/DataProvider.ts`
|
|
104
127
|
- ConvexProvider implementation complete
|
|
105
128
|
- Typed errors (ThingNotFoundError, etc.)
|
|
106
129
|
- Backend swapping works (change ONE line)
|
|
107
130
|
|
|
108
131
|
**Phase 2: Effect.ts Service Layer** ✅
|
|
132
|
+
|
|
109
133
|
- All 6 dimension services complete:
|
|
110
134
|
- `/web/src/services/ThingService.ts` (66 types)
|
|
111
135
|
- `/web/src/services/ConnectionService.ts` (25 types)
|
|
@@ -120,30 +144,35 @@ Based on production patterns from 14.ai (AI customer support) and the unified im
|
|
|
120
144
|
### 🚧 REMAINING (Phases 3-7: 7 weeks)
|
|
121
145
|
|
|
122
146
|
**Phase 3: Backend Implementation** (NOT STARTED)
|
|
147
|
+
|
|
123
148
|
- Implement CRUD mutations for all 66 thing types
|
|
124
149
|
- Add event logging to all mutations
|
|
125
150
|
- Enforce group scoping
|
|
126
151
|
- Add rate limiting
|
|
127
152
|
|
|
128
153
|
**Phase 4: Frontend Integration** (NOT STARTED)
|
|
154
|
+
|
|
129
155
|
- Multi-tenant dashboard
|
|
130
156
|
- Entity management UI (all 66 types)
|
|
131
157
|
- Connection visualization
|
|
132
158
|
- Real-time event timeline
|
|
133
159
|
|
|
134
160
|
**Phase 5: RAG & Knowledge** (NOT STARTED)
|
|
161
|
+
|
|
135
162
|
- Chunking service (800 tokens, 200 overlap)
|
|
136
163
|
- Embedding service (OpenAI integration)
|
|
137
164
|
- RAG ingestion pipeline
|
|
138
165
|
- Vector search
|
|
139
166
|
|
|
140
167
|
**Phase 6: Testing** (PARTIAL - auth tests exist)
|
|
168
|
+
|
|
141
169
|
- Backend service coverage (90%)
|
|
142
170
|
- Frontend coverage (70%)
|
|
143
171
|
- Multi-backend tests
|
|
144
172
|
- CI/CD pipeline
|
|
145
173
|
|
|
146
174
|
**Phase 7: Multi-Backend** (OPTIONAL)
|
|
175
|
+
|
|
147
176
|
- WordPressProvider
|
|
148
177
|
- SupabaseProvider
|
|
149
178
|
- CompositeProvider (multi-backend routing)
|
|
@@ -199,7 +228,7 @@ ONE/
|
|
|
199
228
|
├── one/ # Platform documentation (41 files)
|
|
200
229
|
│ ├── knowledge/
|
|
201
230
|
│ │ ├── ontology.md # ✅ 6-dimension data model (source of truth)
|
|
202
|
-
│ │ └── todo.md # 100-
|
|
231
|
+
│ │ └── todo.md # 100-cycle execution template
|
|
203
232
|
│ └── things/plans/
|
|
204
233
|
│ ├── effect.md # This file
|
|
205
234
|
│ ├── separate.md # Backend separation plan
|
|
@@ -211,6 +240,7 @@ ONE/
|
|
|
211
240
|
```
|
|
212
241
|
|
|
213
242
|
**Key Differences from Standard Convex:**
|
|
243
|
+
|
|
214
244
|
1. Services live in `/web/src/services/` (not backend)
|
|
215
245
|
2. Services use `DataProvider` (not direct Convex calls)
|
|
216
246
|
3. Backend is optional (users can bring their own)
|
|
@@ -238,14 +268,20 @@ export interface DataProvider {
|
|
|
238
268
|
// Dimension 2: People
|
|
239
269
|
people: {
|
|
240
270
|
get: (id: string) => Effect.Effect<Person, PersonNotFoundError>;
|
|
241
|
-
list: (params: {
|
|
271
|
+
list: (params: {
|
|
272
|
+
groupId?: string;
|
|
273
|
+
role?: string;
|
|
274
|
+
}) => Effect.Effect<Person[], Error>;
|
|
242
275
|
create: (input: CreatePersonInput) => Effect.Effect<string, Error>;
|
|
243
276
|
};
|
|
244
277
|
|
|
245
278
|
// Dimension 3: Things
|
|
246
279
|
things: {
|
|
247
280
|
get: (id: string) => Effect.Effect<Thing, ThingNotFoundError>;
|
|
248
|
-
list: (params: {
|
|
281
|
+
list: (params: {
|
|
282
|
+
type: ThingType;
|
|
283
|
+
groupId?: string;
|
|
284
|
+
}) => Effect.Effect<Thing[], Error>;
|
|
249
285
|
create: (input: CreateThingInput) => Effect.Effect<string, Error>;
|
|
250
286
|
update: (id: string, updates: Partial<Thing>) => Effect.Effect<void, Error>;
|
|
251
287
|
delete: (id: string) => Effect.Effect<void, Error>;
|
|
@@ -267,7 +303,9 @@ export interface DataProvider {
|
|
|
267
303
|
// Dimension 6: Knowledge
|
|
268
304
|
knowledge: {
|
|
269
305
|
embed: (text: string) => Effect.Effect<number[], Error>;
|
|
270
|
-
search: (
|
|
306
|
+
search: (
|
|
307
|
+
params: SearchKnowledgeInput,
|
|
308
|
+
) => Effect.Effect<KnowledgeChunk[], Error>;
|
|
271
309
|
};
|
|
272
310
|
}
|
|
273
311
|
|
|
@@ -285,7 +323,7 @@ export class ThingService extends Effect.Service<ThingService>()(
|
|
|
285
323
|
"ThingService",
|
|
286
324
|
{
|
|
287
325
|
effect: Effect.gen(function* () {
|
|
288
|
-
const provider = yield* DataProvider;
|
|
326
|
+
const provider = yield* DataProvider; // Backend-agnostic!
|
|
289
327
|
|
|
290
328
|
return {
|
|
291
329
|
// Create any of the 66 thing types
|
|
@@ -337,8 +375,8 @@ export class ThingService extends Effect.Service<ThingService>()(
|
|
|
337
375
|
}),
|
|
338
376
|
};
|
|
339
377
|
}),
|
|
340
|
-
dependencies: [DataProvider],
|
|
341
|
-
}
|
|
378
|
+
dependencies: [DataProvider], // Inject provider
|
|
379
|
+
},
|
|
342
380
|
) {}
|
|
343
381
|
```
|
|
344
382
|
|
|
@@ -375,7 +413,8 @@ export class ConvexProvider implements DataProvider {
|
|
|
375
413
|
|
|
376
414
|
update: (id, updates) =>
|
|
377
415
|
Effect.tryPromise({
|
|
378
|
-
try: () =>
|
|
416
|
+
try: () =>
|
|
417
|
+
this.client.mutation(api.mutations.things.update, { id, ...updates }),
|
|
379
418
|
catch: (error) => new Error(String(error)),
|
|
380
419
|
}),
|
|
381
420
|
|
|
@@ -392,7 +431,7 @@ export class ConvexProvider implements DataProvider {
|
|
|
392
431
|
export const convexProvider = (config: { url: string }) =>
|
|
393
432
|
Layer.succeed(
|
|
394
433
|
DataProvider,
|
|
395
|
-
new ConvexProvider(new ConvexHttpClient(config.url))
|
|
434
|
+
new ConvexProvider(new ConvexHttpClient(config.url)),
|
|
396
435
|
);
|
|
397
436
|
```
|
|
398
437
|
|
|
@@ -468,11 +507,13 @@ export function CreateCourseForm() {
|
|
|
468
507
|
### Benefits of This Architecture
|
|
469
508
|
|
|
470
509
|
**1. True Backend Independence**
|
|
510
|
+
|
|
471
511
|
- Frontend code never imports backend-specific modules
|
|
472
512
|
- Services use DataProvider interface only
|
|
473
513
|
- Swap backends without changing a single service or component
|
|
474
514
|
|
|
475
515
|
**2. Testing Without Backend**
|
|
516
|
+
|
|
476
517
|
```typescript
|
|
477
518
|
// web/src/services/__tests__/ThingService.test.ts
|
|
478
519
|
import { Effect, Layer } from "effect";
|
|
@@ -505,20 +546,22 @@ test("should create course", async () => {
|
|
|
505
546
|
```
|
|
506
547
|
|
|
507
548
|
**3. Organizations Use Existing Infrastructure**
|
|
549
|
+
|
|
508
550
|
```typescript
|
|
509
551
|
// Organization A: Uses Convex (real-time)
|
|
510
|
-
provider: convexProvider({ url: "..." })
|
|
552
|
+
provider: convexProvider({ url: "..." });
|
|
511
553
|
|
|
512
554
|
// Organization B: Uses WordPress (existing CMS)
|
|
513
|
-
provider: wordpressProvider({ url: "https://blog.org", apiKey: "..." })
|
|
555
|
+
provider: wordpressProvider({ url: "https://blog.org", apiKey: "..." });
|
|
514
556
|
|
|
515
557
|
// Organization C: Uses Supabase (PostgreSQL)
|
|
516
|
-
provider: supabaseProvider({ url: "...", key: "..." })
|
|
558
|
+
provider: supabaseProvider({ url: "...", key: "..." });
|
|
517
559
|
|
|
518
560
|
// Same frontend code works for all three!
|
|
519
561
|
```
|
|
520
562
|
|
|
521
563
|
**4. Deployment Flexibility**
|
|
564
|
+
|
|
522
565
|
```bash
|
|
523
566
|
# Development: Full stack
|
|
524
567
|
ONE_BACKEND=on
|
|
@@ -560,37 +603,39 @@ export const confectSchema = defineSchema({
|
|
|
560
603
|
Schema.Struct({
|
|
561
604
|
tags: Schema.Array(Schema.String),
|
|
562
605
|
lastActive: Schema.Number,
|
|
563
|
-
})
|
|
606
|
+
}),
|
|
564
607
|
),
|
|
565
|
-
})
|
|
608
|
+
}),
|
|
566
609
|
)
|
|
567
610
|
.index("by_user", ["userId"])
|
|
568
611
|
.index("by_status", ["status"]),
|
|
569
|
-
|
|
612
|
+
|
|
570
613
|
threads: defineTable(
|
|
571
614
|
Schema.Struct({
|
|
572
615
|
agentId: Id.Id("agents"),
|
|
573
616
|
userId: Id.Id("users"),
|
|
574
617
|
title: Schema.optional(Schema.String),
|
|
575
|
-
})
|
|
618
|
+
}),
|
|
576
619
|
)
|
|
577
620
|
.index("by_agent", ["agentId"])
|
|
578
621
|
.index("by_user", ["userId"]),
|
|
579
|
-
|
|
622
|
+
|
|
580
623
|
messages: defineTable(
|
|
581
624
|
Schema.Struct({
|
|
582
625
|
threadId: Id.Id("threads"),
|
|
583
626
|
role: Schema.Literal("user", "assistant", "system", "tool"),
|
|
584
627
|
content: Schema.String,
|
|
585
|
-
toolCalls: Schema.optional(
|
|
586
|
-
Schema.
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
628
|
+
toolCalls: Schema.optional(
|
|
629
|
+
Schema.Array(
|
|
630
|
+
Schema.Struct({
|
|
631
|
+
name: Schema.String,
|
|
632
|
+
args: Schema.Record(Schema.String, Schema.Unknown),
|
|
633
|
+
result: Schema.optional(Schema.Unknown),
|
|
634
|
+
}),
|
|
635
|
+
),
|
|
636
|
+
),
|
|
592
637
|
embedding: Schema.optional(Schema.Array(Schema.Number)),
|
|
593
|
-
})
|
|
638
|
+
}),
|
|
594
639
|
)
|
|
595
640
|
.index("by_thread", ["threadId"])
|
|
596
641
|
.vectorIndex("embedding", {
|
|
@@ -632,7 +677,9 @@ export const {
|
|
|
632
677
|
query,
|
|
633
678
|
} = makeFunctions(confectSchema);
|
|
634
679
|
|
|
635
|
-
type ConfectDataModel = ConfectDataModelFromConfectSchemaDefinition<
|
|
680
|
+
type ConfectDataModel = ConfectDataModelFromConfectSchemaDefinition<
|
|
681
|
+
typeof confectSchema
|
|
682
|
+
>;
|
|
636
683
|
|
|
637
684
|
export type ConfectDoc<
|
|
638
685
|
TableName extends TableNamesInConfectDataModel<ConfectDataModel>,
|
|
@@ -655,7 +702,12 @@ Queries, mutations, and actions now use Effect patterns:
|
|
|
655
702
|
```typescript
|
|
656
703
|
// convex/functions.ts
|
|
657
704
|
import { Effect } from "effect";
|
|
658
|
-
import {
|
|
705
|
+
import {
|
|
706
|
+
ConfectMutationCtx,
|
|
707
|
+
ConfectQueryCtx,
|
|
708
|
+
mutation,
|
|
709
|
+
query,
|
|
710
|
+
} from "./confect";
|
|
659
711
|
import { Schema } from "effect";
|
|
660
712
|
|
|
661
713
|
// Query: Read agent threads (reactive)
|
|
@@ -675,29 +727,29 @@ export const listThreads = query({
|
|
|
675
727
|
|
|
676
728
|
// Mutation: Create thread (transactional)
|
|
677
729
|
export const createThread = mutation({
|
|
678
|
-
args: Schema.Struct({
|
|
679
|
-
agentId: Schema.String,
|
|
730
|
+
args: Schema.Struct({
|
|
731
|
+
agentId: Schema.String,
|
|
680
732
|
userId: Schema.String,
|
|
681
|
-
initialMessage: Schema.String
|
|
733
|
+
initialMessage: Schema.String,
|
|
682
734
|
}),
|
|
683
735
|
returns: Schema.String,
|
|
684
736
|
handler: ({ agentId, userId, initialMessage }) =>
|
|
685
737
|
Effect.gen(function* () {
|
|
686
738
|
const { db } = yield* ConfectMutationCtx;
|
|
687
|
-
|
|
739
|
+
|
|
688
740
|
// Create thread
|
|
689
741
|
const threadId = yield* db.insert("threads", {
|
|
690
742
|
agentId,
|
|
691
743
|
userId,
|
|
692
744
|
});
|
|
693
|
-
|
|
745
|
+
|
|
694
746
|
// Add first message
|
|
695
747
|
yield* db.insert("messages", {
|
|
696
748
|
threadId,
|
|
697
749
|
role: "user",
|
|
698
750
|
content: initialMessage,
|
|
699
751
|
});
|
|
700
|
-
|
|
752
|
+
|
|
701
753
|
return threadId;
|
|
702
754
|
}),
|
|
703
755
|
});
|
|
@@ -728,15 +780,15 @@ import { api } from "../../convex/_generated/api";
|
|
|
728
780
|
export function AgentChat({ userId }: { userId: string }) {
|
|
729
781
|
const threads = useQuery(api.functions.listThreads, { userId });
|
|
730
782
|
const createThread = useMutation(api.functions.createThread);
|
|
731
|
-
|
|
783
|
+
|
|
732
784
|
// Reactive updates happen automatically
|
|
733
785
|
return (
|
|
734
786
|
<div>
|
|
735
787
|
{threads?.map(thread => (
|
|
736
788
|
<ThreadItem key={thread._id} thread={thread} />
|
|
737
789
|
))}
|
|
738
|
-
<button onClick={() => createThread({
|
|
739
|
-
agentId: "agent123",
|
|
790
|
+
<button onClick={() => createThread({
|
|
791
|
+
agentId: "agent123",
|
|
740
792
|
userId,
|
|
741
793
|
initialMessage: "Hello!"
|
|
742
794
|
})}>
|
|
@@ -813,7 +865,7 @@ Critical TypeScript settings for confect compatibility:
|
|
|
813
865
|
|
|
814
866
|
**Resource management prevents leaks in long-running agents.** Effect's Scope system automatically releases resources (database connections, WebSocket streams, file handles) regardless of success, failure, or interruption. For streaming LLM responses, wrap in `Effect.scoped` with `addFinalizer` to abort streams on user cancellation. For RAG agents processing documents, ensure file handles close even when errors occur mid-processing. Effect handles cleanup correctly across concurrent operations—critical for production systems running 24/7.
|
|
815
867
|
|
|
816
|
-
**Schema validation provides type-safe data transformation.** Effect's Schema library validates and transforms data with full type
|
|
868
|
+
**Schema validation provides type-safe data transformation.** Effect's Schema library validates and transforms data with full type cycle. For AI agents, validate LLM function call outputs match expected schemas, parse structured responses, and enforce business rules. Schemas compose—define a base tool schema and extend it for specific tools. Transformations convert between API shapes and domain models. Combined with confect, your entire stack has end-to-end type safety from database to frontend.
|
|
817
869
|
|
|
818
870
|
### confect-specific benefits for Convex
|
|
819
871
|
|
|
@@ -926,13 +978,13 @@ export const save = mutation({
|
|
|
926
978
|
handler: (args) =>
|
|
927
979
|
Effect.gen(function* () {
|
|
928
980
|
const { db } = yield* ConfectMutationCtx;
|
|
929
|
-
|
|
981
|
+
|
|
930
982
|
// Validate thread exists
|
|
931
983
|
const thread = yield* db.get(args.threadId);
|
|
932
984
|
if (!thread) {
|
|
933
985
|
return yield* Effect.fail(new Error("Thread not found"));
|
|
934
986
|
}
|
|
935
|
-
|
|
987
|
+
|
|
936
988
|
// Insert message
|
|
937
989
|
const messageId = yield* db.insert("messages", {
|
|
938
990
|
threadId: args.threadId,
|
|
@@ -940,7 +992,7 @@ export const save = mutation({
|
|
|
940
992
|
content: args.content,
|
|
941
993
|
toolCalls: args.toolCalls,
|
|
942
994
|
});
|
|
943
|
-
|
|
995
|
+
|
|
944
996
|
return messageId;
|
|
945
997
|
}),
|
|
946
998
|
});
|
|
@@ -956,9 +1008,9 @@ import { LLMProvider, VectorStore } from "../lib/services";
|
|
|
956
1008
|
import { Schema } from "effect";
|
|
957
1009
|
|
|
958
1010
|
export const generateResponse = action({
|
|
959
|
-
args: Schema.Struct({
|
|
1011
|
+
args: Schema.Struct({
|
|
960
1012
|
threadId: Schema.String,
|
|
961
|
-
prompt: Schema.String
|
|
1013
|
+
prompt: Schema.String,
|
|
962
1014
|
}),
|
|
963
1015
|
returns: Schema.String,
|
|
964
1016
|
handler: (args) =>
|
|
@@ -966,46 +1018,50 @@ export const generateResponse = action({
|
|
|
966
1018
|
const ctx = yield* ConfectActionCtx;
|
|
967
1019
|
const llm = yield* LLMProvider;
|
|
968
1020
|
const vectorStore = yield* VectorStore;
|
|
969
|
-
|
|
1021
|
+
|
|
970
1022
|
// 1. Retrieve conversation history (via query)
|
|
971
1023
|
const messages = yield* Effect.promise(() =>
|
|
972
|
-
ctx.runQuery(api.queries.messages.list, { threadId: args.threadId })
|
|
1024
|
+
ctx.runQuery(api.queries.messages.list, { threadId: args.threadId }),
|
|
973
1025
|
);
|
|
974
|
-
|
|
1026
|
+
|
|
975
1027
|
// 2. Search for relevant context
|
|
976
1028
|
const context = yield* vectorStore.search(args.prompt).pipe(
|
|
977
1029
|
Effect.timeout("5 seconds"),
|
|
978
|
-
Effect.catchAll(() => Effect.succeed([]))
|
|
1030
|
+
Effect.catchAll(() => Effect.succeed([])), // Graceful degradation
|
|
979
1031
|
);
|
|
980
|
-
|
|
1032
|
+
|
|
981
1033
|
// 3. Generate response with retry logic
|
|
982
|
-
const response = yield* llm
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
Effect.retry({
|
|
987
|
-
times: 3,
|
|
988
|
-
schedule: Schedule.exponential("1 second"),
|
|
989
|
-
}),
|
|
990
|
-
Effect.catchTags({
|
|
991
|
-
RateLimitError: () => llm.generateWithFallback(args.prompt),
|
|
992
|
-
NetworkError: (error) =>
|
|
993
|
-
Effect.succeed("I'm having trouble connecting. Please try again."),
|
|
1034
|
+
const response = yield* llm
|
|
1035
|
+
.generate({
|
|
1036
|
+
messages: [...messages, { role: "user", content: args.prompt }],
|
|
1037
|
+
context,
|
|
994
1038
|
})
|
|
995
|
-
|
|
996
|
-
|
|
1039
|
+
.pipe(
|
|
1040
|
+
Effect.retry({
|
|
1041
|
+
times: 3,
|
|
1042
|
+
schedule: Schedule.exponential("1 second"),
|
|
1043
|
+
}),
|
|
1044
|
+
Effect.catchTags({
|
|
1045
|
+
RateLimitError: () => llm.generateWithFallback(args.prompt),
|
|
1046
|
+
NetworkError: (error) =>
|
|
1047
|
+
Effect.succeed(
|
|
1048
|
+
"I'm having trouble connecting. Please try again.",
|
|
1049
|
+
),
|
|
1050
|
+
}),
|
|
1051
|
+
);
|
|
1052
|
+
|
|
997
1053
|
// 4. Save response (via mutation)
|
|
998
1054
|
yield* Effect.promise(() =>
|
|
999
1055
|
ctx.runMutation(api.mutations.messages.save, {
|
|
1000
1056
|
threadId: args.threadId,
|
|
1001
1057
|
role: "assistant",
|
|
1002
1058
|
content: response,
|
|
1003
|
-
})
|
|
1059
|
+
}),
|
|
1004
1060
|
);
|
|
1005
|
-
|
|
1061
|
+
|
|
1006
1062
|
return response;
|
|
1007
1063
|
}).pipe(
|
|
1008
|
-
Effect.provide(AppLayer)
|
|
1064
|
+
Effect.provide(AppLayer), // Provide service implementations
|
|
1009
1065
|
),
|
|
1010
1066
|
});
|
|
1011
1067
|
```
|
|
@@ -1025,7 +1081,7 @@ export const searchKnowledgeBase = (query: string) =>
|
|
|
1025
1081
|
Effect.gen(function* () {
|
|
1026
1082
|
const vectorStore = yield* VectorStore;
|
|
1027
1083
|
const results = yield* vectorStore.search(query, { limit: 5 });
|
|
1028
|
-
return results.map(r => r.content).join("\n\n");
|
|
1084
|
+
return results.map((r) => r.content).join("\n\n");
|
|
1029
1085
|
});
|
|
1030
1086
|
```
|
|
1031
1087
|
|
|
@@ -1042,21 +1098,21 @@ export const handleSupportQuery = (query: string) =>
|
|
|
1042
1098
|
// Step 1: Search knowledge base
|
|
1043
1099
|
const context = yield* searchKnowledgeBase(query).pipe(
|
|
1044
1100
|
Effect.timeout("5 seconds"),
|
|
1045
|
-
Effect.retry({ times: 2 })
|
|
1101
|
+
Effect.retry({ times: 2 }),
|
|
1046
1102
|
);
|
|
1047
|
-
|
|
1103
|
+
|
|
1048
1104
|
// Step 2: Generate response with context
|
|
1049
1105
|
const response = yield* generateResponse({
|
|
1050
1106
|
query,
|
|
1051
1107
|
context,
|
|
1052
1108
|
tone: "helpful and professional",
|
|
1053
1109
|
});
|
|
1054
|
-
|
|
1110
|
+
|
|
1055
1111
|
// Step 3: If response is uncertain, escalate
|
|
1056
1112
|
if (response.confidence < 0.7) {
|
|
1057
1113
|
yield* escalateToHuman(query, response);
|
|
1058
1114
|
}
|
|
1059
|
-
|
|
1115
|
+
|
|
1060
1116
|
return response;
|
|
1061
1117
|
});
|
|
1062
1118
|
```
|
|
@@ -1073,10 +1129,10 @@ export class BillingAgent {
|
|
|
1073
1129
|
Effect.gen(function* () {
|
|
1074
1130
|
// Billing-specific preprocessing
|
|
1075
1131
|
const normalized = normalizeBillingQuery(query);
|
|
1076
|
-
|
|
1132
|
+
|
|
1077
1133
|
// Delegate to support workflow
|
|
1078
1134
|
const response = yield* handleSupportQuery(normalized);
|
|
1079
|
-
|
|
1135
|
+
|
|
1080
1136
|
// Billing-specific postprocessing
|
|
1081
1137
|
return formatBillingResponse(response);
|
|
1082
1138
|
});
|
|
@@ -1094,12 +1150,10 @@ export class AgentService extends Context.Tag("AgentService")<
|
|
|
1094
1150
|
{
|
|
1095
1151
|
readonly executeWorkflow: (
|
|
1096
1152
|
workflowId: string,
|
|
1097
|
-
input: unknown
|
|
1153
|
+
input: unknown,
|
|
1098
1154
|
) => Effect.Effect<string, AgentError>;
|
|
1099
|
-
|
|
1100
|
-
readonly registerTool: (
|
|
1101
|
-
tool: AgentTool
|
|
1102
|
-
) => Effect.Effect<void, never>;
|
|
1155
|
+
|
|
1156
|
+
readonly registerTool: (tool: AgentTool) => Effect.Effect<void, never>;
|
|
1103
1157
|
}
|
|
1104
1158
|
>() {}
|
|
1105
1159
|
|
|
@@ -1113,7 +1167,7 @@ export const AgentLive = Layer.effect(
|
|
|
1113
1167
|
Effect.gen(function* () {
|
|
1114
1168
|
const llm = yield* LLMProvider;
|
|
1115
1169
|
const tools = yield* ToolRegistry;
|
|
1116
|
-
|
|
1170
|
+
|
|
1117
1171
|
return {
|
|
1118
1172
|
executeWorkflow: (workflowId, input) =>
|
|
1119
1173
|
Effect.gen(function* () {
|
|
@@ -1121,11 +1175,10 @@ export const AgentLive = Layer.effect(
|
|
|
1121
1175
|
const result = yield* workflow.run(input, { llm, tools });
|
|
1122
1176
|
return result;
|
|
1123
1177
|
}),
|
|
1124
|
-
|
|
1125
|
-
registerTool: (tool) =>
|
|
1126
|
-
tools.register(tool),
|
|
1178
|
+
|
|
1179
|
+
registerTool: (tool) => tools.register(tool),
|
|
1127
1180
|
};
|
|
1128
|
-
})
|
|
1181
|
+
}),
|
|
1129
1182
|
);
|
|
1130
1183
|
```
|
|
1131
1184
|
|
|
@@ -1146,7 +1199,10 @@ export class ToolRegistry extends Context.Tag("ToolRegistry")<
|
|
|
1146
1199
|
ToolRegistry,
|
|
1147
1200
|
{
|
|
1148
1201
|
readonly register: (tool: AgentTool) => Effect.Effect<void, never>;
|
|
1149
|
-
readonly execute: (
|
|
1202
|
+
readonly execute: (
|
|
1203
|
+
name: string,
|
|
1204
|
+
args: unknown,
|
|
1205
|
+
) => Effect.Effect<any, ToolError>;
|
|
1150
1206
|
readonly list: () => Effect.Effect<AgentTool[], never>;
|
|
1151
1207
|
}
|
|
1152
1208
|
>() {}
|
|
@@ -1187,10 +1243,10 @@ import { AgentLive } from "./AgentLive";
|
|
|
1187
1243
|
export const AppLayer = Layer.mergeAll(
|
|
1188
1244
|
DatabaseLive,
|
|
1189
1245
|
LLMProviderLive,
|
|
1190
|
-
VectorStoreLive
|
|
1246
|
+
VectorStoreLive,
|
|
1191
1247
|
).pipe(
|
|
1192
|
-
Layer.provideMerge(ToolRegistryLive),
|
|
1193
|
-
Layer.provideMerge(AgentLive)
|
|
1248
|
+
Layer.provideMerge(ToolRegistryLive), // ToolRegistry depends on above
|
|
1249
|
+
Layer.provideMerge(AgentLive), // AgentService depends on all
|
|
1194
1250
|
);
|
|
1195
1251
|
|
|
1196
1252
|
// Usage in actions
|
|
@@ -1201,7 +1257,7 @@ export const myAction = action({
|
|
|
1201
1257
|
const result = yield* agent.executeWorkflow("support", args);
|
|
1202
1258
|
return result;
|
|
1203
1259
|
}).pipe(
|
|
1204
|
-
Effect.provide(AppLayer)
|
|
1260
|
+
Effect.provide(AppLayer), // Provide all services
|
|
1205
1261
|
),
|
|
1206
1262
|
});
|
|
1207
1263
|
```
|
|
@@ -1220,7 +1276,7 @@ export const myAction = action({
|
|
|
1220
1276
|
// Familiar async/await
|
|
1221
1277
|
async function fetchUser(id: string) {
|
|
1222
1278
|
const user = await db.query("users").get(id);
|
|
1223
|
-
const posts = await db.query("posts").filter(p => p.userId === user._id);
|
|
1279
|
+
const posts = await db.query("posts").filter((p) => p.userId === user._id);
|
|
1224
1280
|
return { user, posts };
|
|
1225
1281
|
}
|
|
1226
1282
|
|
|
@@ -1229,7 +1285,7 @@ const fetchUser = (id: string) =>
|
|
|
1229
1285
|
Effect.gen(function* () {
|
|
1230
1286
|
const { db } = yield* ConfectQueryCtx;
|
|
1231
1287
|
const user = yield* db.query("users").get(id);
|
|
1232
|
-
const posts = yield* db.query("posts").filter(p => p.userId === user._id);
|
|
1288
|
+
const posts = yield* db.query("posts").filter((p) => p.userId === user._id);
|
|
1233
1289
|
return { user, posts };
|
|
1234
1290
|
});
|
|
1235
1291
|
```
|
|
@@ -1249,13 +1305,9 @@ const fetchUser = (id: string) =>
|
|
|
1249
1305
|
**Agent-specific performance patterns:**
|
|
1250
1306
|
|
|
1251
1307
|
1. **Cache embeddings aggressively.** Vector embedding generation is expensive. Store embeddings in Convex with the `vectorIndex` and reuse them.
|
|
1252
|
-
|
|
1253
1308
|
2. **Limit concurrent LLM calls.** Use `Effect.all(calls, { concurrency: 3 })` to avoid rate limits and manage costs.
|
|
1254
|
-
|
|
1255
1309
|
3. **Stream responses when possible.** For chat interfaces, stream LLM tokens as they arrive rather than waiting for complete responses. Effect's Stream module handles this efficiently.
|
|
1256
|
-
|
|
1257
1310
|
4. **Denormalize for read performance.** Convex doesn't support joins. Denormalize frequently-accessed data rather than making multiple queries.
|
|
1258
|
-
|
|
1259
1311
|
|
|
1260
1312
|
### Debugging and tooling
|
|
1261
1313
|
|
|
@@ -1270,16 +1322,16 @@ import { Effect } from "effect";
|
|
|
1270
1322
|
|
|
1271
1323
|
const agentWorkflow = Effect.gen(function* () {
|
|
1272
1324
|
yield* Effect.log("Starting agent workflow", { userId, threadId });
|
|
1273
|
-
|
|
1325
|
+
|
|
1274
1326
|
const result = yield* generateResponse(prompt).pipe(
|
|
1275
|
-
Effect.tap((response) =>
|
|
1276
|
-
Effect.log("Generated response", {
|
|
1327
|
+
Effect.tap((response) =>
|
|
1328
|
+
Effect.log("Generated response", {
|
|
1277
1329
|
length: response.length,
|
|
1278
|
-
model: "gpt-4o"
|
|
1279
|
-
})
|
|
1280
|
-
)
|
|
1330
|
+
model: "gpt-4o",
|
|
1331
|
+
}),
|
|
1332
|
+
),
|
|
1281
1333
|
);
|
|
1282
|
-
|
|
1334
|
+
|
|
1283
1335
|
yield* Effect.log("Workflow complete", { result });
|
|
1284
1336
|
return result;
|
|
1285
1337
|
});
|
|
@@ -1294,8 +1346,8 @@ import { Tracer } from "effect";
|
|
|
1294
1346
|
|
|
1295
1347
|
const tracedGeneration = generateText(prompt).pipe(
|
|
1296
1348
|
Effect.withSpan("llm-generation", {
|
|
1297
|
-
attributes: { model: "gpt-4o", promptLength: prompt.length }
|
|
1298
|
-
})
|
|
1349
|
+
attributes: { model: "gpt-4o", promptLength: prompt.length },
|
|
1350
|
+
}),
|
|
1299
1351
|
);
|
|
1300
1352
|
```
|
|
1301
1353
|
|
|
@@ -1308,11 +1360,8 @@ Traces export to your observability platform (Datadog, Honeycomb, etc.) for prod
|
|
|
1308
1360
|
**For existing Convex projects, adopt incrementally:**
|
|
1309
1361
|
|
|
1310
1362
|
1. **Phase 1: Add confect and Effect to new features only.** Don't rewrite existing code. Implement new agent functionality using Effect patterns. This demonstrates value without disrupting working code.
|
|
1311
|
-
|
|
1312
1363
|
2. **Phase 2: Wrap high-value existing code.** Identify error-prone areas—typically external API calls and complex multi-step workflows. Wrap these in Effect with proper error handling and retries.
|
|
1313
|
-
|
|
1314
1364
|
3. **Phase 3: Migrate critical paths.** Once team is comfortable, migrate high-traffic or business-critical paths to Effect for improved reliability.
|
|
1315
|
-
|
|
1316
1365
|
|
|
1317
1366
|
**Interoperability pattern** for gradual migration:
|
|
1318
1367
|
|
|
@@ -1329,12 +1378,10 @@ export const modernFunction = query({
|
|
|
1329
1378
|
handler: (args) =>
|
|
1330
1379
|
Effect.gen(function* () {
|
|
1331
1380
|
const { runQuery } = yield* ConfectQueryCtx;
|
|
1332
|
-
|
|
1381
|
+
|
|
1333
1382
|
// Call legacy function via runQuery
|
|
1334
|
-
const users = yield* Effect.promise(() =>
|
|
1335
|
-
|
|
1336
|
-
);
|
|
1337
|
-
|
|
1383
|
+
const users = yield* Effect.promise(() => runQuery(api.legacyFunction));
|
|
1384
|
+
|
|
1338
1385
|
// Apply Effect-based processing
|
|
1339
1386
|
const processed = yield* processUsers(users);
|
|
1340
1387
|
return processed;
|
|
@@ -1371,7 +1418,7 @@ const ConfigLive = Layer.effect(
|
|
|
1371
1418
|
const openaiKey = yield* Config.string("OPENAI_API_KEY");
|
|
1372
1419
|
const anthropicKey = yield* Config.string("ANTHROPIC_API_KEY");
|
|
1373
1420
|
return { openaiKey, anthropicKey };
|
|
1374
|
-
})
|
|
1421
|
+
}),
|
|
1375
1422
|
);
|
|
1376
1423
|
|
|
1377
1424
|
// LLM provider with fallback
|
|
@@ -1379,30 +1426,35 @@ const LLMProviderLive = Layer.effect(
|
|
|
1379
1426
|
LLMProvider,
|
|
1380
1427
|
Effect.gen(function* () {
|
|
1381
1428
|
const config = yield* ConfigService;
|
|
1382
|
-
|
|
1429
|
+
|
|
1383
1430
|
return {
|
|
1384
1431
|
generate: (prompt) =>
|
|
1385
1432
|
generateWithOpenAI(prompt, config.openaiKey).pipe(
|
|
1386
1433
|
Effect.catchTags({
|
|
1387
|
-
RateLimitError: () =>
|
|
1388
|
-
|
|
1434
|
+
RateLimitError: () =>
|
|
1435
|
+
generateWithAnthropic(prompt, config.anthropicKey),
|
|
1436
|
+
InvalidKeyError: (error) =>
|
|
1437
|
+
Effect.fail(new ConfigurationError({ cause: error })),
|
|
1438
|
+
}),
|
|
1439
|
+
Effect.retry({
|
|
1440
|
+
times: 3,
|
|
1441
|
+
schedule: Schedule.exponential("1 second"),
|
|
1389
1442
|
}),
|
|
1390
|
-
Effect.
|
|
1391
|
-
Effect.timeout("30 seconds")
|
|
1443
|
+
Effect.timeout("30 seconds"),
|
|
1392
1444
|
),
|
|
1393
1445
|
};
|
|
1394
|
-
})
|
|
1446
|
+
}),
|
|
1395
1447
|
);
|
|
1396
1448
|
|
|
1397
1449
|
// Complete application layer
|
|
1398
1450
|
export const AppLayer = Layer.mergeAll(
|
|
1399
1451
|
ConfigLive,
|
|
1400
1452
|
DatabaseLive,
|
|
1401
|
-
VectorStoreLive
|
|
1453
|
+
VectorStoreLive,
|
|
1402
1454
|
).pipe(
|
|
1403
1455
|
Layer.provideMerge(LLMProviderLive),
|
|
1404
1456
|
Layer.provideMerge(ToolRegistryLive),
|
|
1405
|
-
Layer.provideMerge(AgentLive)
|
|
1457
|
+
Layer.provideMerge(AgentLive),
|
|
1406
1458
|
);
|
|
1407
1459
|
|
|
1408
1460
|
// In production actions
|
|
@@ -1413,10 +1465,10 @@ export const production = action({
|
|
|
1413
1465
|
Effect.catchAll((error) =>
|
|
1414
1466
|
Effect.gen(function* () {
|
|
1415
1467
|
yield* Effect.log("Agent workflow failed", { error });
|
|
1416
|
-
yield* notifyOperations(error);
|
|
1468
|
+
yield* notifyOperations(error); // Alert on-call
|
|
1417
1469
|
return fallbackResponse;
|
|
1418
|
-
})
|
|
1419
|
-
)
|
|
1470
|
+
}),
|
|
1471
|
+
),
|
|
1420
1472
|
),
|
|
1421
1473
|
});
|
|
1422
1474
|
```
|
|
@@ -1427,31 +1479,35 @@ export const production = action({
|
|
|
1427
1479
|
const robustAgentGeneration = (prompt: string) =>
|
|
1428
1480
|
Effect.gen(function* () {
|
|
1429
1481
|
// Try primary approach with full context
|
|
1430
|
-
const fullResult = yield* generateWithContext(prompt, {
|
|
1431
|
-
contextLimit: 10000
|
|
1482
|
+
const fullResult = yield* generateWithContext(prompt, {
|
|
1483
|
+
contextLimit: 10000,
|
|
1432
1484
|
}).pipe(
|
|
1433
1485
|
Effect.timeout("30 seconds"),
|
|
1434
|
-
Effect.catchTag("TimeoutError", () =>
|
|
1486
|
+
Effect.catchTag("TimeoutError", () =>
|
|
1487
|
+
Effect.fail({ _tag: "SlowGeneration" }),
|
|
1488
|
+
),
|
|
1435
1489
|
);
|
|
1436
|
-
|
|
1490
|
+
|
|
1437
1491
|
return fullResult;
|
|
1438
1492
|
}).pipe(
|
|
1439
1493
|
// Fallback 1: Reduce context size
|
|
1440
1494
|
Effect.catchTag("SlowGeneration", () =>
|
|
1441
|
-
generateWithContext(prompt, { contextLimit: 5000 })
|
|
1495
|
+
generateWithContext(prompt, { contextLimit: 5000 }),
|
|
1442
1496
|
),
|
|
1443
1497
|
// Fallback 2: Switch to faster model
|
|
1444
1498
|
Effect.catchTag("RateLimitError", () =>
|
|
1445
|
-
generateWithModel(prompt, "gpt-4o-mini")
|
|
1499
|
+
generateWithModel(prompt, "gpt-4o-mini"),
|
|
1446
1500
|
),
|
|
1447
1501
|
// Fallback 3: Cached response if available
|
|
1448
1502
|
Effect.catchAll(() =>
|
|
1449
1503
|
getCachedResponse(prompt).pipe(
|
|
1450
|
-
Effect.catchAll(() =>
|
|
1451
|
-
Effect.succeed(
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1504
|
+
Effect.catchAll(() =>
|
|
1505
|
+
Effect.succeed(
|
|
1506
|
+
"I'm experiencing technical difficulties. Please try again.",
|
|
1507
|
+
),
|
|
1508
|
+
),
|
|
1509
|
+
),
|
|
1510
|
+
),
|
|
1455
1511
|
);
|
|
1456
1512
|
```
|
|
1457
1513
|
|
|
@@ -1540,24 +1596,28 @@ This integration of Effect.ts and confect into your Astro-shadcn-Convex stack pr
|
|
|
1540
1596
|
### Key Principles Realized
|
|
1541
1597
|
|
|
1542
1598
|
**1. ONE Ontology = Universal Data Model**
|
|
1599
|
+
|
|
1543
1600
|
- Every feature maps to 6 dimensions
|
|
1544
1601
|
- DataProvider interface enforces this structure
|
|
1545
1602
|
- Backends implement the ontology their way (Convex uses 5 tables, WordPress uses posts/meta, Supabase uses PostgreSQL schema)
|
|
1546
1603
|
- Frontend doesn't care HOW data is stored, only THAT it follows the ontology
|
|
1547
1604
|
|
|
1548
1605
|
**2. Backend-Agnostic = Maximum Flexibility**
|
|
1606
|
+
|
|
1549
1607
|
- Services use `DataProvider` (not Convex directly)
|
|
1550
1608
|
- Organizations can use existing infrastructure (WordPress, Notion, etc.)
|
|
1551
1609
|
- Frontend can run standalone (demo mode, testing, development)
|
|
1552
1610
|
- Change backend = edit ONE line in `astro.config.ts`
|
|
1553
1611
|
|
|
1554
1612
|
**3. Effect.ts = Type-Safe Services**
|
|
1613
|
+
|
|
1555
1614
|
- Tagged errors replace try/catch throughout services
|
|
1556
1615
|
- Dependency injection via Layer.mergeAll
|
|
1557
1616
|
- Testable with mock providers (no backend required)
|
|
1558
1617
|
- Optional: Deep Convex integration with confect for advanced use cases
|
|
1559
1618
|
|
|
1560
1619
|
**4. Separation Enables Distribution**
|
|
1620
|
+
|
|
1561
1621
|
```bash
|
|
1562
1622
|
# When users run:
|
|
1563
1623
|
npx oneie
|
|
@@ -1612,6 +1672,7 @@ ONE_BACKEND=off # Default
|
|
|
1612
1672
|
### Implementation Status (unified-implementation-plan.md)
|
|
1613
1673
|
|
|
1614
1674
|
**✅ COMPLETE (Phases 1-2: 4 weeks)**
|
|
1675
|
+
|
|
1615
1676
|
- DataProvider interface and ConvexProvider
|
|
1616
1677
|
- All 6 Effect.ts services (Thing, Connection, Event, Knowledge, Group, People)
|
|
1617
1678
|
- React hooks (useEffectRunner, useProvider)
|
|
@@ -1619,6 +1680,7 @@ ONE_BACKEND=off # Default
|
|
|
1619
1680
|
- Backend-agnostic architecture validated
|
|
1620
1681
|
|
|
1621
1682
|
**🚧 IN PROGRESS (Phases 3-7: 7 weeks remaining)**
|
|
1683
|
+
|
|
1622
1684
|
- Phase 3: Backend implementation (66 thing types, event logging, group scoping)
|
|
1623
1685
|
- Phase 4: Frontend integration (multi-tenant dashboard, entity management UI)
|
|
1624
1686
|
- Phase 5: RAG & Knowledge (chunking, embedding, vector search)
|
|
@@ -1628,18 +1690,21 @@ ONE_BACKEND=off # Default
|
|
|
1628
1690
|
### How to Use This Document
|
|
1629
1691
|
|
|
1630
1692
|
**For AI Agents:**
|
|
1693
|
+
|
|
1631
1694
|
1. Read `one/knowledge/ontology.md` first (6-dimension model)
|
|
1632
1695
|
2. Implement features using Effect.ts services (backend-agnostic)
|
|
1633
1696
|
3. Services use DataProvider (never call backend directly)
|
|
1634
|
-
4. Follow the 100-
|
|
1697
|
+
4. Follow the 100-cycle sequence in `one/knowledge/todo.md`
|
|
1635
1698
|
|
|
1636
1699
|
**For Developers:**
|
|
1700
|
+
|
|
1637
1701
|
1. Frontend development: Use Effect.ts services via hooks
|
|
1638
1702
|
2. Backend development: Implement DataProvider for your backend
|
|
1639
1703
|
3. Testing: Use mock providers (no backend required)
|
|
1640
1704
|
4. Deployment: Configure provider in `astro.config.ts` (ONE LINE!)
|
|
1641
1705
|
|
|
1642
1706
|
**For Organizations:**
|
|
1707
|
+
|
|
1643
1708
|
1. Install: `npx oneie` (gets frontend only, backend OFF)
|
|
1644
1709
|
2. Choose backend: Convex, WordPress, Supabase, or custom
|
|
1645
1710
|
3. Implement DataProvider for your chosen backend
|
|
@@ -1648,6 +1713,7 @@ ONE_BACKEND=off # Default
|
|
|
1648
1713
|
### The Payoff
|
|
1649
1714
|
|
|
1650
1715
|
**Before Backend-Agnostic Architecture:**
|
|
1716
|
+
|
|
1651
1717
|
- Frontend tightly coupled to Convex
|
|
1652
1718
|
- Organizations must use Convex (no choice)
|
|
1653
1719
|
- Can't test without backend
|
|
@@ -1655,6 +1721,7 @@ ONE_BACKEND=off # Default
|
|
|
1655
1721
|
- Hard to demo without signup
|
|
1656
1722
|
|
|
1657
1723
|
**After Backend-Agnostic Architecture:**
|
|
1724
|
+
|
|
1658
1725
|
- Frontend works with ANY backend
|
|
1659
1726
|
- Organizations use their existing systems
|
|
1660
1727
|
- Test with mock providers (instant)
|
|
@@ -1670,6 +1737,7 @@ ONE_BACKEND=off # Default
|
|
|
1670
1737
|
### For Immediate Implementation
|
|
1671
1738
|
|
|
1672
1739
|
**1. Complete Phase 3: Backend Implementation**
|
|
1740
|
+
|
|
1673
1741
|
```bash
|
|
1674
1742
|
# Backend mutations for all 66 thing types
|
|
1675
1743
|
cd backend/convex/mutations/things.ts
|
|
@@ -1679,6 +1747,7 @@ cd backend/convex/mutations/things.ts
|
|
|
1679
1747
|
```
|
|
1680
1748
|
|
|
1681
1749
|
**2. Complete Phase 4: Frontend Integration**
|
|
1750
|
+
|
|
1682
1751
|
```bash
|
|
1683
1752
|
# Multi-tenant dashboard
|
|
1684
1753
|
cd web/src/pages/admin/
|
|
@@ -1688,6 +1757,7 @@ cd web/src/pages/admin/
|
|
|
1688
1757
|
```
|
|
1689
1758
|
|
|
1690
1759
|
**3. Complete Phase 5: RAG & Knowledge**
|
|
1760
|
+
|
|
1691
1761
|
```bash
|
|
1692
1762
|
# Implement KnowledgeService features
|
|
1693
1763
|
cd web/src/services/KnowledgeService.ts
|
|
@@ -1699,16 +1769,19 @@ cd web/src/services/KnowledgeService.ts
|
|
|
1699
1769
|
### For Future Exploration
|
|
1700
1770
|
|
|
1701
1771
|
**1. Multi-Backend Support (Phase 7)**
|
|
1772
|
+
|
|
1702
1773
|
- WordPressProvider (REST API + WP metadata)
|
|
1703
1774
|
- SupabaseProvider (PostgreSQL queries)
|
|
1704
1775
|
- CompositeProvider (route by feature)
|
|
1705
1776
|
|
|
1706
1777
|
**2. Advanced Effect.ts Features**
|
|
1778
|
+
|
|
1707
1779
|
- Stream for real-time LLM responses
|
|
1708
1780
|
- Fiber for advanced concurrency
|
|
1709
1781
|
- STM for transactional memory
|
|
1710
1782
|
|
|
1711
1783
|
**3. Optional Convex Enhancements**
|
|
1784
|
+
|
|
1712
1785
|
- confect integration (schema-first)
|
|
1713
1786
|
- Effect.ts in Convex backend
|
|
1714
1787
|
- Deep type safety end-to-end
|
|
@@ -1718,7 +1791,7 @@ cd web/src/services/KnowledgeService.ts
|
|
|
1718
1791
|
## Related Documentation
|
|
1719
1792
|
|
|
1720
1793
|
- **`one/knowledge/ontology.md`** - 6-dimension data model (SOURCE OF TRUTH)
|
|
1721
|
-
- **`one/knowledge/todo.md`** - 100-
|
|
1794
|
+
- **`one/knowledge/todo.md`** - 100-cycle execution template
|
|
1722
1795
|
- **`one/things/plans/separate.md`** - Backend separation strategy
|
|
1723
1796
|
- **`one/things/plans/unified-implementation-plan.md`** - Complete 11-week plan
|
|
1724
1797
|
- **`one/things/plans/improve-codebase.md`** - Alternative 14-week plan (backend-first)
|
|
@@ -1730,4 +1803,4 @@ cd web/src/services/KnowledgeService.ts
|
|
|
1730
1803
|
|
|
1731
1804
|
**The architecture is sound. The foundation is complete. Phases 1-2 prove the concept works. Now we finish the implementation and ship the complete platform.**
|
|
1732
1805
|
|
|
1733
|
-
**Build features once. Work with any backend. Scale infinitely.**
|
|
1806
|
+
**Build features once. Work with any backend. Scale infinitely.**
|