erosolar-cli 1.7.333 → 1.7.335
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/README.md +148 -24
- package/dist/alpha-zero/agentWrapper.d.ts +84 -0
- package/dist/alpha-zero/agentWrapper.d.ts.map +1 -0
- package/dist/alpha-zero/agentWrapper.js +171 -0
- package/dist/alpha-zero/agentWrapper.js.map +1 -0
- package/dist/alpha-zero/codeEvaluator.d.ts +25 -0
- package/dist/alpha-zero/codeEvaluator.d.ts.map +1 -0
- package/dist/alpha-zero/codeEvaluator.js +273 -0
- package/dist/alpha-zero/codeEvaluator.js.map +1 -0
- package/dist/alpha-zero/competitiveRunner.d.ts +66 -0
- package/dist/alpha-zero/competitiveRunner.d.ts.map +1 -0
- package/dist/alpha-zero/competitiveRunner.js +224 -0
- package/dist/alpha-zero/competitiveRunner.js.map +1 -0
- package/dist/alpha-zero/index.d.ts +67 -0
- package/dist/alpha-zero/index.d.ts.map +1 -0
- package/dist/alpha-zero/index.js +99 -0
- package/dist/alpha-zero/index.js.map +1 -0
- package/dist/alpha-zero/introspection.d.ts +128 -0
- package/dist/alpha-zero/introspection.d.ts.map +1 -0
- package/dist/alpha-zero/introspection.js +300 -0
- package/dist/alpha-zero/introspection.js.map +1 -0
- package/dist/alpha-zero/metricsTracker.d.ts +71 -0
- package/dist/alpha-zero/metricsTracker.d.ts.map +1 -0
- package/dist/{core → alpha-zero}/metricsTracker.js +5 -2
- package/dist/alpha-zero/metricsTracker.js.map +1 -0
- package/dist/alpha-zero/security/core.d.ts +125 -0
- package/dist/alpha-zero/security/core.d.ts.map +1 -0
- package/dist/alpha-zero/security/core.js +271 -0
- package/dist/alpha-zero/security/core.js.map +1 -0
- package/dist/alpha-zero/security/google.d.ts +125 -0
- package/dist/alpha-zero/security/google.d.ts.map +1 -0
- package/dist/alpha-zero/security/google.js +311 -0
- package/dist/alpha-zero/security/google.js.map +1 -0
- package/dist/alpha-zero/security/googleLoader.d.ts +17 -0
- package/dist/alpha-zero/security/googleLoader.d.ts.map +1 -0
- package/dist/alpha-zero/security/googleLoader.js +41 -0
- package/dist/alpha-zero/security/googleLoader.js.map +1 -0
- package/dist/alpha-zero/security/index.d.ts +29 -0
- package/dist/alpha-zero/security/index.d.ts.map +1 -0
- package/dist/alpha-zero/security/index.js +32 -0
- package/dist/alpha-zero/security/index.js.map +1 -0
- package/dist/alpha-zero/security/simulation.d.ts +124 -0
- package/dist/alpha-zero/security/simulation.d.ts.map +1 -0
- package/dist/alpha-zero/security/simulation.js +277 -0
- package/dist/alpha-zero/security/simulation.js.map +1 -0
- package/dist/alpha-zero/selfModification.d.ts +109 -0
- package/dist/alpha-zero/selfModification.d.ts.map +1 -0
- package/dist/alpha-zero/selfModification.js +233 -0
- package/dist/alpha-zero/selfModification.js.map +1 -0
- package/dist/alpha-zero/types.d.ts +170 -0
- package/dist/alpha-zero/types.d.ts.map +1 -0
- package/dist/alpha-zero/types.js +31 -0
- package/dist/alpha-zero/types.js.map +1 -0
- package/dist/bin/erosolar.js +21 -5
- package/dist/bin/erosolar.js.map +1 -1
- package/dist/capabilities/agentSpawningCapability.d.ts.map +1 -1
- package/dist/capabilities/agentSpawningCapability.js +31 -56
- package/dist/capabilities/agentSpawningCapability.js.map +1 -1
- package/dist/capabilities/securityTestingCapability.d.ts +13 -0
- package/dist/capabilities/securityTestingCapability.d.ts.map +1 -0
- package/dist/capabilities/securityTestingCapability.js +25 -0
- package/dist/capabilities/securityTestingCapability.js.map +1 -0
- package/dist/contracts/agent-schemas.json +15 -0
- package/dist/contracts/tools.schema.json +9 -0
- package/dist/core/agent.d.ts +2 -2
- package/dist/core/agent.d.ts.map +1 -1
- package/dist/core/agent.js.map +1 -1
- package/dist/core/aiFlowOptimizer.d.ts +26 -0
- package/dist/core/aiFlowOptimizer.d.ts.map +1 -0
- package/dist/core/aiFlowOptimizer.js +31 -0
- package/dist/core/aiFlowOptimizer.js.map +1 -0
- package/dist/core/aiOptimizationEngine.d.ts +158 -0
- package/dist/core/aiOptimizationEngine.d.ts.map +1 -0
- package/dist/core/aiOptimizationEngine.js +428 -0
- package/dist/core/aiOptimizationEngine.js.map +1 -0
- package/dist/core/aiOptimizationIntegration.d.ts +93 -0
- package/dist/core/aiOptimizationIntegration.d.ts.map +1 -0
- package/dist/core/aiOptimizationIntegration.js +250 -0
- package/dist/core/aiOptimizationIntegration.js.map +1 -0
- package/dist/core/customCommands.d.ts +0 -1
- package/dist/core/customCommands.d.ts.map +1 -1
- package/dist/core/customCommands.js +0 -3
- package/dist/core/customCommands.js.map +1 -1
- package/dist/core/enhancedErrorRecovery.d.ts +100 -0
- package/dist/core/enhancedErrorRecovery.d.ts.map +1 -0
- package/dist/core/enhancedErrorRecovery.js +345 -0
- package/dist/core/enhancedErrorRecovery.js.map +1 -0
- package/dist/core/hooksSystem.d.ts +65 -0
- package/dist/core/hooksSystem.d.ts.map +1 -0
- package/dist/core/hooksSystem.js +273 -0
- package/dist/core/hooksSystem.js.map +1 -0
- package/dist/core/memorySystem.d.ts +48 -0
- package/dist/core/memorySystem.d.ts.map +1 -0
- package/dist/core/memorySystem.js +271 -0
- package/dist/core/memorySystem.js.map +1 -0
- package/dist/core/toolPreconditions.d.ts.map +1 -1
- package/dist/core/toolPreconditions.js +14 -0
- package/dist/core/toolPreconditions.js.map +1 -1
- package/dist/core/toolRuntime.d.ts +1 -22
- package/dist/core/toolRuntime.d.ts.map +1 -1
- package/dist/core/toolRuntime.js +5 -0
- package/dist/core/toolRuntime.js.map +1 -1
- package/dist/core/toolValidation.d.ts.map +1 -1
- package/dist/core/toolValidation.js +3 -14
- package/dist/core/toolValidation.js.map +1 -1
- package/dist/core/unified/errors.d.ts +189 -0
- package/dist/core/unified/errors.d.ts.map +1 -0
- package/dist/core/unified/errors.js +497 -0
- package/dist/core/unified/errors.js.map +1 -0
- package/dist/core/unified/index.d.ts +19 -0
- package/dist/core/unified/index.d.ts.map +1 -0
- package/dist/core/unified/index.js +68 -0
- package/dist/core/unified/index.js.map +1 -0
- package/dist/core/unified/schema.d.ts +101 -0
- package/dist/core/unified/schema.d.ts.map +1 -0
- package/dist/core/unified/schema.js +350 -0
- package/dist/core/unified/schema.js.map +1 -0
- package/dist/core/unified/toolRuntime.d.ts +179 -0
- package/dist/core/unified/toolRuntime.d.ts.map +1 -0
- package/dist/core/unified/toolRuntime.js +517 -0
- package/dist/core/unified/toolRuntime.js.map +1 -0
- package/dist/core/unified/tools.d.ts +127 -0
- package/dist/core/unified/tools.d.ts.map +1 -0
- package/dist/core/unified/tools.js +1333 -0
- package/dist/core/unified/tools.js.map +1 -0
- package/dist/core/unified/types.d.ts +352 -0
- package/dist/core/unified/types.d.ts.map +1 -0
- package/dist/core/unified/types.js +12 -0
- package/dist/core/unified/types.js.map +1 -0
- package/dist/core/unified/version.d.ts +209 -0
- package/dist/core/unified/version.d.ts.map +1 -0
- package/dist/core/unified/version.js +454 -0
- package/dist/core/unified/version.js.map +1 -0
- package/dist/core/validationRunner.d.ts +3 -1
- package/dist/core/validationRunner.d.ts.map +1 -1
- package/dist/core/validationRunner.js.map +1 -1
- package/dist/headless/headlessApp.d.ts.map +1 -1
- package/dist/headless/headlessApp.js +0 -21
- package/dist/headless/headlessApp.js.map +1 -1
- package/dist/mcp/sseClient.d.ts.map +1 -1
- package/dist/mcp/sseClient.js +18 -9
- package/dist/mcp/sseClient.js.map +1 -1
- package/dist/plugins/tools/build/buildPlugin.d.ts +6 -0
- package/dist/plugins/tools/build/buildPlugin.d.ts.map +1 -1
- package/dist/plugins/tools/build/buildPlugin.js +10 -4
- package/dist/plugins/tools/build/buildPlugin.js.map +1 -1
- package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
- package/dist/plugins/tools/nodeDefaults.js +2 -0
- package/dist/plugins/tools/nodeDefaults.js.map +1 -1
- package/dist/plugins/tools/security/securityPlugin.d.ts +3 -0
- package/dist/plugins/tools/security/securityPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/security/securityPlugin.js +12 -0
- package/dist/plugins/tools/security/securityPlugin.js.map +1 -0
- package/dist/runtime/agentSession.d.ts +2 -2
- package/dist/runtime/agentSession.d.ts.map +1 -1
- package/dist/runtime/agentSession.js +2 -2
- package/dist/runtime/agentSession.js.map +1 -1
- package/dist/security/active-stack-security.d.ts +112 -0
- package/dist/security/active-stack-security.d.ts.map +1 -0
- package/dist/security/active-stack-security.js +296 -0
- package/dist/security/active-stack-security.js.map +1 -0
- package/dist/security/advanced-persistence-research.d.ts +92 -0
- package/dist/security/advanced-persistence-research.d.ts.map +1 -0
- package/dist/security/advanced-persistence-research.js +195 -0
- package/dist/security/advanced-persistence-research.js.map +1 -0
- package/dist/security/advanced-targeting.d.ts +119 -0
- package/dist/security/advanced-targeting.d.ts.map +1 -0
- package/dist/security/advanced-targeting.js +233 -0
- package/dist/security/advanced-targeting.js.map +1 -0
- package/dist/security/assessment/vulnerabilityAssessment.d.ts +104 -0
- package/dist/security/assessment/vulnerabilityAssessment.d.ts.map +1 -0
- package/dist/security/assessment/vulnerabilityAssessment.js +315 -0
- package/dist/security/assessment/vulnerabilityAssessment.js.map +1 -0
- package/dist/security/authorization/securityAuthorization.d.ts +88 -0
- package/dist/security/authorization/securityAuthorization.d.ts.map +1 -0
- package/dist/security/authorization/securityAuthorization.js +172 -0
- package/dist/security/authorization/securityAuthorization.js.map +1 -0
- package/dist/security/comprehensive-targeting.d.ts +85 -0
- package/dist/security/comprehensive-targeting.d.ts.map +1 -0
- package/dist/security/comprehensive-targeting.js +438 -0
- package/dist/security/comprehensive-targeting.js.map +1 -0
- package/dist/security/global-security-integration.d.ts +91 -0
- package/dist/security/global-security-integration.d.ts.map +1 -0
- package/dist/security/global-security-integration.js +218 -0
- package/dist/security/global-security-integration.js.map +1 -0
- package/dist/security/index.d.ts +38 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +47 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/persistence-analyzer.d.ts +56 -0
- package/dist/security/persistence-analyzer.d.ts.map +1 -0
- package/dist/security/persistence-analyzer.js +187 -0
- package/dist/security/persistence-analyzer.js.map +1 -0
- package/dist/security/persistence-cli.d.ts +36 -0
- package/dist/security/persistence-cli.d.ts.map +1 -0
- package/dist/security/persistence-cli.js +160 -0
- package/dist/security/persistence-cli.js.map +1 -0
- package/dist/security/persistence-research.d.ts +92 -0
- package/dist/security/persistence-research.d.ts.map +1 -0
- package/dist/security/persistence-research.js +364 -0
- package/dist/security/persistence-research.js.map +1 -0
- package/dist/security/research/persistenceResearch.d.ts +97 -0
- package/dist/security/research/persistenceResearch.d.ts.map +1 -0
- package/dist/security/research/persistenceResearch.js +282 -0
- package/dist/security/research/persistenceResearch.js.map +1 -0
- package/dist/security/security-integration.d.ts +74 -0
- package/dist/security/security-integration.d.ts.map +1 -0
- package/dist/security/security-integration.js +137 -0
- package/dist/security/security-integration.js.map +1 -0
- package/dist/security/security-testing-framework.d.ts +112 -0
- package/dist/security/security-testing-framework.d.ts.map +1 -0
- package/dist/security/security-testing-framework.js +364 -0
- package/dist/security/security-testing-framework.js.map +1 -0
- package/dist/security/simulation/attackSimulation.d.ts +93 -0
- package/dist/security/simulation/attackSimulation.d.ts.map +1 -0
- package/dist/security/simulation/attackSimulation.js +341 -0
- package/dist/security/simulation/attackSimulation.js.map +1 -0
- package/dist/security/strategic-operations.d.ts +100 -0
- package/dist/security/strategic-operations.d.ts.map +1 -0
- package/dist/security/strategic-operations.js +276 -0
- package/dist/security/strategic-operations.js.map +1 -0
- package/dist/security/tool-security-wrapper.d.ts +58 -0
- package/dist/security/tool-security-wrapper.d.ts.map +1 -0
- package/dist/security/tool-security-wrapper.js +156 -0
- package/dist/security/tool-security-wrapper.js.map +1 -0
- package/dist/shell/claudeCodeStreamHandler.d.ts +145 -0
- package/dist/shell/claudeCodeStreamHandler.d.ts.map +1 -0
- package/dist/shell/claudeCodeStreamHandler.js +322 -0
- package/dist/shell/claudeCodeStreamHandler.js.map +1 -0
- package/dist/shell/inputQueueManager.d.ts +144 -0
- package/dist/shell/inputQueueManager.d.ts.map +1 -0
- package/dist/shell/inputQueueManager.js +290 -0
- package/dist/shell/inputQueueManager.js.map +1 -0
- package/dist/shell/interactiveShell.d.ts +7 -16
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +166 -235
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/metricsTracker.d.ts +60 -0
- package/dist/shell/metricsTracker.d.ts.map +1 -0
- package/dist/shell/metricsTracker.js +119 -0
- package/dist/shell/metricsTracker.js.map +1 -0
- package/dist/shell/shellApp.d.ts +0 -2
- package/dist/shell/shellApp.d.ts.map +1 -1
- package/dist/shell/shellApp.js +9 -40
- package/dist/shell/shellApp.js.map +1 -1
- package/dist/shell/streamingOutputManager.d.ts +115 -0
- package/dist/shell/streamingOutputManager.d.ts.map +1 -0
- package/dist/shell/streamingOutputManager.js +225 -0
- package/dist/shell/streamingOutputManager.js.map +1 -0
- package/dist/shell/systemPrompt.d.ts.map +1 -1
- package/dist/shell/systemPrompt.js +4 -1
- package/dist/shell/systemPrompt.js.map +1 -1
- package/dist/shell/terminalInput.d.ts +118 -149
- package/dist/shell/terminalInput.d.ts.map +1 -1
- package/dist/shell/terminalInput.js +540 -689
- package/dist/shell/terminalInput.js.map +1 -1
- package/dist/shell/terminalInputAdapter.d.ts +21 -79
- package/dist/shell/terminalInputAdapter.d.ts.map +1 -1
- package/dist/shell/terminalInputAdapter.js +30 -99
- package/dist/shell/terminalInputAdapter.js.map +1 -1
- package/dist/subagents/taskRunner.d.ts +1 -7
- package/dist/subagents/taskRunner.d.ts.map +1 -1
- package/dist/subagents/taskRunner.js +47 -180
- package/dist/subagents/taskRunner.js.map +1 -1
- package/dist/tools/securityTools.d.ts +22 -0
- package/dist/tools/securityTools.d.ts.map +1 -0
- package/dist/tools/securityTools.js +448 -0
- package/dist/tools/securityTools.js.map +1 -0
- package/dist/ui/ShellUIAdapter.d.ts.map +1 -1
- package/dist/ui/ShellUIAdapter.js +12 -13
- package/dist/ui/ShellUIAdapter.js.map +1 -1
- package/dist/ui/display.d.ts +45 -24
- package/dist/ui/display.d.ts.map +1 -1
- package/dist/ui/display.js +259 -140
- package/dist/ui/display.js.map +1 -1
- package/dist/ui/persistentPrompt.d.ts +50 -0
- package/dist/ui/persistentPrompt.d.ts.map +1 -0
- package/dist/ui/persistentPrompt.js +92 -0
- package/dist/ui/persistentPrompt.js.map +1 -0
- package/dist/ui/terminalUISchema.d.ts +195 -0
- package/dist/ui/terminalUISchema.d.ts.map +1 -0
- package/dist/ui/terminalUISchema.js +113 -0
- package/dist/ui/terminalUISchema.js.map +1 -0
- package/dist/ui/theme.d.ts.map +1 -1
- package/dist/ui/theme.js +8 -6
- package/dist/ui/theme.js.map +1 -1
- package/dist/ui/toolDisplay.d.ts +158 -0
- package/dist/ui/toolDisplay.d.ts.map +1 -1
- package/dist/ui/toolDisplay.js +348 -0
- package/dist/ui/toolDisplay.js.map +1 -1
- package/dist/ui/unified/layout.d.ts +0 -1
- package/dist/ui/unified/layout.d.ts.map +1 -1
- package/dist/ui/unified/layout.js +25 -15
- package/dist/ui/unified/layout.js.map +1 -1
- package/package.json +4 -4
- package/scripts/deploy-security-capabilities.js +178 -0
- package/dist/core/hooks.d.ts +0 -113
- package/dist/core/hooks.d.ts.map +0 -1
- package/dist/core/hooks.js +0 -267
- package/dist/core/hooks.js.map +0 -1
- package/dist/core/metricsTracker.d.ts +0 -122
- package/dist/core/metricsTracker.d.ts.map +0 -1
- package/dist/core/metricsTracker.js.map +0 -1
- package/dist/core/securityAssessment.d.ts +0 -91
- package/dist/core/securityAssessment.d.ts.map +0 -1
- package/dist/core/securityAssessment.js +0 -580
- package/dist/core/securityAssessment.js.map +0 -1
- package/dist/core/verification.d.ts +0 -137
- package/dist/core/verification.d.ts.map +0 -1
- package/dist/core/verification.js +0 -323
- package/dist/core/verification.js.map +0 -1
- package/dist/subagents/agentConfig.d.ts +0 -27
- package/dist/subagents/agentConfig.d.ts.map +0 -1
- package/dist/subagents/agentConfig.js +0 -89
- package/dist/subagents/agentConfig.js.map +0 -1
- package/dist/subagents/agentRegistry.d.ts +0 -33
- package/dist/subagents/agentRegistry.d.ts.map +0 -1
- package/dist/subagents/agentRegistry.js +0 -162
- package/dist/subagents/agentRegistry.js.map +0 -1
- package/dist/utils/frontmatter.d.ts +0 -10
- package/dist/utils/frontmatter.d.ts.map +0 -1
- package/dist/utils/frontmatter.js +0 -78
- package/dist/utils/frontmatter.js.map +0 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alpha Zero 2 - Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Core type definitions for the competitive multi-agent RL framework.
|
|
5
|
+
*
|
|
6
|
+
* Principal Investigator: Bo Shang
|
|
7
|
+
* Framework: erosolar-cli
|
|
8
|
+
*/
|
|
9
|
+
import type { ProviderId, ProviderUsage } from '../core/types.js';
|
|
10
|
+
/**
|
|
11
|
+
* Performance metrics for an agent session.
|
|
12
|
+
*/
|
|
13
|
+
export interface AgentPerformanceMetrics {
|
|
14
|
+
sessionId: string;
|
|
15
|
+
totalMessages: number;
|
|
16
|
+
totalToolCalls: number;
|
|
17
|
+
totalTokensUsed: number;
|
|
18
|
+
totalTimeMs: number;
|
|
19
|
+
successfulToolCalls: number;
|
|
20
|
+
failedToolCalls: number;
|
|
21
|
+
codeBlocksGenerated: number;
|
|
22
|
+
avgResponseTimeMs: number;
|
|
23
|
+
avgCodeQuality: number;
|
|
24
|
+
avgAlgorithmEfficiency: number;
|
|
25
|
+
avgErrorHandling: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Configuration for a competitive agent.
|
|
29
|
+
*/
|
|
30
|
+
export interface CompetitiveAgentConfig {
|
|
31
|
+
agentId: string;
|
|
32
|
+
provider: ProviderId;
|
|
33
|
+
model: string;
|
|
34
|
+
systemPrompt: string;
|
|
35
|
+
competitivePromptSuffix?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Result of a single competition round.
|
|
39
|
+
*/
|
|
40
|
+
export interface CompetitionRoundResult {
|
|
41
|
+
prompt: string;
|
|
42
|
+
agent1: {
|
|
43
|
+
id: string;
|
|
44
|
+
score: number;
|
|
45
|
+
responseLength: number;
|
|
46
|
+
timeMs: number;
|
|
47
|
+
error?: string;
|
|
48
|
+
};
|
|
49
|
+
agent2: {
|
|
50
|
+
id: string;
|
|
51
|
+
score: number;
|
|
52
|
+
responseLength: number;
|
|
53
|
+
timeMs: number;
|
|
54
|
+
error?: string;
|
|
55
|
+
};
|
|
56
|
+
winner: string;
|
|
57
|
+
totalTimeMs: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Competition standings between two agents.
|
|
61
|
+
*/
|
|
62
|
+
export interface CompetitionStandings {
|
|
63
|
+
totalRounds: number;
|
|
64
|
+
agent1: {
|
|
65
|
+
id: string;
|
|
66
|
+
wins: number;
|
|
67
|
+
winRate: number;
|
|
68
|
+
};
|
|
69
|
+
agent2: {
|
|
70
|
+
id: string;
|
|
71
|
+
wins: number;
|
|
72
|
+
winRate: number;
|
|
73
|
+
};
|
|
74
|
+
ties: number;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Code quality evaluation result.
|
|
78
|
+
*/
|
|
79
|
+
export interface CodeQualityMetrics {
|
|
80
|
+
codeQualityScore: number;
|
|
81
|
+
algorithmEfficiency: number;
|
|
82
|
+
errorHandlingScore: number;
|
|
83
|
+
documentationScore: number;
|
|
84
|
+
maintainabilityScore: number;
|
|
85
|
+
securityScore: number;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Introspection trace for a single execution.
|
|
89
|
+
*/
|
|
90
|
+
export interface ExecutionTrace {
|
|
91
|
+
traceId: string;
|
|
92
|
+
timestamp: string;
|
|
93
|
+
prompt: string;
|
|
94
|
+
response: string;
|
|
95
|
+
toolCalls: Array<{
|
|
96
|
+
name: string;
|
|
97
|
+
arguments: Record<string, unknown>;
|
|
98
|
+
result?: string;
|
|
99
|
+
error?: string;
|
|
100
|
+
durationMs: number;
|
|
101
|
+
}>;
|
|
102
|
+
totalDurationMs: number;
|
|
103
|
+
tokenUsage?: ProviderUsage;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Improvement suggestion from analysis.
|
|
107
|
+
*/
|
|
108
|
+
export interface ImprovementSuggestion {
|
|
109
|
+
category: 'performance' | 'quality' | 'efficiency' | 'error-handling';
|
|
110
|
+
severity: 'low' | 'medium' | 'high';
|
|
111
|
+
message: string;
|
|
112
|
+
suggestedAction?: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Tournament configuration.
|
|
116
|
+
*/
|
|
117
|
+
export interface TournamentConfig {
|
|
118
|
+
tournamentId: string;
|
|
119
|
+
rounds: number;
|
|
120
|
+
prompts: string[];
|
|
121
|
+
evaluateCode: boolean;
|
|
122
|
+
parallelExecution: boolean;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Tournament result summary.
|
|
126
|
+
*/
|
|
127
|
+
export interface TournamentResult {
|
|
128
|
+
tournamentId: string;
|
|
129
|
+
config: TournamentConfig;
|
|
130
|
+
rounds: CompetitionRoundResult[];
|
|
131
|
+
standings: CompetitionStandings;
|
|
132
|
+
startTime: string;
|
|
133
|
+
endTime: string;
|
|
134
|
+
totalDurationMs: number;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Tournament status.
|
|
138
|
+
*/
|
|
139
|
+
export type TournamentStatus = 'pending' | 'running' | 'completed' | 'failed';
|
|
140
|
+
/**
|
|
141
|
+
* Callbacks for tournament events.
|
|
142
|
+
*/
|
|
143
|
+
export interface TournamentCallbacks {
|
|
144
|
+
onRoundStart?: (roundNumber: number, prompt: string) => void;
|
|
145
|
+
onRoundComplete?: (roundNumber: number, result: CompetitionRoundResult) => void;
|
|
146
|
+
onTournamentComplete?: (result: TournamentResult) => void;
|
|
147
|
+
onError?: (error: Error) => void;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Research metadata for the Alpha Zero 2 project.
|
|
151
|
+
*/
|
|
152
|
+
export interface ResearchMetadata {
|
|
153
|
+
projectName: string;
|
|
154
|
+
version: string;
|
|
155
|
+
author: string;
|
|
156
|
+
framework: string;
|
|
157
|
+
description: string;
|
|
158
|
+
innovations: string[];
|
|
159
|
+
techStack: {
|
|
160
|
+
python: string[];
|
|
161
|
+
typescript: string[];
|
|
162
|
+
aiProviders: string[];
|
|
163
|
+
testing: string[];
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Default research metadata.
|
|
168
|
+
*/
|
|
169
|
+
export declare const ALPHA_ZERO_2_METADATA: ResearchMetadata;
|
|
170
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/alpha-zero/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAG1B,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,UAAU,CAAC;IACrB,KAAK,E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AClC,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,eAAe,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAChF,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC1D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE;QACT,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,gBAmBnC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alpha Zero 2 - Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Core type definitions for the competitive multi-agent RL framework.
|
|
5
|
+
*
|
|
6
|
+
* Principal Investigator: Bo Shang
|
|
7
|
+
* Framework: erosolar-cli
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Default research metadata.
|
|
11
|
+
*/
|
|
12
|
+
export const ALPHA_ZERO_2_METADATA = {
|
|
13
|
+
projectName: 'Alpha Zero 2',
|
|
14
|
+
version: '1.0.0',
|
|
15
|
+
author: 'Bo Shang',
|
|
16
|
+
framework: 'erosolar-cli',
|
|
17
|
+
description: 'Recursive Self-Improvement in Competitive Multi-Agent Systems',
|
|
18
|
+
innovations: [
|
|
19
|
+
'Recursive Self-Modification Engine: Agents modify their own tool source code',
|
|
20
|
+
'Competitive Multi-Agent Framework: Tournament system with parallel execution',
|
|
21
|
+
'Version-Controlled Self-Improvement: SHA-256 checkpoints with automatic rollback',
|
|
22
|
+
'AST-Based Code Quality Metrics: Comprehensive evaluation across 10+ dimensions',
|
|
23
|
+
],
|
|
24
|
+
techStack: {
|
|
25
|
+
python: ['typer', 'rich', 'prompt-toolkit', 'pydantic', 'aiohttp', 'tiktoken'],
|
|
26
|
+
typescript: ['chalk', 'ora', 'gradient-string', 'boxen', 'nanospinner'],
|
|
27
|
+
aiProviders: ['anthropic', 'openai', 'google-generativeai'],
|
|
28
|
+
testing: ['pytest', 'pytest-asyncio', 'mypy', 'ruff', 'eslint'],
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/alpha-zero/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA8KH;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAqB;IACrD,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,cAAc;IACzB,WAAW,EACT,+DAA+D;IACjE,WAAW,EAAE;QACX,8EAA8E;QAC9E,8EAA8E;QAC9E,kFAAkF;QAClF,gFAAgF;KACjF;IACD,SAAS,EAAE;QACT,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC;QAC9E,UAAU,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,aAAa,CAAC;QACvE,WAAW,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,qBAAqB,CAAC;QAC3D,OAAO,EAAE,CAAC,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;KAChE;CACF,CAAC"}
|
package/dist/bin/erosolar.js
CHANGED
|
@@ -18,6 +18,20 @@ import { launchShell } from '../shell/shellApp.js';
|
|
|
18
18
|
import { runHeadlessApp } from '../headless/headlessApp.js';
|
|
19
19
|
import { runSelfTest } from './selfTest.js';
|
|
20
20
|
import { installGlobalWriteLock } from '../ui/globalWriteLock.js';
|
|
21
|
+
import { maybeOfferCliUpdate } from '../shell/updateManager.js';
|
|
22
|
+
// Get current version from package.json
|
|
23
|
+
function getVersion() {
|
|
24
|
+
try {
|
|
25
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
26
|
+
const __dirname = dirname(__filename);
|
|
27
|
+
const pkgPath = join(__dirname, '../../package.json');
|
|
28
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
29
|
+
return pkg.version || '0.0.0';
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return '0.0.0';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
21
35
|
const argv = process.argv.slice(2);
|
|
22
36
|
// Install global write lock so all stdout/stderr writes respect UI coordination
|
|
23
37
|
installGlobalWriteLock();
|
|
@@ -47,7 +61,6 @@ Options:
|
|
|
47
61
|
-h, --help Show this help message
|
|
48
62
|
--json Run in headless/JSON mode
|
|
49
63
|
--self-test Run self-tests in separate runtime
|
|
50
|
-
--agents <json> Register inline subagents (same format as --agents flag in docs)
|
|
51
64
|
|
|
52
65
|
Interactive Commands (once running):
|
|
53
66
|
/help Show available commands
|
|
@@ -63,8 +76,7 @@ Environment Variables:
|
|
|
63
76
|
GEMINI_API_KEY Google Gemini API key
|
|
64
77
|
XAI_API_KEY xAI/Grok API key
|
|
65
78
|
|
|
66
|
-
For more info: https://github.com/ErosolarAI/erosolar
|
|
67
|
-
npm: https://www.npmjs.com/package/erosolar-cli
|
|
79
|
+
For more info: https://github.com/ErosolarAI/erosolar-by-bo
|
|
68
80
|
`);
|
|
69
81
|
process.exit(0);
|
|
70
82
|
}
|
|
@@ -84,8 +96,12 @@ else if (argv.includes('--json')) {
|
|
|
84
96
|
});
|
|
85
97
|
}
|
|
86
98
|
else {
|
|
87
|
-
//
|
|
88
|
-
|
|
99
|
+
// Check for CLI updates before launching
|
|
100
|
+
const currentVersion = getVersion();
|
|
101
|
+
maybeOfferCliUpdate(currentVersion).then(() => {
|
|
102
|
+
// Launch shell with persistent chat box
|
|
103
|
+
return launchShell('erosolar-code', { enableProfileSelection: true });
|
|
104
|
+
}).catch((error) => {
|
|
89
105
|
console.error(error instanceof Error ? error.message : error);
|
|
90
106
|
process.exit(1);
|
|
91
107
|
});
|
package/dist/bin/erosolar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erosolar.js","sourceRoot":"","sources":["../../src/bin/erosolar.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,wEAAwE;AACxE,6EAA6E;AAC7E,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;IACrD,oEAAoE;IACpE,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC;AACjE,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;
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.ts","sourceRoot":"","sources":["../../src/capabilities/agentSpawningCapability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"agentSpawningCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/agentSpawningCapability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,qBAAa,6BAA8B,YAAW,gBAAgB;IACpE,QAAQ,CAAC,EAAE,+BAA+B;IAEpC,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAmF1E"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TaskRunner, BUILTIN_AGENT_DEFINITIONS } from '../subagents/taskRunner.js';
|
|
1
|
+
import { TaskRunner } from '../subagents/taskRunner.js';
|
|
3
2
|
export class AgentSpawningCapabilityModule {
|
|
4
3
|
id = 'capability.agent-spawning';
|
|
5
4
|
async create(context) {
|
|
6
|
-
const
|
|
7
|
-
workingDir: context.workingDir,
|
|
8
|
-
builtIns: BUILTIN_AGENT_DEFINITIONS,
|
|
9
|
-
});
|
|
10
|
-
const availableAgents = registry.list();
|
|
11
|
-
const runner = new TaskRunner(context, registry);
|
|
5
|
+
const runner = new TaskRunner(context);
|
|
12
6
|
return {
|
|
13
7
|
id: 'agent-spawning.tools',
|
|
14
8
|
description: 'Launch specialized agents to handle complex, multi-step tasks autonomously',
|
|
@@ -18,7 +12,35 @@ export class AgentSpawningCapabilityModule {
|
|
|
18
12
|
tools: [
|
|
19
13
|
{
|
|
20
14
|
name: 'Task',
|
|
21
|
-
description:
|
|
15
|
+
description: `Launch a new agent to handle complex, multi-step tasks autonomously.
|
|
16
|
+
|
|
17
|
+
The Task tool launches specialized agents (subprocesses) that autonomously handle complex tasks. Each agent type has specific capabilities and tools available to it.
|
|
18
|
+
|
|
19
|
+
Available agent types and the tools they have access to:
|
|
20
|
+
- general-purpose: General-purpose agent for researching complex questions, searching for code, and executing multi-step tasks. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries use this agent to perform the search for you. (Tools: *)
|
|
21
|
+
- Explore: Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions. (Tools: All tools)
|
|
22
|
+
- Plan: Fast agent specialized for planning tasks. Use this when you need to break down complex tasks into steps, analyze requirements, or create implementation strategies. (Tools: All tools)
|
|
23
|
+
|
|
24
|
+
When using the Task tool, you must specify a subagent_type parameter to select which agent type to use.
|
|
25
|
+
|
|
26
|
+
When NOT to use the Task tool:
|
|
27
|
+
- If you want to read a specific file path, use the Read or Glob tool instead of the Task tool, to find the match more quickly
|
|
28
|
+
- If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
|
|
29
|
+
- If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Task tool, to find the match more quickly
|
|
30
|
+
- Other tasks that are not related to the agent descriptions above
|
|
31
|
+
|
|
32
|
+
Usage notes:
|
|
33
|
+
- Launch multiple agents concurrently whenever possible, to maximize performance; to do that, use a single message with multiple tool uses
|
|
34
|
+
- When the agent is done, it will return a single message back to you. The result returned by the agent is not visible to the user. To show the user the result, you should send a text message back to the user with a concise summary of the result.
|
|
35
|
+
- Each agent invocation is stateless. You will not be able to send additional messages to the agent, nor will the agent be able to communicate with you outside of its final report. Therefore, your prompt should contain a highly detailed task description for the agent to perform autonomously and you should specify exactly what information the agent should return back to you in its final and only message to you.
|
|
36
|
+
- The agent's outputs should generally be trusted
|
|
37
|
+
- Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since it is not aware of the user's intent
|
|
38
|
+
- If the agent description mentions that it should be used proactively, then you should try your best to use it without the user having to ask for it first. Use your judgement.
|
|
39
|
+
|
|
40
|
+
Example usage:
|
|
41
|
+
- "Find all TypeScript files in the project and identify which ones use async/await"
|
|
42
|
+
- "Explore the authentication system and explain how JWT tokens are validated"
|
|
43
|
+
- "Plan the implementation of a new user dashboard feature"`,
|
|
22
44
|
parameters: {
|
|
23
45
|
type: 'object',
|
|
24
46
|
properties: {
|
|
@@ -39,11 +61,6 @@ export class AgentSpawningCapabilityModule {
|
|
|
39
61
|
enum: ['sonnet', 'opus', 'haiku'],
|
|
40
62
|
description: 'Optional model to use for this agent. If not specified, inherits from parent. Prefer haiku for quick, straightforward tasks to minimize cost and latency.',
|
|
41
63
|
},
|
|
42
|
-
thoroughness: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
enum: ['quick', 'medium', 'very_thorough'],
|
|
45
|
-
description: 'Optional exploration depth hint for read-only agents like explore (quick, medium, very_thorough).',
|
|
46
|
-
},
|
|
47
64
|
resume: {
|
|
48
65
|
type: 'string',
|
|
49
66
|
description: 'Optional agent ID to resume from. If provided, the agent will continue from the previous execution transcript.',
|
|
@@ -80,28 +97,12 @@ function parseTaskArguments(args) {
|
|
|
80
97
|
}
|
|
81
98
|
model = modelValue;
|
|
82
99
|
}
|
|
83
|
-
const thoroughnessValue = typeof args['thoroughness'] === 'string' ? args['thoroughness'].trim().toLowerCase() : undefined;
|
|
84
|
-
let thoroughness;
|
|
85
|
-
if (thoroughnessValue) {
|
|
86
|
-
if (thoroughnessValue === 'very thorough') {
|
|
87
|
-
thoroughness = 'very_thorough';
|
|
88
|
-
}
|
|
89
|
-
else if (thoroughnessValue === 'quick' ||
|
|
90
|
-
thoroughnessValue === 'medium' ||
|
|
91
|
-
thoroughnessValue === 'very_thorough') {
|
|
92
|
-
thoroughness = thoroughnessValue;
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
throw new Error(`Invalid thoroughness "${args['thoroughness']}". Allowed values are quick, medium, or very_thorough.`);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
100
|
const resumeId = typeof args['resume'] === 'string' ? args['resume'].trim() : undefined;
|
|
99
101
|
return {
|
|
100
102
|
description,
|
|
101
103
|
prompt,
|
|
102
104
|
subagentType,
|
|
103
105
|
model,
|
|
104
|
-
thoroughness,
|
|
105
106
|
resumeId: resumeId && resumeId.length ? resumeId : undefined,
|
|
106
107
|
};
|
|
107
108
|
}
|
|
@@ -111,30 +112,4 @@ function expectString(value, field) {
|
|
|
111
112
|
}
|
|
112
113
|
return value.trim();
|
|
113
114
|
}
|
|
114
|
-
function buildTaskDescription(agents) {
|
|
115
|
-
const catalog = agents
|
|
116
|
-
.map((agent) => `- ${agent.name}: ${agent.description}`)
|
|
117
|
-
.join('\n');
|
|
118
|
-
return [
|
|
119
|
-
'Launch a specialized subagent to handle complex, multi-step tasks autonomously.',
|
|
120
|
-
'',
|
|
121
|
-
'Available agents (project > inline > user > built-in):',
|
|
122
|
-
catalog || '- none discovered',
|
|
123
|
-
'',
|
|
124
|
-
'Usage:',
|
|
125
|
-
'- Provide a detailed prompt and pick subagent_type.',
|
|
126
|
-
'- Launch multiple agents in one message when parallel work is possible.',
|
|
127
|
-
'- Each invocation returns a single report; include all instructions up front.',
|
|
128
|
-
'- Use resume to continue an earlier agent session by id.',
|
|
129
|
-
'',
|
|
130
|
-
'When NOT to use:',
|
|
131
|
-
'- For single-file reads use Read/Glob; for small edits use Edit directly.',
|
|
132
|
-
'- Avoid for trivial lookups where direct tools are faster.',
|
|
133
|
-
'',
|
|
134
|
-
'Examples:',
|
|
135
|
-
'- Explore the authentication system with thoroughness=very_thorough',
|
|
136
|
-
'- Plan a migration of the data layer',
|
|
137
|
-
'- Delegate a refactor to general-purpose while you continue other work',
|
|
138
|
-
].join('\n');
|
|
139
|
-
}
|
|
140
115
|
//# sourceMappingURL=agentSpawningCapability.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentSpawningCapability.js","sourceRoot":"","sources":["../../src/capabilities/agentSpawningCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"agentSpawningCapability.js","sourceRoot":"","sources":["../../src/capabilities/agentSpawningCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA8B,MAAM,4BAA4B,CAAC;AAEpF,MAAM,OAAO,6BAA6B;IAC/B,EAAE,GAAG,2BAA2B,CAAC;IAE1C,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;QAEvC,OAAO;YACL,EAAE,EAAE,sBAAsB;YAC1B,WAAW,EAAE,4EAA4E;YACzF,SAAS,EAAE;gBACT,EAAE,EAAE,gBAAgB;gBACpB,WAAW,EAAE,oCAAoC;gBACjD,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,MAAM;wBACZ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DA4BmC;wBAChD,UAAU,EAAE;4BACV,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,WAAW,EAAE;oCACX,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,4CAA4C;iCAC1D;gCACD,MAAM,EAAE;oCACN,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,mCAAmC;iCACjD;gCACD,aAAa,EAAE;oCACb,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,oDAAoD;iCAClE;gCACD,KAAK,EAAE;oCACL,IAAI,EAAE,QAAQ;oCACd,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;oCACjC,WAAW,EAAE,2JAA2J;iCACzK;gCACD,MAAM,EAAE;oCACN,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,gHAAgH;iCAC9H;6BACF;4BACD,QAAQ,EAAE,CAAC,aAAa,EAAE,QAA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AAC,CAAC;QAClG,CAAC;QACD,KAAK,GAAG,UAAU,CAAC;IACrB,CAAC;IAED,MAAM,QAAQ,GAAG,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAExF,OAAO;QACL,WAAW;QACX,MAAM;QACN,YAAY;QACZ,KAAK;QACL,QAAQ,EAAE,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;KAC7D,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,KAAc,EAAE,KAAa;IACjD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CAAC,iCAAiC,KAAK,cAAc,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
2
|
+
export interface SecurityTestingCapabilityOptions {
|
|
3
|
+
workingDir?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class SecurityTestingCapabilityModule implements CapabilityModule {
|
|
8
|
+
readonly id = "capability.security-testing";
|
|
9
|
+
private readonly options;
|
|
10
|
+
constructor(options?: SecurityTestingCapabilityOptions);
|
|
11
|
+
create(context: CapabilityContext): Promise<CapabilityContribution>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=securityTestingCapability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityTestingCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/securityTestingCapability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,MAAM,WAAW,gCAAgC;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,+BAAgC,YAAW,gBAAgB;IACtE,QAAQ,CAAC,EAAE,iCAAiC;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;gBAE/C,OAAO,GAAE,gCAAqC;IAIpD,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAiB1E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createSecurityTools } from '../tools/securityTools.js';
|
|
2
|
+
export class SecurityTestingCapabilityModule {
|
|
3
|
+
id = 'capability.security-testing';
|
|
4
|
+
options;
|
|
5
|
+
constructor(options = {}) {
|
|
6
|
+
this.options = options;
|
|
7
|
+
}
|
|
8
|
+
async create(context) {
|
|
9
|
+
const workingDir = this.options.workingDir ?? context.workingDir;
|
|
10
|
+
return {
|
|
11
|
+
id: this.options.id ?? 'security.testing',
|
|
12
|
+
description: this.options.description ?? 'Ethical penetration testing and security analysis tools.',
|
|
13
|
+
toolSuite: {
|
|
14
|
+
id: 'security-testing',
|
|
15
|
+
description: 'Security scanning, vulnerability detection, and penetration testing (authorized targets only)',
|
|
16
|
+
tools: createSecurityTools(workingDir),
|
|
17
|
+
},
|
|
18
|
+
metadata: {
|
|
19
|
+
workingDir,
|
|
20
|
+
disclaimer: 'For authorized security testing only. Do not use on systems without permission.',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=securityTestingCapability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityTestingCapability.js","sourceRoot":"","sources":["../../src/capabilities/securityTestingCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAQhE,MAAM,OAAO,+BAA+B;IACjC,EAAE,GAAG,6BAA6B,CAAC;IAC3B,OAAO,CAAmC;IAE3D,YAAY,UAA4C,EAAE;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC;QACjE,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,kBAAkB;YACzC,WAAW,EACT,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,0DAA0D;YACxF,SAAS,EAAE;gBACT,EAAE,EAAE,kBAAkB;gBACtB,WAAW,EAAE,+FAA+F;gBAC5G,KAAK,EAAE,mBAAmB,CAAC,UAAU,CAAC;aACvC;YACD,QAAQ,EAAE;gBACR,UAAU;gBACV,UAAU,EAAE,iFAAiF;aAC9F;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -372,6 +372,21 @@
|
|
|
372
372
|
"command": "/autocontinue",
|
|
373
373
|
"description": "Toggle auto-continue mode (prompts model when it expresses intent but doesn't act)",
|
|
374
374
|
"category": "configuration"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"command": "/memory",
|
|
378
|
+
"description": "View and manage persistent memory files (EROSOLAR.md)",
|
|
379
|
+
"category": "workspace"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"command": "/clear",
|
|
383
|
+
"description": "Clear conversation history",
|
|
384
|
+
"category": "workspace"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"command": "/help",
|
|
388
|
+
"description": "Show available commands and usage",
|
|
389
|
+
"category": "other"
|
|
375
390
|
}
|
|
376
391
|
],
|
|
377
392
|
|
|
@@ -203,6 +203,15 @@
|
|
|
203
203
|
"category": "integrations",
|
|
204
204
|
"scopes": ["integrations:mcp"],
|
|
205
205
|
"pluginIds": ["tool.mcp.bridge"]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "security-testing",
|
|
209
|
+
"label": "Security testing",
|
|
210
|
+
"description": "Ethical penetration testing and security analysis tools. For authorized testing only.",
|
|
211
|
+
"defaultEnabled": false,
|
|
212
|
+
"category": "advanced",
|
|
213
|
+
"scopes": ["analysis:security"],
|
|
214
|
+
"pluginIds": ["tool.security.testing"]
|
|
206
215
|
}
|
|
207
216
|
]
|
|
208
217
|
}
|
package/dist/core/agent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ToolRuntime } from './toolRuntime.js';
|
|
2
2
|
import { type ConversationMessage, type LLMProvider, type ProviderUsage } from './types.js';
|
|
3
3
|
import { ContextManager } from './contextManager.js';
|
|
4
4
|
import { type PasteSummary } from './multilinePasteHandler.js';
|
|
@@ -50,7 +50,7 @@ export interface StreamFallbackInfo {
|
|
|
50
50
|
export type StreamInterruptionReason = 'startup-timeout' | 'idle-timeout';
|
|
51
51
|
interface AgentOptions {
|
|
52
52
|
provider: LLMProvider;
|
|
53
|
-
toolRuntime:
|
|
53
|
+
toolRuntime: ToolRuntime;
|
|
54
54
|
systemPrompt: string;
|
|
55
55
|
callbacks?: AgentCallbacks;
|
|
56
56
|
contextManager?: ContextManager;
|
package/dist/core/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/core/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/core/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,KAAK,mBAAmB,EACxB,K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