oneie 2.0.1 → 2.0.3
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/AGENTS.md +245 -0
- package/CLAUDE.md +534 -0
- package/README.md +61 -4
- package/one/.obsidian/app.json +1 -0
- package/one/.obsidian/appearance.json +1 -0
- package/one/.obsidian/core-plugins.json +33 -0
- package/one/.obsidian/workspace.json +211 -0
- package/one/connections/a2a.md +551 -0
- package/one/connections/acp.md +761 -0
- package/one/connections/acps.md +731 -0
- package/one/connections/agui.md +767 -0
- package/one/connections/any-backend.md +1702 -0
- package/one/connections/ap2.md +998 -0
- package/one/connections/api-docs.md +1891 -0
- package/one/connections/api.md +2190 -0
- package/one/connections/architecture-diagram.md +94 -0
- package/one/connections/communications.md +449 -0
- package/one/connections/connections.md +339 -0
- package/one/connections/cryptonetworks.md +781 -0
- package/one/connections/documentation.md +1120 -0
- package/one/connections/effect.md +279 -0
- package/one/connections/elizaos.md +1290 -0
- package/one/connections/inference.md +58 -0
- package/one/connections/kyc.md +632 -0
- package/one/connections/mcp.md +842 -0
- package/one/connections/membership.md +1152 -0
- package/one/connections/middleware.md +1067 -0
- package/one/connections/multitenant.md +1341 -0
- package/one/connections/n8n.md +1015 -0
- package/one/connections/patterns.md +89 -0
- package/one/connections/protocols.md +279 -0
- package/one/connections/relationships.md +107 -0
- package/one/connections/schema.md +587 -0
- package/one/connections/service-layer.md +550 -0
- package/one/connections/structure.md +0 -0
- package/one/connections/vectors.md +207 -0
- package/one/connections/wordpress.md +1302 -0
- package/one/connections/workflow-copy.md +905 -0
- package/one/connections/workflow-examples.md +741 -0
- package/one/connections/workflow.md +905 -0
- package/one/connections/workflows/delegation.md +885 -0
- package/one/connections/workflows/frontend.md +1037 -0
- package/one/connections/workflows/strategy.md +903 -0
- package/one/connections/workflows/tasks.md +698 -0
- package/one/connections/x402.md +1249 -0
- package/one/events/events.md +545 -0
- package/one/knowledge/ai-platform.md +305 -0
- package/one/knowledge/architecture-diagram.md +94 -0
- package/one/knowledge/architecture-frontend.md +930 -0
- package/one/knowledge/architecture.md +2077 -0
- package/one/knowledge/crypto.md +960 -0
- package/one/knowledge/dsl.md +1660 -0
- package/one/knowledge/files.md +2471 -0
- package/one/knowledge/frontend.md +1038 -0
- package/one/knowledge/hono.md +2109 -0
- package/one/knowledge/implementation-examples.md +2536 -0
- package/one/knowledge/inference-score.md +159 -0
- package/one/knowledge/knowledge.md +642 -0
- package/one/knowledge/language.md +980 -0
- package/one/knowledge/lessons-learned.md +70 -0
- package/one/knowledge/ontology-6-dimensions.md +0 -0
- package/one/knowledge/ontology-documentation.md +356 -0
- package/one/knowledge/ontology-engineering-specification.md +1292 -0
- package/one/knowledge/ontology-engineering.md +1652 -0
- package/one/knowledge/ontology-frontend-copy-2.md +1492 -0
- package/one/knowledge/ontology-frontend-copy.md +753 -0
- package/one/knowledge/ontology-frontend-specifications.md +2188 -0
- package/one/knowledge/ontology-frontend.md +2427 -0
- package/one/knowledge/ontology-minimal.yaml +299 -0
- package/one/knowledge/ontology.md +2819 -0
- package/one/knowledge/ontology.yaml +1165 -0
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +100 -0
- package/one/knowledge/patterns/backend/convex-query-pattern.md +88 -0
- package/one/knowledge/patterns/backend/mutation-template.md +231 -0
- package/one/knowledge/patterns/backend/query-template.md +267 -0
- package/one/knowledge/patterns/backend/service-template.md +237 -0
- package/one/knowledge/patterns/design/component-architecture.md +399 -0
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +162 -0
- package/one/knowledge/patterns/design/wireframe-template.md +216 -0
- package/one/knowledge/patterns/frontend/component-template.md +195 -0
- package/one/knowledge/patterns/frontend/form-template.md +276 -0
- package/one/knowledge/patterns/frontend/page-template.md +178 -0
- package/one/knowledge/patterns/frontend/react-component-pattern.md +128 -0
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +378 -0
- package/one/knowledge/patterns/test/technical-test-template.md +544 -0
- package/one/knowledge/patterns/test/test-driven-pattern.md +140 -0
- package/one/knowledge/patterns/test/user-flow-template.md +254 -0
- package/one/knowledge/quality-loop.md +401 -0
- package/one/knowledge/readme.md +131 -0
- package/one/knowledge/rules.md +626 -0
- package/one/knowledge/score.md +67 -0
- package/one/knowledge/specifications.md +855 -0
- package/one/knowledge/tags.md +130 -0
- package/one/organisation/one.md +599 -0
- package/one/organisation/organisation.md +438 -0
- package/one/organisation/revenue.md +673 -0
- package/one/organisation/strategy.md +869 -0
- package/one/organisation/vision.md +98 -0
- package/one/people/anthony-o-connell.md +440 -0
- package/one/people/people.md +567 -0
- package/one/repomix-output.md +92634 -0
- package/one/things/agentkit.md +349 -0
- package/one/things/agents/agent-backend.md +1401 -0
- package/one/things/agents/agent-builder.md +955 -0
- package/one/things/agents/agent-clean.md +709 -0
- package/one/things/agents/agent-clone.md +1341 -0
- package/one/things/agents/agent-designer.md +2177 -0
- package/one/things/agents/agent-director.md +1508 -0
- package/one/things/agents/agent-documenter.md +1049 -0
- package/one/things/agents/agent-frontend.md +1119 -0
- package/one/things/agents/agent-integrator.md +1192 -0
- package/one/things/agents/agent-problem-solver.md +1379 -0
- package/one/things/agents/agent-quality.md +1353 -0
- package/one/things/agents/agent-sales.md +986 -0
- package/one/things/cascade/cascade.yaml +464 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +470 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +264 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +486 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +516 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +544 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +223 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +508 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +609 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +195 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +577 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +797 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +212 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +641 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +610 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +213 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +575 -0
- package/one/things/cascade/docs/examples/readme.md +222 -0
- package/one/things/cascade/docs/getting-started.md +515 -0
- package/one/things/cascade/docs/workflow.md +1372 -0
- package/one/things/cascade/readme.md +336 -0
- package/one/things/cascade/templates/feature-template.md +267 -0
- package/one/things/claude/agents/advocacy-activation-manager.md +685 -0
- package/one/things/claude/agents/advocacy-campaign-designer.md +663 -0
- package/one/things/claude/agents/analyst.md +483 -0
- package/one/things/claude/agents/architect.md +480 -0
- package/one/things/claude/agents/brand-identity-specialist.md +513 -0
- package/one/things/claude/agents/bstp-token-strategist.md +667 -0
- package/one/things/claude/agents/builder-repo.md +489 -0
- package/one/things/claude/agents/bullstamp-community-builder.md +574 -0
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +506 -0
- package/one/things/claude/agents/bulltilt-platform-growth.md +567 -0
- package/one/things/claude/agents/company-bullstamp-character.md +587 -0
- package/one/things/claude/agents/company-bullstamp-community.md +292 -0
- package/one/things/claude/agents/company-bullstamp-marketing.md +292 -0
- package/one/things/claude/agents/company-bullstamp-token.md +292 -0
- package/one/things/claude/agents/company-bulltilt-growth.md +292 -0
- package/one/things/claude/agents/content-bibliography-formatter.md +381 -0
- package/one/things/claude/agents/content-calendar-planner.md +448 -0
- package/one/things/claude/agents/content-chapter-formatter.md +488 -0
- package/one/things/claude/agents/content-formatter.md +546 -0
- package/one/things/claude/agents/content-hook-specialist.md +462 -0
- package/one/things/claude/agents/content-image-formatter.md +535 -0
- package/one/things/claude/agents/content-introduction-formatter.md +485 -0
- package/one/things/claude/agents/content-multiplication-engine.md +556 -0
- package/one/things/claude/agents/content-playbook-writer.md +448 -0
- package/one/things/claude/agents/content-team-manager.md +622 -0
- package/one/things/claude/agents/content-toc-formatter.md +522 -0
- package/one/things/claude/agents/convex-backend-specialist.md +2561 -0
- package/one/things/claude/agents/core-manager.md +582 -0
- package/one/things/claude/agents/core-master.md +403 -0
- package/one/things/claude/agents/cross-functional-manager.md +471 -0
- package/one/things/claude/agents/crypto-airdrop-strategist.md +602 -0
- package/one/things/claude/agents/crypto-analytics-educator.md +553 -0
- package/one/things/claude/agents/crypto-architecture-specialist.md +466 -0
- package/one/things/claude/agents/crypto-community-analyst.md +298 -0
- package/one/things/claude/agents/crypto-community-psychologist.md +509 -0
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +538 -0
- package/one/things/claude/agents/crypto-dex-optimizer.md +292 -0
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +513 -0
- package/one/things/claude/agents/crypto-diamond-hands.md +292 -0
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +554 -0
- package/one/things/claude/agents/crypto-engagement-specialist.md +540 -0
- package/one/things/claude/agents/crypto-market-researcher.md +292 -0
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +523 -0
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +569 -0
- package/one/things/claude/agents/crypto-optimization-analyst.md +554 -0
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +517 -0
- package/one/things/claude/agents/crypto-team-manager.md +387 -0
- package/one/things/claude/agents/crypto-token-analyst.md +278 -0
- package/one/things/claude/agents/crypto-viral-content-creator.md +546 -0
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +517 -0
- package/one/things/claude/agents/crypto-wallet-identifier.md +292 -0
- package/one/things/claude/agents/customer-journey-designer.md +481 -0
- package/one/things/claude/agents/customer-success-manager.md +581 -0
- package/one/things/claude/agents/dev.md +413 -0
- package/one/things/claude/agents/documenter.md +546 -0
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +410 -0
- package/one/things/claude/agents/engagement-specialist.md +509 -0
- package/one/things/claude/agents/engineering-architect.md +387 -0
- package/one/things/claude/agents/engineering-business-analyst.md +537 -0
- package/one/things/claude/agents/engineering-developer.md +387 -0
- package/one/things/claude/agents/engineering-director.md +282 -0
- package/one/things/claude/agents/engineering-ingestor.md +649 -0
- package/one/things/claude/agents/engineering-product-manager.md +537 -0
- package/one/things/claude/agents/engineering-product-owner.md +537 -0
- package/one/things/claude/agents/engineering-project-coordinator.md +537 -0
- package/one/things/claude/agents/engineering-quality-assurance.md +393 -0
- package/one/things/claude/agents/engineering-team-manager.md +512 -0
- package/one/things/claude/agents/engineering-user-experience.md +387 -0
- package/one/things/claude/agents/framework-elevate-manager.md +294 -0
- package/one/things/claude/agents/improver.md +763 -0
- package/one/things/claude/agents/intelligence-team-manager.md +385 -0
- package/one/things/claude/agents/lead-capture-expert.md +466 -0
- package/one/things/claude/agents/lead-magnet-creator.md +453 -0
- package/one/things/claude/agents/market-research-analyst.md +412 -0
- package/one/things/claude/agents/marketing-brand-identity.md +314 -0
- package/one/things/claude/agents/marketing-content-hooks.md +450 -0
- package/one/things/claude/agents/marketing-content-multiplier.md +326 -0
- package/one/things/claude/agents/marketing-content-poster.md +361 -0
- package/one/things/claude/agents/marketing-customer-journey.md +326 -0
- package/one/things/claude/agents/marketing-director.md +397 -0
- package/one/things/claude/agents/marketing-engagement.md +326 -0
- package/one/things/claude/agents/marketing-lead-capture.md +326 -0
- package/one/things/claude/agents/marketing-lead-magnet.md +326 -0
- package/one/things/claude/agents/marketing-network-effects.md +326 -0
- package/one/things/claude/agents/marketing-nurture-campaigns.md +326 -0
- package/one/things/claude/agents/marketing-share-optimizer.md +326 -0
- package/one/things/claude/agents/marketing-team-manager.md +446 -0
- package/one/things/claude/agents/marketing-viral-growth.md +201 -0
- package/one/things/claude/agents/mission-commander.md +373 -0
- package/one/things/claude/agents/network-effect-analyst.md +587 -0
- package/one/things/claude/agents/nextjs-15-specialist.md +1547 -0
- package/one/things/claude/agents/npx.md +890 -0
- package/one/things/claude/agents/nurture-campaign-manager.md +531 -0
- package/one/things/claude/agents/one-master.md +355 -0
- package/one/things/claude/agents/one-orchestrator.md +315 -0
- package/one/things/claude/agents/one.md +601 -0
- package/one/things/claude/agents/playbook-generator.md +503 -0
- package/one/things/claude/agents/pm.md +326 -0
- package/one/things/claude/agents/po.md +345 -0
- package/one/things/claude/agents/qa.md +336 -0
- package/one/things/claude/agents/research-foundation-analyst.md +307 -0
- package/one/things/claude/agents/research-intelligence-gatherer.md +408 -0
- package/one/things/claude/agents/research-market-analyst.md +307 -0
- package/one/things/claude/agents/research-team-manager.md +482 -0
- package/one/things/claude/agents/sales-environment-optimizer.md +494 -0
- package/one/things/claude/agents/sales-team-manager.md +400 -0
- package/one/things/claude/agents/sales-upsell-strategist.md +307 -0
- package/one/things/claude/agents/service-advocacy-campaigns.md +307 -0
- package/one/things/claude/agents/service-advocacy-manager.md +307 -0
- package/one/things/claude/agents/service-success-manager.md +307 -0
- package/one/things/claude/agents/service-team-manager.md +400 -0
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +2302 -0
- package/one/things/claude/agents/share-optimization-specialist.md +551 -0
- package/one/things/claude/agents/sm.md +327 -0
- package/one/things/claude/agents/story-teller.md +473 -0
- package/one/things/claude/agents/task-master.md +596 -0
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +1827 -0
- package/one/things/claude/agents/tester.md +556 -0
- package/one/things/claude/agents/the-bull-character-manager.md +580 -0
- package/one/things/claude/agents/tools-playbook-generator.md +489 -0
- package/one/things/claude/agents/turbo-repo-builder.md +316 -0
- package/one/things/claude/agents/upsell-strategist.md +480 -0
- package/one/things/claude/agents/ux-expert.md +335 -0
- package/one/things/claude/agents/viral-growth-orchestrator.md +497 -0
- package/one/things/claude/claude-code-hooks-development.json +21 -0
- package/one/things/claude/claude-code-hooks-production.json +21 -0
- package/one/things/claude/claude-code-hooks.json +25 -0
- package/one/things/claude/commands/agent.md +104 -0
- package/one/things/claude/commands/cascade-status.md +128 -0
- package/one/things/claude/commands/ingest.md +290 -0
- package/one/things/claude/commands/ingestor.md +136 -0
- package/one/things/claude/commands/mission.md +83 -0
- package/one/things/claude/commands/npx.md +133 -0
- package/one/things/claude/commands/one.md +440 -0
- package/one/things/claude/commands/quality-check.md +204 -0
- package/one/things/claude/commands/smart-route.md +220 -0
- package/one/things/claude/commands/start.md +121 -0
- package/one/things/claude/commands/story.md +83 -0
- package/one/things/claude/commands/task.md +173 -0
- package/one/things/claude/hook-bypass.json +32 -0
- package/one/things/claude/hooks/agent-hook-config.json +427 -0
- package/one/things/claude/hooks/agent-hook-manager.js +525 -0
- package/one/things/claude/hooks/agent-load-balancer.js +271 -0
- package/one/things/claude/hooks/agent-request-interceptor.js +70 -0
- package/one/things/claude/hooks/build-hook.sh +156 -0
- package/one/things/claude/hooks/cascade-feedback.js +297 -0
- package/one/things/claude/hooks/cascade-integration-hooks.js +648 -0
- package/one/things/claude/hooks/cleanup-hook.sh +201 -0
- package/one/things/claude/hooks/continuous-improvement-monitor.js +510 -0
- package/one/things/claude/hooks/file-organization-engine.js +427 -0
- package/one/things/claude/hooks/file-organization-hook.sh +80 -0
- package/one/things/claude/hooks/file-organization-monitor.js +269 -0
- package/one/things/claude/hooks/format-hook.sh +43 -0
- package/one/things/claude/hooks/hook-bypass.sh +293 -0
- package/one/things/claude/hooks/hook-config-manager.js +202 -0
- package/one/things/claude/hooks/hook-debouncer.sh +62 -0
- package/one/things/claude/hooks/hook-logger.sh +89 -0
- package/one/things/claude/hooks/hook-orchestrator.js +662 -0
- package/one/things/claude/hooks/hook-performance-report.js +120 -0
- package/one/things/claude/hooks/lint-hook.sh +140 -0
- package/one/things/claude/hooks/mcp-cascade-integration.js +816 -0
- package/one/things/claude/hooks/memory-optimizer.js +510 -0
- package/one/things/claude/hooks/notification-hook.sh +204 -0
- package/one/things/claude/hooks/ontology-compliance.js +394 -0
- package/one/things/claude/hooks/ontology-hook-manager.js +316 -0
- package/one/things/claude/hooks/ontology-validation-engine.js +317 -0
- package/one/things/claude/hooks/ontology-validation-hook.sh +86 -0
- package/one/things/claude/hooks/performance-metrics.json +25 -0
- package/one/things/claude/hooks/performance-monitoring-hook.js +422 -0
- package/one/things/claude/hooks/quality-scoring-engine.js +834 -0
- package/one/things/claude/hooks/security-hook.sh +256 -0
- package/one/things/claude/hooks/simple-load-balancer.js +238 -0
- package/one/things/claude/hooks/startup-optimizer.js +625 -0
- package/one/things/claude/hooks/story-scoring-system.js +445 -0
- package/one/things/claude/hooks/story-validation-engine.js +473 -0
- package/one/things/claude/hooks/story-validation-hook-enhanced.sh +210 -0
- package/one/things/claude/hooks/story-validation-hook.sh +145 -0
- package/one/things/claude/hooks/structure-synchronizer.js +194 -0
- package/one/things/claude/hooks/sub-agent-output-validator.js +647 -0
- package/one/things/claude/hooks/sub-agent-validation-hook.js +343 -0
- package/one/things/claude/hooks/test-hook.sh +145 -0
- package/one/things/claude/hooks/test-story-validation.sh +170 -0
- package/one/things/claude/hooks/trinity-validation-system.js +392 -0
- package/one/things/claude/settings-local.json +86 -0
- package/one/things/cli-code.md +652 -0
- package/one/things/cli-compiler-code.md +652 -0
- package/one/things/cli.md +1045 -0
- package/one/things/components/card-shadcn.md +929 -0
- package/one/things/components/card.md +1050 -0
- package/one/things/components.md +1669 -0
- package/one/things/componets.md +4 -0
- package/one/things/copilotkit.md +1559 -0
- package/one/things/creator-diagram.md +166 -0
- package/one/things/examples/children/lemonade-stand.md +366 -0
- package/one/things/examples/enterprise/crm-saas.md +1429 -0
- package/one/things/features/1-1-agent-prompts/design.md +470 -0
- package/one/things/features/1-1-agent-prompts/tests.md +264 -0
- package/one/things/features/1-1-agent-prompts.md +486 -0
- package/one/things/features/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/features/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/features/1-2-yaml-orchestrator.md +516 -0
- package/one/things/features/1-3-event-coordination/design.md +544 -0
- package/one/things/features/1-3-event-coordination/tests.md +223 -0
- package/one/things/features/1-3-event-coordination.md +508 -0
- package/one/things/features/1-4-knowledge-management/design.md +609 -0
- package/one/things/features/1-4-knowledge-management/tests.md +195 -0
- package/one/things/features/1-4-knowledge-management.md +577 -0
- package/one/things/features/1-5-quality-loops/design.md +797 -0
- package/one/things/features/1-5-quality-loops/tests.md +212 -0
- package/one/things/features/1-5-quality-loops.md +641 -0
- package/one/things/features/1-6-numbering-structure/design.md +610 -0
- package/one/things/features/1-6-numbering-structure/tests.md +213 -0
- package/one/things/features/1-6-numbering-structure.md +575 -0
- package/one/things/features/2-cli.md +1235 -0
- package/one/things/features/use-one-backend.md +1180 -0
- package/one/things/ideas/1-create-workflow.md +189 -0
- package/one/things/plans/1-create-workflow-status.md +555 -0
- package/one/things/plans/1-create-workflow.md +713 -0
- package/one/things/plans/app.md +761 -0
- package/one/things/plans/better-auth-any-backend-revised.md +1065 -0
- package/one/things/plans/better-auth-any-backend.md +1852 -0
- package/one/things/plans/better-auth-available-features.md +235 -0
- package/one/things/plans/big-plan.md +38 -0
- package/one/things/plans/convex-better-auth.md +1109 -0
- package/one/things/plans/convex-on-off.md +389 -0
- package/one/things/plans/desktop.md +1121 -0
- package/one/things/plans/effect-components.md +1669 -0
- package/one/things/plans/effect.md +973 -0
- package/one/things/plans/email.md +953 -0
- package/one/things/plans/enhance-auth.md +1669 -0
- package/one/things/plans/install-components.md +198 -0
- package/one/things/plans/landing.md +728 -0
- package/one/things/plans/layout.md +205 -0
- package/one/things/plans/mail-backend.md +1308 -0
- package/one/things/plans/mail.md +2624 -0
- package/one/things/plans/next-features.md +83 -0
- package/one/things/plans/one.md +658 -0
- package/one/things/plans/ontology-6-dimensions.md +2216 -0
- package/one/things/plans/ontology-driven-strategy.md +866 -0
- package/one/things/plans/ontology-ui-approach.md +357 -0
- package/one/things/plans/open-agent.md +785 -0
- package/one/things/plans/performace.md +90 -0
- package/one/things/plans/releases.md +809 -0
- package/one/things/plans/repos.md +76 -0
- package/one/things/plans/separate-copy-2.md +1293 -0
- package/one/things/plans/separate-copy-3.md +2458 -0
- package/one/things/plans/separate-copy.md +1293 -0
- package/one/things/plans/separate.md +1983 -0
- package/one/things/plans/shadcn-integration-summary.md +450 -0
- package/one/things/plans/sidebar.md +172 -0
- package/one/things/plans/small-fixes.md +5 -0
- package/one/things/plans/test-backend-connection.md +476 -0
- package/one/things/plans/workflow-files.md +1196 -0
- package/one/things/plans/workflow.md +1372 -0
- package/one/things/products/cascade-landing-page.md +737 -0
- package/one/things/products/cascade.md +1518 -0
- package/one/things/products/context-engineering.md +1427 -0
- package/one/things/products/onthology.md +0 -0
- package/one/things/products/ontology-ui-shadcn.md +1280 -0
- package/one/things/products/ontology-ui.md +1387 -0
- package/one/things/products/ontology.md +717 -0
- package/one/things/products/sdk.md +557 -0
- package/one/things/promptkit.md +903 -0
- package/one/things/service-providers-new.md +982 -0
- package/one/things/service-providers.md +1092 -0
- package/one/things/things.md +349 -0
- package/one/things/todo.md +1248 -0
- package/package.json +5 -2
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
# Protocol Specifications - How ONE Leverages Open Standards
|
|
2
|
+
|
|
3
|
+
**Version:** 1.0.0
|
|
4
|
+
**Purpose:** Understand how A2A, ACP, AP2, X402, and ACPayments work together to create the ultimate AI-native creator platform
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Overview: The Specification Stack
|
|
9
|
+
|
|
10
|
+
ONE platform integrates **5 complementary protocols** to enable the full spectrum of AI agent capabilities:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
┌────────────────────────────────────────────────────────────────┐
|
|
14
|
+
│ CREATOR PLATFORM (ONE) │
|
|
15
|
+
├────────────────────────────────────────────────────────────────┤
|
|
16
|
+
│ │
|
|
17
|
+
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
|
|
18
|
+
│ │ Content │ │ Audience │ │ Revenue │ │
|
|
19
|
+
│ │ Creation │ │ Growth │ │ Generation │ │
|
|
20
|
+
│ └──────────────┘ └──────────────┘ └──────────────┘ │
|
|
21
|
+
│ ▲ ▲ ▲ │
|
|
22
|
+
└─────────┼──────────────────┼──────────────────┼────────────────┘
|
|
23
|
+
│ │ │
|
|
24
|
+
┌─────────┴──────────────────┴──────────────────┴────────────────┐
|
|
25
|
+
│ PROTOCOL LAYER (5 Specifications) │
|
|
26
|
+
├────────────────────────────────────────────────────────────────┤
|
|
27
|
+
│ │
|
|
28
|
+
│ A2A Protocol │ Agent ↔ Agent Communication │
|
|
29
|
+
│ ACP (REST) │ Agent ↔ Frontend REST API │
|
|
30
|
+
│ X402 │ HTTP Payment Protocol (micropayments) │
|
|
31
|
+
│ AP2 │ Agent Payment Authorization │
|
|
32
|
+
│ ACPayments │ Combined Payment Ecosystem │
|
|
33
|
+
│ │
|
|
34
|
+
└────────────────────────────────────────────────────────────────┘
|
|
35
|
+
│ │ │
|
|
36
|
+
▼ ▼ ▼
|
|
37
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
38
|
+
│ INFRASTRUCTURE LAYER │
|
|
39
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
40
|
+
│ Convex (DB) │ Effect.ts (Services) │ Astro + React (UI) │
|
|
41
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Part 1: Communication Protocols
|
|
47
|
+
|
|
48
|
+
### A2A Protocol - Agent-to-Agent Communication
|
|
49
|
+
|
|
50
|
+
**Purpose:** Enable AI agents to collaborate across platforms
|
|
51
|
+
|
|
52
|
+
**Official Spec:** https://a2a-protocol.org/latest/
|
|
53
|
+
|
|
54
|
+
**What It Enables:**
|
|
55
|
+
- Cross-platform agent collaboration (LangGraph ↔ CrewAI ↔ ONE agents)
|
|
56
|
+
- Task delegation between agents
|
|
57
|
+
- Standardized message format for interoperability
|
|
58
|
+
- Framework-agnostic agent discovery
|
|
59
|
+
|
|
60
|
+
**Use Cases in ONE:**
|
|
61
|
+
1. **Content Generation Pipeline**
|
|
62
|
+
- Strategy Agent delegates research to external LangGraph agent
|
|
63
|
+
- Marketing Agent gets SEO insights from specialized SEO agent
|
|
64
|
+
- All coordinated via A2A protocol
|
|
65
|
+
|
|
66
|
+
2. **External Agent Integration**
|
|
67
|
+
- ElizaOS agents collaborate with ONE agents
|
|
68
|
+
- AutoGen agents participate in multi-agent workflows
|
|
69
|
+
- CrewAI teams integrated into platform
|
|
70
|
+
|
|
71
|
+
**Message Structure:**
|
|
72
|
+
```typescript
|
|
73
|
+
{
|
|
74
|
+
messageId: "msg_123",
|
|
75
|
+
from: { agentId: "one-strategy", endpoint: "https://one.ie/agents/strategy" },
|
|
76
|
+
to: { agentId: "elizaos-research", endpoint: "https://eliza.ai/agents/research" },
|
|
77
|
+
message: {
|
|
78
|
+
type: "task_delegation",
|
|
79
|
+
content: {
|
|
80
|
+
task: "research_market_trends",
|
|
81
|
+
parameters: { industry: "fitness", depth: "detailed" }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Integration Pattern:**
|
|
88
|
+
```typescript
|
|
89
|
+
// Convex service wraps A2A protocol
|
|
90
|
+
export class A2AService extends Effect.Service {
|
|
91
|
+
delegateTask: (to: AgentId, task: Task) =>
|
|
92
|
+
Effect.gen(function* () {
|
|
93
|
+
const message = createA2AMessage({ to, task });
|
|
94
|
+
yield* sendToAgent(message);
|
|
95
|
+
|
|
96
|
+
// Use ONE ontology event type with protocol metadata
|
|
97
|
+
yield* db.insert("events", {
|
|
98
|
+
type: "task_delegated",
|
|
99
|
+
actorId: fromAgentId,
|
|
100
|
+
targetId: toAgentId,
|
|
101
|
+
timestamp: Date.now(),
|
|
102
|
+
metadata: {
|
|
103
|
+
protocol: "a2a",
|
|
104
|
+
task: task.type,
|
|
105
|
+
parameters: task.parameters
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
})
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### ACP (Agent Communication Protocol) - REST-Based Agent Comms
|
|
115
|
+
|
|
116
|
+
**Purpose:** REST API for agent-to-frontend communication
|
|
117
|
+
|
|
118
|
+
**Official Spec:** https://agentcommunicationprotocol.dev/
|
|
119
|
+
|
|
120
|
+
**What It Enables:**
|
|
121
|
+
- Synchronous and asynchronous agent interactions
|
|
122
|
+
- Multimodal communication (text, images, audio, video)
|
|
123
|
+
- Agent discovery by capability
|
|
124
|
+
- Streaming responses
|
|
125
|
+
|
|
126
|
+
**Use Cases in ONE:**
|
|
127
|
+
1. **Real-time Agent Responses**
|
|
128
|
+
- Intelligence Agent streams analytics insights
|
|
129
|
+
- Marketing Agent sends content previews
|
|
130
|
+
- Sales Agent provides live funnel metrics
|
|
131
|
+
|
|
132
|
+
2. **Agent Discovery**
|
|
133
|
+
- Frontend discovers available agents
|
|
134
|
+
- Filters by capability (e.g., "image_generation")
|
|
135
|
+
- Routes requests to appropriate agent
|
|
136
|
+
|
|
137
|
+
**REST Endpoints:**
|
|
138
|
+
```
|
|
139
|
+
POST /agents/{id}/messages - Send message
|
|
140
|
+
GET /agents/{id}/messages - Get message history
|
|
141
|
+
POST /agents/{id}/tasks - Create async task
|
|
142
|
+
GET /agents/{id}/tasks/{tid} - Get task status
|
|
143
|
+
GET /agents/{id}/capabilities - Get agent info
|
|
144
|
+
GET /agents - Discover agents
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Integration Pattern:**
|
|
148
|
+
```typescript
|
|
149
|
+
// Astro API route implements ACP
|
|
150
|
+
export const POST: APIRoute = async ({ params, request }) => {
|
|
151
|
+
const message = await request.json();
|
|
152
|
+
|
|
153
|
+
const result = await convex.mutation(api.agents.receiveMessage, {
|
|
154
|
+
agentId: params.id,
|
|
155
|
+
message
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
return new Response(JSON.stringify(result));
|
|
159
|
+
};
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Part 2: Payment Protocols
|
|
165
|
+
|
|
166
|
+
### X402 - HTTP Payment Required
|
|
167
|
+
|
|
168
|
+
**Purpose:** HTTP-native micropayments using 402 status code
|
|
169
|
+
|
|
170
|
+
**Official Spec:** https://www.x402.org/
|
|
171
|
+
|
|
172
|
+
**What It Enables:**
|
|
173
|
+
- Pay-per-use API access
|
|
174
|
+
- Instant cryptocurrency payments
|
|
175
|
+
- Zero fees (blockchain-direct)
|
|
176
|
+
- Multi-chain support (Base, Ethereum, Solana)
|
|
177
|
+
|
|
178
|
+
**Use Cases in ONE:**
|
|
179
|
+
1. **Agent API Monetization**
|
|
180
|
+
- $0.01 per Intelligence Agent analysis
|
|
181
|
+
- $0.005 per message to external agent
|
|
182
|
+
- $0.10 per workflow execution
|
|
183
|
+
|
|
184
|
+
2. **Content Access**
|
|
185
|
+
- $0.50 per premium course lesson
|
|
186
|
+
- $1.00 per consultation booking
|
|
187
|
+
- $5.00 per exclusive livestream
|
|
188
|
+
|
|
189
|
+
**Payment Flow:**
|
|
190
|
+
```
|
|
191
|
+
1. Client: GET /api/agent/analyze
|
|
192
|
+
2. Server: 402 Payment Required
|
|
193
|
+
{
|
|
194
|
+
"accepts": [
|
|
195
|
+
{ "scheme": "permit", "network": "base", "amount": "0.01" }
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
3. Client: POST /api/agent/analyze
|
|
199
|
+
Headers: X-PAYMENT: { permit payload }
|
|
200
|
+
4. Server: 200 OK (payment verified)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
**Integration Pattern:**
|
|
204
|
+
```typescript
|
|
205
|
+
// X402 middleware
|
|
206
|
+
export async function x402Middleware(request, resource, amount) {
|
|
207
|
+
const payment = request.headers.get('X-PAYMENT');
|
|
208
|
+
|
|
209
|
+
if (!payment) {
|
|
210
|
+
return new Response(JSON.stringify({
|
|
211
|
+
x402Version: 1,
|
|
212
|
+
accepts: [{ scheme: "permit", network: "base", amount }]
|
|
213
|
+
}), { status: 402 });
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const verified = await verifyPayment(payment);
|
|
217
|
+
if (!verified) return new Response("Payment failed", { status: 402 });
|
|
218
|
+
|
|
219
|
+
return null; // Continue processing
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
### AP2 - Agent Payments Protocol
|
|
226
|
+
|
|
227
|
+
**Purpose:** Cryptographically-signed payment mandates for autonomous agents
|
|
228
|
+
|
|
229
|
+
**Official Spec:** https://cloud.google.com/blog/.../announcing-agents-to-payments-ap2-protocol
|
|
230
|
+
|
|
231
|
+
**What It Enables:**
|
|
232
|
+
- **Intent Mandates**: User authorizes agent to make purchases
|
|
233
|
+
- **Cart Mandates**: Immutable purchase records
|
|
234
|
+
- **Autonomous Payments**: Agent pays on user's behalf
|
|
235
|
+
- **Verifiable Credentials**: Cryptographic proof of authorization
|
|
236
|
+
|
|
237
|
+
**Use Cases in ONE:**
|
|
238
|
+
1. **Autonomous Content Purchases**
|
|
239
|
+
- User: "Keep me upskilled in React, budget $50/month"
|
|
240
|
+
- Agent: Auto-purchases relevant courses when available
|
|
241
|
+
|
|
242
|
+
2. **Smart Subscriptions**
|
|
243
|
+
- User: "Maintain Slack licenses for all employees"
|
|
244
|
+
- Agent: Auto-scales licenses based on headcount
|
|
245
|
+
|
|
246
|
+
3. **Multi-Platform Bookings**
|
|
247
|
+
- User: "Book 5-day Hawaii vacation, budget $3000"
|
|
248
|
+
- Agent: Coordinates flights + hotel + car + activities
|
|
249
|
+
|
|
250
|
+
**Two Transaction Models:**
|
|
251
|
+
|
|
252
|
+
**Real-Time (Human Present):**
|
|
253
|
+
```typescript
|
|
254
|
+
// User approves each purchase
|
|
255
|
+
User → Intent Mandate → Agent finds product → Cart Mandate → User approves → Payment
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
**Autonomous (Human Not Present):**
|
|
259
|
+
```typescript
|
|
260
|
+
// Pre-authorized by Intent Mandate
|
|
261
|
+
User → Detailed Intent Mandate → Agent monitors → Conditions met → Auto-execute → Payment
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
**Integration Pattern:**
|
|
265
|
+
```typescript
|
|
266
|
+
// Create Intent Mandate
|
|
267
|
+
export class AP2Service extends Effect.Service {
|
|
268
|
+
createIntentMandate: (args: {
|
|
269
|
+
userId: Id<'entities'>;
|
|
270
|
+
intent: { maxPrice: number; category: string };
|
|
271
|
+
autoExecute: boolean;
|
|
272
|
+
}) =>
|
|
273
|
+
Effect.gen(function* () {
|
|
274
|
+
const vc = yield* crypto.signCredential({
|
|
275
|
+
type: "IntentMandate",
|
|
276
|
+
issuer: args.userId,
|
|
277
|
+
claims: { intent: args.intent, autoExecute: args.autoExecute }
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
const mandateId = yield* db.insert("entities", {
|
|
281
|
+
type: "intent_mandate",
|
|
282
|
+
properties: { ...args, signature: vc.proof }
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
return { mandateId, credential: vc };
|
|
286
|
+
})
|
|
287
|
+
}
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
### ACP (Agentic Commerce Protocol) - AI Agent Shopping
|
|
293
|
+
|
|
294
|
+
**Purpose:** AI agents purchase products on behalf of users
|
|
295
|
+
|
|
296
|
+
**Official Spec:** https://www.agenticcommerce.dev/ (Stripe + OpenAI)
|
|
297
|
+
|
|
298
|
+
**What It Enables:**
|
|
299
|
+
- AI agents discover products
|
|
300
|
+
- Merchant approval flow
|
|
301
|
+
- Secure payment via Stripe
|
|
302
|
+
- OpenAI ChatGPT integration
|
|
303
|
+
|
|
304
|
+
**Use Cases in ONE:**
|
|
305
|
+
1. **AI Course Recommendations**
|
|
306
|
+
- ChatGPT discovers ONE courses
|
|
307
|
+
- Recommends to user based on goals
|
|
308
|
+
- User approves purchase in ChatGPT
|
|
309
|
+
- ONE receives payment via ACP
|
|
310
|
+
|
|
311
|
+
2. **Content Bundles**
|
|
312
|
+
- Agent: "This user needs full marketing stack"
|
|
313
|
+
- Finds: Marketing course + Templates + Consultation
|
|
314
|
+
- Creates bundle offer
|
|
315
|
+
- User approves with one click
|
|
316
|
+
|
|
317
|
+
**Purchase Flow:**
|
|
318
|
+
```
|
|
319
|
+
1. AI Agent discovers product on ONE platform
|
|
320
|
+
2. Agent creates purchase request
|
|
321
|
+
3. Merchant (creator) approves/declines
|
|
322
|
+
4. If approved, process payment via Stripe
|
|
323
|
+
5. Deliver product to user
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
**Integration Pattern:**
|
|
327
|
+
```typescript
|
|
328
|
+
// Merchant approves ACP transaction
|
|
329
|
+
export class ACPPaymentService extends Effect.Service {
|
|
330
|
+
processTransaction: (args: {
|
|
331
|
+
transactionId: Id<'entities'>;
|
|
332
|
+
merchantId: Id<'entities'>;
|
|
333
|
+
approved: boolean;
|
|
334
|
+
}) =>
|
|
335
|
+
Effect.gen(function* () {
|
|
336
|
+
yield* db.patch(args.transactionId, {
|
|
337
|
+
"properties.status": args.approved ? "approved" : "declined"
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
if (args.approved) {
|
|
341
|
+
return yield* processStripePayment(args.transactionId);
|
|
342
|
+
}
|
|
343
|
+
})
|
|
344
|
+
}
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## Part 3: ACPayments - Unified Payment Ecosystem
|
|
350
|
+
|
|
351
|
+
**Purpose:** Combine X402 + AP2 + ACP into complete payment system
|
|
352
|
+
|
|
353
|
+
**What ACPayments Provides:**
|
|
354
|
+
|
|
355
|
+
```
|
|
356
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
357
|
+
│ ACPayments System │
|
|
358
|
+
├─────────────────────────────────────────────────────────────┤
|
|
359
|
+
│ │
|
|
360
|
+
│ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐ │
|
|
361
|
+
│ │ X402 │ │ AP2 │ │ ACP │ │
|
|
362
|
+
│ │ Micropayments │ │ Autonomous │ │ AI Shopping │ │
|
|
363
|
+
│ │ (HTTP 402) │ │ Mandates │ │ (Stripe) │ │
|
|
364
|
+
│ └───────────────┘ └───────────────┘ └───────────────┘ │
|
|
365
|
+
│ │ │ │ │
|
|
366
|
+
│ └──────────────────┴──────────────────┘ │
|
|
367
|
+
│ │ │
|
|
368
|
+
│ ┌────────┴────────┐ │
|
|
369
|
+
│ │ Unified Layer │ │
|
|
370
|
+
│ │ - Single API │ │
|
|
371
|
+
│ │ - Type safety │ │
|
|
372
|
+
│ │ - Ontology │ │
|
|
373
|
+
│ └─────────────────┘ │
|
|
374
|
+
└─────────────────────────────────────────────────────────────┘
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
**Unified Payment Types:**
|
|
378
|
+
|
|
379
|
+
| Type | Protocol | Use Case | Settlement |
|
|
380
|
+
|------|----------|----------|------------|
|
|
381
|
+
| **Micropayment** | X402 | API calls, per-use | Instant (blockchain) |
|
|
382
|
+
| **Autonomous** | AP2 | Pre-authorized purchases | Delegated to agent |
|
|
383
|
+
| **AI Commerce** | ACP | ChatGPT product discovery | Stripe processing |
|
|
384
|
+
| **Revenue Split** | ACPayments | Multi-agent collaboration | Distributed payments |
|
|
385
|
+
| **Subscription** | ACPayments | Recurring access | Automated billing |
|
|
386
|
+
|
|
387
|
+
**Ontology Integration:**
|
|
388
|
+
|
|
389
|
+
```typescript
|
|
390
|
+
// Single "payment" entity type handles all protocols
|
|
391
|
+
{
|
|
392
|
+
type: "payment",
|
|
393
|
+
properties: {
|
|
394
|
+
protocol: "x402" | "ap2" | "acp" | "revenue-split" | "subscription",
|
|
395
|
+
amount: string,
|
|
396
|
+
status: "pending" | "completed" | "failed",
|
|
397
|
+
// Protocol-specific fields in metadata
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
// Events log all payment activities (using ONE ontology)
|
|
402
|
+
{
|
|
403
|
+
type: "payment_processed", // Generic ontology event
|
|
404
|
+
actorId: blockchainId,
|
|
405
|
+
targetId: transactionId,
|
|
406
|
+
timestamp: Date.now(),
|
|
407
|
+
metadata: {
|
|
408
|
+
protocol: "x402", // Protocol identifier
|
|
409
|
+
status: "completed",
|
|
410
|
+
network: "base",
|
|
411
|
+
txHash: "0x..."
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
## Part 4: How They Work Together
|
|
419
|
+
|
|
420
|
+
### Scenario 1: AI Agent Buys Course for User
|
|
421
|
+
|
|
422
|
+
**Protocols Used:** A2A + AP2 + ACP
|
|
423
|
+
|
|
424
|
+
```
|
|
425
|
+
1. User to ONE Platform:
|
|
426
|
+
"I want to learn React, budget $100/month"
|
|
427
|
+
|
|
428
|
+
2. ONE Intelligence Agent (via A2A):
|
|
429
|
+
Delegates to external Content Discovery Agent
|
|
430
|
+
"Find best React courses under $100"
|
|
431
|
+
|
|
432
|
+
3. Content Discovery Agent (via ACP):
|
|
433
|
+
Discovers React course on ONE platform
|
|
434
|
+
Price: $79, Rating: 4.8, 50 hours
|
|
435
|
+
|
|
436
|
+
4. ONE Intelligence Agent creates AP2 Intent Mandate:
|
|
437
|
+
{ maxPrice: 100, category: "React courses", autoExecute: true }
|
|
438
|
+
|
|
439
|
+
5. Course meets criteria → Auto-purchase via AP2
|
|
440
|
+
Cart Mandate signed by agent
|
|
441
|
+
Payment processed via X402 (blockchain)
|
|
442
|
+
|
|
443
|
+
6. User receives:
|
|
444
|
+
- Course access
|
|
445
|
+
- Receipt with verifiable credentials
|
|
446
|
+
- Auto-enrollment confirmation
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
**Code Flow:**
|
|
450
|
+
```typescript
|
|
451
|
+
// 1. User request → Create Intent Mandate (AP2)
|
|
452
|
+
const intent = await createIntentMandate({
|
|
453
|
+
userId,
|
|
454
|
+
intent: { category: "React", maxPrice: 100 },
|
|
455
|
+
autoExecute: true
|
|
456
|
+
});
|
|
457
|
+
// Logs: { type: "mandate_created", metadata: { protocol: "ap2", mandateType: "intent" } }
|
|
458
|
+
|
|
459
|
+
// 2. A2A delegation → External agent
|
|
460
|
+
const discovery = await a2aService.delegateTask({
|
|
461
|
+
to: "content-discovery-agent",
|
|
462
|
+
task: "find_courses",
|
|
463
|
+
params: { topic: "React", maxPrice: 100 }
|
|
464
|
+
});
|
|
465
|
+
// Logs: { type: "task_delegated", metadata: { protocol: "a2a" } }
|
|
466
|
+
|
|
467
|
+
// 3. ACP product discovery → Find product
|
|
468
|
+
const product = await acpService.discoverProduct({
|
|
469
|
+
query: "React course",
|
|
470
|
+
maxPrice: 100
|
|
471
|
+
});
|
|
472
|
+
// Logs: { type: "message_sent", metadata: { protocol: "acp" } }
|
|
473
|
+
|
|
474
|
+
// 4. AP2 cart creation → Auto-purchase ready
|
|
475
|
+
const cart = await ap2Service.createCartMandate({
|
|
476
|
+
intentMandateId: intent.id,
|
|
477
|
+
items: [{ productId: product.id, price: 79 }]
|
|
478
|
+
});
|
|
479
|
+
// Logs: { type: "mandate_created", metadata: { protocol: "ap2", mandateType: "cart" } }
|
|
480
|
+
|
|
481
|
+
// 5. X402 payment → Blockchain settlement
|
|
482
|
+
if (cart.total < 100) {
|
|
483
|
+
await x402Service.processPayment({
|
|
484
|
+
cartId: cart.id,
|
|
485
|
+
network: "base",
|
|
486
|
+
amount: "79"
|
|
487
|
+
});
|
|
488
|
+
// Logs: { type: "payment_processed", metadata: { protocol: "x402", network: "base" } }
|
|
489
|
+
}
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
|
|
494
|
+
### Scenario 2: Multi-Agent Workflow with Revenue Sharing
|
|
495
|
+
|
|
496
|
+
**Protocols Used:** A2A + ACPayments (Revenue Split)
|
|
497
|
+
|
|
498
|
+
```
|
|
499
|
+
1. User requests: "Create full marketing campaign"
|
|
500
|
+
|
|
501
|
+
2. Agent Orchestrator (via A2A):
|
|
502
|
+
- Delegates market research to Research Agent
|
|
503
|
+
- Delegates content creation to Marketing Agent
|
|
504
|
+
- Delegates funnel design to Sales Agent
|
|
505
|
+
|
|
506
|
+
3. Each agent completes their task
|
|
507
|
+
|
|
508
|
+
4. User pays $500 for complete campaign
|
|
509
|
+
|
|
510
|
+
5. ACPayments distributes revenue:
|
|
511
|
+
- Research Agent: 30% ($150)
|
|
512
|
+
- Marketing Agent: 40% ($200)
|
|
513
|
+
- Sales Agent: 30% ($150)
|
|
514
|
+
|
|
515
|
+
6. All payments settled via X402 (instant blockchain)
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
**Code Flow:**
|
|
519
|
+
```typescript
|
|
520
|
+
// Create revenue split
|
|
521
|
+
const revenueSplit = await agentPaymentService.createRevenueSplit({
|
|
522
|
+
workflowId,
|
|
523
|
+
totalAmount: "500",
|
|
524
|
+
participants: [
|
|
525
|
+
{ agentId: researchAgentId, percentage: 30 },
|
|
526
|
+
{ agentId: marketingAgentId, percentage: 40 },
|
|
527
|
+
{ agentId: salesAgentId, percentage: 30 }
|
|
528
|
+
]
|
|
529
|
+
});
|
|
530
|
+
|
|
531
|
+
// Distribute payments
|
|
532
|
+
await agentPaymentService.distributeRevenue({
|
|
533
|
+
revenueSplitId: revenueSplit.id
|
|
534
|
+
});
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
539
|
+
### Scenario 3: External Agent Integration with Payment
|
|
540
|
+
|
|
541
|
+
**Protocols Used:** A2A + X402
|
|
542
|
+
|
|
543
|
+
```
|
|
544
|
+
1. ONE user needs ElizaOS agent for specialized task
|
|
545
|
+
|
|
546
|
+
2. ONE Intelligence Agent (via A2A):
|
|
547
|
+
Discovers ElizaOS agent with "blockchain_analysis" capability
|
|
548
|
+
|
|
549
|
+
3. ONE sends task via A2A protocol:
|
|
550
|
+
{ task: "analyze_nft_market", params: {...} }
|
|
551
|
+
|
|
552
|
+
4. ElizaOS agent requires payment (via X402):
|
|
553
|
+
Returns 402 Payment Required: $0.50
|
|
554
|
+
|
|
555
|
+
5. ONE auto-pays via X402:
|
|
556
|
+
Blockchain transfer of $0.50 USDC
|
|
557
|
+
|
|
558
|
+
6. ElizaOS processes task and returns results
|
|
559
|
+
|
|
560
|
+
7. ONE delivers insights to user
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
**Code Flow:**
|
|
564
|
+
```typescript
|
|
565
|
+
// Discover external agent
|
|
566
|
+
const elizaAgent = await a2aService.discoverAgents({
|
|
567
|
+
capability: "blockchain_analysis",
|
|
568
|
+
platform: "elizaos"
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
// Delegate task with X402 payment handler
|
|
572
|
+
const result = await a2aService.delegateTask({
|
|
573
|
+
to: elizaAgent.id,
|
|
574
|
+
task: { type: "analyze_nft_market" },
|
|
575
|
+
paymentHandler: async (paymentRequired) => {
|
|
576
|
+
// Auto-pay via X402
|
|
577
|
+
return await x402Service.processPayment({
|
|
578
|
+
resource: paymentRequired.resource,
|
|
579
|
+
amount: paymentRequired.maxAmountRequired,
|
|
580
|
+
network: "base"
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
});
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
---
|
|
587
|
+
|
|
588
|
+
## Part 5: Architecture Benefits
|
|
589
|
+
|
|
590
|
+
### Why This Stack Works
|
|
591
|
+
|
|
592
|
+
**1. Protocol Separation of Concerns**
|
|
593
|
+
- **A2A**: Agent collaboration (who talks to whom)
|
|
594
|
+
- **ACP**: REST communication (how they talk)
|
|
595
|
+
- **X402**: Micropayments (pay-per-use)
|
|
596
|
+
- **AP2**: Autonomous payments (delegated spending)
|
|
597
|
+
- **ACPayments**: Unified payment ecosystem
|
|
598
|
+
|
|
599
|
+
**2. Creator Empowerment**
|
|
600
|
+
|
|
601
|
+
**Traditional Platform:**
|
|
602
|
+
```
|
|
603
|
+
Creator → Platform Fee (30%) → Limited monetization → No agent integration
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
**ONE Platform:**
|
|
607
|
+
```
|
|
608
|
+
Creator → X402 (0% fees) → Direct blockchain payments
|
|
609
|
+
→ AP2 (autonomous buyers) → 24/7 sales
|
|
610
|
+
→ ACP (AI discovery) → Global reach via ChatGPT
|
|
611
|
+
→ A2A (agent network) → Infinite distribution
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
**3. Ontology Alignment**
|
|
615
|
+
|
|
616
|
+
All protocols map cleanly to our 6-dimension ontology (organizations, people, things, connections, events, knowledge):
|
|
617
|
+
|
|
618
|
+
```typescript
|
|
619
|
+
// Entities: Agents, products, mandates, payments
|
|
620
|
+
{ type: "strategy_agent" | "product" | "intent_mandate" | "payment" }
|
|
621
|
+
|
|
622
|
+
// Connections: Ownership, delegation, transactions
|
|
623
|
+
{ relationshipType: "owns" | "delegated_to" | "transacted" }
|
|
624
|
+
|
|
625
|
+
// Events: All protocol actions
|
|
626
|
+
{ type: "a2a_task_delegated" | "x402_payment_completed" | "ap2_cart_created" }
|
|
627
|
+
|
|
628
|
+
// Tags: Capabilities, categories
|
|
629
|
+
{ category: "capability" | "payment_method" | "protocol" }
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
**4. Composability**
|
|
633
|
+
|
|
634
|
+
Mix and match protocols for any use case:
|
|
635
|
+
|
|
636
|
+
- **Simple sale**: Just ACP (AI discovers → User buys → Stripe)
|
|
637
|
+
- **Micropayment**: Just X402 (Request → 402 → Pay → Access)
|
|
638
|
+
- **Autonomous**: AP2 + X402 (Intent → Monitor → Auto-pay → Deliver)
|
|
639
|
+
- **Multi-agent**: A2A + ACPayments (Delegate → Collaborate → Split revenue)
|
|
640
|
+
- **External**: A2A + X402 (Discover → Delegate → Pay → Receive)
|
|
641
|
+
|
|
642
|
+
---
|
|
643
|
+
|
|
644
|
+
## Part 6: Implementation Roadmap
|
|
645
|
+
|
|
646
|
+
### Phase 1: Foundation (Q1 2025) ✅
|
|
647
|
+
|
|
648
|
+
- [x] Ontology specification
|
|
649
|
+
- [x] Convex schema
|
|
650
|
+
- [x] Effect.ts service layer
|
|
651
|
+
- [x] PromptKit UI components
|
|
652
|
+
- [ ] A2A service implementation
|
|
653
|
+
- [ ] ACP REST endpoints
|
|
654
|
+
|
|
655
|
+
### Phase 2: Payments (Q2 2025)
|
|
656
|
+
|
|
657
|
+
- [ ] X402 middleware
|
|
658
|
+
- [ ] X402 payment service
|
|
659
|
+
- [ ] Multi-chain support (Base, Ethereum, Solana)
|
|
660
|
+
- [ ] Payment UI components
|
|
661
|
+
- [ ] Transaction history
|
|
662
|
+
|
|
663
|
+
### Phase 3: Autonomous (Q3 2025)
|
|
664
|
+
|
|
665
|
+
- [ ] AP2 protocol implementation
|
|
666
|
+
- [ ] Intent Mandate system
|
|
667
|
+
- [ ] Cart Mandate system
|
|
668
|
+
- [ ] Verifiable credentials
|
|
669
|
+
- [ ] Autonomous payment UI
|
|
670
|
+
|
|
671
|
+
### Phase 4: Integration (Q4 2025)
|
|
672
|
+
|
|
673
|
+
- [ ] ElizaOS integration
|
|
674
|
+
- [ ] AutoGen integration
|
|
675
|
+
- [ ] CrewAI integration
|
|
676
|
+
- [ ] ChatGPT ACP integration
|
|
677
|
+
- [ ] Full protocol interop
|
|
678
|
+
|
|
679
|
+
---
|
|
680
|
+
|
|
681
|
+
## Part 7: Ontology Integration
|
|
682
|
+
|
|
683
|
+
### The ONE Ontology Principle
|
|
684
|
+
|
|
685
|
+
**Our ontology is the single source of truth.** Protocols map TO it, not the other way around.
|
|
686
|
+
|
|
687
|
+
```
|
|
688
|
+
❌ WRONG: Protocol-specific event types
|
|
689
|
+
{ type: "ap2_price_check" }
|
|
690
|
+
{ type: "acp_purchase_initiated" }
|
|
691
|
+
{ type: "x402_payment_verified" }
|
|
692
|
+
|
|
693
|
+
✅ CORRECT: Generic events + protocol metadata
|
|
694
|
+
{ type: "price_checked", metadata: { protocol: "ap2" } }
|
|
695
|
+
{ type: "commerce_event", metadata: { protocol: "acp", eventType: "purchase_initiated" } }
|
|
696
|
+
{ type: "payment_verified", metadata: { protocol: "x402", network: "base" } }
|
|
697
|
+
```
|
|
698
|
+
|
|
699
|
+
### Event Type Mapping
|
|
700
|
+
|
|
701
|
+
All protocols use the same 38 base event types defined in **Ontology.md**:
|
|
702
|
+
|
|
703
|
+
| Protocol | Action | Ontology Event | Metadata |
|
|
704
|
+
|----------|--------|----------------|----------|
|
|
705
|
+
| **A2A** | Agent delegates task | `task_delegated` | `{ protocol: "a2a", task: "research" }` |
|
|
706
|
+
| **A2A** | Agent completes task | `task_completed` | `{ protocol: "a2a", result: {...} }` |
|
|
707
|
+
| **A2A** | Message sent | `message_sent` | `{ protocol: "a2a", messageType: "task" }` |
|
|
708
|
+
| **ACP** | Purchase initiated | `commerce_event` | `{ protocol: "acp", eventType: "purchase_initiated" }` |
|
|
709
|
+
| **ACP** | Merchant approves | `commerce_event` | `{ protocol: "acp", eventType: "transaction_decision" }` |
|
|
710
|
+
| **ACP** | Product delivered | `content_changed` | `{ protocol: "acp", action: "delivered" }` |
|
|
711
|
+
| **AP2** | Intent created | `mandate_created` | `{ protocol: "ap2", mandateType: "intent" }` |
|
|
712
|
+
| **AP2** | Price checked | `price_checked` | `{ protocol: "ap2", productId, currentPrice }` |
|
|
713
|
+
| **AP2** | Cart created | `mandate_created` | `{ protocol: "ap2", mandateType: "cart" }` |
|
|
714
|
+
| **AP2** | Cart approved | `mandate_approved` | `{ protocol: "ap2", mandateType: "cart" }` |
|
|
715
|
+
| **X402** | Payment requested | `payment_requested` | `{ protocol: "x402", scheme: "permit" }` |
|
|
716
|
+
| **X402** | Payment verified | `payment_verified` | `{ protocol: "x402", txHash: "0x..." }` |
|
|
717
|
+
| **X402** | Payment completed | `payment_processed` | `{ protocol: "x402", status: "completed" }` |
|
|
718
|
+
| **AG-UI** | UI message sent | `message_sent` | `{ protocol: "ag-ui", messageType: "ui" }` |
|
|
719
|
+
| **AG-UI** | Action suggested | `agent_executed` | `{ protocol: "ag-ui", action: "suggestion" }` |
|
|
720
|
+
|
|
721
|
+
### Connection Type Mapping
|
|
722
|
+
|
|
723
|
+
All protocols use generic relationship types:
|
|
724
|
+
|
|
725
|
+
| Protocol | Relationship | Ontology Connection | Metadata |
|
|
726
|
+
|----------|--------------|---------------------|----------|
|
|
727
|
+
| **A2A** | Agent communicates | `communicates_with` | `{ protocol: "a2a", platform: "elizaos" }` |
|
|
728
|
+
| **A2A** | Task delegated | `delegated_to` | `{ protocol: "a2a", taskType: "research" }` |
|
|
729
|
+
| **ACP** | Merchant approves | `approved` | `{ protocol: "acp", approvalType: "transaction" }` |
|
|
730
|
+
| **ACP** | Purchase initiated | `initiated` | `{ protocol: "acp", processType: "purchase" }` |
|
|
731
|
+
| **AP2** | Cart fulfills intent | `fulfills` | `{ protocol: "ap2", fulfillmentType: "intent_to_cart" }` |
|
|
732
|
+
| **AP2** | Payment method | `paid_via` | `{ protocol: "ap2", method: "card" }` |
|
|
733
|
+
| **X402** | Payment made | `transacted` | `{ protocol: "x402", network: "base" }` |
|
|
734
|
+
|
|
735
|
+
### Querying Across Protocols
|
|
736
|
+
|
|
737
|
+
**Find all payments (any protocol):**
|
|
738
|
+
```typescript
|
|
739
|
+
const allPayments = await ctx.db
|
|
740
|
+
.query("events")
|
|
741
|
+
.filter(q => q.eq(q.field("type"), "payment_processed"))
|
|
742
|
+
.collect();
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
**Find only X402 blockchain payments:**
|
|
746
|
+
```typescript
|
|
747
|
+
const x402Payments = await ctx.db
|
|
748
|
+
.query("events")
|
|
749
|
+
.filter(q =>
|
|
750
|
+
q.and(
|
|
751
|
+
q.eq(q.field("type"), "payment_processed"),
|
|
752
|
+
q.eq(q.field("metadata.protocol"), "x402")
|
|
753
|
+
)
|
|
754
|
+
)
|
|
755
|
+
.collect();
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
**Find all agent communications (A2A + ACP + AG-UI):**
|
|
759
|
+
```typescript
|
|
760
|
+
const allMessages = await ctx.db
|
|
761
|
+
.query("events")
|
|
762
|
+
.filter(q => q.eq(q.field("type"), "message_sent"))
|
|
763
|
+
.collect();
|
|
764
|
+
|
|
765
|
+
// Filter by protocol in application code
|
|
766
|
+
const a2aMessages = allMessages.filter(m => m.metadata.protocol === "a2a");
|
|
767
|
+
const acpMessages = allMessages.filter(m => m.metadata.protocol === "acp");
|
|
768
|
+
const agUiMessages = allMessages.filter(m => m.metadata.protocol === "ag-ui");
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
**Cross-protocol analytics:**
|
|
772
|
+
```typescript
|
|
773
|
+
// Total revenue across ALL protocols
|
|
774
|
+
const allRevenue = await ctx.db
|
|
775
|
+
.query("events")
|
|
776
|
+
.filter(q => q.eq(q.field("type"), "revenue_generated"))
|
|
777
|
+
.collect();
|
|
778
|
+
|
|
779
|
+
const totalByProtocol = allRevenue.reduce((acc, event) => {
|
|
780
|
+
const protocol = event.metadata.protocol || "unknown";
|
|
781
|
+
acc[protocol] = (acc[protocol] || 0) + event.metadata.amount;
|
|
782
|
+
return acc;
|
|
783
|
+
}, {});
|
|
784
|
+
|
|
785
|
+
// Result: { x402: 1250, acp: 3400, ap2: 890 }
|
|
786
|
+
```
|
|
787
|
+
|
|
788
|
+
### Why This Architecture Wins
|
|
789
|
+
|
|
790
|
+
**1. Clean Ontology**
|
|
791
|
+
- Only 35 event types total (not 100+)
|
|
792
|
+
- Only 25 connection types (not 80+)
|
|
793
|
+
- No protocol pollution
|
|
794
|
+
- Single source of truth
|
|
795
|
+
|
|
796
|
+
**2. Protocol Flexibility**
|
|
797
|
+
- Add new protocols without schema changes
|
|
798
|
+
- Protocol versions via metadata
|
|
799
|
+
- Backward compatible
|
|
800
|
+
- Future-proof
|
|
801
|
+
|
|
802
|
+
**3. Query Power**
|
|
803
|
+
- Query all protocols: `type: "payment_processed"`
|
|
804
|
+
- Query specific protocol: `metadata.protocol: "x402"`
|
|
805
|
+
- Cross-protocol analytics
|
|
806
|
+
- Time-series across protocols
|
|
807
|
+
|
|
808
|
+
**4. Maintainability**
|
|
809
|
+
- One ontology to learn
|
|
810
|
+
- Consistent patterns
|
|
811
|
+
- Easy to understand
|
|
812
|
+
- Self-documenting via metadata
|
|
813
|
+
|
|
814
|
+
---
|
|
815
|
+
|
|
816
|
+
## Summary: Why This Matters for Creators
|
|
817
|
+
|
|
818
|
+
**Before ONE:**
|
|
819
|
+
- Creators manually create content
|
|
820
|
+
- 30% platform fees
|
|
821
|
+
- Limited monetization options
|
|
822
|
+
- No AI agents
|
|
823
|
+
- No autonomous sales
|
|
824
|
+
- Geographic payment restrictions
|
|
825
|
+
|
|
826
|
+
**After ONE:**
|
|
827
|
+
- AI agents create content 24/7
|
|
828
|
+
- 0% blockchain fees
|
|
829
|
+
- Micropayments, subscriptions, bundles, autonomous
|
|
830
|
+
- Multi-agent collaboration
|
|
831
|
+
- AI buyers shop while you sleep
|
|
832
|
+
- Global crypto payments
|
|
833
|
+
|
|
834
|
+
**The Future:**
|
|
835
|
+
A creator sets up their ONE platform, and AI agents:
|
|
836
|
+
1. Create personalized courses for each student (**A2A + ACP**)
|
|
837
|
+
2. Market content across all platforms (**A2A delegation**)
|
|
838
|
+
3. Accept payments in crypto or fiat (**X402 + ACP**)
|
|
839
|
+
4. Auto-purchase tools/services as needed (**AP2 autonomous**)
|
|
840
|
+
5. Split revenue with collaborating agents (**ACPayments**)
|
|
841
|
+
|
|
842
|
+
**All running autonomously, 24/7, globally, with zero fees.**
|
|
843
|
+
|
|
844
|
+
That's the power of open protocol integration.
|
|
845
|
+
|
|
846
|
+
---
|
|
847
|
+
|
|
848
|
+
## Resources
|
|
849
|
+
|
|
850
|
+
- **A2A Protocol**: https://a2a-protocol.org/latest/
|
|
851
|
+
- **ACP (REST)**: https://agentcommunicationprotocol.dev/
|
|
852
|
+
- **X402**: https://www.x402.org/
|
|
853
|
+
- **AP2**: https://cloud.google.com/blog/products/ai-machine-learning/announcing-agents-to-payments-ap2-protocol
|
|
854
|
+
- **Agentic Commerce**: https://www.agenticcommerce.dev/
|
|
855
|
+
- **Our Docs**: docs/A2A.md, docs/ACP.md, docs/X402.md, docs/AP2.md, docs/ACPayments.md
|