oneie 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +245 -0
- package/CLAUDE.md +534 -0
- package/README.md +61 -4
- package/one/.obsidian/app.json +1 -0
- package/one/.obsidian/appearance.json +1 -0
- package/one/.obsidian/core-plugins.json +33 -0
- package/one/.obsidian/workspace.json +211 -0
- package/one/connections/a2a.md +551 -0
- package/one/connections/acp.md +761 -0
- package/one/connections/acps.md +731 -0
- package/one/connections/agui.md +767 -0
- package/one/connections/any-backend.md +1702 -0
- package/one/connections/ap2.md +998 -0
- package/one/connections/api-docs.md +1891 -0
- package/one/connections/api.md +2190 -0
- package/one/connections/architecture-diagram.md +94 -0
- package/one/connections/communications.md +449 -0
- package/one/connections/connections.md +339 -0
- package/one/connections/cryptonetworks.md +781 -0
- package/one/connections/documentation.md +1120 -0
- package/one/connections/effect.md +279 -0
- package/one/connections/elizaos.md +1290 -0
- package/one/connections/inference.md +58 -0
- package/one/connections/kyc.md +632 -0
- package/one/connections/mcp.md +842 -0
- package/one/connections/membership.md +1152 -0
- package/one/connections/middleware.md +1067 -0
- package/one/connections/multitenant.md +1341 -0
- package/one/connections/n8n.md +1015 -0
- package/one/connections/patterns.md +89 -0
- package/one/connections/protocols.md +279 -0
- package/one/connections/relationships.md +107 -0
- package/one/connections/schema.md +587 -0
- package/one/connections/service-layer.md +550 -0
- package/one/connections/structure.md +0 -0
- package/one/connections/vectors.md +207 -0
- package/one/connections/wordpress.md +1302 -0
- package/one/connections/workflow-copy.md +905 -0
- package/one/connections/workflow-examples.md +741 -0
- package/one/connections/workflow.md +905 -0
- package/one/connections/workflows/delegation.md +885 -0
- package/one/connections/workflows/frontend.md +1037 -0
- package/one/connections/workflows/strategy.md +903 -0
- package/one/connections/workflows/tasks.md +698 -0
- package/one/connections/x402.md +1249 -0
- package/one/events/events.md +545 -0
- package/one/knowledge/ai-platform.md +305 -0
- package/one/knowledge/architecture-diagram.md +94 -0
- package/one/knowledge/architecture-frontend.md +930 -0
- package/one/knowledge/architecture.md +2077 -0
- package/one/knowledge/crypto.md +960 -0
- package/one/knowledge/dsl.md +1660 -0
- package/one/knowledge/files.md +2471 -0
- package/one/knowledge/frontend.md +1038 -0
- package/one/knowledge/hono.md +2109 -0
- package/one/knowledge/implementation-examples.md +2536 -0
- package/one/knowledge/inference-score.md +159 -0
- package/one/knowledge/knowledge.md +642 -0
- package/one/knowledge/language.md +980 -0
- package/one/knowledge/lessons-learned.md +70 -0
- package/one/knowledge/ontology-6-dimensions.md +0 -0
- package/one/knowledge/ontology-documentation.md +356 -0
- package/one/knowledge/ontology-engineering-specification.md +1292 -0
- package/one/knowledge/ontology-engineering.md +1652 -0
- package/one/knowledge/ontology-frontend-copy-2.md +1492 -0
- package/one/knowledge/ontology-frontend-copy.md +753 -0
- package/one/knowledge/ontology-frontend-specifications.md +2188 -0
- package/one/knowledge/ontology-frontend.md +2427 -0
- package/one/knowledge/ontology-minimal.yaml +299 -0
- package/one/knowledge/ontology.md +2819 -0
- package/one/knowledge/ontology.yaml +1165 -0
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +100 -0
- package/one/knowledge/patterns/backend/convex-query-pattern.md +88 -0
- package/one/knowledge/patterns/backend/mutation-template.md +231 -0
- package/one/knowledge/patterns/backend/query-template.md +267 -0
- package/one/knowledge/patterns/backend/service-template.md +237 -0
- package/one/knowledge/patterns/design/component-architecture.md +399 -0
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +162 -0
- package/one/knowledge/patterns/design/wireframe-template.md +216 -0
- package/one/knowledge/patterns/frontend/component-template.md +195 -0
- package/one/knowledge/patterns/frontend/form-template.md +276 -0
- package/one/knowledge/patterns/frontend/page-template.md +178 -0
- package/one/knowledge/patterns/frontend/react-component-pattern.md +128 -0
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +378 -0
- package/one/knowledge/patterns/test/technical-test-template.md +544 -0
- package/one/knowledge/patterns/test/test-driven-pattern.md +140 -0
- package/one/knowledge/patterns/test/user-flow-template.md +254 -0
- package/one/knowledge/quality-loop.md +401 -0
- package/one/knowledge/readme.md +131 -0
- package/one/knowledge/rules.md +626 -0
- package/one/knowledge/score.md +67 -0
- package/one/knowledge/specifications.md +855 -0
- package/one/knowledge/tags.md +130 -0
- package/one/organisation/one.md +599 -0
- package/one/organisation/organisation.md +438 -0
- package/one/organisation/revenue.md +673 -0
- package/one/organisation/strategy.md +869 -0
- package/one/organisation/vision.md +98 -0
- package/one/people/anthony-o-connell.md +440 -0
- package/one/people/people.md +567 -0
- package/one/repomix-output.md +92634 -0
- package/one/things/agentkit.md +349 -0
- package/one/things/agents/agent-backend.md +1401 -0
- package/one/things/agents/agent-builder.md +955 -0
- package/one/things/agents/agent-clean.md +709 -0
- package/one/things/agents/agent-clone.md +1341 -0
- package/one/things/agents/agent-designer.md +2177 -0
- package/one/things/agents/agent-director.md +1508 -0
- package/one/things/agents/agent-documenter.md +1049 -0
- package/one/things/agents/agent-frontend.md +1119 -0
- package/one/things/agents/agent-integrator.md +1192 -0
- package/one/things/agents/agent-problem-solver.md +1379 -0
- package/one/things/agents/agent-quality.md +1353 -0
- package/one/things/agents/agent-sales.md +986 -0
- package/one/things/cascade/cascade.yaml +464 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +470 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +264 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +486 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +516 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +544 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +223 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +508 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +609 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +195 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +577 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +797 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +212 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +641 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +610 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +213 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +575 -0
- package/one/things/cascade/docs/examples/readme.md +222 -0
- package/one/things/cascade/docs/getting-started.md +515 -0
- package/one/things/cascade/docs/workflow.md +1372 -0
- package/one/things/cascade/readme.md +336 -0
- package/one/things/cascade/templates/feature-template.md +267 -0
- package/one/things/claude/agents/advocacy-activation-manager.md +685 -0
- package/one/things/claude/agents/advocacy-campaign-designer.md +663 -0
- package/one/things/claude/agents/analyst.md +483 -0
- package/one/things/claude/agents/architect.md +480 -0
- package/one/things/claude/agents/brand-identity-specialist.md +513 -0
- package/one/things/claude/agents/bstp-token-strategist.md +667 -0
- package/one/things/claude/agents/builder-repo.md +489 -0
- package/one/things/claude/agents/bullstamp-community-builder.md +574 -0
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +506 -0
- package/one/things/claude/agents/bulltilt-platform-growth.md +567 -0
- package/one/things/claude/agents/company-bullstamp-character.md +587 -0
- package/one/things/claude/agents/company-bullstamp-community.md +292 -0
- package/one/things/claude/agents/company-bullstamp-marketing.md +292 -0
- package/one/things/claude/agents/company-bullstamp-token.md +292 -0
- package/one/things/claude/agents/company-bulltilt-growth.md +292 -0
- package/one/things/claude/agents/content-bibliography-formatter.md +381 -0
- package/one/things/claude/agents/content-calendar-planner.md +448 -0
- package/one/things/claude/agents/content-chapter-formatter.md +488 -0
- package/one/things/claude/agents/content-formatter.md +546 -0
- package/one/things/claude/agents/content-hook-specialist.md +462 -0
- package/one/things/claude/agents/content-image-formatter.md +535 -0
- package/one/things/claude/agents/content-introduction-formatter.md +485 -0
- package/one/things/claude/agents/content-multiplication-engine.md +556 -0
- package/one/things/claude/agents/content-playbook-writer.md +448 -0
- package/one/things/claude/agents/content-team-manager.md +622 -0
- package/one/things/claude/agents/content-toc-formatter.md +522 -0
- package/one/things/claude/agents/convex-backend-specialist.md +2561 -0
- package/one/things/claude/agents/core-manager.md +582 -0
- package/one/things/claude/agents/core-master.md +403 -0
- package/one/things/claude/agents/cross-functional-manager.md +471 -0
- package/one/things/claude/agents/crypto-airdrop-strategist.md +602 -0
- package/one/things/claude/agents/crypto-analytics-educator.md +553 -0
- package/one/things/claude/agents/crypto-architecture-specialist.md +466 -0
- package/one/things/claude/agents/crypto-community-analyst.md +298 -0
- package/one/things/claude/agents/crypto-community-psychologist.md +509 -0
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +538 -0
- package/one/things/claude/agents/crypto-dex-optimizer.md +292 -0
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +513 -0
- package/one/things/claude/agents/crypto-diamond-hands.md +292 -0
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +554 -0
- package/one/things/claude/agents/crypto-engagement-specialist.md +540 -0
- package/one/things/claude/agents/crypto-market-researcher.md +292 -0
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +523 -0
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +569 -0
- package/one/things/claude/agents/crypto-optimization-analyst.md +554 -0
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +517 -0
- package/one/things/claude/agents/crypto-team-manager.md +387 -0
- package/one/things/claude/agents/crypto-token-analyst.md +278 -0
- package/one/things/claude/agents/crypto-viral-content-creator.md +546 -0
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +517 -0
- package/one/things/claude/agents/crypto-wallet-identifier.md +292 -0
- package/one/things/claude/agents/customer-journey-designer.md +481 -0
- package/one/things/claude/agents/customer-success-manager.md +581 -0
- package/one/things/claude/agents/dev.md +413 -0
- package/one/things/claude/agents/documenter.md +546 -0
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +410 -0
- package/one/things/claude/agents/engagement-specialist.md +509 -0
- package/one/things/claude/agents/engineering-architect.md +387 -0
- package/one/things/claude/agents/engineering-business-analyst.md +537 -0
- package/one/things/claude/agents/engineering-developer.md +387 -0
- package/one/things/claude/agents/engineering-director.md +282 -0
- package/one/things/claude/agents/engineering-ingestor.md +649 -0
- package/one/things/claude/agents/engineering-product-manager.md +537 -0
- package/one/things/claude/agents/engineering-product-owner.md +537 -0
- package/one/things/claude/agents/engineering-project-coordinator.md +537 -0
- package/one/things/claude/agents/engineering-quality-assurance.md +393 -0
- package/one/things/claude/agents/engineering-team-manager.md +512 -0
- package/one/things/claude/agents/engineering-user-experience.md +387 -0
- package/one/things/claude/agents/framework-elevate-manager.md +294 -0
- package/one/things/claude/agents/improver.md +763 -0
- package/one/things/claude/agents/intelligence-team-manager.md +385 -0
- package/one/things/claude/agents/lead-capture-expert.md +466 -0
- package/one/things/claude/agents/lead-magnet-creator.md +453 -0
- package/one/things/claude/agents/market-research-analyst.md +412 -0
- package/one/things/claude/agents/marketing-brand-identity.md +314 -0
- package/one/things/claude/agents/marketing-content-hooks.md +450 -0
- package/one/things/claude/agents/marketing-content-multiplier.md +326 -0
- package/one/things/claude/agents/marketing-content-poster.md +361 -0
- package/one/things/claude/agents/marketing-customer-journey.md +326 -0
- package/one/things/claude/agents/marketing-director.md +397 -0
- package/one/things/claude/agents/marketing-engagement.md +326 -0
- package/one/things/claude/agents/marketing-lead-capture.md +326 -0
- package/one/things/claude/agents/marketing-lead-magnet.md +326 -0
- package/one/things/claude/agents/marketing-network-effects.md +326 -0
- package/one/things/claude/agents/marketing-nurture-campaigns.md +326 -0
- package/one/things/claude/agents/marketing-share-optimizer.md +326 -0
- package/one/things/claude/agents/marketing-team-manager.md +446 -0
- package/one/things/claude/agents/marketing-viral-growth.md +201 -0
- package/one/things/claude/agents/mission-commander.md +373 -0
- package/one/things/claude/agents/network-effect-analyst.md +587 -0
- package/one/things/claude/agents/nextjs-15-specialist.md +1547 -0
- package/one/things/claude/agents/npx.md +890 -0
- package/one/things/claude/agents/nurture-campaign-manager.md +531 -0
- package/one/things/claude/agents/one-master.md +355 -0
- package/one/things/claude/agents/one-orchestrator.md +315 -0
- package/one/things/claude/agents/one.md +601 -0
- package/one/things/claude/agents/playbook-generator.md +503 -0
- package/one/things/claude/agents/pm.md +326 -0
- package/one/things/claude/agents/po.md +345 -0
- package/one/things/claude/agents/qa.md +336 -0
- package/one/things/claude/agents/research-foundation-analyst.md +307 -0
- package/one/things/claude/agents/research-intelligence-gatherer.md +408 -0
- package/one/things/claude/agents/research-market-analyst.md +307 -0
- package/one/things/claude/agents/research-team-manager.md +482 -0
- package/one/things/claude/agents/sales-environment-optimizer.md +494 -0
- package/one/things/claude/agents/sales-team-manager.md +400 -0
- package/one/things/claude/agents/sales-upsell-strategist.md +307 -0
- package/one/things/claude/agents/service-advocacy-campaigns.md +307 -0
- package/one/things/claude/agents/service-advocacy-manager.md +307 -0
- package/one/things/claude/agents/service-success-manager.md +307 -0
- package/one/things/claude/agents/service-team-manager.md +400 -0
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +2302 -0
- package/one/things/claude/agents/share-optimization-specialist.md +551 -0
- package/one/things/claude/agents/sm.md +327 -0
- package/one/things/claude/agents/story-teller.md +473 -0
- package/one/things/claude/agents/task-master.md +596 -0
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +1827 -0
- package/one/things/claude/agents/tester.md +556 -0
- package/one/things/claude/agents/the-bull-character-manager.md +580 -0
- package/one/things/claude/agents/tools-playbook-generator.md +489 -0
- package/one/things/claude/agents/turbo-repo-builder.md +316 -0
- package/one/things/claude/agents/upsell-strategist.md +480 -0
- package/one/things/claude/agents/ux-expert.md +335 -0
- package/one/things/claude/agents/viral-growth-orchestrator.md +497 -0
- package/one/things/claude/claude-code-hooks-development.json +21 -0
- package/one/things/claude/claude-code-hooks-production.json +21 -0
- package/one/things/claude/claude-code-hooks.json +25 -0
- package/one/things/claude/commands/agent.md +104 -0
- package/one/things/claude/commands/cascade-status.md +128 -0
- package/one/things/claude/commands/ingest.md +290 -0
- package/one/things/claude/commands/ingestor.md +136 -0
- package/one/things/claude/commands/mission.md +83 -0
- package/one/things/claude/commands/npx.md +133 -0
- package/one/things/claude/commands/one.md +440 -0
- package/one/things/claude/commands/quality-check.md +204 -0
- package/one/things/claude/commands/smart-route.md +220 -0
- package/one/things/claude/commands/start.md +121 -0
- package/one/things/claude/commands/story.md +83 -0
- package/one/things/claude/commands/task.md +173 -0
- package/one/things/claude/hook-bypass.json +32 -0
- package/one/things/claude/hooks/agent-hook-config.json +427 -0
- package/one/things/claude/hooks/agent-hook-manager.js +525 -0
- package/one/things/claude/hooks/agent-load-balancer.js +271 -0
- package/one/things/claude/hooks/agent-request-interceptor.js +70 -0
- package/one/things/claude/hooks/build-hook.sh +156 -0
- package/one/things/claude/hooks/cascade-feedback.js +297 -0
- package/one/things/claude/hooks/cascade-integration-hooks.js +648 -0
- package/one/things/claude/hooks/cleanup-hook.sh +201 -0
- package/one/things/claude/hooks/continuous-improvement-monitor.js +510 -0
- package/one/things/claude/hooks/file-organization-engine.js +427 -0
- package/one/things/claude/hooks/file-organization-hook.sh +80 -0
- package/one/things/claude/hooks/file-organization-monitor.js +269 -0
- package/one/things/claude/hooks/format-hook.sh +43 -0
- package/one/things/claude/hooks/hook-bypass.sh +293 -0
- package/one/things/claude/hooks/hook-config-manager.js +202 -0
- package/one/things/claude/hooks/hook-debouncer.sh +62 -0
- package/one/things/claude/hooks/hook-logger.sh +89 -0
- package/one/things/claude/hooks/hook-orchestrator.js +662 -0
- package/one/things/claude/hooks/hook-performance-report.js +120 -0
- package/one/things/claude/hooks/lint-hook.sh +140 -0
- package/one/things/claude/hooks/mcp-cascade-integration.js +816 -0
- package/one/things/claude/hooks/memory-optimizer.js +510 -0
- package/one/things/claude/hooks/notification-hook.sh +204 -0
- package/one/things/claude/hooks/ontology-compliance.js +394 -0
- package/one/things/claude/hooks/ontology-hook-manager.js +316 -0
- package/one/things/claude/hooks/ontology-validation-engine.js +317 -0
- package/one/things/claude/hooks/ontology-validation-hook.sh +86 -0
- package/one/things/claude/hooks/performance-metrics.json +25 -0
- package/one/things/claude/hooks/performance-monitoring-hook.js +422 -0
- package/one/things/claude/hooks/quality-scoring-engine.js +834 -0
- package/one/things/claude/hooks/security-hook.sh +256 -0
- package/one/things/claude/hooks/simple-load-balancer.js +238 -0
- package/one/things/claude/hooks/startup-optimizer.js +625 -0
- package/one/things/claude/hooks/story-scoring-system.js +445 -0
- package/one/things/claude/hooks/story-validation-engine.js +473 -0
- package/one/things/claude/hooks/story-validation-hook-enhanced.sh +210 -0
- package/one/things/claude/hooks/story-validation-hook.sh +145 -0
- package/one/things/claude/hooks/structure-synchronizer.js +194 -0
- package/one/things/claude/hooks/sub-agent-output-validator.js +647 -0
- package/one/things/claude/hooks/sub-agent-validation-hook.js +343 -0
- package/one/things/claude/hooks/test-hook.sh +145 -0
- package/one/things/claude/hooks/test-story-validation.sh +170 -0
- package/one/things/claude/hooks/trinity-validation-system.js +392 -0
- package/one/things/claude/settings-local.json +86 -0
- package/one/things/cli-code.md +652 -0
- package/one/things/cli-compiler-code.md +652 -0
- package/one/things/cli.md +1045 -0
- package/one/things/components/card-shadcn.md +929 -0
- package/one/things/components/card.md +1050 -0
- package/one/things/components.md +1669 -0
- package/one/things/componets.md +4 -0
- package/one/things/copilotkit.md +1559 -0
- package/one/things/creator-diagram.md +166 -0
- package/one/things/examples/children/lemonade-stand.md +366 -0
- package/one/things/examples/enterprise/crm-saas.md +1429 -0
- package/one/things/features/1-1-agent-prompts/design.md +470 -0
- package/one/things/features/1-1-agent-prompts/tests.md +264 -0
- package/one/things/features/1-1-agent-prompts.md +486 -0
- package/one/things/features/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/features/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/features/1-2-yaml-orchestrator.md +516 -0
- package/one/things/features/1-3-event-coordination/design.md +544 -0
- package/one/things/features/1-3-event-coordination/tests.md +223 -0
- package/one/things/features/1-3-event-coordination.md +508 -0
- package/one/things/features/1-4-knowledge-management/design.md +609 -0
- package/one/things/features/1-4-knowledge-management/tests.md +195 -0
- package/one/things/features/1-4-knowledge-management.md +577 -0
- package/one/things/features/1-5-quality-loops/design.md +797 -0
- package/one/things/features/1-5-quality-loops/tests.md +212 -0
- package/one/things/features/1-5-quality-loops.md +641 -0
- package/one/things/features/1-6-numbering-structure/design.md +610 -0
- package/one/things/features/1-6-numbering-structure/tests.md +213 -0
- package/one/things/features/1-6-numbering-structure.md +575 -0
- package/one/things/features/2-cli.md +1235 -0
- package/one/things/features/use-one-backend.md +1180 -0
- package/one/things/ideas/1-create-workflow.md +189 -0
- package/one/things/plans/1-create-workflow-status.md +555 -0
- package/one/things/plans/1-create-workflow.md +713 -0
- package/one/things/plans/app.md +761 -0
- package/one/things/plans/better-auth-any-backend-revised.md +1065 -0
- package/one/things/plans/better-auth-any-backend.md +1852 -0
- package/one/things/plans/better-auth-available-features.md +235 -0
- package/one/things/plans/big-plan.md +38 -0
- package/one/things/plans/convex-better-auth.md +1109 -0
- package/one/things/plans/convex-on-off.md +389 -0
- package/one/things/plans/desktop.md +1121 -0
- package/one/things/plans/effect-components.md +1669 -0
- package/one/things/plans/effect.md +973 -0
- package/one/things/plans/email.md +953 -0
- package/one/things/plans/enhance-auth.md +1669 -0
- package/one/things/plans/install-components.md +198 -0
- package/one/things/plans/landing.md +728 -0
- package/one/things/plans/layout.md +205 -0
- package/one/things/plans/mail-backend.md +1308 -0
- package/one/things/plans/mail.md +2624 -0
- package/one/things/plans/next-features.md +83 -0
- package/one/things/plans/one.md +658 -0
- package/one/things/plans/ontology-6-dimensions.md +2216 -0
- package/one/things/plans/ontology-driven-strategy.md +866 -0
- package/one/things/plans/ontology-ui-approach.md +357 -0
- package/one/things/plans/open-agent.md +785 -0
- package/one/things/plans/performace.md +90 -0
- package/one/things/plans/releases.md +809 -0
- package/one/things/plans/repos.md +76 -0
- package/one/things/plans/separate-copy-2.md +1293 -0
- package/one/things/plans/separate-copy-3.md +2458 -0
- package/one/things/plans/separate-copy.md +1293 -0
- package/one/things/plans/separate.md +1983 -0
- package/one/things/plans/shadcn-integration-summary.md +450 -0
- package/one/things/plans/sidebar.md +172 -0
- package/one/things/plans/small-fixes.md +5 -0
- package/one/things/plans/test-backend-connection.md +476 -0
- package/one/things/plans/workflow-files.md +1196 -0
- package/one/things/plans/workflow.md +1372 -0
- package/one/things/products/cascade-landing-page.md +737 -0
- package/one/things/products/cascade.md +1518 -0
- package/one/things/products/context-engineering.md +1427 -0
- package/one/things/products/onthology.md +0 -0
- package/one/things/products/ontology-ui-shadcn.md +1280 -0
- package/one/things/products/ontology-ui.md +1387 -0
- package/one/things/products/ontology.md +717 -0
- package/one/things/products/sdk.md +557 -0
- package/one/things/promptkit.md +903 -0
- package/one/things/service-providers-new.md +982 -0
- package/one/things/service-providers.md +1092 -0
- package/one/things/things.md +349 -0
- package/one/things/todo.md +1248 -0
- package/package.json +5 -2
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cascade Integration Hooks - Complete Mission → Story → Task → Agent System
|
|
5
|
+
* Integrates quality gates, workflow orchestration, and performance tracking
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import fs from 'fs';
|
|
9
|
+
import path from 'path';
|
|
10
|
+
import { execSync } from 'child_process';
|
|
11
|
+
|
|
12
|
+
// Configuration for cascade system
|
|
13
|
+
const CASCADE_CONFIG = {
|
|
14
|
+
QUALITY_THRESHOLDS: {
|
|
15
|
+
MISSION: 4.0,
|
|
16
|
+
STORY: 4.0,
|
|
17
|
+
TASK: 4.0,
|
|
18
|
+
AGENT: 4.0
|
|
19
|
+
},
|
|
20
|
+
PROCESSING_TIMEOUTS: {
|
|
21
|
+
MISSION_GATE: 300000, // 5 minutes
|
|
22
|
+
STORY_GATE: 300000, // 5 minutes
|
|
23
|
+
TASK_GATE: 180000, // 3 minutes
|
|
24
|
+
AGENT_GATE: 900000 // 15 minutes
|
|
25
|
+
},
|
|
26
|
+
PATHS: {
|
|
27
|
+
MISSIONS: 'one/missions/',
|
|
28
|
+
STORIES: 'one/stories/',
|
|
29
|
+
TASKS: 'one/tasks/',
|
|
30
|
+
WORKFLOWS: '.one/workflows/',
|
|
31
|
+
CHECKLISTS: '.one/checklists/',
|
|
32
|
+
AGENTS: '.claude/agents/',
|
|
33
|
+
LOGS: '.claude/logs/'
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
class CascadeIntegrationSystem {
|
|
38
|
+
constructor() {
|
|
39
|
+
this.logger = new CascadeLogger();
|
|
40
|
+
this.qualityGates = new QualityGateSystem();
|
|
41
|
+
this.orchestrator = new WorkflowOrchestrator();
|
|
42
|
+
this.analytics = new CascadeAnalytics();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Main hook entry point
|
|
46
|
+
async processFileChange(filePath, changeType) {
|
|
47
|
+
try {
|
|
48
|
+
const cascadeLevel = this.identifyCascadeLevel(filePath);
|
|
49
|
+
if (!cascadeLevel) return null;
|
|
50
|
+
|
|
51
|
+
this.logger.info(`Processing ${cascadeLevel} file change: ${filePath} (${changeType})`);
|
|
52
|
+
|
|
53
|
+
const result = await this.processLevelChange(cascadeLevel, filePath, changeType);
|
|
54
|
+
await this.updateCascadeMetrics(cascadeLevel, result);
|
|
55
|
+
|
|
56
|
+
return result;
|
|
57
|
+
} catch (error) {
|
|
58
|
+
this.logger.error('Cascade integration error:', error);
|
|
59
|
+
return { success: false, error: error.message };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
identifyCascadeLevel(filePath) {
|
|
64
|
+
if (filePath.includes('/missions/')) return 'mission';
|
|
65
|
+
if (filePath.includes('/stories/')) return 'story';
|
|
66
|
+
if (filePath.includes('/tasks/')) return 'task';
|
|
67
|
+
if (filePath.includes('/agents/')) return 'agent';
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async processLevelChange(level, filePath, changeType) {
|
|
72
|
+
switch (level) {
|
|
73
|
+
case 'mission':
|
|
74
|
+
return await this.processMissionChange(filePath, changeType);
|
|
75
|
+
case 'story':
|
|
76
|
+
return await this.processStoryChange(filePath, changeType);
|
|
77
|
+
case 'task':
|
|
78
|
+
return await this.processTaskChange(filePath, changeType);
|
|
79
|
+
case 'agent':
|
|
80
|
+
return await this.processAgentChange(filePath, changeType);
|
|
81
|
+
default:
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async processMissionChange(filePath, changeType) {
|
|
87
|
+
const mission = await this.loadFile(filePath);
|
|
88
|
+
|
|
89
|
+
// Run mission quality gate
|
|
90
|
+
const qualityResult = await this.qualityGates.validateMission(mission, filePath);
|
|
91
|
+
|
|
92
|
+
if (qualityResult.passed) {
|
|
93
|
+
// Mission quality gate passed - check for story spawning
|
|
94
|
+
const storySpawning = await this.orchestrator.checkStorySpawning(mission);
|
|
95
|
+
|
|
96
|
+
if (storySpawning.shouldSpawn) {
|
|
97
|
+
this.logger.info(`Mission quality gate passed - triggering story spawning`);
|
|
98
|
+
await this.orchestrator.triggerStorySpawning(mission, filePath);
|
|
99
|
+
}
|
|
100
|
+
} else {
|
|
101
|
+
this.logger.warn(`Mission quality gate failed: ${qualityResult.issues.join(', ')}`);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
level: 'mission',
|
|
106
|
+
qualityResult,
|
|
107
|
+
actions: qualityResult.passed ? ['story_spawning_triggered'] : ['revision_required']
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
async processStoryChange(filePath, changeType) {
|
|
112
|
+
const story = await this.loadFile(filePath);
|
|
113
|
+
|
|
114
|
+
// Run story quality gate with enhanced validation
|
|
115
|
+
const qualityResult = await this.qualityGates.validateStory(story, filePath);
|
|
116
|
+
|
|
117
|
+
if (qualityResult.passed) {
|
|
118
|
+
// Story quality gate passed - check for task breakdown
|
|
119
|
+
const taskBreakdown = await this.orchestrator.checkTaskBreakdown(story);
|
|
120
|
+
|
|
121
|
+
if (taskBreakdown.shouldBreakdown) {
|
|
122
|
+
this.logger.info(`Story quality gate passed - triggering task breakdown`);
|
|
123
|
+
await this.orchestrator.triggerTaskBreakdown(story, filePath);
|
|
124
|
+
}
|
|
125
|
+
} else {
|
|
126
|
+
this.logger.warn(`Story quality gate failed: ${qualityResult.issues.join(', ')}`);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
level: 'story',
|
|
131
|
+
qualityResult,
|
|
132
|
+
actions: qualityResult.passed ? ['task_breakdown_triggered'] : ['revision_required']
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
async processTaskChange(filePath, changeType) {
|
|
137
|
+
const task = await this.loadFile(filePath);
|
|
138
|
+
|
|
139
|
+
// Run task quality gate
|
|
140
|
+
const qualityResult = await this.qualityGates.validateTask(task, filePath);
|
|
141
|
+
|
|
142
|
+
if (qualityResult.passed) {
|
|
143
|
+
// Task quality gate passed - check for agent assignment
|
|
144
|
+
const agentAssignment = await this.orchestrator.checkAgentAssignment(task);
|
|
145
|
+
|
|
146
|
+
if (agentAssignment.shouldAssign) {
|
|
147
|
+
this.logger.info(`Task quality gate passed - triggering agent assignment`);
|
|
148
|
+
await this.orchestrator.triggerAgentAssignment(task, filePath);
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
this.logger.warn(`Task quality gate failed: ${qualityResult.issues.join(', ')}`);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
level: 'task',
|
|
156
|
+
qualityResult,
|
|
157
|
+
actions: qualityResult.passed ? ['agent_assignment_triggered'] : ['revision_required']
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
async processAgentChange(filePath, changeType) {
|
|
162
|
+
// Agent-level changes trigger performance tracking
|
|
163
|
+
const agent = await this.loadFile(filePath);
|
|
164
|
+
|
|
165
|
+
// Track agent performance and capability updates
|
|
166
|
+
await this.analytics.updateAgentMetrics(agent, filePath);
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
level: 'agent',
|
|
170
|
+
actions: ['performance_metrics_updated']
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
async loadFile(filePath) {
|
|
175
|
+
try {
|
|
176
|
+
const content = fs.readFileSync(filePath, 'utf8');
|
|
177
|
+
return {
|
|
178
|
+
path: filePath,
|
|
179
|
+
content,
|
|
180
|
+
lastModified: fs.statSync(filePath).mtime
|
|
181
|
+
};
|
|
182
|
+
} catch (error) {
|
|
183
|
+
throw new Error(`Failed to load file ${filePath}: ${error.message}`);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
async updateCascadeMetrics(level, result) {
|
|
188
|
+
await this.analytics.updateCascadeMetrics(level, result);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
class QualityGateSystem {
|
|
193
|
+
async validateMission(mission, filePath) {
|
|
194
|
+
try {
|
|
195
|
+
// Load mission quality checklist
|
|
196
|
+
const checklist = await this.loadChecklist('mission-quality-checklist.md');
|
|
197
|
+
|
|
198
|
+
// Execute validation
|
|
199
|
+
const validation = await this.executeMissionValidation(mission, checklist);
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
passed: validation.score >= CASCADE_CONFIG.QUALITY_THRESHOLDS.MISSION,
|
|
203
|
+
score: validation.score,
|
|
204
|
+
issues: validation.issues,
|
|
205
|
+
recommendations: validation.recommendations
|
|
206
|
+
};
|
|
207
|
+
} catch (error) {
|
|
208
|
+
return {
|
|
209
|
+
passed: false,
|
|
210
|
+
score: 0,
|
|
211
|
+
issues: [`Validation error: ${error.message}`],
|
|
212
|
+
recommendations: ['Fix validation errors and retry']
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
async validateStory(story, filePath) {
|
|
218
|
+
try {
|
|
219
|
+
// Use existing story validation engine
|
|
220
|
+
const StoryValidationEngine = await import('./story-validation-engine.js');
|
|
221
|
+
const engine = new StoryValidationEngine.default(filePath);
|
|
222
|
+
const result = await engine.validate();
|
|
223
|
+
|
|
224
|
+
// Enhanced validation for cascade integration
|
|
225
|
+
const cascadeValidation = await this.executeCascadeStoryValidation(story);
|
|
226
|
+
|
|
227
|
+
// Combine results
|
|
228
|
+
const combinedScore = (parseFloat(result.score) + cascadeValidation.score) / 2;
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
passed: combinedScore >= CASCADE_CONFIG.QUALITY_THRESHOLDS.STORY,
|
|
232
|
+
score: combinedScore,
|
|
233
|
+
issues: [...(result.issues?.critical || []), ...cascadeValidation.issues],
|
|
234
|
+
recommendations: [result.recommendation, ...cascadeValidation.recommendations],
|
|
235
|
+
storyValidation: result,
|
|
236
|
+
cascadeValidation
|
|
237
|
+
};
|
|
238
|
+
} catch (error) {
|
|
239
|
+
return {
|
|
240
|
+
passed: false,
|
|
241
|
+
score: 0,
|
|
242
|
+
issues: [`Story validation error: ${error.message}`],
|
|
243
|
+
recommendations: ['Fix validation errors and retry']
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
async validateTask(task, filePath) {
|
|
249
|
+
try {
|
|
250
|
+
const checklist = await this.loadChecklist('task-quality-checklist.md');
|
|
251
|
+
const validation = await this.executeTaskValidation(task, checklist);
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
passed: validation.score >= CASCADE_CONFIG.QUALITY_THRESHOLDS.TASK,
|
|
255
|
+
score: validation.score,
|
|
256
|
+
issues: validation.issues,
|
|
257
|
+
recommendations: validation.recommendations
|
|
258
|
+
};
|
|
259
|
+
} catch (error) {
|
|
260
|
+
return {
|
|
261
|
+
passed: false,
|
|
262
|
+
score: 0,
|
|
263
|
+
issues: [`Task validation error: ${error.message}`],
|
|
264
|
+
recommendations: ['Fix validation errors and retry']
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
async loadChecklist(checklistName) {
|
|
270
|
+
const checklistPath = path.join(CASCADE_CONFIG.PATHS.CHECKLISTS, checklistName);
|
|
271
|
+
if (fs.existsSync(checklistPath)) {
|
|
272
|
+
return fs.readFileSync(checklistPath, 'utf8');
|
|
273
|
+
}
|
|
274
|
+
throw new Error(`Checklist not found: ${checklistName}`);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
async executeMissionValidation(mission, checklist) {
|
|
278
|
+
// Parse mission content for quality criteria
|
|
279
|
+
const content = mission.content;
|
|
280
|
+
let score = 5.0; // Start with perfect score
|
|
281
|
+
const issues = [];
|
|
282
|
+
const recommendations = [];
|
|
283
|
+
|
|
284
|
+
// Strategic Clarity Assessment (25% weight)
|
|
285
|
+
if (!this.validateStrategicClarity(content)) {
|
|
286
|
+
score -= 1.0;
|
|
287
|
+
issues.push('Strategic clarity needs improvement');
|
|
288
|
+
recommendations.push('Define SMART objectives and measurable outcomes');
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// Resource Allocation Check (20% weight)
|
|
292
|
+
if (!this.validateResourceAllocation(content)) {
|
|
293
|
+
score -= 0.8;
|
|
294
|
+
issues.push('Resource allocation unclear');
|
|
295
|
+
recommendations.push('Specify required agents, tools, and timeline');
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// Success Criteria Definition (25% weight)
|
|
299
|
+
if (!this.validateSuccessCriteria(content)) {
|
|
300
|
+
score -= 1.0;
|
|
301
|
+
issues.push('Success criteria not well defined');
|
|
302
|
+
recommendations.push('Define clear, measurable success metrics');
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Stakeholder Alignment (15% weight)
|
|
306
|
+
if (!this.validateStakeholderAlignment(content)) {
|
|
307
|
+
score -= 0.6;
|
|
308
|
+
issues.push('Stakeholder alignment not evident');
|
|
309
|
+
recommendations.push('Document stakeholder commitment and understanding');
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// Story Readiness (15% weight)
|
|
313
|
+
if (!this.validateStoryReadiness(content)) {
|
|
314
|
+
score -= 0.6;
|
|
315
|
+
issues.push('Story spawning readiness unclear');
|
|
316
|
+
recommendations.push('Structure mission for effective story breakdown');
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
return { score: Math.max(0, score), issues, recommendations };
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
async executeCascadeStoryValidation(story) {
|
|
323
|
+
const content = story.content;
|
|
324
|
+
let score = 5.0;
|
|
325
|
+
const issues = [];
|
|
326
|
+
const recommendations = [];
|
|
327
|
+
|
|
328
|
+
// Mission Alignment (30% weight)
|
|
329
|
+
if (!this.validateMissionAlignment(content)) {
|
|
330
|
+
score -= 1.5;
|
|
331
|
+
issues.push('Mission alignment not clear');
|
|
332
|
+
recommendations.push('Strengthen connection to parent mission objectives');
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// Narrative Coherence (25% weight)
|
|
336
|
+
if (!this.validateNarrativeCoherence(content)) {
|
|
337
|
+
score -= 1.25;
|
|
338
|
+
issues.push('Narrative structure needs improvement');
|
|
339
|
+
recommendations.push('Develop clear beginning, middle, end with compelling flow');
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// Task Readiness (15% weight)
|
|
343
|
+
if (!this.validateTaskReadiness(content)) {
|
|
344
|
+
score -= 0.75;
|
|
345
|
+
issues.push('Task breakdown readiness unclear');
|
|
346
|
+
recommendations.push('Structure story for effective task decomposition');
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
return { score: Math.max(0, score), issues, recommendations };
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
async executeTaskValidation(task, checklist) {
|
|
353
|
+
const content = task.content;
|
|
354
|
+
let score = 5.0;
|
|
355
|
+
const issues = [];
|
|
356
|
+
const recommendations = [];
|
|
357
|
+
|
|
358
|
+
// Story Context Preservation (25% weight)
|
|
359
|
+
if (!this.validateStoryContext(content)) {
|
|
360
|
+
score -= 1.25;
|
|
361
|
+
issues.push('Story context not well preserved');
|
|
362
|
+
recommendations.push('Maintain clear connection to parent story narrative');
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// Execution Clarity (30% weight)
|
|
366
|
+
if (!this.validateExecutionClarity(content)) {
|
|
367
|
+
score -= 1.5;
|
|
368
|
+
issues.push('Execution instructions unclear');
|
|
369
|
+
recommendations.push('Provide unambiguous, complete instructions and resource specifications');
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// Agent Matching (20% weight)
|
|
373
|
+
if (!this.validateAgentMatching(content)) {
|
|
374
|
+
score -= 1.0;
|
|
375
|
+
issues.push('Agent matching optimization needed');
|
|
376
|
+
recommendations.push('Specify required skills and optimal agent characteristics');
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return { score: Math.max(0, score), issues, recommendations };
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// Validation helper methods
|
|
383
|
+
validateStrategicClarity(content) {
|
|
384
|
+
const smartKeywords = ['specific', 'measurable', 'achievable', 'relevant', 'time-bound'];
|
|
385
|
+
const objectivePatterns = /objective|goal|purpose|mission/i;
|
|
386
|
+
return objectivePatterns.test(content) && smartKeywords.some(keyword =>
|
|
387
|
+
content.toLowerCase().includes(keyword)
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
validateResourceAllocation(content) {
|
|
392
|
+
const resourcePatterns = /agent|tool|resource|timeline|capacity/i;
|
|
393
|
+
return resourcePatterns.test(content);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
validateSuccessCriteria(content) {
|
|
397
|
+
const criteriaPatterns = /success criteria|metrics|kpi|measurement/i;
|
|
398
|
+
return criteriaPatterns.test(content);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
validateStakeholderAlignment(content) {
|
|
402
|
+
const alignmentPatterns = /stakeholder|team|commitment|alignment/i;
|
|
403
|
+
return alignmentPatterns.test(content);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
validateStoryReadiness(content) {
|
|
407
|
+
const readinessPatterns = /story|narrative|breakdown|spawning/i;
|
|
408
|
+
return readinessPatterns.test(content);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
validateMissionAlignment(content) {
|
|
412
|
+
const alignmentPatterns = /mission|objective|contribut|support/i;
|
|
413
|
+
return alignmentPatterns.test(content);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
validateNarrativeCoherence(content) {
|
|
417
|
+
const narrativePatterns = /story|narrative|beginning|middle|end|journey/i;
|
|
418
|
+
return narrativePatterns.test(content) && content.length > 500; // Minimum content length
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
validateTaskReadiness(content) {
|
|
422
|
+
const taskPatterns = /task|breakdown|decomposition|executable/i;
|
|
423
|
+
return taskPatterns.test(content);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
validateStoryContext(content) {
|
|
427
|
+
const contextPatterns = /story|narrative|context|background/i;
|
|
428
|
+
return contextPatterns.test(content);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
validateExecutionClarity(content) {
|
|
432
|
+
const clarityPatterns = /instruction|step|requirement|specification/i;
|
|
433
|
+
const hasSteps = /\d+\.|step \d+|1\./i.test(content);
|
|
434
|
+
return clarityPatterns.test(content) && hasSteps;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
validateAgentMatching(content) {
|
|
438
|
+
const agentPatterns = /agent|specialist|skill|capability|assignment/i;
|
|
439
|
+
return agentPatterns.test(content);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
class WorkflowOrchestrator {
|
|
444
|
+
async checkStorySpawning(mission) {
|
|
445
|
+
// Check if mission is ready for story spawning
|
|
446
|
+
const content = mission.content;
|
|
447
|
+
const hasSpawningReadiness = /story|narrative|breakdown/i.test(content);
|
|
448
|
+
const hasStatus = /status.*active|status.*ready/i.test(content);
|
|
449
|
+
|
|
450
|
+
return {
|
|
451
|
+
shouldSpawn: hasSpawningReadiness && hasStatus,
|
|
452
|
+
readiness: hasSpawningReadiness,
|
|
453
|
+
status: hasStatus
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
async triggerStorySpawning(mission, missionPath) {
|
|
458
|
+
// This would trigger the Mission Commander to create stories
|
|
459
|
+
this.logger.info(`Triggering story spawning for mission: ${missionPath}`);
|
|
460
|
+
|
|
461
|
+
// In a real implementation, this would:
|
|
462
|
+
// 1. Notify Mission Commander
|
|
463
|
+
// 2. Generate story specifications
|
|
464
|
+
// 3. Create story file templates
|
|
465
|
+
// 4. Update mission status
|
|
466
|
+
|
|
467
|
+
return { triggered: true, timestamp: new Date().toISOString() };
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
async checkTaskBreakdown(story) {
|
|
471
|
+
const content = story.content;
|
|
472
|
+
const hasTaskSection = /task|subtask|breakdown/i.test(content);
|
|
473
|
+
const hasAcceptanceCriteria = /acceptance criteria/i.test(content);
|
|
474
|
+
|
|
475
|
+
return {
|
|
476
|
+
shouldBreakdown: hasTaskSection && hasAcceptanceCriteria,
|
|
477
|
+
taskSection: hasTaskSection,
|
|
478
|
+
acceptanceCriteria: hasAcceptanceCriteria
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
async triggerTaskBreakdown(story, storyPath) {
|
|
483
|
+
this.logger.info(`Triggering task breakdown for story: ${storyPath}`);
|
|
484
|
+
|
|
485
|
+
// In a real implementation, this would:
|
|
486
|
+
// 1. Notify Story Teller
|
|
487
|
+
// 2. Generate task specifications
|
|
488
|
+
// 3. Create task file templates
|
|
489
|
+
// 4. Update story status
|
|
490
|
+
|
|
491
|
+
return { triggered: true, timestamp: new Date().toISOString() };
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
async checkAgentAssignment(task) {
|
|
495
|
+
const content = task.content;
|
|
496
|
+
const hasAgentRequirements = /agent|specialist|assignment/i.test(content);
|
|
497
|
+
const hasExecutionCriteria = /completion criteria|done definition/i.test(content);
|
|
498
|
+
|
|
499
|
+
return {
|
|
500
|
+
shouldAssign: hasAgentRequirements && hasExecutionCriteria,
|
|
501
|
+
agentRequirements: hasAgentRequirements,
|
|
502
|
+
executionCriteria: hasExecutionCriteria
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
async triggerAgentAssignment(task, taskPath) {
|
|
507
|
+
this.logger.info(`Triggering agent assignment for task: ${taskPath}`);
|
|
508
|
+
|
|
509
|
+
// In a real implementation, this would:
|
|
510
|
+
// 1. Notify Task Master
|
|
511
|
+
// 2. Match optimal agent
|
|
512
|
+
// 3. Assign task to agent
|
|
513
|
+
// 4. Update task status
|
|
514
|
+
|
|
515
|
+
return { triggered: true, timestamp: new Date().toISOString() };
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
class CascadeAnalytics {
|
|
520
|
+
constructor() {
|
|
521
|
+
this.metricsPath = path.join(CASCADE_CONFIG.PATHS.LOGS, 'cascade-metrics.json');
|
|
522
|
+
this.initializeMetrics();
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
initializeMetrics() {
|
|
526
|
+
if (!fs.existsSync(this.metricsPath)) {
|
|
527
|
+
const initialMetrics = {
|
|
528
|
+
cascade_efficiency: {
|
|
529
|
+
mission_processing_time: [],
|
|
530
|
+
story_processing_time: [],
|
|
531
|
+
task_processing_time: [],
|
|
532
|
+
agent_processing_time: []
|
|
533
|
+
},
|
|
534
|
+
quality_scores: {
|
|
535
|
+
missions: [],
|
|
536
|
+
stories: [],
|
|
537
|
+
tasks: [],
|
|
538
|
+
agents: []
|
|
539
|
+
},
|
|
540
|
+
quality_gate_performance: {
|
|
541
|
+
mission_pass_rate: 0,
|
|
542
|
+
story_pass_rate: 0,
|
|
543
|
+
task_pass_rate: 0,
|
|
544
|
+
agent_pass_rate: 0
|
|
545
|
+
},
|
|
546
|
+
last_updated: new Date().toISOString()
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
fs.writeFileSync(this.metricsPath, JSON.stringify(initialMetrics, null, 2));
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
async updateCascadeMetrics(level, result) {
|
|
554
|
+
const metrics = JSON.parse(fs.readFileSync(this.metricsPath, 'utf8'));
|
|
555
|
+
|
|
556
|
+
// Update quality scores
|
|
557
|
+
if (result.qualityResult && result.qualityResult.score) {
|
|
558
|
+
metrics.quality_scores[`${level}s`].push({
|
|
559
|
+
score: result.qualityResult.score,
|
|
560
|
+
timestamp: new Date().toISOString(),
|
|
561
|
+
passed: result.qualityResult.passed
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
// Update processing time if available
|
|
566
|
+
if (result.processingTime) {
|
|
567
|
+
metrics.cascade_efficiency[`${level}_processing_time`].push({
|
|
568
|
+
time: result.processingTime,
|
|
569
|
+
timestamp: new Date().toISOString()
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
metrics.last_updated = new Date().toISOString();
|
|
574
|
+
fs.writeFileSync(this.metricsPath, JSON.stringify(metrics, null, 2));
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
async updateAgentMetrics(agent, filePath) {
|
|
578
|
+
// Track agent performance and capabilities
|
|
579
|
+
this.logger.info(`Updating agent metrics for: ${filePath}`);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
class CascadeLogger {
|
|
584
|
+
constructor() {
|
|
585
|
+
this.logPath = path.join(CASCADE_CONFIG.PATHS.LOGS, 'cascade-integration.log');
|
|
586
|
+
this.ensureLogDirectory();
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
ensureLogDirectory() {
|
|
590
|
+
const logDir = path.dirname(this.logPath);
|
|
591
|
+
if (!fs.existsSync(logDir)) {
|
|
592
|
+
fs.mkdirSync(logDir, { recursive: true });
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
log(level, message, data = null) {
|
|
597
|
+
const timestamp = new Date().toISOString();
|
|
598
|
+
const logEntry = {
|
|
599
|
+
timestamp,
|
|
600
|
+
level,
|
|
601
|
+
message,
|
|
602
|
+
data
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
const logLine = JSON.stringify(logEntry) + '\n';
|
|
606
|
+
fs.appendFileSync(this.logPath, logLine);
|
|
607
|
+
|
|
608
|
+
// Also log to console for immediate feedback
|
|
609
|
+
console.log(`[${timestamp}] ${level.toUpperCase()}: ${message}`);
|
|
610
|
+
if (data) console.log(JSON.stringify(data, null, 2));
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
info(message, data) { this.log('info', message, data); }
|
|
614
|
+
warn(message, data) { this.log('warn', message, data); }
|
|
615
|
+
error(message, data) { this.log('error', message, data); }
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
// Main execution for hook integration
|
|
619
|
+
async function main() {
|
|
620
|
+
const filePath = process.argv[2];
|
|
621
|
+
const changeType = process.argv[3] || 'modified';
|
|
622
|
+
|
|
623
|
+
if (!filePath) {
|
|
624
|
+
console.error('Usage: cascade-integration-hooks.js <file_path> [change_type]');
|
|
625
|
+
process.exit(1);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
const cascadeSystem = new CascadeIntegrationSystem();
|
|
629
|
+
const result = await cascadeSystem.processFileChange(filePath, changeType);
|
|
630
|
+
|
|
631
|
+
if (result) {
|
|
632
|
+
console.log('CASCADE_INTEGRATION_RESULT:', JSON.stringify(result, null, 2));
|
|
633
|
+
process.exit(result.success !== false ? 0 : 1);
|
|
634
|
+
} else {
|
|
635
|
+
console.log('CASCADE_INTEGRATION_RESULT: No action required');
|
|
636
|
+
process.exit(0);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// Execute if called directly
|
|
641
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
642
|
+
main().catch(error => {
|
|
643
|
+
console.error('CASCADE_INTEGRATION_ERROR:', error.message);
|
|
644
|
+
process.exit(1);
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export default CascadeIntegrationSystem;
|