stringray-ai 1.0.0
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/.mcp.json +68 -0
- package/LICENSE +21 -0
- package/README.md +618 -0
- package/dist/agents/architect.d.ts +3 -0
- package/dist/agents/architect.d.ts.map +1 -0
- package/dist/agents/architect.js +84 -0
- package/dist/agents/architect.js.map +1 -0
- package/dist/agents/bug-triage-specialist.d.ts +3 -0
- package/dist/agents/bug-triage-specialist.d.ts.map +1 -0
- package/dist/agents/bug-triage-specialist.js +66 -0
- package/dist/agents/bug-triage-specialist.js.map +1 -0
- package/dist/agents/code-reviewer.d.ts +3 -0
- package/dist/agents/code-reviewer.d.ts.map +1 -0
- package/dist/agents/code-reviewer.js +66 -0
- package/dist/agents/code-reviewer.js.map +1 -0
- package/dist/agents/enforcer.d.ts +3 -0
- package/dist/agents/enforcer.d.ts.map +1 -0
- package/dist/agents/enforcer.js +109 -0
- package/dist/agents/enforcer.js.map +1 -0
- package/dist/agents/index.d.ts +15 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +26 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/librarian.d.ts +3 -0
- package/dist/agents/librarian.d.ts.map +1 -0
- package/dist/agents/librarian.js +70 -0
- package/dist/agents/librarian.js.map +1 -0
- package/dist/agents/log-monitor.d.ts +3 -0
- package/dist/agents/log-monitor.d.ts.map +1 -0
- package/dist/agents/log-monitor.js +102 -0
- package/dist/agents/log-monitor.js.map +1 -0
- package/dist/agents/orchestrator.d.ts +3 -0
- package/dist/agents/orchestrator.d.ts.map +1 -0
- package/dist/agents/orchestrator.js +85 -0
- package/dist/agents/orchestrator.js.map +1 -0
- package/dist/agents/refactorer.d.ts +3 -0
- package/dist/agents/refactorer.d.ts.map +1 -0
- package/dist/agents/refactorer.js +67 -0
- package/dist/agents/refactorer.js.map +1 -0
- package/dist/agents/security-auditor.d.ts +3 -0
- package/dist/agents/security-auditor.d.ts.map +1 -0
- package/dist/agents/security-auditor.js +66 -0
- package/dist/agents/security-auditor.js.map +1 -0
- package/dist/agents/sisyphus.d.ts +3 -0
- package/dist/agents/sisyphus.d.ts.map +1 -0
- package/dist/agents/sisyphus.js +53 -0
- package/dist/agents/sisyphus.js.map +1 -0
- package/dist/agents/test-architect.d.ts +3 -0
- package/dist/agents/test-architect.d.ts.map +1 -0
- package/dist/agents/test-architect.js +81 -0
- package/dist/agents/test-architect.js.map +1 -0
- package/dist/agents/types.d.ts +29 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +2 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/mcps/architect-tools.server.d.ts +40 -0
- package/dist/mcps/architect-tools.server.d.ts.map +1 -0
- package/dist/mcps/architect-tools.server.js +563 -0
- package/dist/mcps/architect-tools.server.js.map +1 -0
- package/dist/mcps/auto-format.server.d.ts +20 -0
- package/dist/mcps/auto-format.server.d.ts.map +1 -0
- package/dist/mcps/auto-format.server.js +391 -0
- package/dist/mcps/auto-format.server.js.map +1 -0
- package/dist/mcps/boot-orchestrator.server.d.ts +50 -0
- package/dist/mcps/boot-orchestrator.server.d.ts.map +1 -0
- package/dist/mcps/boot-orchestrator.server.js +871 -0
- package/dist/mcps/boot-orchestrator.server.js.map +1 -0
- package/dist/mcps/enforcer-tools.server.d.ts +26 -0
- package/dist/mcps/enforcer-tools.server.d.ts.map +1 -0
- package/dist/mcps/enforcer-tools.server.js +627 -0
- package/dist/mcps/enforcer-tools.server.js.map +1 -0
- package/dist/mcps/enhanced-orchestrator.server.d.ts +14 -0
- package/dist/mcps/enhanced-orchestrator.server.d.ts.map +1 -0
- package/dist/mcps/enhanced-orchestrator.server.js +250 -0
- package/dist/mcps/enhanced-orchestrator.server.js.map +1 -0
- package/dist/mcps/framework-compliance-audit.server.d.ts +23 -0
- package/dist/mcps/framework-compliance-audit.server.d.ts.map +1 -0
- package/dist/mcps/framework-compliance-audit.server.js +511 -0
- package/dist/mcps/framework-compliance-audit.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/api-design.server.d.ts +16 -0
- package/dist/mcps/knowledge-skills/api-design.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/api-design.server.js +120 -0
- package/dist/mcps/knowledge-skills/api-design.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/architecture-patterns.server.d.ts +16 -0
- package/dist/mcps/knowledge-skills/architecture-patterns.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/architecture-patterns.server.js +110 -0
- package/dist/mcps/knowledge-skills/architecture-patterns.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/code-review.server.d.ts +32 -0
- package/dist/mcps/knowledge-skills/code-review.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/code-review.server.js +777 -0
- package/dist/mcps/knowledge-skills/code-review.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/database-design.server.d.ts +44 -0
- package/dist/mcps/knowledge-skills/database-design.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/database-design.server.js +818 -0
- package/dist/mcps/knowledge-skills/database-design.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/devops-deployment.server.d.ts +44 -0
- package/dist/mcps/knowledge-skills/devops-deployment.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/devops-deployment.server.js +1178 -0
- package/dist/mcps/knowledge-skills/devops-deployment.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/documentation-generation.server.d.ts +48 -0
- package/dist/mcps/knowledge-skills/documentation-generation.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/documentation-generation.server.js +1188 -0
- package/dist/mcps/knowledge-skills/documentation-generation.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/git-workflow.server.d.ts +16 -0
- package/dist/mcps/knowledge-skills/git-workflow.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/git-workflow.server.js +112 -0
- package/dist/mcps/knowledge-skills/git-workflow.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/performance-optimization.server.d.ts +16 -0
- package/dist/mcps/knowledge-skills/performance-optimization.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/performance-optimization.server.js +108 -0
- package/dist/mcps/knowledge-skills/performance-optimization.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/project-analysis.server.d.ts +34 -0
- package/dist/mcps/knowledge-skills/project-analysis.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/project-analysis.server.js +710 -0
- package/dist/mcps/knowledge-skills/project-analysis.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.d.ts +34 -0
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.js +794 -0
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/security-audit.server.d.ts +34 -0
- package/dist/mcps/knowledge-skills/security-audit.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/security-audit.server.js +769 -0
- package/dist/mcps/knowledge-skills/security-audit.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/testing-best-practices.server.d.ts +37 -0
- package/dist/mcps/knowledge-skills/testing-best-practices.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/testing-best-practices.server.js +865 -0
- package/dist/mcps/knowledge-skills/testing-best-practices.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/testing-strategy.server.d.ts +47 -0
- package/dist/mcps/knowledge-skills/testing-strategy.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/testing-strategy.server.js +672 -0
- package/dist/mcps/knowledge-skills/testing-strategy.server.js.map +1 -0
- package/dist/mcps/knowledge-skills/ui-ux-design.server.d.ts +42 -0
- package/dist/mcps/knowledge-skills/ui-ux-design.server.d.ts.map +1 -0
- package/dist/mcps/knowledge-skills/ui-ux-design.server.js +1016 -0
- package/dist/mcps/knowledge-skills/ui-ux-design.server.js.map +1 -0
- package/dist/mcps/lint.server.d.ts +18 -0
- package/dist/mcps/lint.server.d.ts.map +1 -0
- package/dist/mcps/lint.server.js +334 -0
- package/dist/mcps/lint.server.js.map +1 -0
- package/dist/mcps/model-health-check.server.d.ts +17 -0
- package/dist/mcps/model-health-check.server.d.ts.map +1 -0
- package/dist/mcps/model-health-check.server.js +226 -0
- package/dist/mcps/model-health-check.server.js.map +1 -0
- package/dist/mcps/orchestrator.server.d.ts +39 -0
- package/dist/mcps/orchestrator.server.d.ts.map +1 -0
- package/dist/mcps/orchestrator.server.js +908 -0
- package/dist/mcps/orchestrator.server.js.map +1 -0
- package/dist/mcps/performance-analysis.server.d.ts +28 -0
- package/dist/mcps/performance-analysis.server.d.ts.map +1 -0
- package/dist/mcps/performance-analysis.server.js +514 -0
- package/dist/mcps/performance-analysis.server.js.map +1 -0
- package/dist/mcps/processor-pipeline.server.d.ts +29 -0
- package/dist/mcps/processor-pipeline.server.d.ts.map +1 -0
- package/dist/mcps/processor-pipeline.server.js +520 -0
- package/dist/mcps/processor-pipeline.server.js.map +1 -0
- package/dist/mcps/security-scan.server.d.ts +20 -0
- package/dist/mcps/security-scan.server.d.ts.map +1 -0
- package/dist/mcps/security-scan.server.js +404 -0
- package/dist/mcps/security-scan.server.js.map +1 -0
- package/dist/mcps/state-manager.server.d.ts +29 -0
- package/dist/mcps/state-manager.server.d.ts.map +1 -0
- package/dist/mcps/state-manager.server.js +620 -0
- package/dist/mcps/state-manager.server.js.map +1 -0
- package/dist/orchestrator/enhanced-multi-agent-orchestrator.d.ts +109 -0
- package/dist/orchestrator/enhanced-multi-agent-orchestrator.d.ts.map +1 -0
- package/dist/orchestrator/enhanced-multi-agent-orchestrator.js +337 -0
- package/dist/orchestrator/enhanced-multi-agent-orchestrator.js.map +1 -0
- package/dist/orchestrator/intelligent-commit-batcher.d.ts +112 -0
- package/dist/orchestrator/intelligent-commit-batcher.d.ts.map +1 -0
- package/dist/orchestrator/intelligent-commit-batcher.js +330 -0
- package/dist/orchestrator/intelligent-commit-batcher.js.map +1 -0
- package/dist/plugin/agents/architect.d.ts +3 -0
- package/dist/plugin/agents/architect.d.ts.map +1 -0
- package/dist/plugin/agents/architect.js +84 -0
- package/dist/plugin/agents/architect.js.map +1 -0
- package/dist/plugin/agents/bug-triage-specialist.d.ts +3 -0
- package/dist/plugin/agents/bug-triage-specialist.d.ts.map +1 -0
- package/dist/plugin/agents/bug-triage-specialist.js +66 -0
- package/dist/plugin/agents/bug-triage-specialist.js.map +1 -0
- package/dist/plugin/agents/code-reviewer.d.ts +3 -0
- package/dist/plugin/agents/code-reviewer.d.ts.map +1 -0
- package/dist/plugin/agents/code-reviewer.js +66 -0
- package/dist/plugin/agents/code-reviewer.js.map +1 -0
- package/dist/plugin/agents/enforcer.d.ts +3 -0
- package/dist/plugin/agents/enforcer.d.ts.map +1 -0
- package/dist/plugin/agents/enforcer.js +109 -0
- package/dist/plugin/agents/enforcer.js.map +1 -0
- package/dist/plugin/agents/index.d.ts +15 -0
- package/dist/plugin/agents/index.d.ts.map +1 -0
- package/dist/plugin/agents/index.js +26 -0
- package/dist/plugin/agents/index.js.map +1 -0
- package/dist/plugin/agents/librarian.d.ts +3 -0
- package/dist/plugin/agents/librarian.d.ts.map +1 -0
- package/dist/plugin/agents/librarian.js +70 -0
- package/dist/plugin/agents/librarian.js.map +1 -0
- package/dist/plugin/agents/log-monitor.d.ts +3 -0
- package/dist/plugin/agents/log-monitor.d.ts.map +1 -0
- package/dist/plugin/agents/log-monitor.js +102 -0
- package/dist/plugin/agents/log-monitor.js.map +1 -0
- package/dist/plugin/agents/orchestrator.d.ts +3 -0
- package/dist/plugin/agents/orchestrator.d.ts.map +1 -0
- package/dist/plugin/agents/orchestrator.js +85 -0
- package/dist/plugin/agents/orchestrator.js.map +1 -0
- package/dist/plugin/agents/refactorer.d.ts +3 -0
- package/dist/plugin/agents/refactorer.d.ts.map +1 -0
- package/dist/plugin/agents/refactorer.js +67 -0
- package/dist/plugin/agents/refactorer.js.map +1 -0
- package/dist/plugin/agents/security-auditor.d.ts +3 -0
- package/dist/plugin/agents/security-auditor.d.ts.map +1 -0
- package/dist/plugin/agents/security-auditor.js +66 -0
- package/dist/plugin/agents/security-auditor.js.map +1 -0
- package/dist/plugin/agents/sisyphus.d.ts +3 -0
- package/dist/plugin/agents/sisyphus.d.ts.map +1 -0
- package/dist/plugin/agents/sisyphus.js +53 -0
- package/dist/plugin/agents/sisyphus.js.map +1 -0
- package/dist/plugin/agents/test-architect.d.ts +3 -0
- package/dist/plugin/agents/test-architect.d.ts.map +1 -0
- package/dist/plugin/agents/test-architect.js +81 -0
- package/dist/plugin/agents/test-architect.js.map +1 -0
- package/dist/plugin/agents/types.d.ts +29 -0
- package/dist/plugin/agents/types.d.ts.map +1 -0
- package/dist/plugin/agents/types.js +2 -0
- package/dist/plugin/agents/types.js.map +1 -0
- package/dist/plugin/config-loader.d.ts +67 -0
- package/dist/plugin/config-loader.d.ts.map +1 -0
- package/dist/plugin/config-loader.js +125 -0
- package/dist/plugin/config-loader.js.map +1 -0
- package/dist/plugin/context-loader.d.ts +122 -0
- package/dist/plugin/context-loader.d.ts.map +1 -0
- package/dist/plugin/context-loader.js +273 -0
- package/dist/plugin/context-loader.js.map +1 -0
- package/dist/plugin/delegation/agent-delegator.d.ts +217 -0
- package/dist/plugin/delegation/agent-delegator.d.ts.map +1 -0
- package/dist/plugin/delegation/agent-delegator.js +928 -0
- package/dist/plugin/delegation/agent-delegator.js.map +1 -0
- package/dist/plugin/delegation/codebase-context-analyzer.d.ts +157 -0
- package/dist/plugin/delegation/codebase-context-analyzer.d.ts.map +1 -0
- package/dist/plugin/delegation/codebase-context-analyzer.js +1029 -0
- package/dist/plugin/delegation/codebase-context-analyzer.js.map +1 -0
- package/dist/plugin/delegation/complexity-analyzer.d.ts +61 -0
- package/dist/plugin/delegation/complexity-analyzer.d.ts.map +1 -0
- package/dist/plugin/delegation/complexity-analyzer.js +253 -0
- package/dist/plugin/delegation/complexity-analyzer.js.map +1 -0
- package/dist/plugin/enforcement/enforcer-tools.d.ts +62 -0
- package/dist/plugin/enforcement/enforcer-tools.d.ts.map +1 -0
- package/dist/plugin/enforcement/enforcer-tools.js +407 -0
- package/dist/plugin/enforcement/enforcer-tools.js.map +1 -0
- package/dist/plugin/enforcement/rule-enforcer.d.ts +171 -0
- package/dist/plugin/enforcement/rule-enforcer.d.ts.map +1 -0
- package/dist/plugin/enforcement/rule-enforcer.js +1342 -0
- package/dist/plugin/enforcement/rule-enforcer.js.map +1 -0
- package/dist/plugin/enforcement/test-auto-healing.d.ts +78 -0
- package/dist/plugin/enforcement/test-auto-healing.d.ts.map +1 -0
- package/dist/plugin/enforcement/test-auto-healing.js +318 -0
- package/dist/plugin/enforcement/test-auto-healing.js.map +1 -0
- package/dist/plugin/framework-logger.d.ts +20 -0
- package/dist/plugin/framework-logger.d.ts.map +1 -0
- package/dist/plugin/framework-logger.js +79 -0
- package/dist/plugin/framework-logger.js.map +1 -0
- package/dist/plugin/logging-config.d.ts +11 -0
- package/dist/plugin/logging-config.d.ts.map +1 -0
- package/dist/plugin/logging-config.js +44 -0
- package/dist/plugin/logging-config.js.map +1 -0
- package/dist/plugin/mcps/architect-tools.server.d.ts +40 -0
- package/dist/plugin/mcps/architect-tools.server.d.ts.map +1 -0
- package/dist/plugin/mcps/architect-tools.server.js +563 -0
- package/dist/plugin/mcps/architect-tools.server.js.map +1 -0
- package/dist/plugin/mcps/auto-format.server.d.ts +20 -0
- package/dist/plugin/mcps/auto-format.server.d.ts.map +1 -0
- package/dist/plugin/mcps/auto-format.server.js +391 -0
- package/dist/plugin/mcps/auto-format.server.js.map +1 -0
- package/dist/plugin/mcps/boot-orchestrator.server.d.ts +50 -0
- package/dist/plugin/mcps/boot-orchestrator.server.d.ts.map +1 -0
- package/dist/plugin/mcps/boot-orchestrator.server.js +871 -0
- package/dist/plugin/mcps/boot-orchestrator.server.js.map +1 -0
- package/dist/plugin/mcps/enforcer-tools.server.d.ts +26 -0
- package/dist/plugin/mcps/enforcer-tools.server.d.ts.map +1 -0
- package/dist/plugin/mcps/enforcer-tools.server.js +627 -0
- package/dist/plugin/mcps/enforcer-tools.server.js.map +1 -0
- package/dist/plugin/mcps/enhanced-orchestrator.server.d.ts +14 -0
- package/dist/plugin/mcps/enhanced-orchestrator.server.d.ts.map +1 -0
- package/dist/plugin/mcps/enhanced-orchestrator.server.js +250 -0
- package/dist/plugin/mcps/enhanced-orchestrator.server.js.map +1 -0
- package/dist/plugin/mcps/framework-compliance-audit.server.d.ts +23 -0
- package/dist/plugin/mcps/framework-compliance-audit.server.d.ts.map +1 -0
- package/dist/plugin/mcps/framework-compliance-audit.server.js +511 -0
- package/dist/plugin/mcps/framework-compliance-audit.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/api-design.server.d.ts +16 -0
- package/dist/plugin/mcps/knowledge-skills/api-design.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/api-design.server.js +120 -0
- package/dist/plugin/mcps/knowledge-skills/api-design.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/architecture-patterns.server.d.ts +16 -0
- package/dist/plugin/mcps/knowledge-skills/architecture-patterns.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/architecture-patterns.server.js +110 -0
- package/dist/plugin/mcps/knowledge-skills/architecture-patterns.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/code-review.server.d.ts +32 -0
- package/dist/plugin/mcps/knowledge-skills/code-review.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/code-review.server.js +777 -0
- package/dist/plugin/mcps/knowledge-skills/code-review.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/database-design.server.d.ts +44 -0
- package/dist/plugin/mcps/knowledge-skills/database-design.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/database-design.server.js +818 -0
- package/dist/plugin/mcps/knowledge-skills/database-design.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/devops-deployment.server.d.ts +44 -0
- package/dist/plugin/mcps/knowledge-skills/devops-deployment.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/devops-deployment.server.js +1178 -0
- package/dist/plugin/mcps/knowledge-skills/devops-deployment.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/documentation-generation.server.d.ts +48 -0
- package/dist/plugin/mcps/knowledge-skills/documentation-generation.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/documentation-generation.server.js +1188 -0
- package/dist/plugin/mcps/knowledge-skills/documentation-generation.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/git-workflow.server.d.ts +16 -0
- package/dist/plugin/mcps/knowledge-skills/git-workflow.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/git-workflow.server.js +112 -0
- package/dist/plugin/mcps/knowledge-skills/git-workflow.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/performance-optimization.server.d.ts +16 -0
- package/dist/plugin/mcps/knowledge-skills/performance-optimization.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/performance-optimization.server.js +108 -0
- package/dist/plugin/mcps/knowledge-skills/performance-optimization.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/project-analysis.server.d.ts +34 -0
- package/dist/plugin/mcps/knowledge-skills/project-analysis.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/project-analysis.server.js +710 -0
- package/dist/plugin/mcps/knowledge-skills/project-analysis.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/refactoring-strategies.server.d.ts +34 -0
- package/dist/plugin/mcps/knowledge-skills/refactoring-strategies.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/refactoring-strategies.server.js +794 -0
- package/dist/plugin/mcps/knowledge-skills/refactoring-strategies.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/security-audit.server.d.ts +34 -0
- package/dist/plugin/mcps/knowledge-skills/security-audit.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/security-audit.server.js +769 -0
- package/dist/plugin/mcps/knowledge-skills/security-audit.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/testing-best-practices.server.d.ts +37 -0
- package/dist/plugin/mcps/knowledge-skills/testing-best-practices.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/testing-best-practices.server.js +865 -0
- package/dist/plugin/mcps/knowledge-skills/testing-best-practices.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/testing-strategy.server.d.ts +47 -0
- package/dist/plugin/mcps/knowledge-skills/testing-strategy.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/testing-strategy.server.js +672 -0
- package/dist/plugin/mcps/knowledge-skills/testing-strategy.server.js.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/ui-ux-design.server.d.ts +42 -0
- package/dist/plugin/mcps/knowledge-skills/ui-ux-design.server.d.ts.map +1 -0
- package/dist/plugin/mcps/knowledge-skills/ui-ux-design.server.js +1016 -0
- package/dist/plugin/mcps/knowledge-skills/ui-ux-design.server.js.map +1 -0
- package/dist/plugin/mcps/lint.server.d.ts +18 -0
- package/dist/plugin/mcps/lint.server.d.ts.map +1 -0
- package/dist/plugin/mcps/lint.server.js +334 -0
- package/dist/plugin/mcps/lint.server.js.map +1 -0
- package/dist/plugin/mcps/model-health-check.server.d.ts +17 -0
- package/dist/plugin/mcps/model-health-check.server.d.ts.map +1 -0
- package/dist/plugin/mcps/model-health-check.server.js +226 -0
- package/dist/plugin/mcps/model-health-check.server.js.map +1 -0
- package/dist/plugin/mcps/orchestrator.server.d.ts +39 -0
- package/dist/plugin/mcps/orchestrator.server.d.ts.map +1 -0
- package/dist/plugin/mcps/orchestrator.server.js +908 -0
- package/dist/plugin/mcps/orchestrator.server.js.map +1 -0
- package/dist/plugin/mcps/performance-analysis.server.d.ts +28 -0
- package/dist/plugin/mcps/performance-analysis.server.d.ts.map +1 -0
- package/dist/plugin/mcps/performance-analysis.server.js +514 -0
- package/dist/plugin/mcps/performance-analysis.server.js.map +1 -0
- package/dist/plugin/mcps/processor-pipeline.server.d.ts +29 -0
- package/dist/plugin/mcps/processor-pipeline.server.d.ts.map +1 -0
- package/dist/plugin/mcps/processor-pipeline.server.js +520 -0
- package/dist/plugin/mcps/processor-pipeline.server.js.map +1 -0
- package/dist/plugin/mcps/security-scan.server.d.ts +20 -0
- package/dist/plugin/mcps/security-scan.server.d.ts.map +1 -0
- package/dist/plugin/mcps/security-scan.server.js +404 -0
- package/dist/plugin/mcps/security-scan.server.js.map +1 -0
- package/dist/plugin/mcps/state-manager.server.d.ts +29 -0
- package/dist/plugin/mcps/state-manager.server.d.ts.map +1 -0
- package/dist/plugin/mcps/state-manager.server.js +620 -0
- package/dist/plugin/mcps/state-manager.server.js.map +1 -0
- package/dist/plugin/monitoring/advanced-profiler.d.ts +48 -0
- package/dist/plugin/monitoring/advanced-profiler.d.ts.map +1 -0
- package/dist/plugin/monitoring/advanced-profiler.js +216 -0
- package/dist/plugin/monitoring/advanced-profiler.js.map +1 -0
- package/dist/plugin/monitoring/enterprise-monitoring-system.d.ts +331 -0
- package/dist/plugin/monitoring/enterprise-monitoring-system.d.ts.map +1 -0
- package/dist/plugin/monitoring/enterprise-monitoring-system.js +797 -0
- package/dist/plugin/monitoring/enterprise-monitoring-system.js.map +1 -0
- package/dist/plugin/orchestrator/enhanced-multi-agent-orchestrator.d.ts +111 -0
- package/dist/plugin/orchestrator/enhanced-multi-agent-orchestrator.d.ts.map +1 -0
- package/dist/plugin/orchestrator/enhanced-multi-agent-orchestrator.js +339 -0
- package/dist/plugin/orchestrator/enhanced-multi-agent-orchestrator.js.map +1 -0
- package/dist/plugin/orchestrator/intelligent-commit-batcher.d.ts +112 -0
- package/dist/plugin/orchestrator/intelligent-commit-batcher.d.ts.map +1 -0
- package/dist/plugin/orchestrator/intelligent-commit-batcher.js +330 -0
- package/dist/plugin/orchestrator/intelligent-commit-batcher.js.map +1 -0
- package/dist/plugin/orchestrator.d.ts +91 -0
- package/dist/plugin/orchestrator.d.ts.map +1 -0
- package/dist/plugin/orchestrator.js +444 -0
- package/dist/plugin/orchestrator.js.map +1 -0
- package/dist/plugin/plugins/marketplace/marketplace-service.d.ts +108 -0
- package/dist/plugin/plugins/marketplace/marketplace-service.d.ts.map +1 -0
- package/dist/plugin/plugins/marketplace/marketplace-service.js +620 -0
- package/dist/plugin/plugins/marketplace/marketplace-service.js.map +1 -0
- package/dist/plugin/plugins/marketplace/marketplace-types.d.ts +468 -0
- package/dist/plugin/plugins/marketplace/marketplace-types.d.ts.map +1 -0
- package/dist/plugin/plugins/marketplace/marketplace-types.js +11 -0
- package/dist/plugin/plugins/marketplace/marketplace-types.js.map +1 -0
- package/dist/plugin/plugins/plugin-system.d.ts +152 -0
- package/dist/plugin/plugins/plugin-system.d.ts.map +1 -0
- package/dist/plugin/plugins/plugin-system.js +405 -0
- package/dist/plugin/plugins/plugin-system.js.map +1 -0
- package/dist/plugin/plugins/stringray-codex-injection.d.ts +68 -0
- package/dist/plugin/plugins/stringray-codex-injection.d.ts.map +1 -0
- package/dist/plugin/plugins/stringray-codex-injection.js +225 -0
- package/dist/plugin/plugins/stringray-codex-injection.js.map +1 -0
- package/dist/plugin/plugins/strray-codex-injection.d.ts +68 -0
- package/dist/plugin/plugins/strray-codex-injection.d.ts.map +1 -0
- package/dist/plugin/plugins/strray-codex-injection.js +225 -0
- package/dist/plugin/plugins/strray-codex-injection.js.map +1 -0
- package/dist/plugin/processors/index.d.ts +12 -0
- package/dist/plugin/processors/index.d.ts.map +1 -0
- package/dist/plugin/processors/index.js +12 -0
- package/dist/plugin/processors/index.js.map +1 -0
- package/dist/plugin/processors/processor-manager.d.ts +113 -0
- package/dist/plugin/processors/processor-manager.d.ts.map +1 -0
- package/dist/plugin/processors/processor-manager.js +498 -0
- package/dist/plugin/processors/processor-manager.js.map +1 -0
- package/dist/plugin/processors/processor-types.d.ts +50 -0
- package/dist/plugin/processors/processor-types.d.ts.map +1 -0
- package/dist/plugin/processors/processor-types.js +10 -0
- package/dist/plugin/processors/processor-types.js.map +1 -0
- package/dist/plugin/processors/refactoring-logging-processor.d.ts +61 -0
- package/dist/plugin/processors/refactoring-logging-processor.d.ts.map +1 -0
- package/dist/plugin/processors/refactoring-logging-processor.js +257 -0
- package/dist/plugin/processors/refactoring-logging-processor.js.map +1 -0
- package/dist/plugin/reporting/framework-reporting-system.d.ts +157 -0
- package/dist/plugin/reporting/framework-reporting-system.d.ts.map +1 -0
- package/dist/plugin/reporting/framework-reporting-system.js +783 -0
- package/dist/plugin/reporting/framework-reporting-system.js.map +1 -0
- package/dist/plugin/security/security-hardening-system.d.ts +220 -0
- package/dist/plugin/security/security-hardening-system.d.ts.map +1 -0
- package/dist/plugin/security/security-hardening-system.js +605 -0
- package/dist/plugin/security/security-hardening-system.js.map +1 -0
- package/dist/plugin/state/context-providers.d.ts +5 -0
- package/dist/plugin/state/context-providers.d.ts.map +1 -0
- package/dist/plugin/state/context-providers.js +2 -0
- package/dist/plugin/state/context-providers.js.map +1 -0
- package/dist/plugin/state/index.d.ts +5 -0
- package/dist/plugin/state/index.d.ts.map +1 -0
- package/dist/plugin/state/index.js +8 -0
- package/dist/plugin/state/index.js.map +1 -0
- package/dist/plugin/state/state-manager.d.ts +29 -0
- package/dist/plugin/state/state-manager.d.ts.map +1 -0
- package/dist/plugin/state/state-manager.js +153 -0
- package/dist/plugin/state/state-manager.js.map +1 -0
- package/dist/plugin/state/state-types.d.ts +6 -0
- package/dist/plugin/state/state-types.d.ts.map +1 -0
- package/dist/plugin/state/state-types.js +2 -0
- package/dist/plugin/state/state-types.js.map +1 -0
- package/dist/plugin/utils/codex-parser.d.ts +62 -0
- package/dist/plugin/utils/codex-parser.d.ts.map +1 -0
- package/dist/plugin/utils/codex-parser.js +396 -0
- package/dist/plugin/utils/codex-parser.js.map +1 -0
- package/dist/plugin/utils/command-runner.d.ts +24 -0
- package/dist/plugin/utils/command-runner.d.ts.map +1 -0
- package/dist/plugin/utils/command-runner.js +44 -0
- package/dist/plugin/utils/command-runner.js.map +1 -0
- package/dist/plugin/utils/import-resolver.d.ts +55 -0
- package/dist/plugin/utils/import-resolver.d.ts.map +1 -0
- package/dist/plugin/utils/import-resolver.js +198 -0
- package/dist/plugin/utils/import-resolver.js.map +1 -0
- package/dist/plugin/utils/memory-pool.d.ts +90 -0
- package/dist/plugin/utils/memory-pool.d.ts.map +1 -0
- package/dist/plugin/utils/memory-pool.js +245 -0
- package/dist/plugin/utils/memory-pool.js.map +1 -0
- package/dist/plugin/utils/path-resolver.d.ts +49 -0
- package/dist/plugin/utils/path-resolver.d.ts.map +1 -0
- package/dist/plugin/utils/path-resolver.js +126 -0
- package/dist/plugin/utils/path-resolver.js.map +1 -0
- package/dist/plugin/utils/test-template-generator.d.ts +26 -0
- package/dist/plugin/utils/test-template-generator.d.ts.map +1 -0
- package/dist/plugin/utils/test-template-generator.js +178 -0
- package/dist/plugin/utils/test-template-generator.js.map +1 -0
- package/dist/processors/index.d.ts +12 -0
- package/dist/processors/index.d.ts.map +1 -0
- package/dist/processors/index.js +12 -0
- package/dist/processors/index.js.map +1 -0
- package/dist/processors/processor-manager.d.ts +113 -0
- package/dist/processors/processor-manager.d.ts.map +1 -0
- package/dist/processors/processor-manager.js +498 -0
- package/dist/processors/processor-manager.js.map +1 -0
- package/dist/processors/processor-types.d.ts +50 -0
- package/dist/processors/processor-types.d.ts.map +1 -0
- package/dist/processors/processor-types.js +10 -0
- package/dist/processors/processor-types.js.map +1 -0
- package/dist/processors/refactoring-logging-processor.d.ts +61 -0
- package/dist/processors/refactoring-logging-processor.d.ts.map +1 -0
- package/dist/processors/refactoring-logging-processor.js +257 -0
- package/dist/processors/refactoring-logging-processor.js.map +1 -0
- package/dist/state/context-providers.d.ts +5 -0
- package/dist/state/context-providers.d.ts.map +1 -0
- package/dist/state/context-providers.js +2 -0
- package/dist/state/context-providers.js.map +1 -0
- package/dist/state/index.d.ts +5 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +8 -0
- package/dist/state/index.js.map +1 -0
- package/dist/state/state-manager.d.ts +29 -0
- package/dist/state/state-manager.d.ts.map +1 -0
- package/dist/state/state-manager.js +153 -0
- package/dist/state/state-manager.js.map +1 -0
- package/dist/state/state-types.d.ts +6 -0
- package/dist/state/state-types.d.ts.map +1 -0
- package/dist/state/state-types.js +2 -0
- package/dist/state/state-types.js.map +1 -0
- package/dist/utils/codex-parser.d.ts +62 -0
- package/dist/utils/codex-parser.d.ts.map +1 -0
- package/dist/utils/codex-parser.js +396 -0
- package/dist/utils/codex-parser.js.map +1 -0
- package/dist/utils/command-runner.d.ts +24 -0
- package/dist/utils/command-runner.d.ts.map +1 -0
- package/dist/utils/command-runner.js +44 -0
- package/dist/utils/command-runner.js.map +1 -0
- package/dist/utils/import-resolver.d.ts +55 -0
- package/dist/utils/import-resolver.d.ts.map +1 -0
- package/dist/utils/import-resolver.js +198 -0
- package/dist/utils/import-resolver.js.map +1 -0
- package/dist/utils/memory-pool.d.ts +90 -0
- package/dist/utils/memory-pool.d.ts.map +1 -0
- package/dist/utils/memory-pool.js +245 -0
- package/dist/utils/memory-pool.js.map +1 -0
- package/dist/utils/path-resolver.d.ts +49 -0
- package/dist/utils/path-resolver.d.ts.map +1 -0
- package/dist/utils/path-resolver.js +126 -0
- package/dist/utils/path-resolver.js.map +1 -0
- package/dist/utils/test-template-generator.d.ts +26 -0
- package/dist/utils/test-template-generator.d.ts.map +1 -0
- package/dist/utils/test-template-generator.js +178 -0
- package/dist/utils/test-template-generator.js.map +1 -0
- package/package.json +138 -0
- package/scripts/analysis/analyze-context-awareness.ts +219 -0
- package/scripts/analysis/analyze-framework-usage.ts +208 -0
- package/scripts/analysis/analyzer-agent-runner.js +328 -0
- package/scripts/analysis/context-awareness-report.ts +250 -0
- package/scripts/analyze-imports.mjs +147 -0
- package/scripts/basic-security-audit.cjs +261 -0
- package/scripts/boot-check.cjs +188 -0
- package/scripts/build/check-syntax.sh +1 -0
- package/scripts/build/check-tsc.sh +1 -0
- package/scripts/build/check-types.sh +1 -0
- package/scripts/build/compile-single.sh +1 -0
- package/scripts/build/copy-plugin.sh +1 -0
- package/scripts/build/manual-build.sh +1 -0
- package/scripts/build/run-build-after-copy.sh +1 -0
- package/scripts/build/run-build-attempt.sh +1 -0
- package/scripts/build/run-build-errors-grep.sh +1 -0
- package/scripts/build/run-build-errors.sh +1 -0
- package/scripts/build/run-build-limited.sh +1 -0
- package/scripts/build/run-build-list.sh +1 -0
- package/scripts/build/run-build.sh +1 -0
- package/scripts/build/run-limited.sh +1 -0
- package/scripts/build/run-tsc-direct.sh +1 -0
- package/scripts/build/run-type-check.sh +1 -0
- package/scripts/build/run-typecheck.sh +1 -0
- package/scripts/build/test-build.sh +1 -0
- package/scripts/check-logs.sh +62 -0
- package/scripts/debug/debug-context-enhancement.ts +116 -0
- package/scripts/debug/debug-rules.mjs +23 -0
- package/scripts/demo/demo-clickable-monitoring.mjs +116 -0
- package/scripts/demo/profiling-demo.js +108 -0
- package/scripts/demo/profiling-demo.ts +126 -0
- package/scripts/demo/reporting-demonstration.ts +184 -0
- package/scripts/demo/reporting-examples.ts +105 -0
- package/scripts/dependency-scan.cjs +111 -0
- package/scripts/deploy-stringray-plugin.sh +323 -0
- package/scripts/disable-logging.sh +20 -0
- package/scripts/extract-framework.sh +405 -0
- package/scripts/fix-mcp-capabilities.js +83 -0
- package/scripts/framework/advanced-profiling-integration.sh +384 -0
- package/scripts/framework/check-agent-orchestration-health.sh +113 -0
- package/scripts/framework/enterprise-analysis-test.sh +174 -0
- package/scripts/framework/implement-analyzer-agent.sh +393 -0
- package/scripts/framework/merge-mcp-configs.sh +201 -0
- package/scripts/framework/validate-multi-agent-orchestration.sh +195 -0
- package/scripts/framework/validate-profiling.sh +64 -0
- package/scripts/github-actions-monitor.cjs +289 -0
- package/scripts/init.ts +121 -0
- package/scripts/monitoring/initialize-monitoring-pipeline.sh +89 -0
- package/scripts/monitoring/memory-dashboard.sh +52 -0
- package/scripts/monitoring/monitoring-daemon.mjs +67 -0
- package/scripts/monitoring/monitoring-daemon.sh +190 -0
- package/scripts/monitoring/profiling-dashboard.sh +69 -0
- package/scripts/performance-report.js +56 -0
- package/scripts/postinstall.cjs +240 -0
- package/scripts/profile-performance.sh +263 -0
- package/scripts/register-mcp-servers-fixed.sh +74 -0
- package/scripts/register-mcp-servers.sh +96 -0
- package/scripts/reporting/generate-phase1-report.js +28 -0
- package/scripts/reporting/run-postprocessor.js +59 -0
- package/scripts/reporting/trigger-report.js +15 -0
- package/scripts/run-simulations.mjs +29 -0
- package/scripts/scenario-data-processor.py +122 -0
- package/scripts/scenarios/scenario-security-check.ts +60 -0
- package/scripts/scenarios/scenario-user-management.ts +123 -0
- package/scripts/setup.cjs +128 -0
- package/scripts/simulation/run-simulations.js +84 -0
- package/scripts/simulation/simulate-full-orchestrator.ts +239 -0
- package/scripts/strray-triage.sh +349 -0
- package/scripts/test/run-memory-regression.sh +45 -0
- package/scripts/test/run-test.sh +2 -0
- package/scripts/test/test-deployment.sh +552 -0
- package/scripts/test/test-enhanced-report.ts +24 -0
- package/scripts/test/test-graceful-shutdown.sh +35 -0
- package/scripts/test/test-integration.mjs +79 -0
- package/scripts/test/test-manual-orchestration.sh +168 -0
- package/scripts/test/test-max-agents.sh +70 -0
- package/scripts/test/test-memory-monitor.sh +40 -0
- package/scripts/test/test-memory-pools.sh +58 -0
- package/scripts/test/test-module.ts +1 -0
- package/scripts/test/test-multi-agent-trigger.sh +251 -0
- package/scripts/test/test-orchestrator.txt +1 -0
- package/scripts/test/test-postinstall.js +1 -0
- package/scripts/test/test-security-module.ts +27 -0
- package/scripts/test/test-session-management.js +135 -0
- package/scripts/test/test-simulation.mjs +14 -0
- package/scripts/test/test-user-service.ts +111 -0
- package/scripts/test-comprehensive-path-resolution.mjs +62 -0
- package/scripts/test-data-processor.py +51 -0
- package/scripts/test-enforcement-e2e.mjs +127 -0
- package/scripts/test-full-plugin-no-timeout.sh +30 -0
- package/scripts/test-path-resolver.mjs +32 -0
- package/scripts/test-rules.mjs +128 -0
- package/scripts/test-stringray-plugin.mjs +66 -0
- package/scripts/test-utils/smart-test-runner.mjs +609 -0
- package/scripts/test-utils/test-quarantine.mjs +246 -0
- package/scripts/validate-codex.js +60 -0
- package/scripts/validate-phase1.mjs +189 -0
- package/scripts/validation/run-validators.js +114 -0
- package/scripts/validation/validate-external-processes.js +240 -0
- package/scripts/validation/validate-mcp-connectivity.js +165 -0
- package/scripts/validation/validate-oh-my-opencode-integration.js +200 -0
- package/scripts/validation/validate-reports.ts +114 -0
- package/scripts/verify-phase1.js +144 -0
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
echo "=== StrRay Framework Plugin Testing and Validation Process ==="
|
|
4
|
+
echo "Testing Date: $(date)"
|
|
5
|
+
echo "Node Version: $(node --version)"
|
|
6
|
+
echo "NPM Version: $(npm --version)"
|
|
7
|
+
echo "Working Directory: $(pwd)"
|
|
8
|
+
echo ""
|
|
9
|
+
|
|
10
|
+
echo "=== Phase 1: Package Build & Distribution Testing ==="
|
|
11
|
+
|
|
12
|
+
echo "1.1 TypeScript Compilation Verification"
|
|
13
|
+
echo "Running: npm run build:plugin"
|
|
14
|
+
if npm run build:plugin; then
|
|
15
|
+
echo "โ
TypeScript compilation successful"
|
|
16
|
+
else
|
|
17
|
+
echo "โ TypeScript compilation failed"
|
|
18
|
+
exit 1
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
echo ""
|
|
22
|
+
echo "1.2 NPM Pack Tarball Creation and Validation"
|
|
23
|
+
echo "Running: npm pack --dry-run"
|
|
24
|
+
if npm pack --dry-run > pack-output.txt 2>&1; then
|
|
25
|
+
echo "โ
NPM pack dry-run successful"
|
|
26
|
+
echo "Pack output (first 20 lines):"
|
|
27
|
+
head -20 pack-output.txt
|
|
28
|
+
else
|
|
29
|
+
echo "โ NPM pack dry-run failed"
|
|
30
|
+
head -20 pack-output.txt
|
|
31
|
+
exit 1
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
echo ""
|
|
35
|
+
echo "1.3 Package Size and File Count Verification"
|
|
36
|
+
echo "Running: npm pack"
|
|
37
|
+
if PACK_FILE=$(npm pack 2>/dev/null | tail -1); then
|
|
38
|
+
echo "โ
NPM pack successful: $PACK_FILE"
|
|
39
|
+
|
|
40
|
+
# Get file size
|
|
41
|
+
PACK_SIZE=$(ls -lh "$PACK_FILE" | awk '{print $5}')
|
|
42
|
+
echo "Package size: $PACK_SIZE"
|
|
43
|
+
|
|
44
|
+
# Extract and count files
|
|
45
|
+
tar -tf "$PACK_FILE" | wc -l | xargs echo "Total files in package:"
|
|
46
|
+
echo "Package contents (first 20 files):"
|
|
47
|
+
tar -tf "$PACK_FILE" | head -20
|
|
48
|
+
|
|
49
|
+
rm -rf "$PACK_FILE"
|
|
50
|
+
else
|
|
51
|
+
echo "โ NPM pack failed"
|
|
52
|
+
exit 1
|
|
53
|
+
fi
|
|
54
|
+
|
|
55
|
+
echo ""
|
|
56
|
+
echo "1.4 Dry-run Publish Validation"
|
|
57
|
+
echo "Running: npm publish --dry-run"
|
|
58
|
+
if npm publish --dry-run > publish-dry-run.txt 2>&1; then
|
|
59
|
+
echo "โ
NPM publish dry-run successful"
|
|
60
|
+
echo "Publish dry-run output (first 20 lines):"
|
|
61
|
+
head -20 publish-dry-run.txt
|
|
62
|
+
else
|
|
63
|
+
echo "โ NPM publish dry-run failed"
|
|
64
|
+
head -20 publish-dry-run.txt
|
|
65
|
+
exit 1
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
echo ""
|
|
69
|
+
echo "=== Phase 2: Installation Testing ==="
|
|
70
|
+
|
|
71
|
+
echo "2.1 Local .tar.gz Installation Testing"
|
|
72
|
+
echo "Creating test directory and installing locally"
|
|
73
|
+
mkdir -p test-install
|
|
74
|
+
cd test-install
|
|
75
|
+
|
|
76
|
+
# Create package tarball
|
|
77
|
+
cd ..
|
|
78
|
+
npm pack > /dev/null 2>&1
|
|
79
|
+
PACK_FILE=$(ls *.tgz | head -1)
|
|
80
|
+
cd test-install
|
|
81
|
+
|
|
82
|
+
echo "Installing package: ../$PACK_FILE"
|
|
83
|
+
if npm install "../$PACK_FILE"; then
|
|
84
|
+
echo "โ
Local installation successful"
|
|
85
|
+
|
|
86
|
+
# Check if plugin file exists
|
|
87
|
+
if [ -f "node_modules/strray/dist/plugin/plugins/strray-codex-injection.js" ]; then
|
|
88
|
+
echo "โ
Plugin file found in node_modules"
|
|
89
|
+
else
|
|
90
|
+
echo "โ Plugin file not found in node_modules"
|
|
91
|
+
exit 1
|
|
92
|
+
fi
|
|
93
|
+
else
|
|
94
|
+
echo "โ Local installation failed"
|
|
95
|
+
exit 1
|
|
96
|
+
fi
|
|
97
|
+
|
|
98
|
+
cd ..
|
|
99
|
+
rm -rf test-install *.tgz
|
|
100
|
+
|
|
101
|
+
echo ""
|
|
102
|
+
echo "2.2 Postinstall Script Execution Verification"
|
|
103
|
+
echo "Testing postinstall script directly"
|
|
104
|
+
if node scripts/postinstall.cjs; then
|
|
105
|
+
echo "โ
Postinstall script executed successfully"
|
|
106
|
+
else
|
|
107
|
+
echo "โ Postinstall script failed"
|
|
108
|
+
exit 1
|
|
109
|
+
fi
|
|
110
|
+
|
|
111
|
+
echo ""
|
|
112
|
+
echo "2.3 oh-my-opencode Configuration Generation"
|
|
113
|
+
echo "Testing configuration generation"
|
|
114
|
+
mkdir -p test-config
|
|
115
|
+
cd test-config
|
|
116
|
+
|
|
117
|
+
# Create minimal package.json
|
|
118
|
+
cat > package.json << 'EOF'
|
|
119
|
+
{
|
|
120
|
+
"name": "test-config",
|
|
121
|
+
"version": "1.0.0"
|
|
122
|
+
}
|
|
123
|
+
EOF
|
|
124
|
+
|
|
125
|
+
# Install the package
|
|
126
|
+
cd ..
|
|
127
|
+
npm pack > /dev/null 2>&1
|
|
128
|
+
PACK_FILE=$(ls *.tgz | head -1)
|
|
129
|
+
cd test-config
|
|
130
|
+
npm install "../$PACK_FILE" > /dev/null 2>&1
|
|
131
|
+
|
|
132
|
+
# Check if config was created
|
|
133
|
+
if [ -f ".opencode/oh-my-opencode.json" ]; then
|
|
134
|
+
echo "โ
oh-my-opencode.json created"
|
|
135
|
+
echo "Configuration content (first 10 lines):"
|
|
136
|
+
head -10 .opencode/oh-my-opencode.json
|
|
137
|
+
else
|
|
138
|
+
echo "โ oh-my-opencode.json not created"
|
|
139
|
+
exit 1
|
|
140
|
+
fi
|
|
141
|
+
|
|
142
|
+
cd ..
|
|
143
|
+
rm -rf test-config *.tgz
|
|
144
|
+
|
|
145
|
+
echo ""
|
|
146
|
+
echo "2.4 Plugin Registration Validation"
|
|
147
|
+
echo "Testing plugin registration in config"
|
|
148
|
+
mkdir -p test-registration
|
|
149
|
+
cd test-registration
|
|
150
|
+
|
|
151
|
+
# Create minimal package.json
|
|
152
|
+
cat > package.json << 'EOF'
|
|
153
|
+
{
|
|
154
|
+
"name": "test-registration",
|
|
155
|
+
"version": "1.0.0"
|
|
156
|
+
}
|
|
157
|
+
EOF
|
|
158
|
+
|
|
159
|
+
# Install and check registration
|
|
160
|
+
cd ..
|
|
161
|
+
npm pack > /dev/null 2>&1
|
|
162
|
+
PACK_FILE=$(ls *.tgz | head -1)
|
|
163
|
+
cd test-registration
|
|
164
|
+
npm install "../$PACK_FILE" > /dev/null 2>&1
|
|
165
|
+
|
|
166
|
+
if grep -q "strray" .opencode/oh-my-opencode.json; then
|
|
167
|
+
echo "โ
Plugin registered in configuration"
|
|
168
|
+
else
|
|
169
|
+
echo "โ Plugin not registered in configuration"
|
|
170
|
+
exit 1
|
|
171
|
+
fi
|
|
172
|
+
|
|
173
|
+
cd ..
|
|
174
|
+
rm -rf test-registration *.tgz
|
|
175
|
+
|
|
176
|
+
echo ""
|
|
177
|
+
echo "=== Phase 3: Plugin Functionality Testing ==="
|
|
178
|
+
|
|
179
|
+
echo "3.1 ES Module Loading Verification"
|
|
180
|
+
echo "Testing ES module imports"
|
|
181
|
+
node -e "
|
|
182
|
+
try {
|
|
183
|
+
// Test if we can import the built plugin
|
|
184
|
+
const fs = require('fs');
|
|
185
|
+
const path = require('path');
|
|
186
|
+
|
|
187
|
+
const pluginPath = path.join(process.cwd(), 'dist/plugin/plugins/strray-codex-injection.js');
|
|
188
|
+
if (fs.existsSync(pluginPath)) {
|
|
189
|
+
console.log('โ
Plugin file exists');
|
|
190
|
+
|
|
191
|
+
// Try to load the module (basic syntax check)
|
|
192
|
+
const content = fs.readFileSync(pluginPath, 'utf-8');
|
|
193
|
+
if (content.includes('export default')) {
|
|
194
|
+
console.log('โ
ES module export found');
|
|
195
|
+
} else {
|
|
196
|
+
console.log('โ ES module export not found');
|
|
197
|
+
process.exit(1);
|
|
198
|
+
}
|
|
199
|
+
} else {
|
|
200
|
+
console.log('โ Plugin file does not exist');
|
|
201
|
+
process.exit(1);
|
|
202
|
+
}
|
|
203
|
+
} catch (error) {
|
|
204
|
+
console.log('โ ES module loading test failed:', error.message);
|
|
205
|
+
process.exit(1);
|
|
206
|
+
}
|
|
207
|
+
"
|
|
208
|
+
|
|
209
|
+
echo ""
|
|
210
|
+
echo "3.2 Agent Configuration Validation"
|
|
211
|
+
echo "Testing agent configuration in oh-my-opencode.json"
|
|
212
|
+
mkdir -p test-agents
|
|
213
|
+
cd test-agents
|
|
214
|
+
|
|
215
|
+
# Create minimal package.json
|
|
216
|
+
cat > package.json << 'EOF'
|
|
217
|
+
{
|
|
218
|
+
"name": "test-agents",
|
|
219
|
+
"version": "1.0.0"
|
|
220
|
+
}
|
|
221
|
+
EOF
|
|
222
|
+
|
|
223
|
+
# Install and check agents
|
|
224
|
+
cd ..
|
|
225
|
+
npm pack > /dev/null 2>&1
|
|
226
|
+
PACK_FILE=$(ls *.tgz | head -1)
|
|
227
|
+
cd test-agents
|
|
228
|
+
npm install "../$PACK_FILE" > /dev/null 2>&1
|
|
229
|
+
|
|
230
|
+
AGENTS=("orchestrator" "enforcer" "architect" "test-architect" "bug-triage-specialist" "code-reviewer" "security-auditor" "refactorer")
|
|
231
|
+
MISSING_AGENTS=()
|
|
232
|
+
|
|
233
|
+
for agent in "${AGENTS[@]}"; do
|
|
234
|
+
if grep -q "\"$agent\":" .opencode/oh-my-opencode.json; then
|
|
235
|
+
echo "โ
Agent $agent configured"
|
|
236
|
+
else
|
|
237
|
+
echo "โ Agent $agent not configured"
|
|
238
|
+
MISSING_AGENTS+=("$agent")
|
|
239
|
+
fi
|
|
240
|
+
done
|
|
241
|
+
|
|
242
|
+
if [ ${#MISSING_AGENTS[@]} -eq 0 ]; then
|
|
243
|
+
echo "โ
All agents configured successfully"
|
|
244
|
+
else
|
|
245
|
+
echo "โ Missing agents: ${MISSING_AGENTS[*]}"
|
|
246
|
+
exit 1
|
|
247
|
+
fi
|
|
248
|
+
|
|
249
|
+
cd ..
|
|
250
|
+
rm -rf test-agents *.tgz
|
|
251
|
+
|
|
252
|
+
echo ""
|
|
253
|
+
echo "3.3 MCP Server Accessibility Testing"
|
|
254
|
+
echo "Testing MCP server files exist"
|
|
255
|
+
MCP_SERVERS=(
|
|
256
|
+
"dist/plugin/mcps/enhanced-orchestrator.server.js"
|
|
257
|
+
"dist/plugin/mcps/enforcer-tools.server.js"
|
|
258
|
+
"dist/plugin/mcps/framework-compliance-audit.server.js"
|
|
259
|
+
"dist/plugin/mcps/performance-analysis.server.js"
|
|
260
|
+
"dist/plugin/mcps/state-manager.server.js"
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
MISSING_SERVERS=()
|
|
264
|
+
for server in "${MCP_SERVERS[@]}"; do
|
|
265
|
+
if [ -f "$server" ]; then
|
|
266
|
+
echo "โ
MCP server $server exists"
|
|
267
|
+
else
|
|
268
|
+
echo "โ MCP server $server missing"
|
|
269
|
+
MISSING_SERVERS+=("$server")
|
|
270
|
+
fi
|
|
271
|
+
done
|
|
272
|
+
|
|
273
|
+
if [ ${#MISSING_SERVERS[@]} -eq 0 ]; then
|
|
274
|
+
echo "โ
All MCP servers accessible"
|
|
275
|
+
else
|
|
276
|
+
echo "โ Missing MCP servers: ${MISSING_SERVERS[*]}"
|
|
277
|
+
exit 1
|
|
278
|
+
fi
|
|
279
|
+
|
|
280
|
+
echo ""
|
|
281
|
+
echo "3.4 Hook System Integration Checks"
|
|
282
|
+
echo "Testing hook system structure"
|
|
283
|
+
node -e "
|
|
284
|
+
try {
|
|
285
|
+
const fs = require('fs');
|
|
286
|
+
const path = require('path');
|
|
287
|
+
|
|
288
|
+
const pluginPath = path.join(process.cwd(), 'dist/plugin/plugins/strray-codex-injection.js');
|
|
289
|
+
const content = fs.readFileSync(pluginPath, 'utf-8');
|
|
290
|
+
|
|
291
|
+
const hooks = [
|
|
292
|
+
'experimental.chat.system.transform',
|
|
293
|
+
'tool.execute.before',
|
|
294
|
+
'config'
|
|
295
|
+
];
|
|
296
|
+
|
|
297
|
+
let missingHooks = [];
|
|
298
|
+
for (const hook of hooks) {
|
|
299
|
+
if (content.includes(hook)) {
|
|
300
|
+
console.log('โ
Hook ' + hook + ' found');
|
|
301
|
+
} else {
|
|
302
|
+
console.log('โ Hook ' + hook + ' missing');
|
|
303
|
+
missingHooks.push(hook);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (missingHooks.length > 0) {
|
|
308
|
+
console.log('โ Missing hooks:', missingHooks.join(', '));
|
|
309
|
+
process.exit(1);
|
|
310
|
+
} else {
|
|
311
|
+
console.log('โ
All hooks present');
|
|
312
|
+
}
|
|
313
|
+
} catch (error) {
|
|
314
|
+
console.log('โ Hook system test failed:', error.message);
|
|
315
|
+
process.exit(1);
|
|
316
|
+
}
|
|
317
|
+
"
|
|
318
|
+
|
|
319
|
+
echo ""
|
|
320
|
+
echo "=== Phase 4: Simulation & Integration Testing ==="
|
|
321
|
+
|
|
322
|
+
echo "4.1 End-to-end Workflow Simulations"
|
|
323
|
+
echo "Running simulation scripts"
|
|
324
|
+
if [ -f "scripts/run-simulations.mjs" ]; then
|
|
325
|
+
if timeout 30 node scripts/run-simulations.mjs > simulation-output.txt 2>&1; then
|
|
326
|
+
echo "โ
End-to-end simulation successful"
|
|
327
|
+
echo "Simulation output (last 10 lines):"
|
|
328
|
+
tail -10 simulation-output.txt
|
|
329
|
+
else
|
|
330
|
+
echo "โ End-to-end simulation failed"
|
|
331
|
+
tail -10 simulation-output.txt
|
|
332
|
+
# Don't exit on simulation failure - might be expected
|
|
333
|
+
fi
|
|
334
|
+
else
|
|
335
|
+
echo "โ ๏ธ Simulation script not found, skipping"
|
|
336
|
+
fi
|
|
337
|
+
|
|
338
|
+
echo ""
|
|
339
|
+
echo "4.2 Agent Command Execution Testing"
|
|
340
|
+
echo "Testing agent command structure"
|
|
341
|
+
node -e "
|
|
342
|
+
try {
|
|
343
|
+
const fs = require('fs');
|
|
344
|
+
const path = require('path');
|
|
345
|
+
|
|
346
|
+
// Check if agent files exist
|
|
347
|
+
const agentDir = path.join(process.cwd(), 'dist/plugin/agents');
|
|
348
|
+
if (fs.existsSync(agentDir)) {
|
|
349
|
+
const agents = fs.readdirSync(agentDir);
|
|
350
|
+
console.log('โ
Agent directory exists with', agents.length, 'agents');
|
|
351
|
+
|
|
352
|
+
// Check for key agents
|
|
353
|
+
const keyAgents = ['enforcer', 'orchestrator', 'architect'];
|
|
354
|
+
for (const agent of keyAgents) {
|
|
355
|
+
const agentFile = path.join(agentDir, agent + '.js');
|
|
356
|
+
if (fs.existsSync(agentFile)) {
|
|
357
|
+
console.log('โ
Agent', agent, 'file exists');
|
|
358
|
+
} else {
|
|
359
|
+
console.log('โ Agent', agent, 'file missing');
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
} else {
|
|
363
|
+
console.log('โ Agent directory does not exist');
|
|
364
|
+
}
|
|
365
|
+
} catch (error) {
|
|
366
|
+
console.log('โ Agent command test failed:', error.message);
|
|
367
|
+
}
|
|
368
|
+
"
|
|
369
|
+
|
|
370
|
+
echo ""
|
|
371
|
+
echo "4.3 Codex Injection Verification"
|
|
372
|
+
echo "Testing codex injection functionality"
|
|
373
|
+
node -e "
|
|
374
|
+
try {
|
|
375
|
+
const fs = require('fs');
|
|
376
|
+
const path = require('path');
|
|
377
|
+
|
|
378
|
+
// Check codex files exist
|
|
379
|
+
const codexFiles = ['.strray/agents_template.md', 'AGENTS.md'];
|
|
380
|
+
let foundCodex = false;
|
|
381
|
+
|
|
382
|
+
for (const file of codexFiles) {
|
|
383
|
+
if (fs.existsSync(file)) {
|
|
384
|
+
console.log('โ
Codex file found:', file);
|
|
385
|
+
foundCodex = true;
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
if (!foundCodex) {
|
|
391
|
+
console.log('โ No codex files found');
|
|
392
|
+
process.exit(1);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// Test codex loading (simulate plugin behavior)
|
|
396
|
+
const pluginPath = path.join(process.cwd(), 'dist/plugin/plugins/strray-codex-injection.js');
|
|
397
|
+
const content = fs.readFileSync(pluginPath, 'utf-8');
|
|
398
|
+
|
|
399
|
+
if (content.includes('loadCodexContext')) {
|
|
400
|
+
console.log('โ
Codex loading function found in plugin');
|
|
401
|
+
} else {
|
|
402
|
+
console.log('โ Codex loading function not found in plugin');
|
|
403
|
+
process.exit(1);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
console.log('โ
Codex injection verification passed');
|
|
407
|
+
} catch (error) {
|
|
408
|
+
console.log('โ Codex injection test failed:', error.message);
|
|
409
|
+
process.exit(1);
|
|
410
|
+
}
|
|
411
|
+
"
|
|
412
|
+
|
|
413
|
+
echo ""
|
|
414
|
+
echo "4.4 Performance Benchmark Validation"
|
|
415
|
+
echo "Running performance benchmarks"
|
|
416
|
+
if [ -f "scripts/profile-performance.sh" ]; then
|
|
417
|
+
if timeout 30 bash scripts/profile-performance.sh > performance-output.txt 2>&1; then
|
|
418
|
+
echo "โ
Performance benchmark completed"
|
|
419
|
+
echo "Performance results (last 5 lines):"
|
|
420
|
+
tail -5 performance-output.txt
|
|
421
|
+
else
|
|
422
|
+
echo "โ Performance benchmark failed"
|
|
423
|
+
tail -5 performance-output.txt
|
|
424
|
+
# Don't exit on performance failure
|
|
425
|
+
fi
|
|
426
|
+
else
|
|
427
|
+
echo "โ ๏ธ Performance script not found, skipping"
|
|
428
|
+
fi
|
|
429
|
+
|
|
430
|
+
echo ""
|
|
431
|
+
echo "=== Phase 5: Deployment Readiness Assessment ==="
|
|
432
|
+
|
|
433
|
+
echo "5.1 Security Audit Results"
|
|
434
|
+
echo "Running security audit"
|
|
435
|
+
if npm audit --audit-level moderate > security-audit.txt 2>&1; then
|
|
436
|
+
echo "โ
Security audit passed"
|
|
437
|
+
else
|
|
438
|
+
echo "โ ๏ธ Security audit found issues (review security-audit.txt)"
|
|
439
|
+
fi
|
|
440
|
+
|
|
441
|
+
echo ""
|
|
442
|
+
echo "5.2 CI/CD Pipeline Validation"
|
|
443
|
+
echo "Checking CI/CD configuration"
|
|
444
|
+
if [ -f ".github/workflows/ci-cd.yml" ]; then
|
|
445
|
+
echo "โ
CI/CD workflow exists"
|
|
446
|
+
|
|
447
|
+
# Basic validation
|
|
448
|
+
if grep -q "npm run build" .github/workflows/ci-cd.yml && grep -q "npm test" .github/workflows/ci-cd.yml; then
|
|
449
|
+
echo "โ
CI/CD workflow includes build and test steps"
|
|
450
|
+
else
|
|
451
|
+
echo "โ CI/CD workflow missing build or test steps"
|
|
452
|
+
exit 1
|
|
453
|
+
fi
|
|
454
|
+
else
|
|
455
|
+
echo "โ CI/CD workflow not found"
|
|
456
|
+
exit 1
|
|
457
|
+
fi
|
|
458
|
+
|
|
459
|
+
echo ""
|
|
460
|
+
echo "5.3 Documentation Completeness"
|
|
461
|
+
echo "Checking documentation completeness"
|
|
462
|
+
DOC_FILES=("README.md")
|
|
463
|
+
MISSING_DOCS=()
|
|
464
|
+
|
|
465
|
+
for doc in "${DOC_FILES[@]}"; do
|
|
466
|
+
if [ -f "$doc" ]; then
|
|
467
|
+
echo "โ
Documentation file exists: $doc"
|
|
468
|
+
else
|
|
469
|
+
echo "โ Documentation file missing: $doc"
|
|
470
|
+
MISSING_DOCS+=("$doc")
|
|
471
|
+
fi
|
|
472
|
+
done
|
|
473
|
+
|
|
474
|
+
if [ ${#MISSING_DOCS[@]} -eq 0 ]; then
|
|
475
|
+
echo "โ
Required documentation present"
|
|
476
|
+
else
|
|
477
|
+
echo "โ Missing documentation: ${MISSING_DOCS[*]}"
|
|
478
|
+
exit 1
|
|
479
|
+
fi
|
|
480
|
+
|
|
481
|
+
echo ""
|
|
482
|
+
echo "5.4 Enterprise Deployment Checklist"
|
|
483
|
+
echo "Running enterprise deployment checks"
|
|
484
|
+
|
|
485
|
+
# Check for production readiness
|
|
486
|
+
CHECKS=(
|
|
487
|
+
"package.json has version"
|
|
488
|
+
"package.json has main entry"
|
|
489
|
+
"package.json has types entry"
|
|
490
|
+
"dist directory exists"
|
|
491
|
+
"LICENSE file exists"
|
|
492
|
+
"TypeScript compilation successful"
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
FAILED_CHECKS=()
|
|
496
|
+
|
|
497
|
+
# Version check
|
|
498
|
+
if grep -q '"version"' package.json; then
|
|
499
|
+
echo "โ
Package version defined"
|
|
500
|
+
else
|
|
501
|
+
echo "โ Package version not defined"
|
|
502
|
+
FAILED_CHECKS+=("version")
|
|
503
|
+
fi
|
|
504
|
+
|
|
505
|
+
# Main entry check
|
|
506
|
+
if grep -q '"main"' package.json; then
|
|
507
|
+
echo "โ
Main entry defined"
|
|
508
|
+
else
|
|
509
|
+
echo "โ Main entry not defined"
|
|
510
|
+
FAILED_CHECKS+=("main")
|
|
511
|
+
fi
|
|
512
|
+
|
|
513
|
+
# Types entry check
|
|
514
|
+
if grep -q '"types"' package.json; then
|
|
515
|
+
echo "โ
Types entry defined"
|
|
516
|
+
else
|
|
517
|
+
echo "โ Types entry not defined"
|
|
518
|
+
FAILED_CHECKS+=("types")
|
|
519
|
+
fi
|
|
520
|
+
|
|
521
|
+
# Dist directory check
|
|
522
|
+
if [ -d "dist" ]; then
|
|
523
|
+
echo "โ
Dist directory exists"
|
|
524
|
+
else
|
|
525
|
+
echo "โ Dist directory missing"
|
|
526
|
+
FAILED_CHECKS+=("dist")
|
|
527
|
+
fi
|
|
528
|
+
|
|
529
|
+
# License check
|
|
530
|
+
if [ -f "LICENSE" ]; then
|
|
531
|
+
echo "โ
LICENSE file exists"
|
|
532
|
+
else
|
|
533
|
+
echo "โ LICENSE file missing"
|
|
534
|
+
FAILED_CHECKS+=("license")
|
|
535
|
+
fi
|
|
536
|
+
|
|
537
|
+
# TypeScript check (already done above)
|
|
538
|
+
echo "โ
TypeScript compilation verified"
|
|
539
|
+
|
|
540
|
+
if [ ${#FAILED_CHECKS[@]} -eq 0 ]; then
|
|
541
|
+
echo "โ
All enterprise deployment checks passed"
|
|
542
|
+
else
|
|
543
|
+
echo "โ Failed enterprise checks: ${FAILED_CHECKS[*]}"
|
|
544
|
+
exit 1
|
|
545
|
+
fi
|
|
546
|
+
|
|
547
|
+
echo ""
|
|
548
|
+
echo "=== DEPLOYMENT READINESS ASSESSMENT COMPLETE ==="
|
|
549
|
+
echo ""
|
|
550
|
+
echo "๐ StrRay Framework Plugin Testing Complete"
|
|
551
|
+
echo ""
|
|
552
|
+
echo "Test completed at: $(date)"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quick Report Generation Test
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { frameworkReportingSystem } from "./src/reporting/framework-reporting-system.js";
|
|
6
|
+
|
|
7
|
+
async function testReport() {
|
|
8
|
+
console.log("๐งช TESTING ENHANCED REPORTING SYSTEM");
|
|
9
|
+
console.log("====================================");
|
|
10
|
+
|
|
11
|
+
// Generate a comprehensive report
|
|
12
|
+
const report = await frameworkReportingSystem.generateReport({
|
|
13
|
+
type: "full-analysis",
|
|
14
|
+
timeRange: { lastHours: 1 },
|
|
15
|
+
outputFormat: "markdown",
|
|
16
|
+
detailedMetrics: true,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
console.log("\n๐ FULL ANALYSIS REPORT:");
|
|
20
|
+
console.log("========================");
|
|
21
|
+
console.log(report);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
testReport().catch(console.error);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Test graceful shutdown handling
|
|
4
|
+
echo "๐งช Testing graceful shutdown handling..."
|
|
5
|
+
echo "This will start the boot orchestrator and then interrupt it to test graceful shutdown"
|
|
6
|
+
|
|
7
|
+
# Start the boot orchestrator in background
|
|
8
|
+
node -e "
|
|
9
|
+
(async () => {
|
|
10
|
+
console.log('Starting boot orchestrator...');
|
|
11
|
+
const { bootOrchestrator } = await import('./dist/boot-orchestrator.js');
|
|
12
|
+
console.log('Boot orchestrator loaded, memory monitor should be running...');
|
|
13
|
+
|
|
14
|
+
// Keep it running so we can interrupt it
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
console.log('Boot orchestrator still running (will be interrupted)...');
|
|
17
|
+
}, 2000);
|
|
18
|
+
|
|
19
|
+
// Keep process alive
|
|
20
|
+
setInterval(() => {}, 1000);
|
|
21
|
+
})();
|
|
22
|
+
" &
|
|
23
|
+
BOOT_PID=$!
|
|
24
|
+
|
|
25
|
+
# Wait a moment then send SIGINT
|
|
26
|
+
sleep 3
|
|
27
|
+
echo "Sending SIGINT to test graceful shutdown..."
|
|
28
|
+
kill -INT $BOOT_PID
|
|
29
|
+
|
|
30
|
+
# Wait for cleanup
|
|
31
|
+
sleep 2
|
|
32
|
+
|
|
33
|
+
echo ""
|
|
34
|
+
echo "โ
Graceful shutdown test completed"
|
|
35
|
+
echo "Check memory monitor logs to confirm proper cleanup"
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test the integrated orchestration pipeline with clickable monitoring
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { StrRayOrchestrator } from './dist/orchestrator.js';
|
|
6
|
+
import { enhancedMultiAgentOrchestrator } from './dist/orchestrator/enhanced-multi-agent-orchestrator.js';
|
|
7
|
+
|
|
8
|
+
async function testIntegratedOrchestration() {
|
|
9
|
+
console.log('๐งช Testing Integrated Orchestration Pipeline\n');
|
|
10
|
+
|
|
11
|
+
// Create orchestrator instance
|
|
12
|
+
const orchestrator = new StrRayOrchestrator({
|
|
13
|
+
maxConcurrentTasks: 3,
|
|
14
|
+
conflictResolutionStrategy: 'expert_priority'
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// Define test tasks
|
|
18
|
+
const tasks = [
|
|
19
|
+
{
|
|
20
|
+
id: 'design-auth',
|
|
21
|
+
description: 'Design authentication system architecture',
|
|
22
|
+
subagentType: 'architect',
|
|
23
|
+
priority: 'high'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'validate-auth',
|
|
27
|
+
description: 'Validate authentication system against codex rules',
|
|
28
|
+
subagentType: 'enforcer',
|
|
29
|
+
priority: 'high',
|
|
30
|
+
dependencies: ['design-auth']
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'research-auth',
|
|
34
|
+
description: 'Research authentication best practices',
|
|
35
|
+
subagentType: 'librarian',
|
|
36
|
+
priority: 'medium'
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
console.log('๐ Executing complex task with integrated orchestration...\n');
|
|
41
|
+
|
|
42
|
+
// Execute the complex task
|
|
43
|
+
const results = await orchestrator.executeComplexTask(
|
|
44
|
+
'Build secure authentication system',
|
|
45
|
+
tasks
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
console.log('๐ Task Execution Results:');
|
|
49
|
+
results.forEach((result, index) => {
|
|
50
|
+
const task = tasks[index];
|
|
51
|
+
console.log(` ${task.id}: ${result.success ? 'โ
' : 'โ'} (${result.duration}ms)`);
|
|
52
|
+
if (result.result) {
|
|
53
|
+
console.log(` Result: ${JSON.stringify(result.result).substring(0, 100)}...`);
|
|
54
|
+
}
|
|
55
|
+
if (result.error) {
|
|
56
|
+
console.log(` Error: ${result.error}`);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
console.log('\n๐ Enhanced Orchestrator Statistics:');
|
|
61
|
+
const stats = enhancedMultiAgentOrchestrator.getStatistics();
|
|
62
|
+
console.log(` Active Agents: ${stats.activeAgents}`);
|
|
63
|
+
console.log(` Completed Agents: ${stats.completedAgents}`);
|
|
64
|
+
console.log(` Failed Agents: ${stats.failedAgents}`);
|
|
65
|
+
console.log(` Total Spawned: ${stats.totalSpawned}`);
|
|
66
|
+
|
|
67
|
+
console.log('\n๐ฑ๏ธ Clickable Monitoring Interface:');
|
|
68
|
+
const monitoringData = enhancedMultiAgentOrchestrator.getMonitoringInterface();
|
|
69
|
+
Object.entries(monitoringData).forEach(([id, agent]) => {
|
|
70
|
+
console.log(` ${id}: ${agent.agentType} (${agent.status}) - ${agent.progress}% ${agent.clickable ? '๐ฑ๏ธ' : ''}`);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// Cleanup
|
|
74
|
+
await enhancedMultiAgentOrchestrator.shutdown();
|
|
75
|
+
console.log('\nโ
Integration test completed successfully!');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Run the test
|
|
79
|
+
testIntegratedOrchestration().catch(console.error);
|