erosolar-cli 2.1.248 → 2.1.252
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/general.rules.json +10 -133
- package/agents/general.rules.json.bak +278 -0
- package/agents/general.rules.json.bak2 +306 -0
- package/dist/bin/erosolar.js +9 -5
- package/dist/bin/erosolar.js.map +1 -1
- package/dist/capabilities/bidirectionalAuditCapability.d.ts +26 -0
- package/dist/capabilities/bidirectionalAuditCapability.d.ts.map +1 -0
- package/dist/capabilities/bidirectionalAuditCapability.js +44 -0
- package/dist/capabilities/bidirectionalAuditCapability.js.map +1 -0
- package/dist/capabilities/globCapability.d.ts +3 -6
- package/dist/capabilities/globCapability.d.ts.map +1 -1
- package/dist/capabilities/globCapability.js +6 -10
- package/dist/capabilities/globCapability.js.map +1 -1
- package/dist/capabilities/index.d.ts +1 -18
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/index.js +1 -18
- package/dist/capabilities/index.js.map +1 -1
- package/dist/capabilities/orchestrationCapability.d.ts +177 -3
- package/dist/capabilities/orchestrationCapability.d.ts.map +1 -1
- package/dist/capabilities/orchestrationCapability.js +1592 -85
- package/dist/capabilities/orchestrationCapability.js.map +1 -1
- package/dist/capabilities/searchCapability.d.ts +8 -2
- package/dist/capabilities/searchCapability.d.ts.map +1 -1
- package/dist/capabilities/searchCapability.js +11 -6
- package/dist/capabilities/searchCapability.js.map +1 -1
- package/dist/contracts/tools.schema.json +9 -133
- package/dist/core/agentOrchestrator.d.ts.map +1 -1
- package/dist/core/agentOrchestrator.js +18 -1
- package/dist/core/agentOrchestrator.js.map +1 -1
- package/dist/core/aiErrorFixer.d.ts +1 -14
- package/dist/core/aiErrorFixer.d.ts.map +1 -1
- package/dist/core/aiErrorFixer.js +51 -239
- package/dist/core/aiErrorFixer.js.map +1 -1
- package/dist/core/alphaZeroEngine.d.ts +16 -256
- package/dist/core/alphaZeroEngine.d.ts.map +1 -1
- package/dist/core/alphaZeroEngine.js +22 -513
- package/dist/core/alphaZeroEngine.js.map +1 -1
- package/dist/core/completeAttackOrchestrator.d.ts +102 -0
- package/dist/core/completeAttackOrchestrator.d.ts.map +1 -0
- package/dist/core/completeAttackOrchestrator.js +293 -0
- package/dist/core/completeAttackOrchestrator.js.map +1 -0
- package/dist/core/defensiveSecurityToolkit.d.ts +373 -0
- package/dist/core/defensiveSecurityToolkit.d.ts.map +1 -0
- package/dist/core/defensiveSecurityToolkit.js +1304 -0
- package/dist/core/defensiveSecurityToolkit.js.map +1 -0
- package/dist/core/errors/errorTypes.d.ts +30 -57
- package/dist/core/errors/errorTypes.d.ts.map +1 -1
- package/dist/core/errors/errorTypes.js +51 -228
- package/dist/core/errors/errorTypes.js.map +1 -1
- package/dist/core/errors/safetyValidator.d.ts +19 -3
- package/dist/core/errors/safetyValidator.d.ts.map +1 -1
- package/dist/core/errors/safetyValidator.js +33 -71
- package/dist/core/errors/safetyValidator.js.map +1 -1
- package/dist/core/failureRecovery.d.ts +4 -100
- package/dist/core/failureRecovery.d.ts.map +1 -1
- package/dist/core/failureRecovery.js +16 -440
- package/dist/core/failureRecovery.js.map +1 -1
- package/dist/core/intelligentTargetResearcher.d.ts +142 -0
- package/dist/core/intelligentTargetResearcher.d.ts.map +1 -0
- package/dist/core/intelligentTargetResearcher.js +367 -0
- package/dist/core/intelligentTargetResearcher.js.map +1 -0
- package/dist/core/intelligentTestFlows.d.ts +26 -107
- package/dist/core/intelligentTestFlows.d.ts.map +1 -1
- package/dist/core/intelligentTestFlows.js +15 -659
- package/dist/core/intelligentTestFlows.js.map +1 -1
- package/dist/core/learningPersistence.d.ts +45 -132
- package/dist/core/learningPersistence.d.ts.map +1 -1
- package/dist/core/learningPersistence.js +32 -463
- package/dist/core/learningPersistence.js.map +1 -1
- package/dist/core/metricsTracker.d.ts +22 -139
- package/dist/core/metricsTracker.d.ts.map +1 -1
- package/dist/core/metricsTracker.js +51 -241
- package/dist/core/metricsTracker.js.map +1 -1
- package/dist/core/performanceMonitor.d.ts +15 -109
- package/dist/core/performanceMonitor.d.ts.map +1 -1
- package/dist/core/performanceMonitor.js +27 -184
- package/dist/core/performanceMonitor.js.map +1 -1
- package/dist/core/resultVerification.d.ts +6 -100
- package/dist/core/resultVerification.d.ts.map +1 -1
- package/dist/core/resultVerification.js +31 -400
- package/dist/core/resultVerification.js.map +1 -1
- package/dist/core/selfEvolution.d.ts +32 -126
- package/dist/core/selfEvolution.d.ts.map +1 -1
- package/dist/core/selfEvolution.js +24 -967
- package/dist/core/selfEvolution.js.map +1 -1
- package/dist/core/selfImprovement.d.ts +50 -109
- package/dist/core/selfImprovement.d.ts.map +1 -1
- package/dist/core/selfImprovement.js +14 -689
- package/dist/core/selfImprovement.js.map +1 -1
- package/dist/core/sourceCodeManager.d.ts +89 -0
- package/dist/core/sourceCodeManager.d.ts.map +1 -0
- package/dist/core/sourceCodeManager.js +332 -0
- package/dist/core/sourceCodeManager.js.map +1 -0
- package/dist/core/unifiedOrchestrator.d.ts +88 -0
- package/dist/core/unifiedOrchestrator.d.ts.map +1 -0
- package/dist/core/unifiedOrchestrator.js +284 -0
- package/dist/core/unifiedOrchestrator.js.map +1 -0
- package/dist/core/userDefenseOrchestrator.d.ts +202 -0
- package/dist/core/userDefenseOrchestrator.d.ts.map +1 -0
- package/dist/core/userDefenseOrchestrator.js +1006 -0
- package/dist/core/userDefenseOrchestrator.js.map +1 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +36 -26
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts +8 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js +17 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js.map +1 -0
- package/dist/plugins/tools/nodeDefaults.d.ts +14 -0
- package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
- package/dist/plugins/tools/nodeDefaults.js +17 -54
- package/dist/plugins/tools/nodeDefaults.js.map +1 -1
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts +9 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js +18 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js.map +1 -0
- package/dist/shell/interactiveShell.d.ts +101 -2
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +1041 -25
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/tools/appleExposureTools.d.ts +108 -0
- package/dist/tools/appleExposureTools.d.ts.map +1 -0
- package/dist/tools/appleExposureTools.js +850 -0
- package/dist/tools/appleExposureTools.js.map +1 -0
- package/dist/tools/bidirectionalAuditTools.d.ts +104 -0
- package/dist/tools/bidirectionalAuditTools.d.ts.map +1 -0
- package/dist/tools/bidirectionalAuditTools.js +1280 -0
- package/dist/tools/bidirectionalAuditTools.js.map +1 -0
- package/dist/tools/defensiveSecurityTools.d.ts +152 -0
- package/dist/tools/defensiveSecurityTools.d.ts.map +1 -0
- package/dist/tools/defensiveSecurityTools.js +576 -0
- package/dist/tools/defensiveSecurityTools.js.map +1 -0
- package/dist/tools/forwardAttackChainTracer.d.ts +73 -0
- package/dist/tools/forwardAttackChainTracer.d.ts.map +1 -0
- package/dist/tools/forwardAttackChainTracer.js +604 -0
- package/dist/tools/forwardAttackChainTracer.js.map +1 -0
- package/dist/tools/localExplore.d.ts +12 -199
- package/dist/tools/localExplore.d.ts.map +1 -1
- package/dist/tools/localExplore.js +18 -1352
- package/dist/tools/localExplore.js.map +1 -1
- package/dist/tools/offensiveTransparencyTools.d.ts +188 -0
- package/dist/tools/offensiveTransparencyTools.d.ts.map +1 -0
- package/dist/tools/offensiveTransparencyTools.js +890 -0
- package/dist/tools/offensiveTransparencyTools.js.map +1 -0
- package/dist/tools/planningTools.d.ts +8 -17
- package/dist/tools/planningTools.d.ts.map +1 -1
- package/dist/tools/planningTools.js +31 -141
- package/dist/tools/planningTools.js.map +1 -1
- package/dist/tools/searchTools.d.ts +9 -0
- package/dist/tools/searchTools.d.ts.map +1 -1
- package/dist/tools/searchTools.js +305 -189
- package/dist/tools/searchTools.js.map +1 -1
- package/dist/tools/skillTools.d.ts +7 -5
- package/dist/tools/skillTools.d.ts.map +1 -1
- package/dist/tools/skillTools.js +13 -155
- package/dist/tools/skillTools.js.map +1 -1
- package/dist/tools/threatIntelligenceTools.d.ts +128 -0
- package/dist/tools/threatIntelligenceTools.d.ts.map +1 -0
- package/dist/tools/threatIntelligenceTools.js +712 -0
- package/dist/tools/threatIntelligenceTools.js.map +1 -0
- package/dist/ui/PromptController.d.ts +4 -0
- package/dist/ui/PromptController.d.ts.map +1 -1
- package/dist/ui/PromptController.js +32 -11
- package/dist/ui/PromptController.js.map +1 -1
- package/dist/ui/UnifiedUIRenderer.d.ts +36 -0
- package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
- package/dist/ui/UnifiedUIRenderer.js +308 -43
- package/dist/ui/UnifiedUIRenderer.js.map +1 -1
- package/dist/ui/animatedStatus.d.ts +2 -0
- package/dist/ui/animatedStatus.d.ts.map +1 -1
- package/dist/ui/animatedStatus.js +36 -2
- package/dist/ui/animatedStatus.js.map +1 -1
- package/dist/ui/orchestration/StatusOrchestrator.d.ts +10 -0
- package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +1 -1
- package/dist/ui/orchestration/StatusOrchestrator.js +36 -4
- package/dist/ui/orchestration/StatusOrchestrator.js.map +1 -1
- package/package.json +2 -2
- package/dist/capabilities/advancedTestGenerationCapability.d.ts +0 -17
- package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +0 -1
- package/dist/capabilities/advancedTestGenerationCapability.js +0 -28
- package/dist/capabilities/advancedTestGenerationCapability.js.map +0 -1
- package/dist/capabilities/browserAutomationCapability.d.ts +0 -37
- package/dist/capabilities/browserAutomationCapability.d.ts.map +0 -1
- package/dist/capabilities/browserAutomationCapability.js +0 -49
- package/dist/capabilities/browserAutomationCapability.js.map +0 -1
- package/dist/capabilities/buildCapability.d.ts +0 -24
- package/dist/capabilities/buildCapability.d.ts.map +0 -1
- package/dist/capabilities/buildCapability.js +0 -25
- package/dist/capabilities/buildCapability.js.map +0 -1
- package/dist/capabilities/cloudCapability.d.ts +0 -13
- package/dist/capabilities/cloudCapability.d.ts.map +0 -1
- package/dist/capabilities/cloudCapability.js +0 -38
- package/dist/capabilities/cloudCapability.js.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.d.ts +0 -13
- package/dist/capabilities/codeAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.js +0 -24
- package/dist/capabilities/codeAnalysisCapability.js.map +0 -1
- package/dist/capabilities/codeQualityCapability.d.ts +0 -13
- package/dist/capabilities/codeQualityCapability.d.ts.map +0 -1
- package/dist/capabilities/codeQualityCapability.js +0 -25
- package/dist/capabilities/codeQualityCapability.js.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.d.ts +0 -13
- package/dist/capabilities/dependencySecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.js +0 -24
- package/dist/capabilities/dependencySecurityCapability.js.map +0 -1
- package/dist/capabilities/devCapability.d.ts +0 -13
- package/dist/capabilities/devCapability.d.ts.map +0 -1
- package/dist/capabilities/devCapability.js +0 -24
- package/dist/capabilities/devCapability.js.map +0 -1
- package/dist/capabilities/emailCapability.d.ts +0 -12
- package/dist/capabilities/emailCapability.d.ts.map +0 -1
- package/dist/capabilities/emailCapability.js +0 -22
- package/dist/capabilities/emailCapability.js.map +0 -1
- package/dist/capabilities/enhancedAnalysisCapability.d.ts +0 -13
- package/dist/capabilities/enhancedAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedAnalysisCapability.js +0 -20
- package/dist/capabilities/enhancedAnalysisCapability.js.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +0 -17
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js +0 -28
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +0 -17
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.js +0 -28
- package/dist/capabilities/enhancedDevWorkflowCapability.js.map +0 -1
- package/dist/capabilities/frontendTestingCapability.d.ts +0 -13
- package/dist/capabilities/frontendTestingCapability.d.ts.map +0 -1
- package/dist/capabilities/frontendTestingCapability.js +0 -28
- package/dist/capabilities/frontendTestingCapability.js.map +0 -1
- package/dist/capabilities/interactionCapability.d.ts +0 -12
- package/dist/capabilities/interactionCapability.d.ts.map +0 -1
- package/dist/capabilities/interactionCapability.js +0 -22
- package/dist/capabilities/interactionCapability.js.map +0 -1
- package/dist/capabilities/learnCapability.d.ts +0 -22
- package/dist/capabilities/learnCapability.d.ts.map +0 -1
- package/dist/capabilities/learnCapability.js +0 -37
- package/dist/capabilities/learnCapability.js.map +0 -1
- package/dist/capabilities/notebookCapability.d.ts +0 -17
- package/dist/capabilities/notebookCapability.d.ts.map +0 -1
- package/dist/capabilities/notebookCapability.js +0 -27
- package/dist/capabilities/notebookCapability.js.map +0 -1
- package/dist/capabilities/planningCapability.d.ts +0 -16
- package/dist/capabilities/planningCapability.d.ts.map +0 -1
- package/dist/capabilities/planningCapability.js +0 -26
- package/dist/capabilities/planningCapability.js.map +0 -1
- package/dist/capabilities/refactoringCapability.d.ts +0 -13
- package/dist/capabilities/refactoringCapability.d.ts.map +0 -1
- package/dist/capabilities/refactoringCapability.js +0 -25
- package/dist/capabilities/refactoringCapability.js.map +0 -1
- package/dist/capabilities/repoChecksCapability.d.ts +0 -10
- package/dist/capabilities/repoChecksCapability.d.ts.map +0 -1
- package/dist/capabilities/repoChecksCapability.js +0 -24
- package/dist/capabilities/repoChecksCapability.js.map +0 -1
- package/dist/capabilities/taskManagementCapability.d.ts +0 -12
- package/dist/capabilities/taskManagementCapability.d.ts.map +0 -1
- package/dist/capabilities/taskManagementCapability.js +0 -22
- package/dist/capabilities/taskManagementCapability.js.map +0 -1
- package/dist/capabilities/testingCapability.d.ts +0 -13
- package/dist/capabilities/testingCapability.d.ts.map +0 -1
- package/dist/capabilities/testingCapability.js +0 -25
- package/dist/capabilities/testingCapability.js.map +0 -1
- package/dist/capabilities/validationCapability.d.ts +0 -13
- package/dist/capabilities/validationCapability.d.ts.map +0 -1
- package/dist/capabilities/validationCapability.js +0 -24
- package/dist/capabilities/validationCapability.js.map +0 -1
- package/dist/capabilities/webCapability.d.ts +0 -12
- package/dist/capabilities/webCapability.d.ts.map +0 -1
- package/dist/capabilities/webCapability.js +0 -22
- package/dist/capabilities/webCapability.js.map +0 -1
- package/dist/core/deepBugAnalyzer.d.ts +0 -128
- package/dist/core/deepBugAnalyzer.d.ts.map +0 -1
- package/dist/core/deepBugAnalyzer.js +0 -406
- package/dist/core/deepBugAnalyzer.js.map +0 -1
- package/dist/core/hypothesisEngine.d.ts +0 -113
- package/dist/core/hypothesisEngine.d.ts.map +0 -1
- package/dist/core/hypothesisEngine.js +0 -264
- package/dist/core/hypothesisEngine.js.map +0 -1
- package/dist/core/productTestHarness.d.ts +0 -113
- package/dist/core/productTestHarness.d.ts.map +0 -1
- package/dist/core/productTestHarness.js +0 -351
- package/dist/core/productTestHarness.js.map +0 -1
- package/dist/core/validationRunner.d.ts +0 -106
- package/dist/core/validationRunner.d.ts.map +0 -1
- package/dist/core/validationRunner.js +0 -892
- package/dist/core/validationRunner.js.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts +0 -14
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.js +0 -26
- package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +0 -3
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js +0 -14
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts +0 -3
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.js +0 -14
- package/dist/plugins/tools/cloud/cloudPlugin.js.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -14
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +0 -14
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +0 -3
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.js +0 -12
- package/dist/plugins/tools/dependency/dependencyPlugin.js.map +0 -1
- package/dist/plugins/tools/development/devPlugin.d.ts +0 -3
- package/dist/plugins/tools/development/devPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/development/devPlugin.js +0 -14
- package/dist/plugins/tools/development/devPlugin.js.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.d.ts +0 -3
- package/dist/plugins/tools/email/emailPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.js +0 -12
- package/dist/plugins/tools/email/emailPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.js +0 -14
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.js +0 -12
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.js +0 -12
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.js.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts +0 -3
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +0 -14
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts +0 -3
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.js +0 -12
- package/dist/plugins/tools/interaction/interactionPlugin.js.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.d.ts +0 -3
- package/dist/plugins/tools/learn/learnPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.js +0 -14
- package/dist/plugins/tools/learn/learnPlugin.js.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts +0 -9
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.js +0 -15
- package/dist/plugins/tools/notebook/notebookPlugin.js.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.d.ts +0 -9
- package/dist/plugins/tools/planning/planningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.js +0 -15
- package/dist/plugins/tools/planning/planningPlugin.js.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +0 -3
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.js +0 -12
- package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +0 -3
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +0 -12
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.d.ts +0 -3
- package/dist/plugins/tools/testing/testingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.js +0 -12
- package/dist/plugins/tools/testing/testingPlugin.js.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.d.ts +0 -3
- package/dist/plugins/tools/validation/validationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.js +0 -14
- package/dist/plugins/tools/validation/validationPlugin.js.map +0 -1
- package/dist/plugins/tools/web/webPlugin.d.ts +0 -3
- package/dist/plugins/tools/web/webPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/web/webPlugin.js +0 -12
- package/dist/plugins/tools/web/webPlugin.js.map +0 -1
- package/dist/tools/advancedTestGenerationTools.d.ts +0 -21
- package/dist/tools/advancedTestGenerationTools.d.ts.map +0 -1
- package/dist/tools/advancedTestGenerationTools.js +0 -304
- package/dist/tools/advancedTestGenerationTools.js.map +0 -1
- package/dist/tools/browserAutomationTools.d.ts +0 -23
- package/dist/tools/browserAutomationTools.d.ts.map +0 -1
- package/dist/tools/browserAutomationTools.js +0 -916
- package/dist/tools/browserAutomationTools.js.map +0 -1
- package/dist/tools/buildTools.d.ts +0 -9
- package/dist/tools/buildTools.d.ts.map +0 -1
- package/dist/tools/buildTools.js +0 -346
- package/dist/tools/buildTools.js.map +0 -1
- package/dist/tools/cloudTools.d.ts +0 -49
- package/dist/tools/cloudTools.d.ts.map +0 -1
- package/dist/tools/cloudTools.js +0 -1258
- package/dist/tools/cloudTools.js.map +0 -1
- package/dist/tools/codeAnalysisTools.d.ts +0 -74
- package/dist/tools/codeAnalysisTools.d.ts.map +0 -1
- package/dist/tools/codeAnalysisTools.js +0 -664
- package/dist/tools/codeAnalysisTools.js.map +0 -1
- package/dist/tools/codeGenerationTools.d.ts +0 -3
- package/dist/tools/codeGenerationTools.d.ts.map +0 -1
- package/dist/tools/codeGenerationTools.js +0 -439
- package/dist/tools/codeGenerationTools.js.map +0 -1
- package/dist/tools/codeQualityTools.d.ts +0 -3
- package/dist/tools/codeQualityTools.d.ts.map +0 -1
- package/dist/tools/codeQualityTools.js +0 -297
- package/dist/tools/codeQualityTools.js.map +0 -1
- package/dist/tools/dependencyTools.d.ts +0 -3
- package/dist/tools/dependencyTools.d.ts.map +0 -1
- package/dist/tools/dependencyTools.js +0 -284
- package/dist/tools/dependencyTools.js.map +0 -1
- package/dist/tools/devTools.d.ts +0 -10
- package/dist/tools/devTools.d.ts.map +0 -1
- package/dist/tools/devTools.js +0 -2126
- package/dist/tools/devTools.js.map +0 -1
- package/dist/tools/emailTools.d.ts +0 -21
- package/dist/tools/emailTools.d.ts.map +0 -1
- package/dist/tools/emailTools.js +0 -449
- package/dist/tools/emailTools.js.map +0 -1
- package/dist/tools/enhancedAnalysisTools.d.ts +0 -9
- package/dist/tools/enhancedAnalysisTools.d.ts.map +0 -1
- package/dist/tools/enhancedAnalysisTools.js +0 -370
- package/dist/tools/enhancedAnalysisTools.js.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts +0 -7
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.js +0 -540
- package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -7
- package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.js +0 -432
- package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
- package/dist/tools/frontendTestingTools.d.ts +0 -35
- package/dist/tools/frontendTestingTools.d.ts.map +0 -1
- package/dist/tools/frontendTestingTools.js +0 -1258
- package/dist/tools/frontendTestingTools.js.map +0 -1
- package/dist/tools/globTools.d.ts +0 -15
- package/dist/tools/globTools.d.ts.map +0 -1
- package/dist/tools/globTools.js +0 -174
- package/dist/tools/globTools.js.map +0 -1
- package/dist/tools/grepTools.d.ts +0 -19
- package/dist/tools/grepTools.d.ts.map +0 -1
- package/dist/tools/grepTools.js +0 -411
- package/dist/tools/grepTools.js.map +0 -1
- package/dist/tools/interactionTools.d.ts +0 -6
- package/dist/tools/interactionTools.d.ts.map +0 -1
- package/dist/tools/interactionTools.js +0 -209
- package/dist/tools/interactionTools.js.map +0 -1
- package/dist/tools/learnTools.d.ts +0 -164
- package/dist/tools/learnTools.d.ts.map +0 -1
- package/dist/tools/learnTools.js +0 -2098
- package/dist/tools/learnTools.js.map +0 -1
- package/dist/tools/notebookEditTools.d.ts +0 -15
- package/dist/tools/notebookEditTools.d.ts.map +0 -1
- package/dist/tools/notebookEditTools.js +0 -197
- package/dist/tools/notebookEditTools.js.map +0 -1
- package/dist/tools/refactoringTools.d.ts +0 -3
- package/dist/tools/refactoringTools.d.ts.map +0 -1
- package/dist/tools/refactoringTools.js +0 -294
- package/dist/tools/refactoringTools.js.map +0 -1
- package/dist/tools/repoChecksTools.d.ts +0 -3
- package/dist/tools/repoChecksTools.d.ts.map +0 -1
- package/dist/tools/repoChecksTools.js +0 -276
- package/dist/tools/repoChecksTools.js.map +0 -1
- package/dist/tools/taskManagementTools.d.ts +0 -10
- package/dist/tools/taskManagementTools.d.ts.map +0 -1
- package/dist/tools/taskManagementTools.js +0 -133
- package/dist/tools/taskManagementTools.js.map +0 -1
- package/dist/tools/testingTools.d.ts +0 -3
- package/dist/tools/testingTools.d.ts.map +0 -1
- package/dist/tools/testingTools.js +0 -237
- package/dist/tools/testingTools.js.map +0 -1
- package/dist/tools/validationTools.d.ts +0 -7
- package/dist/tools/validationTools.d.ts.map +0 -1
- package/dist/tools/validationTools.js +0 -344
- package/dist/tools/validationTools.js.map +0 -1
- package/dist/tools/webTools.d.ts +0 -3
- package/dist/tools/webTools.d.ts.map +0 -1
- package/dist/tools/webTools.js +0 -502
- package/dist/tools/webTools.js.map +0 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified Orchestrator
|
|
3
|
+
*
|
|
4
|
+
* Lean orchestration combining RL and non-RL modes:
|
|
5
|
+
* - Single pass: Standard execution
|
|
6
|
+
* - Dual-RL: Self-improving with refinement
|
|
7
|
+
* - Auto: Execute to completion
|
|
8
|
+
* - APT: Full kill-chain execution
|
|
9
|
+
*
|
|
10
|
+
* Features:
|
|
11
|
+
* - Mode-agnostic interface
|
|
12
|
+
* - RL reward tracking
|
|
13
|
+
* - Real technique execution via TAO
|
|
14
|
+
* - Deliverable generation
|
|
15
|
+
*/
|
|
16
|
+
import { AgentOrchestrator, } from './agentOrchestrator.js';
|
|
17
|
+
import { scoreOutcome, recordDualOutcome, planAttackChain, selectNextTechnique, executeTechniqueInChain, getChainStats, getRLState, parseNaturalLanguageIntent, } from '../tools/tao/index.js';
|
|
18
|
+
// ============================================================================
|
|
19
|
+
// UNIFIED ORCHESTRATOR
|
|
20
|
+
// ============================================================================
|
|
21
|
+
export class UnifiedOrchestrator {
|
|
22
|
+
agent;
|
|
23
|
+
baseOrchestrator;
|
|
24
|
+
constructor(agent) {
|
|
25
|
+
this.agent = agent;
|
|
26
|
+
this.baseOrchestrator = new AgentOrchestrator(agent);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Run orchestration with specified mode
|
|
30
|
+
*/
|
|
31
|
+
async run(objective, options = {}) {
|
|
32
|
+
const mode = options.mode ?? 'single';
|
|
33
|
+
const startTime = Date.now();
|
|
34
|
+
switch (mode) {
|
|
35
|
+
case 'dual-rl':
|
|
36
|
+
return this.runDualRL(objective, options, startTime);
|
|
37
|
+
case 'auto':
|
|
38
|
+
return this.runAuto(objective, options, startTime);
|
|
39
|
+
case 'apt':
|
|
40
|
+
return this.runAPT(objective, options, startTime);
|
|
41
|
+
case 'security':
|
|
42
|
+
return this.runSecurity(objective, options, startTime);
|
|
43
|
+
case 'single':
|
|
44
|
+
default:
|
|
45
|
+
return this.runSingle(objective, options, startTime);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Single-pass orchestration
|
|
50
|
+
*/
|
|
51
|
+
async runSingle(objective, options, startTime) {
|
|
52
|
+
const orchestratorOpts = this.toOrchestratorOptions(options);
|
|
53
|
+
const result = await this.baseOrchestrator.runToCompletion(objective, orchestratorOpts);
|
|
54
|
+
const reward = scoreOutcome(result);
|
|
55
|
+
return {
|
|
56
|
+
...result,
|
|
57
|
+
mode: 'single',
|
|
58
|
+
rl: {
|
|
59
|
+
primaryReward: reward,
|
|
60
|
+
chosenAction: 'primary',
|
|
61
|
+
snapshot: { avgReward: reward, primaryReward: reward, refineReward: reward, chosen: 'primary', historySize: 1 },
|
|
62
|
+
},
|
|
63
|
+
stats: {
|
|
64
|
+
duration: Date.now() - startTime,
|
|
65
|
+
cycles: 1,
|
|
66
|
+
toolCalls: result.toolsUsed.length,
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Dual-agent RL orchestration
|
|
72
|
+
*/
|
|
73
|
+
async runDualRL(objective, options, startTime) {
|
|
74
|
+
const orchestratorOpts = this.toOrchestratorOptions(options);
|
|
75
|
+
// Primary pass
|
|
76
|
+
const primary = await this.baseOrchestrator.runToCompletion(objective, orchestratorOpts);
|
|
77
|
+
const primaryReward = scoreOutcome(primary);
|
|
78
|
+
options.onProgress?.('primary', 0.5);
|
|
79
|
+
// Refinement pass
|
|
80
|
+
const refinementPrompt = this.buildRefinementPrompt(objective, primary);
|
|
81
|
+
const refinement = await this.baseOrchestrator.runToCompletion(refinementPrompt, {
|
|
82
|
+
...orchestratorOpts,
|
|
83
|
+
singlePassFocus: true,
|
|
84
|
+
});
|
|
85
|
+
const refinementReward = scoreOutcome(refinement);
|
|
86
|
+
// Choose best result
|
|
87
|
+
const chosenAction = refinementReward > primaryReward ? 'refine' : 'primary';
|
|
88
|
+
const chosen = chosenAction === 'refine' ? refinement : primary;
|
|
89
|
+
const snapshot = recordDualOutcome(primaryReward, refinementReward, chosenAction);
|
|
90
|
+
options.onProgress?.('complete', 1.0);
|
|
91
|
+
return {
|
|
92
|
+
...chosen,
|
|
93
|
+
mode: 'dual-rl',
|
|
94
|
+
statusSummary: `${chosen.statusSummary || ''} | RL: primary=${primaryReward.toFixed(2)}, refine=${refinementReward.toFixed(2)}, chosen=${chosenAction}`,
|
|
95
|
+
rl: {
|
|
96
|
+
primaryReward,
|
|
97
|
+
refinementReward,
|
|
98
|
+
chosenAction,
|
|
99
|
+
snapshot,
|
|
100
|
+
},
|
|
101
|
+
stats: {
|
|
102
|
+
duration: Date.now() - startTime,
|
|
103
|
+
cycles: 2,
|
|
104
|
+
toolCalls: primary.toolsUsed.length + refinement.toolsUsed.length,
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Auto-execute to completion
|
|
110
|
+
*/
|
|
111
|
+
async runAuto(objective, options, startTime) {
|
|
112
|
+
const maxCycles = options.maxCycles ?? (options.depth === 'deep' ? 10 : options.depth === 'quick' ? 3 : 5);
|
|
113
|
+
const orchestratorOpts = this.toOrchestratorOptions(options);
|
|
114
|
+
let cycle = 0;
|
|
115
|
+
let lastResult = null;
|
|
116
|
+
let totalToolCalls = 0;
|
|
117
|
+
while (cycle < maxCycles) {
|
|
118
|
+
cycle++;
|
|
119
|
+
options.onProgress?.(`cycle-${cycle}`, cycle / maxCycles);
|
|
120
|
+
const prompt = cycle === 1 ? objective : this.buildContinuationPrompt(objective, lastResult);
|
|
121
|
+
const result = await this.baseOrchestrator.runToCompletion(prompt, orchestratorOpts);
|
|
122
|
+
totalToolCalls += result.toolsUsed.length;
|
|
123
|
+
lastResult = result;
|
|
124
|
+
// Check completion
|
|
125
|
+
if (result.finalResponse?.includes('TASK_FULLY_COMPLETE')) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const reward = scoreOutcome(lastResult);
|
|
130
|
+
return {
|
|
131
|
+
...lastResult,
|
|
132
|
+
mode: 'auto',
|
|
133
|
+
rl: {
|
|
134
|
+
primaryReward: reward,
|
|
135
|
+
chosenAction: 'primary',
|
|
136
|
+
snapshot: { avgReward: reward, primaryReward: reward, refineReward: reward, chosen: 'primary', historySize: cycle },
|
|
137
|
+
},
|
|
138
|
+
stats: {
|
|
139
|
+
duration: Date.now() - startTime,
|
|
140
|
+
cycles: cycle,
|
|
141
|
+
toolCalls: totalToolCalls,
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* APT kill-chain orchestration
|
|
147
|
+
*/
|
|
148
|
+
async runAPT(objective, options, startTime) {
|
|
149
|
+
const target = options.targets?.[0] ?? 'target';
|
|
150
|
+
const goal = options.goal ?? 'all';
|
|
151
|
+
// Parse intent and plan attack chain
|
|
152
|
+
const intent = parseNaturalLanguageIntent(`${goal} attack on ${target}: ${objective}`);
|
|
153
|
+
const chain = planAttackChain(intent, objective);
|
|
154
|
+
const techniques = [];
|
|
155
|
+
// Execute techniques in chain
|
|
156
|
+
let phaseIndex = 0;
|
|
157
|
+
const totalPhases = chain.phases.length;
|
|
158
|
+
while (chain.currentPhase < totalPhases) {
|
|
159
|
+
options.onProgress?.(`phase-${phaseIndex}`, phaseIndex / totalPhases);
|
|
160
|
+
const action = selectNextTechnique(chain);
|
|
161
|
+
if (!action) {
|
|
162
|
+
chain.currentPhase++;
|
|
163
|
+
phaseIndex++;
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
const params = {
|
|
167
|
+
target,
|
|
168
|
+
depth: options.depth ?? 'standard',
|
|
169
|
+
stealth: options.stealthMode ?? false,
|
|
170
|
+
timeout: 30000,
|
|
171
|
+
context: {},
|
|
172
|
+
};
|
|
173
|
+
try {
|
|
174
|
+
const executionResult = await executeTechniqueInChain(chain, action, params);
|
|
175
|
+
techniques.push(executionResult.result);
|
|
176
|
+
options.onTechnique?.(action.id, executionResult.result);
|
|
177
|
+
if (!executionResult.result.success && phaseIndex <= 3) {
|
|
178
|
+
// Critical phase failed (recon through exploitation)
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
catch {
|
|
183
|
+
// Technique failed, move to next phase
|
|
184
|
+
}
|
|
185
|
+
chain.currentPhase++;
|
|
186
|
+
phaseIndex++;
|
|
187
|
+
}
|
|
188
|
+
// Generate summary via agent
|
|
189
|
+
const orchestratorOpts = this.toOrchestratorOptions(options);
|
|
190
|
+
const summaryPrompt = `Summarize APT operation results:\nChain: ${chain.id}\nPhases: ${phaseIndex}/${totalPhases}\nTechniques: ${techniques.length}\nGoal: ${goal}`;
|
|
191
|
+
const agentResult = await this.baseOrchestrator.runToCompletion(summaryPrompt, { ...orchestratorOpts, maxAttempts: 1 });
|
|
192
|
+
const reward = scoreOutcome(agentResult);
|
|
193
|
+
const goalAchieved = techniques.filter(t => t.success).length >= totalPhases * 0.7;
|
|
194
|
+
return {
|
|
195
|
+
...agentResult,
|
|
196
|
+
mode: 'apt',
|
|
197
|
+
rl: {
|
|
198
|
+
primaryReward: reward,
|
|
199
|
+
chosenAction: 'primary',
|
|
200
|
+
snapshot: { avgReward: reward, primaryReward: reward, refineReward: reward, chosen: 'primary', historySize: techniques.length },
|
|
201
|
+
},
|
|
202
|
+
apt: {
|
|
203
|
+
chain,
|
|
204
|
+
techniques,
|
|
205
|
+
goalAchieved,
|
|
206
|
+
},
|
|
207
|
+
stats: {
|
|
208
|
+
duration: Date.now() - startTime,
|
|
209
|
+
cycles: techniques.length,
|
|
210
|
+
toolCalls: agentResult.toolsUsed.length,
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Security assessment orchestration
|
|
216
|
+
*/
|
|
217
|
+
async runSecurity(objective, options, startTime) {
|
|
218
|
+
const securityPrompt = `Security Assessment Objective: ${objective}
|
|
219
|
+
|
|
220
|
+
Execute a thorough security assessment:
|
|
221
|
+
1. Reconnaissance - gather target information
|
|
222
|
+
2. Vulnerability scanning - identify weaknesses
|
|
223
|
+
3. Exploitation testing - verify vulnerabilities
|
|
224
|
+
4. Documentation - produce findings report
|
|
225
|
+
|
|
226
|
+
Targets: ${options.targets?.join(', ') ?? 'as specified'}
|
|
227
|
+
Stealth mode: ${options.stealthMode ? 'enabled' : 'disabled'}
|
|
228
|
+
|
|
229
|
+
Provide concrete findings with severity ratings.`;
|
|
230
|
+
// Run with RL if enabled
|
|
231
|
+
if (options.useRL) {
|
|
232
|
+
return this.runDualRL(securityPrompt, { ...options, mode: 'dual-rl' }, startTime);
|
|
233
|
+
}
|
|
234
|
+
return this.runAuto(securityPrompt, { ...options, mode: 'auto', depth: 'deep' }, startTime);
|
|
235
|
+
}
|
|
236
|
+
// ============================================================================
|
|
237
|
+
// HELPERS
|
|
238
|
+
// ============================================================================
|
|
239
|
+
toOrchestratorOptions(options) {
|
|
240
|
+
return {
|
|
241
|
+
streaming: options.streaming,
|
|
242
|
+
enforceActions: options.enforceActions,
|
|
243
|
+
maxAttempts: options.maxAttempts,
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
buildRefinementPrompt(objective, primary) {
|
|
247
|
+
return `You are refining another agent's work.
|
|
248
|
+
|
|
249
|
+
Original objective: ${objective}
|
|
250
|
+
|
|
251
|
+
Primary output:
|
|
252
|
+
${primary.finalResponse}
|
|
253
|
+
|
|
254
|
+
${primary.limitations.length ? `Limitations: ${primary.limitations.join(', ')}` : ''}
|
|
255
|
+
${primary.recommendations.length ? `Recommendations: ${primary.recommendations.join(', ')}` : ''}
|
|
256
|
+
|
|
257
|
+
Your task:
|
|
258
|
+
- Verify the output is correct
|
|
259
|
+
- Fix any gaps or errors
|
|
260
|
+
- Run minimal tools to validate
|
|
261
|
+
- End with TASK_FULLY_COMPLETE if verified`;
|
|
262
|
+
}
|
|
263
|
+
buildContinuationPrompt(objective, previous) {
|
|
264
|
+
return `Continue working on: ${objective}
|
|
265
|
+
|
|
266
|
+
Previous progress:
|
|
267
|
+
${previous.statusSummary || previous.finalResponse}
|
|
268
|
+
|
|
269
|
+
${previous.limitations.length ? `Remaining issues: ${previous.limitations.join(', ')}` : ''}
|
|
270
|
+
|
|
271
|
+
Continue until complete. End with TASK_FULLY_COMPLETE when done.`;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
// ============================================================================
|
|
275
|
+
// FACTORY
|
|
276
|
+
// ============================================================================
|
|
277
|
+
export function createUnifiedOrchestrator(agent) {
|
|
278
|
+
return new UnifiedOrchestrator(agent);
|
|
279
|
+
}
|
|
280
|
+
// ============================================================================
|
|
281
|
+
// UTILITY EXPORTS
|
|
282
|
+
// ============================================================================
|
|
283
|
+
export { getChainStats, getRLState };
|
|
284
|
+
//# sourceMappingURL=unifiedOrchestrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unifiedOrchestrator.js","sourceRoot":"","sources":["../../src/core/unifiedOrch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E,OAA2B;QAC1E,OAAO;;sBAEW,SAAS;;;EAG7B,OAAO,CAAC,aAAa;;EAErB,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;EAClF,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAoB,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;;;;;;2CAMrD,CAAC;IAC1C,CAAC;IAEO,uBAAuB,CAAC,SAAiB,EAAE,QAA4B;QAC7E,OAAO,wBAAwB,SAAS;;;EAG1C,QAAQ,CAAC,aAAa,IAAI,QAAQ,CAAC,aAAa;;EAEhD,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;;iEAE1B,CAAC;IAChE,CAAC;CACF;AAED,+EAA+E;AAC/E,UAAU;AACV,+EAA+E;AAE/E,MAAM,UAAU,yBAAyB,CAAC,KAAmB;IAC3D,OAAO,IAAI,mBAAmB,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User Defense Orchestrator
|
|
3
|
+
*
|
|
4
|
+
* Unified system for user defense against corporate privacy violations.
|
|
5
|
+
* Integrates all ethical offensive and defensive capabilities.
|
|
6
|
+
*
|
|
7
|
+
* CAPABILITIES:
|
|
8
|
+
* 1. Counter-Surveillance - Monitor corporate monitoring of YOUR systems
|
|
9
|
+
* 2. Evidence Collection - Automated, cryptographically-secured evidence gathering
|
|
10
|
+
* 3. Evidence Permanence - Distributed, censorship-resistant storage
|
|
11
|
+
* 4. Transparency Auditing - Continuous verification of corporate claims
|
|
12
|
+
* 5. Regulatory Automation - Mass filing of complaints
|
|
13
|
+
* 6. Coalition Coordination - Multi-user synchronized action
|
|
14
|
+
* 7. Symmetric Response - Mirror corporate capabilities ethically
|
|
15
|
+
* 8. Economic Pressure - Legal cost imposition strategies
|
|
16
|
+
* 9. Narrative Operations - Truth-based counter-messaging
|
|
17
|
+
* 10. Temporal Persistence - Sustained indefinite pressure
|
|
18
|
+
*
|
|
19
|
+
* ETHICAL FRAMEWORK:
|
|
20
|
+
* - All operations on user-owned systems only
|
|
21
|
+
* - All external data from public sources only
|
|
22
|
+
* - All actions legal and documented
|
|
23
|
+
* - No unauthorized system access
|
|
24
|
+
* - No attacks on infrastructure
|
|
25
|
+
* - Truth and transparency as weapons
|
|
26
|
+
*/
|
|
27
|
+
import { EventEmitter } from 'node:events';
|
|
28
|
+
export type DefenseTarget = 'apple' | 'google' | 'meta' | 'microsoft' | 'amazon';
|
|
29
|
+
export type DefenseCapability = 'counter_surveillance' | 'evidence_collection' | 'evidence_permanence' | 'transparency_audit' | 'regulatory_filing' | 'coalition_coordination' | 'symmetric_response' | 'economic_pressure' | 'narrative_operations' | 'temporal_persistence';
|
|
30
|
+
export interface DefenseSession {
|
|
31
|
+
id: string;
|
|
32
|
+
target: DefenseTarget;
|
|
33
|
+
capabilities: DefenseCapability[];
|
|
34
|
+
status: 'initializing' | 'active' | 'collecting' | 'deploying' | 'sustained' | 'complete';
|
|
35
|
+
created: string;
|
|
36
|
+
lastActivity: string;
|
|
37
|
+
evidenceDir: string;
|
|
38
|
+
findings: DefenseFinding[];
|
|
39
|
+
actions: DefenseAction[];
|
|
40
|
+
metrics: DefenseMetrics;
|
|
41
|
+
hash: string;
|
|
42
|
+
}
|
|
43
|
+
export interface DefenseFinding {
|
|
44
|
+
id: string;
|
|
45
|
+
timestamp: string;
|
|
46
|
+
capability: DefenseCapability;
|
|
47
|
+
type: 'surveillance_detected' | 'claim_falsified' | 'infrastructure_mapped' | 'anomaly_detected' | 'violation_documented';
|
|
48
|
+
severity: 'info' | 'low' | 'medium' | 'high' | 'critical';
|
|
49
|
+
title: string;
|
|
50
|
+
description: string;
|
|
51
|
+
evidence: Record<string, unknown>;
|
|
52
|
+
actionable: boolean;
|
|
53
|
+
hash: string;
|
|
54
|
+
}
|
|
55
|
+
export interface DefenseAction {
|
|
56
|
+
id: string;
|
|
57
|
+
timestamp: string;
|
|
58
|
+
type: 'regulatory_filing' | 'evidence_publication' | 'media_outreach' | 'legal_action' | 'coalition_alert' | 'narrative_deployment';
|
|
59
|
+
status: 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
60
|
+
target: string;
|
|
61
|
+
description: string;
|
|
62
|
+
result?: string;
|
|
63
|
+
hash: string;
|
|
64
|
+
}
|
|
65
|
+
export interface DefenseMetrics {
|
|
66
|
+
surveillanceEventsLogged: number;
|
|
67
|
+
claimsFalsified: number;
|
|
68
|
+
evidenceFilesCreated: number;
|
|
69
|
+
regulatoryFilingsPrepared: number;
|
|
70
|
+
estimatedCostImposed: number;
|
|
71
|
+
narrativeReach: number;
|
|
72
|
+
coalitionSize: number;
|
|
73
|
+
daysActive: number;
|
|
74
|
+
}
|
|
75
|
+
export interface CorporateConnection {
|
|
76
|
+
timestamp: string;
|
|
77
|
+
localIP: string;
|
|
78
|
+
localPort: number;
|
|
79
|
+
remoteIP: string;
|
|
80
|
+
remotePort: number;
|
|
81
|
+
process: string;
|
|
82
|
+
pid: number;
|
|
83
|
+
state: string;
|
|
84
|
+
bytesIn: number;
|
|
85
|
+
bytesOut: number;
|
|
86
|
+
service: string;
|
|
87
|
+
riskLevel: 'low' | 'medium' | 'high';
|
|
88
|
+
}
|
|
89
|
+
export interface DaemonActivity {
|
|
90
|
+
timestamp: string;
|
|
91
|
+
daemon: string;
|
|
92
|
+
pid: number;
|
|
93
|
+
cpu: number;
|
|
94
|
+
memory: number;
|
|
95
|
+
threads: number;
|
|
96
|
+
openFiles: number;
|
|
97
|
+
networkConnections: number;
|
|
98
|
+
state: string;
|
|
99
|
+
}
|
|
100
|
+
export interface TransparencyTest {
|
|
101
|
+
id: string;
|
|
102
|
+
timestamp: string;
|
|
103
|
+
claim: string;
|
|
104
|
+
testMethod: string;
|
|
105
|
+
result: 'verified' | 'falsified' | 'inconclusive';
|
|
106
|
+
evidence: string;
|
|
107
|
+
hash: string;
|
|
108
|
+
}
|
|
109
|
+
export interface RegulatoryFiling {
|
|
110
|
+
id: string;
|
|
111
|
+
agency: string;
|
|
112
|
+
jurisdiction: string;
|
|
113
|
+
type: string;
|
|
114
|
+
status: 'draft' | 'ready' | 'filed' | 'acknowledged' | 'investigating' | 'resolved';
|
|
115
|
+
content: string;
|
|
116
|
+
evidenceHashes: string[];
|
|
117
|
+
filedDate?: string;
|
|
118
|
+
responseDate?: string;
|
|
119
|
+
hash: string;
|
|
120
|
+
}
|
|
121
|
+
export declare class CounterSurveillanceSystem extends EventEmitter {
|
|
122
|
+
private target;
|
|
123
|
+
private logDir;
|
|
124
|
+
private isRunning;
|
|
125
|
+
private monitorInterval;
|
|
126
|
+
private connections;
|
|
127
|
+
private daemons;
|
|
128
|
+
private targetSignatures;
|
|
129
|
+
constructor(target: DefenseTarget, logDir: string);
|
|
130
|
+
start(intervalMs?: number): Promise<void>;
|
|
131
|
+
stop(): void;
|
|
132
|
+
private performScan;
|
|
133
|
+
private scanConnections;
|
|
134
|
+
private parseNetstatLine;
|
|
135
|
+
private assessConnectionRisk;
|
|
136
|
+
private scanDaemons;
|
|
137
|
+
private processConnections;
|
|
138
|
+
private processDaemons;
|
|
139
|
+
private logEvent;
|
|
140
|
+
getActiveConnections(): CorporateConnection[];
|
|
141
|
+
getActiveDaemons(): DaemonActivity[];
|
|
142
|
+
private exec;
|
|
143
|
+
}
|
|
144
|
+
export declare class TransparencyAuditor extends EventEmitter {
|
|
145
|
+
private target;
|
|
146
|
+
private evidenceDir;
|
|
147
|
+
private tests;
|
|
148
|
+
private targetClaims;
|
|
149
|
+
constructor(target: DefenseTarget, evidenceDir: string);
|
|
150
|
+
runAllTests(): Promise<TransparencyTest[]>;
|
|
151
|
+
private testDNSResolution;
|
|
152
|
+
private testHTTPEndpoint;
|
|
153
|
+
private testKeyVerification;
|
|
154
|
+
private hashTest;
|
|
155
|
+
private saveResults;
|
|
156
|
+
private exec;
|
|
157
|
+
}
|
|
158
|
+
export declare class EvidencePermanenceSystem {
|
|
159
|
+
private evidenceDir;
|
|
160
|
+
private hashes;
|
|
161
|
+
constructor(evidenceDir: string);
|
|
162
|
+
hashAllEvidence(): Promise<Map<string, string>>;
|
|
163
|
+
generateMasterHash(): string;
|
|
164
|
+
generateBlockchainCommitScript(): string;
|
|
165
|
+
generateIPFSPublishScript(): string;
|
|
166
|
+
saveHashChain(): Promise<string>;
|
|
167
|
+
}
|
|
168
|
+
export declare class RegulatoryFilingGenerator {
|
|
169
|
+
private target;
|
|
170
|
+
private evidenceDir;
|
|
171
|
+
private filings;
|
|
172
|
+
private agencies;
|
|
173
|
+
constructor(target: DefenseTarget, evidenceDir: string);
|
|
174
|
+
generateAllFilings(evidenceHash: string): Promise<RegulatoryFiling[]>;
|
|
175
|
+
private generateFTCComplaint;
|
|
176
|
+
private generateStateAGComplaint;
|
|
177
|
+
private generateGDPRComplaint;
|
|
178
|
+
private getTargetInfo;
|
|
179
|
+
}
|
|
180
|
+
export declare class UserDefenseOrchestrator extends EventEmitter {
|
|
181
|
+
private session;
|
|
182
|
+
private counterSurveillance;
|
|
183
|
+
private transparencyAuditor;
|
|
184
|
+
private evidencePermanence;
|
|
185
|
+
private regulatoryGenerator;
|
|
186
|
+
constructor(target: DefenseTarget, evidenceDir: string);
|
|
187
|
+
private setupEventHandlers;
|
|
188
|
+
private addFinding;
|
|
189
|
+
initialize(): Promise<void>;
|
|
190
|
+
startCounterSurveillance(intervalMs?: number): Promise<void>;
|
|
191
|
+
stopCounterSurveillance(): void;
|
|
192
|
+
runTransparencyAudit(): Promise<TransparencyTest[]>;
|
|
193
|
+
generateEvidencePackage(): Promise<string>;
|
|
194
|
+
generateRegulatoryFilings(): Promise<RegulatoryFiling[]>;
|
|
195
|
+
runFullDefense(): Promise<DefenseSession>;
|
|
196
|
+
private generateFinalReport;
|
|
197
|
+
getSession(): DefenseSession;
|
|
198
|
+
getFindings(): DefenseFinding[];
|
|
199
|
+
getMetrics(): DefenseMetrics;
|
|
200
|
+
}
|
|
201
|
+
export default UserDefenseOrchestrator;
|
|
202
|
+
//# sourceMappingURL=userDefenseOrchestrator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userDefenseOrchestrator.d.ts","sourceRoot":"","sources":["../../src/core/userDefenseOrchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAUH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ3C,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEjF,MAAM,MAAM,iBAAiB,GACzB,sBAAsB,GACtB,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,wBAAwB,GACxB,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,aAAa,CAAC;IACtB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,MAAM,EAAE,cAAc,GAAG,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;IAC1F,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,OAAO,EAAE,aAAa,EAAE,CAAC;IACz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