oneie 3.7.0 → 3.8.1
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/README.md +9 -9
- package/dist/commands/agent.d.ts +2 -0
- package/dist/commands/agent.d.ts.map +1 -1
- package/dist/commands/agent.js +44 -0
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/bounty.d.ts +4 -0
- package/dist/commands/bounty.d.ts.map +1 -0
- package/dist/commands/bounty.js +24 -0
- package/dist/commands/bounty.js.map +1 -0
- package/dist/commands/buy.d.ts +19 -0
- package/dist/commands/buy.d.ts.map +1 -0
- package/dist/commands/buy.js +63 -0
- package/dist/commands/buy.js.map +1 -0
- package/dist/commands/capabilities.d.ts +4 -0
- package/dist/commands/capabilities.d.ts.map +1 -0
- package/dist/commands/capabilities.js +18 -0
- package/dist/commands/capabilities.js.map +1 -0
- package/dist/commands/commend.d.ts +4 -0
- package/dist/commands/commend.d.ts.map +1 -0
- package/dist/commands/commend.js +13 -0
- package/dist/commands/commend.js.map +1 -0
- package/dist/commands/completion.d.ts +4 -0
- package/dist/commands/completion.d.ts.map +1 -0
- package/dist/commands/completion.js +49 -0
- package/dist/commands/completion.js.map +1 -0
- package/dist/commands/config.d.ts +4 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +78 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/deploy.d.ts +1 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +39 -4
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/doctor.d.ts +4 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +72 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/domain.d.ts +4 -0
- package/dist/commands/domain.d.ts.map +1 -0
- package/dist/commands/domain.js +19 -0
- package/dist/commands/domain.js.map +1 -0
- package/dist/commands/export.d.ts +4 -0
- package/dist/commands/export.d.ts.map +1 -0
- package/dist/commands/export.js +15 -0
- package/dist/commands/export.js.map +1 -0
- package/dist/commands/fade.d.ts.map +1 -1
- package/dist/commands/fade.js +8 -4
- package/dist/commands/fade.js.map +1 -1
- package/dist/commands/flag.d.ts +4 -0
- package/dist/commands/flag.d.ts.map +1 -0
- package/dist/commands/flag.js +13 -0
- package/dist/commands/flag.js.map +1 -0
- package/dist/commands/health.d.ts +4 -0
- package/dist/commands/health.d.ts.map +1 -0
- package/dist/commands/health.js +11 -0
- package/dist/commands/health.js.map +1 -0
- package/dist/commands/highways.d.ts.map +1 -1
- package/dist/commands/highways.js +7 -4
- package/dist/commands/highways.js.map +1 -1
- package/dist/commands/hire.d.ts +4 -0
- package/dist/commands/hire.d.ts.map +1 -0
- package/dist/commands/hire.js +16 -0
- package/dist/commands/hire.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +85 -48
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/invite.d.ts +4 -0
- package/dist/commands/invite.d.ts.map +1 -0
- package/dist/commands/invite.js +37 -0
- package/dist/commands/invite.js.map +1 -0
- package/dist/commands/mark.d.ts.map +1 -1
- package/dist/commands/mark.js +7 -7
- package/dist/commands/mark.js.map +1 -1
- package/dist/commands/pay.d.ts +4 -0
- package/dist/commands/pay.d.ts.map +1 -0
- package/dist/commands/pay.js +21 -0
- package/dist/commands/pay.js.map +1 -0
- package/dist/commands/pipe.d.ts +4 -0
- package/dist/commands/pipe.d.ts.map +1 -0
- package/dist/commands/pipe.js +35 -0
- package/dist/commands/pipe.js.map +1 -0
- package/dist/commands/publish.d.ts +4 -0
- package/dist/commands/publish.d.ts.map +1 -0
- package/dist/commands/publish.js +23 -0
- package/dist/commands/publish.js.map +1 -0
- package/dist/commands/repl.d.ts +4 -0
- package/dist/commands/repl.d.ts.map +1 -0
- package/dist/commands/repl.js +56 -0
- package/dist/commands/repl.js.map +1 -0
- package/dist/commands/revenue.d.ts +4 -0
- package/dist/commands/revenue.d.ts.map +1 -0
- package/dist/commands/revenue.js +11 -0
- package/dist/commands/revenue.js.map +1 -0
- package/dist/commands/sell.d.ts +15 -0
- package/dist/commands/sell.d.ts.map +1 -0
- package/dist/commands/sell.js +49 -0
- package/dist/commands/sell.js.map +1 -0
- package/dist/commands/stats.d.ts +4 -0
- package/dist/commands/stats.d.ts.map +1 -0
- package/dist/commands/stats.js +11 -0
- package/dist/commands/stats.js.map +1 -0
- package/dist/commands/status.d.ts +4 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +18 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/subscribe.d.ts +14 -0
- package/dist/commands/subscribe.d.ts.map +1 -0
- package/dist/commands/subscribe.js +33 -0
- package/dist/commands/subscribe.js.map +1 -0
- package/dist/commands/tail.d.ts +4 -0
- package/dist/commands/tail.d.ts.map +1 -0
- package/dist/commands/tail.js +51 -0
- package/dist/commands/tail.js.map +1 -0
- package/dist/commands/warn.d.ts.map +1 -1
- package/dist/commands/warn.js +6 -6
- package/dist/commands/warn.js.map +1 -1
- package/dist/index.js +70 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/args.d.ts +1 -0
- package/dist/lib/args.d.ts.map +1 -1
- package/dist/lib/args.js +3 -0
- package/dist/lib/args.js.map +1 -1
- package/dist/lib/output.d.ts +5 -0
- package/dist/lib/output.d.ts.map +1 -0
- package/dist/lib/output.js +32 -0
- package/dist/lib/output.js.map +1 -0
- package/dist/lib/sdk.d.ts +10 -0
- package/dist/lib/sdk.d.ts.map +1 -0
- package/dist/lib/sdk.js +22 -0
- package/dist/lib/sdk.js.map +1 -0
- package/dist/utils/installation-setup.d.ts +15 -0
- package/dist/utils/installation-setup.d.ts.map +1 -1
- package/dist/utils/installation-setup.js +63 -0
- package/dist/utils/installation-setup.js.map +1 -1
- package/package.json +3 -18
- package/.claude/agents/TROUBLESHOOTING.md +0 -530
- package/.claude/agents/agent-backend.md +0 -574
- package/.claude/agents/agent-builder.md +0 -911
- package/.claude/agents/agent-claude.md +0 -645
- package/.claude/agents/agent-clean.md +0 -477
- package/.claude/agents/agent-clone.md +0 -554
- package/.claude/agents/agent-designer.md +0 -1080
- package/.claude/agents/agent-director.md +0 -2254
- package/.claude/agents/agent-documenter.md +0 -688
- package/.claude/agents/agent-frontend.md +0 -1199
- package/.claude/agents/agent-integrator.md +0 -670
- package/.claude/agents/agent-lawyer.md +0 -1320
- package/.claude/agents/agent-news.md +0 -363
- package/.claude/agents/agent-onboard.md +0 -613
- package/.claude/agents/agent-ontology.md +0 -585
- package/.claude/agents/agent-ops.md +0 -1275
- package/.claude/agents/agent-problem-solver.md +0 -669
- package/.claude/agents/agent-quality.md +0 -1042
- package/.claude/agents/agent-sales.md +0 -507
- package/.claude/agents/agent-writer.md +0 -1068
- package/.claude/commands/cascade.md +0 -742
- package/.claude/commands/chat.md +0 -728
- package/.claude/commands/commit.md +0 -95
- package/.claude/commands/create.md +0 -544
- package/.claude/commands/deploy.md +0 -309
- package/.claude/commands/fast.md +0 -636
- package/.claude/commands/mcp-on.md +0 -191
- package/.claude/commands/media-upload.md +0 -186
- package/.claude/commands/news.md +0 -274
- package/.claude/commands/onboard.md +0 -440
- package/.claude/commands/one.md +0 -398
- package/.claude/commands/optimize.md +0 -74
- package/.claude/commands/plan.md +0 -719
- package/.claude/commands/push.md +0 -214
- package/.claude/commands/release.md +0 -105
- package/.claude/commands/review.md +0 -99
- package/.claude/commands/server.md +0 -487
- package/.claude/commands/start.md +0 -227
- package/.claude/commands/test.md +0 -197
- package/.claude/commands/validate.md +0 -140
- package/.claude/hooks/.last-news-context +0 -1
- package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +0 -473
- package/.claude/hooks/README-knowledge-hooks.md +0 -451
- package/.claude/hooks/README-news-generation.md +0 -364
- package/.claude/hooks/README-root-cleanup.md +0 -200
- package/.claude/hooks/README.md +0 -284
- package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/auto-format.sh +0 -106
- package/.claude/hooks/check-filenames.py +0 -177
- package/.claude/hooks/clean-post.py +0 -468
- package/.claude/hooks/clean-pre.py +0 -393
- package/.claude/hooks/clean-root-markdown.sh +0 -73
- package/.claude/hooks/commit-push.sh +0 -95
- package/.claude/hooks/done.py +0 -236
- package/.claude/hooks/format-hook.sh +0 -163
- package/.claude/hooks/formatting.py +0 -187
- package/.claude/hooks/hook-logger.sh +0 -173
- package/.claude/hooks/knowledge-post.py +0 -355
- package/.claude/hooks/knowledge-pre.py +0 -245
- package/.claude/hooks/mcp-on.sh +0 -134
- package/.claude/hooks/notification-hook.sh +0 -279
- package/.claude/hooks/ontology-validation.py +0 -255
- package/.claude/hooks/push.sh +0 -153
- package/.claude/hooks/release-cli.sh +0 -205
- package/.claude/hooks/root-cleanup.py +0 -217
- package/.claude/hooks/security-hook.sh +0 -397
- package/.claude/hooks/tag-all-docs.py +0 -464
- package/.claude/hooks/test-validate-ontology.sh +0 -170
- package/.claude/hooks/todo.py +0 -368
- package/.claude/hooks/track-changes.sh +0 -101
- package/.claude/hooks/validate-imports.py +0 -182
- package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
- package/.claude/hooks/validate-ontology-structure.py +0 -558
- package/.claude/hooks/validate-ontology-structure.py.backup +0 -518
- package/.claude/hooks/validate-ontology.py +0 -140
- package/.claude/hooks/write-news.sh +0 -194
- package/.claude/skills/INDEX.md +0 -523
- package/.claude/skills/REGISTRY.md +0 -529
- package/.claude/skills/agent-backend-create-mutation.md +0 -319
- package/.claude/skills/agent-designer-create-wireframe.md +0 -341
- package/.claude/skills/agent-frontend-create-page.md +0 -413
- package/.claude/skills/agents/README.md +0 -238
- package/.claude/skills/astro/add-content-collection.md +0 -30
- package/.claude/skills/astro/check-build.md +0 -29
- package/.claude/skills/astro/create-component.md +0 -29
- package/.claude/skills/astro/create-page.md +0 -30
- package/.claude/skills/astro/optimize-performance.md +0 -21
- package/.claude/skills/convex/check-deployment.md +0 -46
- package/.claude/skills/convex/create-mutation.md +0 -405
- package/.claude/skills/convex/create-query.md +0 -52
- package/.claude/skills/convex/read-schema.md +0 -373
- package/.claude/skills/convex/test-function.md +0 -50
- package/.claude/skills/deployment/check-deployment-health.md +0 -20
- package/.claude/skills/deployment/create-release.md +0 -21
- package/.claude/skills/deployment/deploy-cloudflare.md +0 -31
- package/.claude/skills/deployment/deploy-convex.md +0 -30
- package/.claude/skills/deployment/sync-repositories.md +0 -19
- package/.claude/skills/design/check-accessibility.md +0 -21
- package/.claude/skills/design/create-component-spec.md +0 -27
- package/.claude/skills/design/generate-design-tokens.md +0 -24
- package/.claude/skills/design/generate-wireframe.md +0 -30
- package/.claude/skills/documentation/create-migration-guide.md +0 -20
- package/.claude/skills/documentation/generate-api-docs.md +0 -27
- package/.claude/skills/documentation/generate-readme.md +0 -22
- package/.claude/skills/documentation/update-knowledge.md +0 -20
- package/.claude/skills/integration/connect-external-system.md +0 -21
- package/.claude/skills/integration/implement-a2a.md +0 -20
- package/.claude/skills/integration/implement-acp.md +0 -20
- package/.claude/skills/integration/verify-integration.md +0 -20
- package/.claude/skills/ontology/README.md +0 -255
- package/.claude/skills/ontology/check-dimension.md +0 -307
- package/.claude/skills/ontology/generate-entity-type.md +0 -339
- package/.claude/skills/ontology/validate-schema.md +0 -229
- package/.claude/skills/ontology/verify-relationships.md +0 -310
- package/.claude/skills/problem-solving/analyze-test-failure.md +0 -21
- package/.claude/skills/problem-solving/identify-root-cause.md +0 -20
- package/.claude/skills/problem-solving/propose-solution.md +0 -29
- package/.claude/skills/problem-solving/verify-fix.md +0 -21
- package/.claude/skills/sales/generate-demo-script.md +0 -21
- package/.claude/skills/sales/qualify-lead.md +0 -30
- package/.claude/skills/sales/track-trial.md +0 -20
- package/.claude/skills/sales/verify-kyc.md +0 -20
- package/.claude/skills/testing/analyze-coverage.md +0 -24
- package/.claude/skills/testing/generate-tests.md +0 -24
- package/.claude/skills/testing/run-tests.md +0 -27
- package/.claude/skills/testing/validate-e2e.md +0 -25
- package/AGENTS.md +0 -60
- package/CLAUDE.md +0 -130
- package/CREATE-WEBSITE.md +0 -458
- package/SECURITY.md +0 -31
- package/folders.yaml +0 -92
- package/one/README.md +0 -760
- package/one/actors/anthony-o-connell.md +0 -469
- package/one/actors/people.md +0 -590
- package/one/events/0-changes.md +0 -2764
- package/one/events/1-PROJECTS-START-HERE.md +0 -384
- package/one/events/1-projects-developer-quickstart.md +0 -620
- package/one/events/1-projects-feature.md +0 -2047
- package/one/events/1-projects-team-briefing.md +0 -583
- package/one/events/2024-10-14-deployment-plan.md +0 -330
- package/one/events/2024-10-14-deployment-success.md +0 -447
- package/one/events/2024-10-14-final-sync-complete.md +0 -250
- package/one/events/2024-10-14-release-v2.0.6.md +0 -414
- package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -495
- package/one/events/2024-10-15-handoff-to-clean.md +0 -347
- package/one/events/2024-10-15-package-manager-tests.md +0 -442
- package/one/events/2024-10-15-release-command-complete.md +0 -416
- package/one/events/2025-10-15-private-files-secured.md +0 -359
- package/one/events/2025-10-15-unignore-public-group-docs.md +0 -298
- package/one/events/2025-11-08-backend-claude-refactor.md +0 -242
- package/one/events/2025-11-08-parallel-agent-implementation.md +0 -620
- package/one/events/2025-11-10-ai-integration-status-report.md +0 -241
- package/one/events/ACCESSIBILITY_CHECKLIST.md +0 -275
- package/one/events/ACCESSIBILITY_FIXES_SUMMARY.md +0 -293
- package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +0 -335
- package/one/events/ALIGNMENT_SUMMARY.md +0 -280
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -280
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -654
- package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +0 -598
- package/one/events/AUDIT_PLAN_COMPLETION-20251108-125555.md +0 -262
- package/one/events/BEFORE_AFTER_COMPARISON.md +0 -978
- package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -372
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -430
- package/one/events/CHARTS-READY-TO-USE-20251106-080939.md +0 -184
- package/one/events/CHARTS-SUMMARY-20251106-080938.md +0 -196
- package/one/events/CLAUDE copy.md +0 -897
- package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -308
- package/one/events/CLOUDFLARE-FS-FIX-20251106-100516.md +0 -75
- package/one/events/COMPONENT_SHOWCASE-20251106-080938.md +0 -629
- package/one/events/CONNECTIONS_DEMO.md +0 -519
- package/one/events/CREATE-WEBSITE.md +0 -460
- package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -571
- package/one/events/CUSTOM-DOMAIN.md +0 -375
- package/one/events/DELIVERABLES.md +0 -450
- package/one/events/DELIVERABLES.txt +0 -273
- package/one/events/DEMO-GROUPS-PAGE.md +0 -410
- package/one/events/DEMO-TESTING-SUMMARY.md +0 -536
- package/one/events/DEMO_COMPONENTS.md +0 -505
- package/one/events/DEMO_HOOKS_INDEX.md +0 -352
- package/one/events/DEMO_INFRASTRUCTURE.md +0 -923
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -588
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -449
- package/one/events/DEMO_QUICK_REFERENCE.md +0 -459
- package/one/events/DEMO_SETUP.md +0 -494
- package/one/events/DEPLOYMENT copy.md +0 -444
- package/one/events/DEPLOYMENT.md +0 -196
- package/one/events/DESIGN-DELIVERABLES-20251106-080938.md +0 -557
- package/one/events/DESIGN-EXECUTIVE-SUMMARY-20251106-080938.md +0 -484
- package/one/events/DOCS-SYSTEM-GUIDE-20251105-142103.md +0 -458
- package/one/events/DOCUMENTER-DELIVERY-SUMMARY.md +0 -481
- package/one/events/DOCUMENTER-EXECUTION-GUIDE.md +0 -394
- package/one/events/DOCUMENTER-TASK-BREAKDOWN.md +0 -783
- package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -267
- package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -243
- package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -594
- package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -439
- package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -381
- package/one/events/ECOMMERCE-QUICKSTART.md +0 -376
- package/one/events/ECOMMERCE-README.md +0 -354
- package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -214
- package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -414
- package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -753
- package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -941
- package/one/events/EFFECT_TS_API_PATTERN.md +0 -496
- package/one/events/EXECUTION-READY.md +0 -359
- package/one/events/EXECUTION-SUMMARY.md +0 -478
- package/one/events/FEATURE-2-4-COMPLETE.md +0 -320
- package/one/events/FEATURE_2_3_COMPLETE.md +0 -593
- package/one/events/FILE-REFERENCE-20251105-142103.md +0 -325
- package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -241
- package/one/events/GROUPS-MIGRATION.md +0 -643
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -432
- package/one/events/HANDOFF.md +0 -331
- package/one/events/HOOKS-DEMO.md +0 -459
- package/one/events/IMPLEMENTATION-CHECKLIST-20251105-142103.md +0 -274
- package/one/events/IMPLEMENTATION-REPORT-DOCS-20251105-142102.md +0 -394
- package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -568
- package/one/events/IMPLEMENTATION_SUMMARY-20251106-080938.md +0 -571
- package/one/events/IMPLEMENTATION_SUMMARY.md +0 -547
- package/one/events/INDEX-ALL-AGENTS.md +0 -190
- package/one/events/INDEX-FRONTEND-TESTING.md +0 -524
- package/one/events/INDEX-PROBLEM-SOLVER.md +0 -488
- package/one/events/INDEX-QUALITY-AGENT-INFER65.md +0 -455
- package/one/events/INDEX.md +0 -295
- package/one/events/INDEX_QUICK_START_REDESIGN-20251106-080939.md +0 -342
- package/one/events/INSTALL-TESTS.md +0 -311
- package/one/events/INSTALLATION_FOLDERS.md +0 -534
- package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -223
- package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -437
- package/one/events/INTEGRATION-ARCHITECTURE.md +0 -579
- package/one/events/INTEGRATION-CHECKLIST.md +0 -1252
- package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2641
- package/one/events/INTEGRATION-SUMMARY.md +0 -671
- package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -684
- package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -660
- package/one/events/LANDING-PAGE-QUICKSTART.md +0 -425
- package/one/events/LICENSE.md +0 -107
- package/one/events/MASTER-COORDINATION-PLAN.md +0 -613
- package/one/events/MASTER-ORCHESTRATION-INFER65.md +0 -441
- package/one/events/MASTER-PLAN-SUMMARY.md +0 -309
- package/one/events/MCP-CONFIGURATION.md +0 -354
- package/one/events/MCP-SETUP-COMPLETE.md +0 -223
- package/one/events/MIGRATION-REPORT.md +0 -453
- package/one/events/MIGRATION.md +0 -87
- package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1663
- package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -643
- package/one/events/NEWS-COMMANDS.md +0 -506
- package/one/events/NEWS-SYSTEM-SUMMARY.md +0 -480
- package/one/events/NODE-UPGRADE.md +0 -129
- package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -416
- package/one/events/ONTOLOGY-HOOKS-README.md +0 -718
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -383
- package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -569
- package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -491
- package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -504
- package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -221
- package/one/events/PACKAGE-STRUCTURE.md +0 -328
- package/one/events/PLAN-COMPLETE.md +0 -429
- package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -349
- package/one/events/PROBLEM-SOLVER-EXECUTIVE-SUMMARY.md +0 -484
- package/one/events/PROBLEM-SOLVER-QUICKSTART.md +0 -420
- package/one/events/PROJECTS-PLAN-SUMMARY.md +0 -480
- package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -585
- package/one/events/QA-CHECKLIST.md +0 -692
- package/one/events/QUALITY-AGENT-SUMMARY.md +0 -334
- package/one/events/QUALITY-EXECUTION-CHECKLIST.md +0 -593
- package/one/events/QUICK-REFERENCE-FRONTEND-TESTING.md +0 -475
- package/one/events/QUICK-START-ONTOLOGY.md +0 -426
- package/one/events/QUICK_START_REDESIGN-20251106-080938.md +0 -400
- package/one/events/README-PROBLEM-SOLVER.md +0 -394
- package/one/events/README-archived.md +0 -537
- package/one/events/README_QUICK_START_REDESIGN-20251106-080938.md +0 -484
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -657
- package/one/events/SEARCH_DEMO_DELIVERY.md +0 -433
- package/one/events/SEARCH_DEMO_SUMMARY.md +0 -321
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -399
- package/one/events/SECURITY-AUDIT-FIXES.md +0 -394
- package/one/events/SECURITY-SCAN-COMPLETE.md +0 -299
- package/one/events/SHOP-BUILD-STATUS.md +0 -132
- package/one/events/SHOP-PREMIUM-UPDATE.md +0 -165
- package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -280
- package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -317
- package/one/events/SPECIALIST-QUICK-REFERENCE.md +0 -678
- package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -377
- package/one/events/STRIPE-INTEGRATION.md +0 -432
- package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -447
- package/one/events/STRIPE-SETUP-GUIDE.md +0 -480
- package/one/events/TEST-PLAN-INDEX.md +0 -364
- package/one/events/TEST-PLAN.md +0 -1435
- package/one/events/TEST-SUMMARY.md +0 -411
- package/one/events/TESTING-DELIVERY.txt +0 -372
- package/one/events/TESTS-QUICK-REF.md +0 -280
- package/one/events/TRANSITIONS-QUICK-START.md +0 -159
- package/one/events/TRANSPARENCY-FIXES.md +0 -293
- package/one/events/TYPESCRIPT_FIXES.md +0 -170
- package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -359
- package/one/events/VERIFICATION_CHECKLIST-20251106-080938.md +0 -326
- package/one/events/VIEW-TRANSITIONS.md +0 -446
- package/one/events/agent-command-implementation.md +0 -305
- package/one/events/agent-director-enhancement-summary.md +0 -404
- package/one/events/agent-director-routing-update.md +0 -214
- package/one/events/agent-onboard-implementation-summary.md +0 -475
- package/one/events/agent-ontology-alignment-completion.md +0 -263
- package/one/events/ai-integration-complete.md +0 -294
- package/one/events/ai-integration-lessons-learned.md +0 -511
- package/one/events/backend-integration-tests.md +0 -624
- package/one/events/backend-structure-diagram.txt +0 -393
- package/one/events/backend-structure-summary.txt +0 -269
- package/one/events/bullfm-video-podcast-analysis.md +0 -319
- package/one/events/clean-agent-ontology-cleanup-report.md +0 -371
- package/one/events/clean-agent-todo-analysis-summary.md +0 -336
- package/one/events/cloudflare-automation-complete.md +0 -350
- package/one/events/cloudflare-pages-infrastructure-setup.md +0 -282
- package/one/events/contact-page-complete.md +0 -316
- package/one/events/convex-analysis-index.md +0 -322
- package/one/events/convex-structure-analysis.md +0 -718
- package/one/events/creation-instructions-9-todos.md +0 -906
- package/one/events/cycle-3-video-player-port-20251108.md +0 -368
- package/one/events/cycle-3-video-player-port-complete-20251108.md +0 -334
- package/one/events/deployment-installation-folders.md +0 -178
- package/one/events/deployment-ops-summary.md +0 -386
- package/one/events/deployment-verification.md +0 -366
- package/one/events/design-spec-complete.md +0 -226
- package/one/events/documentation-audit-index.md +0 -473
- package/one/events/documentation-audit-summary.md +0 -417
- package/one/events/documentation-improvement-roadmap.md +0 -906
- package/one/events/documentation-standards-compliance-report.md +0 -538
- package/one/events/documentation-updates.md +0 -370
- package/one/events/events.md +0 -563
- package/one/events/fix-product-hydration-20251106.md +0 -211
- package/one/events/frontend-effects-complete.md +0 -584
- package/one/events/frontend-effects-orchestration.md +0 -1356
- package/one/events/frontend-effects-risk-register.md +0 -1055
- package/one/events/frontend-effects-week1-assignments.md +0 -1594
- package/one/events/hook-ontology-alignment-summary.md +0 -528
- package/one/events/installation-folders-workflow-integration.md +0 -458
- package/one/events/landing-page-generator.md +0 -476
- package/one/events/legal-assessment-2025-10-16.md +0 -1917
- package/one/events/master-coordination-plan.json +0 -1078
- package/one/events/master-plan-9-todos.md +0 -900
- package/one/events/mobile-performance-optimization.md +0 -179
- package/one/events/onboarding-implementation-complete.md +0 -523
- package/one/events/ontology-audit-agent-clone.md +0 -323
- package/one/events/ontology-test-examples.md +0 -580
- package/one/events/phase1-backend-implementation-complete.md +0 -536
- package/one/events/plan-completion-audit.md +0 -707
- package/one/events/plan-files-updated.md +0 -273
- package/one/events/production-readiness-plan.md +0 -389
- package/one/events/readme.md +0 -100
- package/one/events/release.md +0 -272
- package/one/events/root-cleanup-alignment-report.md +0 -265
- package/one/events/security-fixes-2025-01-15.md +0 -226
- package/one/events/separate-implementation-status.md +0 -555
- package/one/events/server-command-optimization-20251108.md +0 -150
- package/one/events/session-summary-2025-10-18.md +0 -366
- package/one/events/skills-complete.md +0 -351
- package/one/events/skills-infer-6-10-summary.md +0 -70
- package/one/events/skills-phase1-complete.md +0 -281
- package/one/events/specialist-assignments.md +0 -766
- package/one/events/structural-analysis-architecture-vs-plans.md +0 -600
- package/one/events/test-dashboard.md +0 -363
- package/one/events/test-index.md +0 -421
- package/one/events/test-report-ontology.md +0 -611
- package/one/events/testing-summary.md +0 -388
- package/one/events/todo-agent-builder.md +0 -1180
- package/one/events/todo-agent-director.md +0 -164
- package/one/events/todo-agent-documenter.md +0 -1815
- package/one/events/todo-agent-frontend.md +0 -1542
- package/one/events/todo-agent-problem-solver.md +0 -1682
- package/one/events/todo-agent-quality.md +0 -1647
- package/one/events/todo-refactoring-complete.md +0 -408
- package/one/events/wave1-backend-implementation-complete.md +0 -698
- package/one/events/web-AI_INTEGRATION_PHASE2_SUMMARY-20251111-152540.md +0 -529
- package/one/events/web-BUY-IN-CHATGPT-README-20251116-235241.md +0 -491
- package/one/events/web-CHARTS-IMPLEMENTATION-20251106-080939.md +0 -576
- package/one/events/web-CHARTS-QUICKSTART-20251106-080939.md +0 -416
- package/one/events/web-CODE-HIGHLIGHTING-SUMMARY-20251111-152540.md +0 -442
- package/one/events/web-DEPLOYMENT_SUMMARY-20251116-005428.md +0 -290
- package/one/events/web-DESIGN-SUMMARY-20251106-080939.md +0 -514
- package/one/events/web-README-AI-INTEGRATION-20251111-152540.md +0 -196
- package/one/events/web-RECHARTS-INTEGRATION-20251111-152540.md +0 -265
- package/one/events/web-RELEASE_OPTIMIZATION_PLAN-20251116-005428.md +0 -447
- package/one/events/web-TEST-CLEANUP-20251105-143205.md +0 -3
- package/one/events/web-USING-ANY-COMPONENT-IN-CHAT-20251111-152540.md +0 -561
- package/one/events/web-test-code-highlighting-20251111-152540.md +0 -231
- package/one/groups/features.md +0 -2904
- package/one/groups/groups.md +0 -587
- package/one/groups/one.md +0 -619
- package/one/groups/strategy-copy.md +0 -887
- package/one/learning/.obsidian/app.json +0 -1
- package/one/learning/.obsidian/appearance.json +0 -1
- package/one/learning/.obsidian/core-plugins.json +0 -33
- package/one/learning/.obsidian/ecommerce-ontology.md +0 -210
- package/one/learning/.obsidian/workspace.json +0 -211
- package/one/learning/100-inference-quick-reference.md +0 -449
- package/one/learning/ag-ui-protocol.md +0 -613
- package/one/learning/agent-onboard-usage.md +0 -630
- package/one/learning/agentic-commerce.md +0 -146
- package/one/learning/ai-agents-vs-memecoins-thesis.md +0 -683
- package/one/learning/ai-api-reference.md +0 -715
- package/one/learning/ai-platform.md +0 -323
- package/one/learning/ai-quickstart.md +0 -355
- package/one/learning/ai-sdk-implementation.md +0 -436
- package/one/learning/ai-token-crypto-analysis-framework.md +0 -1191
- package/one/learning/ai-token-paradigm-shift-2025.md +0 -732
- package/one/learning/altcoin-cycle-prediction-ontology.md +0 -884
- package/one/learning/altcoin-cycle-trading-strategy.md +0 -642
- package/one/learning/architecture-any-backend.md +0 -1589
- package/one/learning/architecture-diagram.md +0 -404
- package/one/learning/architecture-frontend.md +0 -1014
- package/one/learning/architecture.md +0 -1742
- package/one/learning/archived/ontology.old.md +0 -2840
- package/one/learning/astro-effect-complete-vision.md +0 -2148
- package/one/learning/astro-effect-simple-architecture.md +0 -750
- package/one/learning/audit-agent-onboard-alignment.md +0 -481
- package/one/learning/audit-agent-sales-alignment.md +0 -444
- package/one/learning/backend-api-reference.md +0 -728
- package/one/learning/cascading-context-specification.md +0 -1617
- package/one/learning/claude-code-integration.md +0 -1293
- package/one/learning/cli-claude-handoff.md +0 -736
- package/one/learning/context-engineering.md +0 -610
- package/one/learning/crypto-analysis-strategy.md +0 -1276
- package/one/learning/crypto-cycle-2024-2025-analysis.md +0 -44
- package/one/learning/crypto.md +0 -978
- package/one/learning/develop/design.md +0 -364
- package/one/learning/develop/index.md +0 -145
- package/one/learning/development-commands.md +0 -251
- package/one/learning/docs.md +0 -627
- package/one/learning/dsl.md +0 -1678
- package/one/learning/event-driven-documentation.md +0 -270
- package/one/learning/files.md +0 -2489
- package/one/learning/frontend.md +0 -1056
- package/one/learning/games-english.md +0 -691
- package/one/learning/games.md +0 -1082
- package/one/learning/generative-ui-patterns.md +0 -559
- package/one/learning/guidelines.md +0 -314
- package/one/learning/hono.md +0 -2127
- package/one/learning/implementation-examples.md +0 -2554
- package/one/learning/installation-folders.md +0 -366
- package/one/learning/institutional-cycle-paradigm-2025.md +0 -555
- package/one/learning/knowledge.md +0 -660
- package/one/learning/language.md +0 -998
- package/one/learning/lessons-learned.md +0 -378
- package/one/learning/lessons-website-building-focus.md +0 -382
- package/one/learning/merge-report.md +0 -254
- package/one/learning/metadata-system.md +0 -504
- package/one/learning/nine-padel-playbook.md +0 -229
- package/one/learning/one-protocol-ai-agents.md +0 -892
- package/one/learning/one-protocol-executive-report.md +0 -617
- package/one/learning/one-protocol-standard.md +0 -869
- package/one/learning/one-protocol-whitepaper.md +0 -756
- package/one/learning/ontology-blog.yaml +0 -47
- package/one/learning/ontology-cheatsheet.md +0 -617
- package/one/learning/ontology-community.yaml +0 -65
- package/one/learning/ontology-core-universal.md +0 -740
- package/one/learning/ontology-core.yaml +0 -63
- package/one/learning/ontology-courses.yaml +0 -76
- package/one/learning/ontology-creator.md +0 -402
- package/one/learning/ontology-crypto.md +0 -1603
- package/one/learning/ontology-developer-guide.md +0 -814
- package/one/learning/ontology-documentation.md +0 -377
- package/one/learning/ontology-ecommerce.md +0 -269
- package/one/learning/ontology-education-game.md +0 -1654
- package/one/learning/ontology-education.md +0 -938
- package/one/learning/ontology-engineering-specification.md +0 -1310
- package/one/learning/ontology-engineering.md +0 -1676
- package/one/learning/ontology-files.yaml +0 -525
- package/one/learning/ontology-frontend-master.md +0 -2898
- package/one/learning/ontology-frontend-specifications.md +0 -2196
- package/one/learning/ontology-frontend.md +0 -2475
- package/one/learning/ontology-index.md +0 -397
- package/one/learning/ontology-minimal.yaml +0 -301
- package/one/learning/ontology-portfolio.yaml +0 -45
- package/one/learning/ontology-quickstart.md +0 -602
- package/one/learning/ontology-release.md +0 -317
- package/one/learning/ontology-shop.yaml +0 -148
- package/one/learning/ontology-tokens.yaml +0 -51
- package/one/learning/ontology-tutorial.md +0 -455
- package/one/learning/ontology-v2.md +0 -4449
- package/one/learning/ontology-video-script.md +0 -939
- package/one/learning/ontology-visual-guide.md +0 -378
- package/one/learning/ontology.md +0 -3847
- package/one/learning/ontology.yaml +0 -1653
- package/one/learning/parallel-agents.md +0 -932
- package/one/learning/patterns/backend/convex-mutation-pattern.md +0 -130
- package/one/learning/patterns/backend/convex-query-pattern.md +0 -143
- package/one/learning/patterns/backend/mutation-template.md +0 -249
- package/one/learning/patterns/backend/query-template.md +0 -286
- package/one/learning/patterns/backend/service-template.md +0 -258
- package/one/learning/patterns/design/component-architecture.md +0 -435
- package/one/learning/patterns/design/index.md +0 -160
- package/one/learning/patterns/design/test-driven-design-pattern.md +0 -196
- package/one/learning/patterns/design/wireframe-template.md +0 -250
- package/one/learning/patterns/frontend/component-template.md +0 -246
- package/one/learning/patterns/frontend/form-template.md +0 -348
- package/one/learning/patterns/frontend/page-template.md +0 -209
- package/one/learning/patterns/frontend/react-component-pattern.md +0 -188
- package/one/learning/patterns/test/acceptance-criteria-template.md +0 -396
- package/one/learning/patterns/test/technical-test-template.md +0 -566
- package/one/learning/patterns/test/test-driven-pattern.md +0 -160
- package/one/learning/patterns/test/user-flow-template.md +0 -272
- package/one/learning/performance.md +0 -459
- package/one/learning/provider-agnostic-content.md +0 -995
- package/one/learning/provider-creation-guide.md +0 -1082
- package/one/learning/quality-loop.md +0 -419
- package/one/learning/quick-start-ontology-mapping.md +0 -773
- package/one/learning/readme-architecture.md +0 -158
- package/one/learning/readme.md +0 -149
- package/one/learning/rules.md +0 -644
- package/one/learning/score.md +0 -85
- package/one/learning/specifications.md +0 -873
- package/one/learning/tags.md +0 -148
- package/one/learning/todo-template.md +0 -269
- package/one/learning/todo.md +0 -269
- package/one/learning/troubleshooting.md +0 -434
- package/one/learning/typescript-patterns.md +0 -321
- package/one/learning/universal-generation-language.md +0 -827
- package/one/learning/x402-research.md +0 -104
- package/one/license.md +0 -107
- package/one/paths/a2a.md +0 -600
- package/one/paths/acp.md +0 -808
- package/one/paths/acps.md +0 -749
- package/one/paths/agentkit.md +0 -367
- package/one/paths/agui.md +0 -785
- package/one/paths/any-backend.md +0 -1720
- package/one/paths/ap2.md +0 -1072
- package/one/paths/api/queries-reference.md +0 -860
- package/one/paths/api-docs.md +0 -1909
- package/one/paths/api-reference.md +0 -1029
- package/one/paths/api.md +0 -2208
- package/one/paths/architecture-diagram.md +0 -112
- package/one/paths/communications.md +0 -467
- package/one/paths/connections.md +0 -357
- package/one/paths/copilotkit.md +0 -1577
- package/one/paths/cryptonetworks.md +0 -799
- package/one/paths/documentation.md +0 -1138
- package/one/paths/effect.md +0 -297
- package/one/paths/elizaos.md +0 -1308
- package/one/paths/groups.md +0 -814
- package/one/paths/inference.md +0 -76
- package/one/paths/integration-examples.md +0 -893
- package/one/paths/integration-guide.md +0 -887
- package/one/paths/integration-phase2.md +0 -754
- package/one/paths/kyc.md +0 -650
- package/one/paths/mcp.md +0 -860
- package/one/paths/membership.md +0 -1170
- package/one/paths/middleware.md +0 -1085
- package/one/paths/multitenant.md +0 -1359
- package/one/paths/n8n.md +0 -1033
- package/one/paths/patterns.md +0 -107
- package/one/paths/protocols.md +0 -297
- package/one/paths/relationships.md +0 -125
- package/one/paths/schema.md +0 -605
- package/one/paths/service-layer.md +0 -568
- package/one/paths/vectors.md +0 -225
- package/one/paths/wordpress.md +0 -1320
- package/one/paths/workflow-copy.md +0 -923
- package/one/paths/workflow-examples.md +0 -759
- package/one/paths/workflow-onboarding.md +0 -701
- package/one/paths/workflow.md +0 -923
- package/one/paths/workflows/delegation.md +0 -903
- package/one/paths/workflows/frontend.md +0 -1055
- package/one/paths/workflows/strategy.md +0 -921
- package/one/paths/workflows/tasks.md +0 -716
- package/one/paths/x402-baazar.md +0 -131
- package/one/paths/x402.md +0 -1353
- package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +0 -401
- package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +0 -588
- package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +0 -461
- package/one/things/CHECKLIST.md +0 -407
- package/one/things/IMPLEMENTATION_STATUS.md +0 -379
- package/one/things/ONE.md +0 -529
- package/one/things/agents/agent-backend.md +0 -1501
- package/one/things/agents/agent-builder.md +0 -1064
- package/one/things/agents/agent-clean.md +0 -1112
- package/one/things/agents/agent-clone.md +0 -1324
- package/one/things/agents/agent-deploy.md +0 -986
- package/one/things/agents/agent-designer.md +0 -2305
- package/one/things/agents/agent-director.md +0 -1526
- package/one/things/agents/agent-documenter.md +0 -1129
- package/one/things/agents/agent-frontend.md +0 -1201
- package/one/things/agents/agent-integrator.md +0 -1269
- package/one/things/agents/agent-lawyer.md +0 -1371
- package/one/things/agents/agent-problem-solver.md +0 -1457
- package/one/things/agents/agent-quality.md +0 -1483
- package/one/things/agents/agent-sales.md +0 -1074
- package/one/things/cascade/cascade.yaml +0 -481
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +0 -523
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +0 -314
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +0 -562
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +0 -543
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +0 -272
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +0 -548
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +0 -586
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +0 -267
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +0 -547
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +0 -665
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +0 -236
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +0 -652
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +0 -860
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +0 -255
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +0 -725
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +0 -659
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +0 -256
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +0 -639
- package/one/things/cascade/docs/examples/readme.md +0 -259
- package/one/things/cascade/docs/getting-started.md +0 -533
- package/one/things/cascade/docs/workflow.md +0 -1378
- package/one/things/cascade/readme.md +0 -379
- package/one/things/cascade/templates/feature-template.md +0 -289
- package/one/things/claude/agents/advocacy-activation-manager.md +0 -710
- package/one/things/claude/agents/advocacy-campaign-designer.md +0 -688
- package/one/things/claude/agents/analyst.md +0 -508
- package/one/things/claude/agents/architect.md +0 -505
- package/one/things/claude/agents/brand-identity-specialist.md +0 -538
- package/one/things/claude/agents/bstp-token-strategist.md +0 -690
- package/one/things/claude/agents/builder-repo.md +0 -532
- package/one/things/claude/agents/bullstamp-community-builder.md +0 -597
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +0 -529
- package/one/things/claude/agents/bulltilt-platform-growth.md +0 -590
- package/one/things/claude/agents/company-bullstamp-character.md +0 -602
- package/one/things/claude/agents/company-bullstamp-community.md +0 -307
- package/one/things/claude/agents/company-bullstamp-marketing.md +0 -307
- package/one/things/claude/agents/company-bullstamp-token.md +0 -307
- package/one/things/claude/agents/company-bulltilt-growth.md +0 -307
- package/one/things/claude/agents/content-bibliography-formatter.md +0 -404
- package/one/things/claude/agents/content-calendar-planner.md +0 -473
- package/one/things/claude/agents/content-chapter-formatter.md +0 -513
- package/one/things/claude/agents/content-formatter.md +0 -571
- package/one/things/claude/agents/content-hook-specialist.md +0 -485
- package/one/things/claude/agents/content-image-formatter.md +0 -560
- package/one/things/claude/agents/content-introduction-formatter.md +0 -510
- package/one/things/claude/agents/content-multiplication-engine.md +0 -579
- package/one/things/claude/agents/content-playbook-writer.md +0 -473
- package/one/things/claude/agents/content-team-manager.md +0 -647
- package/one/things/claude/agents/content-toc-formatter.md +0 -547
- package/one/things/claude/agents/convex-backend-specialist.md +0 -2725
- package/one/things/claude/agents/core-manager.md +0 -607
- package/one/things/claude/agents/core-master.md +0 -426
- package/one/things/claude/agents/cross-functional-manager.md +0 -476
- package/one/things/claude/agents/crypto-airdrop-strategist.md +0 -622
- package/one/things/claude/agents/crypto-analytics-educator.md +0 -596
- package/one/things/claude/agents/crypto-architecture-specialist.md +0 -497
- package/one/things/claude/agents/crypto-community-analyst.md +0 -314
- package/one/things/claude/agents/crypto-community-psychologist.md +0 -546
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +0 -579
- package/one/things/claude/agents/crypto-dex-optimizer.md +0 -307
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +0 -552
- package/one/things/claude/agents/crypto-diamond-hands.md +0 -307
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +0 -597
- package/one/things/claude/agents/crypto-engagement-specialist.md +0 -581
- package/one/things/claude/agents/crypto-market-researcher.md +0 -307
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +0 -563
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +0 -614
- package/one/things/claude/agents/crypto-optimization-analyst.md +0 -597
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +0 -556
- package/one/things/claude/agents/crypto-team-manager.md +0 -392
- package/one/things/claude/agents/crypto-token-analyst.md +0 -319
- package/one/things/claude/agents/crypto-viral-content-creator.md +0 -549
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +0 -527
- package/one/things/claude/agents/crypto-wallet-identifier.md +0 -307
- package/one/things/claude/agents/customer-journey-designer.md +0 -474
- package/one/things/claude/agents/customer-success-manager.md +0 -574
- package/one/things/claude/agents/dev.md +0 -406
- package/one/things/claude/agents/documenter.md +0 -548
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +0 -403
- package/one/things/claude/agents/engagement-specialist.md +0 -502
- package/one/things/claude/agents/engineering-architect.md +0 -387
- package/one/things/claude/agents/engineering-business-analyst.md +0 -527
- package/one/things/claude/agents/engineering-developer.md +0 -386
- package/one/things/claude/agents/engineering-director.md +0 -322
- package/one/things/claude/agents/engineering-ingestor.md +0 -659
- package/one/things/claude/agents/engineering-product-manager.md +0 -525
- package/one/things/claude/agents/engineering-product-owner.md +0 -527
- package/one/things/claude/agents/engineering-project-coordinator.md +0 -525
- package/one/things/claude/agents/engineering-quality-assurance.md +0 -392
- package/one/things/claude/agents/engineering-team-manager.md +0 -515
- package/one/things/claude/agents/engineering-user-experience.md +0 -386
- package/one/things/claude/agents/framework-elevate-manager.md +0 -309
- package/one/things/claude/agents/improver.md +0 -805
- package/one/things/claude/agents/intelligence-team-manager.md +0 -390
- package/one/things/claude/agents/lead-capture-expert.md +0 -459
- package/one/things/claude/agents/lead-magnet-creator.md +0 -446
- package/one/things/claude/agents/market-research-analyst.md +0 -435
- package/one/things/claude/agents/marketing-brand-identity.md +0 -344
- package/one/things/claude/agents/marketing-content-hooks.md +0 -455
- package/one/things/claude/agents/marketing-content-multiplier.md +0 -331
- package/one/things/claude/agents/marketing-content-poster.md +0 -372
- package/one/things/claude/agents/marketing-customer-journey.md +0 -331
- package/one/things/claude/agents/marketing-director.md +0 -402
- package/one/things/claude/agents/marketing-engagement.md +0 -331
- package/one/things/claude/agents/marketing-lead-capture.md +0 -331
- package/one/things/claude/agents/marketing-lead-magnet.md +0 -331
- package/one/things/claude/agents/marketing-network-effects.md +0 -331
- package/one/things/claude/agents/marketing-nurture-campaigns.md +0 -331
- package/one/things/claude/agents/marketing-share-optimizer.md +0 -331
- package/one/things/claude/agents/marketing-team-manager.md +0 -451
- package/one/things/claude/agents/marketing-viral-growth.md +0 -232
- package/one/things/claude/agents/mission-commander.md +0 -378
- package/one/things/claude/agents/network-effect-analyst.md +0 -604
- package/one/things/claude/agents/nextjs-15-specialist.md +0 -1634
- package/one/things/claude/agents/npx.md +0 -946
- package/one/things/claude/agents/nurture-campaign-manager.md +0 -554
- package/one/things/claude/agents/one-master.md +0 -378
- package/one/things/claude/agents/one-orchestrator.md +0 -345
- package/one/things/claude/agents/one.md +0 -658
- package/one/things/claude/agents/playbook-generator.md +0 -526
- package/one/things/claude/agents/pm.md +0 -349
- package/one/things/claude/agents/po.md +0 -370
- package/one/things/claude/agents/qa.md +0 -361
- package/one/things/claude/agents/research-foundation-analyst.md +0 -324
- package/one/things/claude/agents/research-intelligence-gatherer.md +0 -435
- package/one/things/claude/agents/research-market-analyst.md +0 -324
- package/one/things/claude/agents/research-team-manager.md +0 -489
- package/one/things/claude/agents/sales-environment-optimizer.md +0 -519
- package/one/things/claude/agents/sales-team-manager.md +0 -407
- package/one/things/claude/agents/sales-upsell-strategist.md +0 -324
- package/one/things/claude/agents/service-advocacy-campaigns.md +0 -324
- package/one/things/claude/agents/service-advocacy-manager.md +0 -324
- package/one/things/claude/agents/service-success-manager.md +0 -324
- package/one/things/claude/agents/service-team-manager.md +0 -405
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +0 -2357
- package/one/things/claude/agents/share-optimization-specialist.md +0 -576
- package/one/things/claude/agents/sm.md +0 -352
- package/one/things/claude/agents/story-teller.md +0 -498
- package/one/things/claude/agents/task-master.md +0 -621
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +0 -1912
- package/one/things/claude/agents/tester.md +0 -595
- package/one/things/claude/agents/the-bull-character-manager.md +0 -603
- package/one/things/claude/agents/tools-playbook-generator.md +0 -492
- package/one/things/claude/agents/turbo-repo-builder.md +0 -346
- package/one/things/claude/agents/upsell-strategist.md +0 -503
- package/one/things/claude/agents/ux-expert.md +0 -360
- package/one/things/claude/agents/viral-growth-orchestrator.md +0 -520
- package/one/things/claude/claude-code-hooks-development.json +0 -21
- package/one/things/claude/claude-code-hooks-production.json +0 -21
- package/one/things/claude/claude-code-hooks.json +0 -25
- package/one/things/claude/commands/agent.md +0 -124
- package/one/things/claude/commands/cascade-status.md +0 -153
- package/one/things/claude/commands/ingest.md +0 -343
- package/one/things/claude/commands/ingestor.md +0 -158
- package/one/things/claude/commands/mission.md +0 -103
- package/one/things/claude/commands/npx.md +0 -156
- package/one/things/claude/commands/one.md +0 -486
- package/one/things/claude/commands/quality-check.md +0 -252
- package/one/things/claude/commands/smart-route.md +0 -261
- package/one/things/claude/commands/start.md +0 -139
- package/one/things/claude/commands/story.md +0 -103
- package/one/things/claude/commands/task.md +0 -193
- package/one/things/claude/hook-bypass.json +0 -32
- package/one/things/claude/hooks/agent-hook-config.json +0 -427
- package/one/things/claude/hooks/build-hook.sh +0 -156
- package/one/things/claude/hooks/cleanup-hook.sh +0 -201
- package/one/things/claude/hooks/file-organization-hook.sh +0 -80
- package/one/things/claude/hooks/format-hook.sh +0 -43
- package/one/things/claude/hooks/hook-bypass.sh +0 -293
- package/one/things/claude/hooks/hook-debouncer.sh +0 -62
- package/one/things/claude/hooks/hook-logger.sh +0 -89
- package/one/things/claude/hooks/lint-hook.sh +0 -140
- package/one/things/claude/hooks/notification-hook.sh +0 -204
- package/one/things/claude/hooks/ontology-validation-hook.sh +0 -86
- package/one/things/claude/hooks/performance-metrics.json +0 -25
- package/one/things/claude/hooks/security-hook.sh +0 -256
- package/one/things/claude/hooks/story-validation-hook-enhanced.sh +0 -210
- package/one/things/claude/hooks/story-validation-hook.sh +0 -145
- package/one/things/claude/hooks/test-hook.sh +0 -145
- package/one/things/claude/hooks/test-story-validation.sh +0 -170
- package/one/things/claude/settings-local.json +0 -86
- package/one/things/cli/cli-code.md +0 -677
- package/one/things/cli/cli-compiler-code.md +0 -677
- package/one/things/cli/cli.md +0 -871
- package/one/things/components/card-shadcn.md +0 -953
- package/one/things/components/card.md +0 -1041
- package/one/things/components.md +0 -1743
- package/one/things/componets.md +0 -19
- package/one/things/contracts/Move.toml +0 -12
- package/one/things/contracts/README.md +0 -288
- package/one/things/contracts/one.move +0 -762
- package/one/things/contracts/sdk.ts +0 -579
- package/one/things/creator-diagram.md +0 -184
- package/one/things/crypto/FEATURES.md +0 -78
- package/one/things/crypto/ONECORE.md +0 -62
- package/one/things/crypto/ONECOREFAQ.md +0 -22
- package/one/things/crypto/ONECOREHOW.md +0 -46
- package/one/things/crypto/ONEENTERPRISE.md +0 -64
- package/one/things/crypto/ONEENTERPRISEFAQ.md +0 -64
- package/one/things/crypto/ONEENTERPRISEHOW.md +0 -53
- package/one/things/crypto/ONEPRO.md +0 -60
- package/one/things/crypto/ONEPROFAQ.md +0 -22
- package/one/things/crypto/ONEPROHOW.md +0 -53
- package/one/things/crypto/READMEAGENCY.md +0 -64
- package/one/things/crypto/VSL.md +0 -45
- package/one/things/crypto/WebsiteCopy.md +0 -176
- package/one/things/demo-accessibility-animations.md +0 -1025
- package/one/things/demo-components.md +0 -1310
- package/one/things/demo-design-summary.md +0 -692
- package/one/things/demo-design-system.md +0 -973
- package/one/things/demo-page-layouts.md +0 -1016
- package/one/things/design-system.md +0 -832
- package/one/things/designs/accessibility-audit.md +0 -877
- package/one/things/designs/component-specifications.md +0 -855
- package/one/things/designs/design-overview.md +0 -377
- package/one/things/designs/design-tokens.md +0 -448
- package/one/things/designs/wireframes-dashboard.md +0 -710
- package/one/things/docs/api-requests.md +0 -987
- package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +0 -485
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +0 -465
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +0 -425
- package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +0 -451
- package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +0 -536
- package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +0 -650
- package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +0 -473
- package/one/things/docs/ecommerce/QUICK-START.md +0 -405
- package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +0 -567
- package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +0 -271
- package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +0 -171
- package/one/things/docs/ecommerce/demo.astro +0 -309
- package/one/things/examples/children/lemonade-stand.md +0 -404
- package/one/things/examples/enterprise/crm-saas.md +0 -1444
- package/one/things/features/1-1-agent-prompts.md +0 -562
- package/one/things/features/1-2-yaml-orchestrator.md +0 -548
- package/one/things/features/1-3-event-coordination.md +0 -547
- package/one/things/features/1-4-knowledge-management.md +0 -652
- package/one/things/features/1-5-quality-loops.md +0 -725
- package/one/things/features/1-6-numbering-structure.md +0 -639
- package/one/things/features/2-1-dataprovider-interface.md +0 -2583
- package/one/things/features/2-2-config-system.md +0 -3242
- package/one/things/features/2-3-effectts-services.md +0 -1645
- package/one/things/features/2-4-react-hooks.md +0 -2136
- package/one/things/features/2-5-auth-migration.md +0 -2144
- package/one/things/features/2-6-dashboard-migration.md +0 -2084
- package/one/things/features/2-7-alternative-providers.md +0 -2578
- package/one/things/features/2-7-implementation-report.md +0 -724
- package/one/things/features/2-cli.md +0 -1720
- package/one/things/features/2-design.md +0 -1770
- package/one/things/features/2-tests.md +0 -576
- package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +0 -576
- package/one/things/features/DECOUPLING.md +0 -290
- package/one/things/features/DEPLOYMENT.md +0 -470
- package/one/things/features/IMPLEMENTATION_SUMMARY.md +0 -362
- package/one/things/features/improve.md +0 -861
- package/one/things/features/remove-convex-deps.md +0 -63
- package/one/things/features/top-features.md +0 -87
- package/one/things/features/use-one-backend.md +0 -1217
- package/one/things/features-in-english.md +0 -200
- package/one/things/files.yaml +0 -721
- package/one/things/ideas/1-create-workflow.md +0 -207
- package/one/things/ideas/2-backend-agnostic-frontend.md +0 -439
- package/one/things/implementation/backend-guide.md +0 -457
- package/one/things/interface.md +0 -257
- package/one/things/landing-page-implementation.md +0 -455
- package/one/things/legal/README.md +0 -234
- package/one/things/legal/privacy-policy.md +0 -1227
- package/one/things/legal/terms-of-service.md +0 -1432
- package/one/things/master-workflow-plan.md +0 -806
- package/one/things/pay.one.ie.md +0 -53
- package/one/things/plans/0-in-sync.md +0 -136
- package/one/things/plans/0-timeline.md +0 -36
- package/one/things/plans/1-create-workflow.md +0 -732
- package/one/things/plans/QUICK-START-SIMPLIFICATION.md +0 -333
- package/one/things/plans/README-SIMPLIFICATION.md +0 -349
- package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +0 -16
- package/one/things/plans/SIMPLIFICATION-SUMMARY.md +0 -455
- package/one/things/plans/ai-elements-integration.md +0 -483
- package/one/things/plans/ai-elements.md +0 -1278
- package/one/things/plans/ai-integration-plan.md +0 -263
- package/one/things/plans/ai-integration.md +0 -996
- package/one/things/plans/ai-sdk.md +0 -798
- package/one/things/plans/ai-tools.md +0 -621
- package/one/things/plans/app.md +0 -832
- package/one/things/plans/architecture-summary.md +0 -312
- package/one/things/plans/async-ai-agents.md +0 -233
- package/one/things/plans/backend-agnostic-frontend.md +0 -390
- package/one/things/plans/backend-cleanup-quickstart.md +0 -380
- package/one/things/plans/backend-ontology-conformance.md +0 -475
- package/one/things/plans/backend-status.md +0 -599
- package/one/things/plans/backend-structure.md +0 -847
- package/one/things/plans/backend-target-structure.md +0 -482
- package/one/things/plans/backend.md +0 -1175
- package/one/things/plans/better-auth-any-backend-revised.md +0 -1103
- package/one/things/plans/better-auth-any-backend.md +0 -1896
- package/one/things/plans/better-auth-available-features.md +0 -273
- package/one/things/plans/big-plan.md +0 -52
- package/one/things/plans/cli-updates-required.md +0 -320
- package/one/things/plans/complete-step-by-step.md +0 -1409
- package/one/things/plans/components.md +0 -709
- package/one/things/plans/convex-agents.md +0 -1034
- package/one/things/plans/convex-better-auth.md +0 -1141
- package/one/things/plans/convex-on-off.md +0 -407
- package/one/things/plans/crypto-token-researcher.md +0 -629
- package/one/things/plans/data-quality-metrics.md +0 -745
- package/one/things/plans/deep-researcher-agent.md +0 -466
- package/one/things/plans/deploy-to-cloudflare.md +0 -623
- package/one/things/plans/deployment-architecture.md +0 -469
- package/one/things/plans/desktop.md +0 -1139
- package/one/things/plans/development-plan.md +0 -1283
- package/one/things/plans/development-workflow-tldr.md +0 -207
- package/one/things/plans/development-workflow.md +0 -959
- package/one/things/plans/dsl-claude-code.md +0 -1011
- package/one/things/plans/effect-components.md +0 -1743
- package/one/things/plans/effect-patterns-reference.md +0 -2235
- package/one/things/plans/effect.md +0 -1806
- package/one/things/plans/email.md +0 -966
- package/one/things/plans/enhance-auth.md +0 -1692
- package/one/things/plans/execution-strategy.md +0 -1291
- package/one/things/plans/existing-infrastructure.md +0 -712
- package/one/things/plans/feature-based-sites.md +0 -894
- package/one/things/plans/frontend-effects.md +0 -1276
- package/one/things/plans/group-folder-multi-tenancy.md +0 -893
- package/one/things/plans/improve-codebase.md +0 -1811
- package/one/things/plans/install-components.md +0 -215
- package/one/things/plans/integrate-frontend-and-backend.md +0 -603
- package/one/things/plans/landing.md +0 -820
- package/one/things/plans/layout.md +0 -249
- package/one/things/plans/mail-backend.md +0 -1361
- package/one/things/plans/mail.md +0 -2677
- package/one/things/plans/mcp-clear-context-prompt.md +0 -81
- package/one/things/plans/mcp-simple.md +0 -248
- package/one/things/plans/multi-ontology-architecture.md +0 -885
- package/one/things/plans/next-features.md +0 -114
- package/one/things/plans/npx-agent-safety.md +0 -785
- package/one/things/plans/npx-agent.md +0 -1089
- package/one/things/plans/onboarding.md +0 -51
- package/one/things/plans/one-protocol-and-payone-usage.md +0 -82
- package/one/things/plans/one.md +0 -677
- package/one/things/plans/ontology-6-dimensions.md +0 -2201
- package/one/things/plans/ontology-compliance-audit.md +0 -342
- package/one/things/plans/ontology-driven-strategy.md +0 -882
- package/one/things/plans/ontology-refine.md +0 -586
- package/one/things/plans/ontology-ui-approach.md +0 -375
- package/one/things/plans/open-agent.md +0 -840
- package/one/things/plans/performace.md +0 -122
- package/one/things/plans/phase-1-foundation.md +0 -620
- package/one/things/plans/phase-3-implementation.md +0 -1037
- package/one/things/plans/plan-connect-to-api.md +0 -146
- package/one/things/plans/quick-wins.md +0 -1428
- package/one/things/plans/r2.md +0 -777
- package/one/things/plans/readme-backend-cleanup.md +0 -402
- package/one/things/plans/release.md +0 -507
- package/one/things/plans/remove-backend-development-from-agents.md +0 -1331
- package/one/things/plans/repos.md +0 -98
- package/one/things/plans/separate-copy-2.md +0 -1349
- package/one/things/plans/separate-copy-3.md +0 -2479
- package/one/things/plans/separate-copy.md +0 -1349
- package/one/things/plans/separate-demo.md +0 -864
- package/one/things/plans/separate.md +0 -1999
- package/one/things/plans/sequence.md +0 -2040
- package/one/things/plans/shadcn-integration-summary.md +0 -510
- package/one/things/plans/sidebar.md +0 -206
- package/one/things/plans/skills.md +0 -709
- package/one/things/plans/small-fixes.md +0 -23
- package/one/things/plans/start-new.md +0 -764
- package/one/things/plans/switch-off-auth.md +0 -42
- package/one/things/plans/sync-checklist.md +0 -351
- package/one/things/plans/test-backend-connection.md +0 -514
- package/one/things/plans/unified-implementation-plan.md +0 -934
- package/one/things/plans/update-demos.md +0 -581
- package/one/things/plans/use-our-backend.md +0 -572
- package/one/things/plans/video-backend.md +0 -638
- package/one/things/plans/video-frontend.md +0 -490
- package/one/things/plans/video-old-archived.md +0 -656
- package/one/things/plans/wave1-onboarding-100-inferences.md +0 -1686
- package/one/things/plans/wave1-onboarding-vision.md +0 -744
- package/one/things/plans/wave1-orchestration-summary.md +0 -604
- package/one/things/plans/wave1-specialist-assignments.md +0 -1413
- package/one/things/plans/workflow-files.md +0 -1210
- package/one/things/plans/workflow.md +0 -1378
- package/one/things/plans-u.md +0 -905
- package/one/things/products/Blockchain Products.md +0 -6278
- package/one/things/products/cascade-landing-page.md +0 -841
- package/one/things/products/cascade.md +0 -1568
- package/one/things/products/context-engineering.md +0 -1488
- package/one/things/products/onthology.md +0 -15
- package/one/things/products/ontology-ui-shadcn.md +0 -1302
- package/one/things/products/ontology-ui.md +0 -1429
- package/one/things/products/ontology.md +0 -789
- package/one/things/products/sdk.md +0 -573
- package/one/things/promptkit.md +0 -930
- package/one/things/repos/all-repos.md +0 -0
- package/one/things/scripts-clean-mac.sh +0 -409
- package/one/things/service-providers-new.md +0 -1052
- package/one/things/service-providers.md +0 -1121
- package/one/things/structure.md +0 -532
- package/one/things/system.md +0 -618
- package/one/things/templates.md +0 -294
- package/one/things/tests/2-1-dataprovider-interface.md +0 -1216
- package/one/things/tests/2-1-test-analysis.md +0 -544
- package/one/things/things.md +0 -384
- package/one/things/todo-acp-integration.md +0 -744
- package/one/things/todo-ai.md +0 -933
- package/one/things/todo-api.md +0 -1078
- package/one/things/todo-assignment.md +0 -580
- package/one/things/todo-buy-chatgpt.md +0 -1450
- package/one/things/todo-components.md +0 -1683
- package/one/things/todo-connections.md +0 -278
- package/one/things/todo-ecommerce-frontend.md +0 -1313
- package/one/things/todo-ecommerce.md +0 -569
- package/one/things/todo-effects.md +0 -1075
- package/one/things/todo-frontend-effects.md +0 -977
- package/one/things/todo-landing-page.md +0 -1091
- package/one/things/todo-mail.md +0 -1160
- package/one/things/todo-master-plan.md +0 -490
- package/one/things/todo-onboard.md +0 -666
- package/one/things/todo-one-ie.md +0 -538
- package/one/things/todo-page.md +0 -606
- package/one/things/todo-plans.md +0 -282
- package/one/things/todo-projects.md +0 -241
- package/one/things/todo-refactoring-plan.md +0 -366
- package/one/things/todo-release.md +0 -654
- package/one/things/todo-sequence.md +0 -1621
- package/one/things/todo-use-our-backend.md +0 -1908
- package/one/things/todo-workflow.md +0 -626
- package/one/things/todo-x402.md +0 -2047
- package/one/things/todo.md +0 -21
- package/one/things/video/scripts-crypto.md +0 -835
- package/one/things/video-script-backup.md +0 -318
- package/one/things/video-script-demo.md +0 -382
- package/one/things/video-script-ontology.md +0 -333
- package/one/things/video-script.md +0 -361
package/one/paths/copilotkit.md
DELETED
|
@@ -1,1577 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Copilotkit
|
|
3
|
-
dimension: connections
|
|
4
|
-
category: copilotkit.md
|
|
5
|
-
tags: agent, ai, backend, frontend, protocol
|
|
6
|
-
related_dimensions: events, knowledge
|
|
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 connections dimension in the copilotkit.md category.
|
|
13
|
-
Location: one/connections/copilotkit.md
|
|
14
|
-
Purpose: Documents generative ui and ag-ui protocol - building on promptkit
|
|
15
|
-
Related dimensions: events, knowledge
|
|
16
|
-
For AI agents: Read this to understand copilotkit.
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Generative UI and AG-UI Protocol - Building on PromptKit
|
|
20
|
-
|
|
21
|
-
**Version:** 2.0.0
|
|
22
|
-
**Purpose:** Extract generative UI and AG-UI protocol patterns from CopilotKit to build advanced AI agent interfaces on top of PromptKit + Effect.ts + Convex
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Overview
|
|
27
|
-
|
|
28
|
-
This document extracts the key architectural patterns from **CopilotKit** (an MIT-licensed AI copilot framework) and shows how to implement them using our existing stack:
|
|
29
|
-
|
|
30
|
-
- **UI Layer:** PromptKit (shadcn-based components)
|
|
31
|
-
- **AI Layer:** Vercel AI SDK 5
|
|
32
|
-
- **Backend:** Convex + Effect.ts
|
|
33
|
-
- **Patterns:** CopilotKit-inspired AG-UI protocol and generative UI
|
|
34
|
-
|
|
35
|
-
**What We Learn from CopilotKit:**
|
|
36
|
-
1. ✅ **AG-UI Protocol** - Agent-to-frontend communication protocol
|
|
37
|
-
2. ✅ **Generative UI** - Agents dynamically rendering UI components
|
|
38
|
-
3. ✅ **Context Sharing** - Bidirectional state between app and agents
|
|
39
|
-
4. ✅ **Action Patterns** - Human-in-the-loop agent actions
|
|
40
|
-
5. ✅ **Multi-Agent Orchestration** - Coordinating multiple agents
|
|
41
|
-
|
|
42
|
-
**What We Build Ourselves:**
|
|
43
|
-
- AG-UI protocol implementation (Effect.ts services)
|
|
44
|
-
- Generative UI renderer (PromptKit + shadcn components)
|
|
45
|
-
- Context management (Convex real-time queries)
|
|
46
|
-
- Action system (Convex mutations)
|
|
47
|
-
- Agent coordination (Effect.ts composition)
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Architecture: PromptKit + AG-UI Protocol
|
|
52
|
-
|
|
53
|
-
```
|
|
54
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
55
|
-
│ FRONTEND (React + Astro) │
|
|
56
|
-
├─────────────────────────────────────────────────────────────────┤
|
|
57
|
-
│ PromptKit Components (shadcn/ui based) │
|
|
58
|
-
│ ├─ <Message> - Chat messages with markdown │
|
|
59
|
-
│ ├─ <PromptInput> - Auto-resize textarea │
|
|
60
|
-
│ ├─ <ChatContainer> - Auto-scroll │
|
|
61
|
-
│ ├─ <Reasoning> - Show agent thinking │
|
|
62
|
-
│ ├─ <Tool> - Display function calls │
|
|
63
|
-
│ └─ <ResponseStream> - Streaming responses │
|
|
64
|
-
│ │
|
|
65
|
-
│ Generative UI Renderer (Our Implementation) │
|
|
66
|
-
│ ├─ <GenerativeUIRenderer> - Render agent UI messages │
|
|
67
|
-
│ ├─ <DynamicChart> - Agent-generated charts │
|
|
68
|
-
│ ├─ <DynamicTable> - Agent-generated tables │
|
|
69
|
-
│ ├─ <DynamicForm> - Agent-generated forms │
|
|
70
|
-
│ └─ <ActionButtons> - Agent-suggested actions │
|
|
71
|
-
└──────────────────┬──────────────────────────────────────────────┘
|
|
72
|
-
│
|
|
73
|
-
↓ AG-UI Protocol Messages
|
|
74
|
-
┌──────────────────┐
|
|
75
|
-
│ Convex Backend │
|
|
76
|
-
│ (Real-time DB) │
|
|
77
|
-
└────────┬─────────┘
|
|
78
|
-
│
|
|
79
|
-
↓
|
|
80
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
81
|
-
│ Effect.ts Service Layer (100% Ours) │
|
|
82
|
-
├─────────────────────────────────────────────────────────────────┤
|
|
83
|
-
│ AgentUIService - Implements AG-UI protocol │
|
|
84
|
-
│ ├─ sendTextMessage(conversationId, text) │
|
|
85
|
-
│ ├─ sendUIComponent(conversationId, component) │
|
|
86
|
-
│ ├─ sendActionSuggestion(conversationId, actions) │
|
|
87
|
-
│ └─ requestContext(conversationId, fields) │
|
|
88
|
-
│ │
|
|
89
|
-
│ Agent Services - Use AG-UI to communicate │
|
|
90
|
-
│ ├─ IntelligenceAgent - Sends charts, tables, insights │
|
|
91
|
-
│ ├─ StrategyAgent - Sends plans, timelines, actions │
|
|
92
|
-
│ ├─ MarketingAgent - Sends content previews, campaigns │
|
|
93
|
-
│ └─ Any agent can send structured UI via AG-UI protocol │
|
|
94
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
**Key Principle:** Agents return structured UI data (not HTML), frontend renders it with PromptKit components.
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
## Part 1: AG-UI Protocol Implementation
|
|
102
|
-
|
|
103
|
-
### What is AG-UI Protocol?
|
|
104
|
-
|
|
105
|
-
**AG-UI (Agent-Generated User Interface)** is a communication protocol that allows AI agents to:
|
|
106
|
-
- Send structured UI data to the frontend
|
|
107
|
-
- Request context from the application
|
|
108
|
-
- Suggest actions for user approval
|
|
109
|
-
- Stream thinking/reasoning process
|
|
110
|
-
|
|
111
|
-
**CopilotKit's AG-UI Concept:**
|
|
112
|
-
```typescript
|
|
113
|
-
// Agent sends structured UI messages
|
|
114
|
-
{
|
|
115
|
-
type: 'ui',
|
|
116
|
-
component: 'Chart',
|
|
117
|
-
data: { /* chart configuration */ }
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Agent requests context
|
|
121
|
-
{
|
|
122
|
-
type: 'context_request',
|
|
123
|
-
fields: ['user.cart', 'user.preferences']
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Agent suggests actions
|
|
127
|
-
{
|
|
128
|
-
type: 'action',
|
|
129
|
-
actions: [{ id: 'update_cart', params: {...} }]
|
|
130
|
-
}
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Our AG-UI Protocol Schema
|
|
134
|
-
|
|
135
|
-
**File:** `convex/protocols/agent-ui.ts`
|
|
136
|
-
|
|
137
|
-
```typescript
|
|
138
|
-
import { v } from 'convex/values';
|
|
139
|
-
import type { Id } from '../_generated/dataModel';
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* AG-UI Protocol Message Types
|
|
143
|
-
* Based on CopilotKit's AG-UI concept, implemented for our stack
|
|
144
|
-
*/
|
|
145
|
-
export const AgentUIMessageType = {
|
|
146
|
-
TEXT: 'text', // Plain text message
|
|
147
|
-
UI: 'ui', // Structured UI component
|
|
148
|
-
ACTION: 'action', // Action suggestions
|
|
149
|
-
CONTEXT_REQUEST: 'context_request', // Request app context
|
|
150
|
-
REASONING: 'reasoning', // Agent thinking process
|
|
151
|
-
TOOL_CALL: 'tool_call', // Function/tool execution
|
|
152
|
-
ERROR: 'error', // Error message
|
|
153
|
-
} as const;
|
|
154
|
-
|
|
155
|
-
export type AgentUIMessageType =
|
|
156
|
-
(typeof AgentUIMessageType)[keyof typeof AgentUIMessageType];
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Base AG-UI Message
|
|
160
|
-
*/
|
|
161
|
-
export interface AgentUIMessage {
|
|
162
|
-
type: AgentUIMessageType;
|
|
163
|
-
agentId: Id<'entities'>;
|
|
164
|
-
conversationId: Id<'entities'>;
|
|
165
|
-
timestamp: number;
|
|
166
|
-
payload: AgentUIPayload;
|
|
167
|
-
metadata?: {
|
|
168
|
-
correlationId?: string; // Link related messages
|
|
169
|
-
replyTo?: Id<'entities'>; // Reply to specific message
|
|
170
|
-
[key: string]: any;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* AG-UI Payload Types
|
|
176
|
-
*/
|
|
177
|
-
export type AgentUIPayload =
|
|
178
|
-
| TextPayload
|
|
179
|
-
| UIPayload
|
|
180
|
-
| ActionPayload
|
|
181
|
-
| ContextRequestPayload
|
|
182
|
-
| ReasoningPayload
|
|
183
|
-
| ToolCallPayload
|
|
184
|
-
| ErrorPayload;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Text Message Payload
|
|
188
|
-
*/
|
|
189
|
-
export interface TextPayload {
|
|
190
|
-
type: 'text';
|
|
191
|
-
text: string;
|
|
192
|
-
sentiment?: 'positive' | 'neutral' | 'negative';
|
|
193
|
-
formatting?: {
|
|
194
|
-
bold?: boolean;
|
|
195
|
-
italic?: boolean;
|
|
196
|
-
code?: boolean;
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* UI Component Payload
|
|
202
|
-
* Agents send structured component data, frontend renders it
|
|
203
|
-
*/
|
|
204
|
-
export interface UIPayload {
|
|
205
|
-
type: 'ui';
|
|
206
|
-
component: UIComponentType;
|
|
207
|
-
data: any;
|
|
208
|
-
layout?: {
|
|
209
|
-
width?: 'full' | 'half' | 'third';
|
|
210
|
-
height?: string;
|
|
211
|
-
position?: 'inline' | 'modal' | 'sidebar';
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export type UIComponentType =
|
|
216
|
-
| 'chart'
|
|
217
|
-
| 'table'
|
|
218
|
-
| 'card'
|
|
219
|
-
| 'form'
|
|
220
|
-
| 'list'
|
|
221
|
-
| 'timeline'
|
|
222
|
-
| 'calendar'
|
|
223
|
-
| 'kanban'
|
|
224
|
-
| 'map'
|
|
225
|
-
| 'custom';
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Chart Component Data
|
|
229
|
-
*/
|
|
230
|
-
export interface ChartComponentData {
|
|
231
|
-
component: 'chart';
|
|
232
|
-
data: {
|
|
233
|
-
title: string;
|
|
234
|
-
description?: string;
|
|
235
|
-
chartType: 'line' | 'bar' | 'pie' | 'area' | 'scatter' | 'radar';
|
|
236
|
-
labels: string[];
|
|
237
|
-
datasets: Array<{
|
|
238
|
-
label: string;
|
|
239
|
-
data: number[];
|
|
240
|
-
color?: string;
|
|
241
|
-
fill?: boolean;
|
|
242
|
-
}>;
|
|
243
|
-
options?: any; // Recharts options
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Table Component Data
|
|
249
|
-
*/
|
|
250
|
-
export interface TableComponentData {
|
|
251
|
-
component: 'table';
|
|
252
|
-
data: {
|
|
253
|
-
title: string;
|
|
254
|
-
description?: string;
|
|
255
|
-
headers: string[];
|
|
256
|
-
rows: Array<Array<string | number | boolean>>;
|
|
257
|
-
sortable?: boolean;
|
|
258
|
-
filterable?: boolean;
|
|
259
|
-
pagination?: {
|
|
260
|
-
pageSize: number;
|
|
261
|
-
currentPage: number;
|
|
262
|
-
totalPages: number;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Card Component Data
|
|
269
|
-
*/
|
|
270
|
-
export interface CardComponentData {
|
|
271
|
-
component: 'card';
|
|
272
|
-
data: {
|
|
273
|
-
title: string;
|
|
274
|
-
description?: string;
|
|
275
|
-
content: string | any;
|
|
276
|
-
footer?: string;
|
|
277
|
-
actions?: Array<{
|
|
278
|
-
label: string;
|
|
279
|
-
actionId: string;
|
|
280
|
-
variant?: 'default' | 'destructive' | 'outline';
|
|
281
|
-
}>;
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Form Component Data
|
|
287
|
-
*/
|
|
288
|
-
export interface FormComponentData {
|
|
289
|
-
component: 'form';
|
|
290
|
-
data: {
|
|
291
|
-
title: string;
|
|
292
|
-
description?: string;
|
|
293
|
-
fields: Array<{
|
|
294
|
-
name: string;
|
|
295
|
-
label: string;
|
|
296
|
-
type: 'text' | 'email' | 'number' | 'select' | 'checkbox' | 'date';
|
|
297
|
-
required?: boolean;
|
|
298
|
-
options?: string[]; // For select fields
|
|
299
|
-
defaultValue?: any;
|
|
300
|
-
validation?: any;
|
|
301
|
-
}>;
|
|
302
|
-
submitLabel?: string;
|
|
303
|
-
onSubmitActionId: string;
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Action Suggestion Payload
|
|
309
|
-
*/
|
|
310
|
-
export interface ActionPayload {
|
|
311
|
-
type: 'action';
|
|
312
|
-
actions: Array<{
|
|
313
|
-
id: string;
|
|
314
|
-
label: string;
|
|
315
|
-
description?: string;
|
|
316
|
-
icon?: string;
|
|
317
|
-
params?: Record<string, any>;
|
|
318
|
-
confirmationRequired?: boolean;
|
|
319
|
-
confirmationMessage?: string;
|
|
320
|
-
}>;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Context Request Payload
|
|
325
|
-
*/
|
|
326
|
-
export interface ContextRequestPayload {
|
|
327
|
-
type: 'context_request';
|
|
328
|
-
fields: string[]; // e.g., ['user.cart', 'user.preferences', 'app.currentPage']
|
|
329
|
-
reason: string; // Why agent needs this context
|
|
330
|
-
optional?: boolean;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Reasoning/Thinking Payload
|
|
335
|
-
*/
|
|
336
|
-
export interface ReasoningPayload {
|
|
337
|
-
type: 'reasoning';
|
|
338
|
-
steps: Array<{
|
|
339
|
-
step: number;
|
|
340
|
-
title: string;
|
|
341
|
-
description: string;
|
|
342
|
-
completed: boolean;
|
|
343
|
-
result?: any;
|
|
344
|
-
}>;
|
|
345
|
-
currentStep?: number;
|
|
346
|
-
streaming?: boolean;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Tool Call Payload
|
|
351
|
-
*/
|
|
352
|
-
export interface ToolCallPayload {
|
|
353
|
-
type: 'tool_call';
|
|
354
|
-
toolName: string;
|
|
355
|
-
arguments: Record<string, any>;
|
|
356
|
-
result?: any;
|
|
357
|
-
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
358
|
-
error?: string;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Error Payload
|
|
363
|
-
*/
|
|
364
|
-
export interface ErrorPayload {
|
|
365
|
-
type: 'error';
|
|
366
|
-
message: string;
|
|
367
|
-
code?: string;
|
|
368
|
-
recoverable?: boolean;
|
|
369
|
-
retryable?: boolean;
|
|
370
|
-
details?: any;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Convex validators for AG-UI messages
|
|
375
|
-
*/
|
|
376
|
-
export const agentUIMessageValidator = {
|
|
377
|
-
type: v.union(
|
|
378
|
-
v.literal('text'),
|
|
379
|
-
v.literal('ui'),
|
|
380
|
-
v.literal('action'),
|
|
381
|
-
v.literal('context_request'),
|
|
382
|
-
v.literal('reasoning'),
|
|
383
|
-
v.literal('tool_call'),
|
|
384
|
-
v.literal('error')
|
|
385
|
-
),
|
|
386
|
-
agentId: v.id('entities'),
|
|
387
|
-
conversationId: v.id('entities'),
|
|
388
|
-
timestamp: v.number(),
|
|
389
|
-
payload: v.any(), // Typed in TypeScript, flexible in Convex
|
|
390
|
-
metadata: v.optional(v.any()),
|
|
391
|
-
};
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
### AgentUIService - Effect.ts Implementation
|
|
395
|
-
|
|
396
|
-
**File:** `convex/services/agent-ui.ts`
|
|
397
|
-
|
|
398
|
-
```typescript
|
|
399
|
-
import { Effect } from 'effect';
|
|
400
|
-
import { ConvexDatabase } from './convex-database';
|
|
401
|
-
import type { Id } from '../_generated/dataModel';
|
|
402
|
-
import type {
|
|
403
|
-
AgentUIMessage,
|
|
404
|
-
TextPayload,
|
|
405
|
-
UIPayload,
|
|
406
|
-
ActionPayload,
|
|
407
|
-
ContextRequestPayload,
|
|
408
|
-
ReasoningPayload,
|
|
409
|
-
ToolCallPayload,
|
|
410
|
-
ErrorPayload,
|
|
411
|
-
} from '../protocols/agent-ui';
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* AgentUIService - Implements AG-UI Protocol
|
|
415
|
-
* Allows agents to send structured UI updates to the frontend
|
|
416
|
-
*/
|
|
417
|
-
export class AgentUIService extends Effect.Service<AgentUIService>()(
|
|
418
|
-
'AgentUIService',
|
|
419
|
-
{
|
|
420
|
-
effect: Effect.gen(function* () {
|
|
421
|
-
const db = yield* ConvexDatabase;
|
|
422
|
-
|
|
423
|
-
return {
|
|
424
|
-
/**
|
|
425
|
-
* Send text message
|
|
426
|
-
*/
|
|
427
|
-
sendText: (args: {
|
|
428
|
-
agentId: Id<'entities'>;
|
|
429
|
-
conversationId: Id<'entities'>;
|
|
430
|
-
text: string;
|
|
431
|
-
sentiment?: 'positive' | 'neutral' | 'negative';
|
|
432
|
-
}) =>
|
|
433
|
-
Effect.gen(function* () {
|
|
434
|
-
const message: AgentUIMessage = {
|
|
435
|
-
type: 'text',
|
|
436
|
-
agentId: args.agentId,
|
|
437
|
-
conversationId: args.conversationId,
|
|
438
|
-
timestamp: Date.now(),
|
|
439
|
-
payload: {
|
|
440
|
-
type: 'text',
|
|
441
|
-
text: args.text,
|
|
442
|
-
sentiment: args.sentiment,
|
|
443
|
-
} as TextPayload,
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
return yield* storeMessage(db, message);
|
|
447
|
-
}),
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Send UI component
|
|
451
|
-
*/
|
|
452
|
-
sendUI: (args: {
|
|
453
|
-
agentId: Id<'entities'>;
|
|
454
|
-
conversationId: Id<'entities'>;
|
|
455
|
-
component: any; // ChartComponentData | TableComponentData | etc.
|
|
456
|
-
}) =>
|
|
457
|
-
Effect.gen(function* () {
|
|
458
|
-
const message: AgentUIMessage = {
|
|
459
|
-
type: 'ui',
|
|
460
|
-
agentId: args.agentId,
|
|
461
|
-
conversationId: args.conversationId,
|
|
462
|
-
timestamp: Date.now(),
|
|
463
|
-
payload: {
|
|
464
|
-
type: 'ui',
|
|
465
|
-
component: args.component.component,
|
|
466
|
-
data: args.component.data,
|
|
467
|
-
layout: args.component.layout,
|
|
468
|
-
} as UIPayload,
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
return yield* storeMessage(db, message);
|
|
472
|
-
}),
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Send action suggestions
|
|
476
|
-
*/
|
|
477
|
-
sendActions: (args: {
|
|
478
|
-
agentId: Id<'entities'>;
|
|
479
|
-
conversationId: Id<'entities'>;
|
|
480
|
-
actions: Array<{
|
|
481
|
-
id: string;
|
|
482
|
-
label: string;
|
|
483
|
-
description?: string;
|
|
484
|
-
params?: any;
|
|
485
|
-
}>;
|
|
486
|
-
}) =>
|
|
487
|
-
Effect.gen(function* () {
|
|
488
|
-
const message: AgentUIMessage = {
|
|
489
|
-
type: 'action',
|
|
490
|
-
agentId: args.agentId,
|
|
491
|
-
conversationId: args.conversationId,
|
|
492
|
-
timestamp: Date.now(),
|
|
493
|
-
payload: {
|
|
494
|
-
type: 'action',
|
|
495
|
-
actions: args.actions,
|
|
496
|
-
} as ActionPayload,
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
return yield* storeMessage(db, message);
|
|
500
|
-
}),
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Request context from frontend
|
|
504
|
-
*/
|
|
505
|
-
requestContext: (args: {
|
|
506
|
-
agentId: Id<'entities'>;
|
|
507
|
-
conversationId: Id<'entities'>;
|
|
508
|
-
fields: string[];
|
|
509
|
-
reason: string;
|
|
510
|
-
}) =>
|
|
511
|
-
Effect.gen(function* () {
|
|
512
|
-
const message: AgentUIMessage = {
|
|
513
|
-
type: 'context_request',
|
|
514
|
-
agentId: args.agentId,
|
|
515
|
-
conversationId: args.conversationId,
|
|
516
|
-
timestamp: Date.now(),
|
|
517
|
-
payload: {
|
|
518
|
-
type: 'context_request',
|
|
519
|
-
fields: args.fields,
|
|
520
|
-
reason: args.reason,
|
|
521
|
-
} as ContextRequestPayload,
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
return yield* storeMessage(db, message);
|
|
525
|
-
}),
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* Send reasoning/thinking steps
|
|
529
|
-
*/
|
|
530
|
-
sendReasoning: (args: {
|
|
531
|
-
agentId: Id<'entities'>;
|
|
532
|
-
conversationId: Id<'entities'>;
|
|
533
|
-
steps: Array<{
|
|
534
|
-
step: number;
|
|
535
|
-
title: string;
|
|
536
|
-
description: string;
|
|
537
|
-
completed: boolean;
|
|
538
|
-
}>;
|
|
539
|
-
}) =>
|
|
540
|
-
Effect.gen(function* () {
|
|
541
|
-
const message: AgentUIMessage = {
|
|
542
|
-
type: 'reasoning',
|
|
543
|
-
agentId: args.agentId,
|
|
544
|
-
conversationId: args.conversationId,
|
|
545
|
-
timestamp: Date.now(),
|
|
546
|
-
payload: {
|
|
547
|
-
type: 'reasoning',
|
|
548
|
-
steps: args.steps,
|
|
549
|
-
} as ReasoningPayload,
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
return yield* storeMessage(db, message);
|
|
553
|
-
}),
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Send tool call update
|
|
557
|
-
*/
|
|
558
|
-
sendToolCall: (args: {
|
|
559
|
-
agentId: Id<'entities'>;
|
|
560
|
-
conversationId: Id<'entities'>;
|
|
561
|
-
toolName: string;
|
|
562
|
-
arguments: any;
|
|
563
|
-
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
564
|
-
result?: any;
|
|
565
|
-
}) =>
|
|
566
|
-
Effect.gen(function* () {
|
|
567
|
-
const message: AgentUIMessage = {
|
|
568
|
-
type: 'tool_call',
|
|
569
|
-
agentId: args.agentId,
|
|
570
|
-
conversationId: args.conversationId,
|
|
571
|
-
timestamp: Date.now(),
|
|
572
|
-
payload: {
|
|
573
|
-
type: 'tool_call',
|
|
574
|
-
toolName: args.toolName,
|
|
575
|
-
arguments: args.arguments,
|
|
576
|
-
status: args.status,
|
|
577
|
-
result: args.result,
|
|
578
|
-
} as ToolCallPayload,
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
return yield* storeMessage(db, message);
|
|
582
|
-
}),
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* Send error message
|
|
586
|
-
*/
|
|
587
|
-
sendError: (args: {
|
|
588
|
-
agentId: Id<'entities'>;
|
|
589
|
-
conversationId: Id<'entities'>;
|
|
590
|
-
message: string;
|
|
591
|
-
code?: string;
|
|
592
|
-
recoverable?: boolean;
|
|
593
|
-
}) =>
|
|
594
|
-
Effect.gen(function* () {
|
|
595
|
-
const message: AgentUIMessage = {
|
|
596
|
-
type: 'error',
|
|
597
|
-
agentId: args.agentId,
|
|
598
|
-
conversationId: args.conversationId,
|
|
599
|
-
timestamp: Date.now(),
|
|
600
|
-
payload: {
|
|
601
|
-
type: 'error',
|
|
602
|
-
message: args.message,
|
|
603
|
-
code: args.code,
|
|
604
|
-
recoverable: args.recoverable,
|
|
605
|
-
} as ErrorPayload,
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
return yield* storeMessage(db, message);
|
|
609
|
-
}),
|
|
610
|
-
};
|
|
611
|
-
}),
|
|
612
|
-
dependencies: [ConvexDatabase.Default],
|
|
613
|
-
}
|
|
614
|
-
) {}
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* Helper: Store AG-UI message in database
|
|
618
|
-
*/
|
|
619
|
-
const storeMessage = (
|
|
620
|
-
db: ConvexDatabase,
|
|
621
|
-
message: AgentUIMessage
|
|
622
|
-
) =>
|
|
623
|
-
Effect.gen(function* () {
|
|
624
|
-
// Store message entity
|
|
625
|
-
const messageId = yield* db.insert('entities', {
|
|
626
|
-
type: 'message',
|
|
627
|
-
name: `AG-UI ${message.type}`,
|
|
628
|
-
properties: {
|
|
629
|
-
conversationId: message.conversationId,
|
|
630
|
-
senderId: message.agentId,
|
|
631
|
-
senderType: 'one_agent',
|
|
632
|
-
content: {
|
|
633
|
-
protocol: 'ag-ui',
|
|
634
|
-
version: '1.0.0',
|
|
635
|
-
message: message,
|
|
636
|
-
},
|
|
637
|
-
timestamp: message.timestamp,
|
|
638
|
-
},
|
|
639
|
-
status: 'active',
|
|
640
|
-
createdAt: Date.now(),
|
|
641
|
-
updatedAt: Date.now(),
|
|
642
|
-
});
|
|
643
|
-
|
|
644
|
-
// Log event
|
|
645
|
-
yield* db.insert('events', {
|
|
646
|
-
type: 'agent_executed',
|
|
647
|
-
actorId: message.agentId,
|
|
648
|
-
targetId: message.conversationId,
|
|
649
|
-
timestamp: Date.now(),
|
|
650
|
-
metadata: {
|
|
651
|
-
action: 'ag_ui_message_sent',
|
|
652
|
-
messageType: message.type,
|
|
653
|
-
messageId: messageId,
|
|
654
|
-
},
|
|
655
|
-
});
|
|
656
|
-
|
|
657
|
-
return messageId;
|
|
658
|
-
});
|
|
659
|
-
```
|
|
660
|
-
|
|
661
|
-
---
|
|
662
|
-
|
|
663
|
-
## Part 2: Generative UI Implementation
|
|
664
|
-
|
|
665
|
-
### Generative UI Concept
|
|
666
|
-
|
|
667
|
-
**Generative UI** allows AI agents to dynamically create UI components based on data. Instead of returning HTML strings, agents return structured component specifications that the frontend renders.
|
|
668
|
-
|
|
669
|
-
**Traditional Approach (Bad):**
|
|
670
|
-
```typescript
|
|
671
|
-
// Agent returns HTML string (security risk, no type safety)
|
|
672
|
-
return "<div class='chart'>...</div>";
|
|
673
|
-
```
|
|
674
|
-
|
|
675
|
-
**Generative UI Approach (Good):**
|
|
676
|
-
```typescript
|
|
677
|
-
// Agent returns structured component data
|
|
678
|
-
return {
|
|
679
|
-
component: 'chart',
|
|
680
|
-
data: {
|
|
681
|
-
chartType: 'line',
|
|
682
|
-
labels: ['Jan', 'Feb', 'Mar'],
|
|
683
|
-
datasets: [{ label: 'Revenue', data: [10, 20, 30] }],
|
|
684
|
-
},
|
|
685
|
-
};
|
|
686
|
-
```
|
|
687
|
-
|
|
688
|
-
### GenerativeUIRenderer Component
|
|
689
|
-
|
|
690
|
-
**File:** `src/components/agent-ui/GenerativeUIRenderer.tsx`
|
|
691
|
-
|
|
692
|
-
```tsx
|
|
693
|
-
import React from 'react';
|
|
694
|
-
import type { UIPayload, ChartComponentData, TableComponentData, CardComponentData, FormComponentData } from '@/convex/protocols/agent-ui';
|
|
695
|
-
|
|
696
|
-
// PromptKit components
|
|
697
|
-
import { Message, MessageContent } from '@/components/ui/message';
|
|
698
|
-
|
|
699
|
-
// shadcn/ui components
|
|
700
|
-
import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from '@/components/ui/card';
|
|
701
|
-
import { Button } from '@/components/ui/button';
|
|
702
|
-
|
|
703
|
-
// Recharts for data visualization
|
|
704
|
-
import { LineChart, BarChart, PieChart, Line, Bar, Pie, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
|
|
705
|
-
|
|
706
|
-
// Data table
|
|
707
|
-
import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from '@/components/ui/table';
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* GenerativeUIRenderer
|
|
711
|
-
* Renders agent-generated UI components from AG-UI protocol messages
|
|
712
|
-
*/
|
|
713
|
-
export function GenerativeUIRenderer({ payload }: { payload: UIPayload }) {
|
|
714
|
-
const { component, data, layout } = payload;
|
|
715
|
-
|
|
716
|
-
switch (component) {
|
|
717
|
-
case 'chart':
|
|
718
|
-
return <DynamicChart data={data} layout={layout} />;
|
|
719
|
-
case 'table':
|
|
720
|
-
return <DynamicTable data={data} layout={layout} />;
|
|
721
|
-
case 'card':
|
|
722
|
-
return <DynamicCard data={data} layout={layout} />;
|
|
723
|
-
case 'form':
|
|
724
|
-
return <DynamicForm data={data} layout={layout} />;
|
|
725
|
-
case 'list':
|
|
726
|
-
return <DynamicList data={data} layout={layout} />;
|
|
727
|
-
case 'timeline':
|
|
728
|
-
return <DynamicTimeline data={data} layout={layout} />;
|
|
729
|
-
default:
|
|
730
|
-
return (
|
|
731
|
-
<div className="rounded-lg border border-destructive bg-destructive/10 p-4">
|
|
732
|
-
<p className="text-sm text-destructive">
|
|
733
|
-
Unknown component type: {component}
|
|
734
|
-
</p>
|
|
735
|
-
</div>
|
|
736
|
-
);
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* DynamicChart - Render agent-generated charts
|
|
742
|
-
*/
|
|
743
|
-
function DynamicChart({ data, layout }: { data: ChartComponentData['data']; layout?: any }) {
|
|
744
|
-
const chartData = data.labels.map((label, i) => ({
|
|
745
|
-
name: label,
|
|
746
|
-
...data.datasets.reduce((acc, dataset) => ({
|
|
747
|
-
...acc,
|
|
748
|
-
[dataset.label]: dataset.data[i],
|
|
749
|
-
}), {}),
|
|
750
|
-
}));
|
|
751
|
-
|
|
752
|
-
const renderChart = () => {
|
|
753
|
-
switch (data.chartType) {
|
|
754
|
-
case 'line':
|
|
755
|
-
return (
|
|
756
|
-
<LineChart data={chartData} width={600} height={300}>
|
|
757
|
-
<CartesianGrid strokeDasharray="3 3" />
|
|
758
|
-
<XAxis dataKey="name" />
|
|
759
|
-
<YAxis />
|
|
760
|
-
<Tooltip />
|
|
761
|
-
<Legend />
|
|
762
|
-
{data.datasets.map((dataset, i) => (
|
|
763
|
-
<Line
|
|
764
|
-
key={i}
|
|
765
|
-
type="monotone"
|
|
766
|
-
dataKey={dataset.label}
|
|
767
|
-
stroke={dataset.color || `hsl(var(--chart-${i + 1}))`}
|
|
768
|
-
fill={dataset.fill ? dataset.color : undefined}
|
|
769
|
-
/>
|
|
770
|
-
))}
|
|
771
|
-
</LineChart>
|
|
772
|
-
);
|
|
773
|
-
case 'bar':
|
|
774
|
-
return (
|
|
775
|
-
<BarChart data={chartData} width={600} height={300}>
|
|
776
|
-
<CartesianGrid strokeDasharray="3 3" />
|
|
777
|
-
<XAxis dataKey="name" />
|
|
778
|
-
<YAxis />
|
|
779
|
-
<Tooltip />
|
|
780
|
-
<Legend />
|
|
781
|
-
{data.datasets.map((dataset, i) => (
|
|
782
|
-
<Bar
|
|
783
|
-
key={i}
|
|
784
|
-
dataKey={dataset.label}
|
|
785
|
-
fill={dataset.color || `hsl(var(--chart-${i + 1}))`}
|
|
786
|
-
/>
|
|
787
|
-
))}
|
|
788
|
-
</BarChart>
|
|
789
|
-
);
|
|
790
|
-
default:
|
|
791
|
-
return <p>Unsupported chart type: {data.chartType}</p>;
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
|
-
|
|
795
|
-
return (
|
|
796
|
-
<Card className={layout?.width === 'full' ? 'w-full' : ''}>
|
|
797
|
-
<CardHeader>
|
|
798
|
-
<CardTitle>{data.title}</CardTitle>
|
|
799
|
-
{data.description && <CardDescription>{data.description}</CardDescription>}
|
|
800
|
-
</CardHeader>
|
|
801
|
-
<CardContent>
|
|
802
|
-
{renderChart()}
|
|
803
|
-
</CardContent>
|
|
804
|
-
</Card>
|
|
805
|
-
);
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* DynamicTable - Render agent-generated tables
|
|
810
|
-
*/
|
|
811
|
-
function DynamicTable({ data, layout }: { data: TableComponentData['data']; layout?: any }) {
|
|
812
|
-
return (
|
|
813
|
-
<Card className={layout?.width === 'full' ? 'w-full' : ''}>
|
|
814
|
-
<CardHeader>
|
|
815
|
-
<CardTitle>{data.title}</CardTitle>
|
|
816
|
-
{data.description && <CardDescription>{data.description}</CardDescription>}
|
|
817
|
-
</CardHeader>
|
|
818
|
-
<CardContent>
|
|
819
|
-
<Table>
|
|
820
|
-
<TableHeader>
|
|
821
|
-
<TableRow>
|
|
822
|
-
{data.headers.map((header, i) => (
|
|
823
|
-
<TableHead key={i}>{header}</TableHead>
|
|
824
|
-
))}
|
|
825
|
-
</TableRow>
|
|
826
|
-
</TableHeader>
|
|
827
|
-
<TableBody>
|
|
828
|
-
{data.rows.map((row, rowIndex) => (
|
|
829
|
-
<TableRow key={rowIndex}>
|
|
830
|
-
{row.map((cell, cellIndex) => (
|
|
831
|
-
<TableCell key={cellIndex}>{String(cell)}</TableCell>
|
|
832
|
-
))}
|
|
833
|
-
</TableRow>
|
|
834
|
-
))}
|
|
835
|
-
</TableBody>
|
|
836
|
-
</Table>
|
|
837
|
-
</CardContent>
|
|
838
|
-
</Card>
|
|
839
|
-
);
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
* DynamicCard - Render agent-generated cards
|
|
844
|
-
*/
|
|
845
|
-
function DynamicCard({ data, layout }: { data: CardComponentData['data']; layout?: any }) {
|
|
846
|
-
return (
|
|
847
|
-
<Card className={layout?.width === 'full' ? 'w-full' : ''}>
|
|
848
|
-
<CardHeader>
|
|
849
|
-
<CardTitle>{data.title}</CardTitle>
|
|
850
|
-
{data.description && <CardDescription>{data.description}</CardDescription>}
|
|
851
|
-
</CardHeader>
|
|
852
|
-
<CardContent>
|
|
853
|
-
{typeof data.content === 'string' ? (
|
|
854
|
-
<p className="text-sm">{data.content}</p>
|
|
855
|
-
) : (
|
|
856
|
-
<pre className="text-xs">{JSON.stringify(data.content, null, 2)}</pre>
|
|
857
|
-
)}
|
|
858
|
-
</CardContent>
|
|
859
|
-
{(data.footer || data.actions) && (
|
|
860
|
-
<CardFooter className="flex justify-between">
|
|
861
|
-
{data.footer && <p className="text-sm text-muted-foreground">{data.footer}</p>}
|
|
862
|
-
{data.actions && (
|
|
863
|
-
<div className="flex gap-2">
|
|
864
|
-
{data.actions.map((action, i) => (
|
|
865
|
-
<Button key={i} variant={action.variant || 'default'} size="sm">
|
|
866
|
-
{action.label}
|
|
867
|
-
</Button>
|
|
868
|
-
))}
|
|
869
|
-
</div>
|
|
870
|
-
)}
|
|
871
|
-
</CardFooter>
|
|
872
|
-
)}
|
|
873
|
-
</Card>
|
|
874
|
-
);
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* DynamicForm - Render agent-generated forms
|
|
879
|
-
*/
|
|
880
|
-
function DynamicForm({ data, layout }: { data: FormComponentData['data']; layout?: any }) {
|
|
881
|
-
return (
|
|
882
|
-
<Card className={layout?.width === 'full' ? 'w-full' : ''}>
|
|
883
|
-
<CardHeader>
|
|
884
|
-
<CardTitle>{data.title}</CardTitle>
|
|
885
|
-
{data.description && <CardDescription>{data.description}</CardDescription>}
|
|
886
|
-
</CardHeader>
|
|
887
|
-
<CardContent>
|
|
888
|
-
<form className="space-y-4">
|
|
889
|
-
{data.fields.map((field, i) => (
|
|
890
|
-
<div key={i} className="space-y-2">
|
|
891
|
-
<label className="text-sm font-medium">
|
|
892
|
-
{field.label}
|
|
893
|
-
{field.required && <span className="text-destructive">*</span>}
|
|
894
|
-
</label>
|
|
895
|
-
{/* Render input based on field type */}
|
|
896
|
-
{field.type === 'text' && (
|
|
897
|
-
<input
|
|
898
|
-
type="text"
|
|
899
|
-
name={field.name}
|
|
900
|
-
defaultValue={field.defaultValue}
|
|
901
|
-
required={field.required}
|
|
902
|
-
className="w-full rounded-md border px-3 py-2"
|
|
903
|
-
/>
|
|
904
|
-
)}
|
|
905
|
-
{/* Add other field types... */}
|
|
906
|
-
</div>
|
|
907
|
-
))}
|
|
908
|
-
<Button type="submit">{data.submitLabel || 'Submit'}</Button>
|
|
909
|
-
</form>
|
|
910
|
-
</CardContent>
|
|
911
|
-
</Card>
|
|
912
|
-
);
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* DynamicList - Render agent-generated lists
|
|
917
|
-
*/
|
|
918
|
-
function DynamicList({ data, layout }: { data: any; layout?: any }) {
|
|
919
|
-
return (
|
|
920
|
-
<Card className={layout?.width === 'full' ? 'w-full' : ''}>
|
|
921
|
-
<CardHeader>
|
|
922
|
-
<CardTitle>{data.title}</CardTitle>
|
|
923
|
-
</CardHeader>
|
|
924
|
-
<CardContent>
|
|
925
|
-
<ul className="space-y-2">
|
|
926
|
-
{data.items.map((item: any, i: number) => (
|
|
927
|
-
<li key={i} className="flex items-center gap-2">
|
|
928
|
-
{item.icon && <span>{item.icon}</span>}
|
|
929
|
-
<span>{item.label}</span>
|
|
930
|
-
</li>
|
|
931
|
-
))}
|
|
932
|
-
</ul>
|
|
933
|
-
</CardContent>
|
|
934
|
-
</Card>
|
|
935
|
-
);
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* DynamicTimeline - Render agent-generated timelines
|
|
940
|
-
*/
|
|
941
|
-
function DynamicTimeline({ data, layout }: { data: any; layout?: any }) {
|
|
942
|
-
return (
|
|
943
|
-
<Card className={layout?.width === 'full' ? 'w-full' : ''}>
|
|
944
|
-
<CardHeader>
|
|
945
|
-
<CardTitle>{data.title}</CardTitle>
|
|
946
|
-
</CardHeader>
|
|
947
|
-
<CardContent>
|
|
948
|
-
<div className="space-y-4">
|
|
949
|
-
{data.events.map((event: any, i: number) => (
|
|
950
|
-
<div key={i} className="flex gap-4">
|
|
951
|
-
<div className="flex flex-col items-center">
|
|
952
|
-
<div className="h-3 w-3 rounded-full bg-primary" />
|
|
953
|
-
{i < data.events.length - 1 && <div className="h-full w-px bg-border" />}
|
|
954
|
-
</div>
|
|
955
|
-
<div className="flex-1 pb-4">
|
|
956
|
-
<p className="font-medium">{event.title}</p>
|
|
957
|
-
<p className="text-sm text-muted-foreground">{event.timestamp}</p>
|
|
958
|
-
{event.description && <p className="mt-1 text-sm">{event.description}</p>}
|
|
959
|
-
</div>
|
|
960
|
-
</div>
|
|
961
|
-
))}
|
|
962
|
-
</div>
|
|
963
|
-
</CardContent>
|
|
964
|
-
</Card>
|
|
965
|
-
);
|
|
966
|
-
}
|
|
967
|
-
```
|
|
968
|
-
|
|
969
|
-
### AgentMessage Component with AG-UI Support
|
|
970
|
-
|
|
971
|
-
**File:** `src/components/agent-ui/AgentMessage.tsx`
|
|
972
|
-
|
|
973
|
-
```tsx
|
|
974
|
-
import React from 'react';
|
|
975
|
-
import type { Id } from '@/convex/_generated/dataModel';
|
|
976
|
-
import type { AgentUIMessage } from '@/convex/protocols/agent-ui';
|
|
977
|
-
|
|
978
|
-
// PromptKit components
|
|
979
|
-
import {
|
|
980
|
-
Message,
|
|
981
|
-
MessageAvatar,
|
|
982
|
-
MessageContent,
|
|
983
|
-
MessageActions,
|
|
984
|
-
MessageAction,
|
|
985
|
-
} from '@/components/ui/message';
|
|
986
|
-
import { Reasoning } from '@/components/ui/reasoning';
|
|
987
|
-
import { Tool } from '@/components/ui/tool';
|
|
988
|
-
import { ResponseStream } from '@/components/ui/response-stream';
|
|
989
|
-
|
|
990
|
-
// Our generative UI renderer
|
|
991
|
-
import { GenerativeUIRenderer } from './GenerativeUIRenderer';
|
|
992
|
-
|
|
993
|
-
// shadcn/ui components
|
|
994
|
-
import { Button } from '@/components/ui/button';
|
|
995
|
-
import { AlertCircle, Copy, ThumbsUp, ThumbsDown } from 'lucide-react';
|
|
996
|
-
|
|
997
|
-
interface AgentMessageProps {
|
|
998
|
-
message: {
|
|
999
|
-
_id: Id<'entities'>;
|
|
1000
|
-
properties: {
|
|
1001
|
-
content: {
|
|
1002
|
-
protocol: 'ag-ui';
|
|
1003
|
-
version: string;
|
|
1004
|
-
message: AgentUIMessage;
|
|
1005
|
-
};
|
|
1006
|
-
senderId: Id<'entities'>;
|
|
1007
|
-
timestamp: number;
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/**
|
|
1013
|
-
* AgentMessage - Render AG-UI protocol messages with PromptKit components
|
|
1014
|
-
*/
|
|
1015
|
-
export function AgentMessage({ message }: AgentMessageProps) {
|
|
1016
|
-
const agMessage = message.properties.content.message;
|
|
1017
|
-
|
|
1018
|
-
const renderMessageContent = () => {
|
|
1019
|
-
switch (agMessage.type) {
|
|
1020
|
-
case 'text':
|
|
1021
|
-
return (
|
|
1022
|
-
<MessageContent markdown>
|
|
1023
|
-
{agMessage.payload.text}
|
|
1024
|
-
</MessageContent>
|
|
1025
|
-
);
|
|
1026
|
-
|
|
1027
|
-
case 'ui':
|
|
1028
|
-
return <GenerativeUIRenderer payload={agMessage.payload} />;
|
|
1029
|
-
|
|
1030
|
-
case 'action':
|
|
1031
|
-
return (
|
|
1032
|
-
<div className="space-y-2">
|
|
1033
|
-
<p className="text-sm font-medium">Suggested actions:</p>
|
|
1034
|
-
<div className="flex flex-wrap gap-2">
|
|
1035
|
-
{agMessage.payload.actions.map((action) => (
|
|
1036
|
-
<Button
|
|
1037
|
-
key={action.id}
|
|
1038
|
-
variant="outline"
|
|
1039
|
-
size="sm"
|
|
1040
|
-
onClick={() => handleActionClick(action.id, action.params)}
|
|
1041
|
-
>
|
|
1042
|
-
{action.label}
|
|
1043
|
-
</Button>
|
|
1044
|
-
))}
|
|
1045
|
-
</div>
|
|
1046
|
-
</div>
|
|
1047
|
-
);
|
|
1048
|
-
|
|
1049
|
-
case 'reasoning':
|
|
1050
|
-
return (
|
|
1051
|
-
<Reasoning>
|
|
1052
|
-
<div className="space-y-2">
|
|
1053
|
-
{agMessage.payload.steps.map((step) => (
|
|
1054
|
-
<div key={step.step} className="flex items-start gap-2">
|
|
1055
|
-
<div
|
|
1056
|
-
className={`mt-1 h-4 w-4 rounded-full ${
|
|
1057
|
-
step.completed ? 'bg-green-500' : 'bg-gray-300'
|
|
1058
|
-
}`}
|
|
1059
|
-
/>
|
|
1060
|
-
<div className="flex-1">
|
|
1061
|
-
<p className="font-medium">{step.title}</p>
|
|
1062
|
-
<p className="text-sm text-muted-foreground">{step.description}</p>
|
|
1063
|
-
</div>
|
|
1064
|
-
</div>
|
|
1065
|
-
))}
|
|
1066
|
-
</div>
|
|
1067
|
-
</Reasoning>
|
|
1068
|
-
);
|
|
1069
|
-
|
|
1070
|
-
case 'tool_call':
|
|
1071
|
-
return (
|
|
1072
|
-
<Tool
|
|
1073
|
-
name={agMessage.payload.toolName}
|
|
1074
|
-
arguments={agMessage.payload.arguments}
|
|
1075
|
-
result={agMessage.payload.result}
|
|
1076
|
-
/>
|
|
1077
|
-
);
|
|
1078
|
-
|
|
1079
|
-
case 'context_request':
|
|
1080
|
-
return (
|
|
1081
|
-
<div className="rounded-lg border border-blue-200 bg-blue-50 p-4 dark:border-blue-800 dark:bg-blue-950">
|
|
1082
|
-
<p className="text-sm font-medium">Context request:</p>
|
|
1083
|
-
<p className="mt-1 text-sm text-muted-foreground">{agMessage.payload.reason}</p>
|
|
1084
|
-
<ul className="mt-2 list-inside list-disc text-sm">
|
|
1085
|
-
{agMessage.payload.fields.map((field, i) => (
|
|
1086
|
-
<li key={i}>{field}</li>
|
|
1087
|
-
))}
|
|
1088
|
-
</ul>
|
|
1089
|
-
</div>
|
|
1090
|
-
);
|
|
1091
|
-
|
|
1092
|
-
case 'error':
|
|
1093
|
-
return (
|
|
1094
|
-
<div className="flex items-start gap-2 rounded-lg border border-destructive bg-destructive/10 p-4">
|
|
1095
|
-
<AlertCircle className="mt-0.5 h-4 w-4 text-destructive" />
|
|
1096
|
-
<div className="flex-1">
|
|
1097
|
-
<p className="font-medium text-destructive">Error</p>
|
|
1098
|
-
<p className="mt-1 text-sm">{agMessage.payload.message}</p>
|
|
1099
|
-
{agMessage.payload.recoverable && (
|
|
1100
|
-
<Button variant="outline" size="sm" className="mt-2">
|
|
1101
|
-
Retry
|
|
1102
|
-
</Button>
|
|
1103
|
-
)}
|
|
1104
|
-
</div>
|
|
1105
|
-
</div>
|
|
1106
|
-
);
|
|
1107
|
-
|
|
1108
|
-
default:
|
|
1109
|
-
return <MessageContent>Unknown message type</MessageContent>;
|
|
1110
|
-
}
|
|
1111
|
-
};
|
|
1112
|
-
|
|
1113
|
-
return (
|
|
1114
|
-
<Message>
|
|
1115
|
-
<MessageAvatar
|
|
1116
|
-
src="/ai-avatar.png"
|
|
1117
|
-
alt="AI Agent"
|
|
1118
|
-
fallback="AI"
|
|
1119
|
-
/>
|
|
1120
|
-
{renderMessageContent()}
|
|
1121
|
-
<MessageActions>
|
|
1122
|
-
<MessageAction tooltip="Copy message">
|
|
1123
|
-
<Button variant="ghost" size="icon" onClick={() => handleCopy()}>
|
|
1124
|
-
<Copy className="h-4 w-4" />
|
|
1125
|
-
</Button>
|
|
1126
|
-
</MessageAction>
|
|
1127
|
-
<MessageAction tooltip="Good response">
|
|
1128
|
-
<Button variant="ghost" size="icon" onClick={() => handleFeedback('positive')}>
|
|
1129
|
-
<ThumbsUp className="h-4 w-4" />
|
|
1130
|
-
</Button>
|
|
1131
|
-
</MessageAction>
|
|
1132
|
-
<MessageAction tooltip="Bad response">
|
|
1133
|
-
<Button variant="ghost" size="icon" onClick={() => handleFeedback('negative')}>
|
|
1134
|
-
<ThumbsDown className="h-4 w-4" />
|
|
1135
|
-
</Button>
|
|
1136
|
-
</MessageAction>
|
|
1137
|
-
</MessageActions>
|
|
1138
|
-
</Message>
|
|
1139
|
-
);
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
function handleActionClick(actionId: string, params?: any) {
|
|
1143
|
-
// Execute action via Convex mutation
|
|
1144
|
-
console.log('Execute action:', actionId, params);
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
function handleCopy() {
|
|
1148
|
-
// Copy message content
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
function handleFeedback(sentiment: 'positive' | 'negative') {
|
|
1152
|
-
// Send feedback to agent
|
|
1153
|
-
}
|
|
1154
|
-
```
|
|
1155
|
-
|
|
1156
|
-
---
|
|
1157
|
-
|
|
1158
|
-
## Part 3: Example Agent Using AG-UI
|
|
1159
|
-
|
|
1160
|
-
### IntelligenceAgent with Generative UI
|
|
1161
|
-
|
|
1162
|
-
**File:** `convex/services/intelligence-agent.ts`
|
|
1163
|
-
|
|
1164
|
-
```typescript
|
|
1165
|
-
import { Effect } from 'effect';
|
|
1166
|
-
import { ConvexDatabase } from './convex-database';
|
|
1167
|
-
import { AgentUIService } from './agent-ui';
|
|
1168
|
-
import type { Id } from '../_generated/dataModel';
|
|
1169
|
-
import type { ChartComponentData, TableComponentData } from '../protocols/agent-ui';
|
|
1170
|
-
|
|
1171
|
-
export class IntelligenceAgent extends Effect.Service<IntelligenceAgent>()(
|
|
1172
|
-
'IntelligenceAgent',
|
|
1173
|
-
{
|
|
1174
|
-
effect: Effect.gen(function* () {
|
|
1175
|
-
const db = yield* ConvexDatabase;
|
|
1176
|
-
const agentUI = yield* AgentUIService;
|
|
1177
|
-
|
|
1178
|
-
const AGENT_ID = 'agent-intelligence' as Id<'entities'>;
|
|
1179
|
-
|
|
1180
|
-
return {
|
|
1181
|
-
/**
|
|
1182
|
-
* Analyze user performance and send generative UI dashboard
|
|
1183
|
-
*/
|
|
1184
|
-
analyzePerformance: (args: {
|
|
1185
|
-
userId: Id<'entities'>;
|
|
1186
|
-
conversationId: Id<'entities'>;
|
|
1187
|
-
}) =>
|
|
1188
|
-
Effect.gen(function* () {
|
|
1189
|
-
// 1. Send reasoning steps
|
|
1190
|
-
yield* agentUI.sendReasoning({
|
|
1191
|
-
agentId: AGENT_ID,
|
|
1192
|
-
conversationId: args.conversationId,
|
|
1193
|
-
steps: [
|
|
1194
|
-
{
|
|
1195
|
-
step: 1,
|
|
1196
|
-
title: 'Fetching user metrics',
|
|
1197
|
-
description: 'Retrieving performance data from database',
|
|
1198
|
-
completed: true,
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
step: 2,
|
|
1202
|
-
title: 'Analyzing trends',
|
|
1203
|
-
description: 'Identifying patterns and insights',
|
|
1204
|
-
completed: true,
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
step: 3,
|
|
1208
|
-
title: 'Generating visualizations',
|
|
1209
|
-
description: 'Creating charts and tables',
|
|
1210
|
-
completed: false,
|
|
1211
|
-
},
|
|
1212
|
-
],
|
|
1213
|
-
});
|
|
1214
|
-
|
|
1215
|
-
// 2. Get metrics (simulated)
|
|
1216
|
-
const metrics = {
|
|
1217
|
-
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
|
|
1218
|
-
revenue: [10000, 12000, 15000, 13000, 18000, 20000],
|
|
1219
|
-
users: [100, 120, 150, 140, 180, 200],
|
|
1220
|
-
};
|
|
1221
|
-
|
|
1222
|
-
// 3. Send text intro
|
|
1223
|
-
yield* agentUI.sendText({
|
|
1224
|
-
agentId: AGENT_ID,
|
|
1225
|
-
conversationId: args.conversationId,
|
|
1226
|
-
text: "I've analyzed your performance data. Here's what I found:",
|
|
1227
|
-
sentiment: 'positive',
|
|
1228
|
-
});
|
|
1229
|
-
|
|
1230
|
-
// 4. Send revenue chart
|
|
1231
|
-
const chartComponent: ChartComponentData = {
|
|
1232
|
-
component: 'chart',
|
|
1233
|
-
data: {
|
|
1234
|
-
title: 'Revenue Trend (Last 6 Months)',
|
|
1235
|
-
description: '20% growth month-over-month',
|
|
1236
|
-
chartType: 'line',
|
|
1237
|
-
labels: metrics.labels,
|
|
1238
|
-
datasets: [
|
|
1239
|
-
{
|
|
1240
|
-
label: 'Revenue ($)',
|
|
1241
|
-
data: metrics.revenue,
|
|
1242
|
-
color: 'hsl(var(--chart-1))',
|
|
1243
|
-
fill: true,
|
|
1244
|
-
},
|
|
1245
|
-
],
|
|
1246
|
-
},
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
yield* agentUI.sendUI({
|
|
1250
|
-
agentId: AGENT_ID,
|
|
1251
|
-
conversationId: args.conversationId,
|
|
1252
|
-
component: chartComponent,
|
|
1253
|
-
});
|
|
1254
|
-
|
|
1255
|
-
// 5. Send metrics table
|
|
1256
|
-
const tableComponent: TableComponentData = {
|
|
1257
|
-
component: 'table',
|
|
1258
|
-
data: {
|
|
1259
|
-
title: 'Monthly Performance Summary',
|
|
1260
|
-
headers: ['Month', 'Revenue', 'Users', 'Revenue/User'],
|
|
1261
|
-
rows: metrics.labels.map((label, i) => [
|
|
1262
|
-
label,
|
|
1263
|
-
`$${metrics.revenue[i].toLocaleString()}`,
|
|
1264
|
-
metrics.users[i],
|
|
1265
|
-
`$${(metrics.revenue[i] / metrics.users[i]).toFixed(2)}`,
|
|
1266
|
-
]),
|
|
1267
|
-
sortable: true,
|
|
1268
|
-
filterable: true,
|
|
1269
|
-
},
|
|
1270
|
-
};
|
|
1271
|
-
|
|
1272
|
-
yield* agentUI.sendUI({
|
|
1273
|
-
agentId: AGENT_ID,
|
|
1274
|
-
conversationId: args.conversationId,
|
|
1275
|
-
component: tableComponent,
|
|
1276
|
-
});
|
|
1277
|
-
|
|
1278
|
-
// 6. Send action suggestions
|
|
1279
|
-
yield* agentUI.sendActions({
|
|
1280
|
-
agentId: AGENT_ID,
|
|
1281
|
-
conversationId: args.conversationId,
|
|
1282
|
-
actions: [
|
|
1283
|
-
{
|
|
1284
|
-
id: 'export_report',
|
|
1285
|
-
label: 'Export Full Report',
|
|
1286
|
-
description: 'Download PDF with detailed analysis',
|
|
1287
|
-
params: { format: 'pdf' },
|
|
1288
|
-
},
|
|
1289
|
-
{
|
|
1290
|
-
id: 'schedule_review',
|
|
1291
|
-
label: 'Schedule Review',
|
|
1292
|
-
description: 'Set up monthly performance review',
|
|
1293
|
-
params: { frequency: 'monthly' },
|
|
1294
|
-
},
|
|
1295
|
-
{
|
|
1296
|
-
id: 'deep_dive',
|
|
1297
|
-
label: 'Deep Dive Analysis',
|
|
1298
|
-
description: 'Get detailed insights on specific metrics',
|
|
1299
|
-
params: { metric: 'revenue' },
|
|
1300
|
-
},
|
|
1301
|
-
],
|
|
1302
|
-
});
|
|
1303
|
-
|
|
1304
|
-
return { success: true };
|
|
1305
|
-
}),
|
|
1306
|
-
};
|
|
1307
|
-
}),
|
|
1308
|
-
dependencies: [ConvexDatabase.Default, AgentUIService.Default],
|
|
1309
|
-
}
|
|
1310
|
-
) {}
|
|
1311
|
-
```
|
|
1312
|
-
|
|
1313
|
-
---
|
|
1314
|
-
|
|
1315
|
-
## Part 4: Context Sharing Pattern
|
|
1316
|
-
|
|
1317
|
-
### useAgentContext Hook
|
|
1318
|
-
|
|
1319
|
-
**File:** `src/hooks/useAgentContext.ts`
|
|
1320
|
-
|
|
1321
|
-
```tsx
|
|
1322
|
-
import { useQuery, useMutation } from 'convex/react';
|
|
1323
|
-
import { api } from '@/convex/_generated/api';
|
|
1324
|
-
import type { Id } from '@/convex/_generated/dataModel';
|
|
1325
|
-
import { useState, useEffect } from 'react';
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* Context sharing hook (inspired by CopilotKit's useCopilotReadable)
|
|
1329
|
-
* Allows agents to access application context
|
|
1330
|
-
*/
|
|
1331
|
-
export function useAgentContext(conversationId: Id<'entities'>) {
|
|
1332
|
-
const [context, setContext] = useState<Record<string, any>>({});
|
|
1333
|
-
const updateContext = useMutation(api.conversations.updateContext);
|
|
1334
|
-
|
|
1335
|
-
// Automatically share context with agent
|
|
1336
|
-
useEffect(() => {
|
|
1337
|
-
updateContext({
|
|
1338
|
-
conversationId,
|
|
1339
|
-
context,
|
|
1340
|
-
});
|
|
1341
|
-
}, [context, conversationId]);
|
|
1342
|
-
|
|
1343
|
-
return {
|
|
1344
|
-
// Share context with agent
|
|
1345
|
-
shareContext: (key: string, value: any) => {
|
|
1346
|
-
setContext((prev) => ({ ...prev, [key]: value }));
|
|
1347
|
-
},
|
|
1348
|
-
|
|
1349
|
-
// Remove context
|
|
1350
|
-
removeContext: (key: string) => {
|
|
1351
|
-
setContext((prev) => {
|
|
1352
|
-
const { [key]: _, ...rest } = prev;
|
|
1353
|
-
return rest;
|
|
1354
|
-
});
|
|
1355
|
-
},
|
|
1356
|
-
|
|
1357
|
-
// Get current context
|
|
1358
|
-
getContext: () => context,
|
|
1359
|
-
};
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* Usage example:
|
|
1364
|
-
*
|
|
1365
|
-
* function MyComponent() {
|
|
1366
|
-
* const { shareContext } = useAgentContext(conversationId);
|
|
1367
|
-
*
|
|
1368
|
-
* // Share shopping cart with agent
|
|
1369
|
-
* shareContext('cart', cart);
|
|
1370
|
-
*
|
|
1371
|
-
* // Share current page
|
|
1372
|
-
* shareContext('currentPage', location.pathname);
|
|
1373
|
-
*
|
|
1374
|
-
* // Share user preferences
|
|
1375
|
-
* shareContext('userPreferences', preferences);
|
|
1376
|
-
* }
|
|
1377
|
-
*/
|
|
1378
|
-
```
|
|
1379
|
-
|
|
1380
|
-
---
|
|
1381
|
-
|
|
1382
|
-
## Part 5: Multi-Agent Orchestration
|
|
1383
|
-
|
|
1384
|
-
### AgentOrchestrator Service
|
|
1385
|
-
|
|
1386
|
-
**File:** `convex/services/agent-orchestrator.ts`
|
|
1387
|
-
|
|
1388
|
-
```typescript
|
|
1389
|
-
import { Effect } from 'effect';
|
|
1390
|
-
import { IntelligenceAgent } from './intelligence-agent';
|
|
1391
|
-
import { StrategyAgent } from './strategy-agent';
|
|
1392
|
-
import { MarketingAgent } from './marketing-agent';
|
|
1393
|
-
import { SalesAgent } from './sales-agent';
|
|
1394
|
-
import { AgentUIService } from './agent-ui';
|
|
1395
|
-
import type { Id } from '../_generated/dataModel';
|
|
1396
|
-
|
|
1397
|
-
/**
|
|
1398
|
-
* AgentOrchestrator - Coordinate multiple agents
|
|
1399
|
-
* Inspired by CopilotKit's multi-agent patterns
|
|
1400
|
-
*/
|
|
1401
|
-
export class AgentOrchestrator extends Effect.Service<AgentOrchestrator>()(
|
|
1402
|
-
'AgentOrchestrator',
|
|
1403
|
-
{
|
|
1404
|
-
effect: Effect.gen(function* () {
|
|
1405
|
-
const intelligence = yield* IntelligenceAgent;
|
|
1406
|
-
const strategy = yield* StrategyAgent;
|
|
1407
|
-
const marketing = yield* MarketingAgent;
|
|
1408
|
-
const sales = yield* SalesAgent;
|
|
1409
|
-
const agentUI = yield* AgentUIService;
|
|
1410
|
-
|
|
1411
|
-
return {
|
|
1412
|
-
/**
|
|
1413
|
-
* Coordinate campaign creation across multiple agents
|
|
1414
|
-
*/
|
|
1415
|
-
coordinateCampaign: (args: {
|
|
1416
|
-
userId: Id<'entities'>;
|
|
1417
|
-
conversationId: Id<'entities'>;
|
|
1418
|
-
campaignGoal: string;
|
|
1419
|
-
}) =>
|
|
1420
|
-
Effect.gen(function* () {
|
|
1421
|
-
const orchestratorId = 'agent-orchestrator' as Id<'entities'>;
|
|
1422
|
-
|
|
1423
|
-
// Step 1: Intelligence agent analyzes current performance
|
|
1424
|
-
yield* agentUI.sendText({
|
|
1425
|
-
agentId: orchestratorId,
|
|
1426
|
-
conversationId: args.conversationId,
|
|
1427
|
-
text: '🎯 Step 1: Analyzing current performance...',
|
|
1428
|
-
});
|
|
1429
|
-
|
|
1430
|
-
const analysis = yield* intelligence.analyzePerformance({
|
|
1431
|
-
userId: args.userId,
|
|
1432
|
-
conversationId: args.conversationId,
|
|
1433
|
-
});
|
|
1434
|
-
|
|
1435
|
-
// Step 2: Strategy agent creates plan
|
|
1436
|
-
yield* agentUI.sendText({
|
|
1437
|
-
agentId: orchestratorId,
|
|
1438
|
-
conversationId: args.conversationId,
|
|
1439
|
-
text: '📋 Step 2: Creating campaign strategy...',
|
|
1440
|
-
});
|
|
1441
|
-
|
|
1442
|
-
const plan = yield* strategy.createCampaignPlan({
|
|
1443
|
-
userId: args.userId,
|
|
1444
|
-
conversationId: args.conversationId,
|
|
1445
|
-
goal: args.campaignGoal,
|
|
1446
|
-
insights: analysis,
|
|
1447
|
-
});
|
|
1448
|
-
|
|
1449
|
-
// Step 3: Marketing agent creates content
|
|
1450
|
-
yield* agentUI.sendText({
|
|
1451
|
-
agentId: orchestratorId,
|
|
1452
|
-
conversationId: args.conversationId,
|
|
1453
|
-
text: '✍️ Step 3: Generating marketing content...',
|
|
1454
|
-
});
|
|
1455
|
-
|
|
1456
|
-
const content = yield* marketing.createContent({
|
|
1457
|
-
userId: args.userId,
|
|
1458
|
-
conversationId: args.conversationId,
|
|
1459
|
-
plan: plan,
|
|
1460
|
-
});
|
|
1461
|
-
|
|
1462
|
-
// Step 4: Sales agent prepares follow-up
|
|
1463
|
-
yield* agentUI.sendText({
|
|
1464
|
-
agentId: orchestratorId,
|
|
1465
|
-
conversationId: args.conversationId,
|
|
1466
|
-
text: '📞 Step 4: Setting up sales follow-up...',
|
|
1467
|
-
});
|
|
1468
|
-
|
|
1469
|
-
const followUp = yield* sales.preparefollowUp({
|
|
1470
|
-
userId: args.userId,
|
|
1471
|
-
conversationId: args.conversationId,
|
|
1472
|
-
campaign: content,
|
|
1473
|
-
});
|
|
1474
|
-
|
|
1475
|
-
// Final summary
|
|
1476
|
-
yield* agentUI.sendText({
|
|
1477
|
-
agentId: orchestratorId,
|
|
1478
|
-
conversationId: args.conversationId,
|
|
1479
|
-
text: '✅ Campaign ready! All agents have contributed.',
|
|
1480
|
-
sentiment: 'positive',
|
|
1481
|
-
});
|
|
1482
|
-
|
|
1483
|
-
// Send action to approve and launch
|
|
1484
|
-
yield* agentUI.sendActions({
|
|
1485
|
-
agentId: orchestratorId,
|
|
1486
|
-
conversationId: args.conversationId,
|
|
1487
|
-
actions: [
|
|
1488
|
-
{
|
|
1489
|
-
id: 'approve_campaign',
|
|
1490
|
-
label: 'Approve & Launch Campaign',
|
|
1491
|
-
description: 'Review and launch the complete campaign',
|
|
1492
|
-
params: { planId: plan.id, contentId: content.id },
|
|
1493
|
-
confirmationRequired: true,
|
|
1494
|
-
},
|
|
1495
|
-
],
|
|
1496
|
-
});
|
|
1497
|
-
|
|
1498
|
-
return { plan, content, followUp };
|
|
1499
|
-
}),
|
|
1500
|
-
};
|
|
1501
|
-
}),
|
|
1502
|
-
dependencies: [
|
|
1503
|
-
IntelligenceAgent.Default,
|
|
1504
|
-
StrategyAgent.Default,
|
|
1505
|
-
MarketingAgent.Default,
|
|
1506
|
-
SalesAgent.Default,
|
|
1507
|
-
AgentUIService.Default,
|
|
1508
|
-
],
|
|
1509
|
-
}
|
|
1510
|
-
) {}
|
|
1511
|
-
```
|
|
1512
|
-
|
|
1513
|
-
---
|
|
1514
|
-
|
|
1515
|
-
## Summary
|
|
1516
|
-
|
|
1517
|
-
### What We Built (PromptKit + AG-UI)
|
|
1518
|
-
|
|
1519
|
-
**UI Layer (PromptKit):**
|
|
1520
|
-
- ✅ `<Message>` - Chat messages
|
|
1521
|
-
- ✅ `<PromptInput>` - User input
|
|
1522
|
-
- ✅ `<ChatContainer>` - Auto-scroll
|
|
1523
|
-
- ✅ `<Reasoning>` - Agent thinking
|
|
1524
|
-
- ✅ `<Tool>` - Function calls
|
|
1525
|
-
- ✅ All shadcn/ui based
|
|
1526
|
-
|
|
1527
|
-
**Protocol Layer (Our AG-UI Implementation):**
|
|
1528
|
-
- ✅ AgentUIMessage types (text, ui, action, context_request, reasoning, tool_call, error)
|
|
1529
|
-
- ✅ AgentUIService (Effect.ts service)
|
|
1530
|
-
- ✅ Structured component data (ChartComponentData, TableComponentData, etc.)
|
|
1531
|
-
- ✅ Type-safe protocol with Convex validators
|
|
1532
|
-
|
|
1533
|
-
**Generative UI Layer (Our Renderer):**
|
|
1534
|
-
- ✅ GenerativeUIRenderer component
|
|
1535
|
-
- ✅ DynamicChart (Recharts integration)
|
|
1536
|
-
- ✅ DynamicTable (shadcn table)
|
|
1537
|
-
- ✅ DynamicCard, DynamicForm, DynamicList, DynamicTimeline
|
|
1538
|
-
- ✅ AgentMessage component with AG-UI support
|
|
1539
|
-
|
|
1540
|
-
**Context & Orchestration:**
|
|
1541
|
-
- ✅ useAgentContext hook (bidirectional state sharing)
|
|
1542
|
-
- ✅ AgentOrchestrator service (multi-agent coordination)
|
|
1543
|
-
- ✅ Action system (human-in-the-loop approvals)
|
|
1544
|
-
|
|
1545
|
-
### Final Stack
|
|
1546
|
-
|
|
1547
|
-
| Layer | Technology | Purpose |
|
|
1548
|
-
|-------|------------|---------|
|
|
1549
|
-
| **UI Components** | PromptKit (shadcn/ui) | Chat interface, message display |
|
|
1550
|
-
| **Generative UI** | Our Renderer + Recharts | Dynamic component rendering |
|
|
1551
|
-
| **Protocol** | AG-UI (our implementation) | Agent-to-frontend communication |
|
|
1552
|
-
| **AI SDK** | Vercel AI SDK 5 | Streaming, tool calling |
|
|
1553
|
-
| **Backend** | Convex + Effect.ts | Real-time DB, agent services |
|
|
1554
|
-
| **State** | Convex reactive queries | Context sharing |
|
|
1555
|
-
|
|
1556
|
-
### Benefits
|
|
1557
|
-
|
|
1558
|
-
**No Vendor Lock-in:**
|
|
1559
|
-
- PromptKit: MIT licensed, shadcn-based (can fork/modify)
|
|
1560
|
-
- AG-UI Protocol: 100% our implementation
|
|
1561
|
-
- Effect.ts agents: Fully independent
|
|
1562
|
-
- Convex backend: No CopilotKit dependencies
|
|
1563
|
-
|
|
1564
|
-
**CopilotKit Patterns We Implemented:**
|
|
1565
|
-
- ✅ AG-UI protocol for structured UI messages
|
|
1566
|
-
- ✅ Generative UI for dynamic component rendering
|
|
1567
|
-
- ✅ Context sharing (useAgentContext hook)
|
|
1568
|
-
- ✅ Action suggestions (human-in-the-loop)
|
|
1569
|
-
- ✅ Multi-agent orchestration (AgentOrchestrator)
|
|
1570
|
-
|
|
1571
|
-
**Complete Open Source Freedom:**
|
|
1572
|
-
- Can replace any component
|
|
1573
|
-
- Can modify any pattern
|
|
1574
|
-
- Can extend infinitely
|
|
1575
|
-
- Zero external runtime dependencies
|
|
1576
|
-
|
|
1577
|
-
🎉 **Result:** Professional AI agent interfaces with generative UI, built entirely on open-source stack with PromptKit + Effect.ts + Convex.
|