oneie 2.0.2 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +245 -0
- package/CLAUDE.md +725 -0
- package/LICENSE.md +84 -0
- package/README.md +489 -931
- package/folders.yaml +78 -17
- package/one/.obsidian/app.json +1 -0
- package/one/.obsidian/appearance.json +1 -0
- package/one/.obsidian/core-plugins.json +33 -0
- package/one/.obsidian/workspace.json +211 -0
- package/one/connections/a2a.md +551 -0
- package/one/connections/acp.md +761 -0
- package/one/connections/acps.md +731 -0
- package/one/connections/agentkit.md +349 -0
- package/one/connections/agui.md +767 -0
- package/one/connections/any-backend.md +1702 -0
- package/one/connections/ap2.md +998 -0
- package/one/connections/api-docs.md +1891 -0
- package/one/connections/api.md +2190 -0
- package/one/connections/architecture-diagram.md +94 -0
- package/one/connections/communications.md +449 -0
- package/one/connections/connections.md +339 -0
- package/one/connections/copilotkit.md +1559 -0
- package/one/connections/cryptonetworks.md +781 -0
- package/one/connections/documentation.md +1120 -0
- package/one/connections/effect.md +279 -0
- package/one/connections/elizaos.md +1290 -0
- package/one/connections/inference.md +58 -0
- package/one/connections/kyc.md +632 -0
- package/one/connections/mcp.md +842 -0
- package/one/connections/membership.md +1152 -0
- package/one/connections/middleware.md +1067 -0
- package/one/connections/multitenant.md +1341 -0
- package/one/connections/n8n.md +1015 -0
- package/one/connections/patterns.md +89 -0
- package/one/connections/protocols.md +279 -0
- package/one/connections/relationships.md +107 -0
- package/one/connections/schema.md +587 -0
- package/one/connections/service-layer.md +550 -0
- package/one/connections/structure.md +0 -0
- package/one/connections/vectors.md +207 -0
- package/one/connections/wordpress.md +1302 -0
- package/one/connections/workflow-copy.md +905 -0
- package/one/connections/workflow-examples.md +741 -0
- package/one/connections/workflow.md +905 -0
- package/one/connections/workflows/delegation.md +885 -0
- package/one/connections/workflows/frontend.md +1037 -0
- package/one/connections/workflows/strategy.md +903 -0
- package/one/connections/workflows/tasks.md +698 -0
- package/one/connections/x402.md +1249 -0
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +412 -0
- package/one/events/FEATURE-2-4-COMPLETE.md +302 -0
- package/one/events/FEATURE_2_3_COMPLETE.md +575 -0
- package/one/events/GROUPS-MIGRATION.md +625 -0
- package/one/events/INSTALL-TESTS.md +293 -0
- package/one/events/INTEGRATION-ARCHITECTURE.md +561 -0
- package/one/events/INTEGRATION-CHECKLIST.md +1234 -0
- package/one/events/INTEGRATION-ORCHESTRATION.md +2623 -0
- package/one/events/INTEGRATION-SUMMARY.md +653 -0
- package/one/events/MIGRATION-REPORT.md +435 -0
- package/one/events/MIGRATION.md +69 -0
- package/one/events/README-archived.md +519 -0
- package/one/events/TEST-SUMMARY.md +393 -0
- package/one/events/TESTS-QUICK-REF.md +262 -0
- package/one/events/events.md +545 -0
- package/one/groups/groups.md +543 -0
- package/one/groups/one.md +599 -0
- package/one/groups/revenue.md +673 -0
- package/one/groups/strategy.md +869 -0
- package/one/groups/vision.md +98 -0
- package/one/knowledge/CLOUDFLARE_ENV_SETUP.md +49 -0
- package/one/knowledge/ai-platform.md +305 -0
- package/one/knowledge/architecture-any-backend.md +1366 -0
- package/one/knowledge/architecture-diagram.md +94 -0
- package/one/knowledge/architecture-frontend.md +930 -0
- package/one/knowledge/architecture.md +2077 -0
- package/one/knowledge/crypto.md +960 -0
- package/one/knowledge/docs/flow.md +0 -0
- package/one/knowledge/dsl.md +1660 -0
- package/one/knowledge/files.md +2471 -0
- package/one/knowledge/frontend.md +1038 -0
- package/one/knowledge/hono.md +2109 -0
- package/one/knowledge/implementation-examples.md +2536 -0
- package/one/knowledge/inference-score.md +159 -0
- package/one/knowledge/knowledge.md +642 -0
- package/one/knowledge/language.md +980 -0
- package/one/knowledge/lessons-learned.md +70 -0
- package/one/knowledge/ontology-6-dimensions.md +0 -0
- package/one/knowledge/ontology-documentation.md +356 -0
- package/one/knowledge/ontology-engineering-specification.md +1292 -0
- package/one/knowledge/ontology-engineering.md +1652 -0
- package/one/knowledge/ontology-frontend-copy-2.md +1492 -0
- package/one/knowledge/ontology-frontend-copy.md +753 -0
- package/one/knowledge/ontology-frontend-specifications.md +2188 -0
- package/one/knowledge/ontology-frontend.md +2427 -0
- package/one/knowledge/ontology-minimal.yaml +299 -0
- package/one/knowledge/ontology.md +2830 -0
- package/one/knowledge/ontology.md.backup +2822 -0
- package/one/knowledge/ontology.yaml +1165 -0
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +100 -0
- package/one/knowledge/patterns/backend/convex-query-pattern.md +88 -0
- package/one/knowledge/patterns/backend/mutation-template.md +231 -0
- package/one/knowledge/patterns/backend/query-template.md +267 -0
- package/one/knowledge/patterns/backend/service-template.md +237 -0
- package/one/knowledge/patterns/design/component-architecture.md +399 -0
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +162 -0
- package/one/knowledge/patterns/design/wireframe-template.md +216 -0
- package/one/knowledge/patterns/frontend/component-template.md +195 -0
- package/one/knowledge/patterns/frontend/form-template.md +276 -0
- package/one/knowledge/patterns/frontend/page-template.md +178 -0
- package/one/knowledge/patterns/frontend/react-component-pattern.md +128 -0
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +378 -0
- package/one/knowledge/patterns/test/technical-test-template.md +544 -0
- package/one/knowledge/patterns/test/test-driven-pattern.md +140 -0
- package/one/knowledge/patterns/test/user-flow-template.md +254 -0
- package/one/knowledge/provider-creation-guide.md +1064 -0
- package/one/knowledge/quality-loop.md +401 -0
- package/one/knowledge/readme.md +131 -0
- package/one/knowledge/rules.md +626 -0
- package/one/knowledge/score.md +67 -0
- package/one/knowledge/specifications.md +855 -0
- package/one/knowledge/tags.md +130 -0
- package/one/knowledge/todo.md +251 -0
- package/one/license.md +84 -0
- package/one/people/anthony-o-connell.md +440 -0
- package/one/people/people.md +567 -0
- package/one/things/CHECKLIST.md +356 -0
- package/one/things/ONE.md +510 -0
- package/one/things/agents/agent-backend.md +1401 -0
- package/one/things/agents/agent-builder.md +955 -0
- package/one/things/agents/agent-clean.md +709 -0
- package/one/things/agents/agent-clone.md +1341 -0
- package/one/things/agents/agent-designer.md +2177 -0
- package/one/things/agents/agent-director.md +1508 -0
- package/one/things/agents/agent-documenter.md +1049 -0
- package/one/things/agents/agent-frontend.md +1119 -0
- package/one/things/agents/agent-integrator.md +1192 -0
- package/one/things/agents/agent-problem-solver.md +1379 -0
- package/one/things/agents/agent-quality.md +1353 -0
- package/one/things/agents/agent-sales.md +986 -0
- package/one/things/cascade/cascade.yaml +464 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +470 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +264 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +486 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +516 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +544 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +223 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +508 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +609 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +195 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +577 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +797 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +212 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +641 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +610 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +213 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +575 -0
- package/one/things/cascade/docs/examples/readme.md +222 -0
- package/one/things/cascade/docs/getting-started.md +515 -0
- package/one/things/cascade/docs/workflow.md +1372 -0
- package/one/things/cascade/readme.md +336 -0
- package/one/things/cascade/templates/feature-template.md +267 -0
- package/one/things/claude/agents/advocacy-activation-manager.md +685 -0
- package/one/things/claude/agents/advocacy-campaign-designer.md +663 -0
- package/one/things/claude/agents/analyst.md +483 -0
- package/one/things/claude/agents/architect.md +480 -0
- package/one/things/claude/agents/brand-identity-specialist.md +513 -0
- package/one/things/claude/agents/bstp-token-strategist.md +667 -0
- package/one/things/claude/agents/builder-repo.md +489 -0
- package/one/things/claude/agents/bullstamp-community-builder.md +574 -0
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +506 -0
- package/one/things/claude/agents/bulltilt-platform-growth.md +567 -0
- package/one/things/claude/agents/company-bullstamp-character.md +587 -0
- package/one/things/claude/agents/company-bullstamp-community.md +292 -0
- package/one/things/claude/agents/company-bullstamp-marketing.md +292 -0
- package/one/things/claude/agents/company-bullstamp-token.md +292 -0
- package/one/things/claude/agents/company-bulltilt-growth.md +292 -0
- package/one/things/claude/agents/content-bibliography-formatter.md +381 -0
- package/one/things/claude/agents/content-calendar-planner.md +448 -0
- package/one/things/claude/agents/content-chapter-formatter.md +488 -0
- package/one/things/claude/agents/content-formatter.md +546 -0
- package/one/things/claude/agents/content-hook-specialist.md +462 -0
- package/one/things/claude/agents/content-image-formatter.md +535 -0
- package/one/things/claude/agents/content-introduction-formatter.md +485 -0
- package/one/things/claude/agents/content-multiplication-engine.md +556 -0
- package/one/things/claude/agents/content-playbook-writer.md +448 -0
- package/one/things/claude/agents/content-team-manager.md +622 -0
- package/one/things/claude/agents/content-toc-formatter.md +522 -0
- package/one/things/claude/agents/convex-backend-specialist.md +2561 -0
- package/one/things/claude/agents/core-manager.md +582 -0
- package/one/things/claude/agents/core-master.md +403 -0
- package/one/things/claude/agents/cross-functional-manager.md +471 -0
- package/one/things/claude/agents/crypto-airdrop-strategist.md +602 -0
- package/one/things/claude/agents/crypto-analytics-educator.md +553 -0
- package/one/things/claude/agents/crypto-architecture-specialist.md +466 -0
- package/one/things/claude/agents/crypto-community-analyst.md +298 -0
- package/one/things/claude/agents/crypto-community-psychologist.md +509 -0
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +538 -0
- package/one/things/claude/agents/crypto-dex-optimizer.md +292 -0
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +513 -0
- package/one/things/claude/agents/crypto-diamond-hands.md +292 -0
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +554 -0
- package/one/things/claude/agents/crypto-engagement-specialist.md +540 -0
- package/one/things/claude/agents/crypto-market-researcher.md +292 -0
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +523 -0
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +569 -0
- package/one/things/claude/agents/crypto-optimization-analyst.md +554 -0
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +517 -0
- package/one/things/claude/agents/crypto-team-manager.md +387 -0
- package/one/things/claude/agents/crypto-token-analyst.md +278 -0
- package/one/things/claude/agents/crypto-viral-content-creator.md +546 -0
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +517 -0
- package/one/things/claude/agents/crypto-wallet-identifier.md +292 -0
- package/one/things/claude/agents/customer-journey-designer.md +481 -0
- package/one/things/claude/agents/customer-success-manager.md +581 -0
- package/one/things/claude/agents/dev.md +413 -0
- package/one/things/claude/agents/documenter.md +546 -0
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +410 -0
- package/one/things/claude/agents/engagement-specialist.md +509 -0
- package/one/things/claude/agents/engineering-architect.md +387 -0
- package/one/things/claude/agents/engineering-business-analyst.md +537 -0
- package/one/things/claude/agents/engineering-developer.md +387 -0
- package/one/things/claude/agents/engineering-director.md +282 -0
- package/one/things/claude/agents/engineering-ingestor.md +649 -0
- package/one/things/claude/agents/engineering-product-manager.md +537 -0
- package/one/things/claude/agents/engineering-product-owner.md +537 -0
- package/one/things/claude/agents/engineering-project-coordinator.md +537 -0
- package/one/things/claude/agents/engineering-quality-assurance.md +393 -0
- package/one/things/claude/agents/engineering-team-manager.md +512 -0
- package/one/things/claude/agents/engineering-user-experience.md +387 -0
- package/one/things/claude/agents/framework-elevate-manager.md +294 -0
- package/one/things/claude/agents/improver.md +763 -0
- package/one/things/claude/agents/intelligence-team-manager.md +385 -0
- package/one/things/claude/agents/lead-capture-expert.md +466 -0
- package/one/things/claude/agents/lead-magnet-creator.md +453 -0
- package/one/things/claude/agents/market-research-analyst.md +412 -0
- package/one/things/claude/agents/marketing-brand-identity.md +314 -0
- package/one/things/claude/agents/marketing-content-hooks.md +450 -0
- package/one/things/claude/agents/marketing-content-multiplier.md +326 -0
- package/one/things/claude/agents/marketing-content-poster.md +361 -0
- package/one/things/claude/agents/marketing-customer-journey.md +326 -0
- package/one/things/claude/agents/marketing-director.md +397 -0
- package/one/things/claude/agents/marketing-engagement.md +326 -0
- package/one/things/claude/agents/marketing-lead-capture.md +326 -0
- package/one/things/claude/agents/marketing-lead-magnet.md +326 -0
- package/one/things/claude/agents/marketing-network-effects.md +326 -0
- package/one/things/claude/agents/marketing-nurture-campaigns.md +326 -0
- package/one/things/claude/agents/marketing-share-optimizer.md +326 -0
- package/one/things/claude/agents/marketing-team-manager.md +446 -0
- package/one/things/claude/agents/marketing-viral-growth.md +201 -0
- package/one/things/claude/agents/mission-commander.md +373 -0
- package/one/things/claude/agents/network-effect-analyst.md +587 -0
- package/one/things/claude/agents/nextjs-15-specialist.md +1547 -0
- package/one/things/claude/agents/npx.md +890 -0
- package/one/things/claude/agents/nurture-campaign-manager.md +531 -0
- package/one/things/claude/agents/one-master.md +355 -0
- package/one/things/claude/agents/one-orchestrator.md +315 -0
- package/one/things/claude/agents/one.md +601 -0
- package/one/things/claude/agents/playbook-generator.md +503 -0
- package/one/things/claude/agents/pm.md +326 -0
- package/one/things/claude/agents/po.md +345 -0
- package/one/things/claude/agents/qa.md +336 -0
- package/one/things/claude/agents/research-foundation-analyst.md +307 -0
- package/one/things/claude/agents/research-intelligence-gatherer.md +408 -0
- package/one/things/claude/agents/research-market-analyst.md +307 -0
- package/one/things/claude/agents/research-team-manager.md +482 -0
- package/one/things/claude/agents/sales-environment-optimizer.md +494 -0
- package/one/things/claude/agents/sales-team-manager.md +400 -0
- package/one/things/claude/agents/sales-upsell-strategist.md +307 -0
- package/one/things/claude/agents/service-advocacy-campaigns.md +307 -0
- package/one/things/claude/agents/service-advocacy-manager.md +307 -0
- package/one/things/claude/agents/service-success-manager.md +307 -0
- package/one/things/claude/agents/service-team-manager.md +400 -0
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +2302 -0
- package/one/things/claude/agents/share-optimization-specialist.md +551 -0
- package/one/things/claude/agents/sm.md +327 -0
- package/one/things/claude/agents/story-teller.md +473 -0
- package/one/things/claude/agents/task-master.md +596 -0
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +1827 -0
- package/one/things/claude/agents/tester.md +556 -0
- package/one/things/claude/agents/the-bull-character-manager.md +580 -0
- package/one/things/claude/agents/tools-playbook-generator.md +489 -0
- package/one/things/claude/agents/turbo-repo-builder.md +316 -0
- package/one/things/claude/agents/upsell-strategist.md +480 -0
- package/one/things/claude/agents/ux-expert.md +335 -0
- package/one/things/claude/agents/viral-growth-orchestrator.md +497 -0
- package/one/things/claude/claude-code-hooks-development.json +21 -0
- package/one/things/claude/claude-code-hooks-production.json +21 -0
- package/one/things/claude/claude-code-hooks.json +25 -0
- package/one/things/claude/commands/agent.md +104 -0
- package/one/things/claude/commands/cascade-status.md +128 -0
- package/one/things/claude/commands/ingest.md +290 -0
- package/one/things/claude/commands/ingestor.md +136 -0
- package/one/things/claude/commands/mission.md +83 -0
- package/one/things/claude/commands/npx.md +133 -0
- package/one/things/claude/commands/one.md +440 -0
- package/one/things/claude/commands/quality-check.md +204 -0
- package/one/things/claude/commands/smart-route.md +220 -0
- package/one/things/claude/commands/start.md +121 -0
- package/one/things/claude/commands/story.md +83 -0
- package/one/things/claude/commands/task.md +173 -0
- package/one/things/claude/hook-bypass.json +32 -0
- package/one/things/claude/hooks/agent-hook-config.json +427 -0
- package/one/things/claude/hooks/agent-hook-manager.js +525 -0
- package/one/things/claude/hooks/agent-load-balancer.js +271 -0
- package/one/things/claude/hooks/agent-request-interceptor.js +70 -0
- package/one/things/claude/hooks/build-hook.sh +156 -0
- package/one/things/claude/hooks/cascade-feedback.js +297 -0
- package/one/things/claude/hooks/cascade-integration-hooks.js +648 -0
- package/one/things/claude/hooks/cleanup-hook.sh +201 -0
- package/one/things/claude/hooks/continuous-improvement-monitor.js +510 -0
- package/one/things/claude/hooks/file-organization-engine.js +427 -0
- package/one/things/claude/hooks/file-organization-hook.sh +80 -0
- package/one/things/claude/hooks/file-organization-monitor.js +269 -0
- package/one/things/claude/hooks/format-hook.sh +43 -0
- package/one/things/claude/hooks/hook-bypass.sh +293 -0
- package/one/things/claude/hooks/hook-config-manager.js +202 -0
- package/one/things/claude/hooks/hook-debouncer.sh +62 -0
- package/one/things/claude/hooks/hook-logger.sh +89 -0
- package/one/things/claude/hooks/hook-orchestrator.js +662 -0
- package/one/things/claude/hooks/hook-performance-report.js +120 -0
- package/one/things/claude/hooks/lint-hook.sh +140 -0
- package/one/things/claude/hooks/mcp-cascade-integration.js +816 -0
- package/one/things/claude/hooks/memory-optimizer.js +510 -0
- package/one/things/claude/hooks/notification-hook.sh +204 -0
- package/one/things/claude/hooks/ontology-compliance.js +394 -0
- package/one/things/claude/hooks/ontology-hook-manager.js +316 -0
- package/one/things/claude/hooks/ontology-validation-engine.js +317 -0
- package/one/things/claude/hooks/ontology-validation-hook.sh +86 -0
- package/one/things/claude/hooks/performance-metrics.json +25 -0
- package/one/things/claude/hooks/performance-monitoring-hook.js +422 -0
- package/one/things/claude/hooks/quality-scoring-engine.js +834 -0
- package/one/things/claude/hooks/security-hook.sh +256 -0
- package/one/things/claude/hooks/simple-load-balancer.js +238 -0
- package/one/things/claude/hooks/startup-optimizer.js +625 -0
- package/one/things/claude/hooks/story-scoring-system.js +445 -0
- package/one/things/claude/hooks/story-validation-engine.js +473 -0
- package/one/things/claude/hooks/story-validation-hook-enhanced.sh +210 -0
- package/one/things/claude/hooks/story-validation-hook.sh +145 -0
- package/one/things/claude/hooks/structure-synchronizer.js +194 -0
- package/one/things/claude/hooks/sub-agent-output-validator.js +647 -0
- package/one/things/claude/hooks/sub-agent-validation-hook.js +343 -0
- package/one/things/claude/hooks/test-hook.sh +145 -0
- package/one/things/claude/hooks/test-story-validation.sh +170 -0
- package/one/things/claude/hooks/trinity-validation-system.js +392 -0
- package/one/things/claude/settings-local.json +86 -0
- package/one/things/cli/cli-code.md +652 -0
- package/one/things/cli/cli-compiler-code.md +652 -0
- package/one/things/cli/cli.md +1068 -0
- package/one/things/components/card-shadcn.md +929 -0
- package/one/things/components/card.md +1050 -0
- package/one/things/components.md +1669 -0
- package/one/things/componets.md +4 -0
- package/one/things/creator-diagram.md +166 -0
- package/one/things/examples/children/lemonade-stand.md +366 -0
- package/one/things/examples/enterprise/crm-saas.md +1429 -0
- package/one/things/features/1-1-agent-prompts/design.md +470 -0
- package/one/things/features/1-1-agent-prompts/tests.md +264 -0
- package/one/things/features/1-1-agent-prompts.md +486 -0
- package/one/things/features/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/features/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/features/1-2-yaml-orchestrator.md +516 -0
- package/one/things/features/1-3-event-coordination/design.md +544 -0
- package/one/things/features/1-3-event-coordination/tests.md +223 -0
- package/one/things/features/1-3-event-coordination.md +508 -0
- package/one/things/features/1-4-knowledge-management/design.md +609 -0
- package/one/things/features/1-4-knowledge-management/tests.md +195 -0
- package/one/things/features/1-4-knowledge-management.md +577 -0
- package/one/things/features/1-5-quality-loops/design.md +797 -0
- package/one/things/features/1-5-quality-loops/tests.md +212 -0
- package/one/things/features/1-5-quality-loops.md +641 -0
- package/one/things/features/1-6-numbering-structure/design.md +610 -0
- package/one/things/features/1-6-numbering-structure/tests.md +213 -0
- package/one/things/features/1-6-numbering-structure.md +575 -0
- package/one/things/features/2-1-dataprovider-interface.md +2358 -0
- package/one/things/features/2-2-config-system.md +3075 -0
- package/one/things/features/2-3-effectts-services.md +1498 -0
- package/one/things/features/2-4-react-hooks.md +2120 -0
- package/one/things/features/2-5-auth-migration.md +2046 -0
- package/one/things/features/2-6-dashboard-migration.md +1985 -0
- package/one/things/features/2-7-alternative-providers.md +2505 -0
- package/one/things/features/2-7-implementation-report.md +680 -0
- package/one/things/features/2-cli.md +1235 -0
- package/one/things/features/2-design.md +1738 -0
- package/one/things/features/2-tests.md +520 -0
- package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +521 -0
- package/one/things/features/DECOUPLING.md +272 -0
- package/one/things/features/DEPLOYMENT.md +452 -0
- package/one/things/features/IMPLEMENTATION_SUMMARY.md +316 -0
- package/one/things/features/dataprovider-interface/1-tests.md +1522 -0
- package/one/things/features/improve.md +843 -0
- package/one/things/features/remove-convex-deps.md +45 -0
- package/one/things/features/top-features.md +79 -0
- package/one/things/features/use-one-backend.md +1180 -0
- package/one/things/ideas/1-create-workflow.md +189 -0
- package/one/things/ideas/2-backend-agnostic-frontend.md +384 -0
- package/one/things/plans/1-create-workflow-status.md +555 -0
- package/one/things/plans/1-create-workflow.md +713 -0
- package/one/things/plans/2-backend-agnostic-frontend.md +543 -0
- package/one/things/plans/3-groups.md +502 -0
- package/one/things/plans/app.md +761 -0
- package/one/things/plans/backend-agnostic-frontend.md +323 -0
- package/one/things/plans/better-auth-any-backend-revised.md +1065 -0
- package/one/things/plans/better-auth-any-backend.md +1852 -0
- package/one/things/plans/better-auth-available-features.md +235 -0
- package/one/things/plans/big-plan.md +38 -0
- package/one/things/plans/convex-better-auth.md +1109 -0
- package/one/things/plans/convex-on-off.md +389 -0
- package/one/things/plans/deploy-to-cloudflare.md +581 -0
- package/one/things/plans/desktop.md +1121 -0
- package/one/things/plans/effect-components.md +1669 -0
- package/one/things/plans/effect.md +973 -0
- package/one/things/plans/email.md +953 -0
- package/one/things/plans/enhance-auth.md +1669 -0
- package/one/things/plans/install-components.md +198 -0
- package/one/things/plans/landing.md +728 -0
- package/one/things/plans/layout.md +205 -0
- package/one/things/plans/mail-backend.md +1308 -0
- package/one/things/plans/mail.md +2624 -0
- package/one/things/plans/next-features.md +83 -0
- package/one/things/plans/one.md +658 -0
- package/one/things/plans/ontology-6-dimensions.md +2216 -0
- package/one/things/plans/ontology-driven-strategy.md +866 -0
- package/one/things/plans/ontology-ui-approach.md +357 -0
- package/one/things/plans/open-agent.md +785 -0
- package/one/things/plans/organizations-to-groups.md +705 -0
- package/one/things/plans/performace.md +90 -0
- package/one/things/plans/release.md +432 -0
- package/one/things/plans/releases.md +809 -0
- package/one/things/plans/repos.md +76 -0
- package/one/things/plans/separate-copy-2.md +1293 -0
- package/one/things/plans/separate-copy-3.md +2458 -0
- package/one/things/plans/separate-copy.md +1293 -0
- package/one/things/plans/separate.md +1983 -0
- package/one/things/plans/shadcn-integration-summary.md +450 -0
- package/one/things/plans/sidebar.md +172 -0
- package/one/things/plans/small-fixes.md +5 -0
- package/one/things/plans/test-backend-connection.md +476 -0
- package/one/things/plans/workflow-files.md +1196 -0
- package/one/things/plans/workflow.md +1372 -0
- package/one/things/products/cascade-landing-page.md +737 -0
- package/one/things/products/cascade.md +1518 -0
- package/one/things/products/context-engineering.md +1427 -0
- package/one/things/products/onthology.md +0 -0
- package/one/things/products/ontology-ui-shadcn.md +1280 -0
- package/one/things/products/ontology-ui.md +1387 -0
- package/one/things/products/ontology.md +717 -0
- package/one/things/products/sdk.md +557 -0
- package/one/things/promptkit.md +903 -0
- package/one/things/service-providers-new.md +982 -0
- package/one/things/service-providers.md +1092 -0
- package/one/things/system.md +600 -0
- package/one/things/tests/2-1-dataprovider-interface.md +1144 -0
- package/one/things/tests/2-1-test-analysis.md +496 -0
- package/one/things/things.md +349 -0
- package/one/things/todo.md +1248 -0
- package/one/things/vision/elegant-interface.md +214 -0
- package/package.json +5 -2
|
@@ -0,0 +1,647 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Sub-Agent Output Validation System
|
|
5
|
+
* Implements agent-specific validation with R.O.C.K.E.T. framework integration
|
|
6
|
+
* Validates outputs from Claude Code sub-agents based on agent type and specialization
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import fs from 'fs';
|
|
10
|
+
import path from 'path';
|
|
11
|
+
|
|
12
|
+
// Agent-specific validation configurations
|
|
13
|
+
const AGENT_CONFIGS = {
|
|
14
|
+
// Marketing Team Agents
|
|
15
|
+
'marketing-director': {
|
|
16
|
+
framework: 'strategic-marketing',
|
|
17
|
+
requiredElements: ['strategy', 'objectives', 'metrics'],
|
|
18
|
+
qualityGate: 7.5,
|
|
19
|
+
validationRules: {
|
|
20
|
+
strategyDepth: { weight: 0.3, threshold: 0.7 },
|
|
21
|
+
objectiveClarity: { weight: 0.25, threshold: 0.8 },
|
|
22
|
+
metricsAlignment: { weight: 0.25, threshold: 0.7 },
|
|
23
|
+
irishPersonality: { weight: 0.2, threshold: 0.6 }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
'marketing-content-hooks': {
|
|
27
|
+
framework: 'content-quality',
|
|
28
|
+
requiredElements: ['hook', 'value-proposition', 'cta'],
|
|
29
|
+
qualityGate: 7.0,
|
|
30
|
+
validationRules: {
|
|
31
|
+
hookEffectiveness: { weight: 0.4, threshold: 0.8 },
|
|
32
|
+
valueClarity: { weight: 0.3, threshold: 0.7 },
|
|
33
|
+
ctaStrength: { weight: 0.2, threshold: 0.7 },
|
|
34
|
+
irishPersonality: { weight: 0.1, threshold: 0.6 }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
'marketing-viral-growth': {
|
|
38
|
+
framework: 'viral-mechanics',
|
|
39
|
+
requiredElements: ['k-factor', 'sharing-mechanics', 'network-effects'],
|
|
40
|
+
qualityGate: 8.0,
|
|
41
|
+
validationRules: {
|
|
42
|
+
viralPotential: { weight: 0.4, threshold: 0.8 },
|
|
43
|
+
networkAnalysis: { weight: 0.3, threshold: 0.7 },
|
|
44
|
+
sharingOptimization: { weight: 0.2, threshold: 0.7 },
|
|
45
|
+
irishPersonality: { weight: 0.1, threshold: 0.6 }
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
// Engineering Team Agents
|
|
50
|
+
'engineering-director': {
|
|
51
|
+
framework: 'technical-architecture',
|
|
52
|
+
requiredElements: ['architecture', 'implementation', 'quality-gates'],
|
|
53
|
+
qualityGate: 8.0,
|
|
54
|
+
validationRules: {
|
|
55
|
+
architecturalSoundness: { weight: 0.4, threshold: 0.8 },
|
|
56
|
+
implementationClarity: { weight: 0.3, threshold: 0.8 },
|
|
57
|
+
qualityStandards: { weight: 0.2, threshold: 0.7 },
|
|
58
|
+
irishPersonality: { weight: 0.1, threshold: 0.6 }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
'engineering-developer': {
|
|
62
|
+
framework: 'code-quality',
|
|
63
|
+
requiredElements: ['implementation', 'testing', 'documentation'],
|
|
64
|
+
qualityGate: 7.5,
|
|
65
|
+
validationRules: {
|
|
66
|
+
codeQuality: { weight: 0.4, threshold: 0.8 },
|
|
67
|
+
testCoverage: { weight: 0.3, threshold: 0.7 },
|
|
68
|
+
documentation: { weight: 0.2, threshold: 0.7 },
|
|
69
|
+
irishPersonality: { weight: 0.1, threshold: 0.6 }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
// Content Team Agents
|
|
74
|
+
'content-playbook-writer': {
|
|
75
|
+
framework: 'content-depth',
|
|
76
|
+
requiredElements: ['structure', 'actionable-content', 'examples'],
|
|
77
|
+
qualityGate: 7.5,
|
|
78
|
+
validationRules: {
|
|
79
|
+
contentDepth: { weight: 0.4, threshold: 0.8 },
|
|
80
|
+
actionability: { weight: 0.3, threshold: 0.8 },
|
|
81
|
+
exampleQuality: { weight: 0.2, threshold: 0.7 },
|
|
82
|
+
irishPersonality: { weight: 0.1, threshold: 0.6 }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
// Research Team Agents
|
|
87
|
+
'research-market-analyst': {
|
|
88
|
+
framework: 'research-rigor',
|
|
89
|
+
requiredElements: ['data-sources', 'analysis', 'insights'],
|
|
90
|
+
qualityGate: 8.0,
|
|
91
|
+
validationRules: {
|
|
92
|
+
dataQuality: { weight: 0.4, threshold: 0.8 },
|
|
93
|
+
analysisDepth: { weight: 0.3, threshold: 0.8 },
|
|
94
|
+
insightValue: { weight: 0.2, threshold: 0.7 },
|
|
95
|
+
irishPersonality: { weight: 0.1, threshold: 0.6 }
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
// Crypto Domain Agents
|
|
100
|
+
'crypto-community-analyst': {
|
|
101
|
+
framework: 'crypto-community',
|
|
102
|
+
requiredElements: ['community-metrics', 'sentiment-analysis', 'growth-patterns'],
|
|
103
|
+
qualityGate: 7.5,
|
|
104
|
+
validationRules: {
|
|
105
|
+
communityInsight: { weight: 0.4, threshold: 0.8 },
|
|
106
|
+
sentimentAccuracy: { weight: 0.3, threshold: 0.7 },
|
|
107
|
+
growthAnalysis: { weight: 0.2, threshold: 0.7 },
|
|
108
|
+
irishPersonality: { weight: 0.1, threshold: 0.6 }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// R.O.C.K.E.T. Framework Components
|
|
114
|
+
const ROCKET_FRAMEWORK = {
|
|
115
|
+
Role: {
|
|
116
|
+
weight: 0.2,
|
|
117
|
+
validators: [
|
|
118
|
+
'validateAgentIdentity',
|
|
119
|
+
'validateExpertiseAlignment',
|
|
120
|
+
'validatePersonalityIntegration'
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
Objective: {
|
|
124
|
+
weight: 0.2,
|
|
125
|
+
validators: [
|
|
126
|
+
'validateObjectiveClarity',
|
|
127
|
+
'validateGoalAlignment',
|
|
128
|
+
'validateOutcomeDefinition'
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
Context: {
|
|
132
|
+
weight: 0.15,
|
|
133
|
+
validators: [
|
|
134
|
+
'validateContextAwareness',
|
|
135
|
+
'validateInformationUsage',
|
|
136
|
+
'validateRelevance'
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
KeyInstructions: {
|
|
140
|
+
weight: 0.2,
|
|
141
|
+
validators: [
|
|
142
|
+
'validateInstructionCompliance',
|
|
143
|
+
'validateRequirementFulfillment',
|
|
144
|
+
'validateStandardsAdherence'
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
Examples: {
|
|
148
|
+
weight: 0.15,
|
|
149
|
+
validators: [
|
|
150
|
+
'validateExampleQuality',
|
|
151
|
+
'validateBenchmarking',
|
|
152
|
+
'validateBestPractices'
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
Tone: {
|
|
156
|
+
weight: 0.1,
|
|
157
|
+
validators: [
|
|
158
|
+
'validateTonalConsistency',
|
|
159
|
+
'validateProfessionalism',
|
|
160
|
+
'validateIrishPersonality'
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
class SubAgentOutputValidator {
|
|
166
|
+
constructor() {
|
|
167
|
+
this.validationResults = {
|
|
168
|
+
score: 0,
|
|
169
|
+
status: 'PENDING',
|
|
170
|
+
agentType: null,
|
|
171
|
+
rocketScore: {},
|
|
172
|
+
issues: {
|
|
173
|
+
critical: [],
|
|
174
|
+
shouldFix: [],
|
|
175
|
+
niceToHave: []
|
|
176
|
+
},
|
|
177
|
+
recommendations: []
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
async validateOutput(outputContent, agentType, context = {}) {
|
|
182
|
+
try {
|
|
183
|
+
this.validationResults.agentType = agentType;
|
|
184
|
+
|
|
185
|
+
// Get agent-specific configuration
|
|
186
|
+
const config = AGENT_CONFIGS[agentType] || this.getDefaultConfig();
|
|
187
|
+
|
|
188
|
+
// Execute R.O.C.K.E.T. framework validation
|
|
189
|
+
await this.executeRocketValidation(outputContent, config, context);
|
|
190
|
+
|
|
191
|
+
// Execute agent-specific validation
|
|
192
|
+
await this.executeAgentSpecificValidation(outputContent, config, context);
|
|
193
|
+
|
|
194
|
+
// Calculate final score and status
|
|
195
|
+
this.calculateFinalScore(config);
|
|
196
|
+
|
|
197
|
+
return this.validationResults;
|
|
198
|
+
} catch (error) {
|
|
199
|
+
return this.generateErrorResult(error);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
getDefaultConfig() {
|
|
204
|
+
return {
|
|
205
|
+
framework: 'general-quality',
|
|
206
|
+
requiredElements: ['content', 'structure', 'quality'],
|
|
207
|
+
qualityGate: 7.0,
|
|
208
|
+
validationRules: {
|
|
209
|
+
contentQuality: { weight: 0.4, threshold: 0.7 },
|
|
210
|
+
structureClarity: { weight: 0.3, threshold: 0.7 },
|
|
211
|
+
valueDelivery: { weight: 0.2, threshold: 0.6 },
|
|
212
|
+
irishPersonality: { weight: 0.1, threshold: 0.6 }
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
async executeRocketValidation(content, config, context) {
|
|
218
|
+
for (const [component, settings] of Object.entries(ROCKET_FRAMEWORK)) {
|
|
219
|
+
let componentScore = 0;
|
|
220
|
+
const componentIssues = [];
|
|
221
|
+
|
|
222
|
+
for (const validator of settings.validators) {
|
|
223
|
+
try {
|
|
224
|
+
const result = await this[validator](content, config, context);
|
|
225
|
+
componentScore += result.score;
|
|
226
|
+
if (result.issues) {
|
|
227
|
+
componentIssues.push(...result.issues);
|
|
228
|
+
}
|
|
229
|
+
} catch (error) {
|
|
230
|
+
componentIssues.push(`${validator} failed: ${error.message}`);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Average score for component
|
|
235
|
+
componentScore = componentScore / settings.validators.length;
|
|
236
|
+
this.validationResults.rocketScore[component] = {
|
|
237
|
+
score: componentScore,
|
|
238
|
+
weight: settings.weight,
|
|
239
|
+
issues: componentIssues
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// Add issues to appropriate categories
|
|
243
|
+
if (componentScore < 0.6) {
|
|
244
|
+
this.validationResults.issues.critical.push(`${component}: Below minimum quality threshold`);
|
|
245
|
+
} else if (componentScore < 0.7) {
|
|
246
|
+
this.validationResults.issues.shouldFix.push(`${component}: Could be improved`);
|
|
247
|
+
} else if (componentScore < 0.8) {
|
|
248
|
+
this.validationResults.issues.niceToHave.push(`${component}: Minor optimization opportunity`);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
async executeAgentSpecificValidation(content, config, context) {
|
|
254
|
+
// Validate required elements are present
|
|
255
|
+
const missingElements = [];
|
|
256
|
+
for (const element of config.requiredElements) {
|
|
257
|
+
if (!this.elementPresent(content, element)) {
|
|
258
|
+
missingElements.push(element);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (missingElements.length > 0) {
|
|
263
|
+
this.validationResults.issues.critical.push(`Missing required elements: ${missingElements.join(', ')}`);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// Execute agent-specific validation rules
|
|
267
|
+
for (const [rule, settings] of Object.entries(config.validationRules)) {
|
|
268
|
+
const result = await this.executeValidationRule(content, rule, settings, context);
|
|
269
|
+
if (result.score < settings.threshold) {
|
|
270
|
+
const severity = result.score < 0.5 ? 'critical' : result.score < 0.7 ? 'shouldFix' : 'niceToHave';
|
|
271
|
+
this.validationResults.issues[severity].push(`${rule}: ${result.message || 'Below threshold'}`);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
async executeValidationRule(content, rule, settings, context) {
|
|
277
|
+
// Default implementation - can be overridden for specific rules
|
|
278
|
+
const methodName = `validate${rule.charAt(0).toUpperCase() + rule.slice(1)}`;
|
|
279
|
+
|
|
280
|
+
if (typeof this[methodName] === 'function') {
|
|
281
|
+
return await this[methodName](content, settings, context);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// Fallback validation based on keywords and patterns
|
|
285
|
+
return this.fallbackValidation(content, rule, settings);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
elementPresent(content, element) {
|
|
289
|
+
const patterns = {
|
|
290
|
+
'strategy': /strategy|strategic|approach|plan/i,
|
|
291
|
+
'objectives': /objective|goal|target|aim/i,
|
|
292
|
+
'metrics': /metric|measure|kpi|analytics/i,
|
|
293
|
+
'hook': /hook|headline|attention|opening/i,
|
|
294
|
+
'value-proposition': /value|benefit|advantage|proposition/i,
|
|
295
|
+
'cta': /call.to.action|cta|click|action/i,
|
|
296
|
+
'k-factor': /k.factor|viral|coefficient|sharing/i,
|
|
297
|
+
'sharing-mechanics': /share|sharing|viral|spread/i,
|
|
298
|
+
'network-effects': /network|viral|exponential|growth/i,
|
|
299
|
+
'architecture': /architecture|design|structure|system/i,
|
|
300
|
+
'implementation': /implement|code|build|develop/i,
|
|
301
|
+
'quality-gates': /quality|standard|gate|check/i,
|
|
302
|
+
'testing': /test|testing|qa|validation/i,
|
|
303
|
+
'documentation': /document|documentation|readme|guide/i,
|
|
304
|
+
'structure': /structure|organization|layout|format/i,
|
|
305
|
+
'actionable-content': /actionable|practical|step|action/i,
|
|
306
|
+
'examples': /example|sample|case.study|demo/i,
|
|
307
|
+
'data-sources': /data|source|research|study/i,
|
|
308
|
+
'analysis': /analysis|analyze|evaluation|assessment/i,
|
|
309
|
+
'insights': /insight|finding|conclusion|recommendation/i,
|
|
310
|
+
'community-metrics': /community|member|engagement|activity/i,
|
|
311
|
+
'sentiment-analysis': /sentiment|mood|opinion|feeling/i,
|
|
312
|
+
'growth-patterns': /growth|pattern|trend|trajectory/i
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
const pattern = patterns[element] || new RegExp(element.replace(/-/g, '\\s+'), 'i');
|
|
316
|
+
return pattern.test(content);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// R.O.C.K.E.T. Framework Validators
|
|
320
|
+
async validateAgentIdentity(content, config, context) {
|
|
321
|
+
const irishNamePattern = /\b[A-Z][a-z]+\s+[A-Z]['a-zA-Z]+\b/;
|
|
322
|
+
const agentIntroPattern = /I'm\s+\w+.*specialist|expert|manager/i;
|
|
323
|
+
|
|
324
|
+
let score = 0;
|
|
325
|
+
const issues = [];
|
|
326
|
+
|
|
327
|
+
if (irishNamePattern.test(content)) score += 0.4;
|
|
328
|
+
else issues.push('Irish name not clearly present');
|
|
329
|
+
|
|
330
|
+
if (agentIntroPattern.test(content)) score += 0.4;
|
|
331
|
+
else issues.push('Agent introduction not clear');
|
|
332
|
+
|
|
333
|
+
if (/\byears?\b.*experience/i.test(content)) score += 0.2;
|
|
334
|
+
else issues.push('Experience not mentioned');
|
|
335
|
+
|
|
336
|
+
return { score, issues };
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
async validateExpertiseAlignment(content, config, context) {
|
|
340
|
+
const expertiseKeywords = this.getExpertiseKeywords(config.framework);
|
|
341
|
+
let matchCount = 0;
|
|
342
|
+
|
|
343
|
+
for (const keyword of expertiseKeywords) {
|
|
344
|
+
if (new RegExp(keyword, 'i').test(content)) {
|
|
345
|
+
matchCount++;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
const score = Math.min(1.0, matchCount / expertiseKeywords.length * 1.5);
|
|
350
|
+
const issues = score < 0.7 ? ['Expertise alignment could be stronger'] : [];
|
|
351
|
+
|
|
352
|
+
return { score, issues };
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
async validatePersonalityIntegration(content, config, context) {
|
|
356
|
+
const irishElements = [
|
|
357
|
+
/\b(sláinte|céad míle fáilte|craic|grand|fair play)\b/i,
|
|
358
|
+
/\b[A-Z]['O][A-Z][a-z]+\b/, // Irish surnames
|
|
359
|
+
/\"[^"]*\"/ // Irish sayings in quotes
|
|
360
|
+
];
|
|
361
|
+
|
|
362
|
+
let score = 0;
|
|
363
|
+
const issues = [];
|
|
364
|
+
|
|
365
|
+
// Check for Irish cultural elements
|
|
366
|
+
const irishMatches = irishElements.filter(pattern => pattern.test(content)).length;
|
|
367
|
+
score += Math.min(0.5, irishMatches * 0.2);
|
|
368
|
+
|
|
369
|
+
// Check for professional balance
|
|
370
|
+
if (/professional|expertise|experience/i.test(content)) {
|
|
371
|
+
score += 0.3;
|
|
372
|
+
} else {
|
|
373
|
+
issues.push('Professional credibility needs emphasis');
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// Check for warmth and approachability
|
|
377
|
+
if (/ready|help|guide|support/i.test(content)) {
|
|
378
|
+
score += 0.2;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
return { score, issues };
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
async validateObjectiveClarity(content, config, context) {
|
|
385
|
+
const objectivePatterns = [
|
|
386
|
+
/objective|goal|aim|purpose/i,
|
|
387
|
+
/achieve|accomplish|deliver|create/i,
|
|
388
|
+
/outcome|result|success|impact/i
|
|
389
|
+
];
|
|
390
|
+
|
|
391
|
+
const matches = objectivePatterns.filter(pattern => pattern.test(content)).length;
|
|
392
|
+
const score = Math.min(1.0, matches / objectivePatterns.length * 1.2);
|
|
393
|
+
|
|
394
|
+
const issues = score < 0.7 ? ['Objective clarity needs improvement'] : [];
|
|
395
|
+
return { score, issues };
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
async validateGoalAlignment(content, config, context) {
|
|
399
|
+
// Check if content aligns with stated goals
|
|
400
|
+
const score = 0.8; // Default high score - override in specific implementations
|
|
401
|
+
return { score, issues: [] };
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
async validateOutcomeDefinition(content, config, context) {
|
|
405
|
+
const outcomePatterns = [
|
|
406
|
+
/measure|metric|kpi/i,
|
|
407
|
+
/success|achievement|completion/i,
|
|
408
|
+
/deliverable|output|result/i
|
|
409
|
+
];
|
|
410
|
+
|
|
411
|
+
const matches = outcomePatterns.filter(pattern => pattern.test(content)).length;
|
|
412
|
+
const score = Math.min(1.0, matches / outcomePatterns.length);
|
|
413
|
+
|
|
414
|
+
return { score, issues: [] };
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
async validateContextAwareness(content, config, context) {
|
|
418
|
+
// Check if content shows awareness of provided context
|
|
419
|
+
const contextElements = Object.keys(context).length;
|
|
420
|
+
const score = contextElements > 0 ? 0.8 : 0.6;
|
|
421
|
+
|
|
422
|
+
return { score, issues: contextElements === 0 ? ['Limited context utilization'] : [] };
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
async validateInformationUsage(content, config, context) {
|
|
426
|
+
// Check if available information is properly utilized
|
|
427
|
+
const score = 0.7; // Default score
|
|
428
|
+
return { score, issues: [] };
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
async validateRelevance(content, config, context) {
|
|
432
|
+
// Check content relevance to the task
|
|
433
|
+
const score = 0.8; // Default high relevance
|
|
434
|
+
return { score, issues: [] };
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
async validateInstructionCompliance(content, config, context) {
|
|
438
|
+
// Check compliance with key instructions
|
|
439
|
+
const complianceScore = this.checkInstructionCompliance(content, config);
|
|
440
|
+
return { score: complianceScore, issues: complianceScore < 0.7 ? ['Instruction compliance needs improvement'] : [] };
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
async validateRequirementFulfillment(content, config, context) {
|
|
444
|
+
const fulfilledElements = config.requiredElements.filter(element =>
|
|
445
|
+
this.elementPresent(content, element)
|
|
446
|
+
).length;
|
|
447
|
+
|
|
448
|
+
const score = fulfilledElements / config.requiredElements.length;
|
|
449
|
+
const issues = score < 0.8 ? ['Some requirements not fully addressed'] : [];
|
|
450
|
+
|
|
451
|
+
return { score, issues };
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
async validateStandardsAdherence(content, config, context) {
|
|
455
|
+
// Check adherence to quality standards
|
|
456
|
+
const score = 0.75; // Default score
|
|
457
|
+
return { score, issues: [] };
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
async validateExampleQuality(content, config, context) {
|
|
461
|
+
const examplePatterns = [
|
|
462
|
+
/example|for instance|such as/i,
|
|
463
|
+
/case study|use case|scenario/i,
|
|
464
|
+
/demo|demonstration|illustration/i
|
|
465
|
+
];
|
|
466
|
+
|
|
467
|
+
const matches = examplePatterns.filter(pattern => pattern.test(content)).length;
|
|
468
|
+
const score = Math.min(1.0, matches * 0.3);
|
|
469
|
+
|
|
470
|
+
return { score, issues: score < 0.5 ? ['More examples would improve clarity'] : [] };
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
async validateBenchmarking(content, config, context) {
|
|
474
|
+
// Check for benchmarking against best practices
|
|
475
|
+
const score = /best practice|benchmark|standard|industry/i.test(content) ? 0.8 : 0.5;
|
|
476
|
+
return { score, issues: [] };
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
async validateBestPractices(content, config, context) {
|
|
480
|
+
// Validate incorporation of best practices
|
|
481
|
+
const score = 0.7; // Default score
|
|
482
|
+
return { score, issues: [] };
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
async validateTonalConsistency(content, config, context) {
|
|
486
|
+
// Check consistency of tone throughout content
|
|
487
|
+
const score = 0.8; // Default high consistency
|
|
488
|
+
return { score, issues: [] };
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
async validateProfessionalism(content, config, context) {
|
|
492
|
+
const professionalElements = [
|
|
493
|
+
/expertise|experience|professional/i,
|
|
494
|
+
/strategy|approach|methodology/i,
|
|
495
|
+
/quality|excellence|standard/i
|
|
496
|
+
];
|
|
497
|
+
|
|
498
|
+
const matches = professionalElements.filter(pattern => pattern.test(content)).length;
|
|
499
|
+
const score = Math.min(1.0, matches / professionalElements.length);
|
|
500
|
+
|
|
501
|
+
return { score, issues: score < 0.7 ? ['Professional tone could be enhanced'] : [] };
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
async validateIrishPersonality(content, config, context) {
|
|
505
|
+
// Check for appropriate Irish personality integration
|
|
506
|
+
const irishElementsScore = await this.validatePersonalityIntegration(content, config, context);
|
|
507
|
+
return irishElementsScore;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
getExpertiseKeywords(framework) {
|
|
511
|
+
const keywordMap = {
|
|
512
|
+
'strategic-marketing': ['strategy', 'marketing', 'brand', 'campaign', 'growth', 'metrics'],
|
|
513
|
+
'content-quality': ['content', 'engagement', 'hooks', 'value', 'conversion', 'audience'],
|
|
514
|
+
'viral-mechanics': ['viral', 'k-factor', 'sharing', 'network', 'exponential', 'growth'],
|
|
515
|
+
'technical-architecture': ['architecture', 'system', 'design', 'scalability', 'performance'],
|
|
516
|
+
'code-quality': ['code', 'development', 'testing', 'standards', 'best practices'],
|
|
517
|
+
'content-depth': ['content', 'structure', 'actionable', 'comprehensive', 'value'],
|
|
518
|
+
'research-rigor': ['research', 'data', 'analysis', 'insights', 'methodology'],
|
|
519
|
+
'crypto-community': ['community', 'crypto', 'blockchain', 'sentiment', 'engagement']
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
return keywordMap[framework] || ['quality', 'expertise', 'professional', 'excellence'];
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
checkInstructionCompliance(content, config) {
|
|
526
|
+
// Basic compliance check - can be enhanced for specific instructions
|
|
527
|
+
const hasStructure = /##|###|\*\*/.test(content);
|
|
528
|
+
const hasContent = content.length > 100;
|
|
529
|
+
const hasConclusion = /ready|available|help|support/i.test(content);
|
|
530
|
+
|
|
531
|
+
let score = 0;
|
|
532
|
+
if (hasStructure) score += 0.4;
|
|
533
|
+
if (hasContent) score += 0.4;
|
|
534
|
+
if (hasConclusion) score += 0.2;
|
|
535
|
+
|
|
536
|
+
return score;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
fallbackValidation(content, rule, settings) {
|
|
540
|
+
// Fallback validation for unimplemented specific rules
|
|
541
|
+
const score = content.length > 50 ? 0.6 : 0.3;
|
|
542
|
+
return {
|
|
543
|
+
score,
|
|
544
|
+
message: `${rule} validation needs specific implementation`
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
calculateFinalScore(config) {
|
|
549
|
+
let totalScore = 0;
|
|
550
|
+
let totalWeight = 0;
|
|
551
|
+
|
|
552
|
+
// Calculate weighted R.O.C.K.E.T. score
|
|
553
|
+
for (const [component, result] of Object.entries(this.validationResults.rocketScore)) {
|
|
554
|
+
totalScore += result.score * result.weight;
|
|
555
|
+
totalWeight += result.weight;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// Normalize to 10-point scale
|
|
559
|
+
const finalScore = (totalScore / totalWeight) * 10;
|
|
560
|
+
|
|
561
|
+
this.validationResults.score = Math.min(10, Math.max(0, finalScore));
|
|
562
|
+
this.validationResults.status = this.validationResults.score >= config.qualityGate ? 'PASS' : 'FAIL';
|
|
563
|
+
|
|
564
|
+
// Generate recommendations
|
|
565
|
+
this.generateRecommendations(config);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
generateRecommendations(config) {
|
|
569
|
+
const recommendations = [];
|
|
570
|
+
|
|
571
|
+
if (this.validationResults.score < config.qualityGate) {
|
|
572
|
+
recommendations.push(`Score ${this.validationResults.score.toFixed(1)} is below quality gate ${config.qualityGate}`);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// Add component-specific recommendations
|
|
576
|
+
for (const [component, result] of Object.entries(this.validationResults.rocketScore)) {
|
|
577
|
+
if (result.score < 0.7) {
|
|
578
|
+
recommendations.push(`Improve ${component}: ${result.issues.join(', ')}`);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
this.validationResults.recommendations = recommendations;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
generateErrorResult(error) {
|
|
586
|
+
return {
|
|
587
|
+
score: 0,
|
|
588
|
+
status: 'ERROR',
|
|
589
|
+
agentType: null,
|
|
590
|
+
error: error.message,
|
|
591
|
+
issues: {
|
|
592
|
+
critical: [error.message],
|
|
593
|
+
shouldFix: [],
|
|
594
|
+
niceToHave: []
|
|
595
|
+
},
|
|
596
|
+
recommendations: ['Fix validation error and retry']
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// Main execution for CLI usage
|
|
602
|
+
async function main() {
|
|
603
|
+
const outputContent = process.argv[2];
|
|
604
|
+
const agentType = process.argv[3];
|
|
605
|
+
const contextStr = process.argv[4] || '{}';
|
|
606
|
+
|
|
607
|
+
if (!outputContent || !agentType) {
|
|
608
|
+
console.error('Usage: sub-agent-output-validator.js <output_content> <agent_type> [context_json]');
|
|
609
|
+
process.exit(1);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
try {
|
|
613
|
+
const context = JSON.parse(contextStr);
|
|
614
|
+
const validator = new SubAgentOutputValidator();
|
|
615
|
+
const result = await validator.validateOutput(outputContent, agentType, context);
|
|
616
|
+
|
|
617
|
+
// Output results
|
|
618
|
+
console.log(`SCORE: ${result.score.toFixed(1)}`);
|
|
619
|
+
console.log(`STATUS: ${result.status}`);
|
|
620
|
+
console.log(`AGENT_TYPE: ${result.agentType}`);
|
|
621
|
+
|
|
622
|
+
if (result.issues.critical.length > 0) {
|
|
623
|
+
console.log(`CRITICAL: ${result.issues.critical.join('; ')}`);
|
|
624
|
+
}
|
|
625
|
+
if (result.issues.shouldFix.length > 0) {
|
|
626
|
+
console.log(`SHOULD_FIX: ${result.issues.shouldFix.join('; ')}`);
|
|
627
|
+
}
|
|
628
|
+
if (result.recommendations.length > 0) {
|
|
629
|
+
console.log(`RECOMMENDATIONS: ${result.recommendations.join('; ')}`);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
process.exit(result.status === 'PASS' ? 0 : 1);
|
|
633
|
+
} catch (error) {
|
|
634
|
+
console.error('VALIDATION_ERROR:', error.message);
|
|
635
|
+
process.exit(1);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// Check if this is the main module
|
|
640
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
641
|
+
main().catch(error => {
|
|
642
|
+
console.error('FATAL_ERROR:', error.message);
|
|
643
|
+
process.exit(1);
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export default SubAgentOutputValidator;
|