erosolar-cli 1.7.55 → 1.7.57
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/dist/shell/unifiedInputProcessor.d.ts +15 -12
- package/dist/shell/unifiedInputProcessor.d.ts.map +1 -1
- package/dist/shell/unifiedInputProcessor.js +45 -72
- package/dist/shell/unifiedInputProcessor.js.map +1 -1
- package/package.json +4 -4
- package/dist/active-stack-security.d.ts +0 -110
- package/dist/active-stack-security.js +0 -313
- package/dist/active-stack-security.js.map +0 -1
- package/dist/advanced-targeting.d.ts +0 -113
- package/dist/advanced-targeting.js +0 -252
- package/dist/advanced-targeting.js.map +0 -1
- package/dist/bin/adapters/node/index.js +0 -33
- package/dist/bin/adapters/types.js +0 -1
- package/dist/bin/alpha-zero/agentWrapper.js +0 -165
- package/dist/bin/alpha-zero/codeEvaluator.js +0 -272
- package/dist/bin/alpha-zero/competitiveRunner.js +0 -219
- package/dist/bin/alpha-zero/index.js +0 -98
- package/dist/bin/alpha-zero/introspection.js +0 -298
- package/dist/bin/alpha-zero/metricsTracker.js +0 -207
- package/dist/bin/alpha-zero/security/core.js +0 -269
- package/dist/bin/alpha-zero/security/google.js +0 -308
- package/dist/bin/alpha-zero/security/googleLoader.js +0 -40
- package/dist/bin/alpha-zero/security/index.js +0 -31
- package/dist/bin/alpha-zero/security/simulation.js +0 -274
- package/dist/bin/alpha-zero/selfModification.js +0 -231
- package/dist/bin/alpha-zero/types.js +0 -30
- package/dist/bin/bin/erosolar-optimized.js +0 -205
- package/dist/bin/capabilities/agentSpawningCapability.js +0 -116
- package/dist/bin/capabilities/bashCapability.js +0 -22
- package/dist/bin/capabilities/cloudCapability.js +0 -36
- package/dist/bin/capabilities/codeAnalysisCapability.js +0 -22
- package/dist/bin/capabilities/codeQualityCapability.js +0 -23
- package/dist/bin/capabilities/dependencySecurityCapability.js +0 -22
- package/dist/bin/capabilities/devCapability.js +0 -22
- package/dist/bin/capabilities/editCapability.js +0 -28
- package/dist/bin/capabilities/emailCapability.js +0 -20
- package/dist/bin/capabilities/enhancedGitCapability.js +0 -221
- package/dist/bin/capabilities/filesystemCapability.js +0 -22
- package/dist/bin/capabilities/globCapability.js +0 -28
- package/dist/bin/capabilities/interactionCapability.js +0 -20
- package/dist/bin/capabilities/learnCapability.js +0 -22
- package/dist/bin/capabilities/mcpCapability.js +0 -20
- package/dist/bin/capabilities/notebookCapability.js +0 -28
- package/dist/bin/capabilities/planningCapability.js +0 -27
- package/dist/bin/capabilities/refactoringCapability.js +0 -23
- package/dist/bin/capabilities/repoChecksCapability.js +0 -22
- package/dist/bin/capabilities/searchCapability.js +0 -22
- package/dist/bin/capabilities/skillCapability.js +0 -76
- package/dist/bin/capabilities/taskManagementCapability.js +0 -20
- package/dist/bin/capabilities/testingCapability.js +0 -23
- package/dist/bin/capabilities/toolManifest.js +0 -159
- package/dist/bin/capabilities/toolRegistry.js +0 -114
- package/dist/bin/capabilities/webCapability.js +0 -20
- package/dist/bin/config.js +0 -139
- package/dist/bin/contracts/v1/agent.js +0 -7
- package/dist/bin/contracts/v1/agentProfileManifest.js +0 -8
- package/dist/bin/contracts/v1/agentRules.js +0 -9
- package/dist/bin/contracts/v1/toolAccess.js +0 -8
- package/dist/bin/erosolar-optimized.d.ts +0 -12
- package/dist/bin/erosolar-optimized.d.ts.map +0 -1
- package/dist/bin/erosolar-optimized.js +0 -239
- package/dist/bin/erosolar-optimized.js.map +0 -1
- package/dist/bin/headless/headlessApp.js +0 -172
- package/dist/bin/mcp/config.js +0 -202
- package/dist/bin/mcp/stdioClient.js +0 -172
- package/dist/bin/mcp/toolBridge.js +0 -104
- package/dist/bin/mcp/types.js +0 -1
- package/dist/bin/plugins/index.js +0 -113
- package/dist/bin/plugins/providers/anthropic/index.js +0 -25
- package/dist/bin/plugins/providers/deepseek/index.js +0 -24
- package/dist/bin/plugins/providers/google/index.js +0 -26
- package/dist/bin/plugins/providers/index.js +0 -19
- package/dist/bin/plugins/providers/ollama/index.js +0 -59
- package/dist/bin/plugins/providers/openai/index.js +0 -26
- package/dist/bin/plugins/providers/xai/index.js +0 -24
- package/dist/bin/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -8
- package/dist/bin/plugins/tools/bash/localBashPlugin.js +0 -13
- package/dist/bin/plugins/tools/checks/localRepoChecksPlugin.js +0 -13
- package/dist/bin/plugins/tools/cloud/cloudPlugin.js +0 -13
- package/dist/bin/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -13
- package/dist/bin/plugins/tools/codeQuality/codeQualityPlugin.js +0 -13
- package/dist/bin/plugins/tools/dependency/dependencyPlugin.js +0 -11
- package/dist/bin/plugins/tools/development/devPlugin.js +0 -13
- package/dist/bin/plugins/tools/edit/editPlugin.js +0 -14
- package/dist/bin/plugins/tools/email/emailPlugin.js +0 -11
- package/dist/bin/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -8
- package/dist/bin/plugins/tools/filesystem/localFilesystemPlugin.js +0 -13
- package/dist/bin/plugins/tools/glob/globPlugin.js +0 -14
- package/dist/bin/plugins/tools/index.js +0 -2
- package/dist/bin/plugins/tools/interaction/interactionPlugin.js +0 -11
- package/dist/bin/plugins/tools/learn/learnPlugin.js +0 -13
- package/dist/bin/plugins/tools/mcp/mcpPlugin.js +0 -8
- package/dist/bin/plugins/tools/nodeDefaults.js +0 -56
- package/dist/bin/plugins/tools/notebook/notebookPlugin.js +0 -14
- package/dist/bin/plugins/tools/planning/planningPlugin.js +0 -14
- package/dist/bin/plugins/tools/refactoring/refactoringPlugin.js +0 -11
- package/dist/bin/plugins/tools/registry.js +0 -57
- package/dist/bin/plugins/tools/search/localSearchPlugin.js +0 -13
- package/dist/bin/plugins/tools/skills/skillPlugin.js +0 -8
- package/dist/bin/plugins/tools/taskManagement/taskManagementPlugin.js +0 -11
- package/dist/bin/plugins/tools/testing/testingPlugin.js +0 -11
- package/dist/bin/plugins/tools/web/webPlugin.js +0 -11
- package/dist/bin/providers/anthropicProvider.js +0 -329
- package/dist/bin/providers/googleProvider.js +0 -203
- package/dist/bin/providers/openaiChatCompletionsProvider.js +0 -208
- package/dist/bin/providers/openaiResponsesProvider.js +0 -249
- package/dist/bin/providers/providerFactory.js +0 -24
- package/dist/bin/runtime/agentController.js +0 -321
- package/dist/bin/runtime/agentHost.js +0 -153
- package/dist/bin/runtime/agentSession.js +0 -195
- package/dist/bin/runtime/node.js +0 -10
- package/dist/bin/runtime/universal.js +0 -28
- package/dist/bin/skills/skillRepository.js +0 -236
- package/dist/bin/skills/types.js +0 -1
- package/dist/bin/subagents/taskRunner.js +0 -269
- package/dist/bin/tools/backgroundBashTools.js +0 -211
- package/dist/bin/tools/bashTools.js +0 -159
- package/dist/bin/tools/cloudTools.js +0 -864
- package/dist/bin/tools/codeAnalysisTools.js +0 -641
- package/dist/bin/tools/codeQualityTools.js +0 -294
- package/dist/bin/tools/dependencyTools.js +0 -282
- package/dist/bin/tools/devTools.js +0 -238
- package/dist/bin/tools/diffUtils.js +0 -137
- package/dist/bin/tools/editTools.js +0 -134
- package/dist/bin/tools/emailTools.js +0 -448
- package/dist/bin/tools/fileTools.js +0 -282
- package/dist/bin/tools/globTools.js +0 -173
- package/dist/bin/tools/grepTools.js +0 -332
- package/dist/bin/tools/interactionTools.js +0 -170
- package/dist/bin/tools/learnTools.js +0 -1818
- package/dist/bin/tools/notebookEditTools.js +0 -196
- package/dist/bin/tools/planningTools.js +0 -46
- package/dist/bin/tools/refactoringTools.js +0 -293
- package/dist/bin/tools/repoChecksTools.js +0 -160
- package/dist/bin/tools/searchTools.js +0 -206
- package/dist/bin/tools/skillTools.js +0 -177
- package/dist/bin/tools/taskManagementTools.js +0 -156
- package/dist/bin/tools/testingTools.js +0 -232
- package/dist/bin/tools/webTools.js +0 -480
- package/dist/bin/workspace.js +0 -106
- package/dist/bin/workspace.validator.js +0 -213
- package/dist/capabilities/offensiveSecurityCapability.d.ts +0 -26
- package/dist/capabilities/offensiveSecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/offensiveSecurityCapability.js +0 -58
- package/dist/capabilities/offensiveSecurityCapability.js.map +0 -1
- package/dist/capabilities/realSecurityCapability.d.ts +0 -26
- package/dist/capabilities/realSecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/realSecurityCapability.js +0 -53
- package/dist/capabilities/realSecurityCapability.js.map +0 -1
- package/dist/capabilities/securityCapability.d.ts +0 -32
- package/dist/capabilities/securityCapability.d.ts.map +0 -1
- package/dist/capabilities/securityCapability.js +0 -57
- package/dist/capabilities/securityCapability.js.map +0 -1
- package/dist/capabilities/ultimateSecurityCapability.d.ts +0 -42
- package/dist/capabilities/ultimateSecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/ultimateSecurityCapability.js +0 -96
- package/dist/capabilities/ultimateSecurityCapability.js.map +0 -1
- package/dist/core/designThoughtCheck.d.ts +0 -196
- package/dist/core/designThoughtCheck.d.ts.map +0 -1
- package/dist/core/designThoughtCheck.js +0 -287
- package/dist/core/designThoughtCheck.js.map +0 -1
- package/dist/core/designThoughtCheckEngine.d.ts +0 -58
- package/dist/core/designThoughtCheckEngine.d.ts.map +0 -1
- package/dist/core/designThoughtCheckEngine.js +0 -358
- package/dist/core/designThoughtCheckEngine.js.map +0 -1
- package/dist/core/designThoughtCheckIntegration.d.ts +0 -103
- package/dist/core/designThoughtCheckIntegration.d.ts.map +0 -1
- package/dist/core/designThoughtCheckIntegration.js +0 -207
- package/dist/core/designThoughtCheckIntegration.js.map +0 -1
- package/dist/core/intelligenceTools.d.ts +0 -19
- package/dist/core/intelligenceTools.d.ts.map +0 -1
- package/dist/core/intelligenceTools.js +0 -453
- package/dist/core/intelligenceTools.js.map +0 -1
- package/dist/core/operationalTools.d.ts +0 -19
- package/dist/core/operationalTools.d.ts.map +0 -1
- package/dist/core/operationalTools.js +0 -467
- package/dist/core/operationalTools.js.map +0 -1
- package/dist/offensive/core/offensive-engine.d.ts +0 -171
- package/dist/offensive/core/offensive-engine.d.ts.map +0 -1
- package/dist/offensive/core/offensive-engine.js +0 -345
- package/dist/offensive/core/offensive-engine.js.map +0 -1
- package/dist/offensive/core/offensive-integration.d.ts +0 -129
- package/dist/offensive/core/offensive-integration.d.ts.map +0 -1
- package/dist/offensive/core/offensive-integration.js +0 -364
- package/dist/offensive/core/offensive-integration.js.map +0 -1
- package/dist/offensive/core/offensive-tools.d.ts +0 -55
- package/dist/offensive/core/offensive-tools.d.ts.map +0 -1
- package/dist/offensive/core/offensive-tools.js +0 -438
- package/dist/offensive/core/offensive-tools.js.map +0 -1
- package/dist/offensive/offensive-cli.d.ts +0 -48
- package/dist/offensive/offensive-cli.d.ts.map +0 -1
- package/dist/offensive/offensive-cli.js +0 -233
- package/dist/offensive/offensive-cli.js.map +0 -1
- package/dist/security/apt-simulation-cli.d.ts +0 -57
- package/dist/security/apt-simulation-cli.d.ts.map +0 -1
- package/dist/security/apt-simulation-cli.js +0 -278
- package/dist/security/apt-simulation-cli.js.map +0 -1
- package/dist/security/apt-simulation-engine-complete.d.ts +0 -97
- package/dist/security/apt-simulation-engine-complete.d.ts.map +0 -1
- package/dist/security/apt-simulation-engine-complete.js +0 -441
- package/dist/security/apt-simulation-engine-complete.js.map +0 -1
- package/dist/security/apt-simulation-engine.d.ts +0 -97
- package/dist/security/apt-simulation-engine.d.ts.map +0 -1
- package/dist/security/apt-simulation-engine.js +0 -441
- package/dist/security/apt-simulation-engine.js.map +0 -1
- package/dist/security/authorization.d.ts +0 -45
- package/dist/security/authorization.d.ts.map +0 -1
- package/dist/security/authorization.js +0 -128
- package/dist/security/authorization.js.map +0 -1
- package/dist/security/comprehensive-security-research.d.ts +0 -84
- package/dist/security/comprehensive-security-research.d.ts.map +0 -1
- package/dist/security/comprehensive-security-research.js +0 -211
- package/dist/security/comprehensive-security-research.js.map +0 -1
- package/dist/security/offensive/exploitationEngine.d.ts +0 -54
- package/dist/security/offensive/exploitationEngine.d.ts.map +0 -1
- package/dist/security/offensive/exploitationEngine.js +0 -263
- package/dist/security/offensive/exploitationEngine.js.map +0 -1
- package/dist/security/real/networkExploitation.d.ts +0 -92
- package/dist/security/real/networkExploitation.d.ts.map +0 -1
- package/dist/security/real/networkExploitation.js +0 -316
- package/dist/security/real/networkExploitation.js.map +0 -1
- package/dist/security/real/persistenceImplementation.d.ts +0 -62
- package/dist/security/real/persistenceImplementation.d.ts.map +0 -1
- package/dist/security/real/persistenceImplementation.js +0 -323
- package/dist/security/real/persistenceImplementation.js.map +0 -1
- package/dist/security/real/vulnerabilityScanner.d.ts +0 -73
- package/dist/security/real/vulnerabilityScanner.d.ts.map +0 -1
- package/dist/security/real/vulnerabilityScanner.js +0 -341
- package/dist/security/real/vulnerabilityScanner.js.map +0 -1
- package/dist/shell/capturePastePatch.d.ts +0 -9
- package/dist/shell/capturePastePatch.d.ts.map +0 -1
- package/dist/shell/capturePastePatch.js +0 -98
- package/dist/shell/capturePastePatch.js.map +0 -1
- package/dist/shell/enhancedInteractiveShell.d.ts +0 -90
- package/dist/shell/enhancedInteractiveShell.d.ts.map +0 -1
- package/dist/shell/enhancedInteractiveShell.js +0 -248
- package/dist/shell/enhancedInteractiveShell.js.map +0 -1
- package/dist/shell/inputProcessor.d.ts +0 -56
- package/dist/shell/inputProcessor.d.ts.map +0 -1
- package/dist/shell/inputProcessor.js +0 -172
- package/dist/shell/inputProcessor.js.map +0 -1
- package/dist/shell/interactiveShell-patch.d.ts +0 -27
- package/dist/shell/interactiveShell-patch.d.ts.map +0 -1
- package/dist/shell/interactiveShell-patch.js +0 -38
- package/dist/shell/interactiveShell-patch.js.map +0 -1
- package/dist/shell/interactiveShell-robust.d.ts +0 -26
- package/dist/shell/interactiveShell-robust.d.ts.map +0 -1
- package/dist/shell/interactiveShell-robust.js +0 -34
- package/dist/shell/interactiveShell-robust.js.map +0 -1
- package/dist/shell/multiLinePasteManager.d.ts +0 -106
- package/dist/shell/multiLinePasteManager.d.ts.map +0 -1
- package/dist/shell/multiLinePasteManager.js +0 -308
- package/dist/shell/multiLinePasteManager.js.map +0 -1
- package/dist/shell/processInputBlockPatch.d.ts +0 -8
- package/dist/shell/processInputBlockPatch.d.ts.map +0 -1
- package/dist/shell/processInputBlockPatch.js +0 -133
- package/dist/shell/processInputBlockPatch.js.map +0 -1
- package/dist/tools/enhancedSecurityTools.d.ts +0 -19
- package/dist/tools/enhancedSecurityTools.d.ts.map +0 -1
- package/dist/tools/enhancedSecurityTools.js +0 -215
- package/dist/tools/enhancedSecurityTools.js.map +0 -1
- package/dist/tools/offensiveSecurityTools.d.ts +0 -16
- package/dist/tools/offensiveSecurityTools.d.ts.map +0 -1
- package/dist/tools/offensiveSecurityTools.js +0 -285
- package/dist/tools/offensiveSecurityTools.js.map +0 -1
- package/dist/tools/realSecurityTools.d.ts +0 -18
- package/dist/tools/realSecurityTools.d.ts.map +0 -1
- package/dist/tools/realSecurityTools.js +0 -468
- package/dist/tools/realSecurityTools.js.map +0 -1
- package/dist/tools/securityTools.d.ts +0 -20
- package/dist/tools/securityTools.d.ts.map +0 -1
- package/dist/tools/securityTools.js +0 -449
- package/dist/tools/securityTools.js.map +0 -1
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Design Thought Check Integration
|
|
3
|
-
*
|
|
4
|
-
* Integrates the design thought check system with the existing agent architecture
|
|
5
|
-
* to automatically validate implementation decisions before execution.
|
|
6
|
-
*
|
|
7
|
-
* @license MIT
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Design Thought Check Integration Manager
|
|
11
|
-
*
|
|
12
|
-
* Manages the integration of design thought checks with the agent system,
|
|
13
|
-
* automatically validating implementation decisions before execution.
|
|
14
|
-
*/
|
|
15
|
-
export class DesignThoughtCheckIntegration {
|
|
16
|
-
engine;
|
|
17
|
-
options;
|
|
18
|
-
constructor(engine, options = {
|
|
19
|
-
enabled: true,
|
|
20
|
-
minValidationScore: 70,
|
|
21
|
-
blockOnCriticalIssues: true,
|
|
22
|
-
logResults: true,
|
|
23
|
-
provideSuggestions: true
|
|
24
|
-
}) {
|
|
25
|
-
this.engine = engine;
|
|
26
|
-
this.options = {
|
|
27
|
-
enabled: options.enabled ?? true,
|
|
28
|
-
minValidationScore: options.minValidationScore ?? 70,
|
|
29
|
-
blockOnCriticalIssues: options.blockOnCriticalIssues ?? true,
|
|
30
|
-
logResults: options.logResults ?? true,
|
|
31
|
-
provideSuggestions: options.provideSuggestions ?? true
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Check if a set of tool calls should be executed based on design validation
|
|
36
|
-
*/
|
|
37
|
-
async shouldExecuteToolCalls(intent, approach, toolCalls, agent) {
|
|
38
|
-
if (!this.options.enabled) {
|
|
39
|
-
return { shouldExecute: true, reason: 'Design thought checks disabled' };
|
|
40
|
-
}
|
|
41
|
-
// Perform comprehensive design thought check
|
|
42
|
-
const thoughtCheck = await this.engine.check(intent, approach, toolCalls);
|
|
43
|
-
// Check for critical issues
|
|
44
|
-
if (this.options.blockOnCriticalIssues && thoughtCheck.validation.criticalIssues.length > 0) {
|
|
45
|
-
return {
|
|
46
|
-
shouldExecute: false,
|
|
47
|
-
reason: `Critical design issues detected: ${thoughtCheck.validation.criticalIssues.map(issue => issue.description).join(', ')}`,
|
|
48
|
-
improvements: thoughtCheck.recommendation.requiredChanges,
|
|
49
|
-
thoughtCheck
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
// Check validation score
|
|
53
|
-
if (thoughtCheck.validation.score < this.options.minValidationScore) {
|
|
54
|
-
return {
|
|
55
|
-
shouldExecute: false,
|
|
56
|
-
reason: `Design validation score too low: ${thoughtCheck.validation.score}/${this.options.minValidationScore}`,
|
|
57
|
-
improvements: thoughtCheck.recommendation.requiredChanges,
|
|
58
|
-
thoughtCheck
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
// Check production readiness
|
|
62
|
-
if (thoughtCheck.productionReadiness < this.options.minValidationScore) {
|
|
63
|
-
return {
|
|
64
|
-
shouldExecute: false,
|
|
65
|
-
reason: `Production readiness too low: ${thoughtCheck.productionReadiness}/${this.options.minValidationScore}`,
|
|
66
|
-
improvements: thoughtCheck.recommendation.recommendedImprovements,
|
|
67
|
-
thoughtCheck
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
// Log results if enabled
|
|
71
|
-
if (this.options.logResults) {
|
|
72
|
-
this.logThoughtCheckResults(thoughtCheck, agent);
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
shouldExecute: true,
|
|
76
|
-
reason: `Design validation passed: ${thoughtCheck.validation.score}/100`,
|
|
77
|
-
improvements: this.options.provideSuggestions ? thoughtCheck.recommendation.recommendedImprovements : [],
|
|
78
|
-
thoughtCheck
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Get improvement suggestions for a set of tool calls
|
|
83
|
-
*/
|
|
84
|
-
async getImprovementSuggestions(intent, approach, toolCalls) {
|
|
85
|
-
const thoughtCheck = await this.engine.check(intent, approach, toolCalls, {
|
|
86
|
-
exploreAlternatives: true,
|
|
87
|
-
assessProductionReadiness: true
|
|
88
|
-
});
|
|
89
|
-
return {
|
|
90
|
-
suggestions: [
|
|
91
|
-
...thoughtCheck.recommendation.requiredChanges,
|
|
92
|
-
...thoughtCheck.recommendation.recommendedImprovements
|
|
93
|
-
],
|
|
94
|
-
alternatives: thoughtCheck.alternatives,
|
|
95
|
-
risks: thoughtCheck.risks
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Validate a specific implementation approach
|
|
100
|
-
*/
|
|
101
|
-
async validateApproach(intent, approach, toolCalls) {
|
|
102
|
-
const thoughtCheck = await this.engine.check(intent, approach, toolCalls);
|
|
103
|
-
return {
|
|
104
|
-
isValid: thoughtCheck.recommendation.verdict === 'approve' || thoughtCheck.recommendation.verdict === 'approve-with-changes',
|
|
105
|
-
score: thoughtCheck.validation.score,
|
|
106
|
-
criticalIssues: thoughtCheck.validation.criticalIssues.map(issue => issue.description),
|
|
107
|
-
warnings: thoughtCheck.validation.warnings.map(warning => warning.description),
|
|
108
|
-
suggestions: thoughtCheck.validation.suggestions.map(suggestion => suggestion.description)
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Compare multiple implementation approaches
|
|
113
|
-
*/
|
|
114
|
-
async compareApproaches(intent, approaches) {
|
|
115
|
-
const results = [];
|
|
116
|
-
for (const approach of approaches) {
|
|
117
|
-
const thoughtCheck = await this.engine.check(intent, approach.description, approach.toolCalls);
|
|
118
|
-
results.push({
|
|
119
|
-
name: approach.name,
|
|
120
|
-
description: approach.description,
|
|
121
|
-
validationScore: thoughtCheck.validation.score,
|
|
122
|
-
productionReadiness: thoughtCheck.productionReadiness,
|
|
123
|
-
criticalIssues: thoughtCheck.validation.criticalIssues.length,
|
|
124
|
-
recommendation: thoughtCheck.recommendation.verdict
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
// Sort by validation score (descending)
|
|
128
|
-
return results.sort((a, b) => b.validationScore - a.validationScore);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Log thought check results
|
|
132
|
-
*/
|
|
133
|
-
logThoughtCheckResults(thoughtCheck, agent) {
|
|
134
|
-
const logEntry = {
|
|
135
|
-
timestamp: new Date().toISOString(),
|
|
136
|
-
thoughtCheckId: thoughtCheck.id,
|
|
137
|
-
intent: thoughtCheck.originalIntent,
|
|
138
|
-
validationScore: thoughtCheck.validation.score,
|
|
139
|
-
productionReadiness: thoughtCheck.productionReadiness,
|
|
140
|
-
criticalIssues: thoughtCheck.validation.criticalIssues.length,
|
|
141
|
-
warnings: thoughtCheck.validation.warnings.length,
|
|
142
|
-
suggestions: thoughtCheck.validation.suggestions.length,
|
|
143
|
-
recommendation: thoughtCheck.recommendation.verdict,
|
|
144
|
-
confidence: thoughtCheck.recommendation.confidence
|
|
145
|
-
};
|
|
146
|
-
// Log to agent's logging system if available
|
|
147
|
-
if (agent.logger) {
|
|
148
|
-
agent.logger.info('Design thought check completed', logEntry);
|
|
149
|
-
}
|
|
150
|
-
// Also log to console for visibility
|
|
151
|
-
console.log(`🧠 Design Thought Check: ${thoughtCheck.validation.score}/100 | ${thoughtCheck.recommendation.verdict} | ${thoughtCheck.originalIntent.substring(0, 50)}...`);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Update integration options
|
|
155
|
-
*/
|
|
156
|
-
updateOptions(newOptions) {
|
|
157
|
-
this.options = { ...this.options, ...newOptions };
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Get current integration status
|
|
161
|
-
*/
|
|
162
|
-
getStatus() {
|
|
163
|
-
// This would track actual metrics in a real implementation
|
|
164
|
-
return {
|
|
165
|
-
enabled: this.options.enabled,
|
|
166
|
-
minValidationScore: this.options.minValidationScore,
|
|
167
|
-
blockOnCriticalIssues: this.options.blockOnCriticalIssues,
|
|
168
|
-
checksPerformed: 0, // Would be tracked in real implementation
|
|
169
|
-
averageScore: 0 // Would be tracked in real implementation
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Factory function to create design thought check integration
|
|
175
|
-
*/
|
|
176
|
-
export function createDesignThoughtCheckIntegration(options) {
|
|
177
|
-
// Import and create the engine
|
|
178
|
-
// In a real implementation, this would import the actual engine
|
|
179
|
-
const engine = {}; // Placeholder
|
|
180
|
-
return new DesignThoughtCheckIntegration(engine, options);
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Decorator for agent methods to automatically perform design thought checks
|
|
184
|
-
*/
|
|
185
|
-
export function withDesignThoughtCheck(integration) {
|
|
186
|
-
return function (target, propertyName, descriptor) {
|
|
187
|
-
const method = descriptor.value;
|
|
188
|
-
descriptor.value = async function (...args) {
|
|
189
|
-
// Extract intent, approach, and tool calls from arguments
|
|
190
|
-
// This would need to be adapted based on the actual method signature
|
|
191
|
-
const [intent, approach, toolCalls] = args;
|
|
192
|
-
if (toolCalls && Array.isArray(toolCalls)) {
|
|
193
|
-
const shouldExecute = await integration.shouldExecuteToolCalls(intent, approach, toolCalls, this);
|
|
194
|
-
if (!shouldExecute.shouldExecute) {
|
|
195
|
-
throw new Error(`Design validation failed: ${shouldExecute.reason}`);
|
|
196
|
-
}
|
|
197
|
-
// Log improvements if any
|
|
198
|
-
if (shouldExecute.improvements && shouldExecute.improvements.length > 0) {
|
|
199
|
-
console.log('💡 Design improvements suggested:', shouldExecute.improvements);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return method.apply(this, args);
|
|
203
|
-
};
|
|
204
|
-
return descriptor;
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
//# sourceMappingURL=designThoughtCheckIntegration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"designThoughtCheckIntegration.js","sourceRoot":"","sources":["../../src/core/designThoughtCheckIntegration.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAuBH;;;;;GAKG;AACH,MAAM,OAAO,6BAA6B;IAChC,MAAM,CAA2B;IACjC,OAAO,CAA2C;IAE1D,YACE,MAAgC,EAChC,UAA0C;QACxC,OAAO,EAAE,IAAI;QACb,kBAAkB,EAAE,EAAE;QACtB,qBAAqB,EAAE,IAAI;QAC3B,UAAU,EAAE,IAAI;QAChB,kBAAkB,EAAE,IAAI;KACzB;QAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG;YACb,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,IAAI;YAChC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,IAAI,EAAE;YACpD,qBAAqB,EAAE,OAAO,CAAC,qBAAqB,IAAI,IAAI;YAC5D,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI;YACtC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,IAAI,IAAI;SACvD,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,sBAAsB,CAC1B,MAAc,EACd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,CAAC,CAAC;gBAC/E,CAAC;YACH,CAAC;YAED,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC;QAEF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Intelligence-Grade Security Tools
|
|
3
|
-
*
|
|
4
|
-
* Advanced capabilities for intelligence operations and security testing.
|
|
5
|
-
* These tools provide sophisticated techniques used by intelligence agencies.
|
|
6
|
-
*
|
|
7
|
-
* LEGAL NOTICE: For authorized security research and testing only.
|
|
8
|
-
*/
|
|
9
|
-
import type { ToolDefinition } from './toolRuntime.js';
|
|
10
|
-
export interface IntelligenceToolsOptions {
|
|
11
|
-
enableAdvancedTechniques?: boolean;
|
|
12
|
-
requireAuthorization?: boolean;
|
|
13
|
-
stealthMode?: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Create intelligence-grade security tools
|
|
17
|
-
*/
|
|
18
|
-
export declare function createIntelligenceTools(workingDir: string, options?: IntelligenceToolsOptions): ToolDefinition[];
|
|
19
|
-
//# sourceMappingURL=intelligenceTools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intelligenceTools.d.ts","sourceRoot":"","sources":["../../src/core/intelligenceTools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,MAAM,WAAW,wBAAwB;IACvC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,wBAA6B,GACrC,cAAc,EAAE,CAkClB"}
|