erosolar-cli 1.7.341 → 1.7.343
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 +24 -148
- package/dist/bin/erosolar.js +5 -21
- package/dist/bin/erosolar.js.map +1 -1
- package/dist/capabilities/agentSpawningCapability.d.ts.map +1 -1
- package/dist/capabilities/agentSpawningCapability.js +56 -31
- package/dist/capabilities/agentSpawningCapability.js.map +1 -1
- package/dist/contracts/agent-schemas.json +0 -15
- package/dist/contracts/tools.schema.json +0 -9
- 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/customCommands.d.ts +1 -0
- package/dist/core/customCommands.d.ts.map +1 -1
- package/dist/core/customCommands.js +3 -0
- package/dist/core/customCommands.js.map +1 -1
- package/dist/core/hooks.d.ts +113 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/hooks.js +267 -0
- package/dist/core/hooks.js.map +1 -0
- package/dist/core/metricsTracker.d.ts +122 -0
- package/dist/core/metricsTracker.d.ts.map +1 -0
- package/dist/{alpha-zero → core}/metricsTracker.js +2 -5
- package/dist/core/metricsTracker.js.map +1 -0
- package/dist/core/securityAssessment.d.ts +91 -0
- package/dist/core/securityAssessment.d.ts.map +1 -0
- package/dist/core/securityAssessment.js +580 -0
- package/dist/core/securityAssessment.js.map +1 -0
- package/dist/core/sessionStore.d.ts +2 -0
- package/dist/core/sessionStore.d.ts.map +1 -1
- package/dist/core/sessionStore.js +1 -0
- package/dist/core/sessionStore.js.map +1 -1
- package/dist/core/toolPreconditions.d.ts.map +1 -1
- package/dist/core/toolPreconditions.js +0 -14
- package/dist/core/toolPreconditions.js.map +1 -1
- package/dist/core/toolRuntime.d.ts +22 -1
- package/dist/core/toolRuntime.d.ts.map +1 -1
- package/dist/core/toolRuntime.js +0 -5
- package/dist/core/toolRuntime.js.map +1 -1
- package/dist/core/toolValidation.d.ts.map +1 -1
- package/dist/core/toolValidation.js +14 -3
- package/dist/core/toolValidation.js.map +1 -1
- package/dist/core/validationRunner.d.ts +1 -3
- package/dist/core/validationRunner.d.ts.map +1 -1
- package/dist/core/validationRunner.js.map +1 -1
- package/dist/core/verification.d.ts +137 -0
- package/dist/core/verification.d.ts.map +1 -0
- package/dist/core/verification.js +323 -0
- package/dist/core/verification.js.map +1 -0
- package/dist/headless/headlessApp.d.ts.map +1 -1
- package/dist/headless/headlessApp.js +21 -0
- package/dist/headless/headlessApp.js.map +1 -1
- package/dist/mcp/sseClient.d.ts.map +1 -1
- package/dist/mcp/sseClient.js +9 -18
- package/dist/mcp/sseClient.js.map +1 -1
- package/dist/plugins/tools/build/buildPlugin.d.ts +0 -6
- package/dist/plugins/tools/build/buildPlugin.d.ts.map +1 -1
- package/dist/plugins/tools/build/buildPlugin.js +4 -10
- 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 +0 -2
- package/dist/plugins/tools/nodeDefaults.js.map +1 -1
- 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/shell/interactiveShell.d.ts +19 -7
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +271 -166
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/shellApp.d.ts +2 -0
- package/dist/shell/shellApp.d.ts.map +1 -1
- package/dist/shell/shellApp.js +82 -9
- package/dist/shell/shellApp.js.map +1 -1
- package/dist/shell/systemPrompt.d.ts.map +1 -1
- package/dist/shell/systemPrompt.js +1 -4
- package/dist/shell/systemPrompt.js.map +1 -1
- package/dist/shell/terminalInput.d.ts +218 -120
- package/dist/shell/terminalInput.d.ts.map +1 -1
- package/dist/shell/terminalInput.js +932 -537
- package/dist/shell/terminalInput.js.map +1 -1
- package/dist/shell/terminalInputAdapter.d.ts +99 -21
- package/dist/shell/terminalInputAdapter.d.ts.map +1 -1
- package/dist/shell/terminalInputAdapter.js +135 -30
- package/dist/shell/terminalInputAdapter.js.map +1 -1
- package/dist/subagents/agentConfig.d.ts +27 -0
- package/dist/subagents/agentConfig.d.ts.map +1 -0
- package/dist/subagents/agentConfig.js +89 -0
- package/dist/subagents/agentConfig.js.map +1 -0
- package/dist/subagents/agentRegistry.d.ts +33 -0
- package/dist/subagents/agentRegistry.d.ts.map +1 -0
- package/dist/subagents/agentRegistry.js +162 -0
- package/dist/subagents/agentRegistry.js.map +1 -0
- package/dist/subagents/taskRunner.d.ts +7 -1
- package/dist/subagents/taskRunner.d.ts.map +1 -1
- package/dist/subagents/taskRunner.js +180 -47
- package/dist/subagents/taskRunner.js.map +1 -1
- package/dist/ui/ShellUIAdapter.d.ts.map +1 -1
- package/dist/ui/ShellUIAdapter.js +13 -12
- package/dist/ui/ShellUIAdapter.js.map +1 -1
- package/dist/ui/display.d.ts +24 -45
- package/dist/ui/display.d.ts.map +1 -1
- package/dist/ui/display.js +140 -259
- package/dist/ui/display.js.map +1 -1
- package/dist/ui/theme.d.ts.map +1 -1
- package/dist/ui/theme.js +6 -8
- package/dist/ui/theme.js.map +1 -1
- package/dist/ui/toolDisplay.d.ts +0 -158
- package/dist/ui/toolDisplay.d.ts.map +1 -1
- package/dist/ui/toolDisplay.js +0 -348
- package/dist/ui/toolDisplay.js.map +1 -1
- package/dist/ui/unified/layout.d.ts +1 -0
- package/dist/ui/unified/layout.d.ts.map +1 -1
- package/dist/ui/unified/layout.js +25 -179
- package/dist/ui/unified/layout.js.map +1 -1
- package/dist/utils/frontmatter.d.ts +10 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +78 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/package.json +4 -4
- package/dist/alpha-zero/agentWrapper.d.ts +0 -84
- package/dist/alpha-zero/agentWrapper.d.ts.map +0 -1
- package/dist/alpha-zero/agentWrapper.js +0 -171
- package/dist/alpha-zero/agentWrapper.js.map +0 -1
- package/dist/alpha-zero/codeEvaluator.d.ts +0 -25
- package/dist/alpha-zero/codeEvaluator.d.ts.map +0 -1
- package/dist/alpha-zero/codeEvaluator.js +0 -273
- package/dist/alpha-zero/codeEvaluator.js.map +0 -1
- package/dist/alpha-zero/competitiveRunner.d.ts +0 -66
- package/dist/alpha-zero/competitiveRunner.d.ts.map +0 -1
- package/dist/alpha-zero/competitiveRunner.js +0 -224
- package/dist/alpha-zero/competitiveRunner.js.map +0 -1
- package/dist/alpha-zero/index.d.ts +0 -67
- package/dist/alpha-zero/index.d.ts.map +0 -1
- package/dist/alpha-zero/index.js +0 -99
- package/dist/alpha-zero/index.js.map +0 -1
- package/dist/alpha-zero/introspection.d.ts +0 -128
- package/dist/alpha-zero/introspection.d.ts.map +0 -1
- package/dist/alpha-zero/introspection.js +0 -300
- package/dist/alpha-zero/introspection.js.map +0 -1
- package/dist/alpha-zero/metricsTracker.d.ts +0 -71
- package/dist/alpha-zero/metricsTracker.d.ts.map +0 -1
- package/dist/alpha-zero/metricsTracker.js.map +0 -1
- package/dist/alpha-zero/security/core.d.ts +0 -125
- package/dist/alpha-zero/security/core.d.ts.map +0 -1
- package/dist/alpha-zero/security/core.js +0 -271
- package/dist/alpha-zero/security/core.js.map +0 -1
- package/dist/alpha-zero/security/google.d.ts +0 -125
- package/dist/alpha-zero/security/google.d.ts.map +0 -1
- package/dist/alpha-zero/security/google.js +0 -311
- package/dist/alpha-zero/security/google.js.map +0 -1
- package/dist/alpha-zero/security/googleLoader.d.ts +0 -17
- package/dist/alpha-zero/security/googleLoader.d.ts.map +0 -1
- package/dist/alpha-zero/security/googleLoader.js +0 -41
- package/dist/alpha-zero/security/googleLoader.js.map +0 -1
- package/dist/alpha-zero/security/index.d.ts +0 -29
- package/dist/alpha-zero/security/index.d.ts.map +0 -1
- package/dist/alpha-zero/security/index.js +0 -32
- package/dist/alpha-zero/security/index.js.map +0 -1
- package/dist/alpha-zero/security/simulation.d.ts +0 -124
- package/dist/alpha-zero/security/simulation.d.ts.map +0 -1
- package/dist/alpha-zero/security/simulation.js +0 -277
- package/dist/alpha-zero/security/simulation.js.map +0 -1
- package/dist/alpha-zero/selfModification.d.ts +0 -109
- package/dist/alpha-zero/selfModification.d.ts.map +0 -1
- package/dist/alpha-zero/selfModification.js +0 -233
- package/dist/alpha-zero/selfModification.js.map +0 -1
- package/dist/alpha-zero/types.d.ts +0 -170
- package/dist/alpha-zero/types.d.ts.map +0 -1
- package/dist/alpha-zero/types.js +0 -31
- package/dist/alpha-zero/types.js.map +0 -1
- package/dist/capabilities/securityTestingCapability.d.ts +0 -13
- package/dist/capabilities/securityTestingCapability.d.ts.map +0 -1
- package/dist/capabilities/securityTestingCapability.js +0 -25
- package/dist/capabilities/securityTestingCapability.js.map +0 -1
- package/dist/core/aiFlowOptimizer.d.ts +0 -26
- package/dist/core/aiFlowOptimizer.d.ts.map +0 -1
- package/dist/core/aiFlowOptimizer.js +0 -31
- package/dist/core/aiFlowOptimizer.js.map +0 -1
- package/dist/core/aiOptimizationEngine.d.ts +0 -158
- package/dist/core/aiOptimizationEngine.d.ts.map +0 -1
- package/dist/core/aiOptimizationEngine.js +0 -428
- package/dist/core/aiOptimizationEngine.js.map +0 -1
- package/dist/core/aiOptimizationIntegration.d.ts +0 -93
- package/dist/core/aiOptimizationIntegration.d.ts.map +0 -1
- package/dist/core/aiOptimizationIntegration.js +0 -250
- package/dist/core/aiOptimizationIntegration.js.map +0 -1
- package/dist/core/enhancedErrorRecovery.d.ts +0 -100
- package/dist/core/enhancedErrorRecovery.d.ts.map +0 -1
- package/dist/core/enhancedErrorRecovery.js +0 -345
- package/dist/core/enhancedErrorRecovery.js.map +0 -1
- package/dist/core/hooksSystem.d.ts +0 -65
- package/dist/core/hooksSystem.d.ts.map +0 -1
- package/dist/core/hooksSystem.js +0 -273
- package/dist/core/hooksSystem.js.map +0 -1
- package/dist/core/memorySystem.d.ts +0 -48
- package/dist/core/memorySystem.d.ts.map +0 -1
- package/dist/core/memorySystem.js +0 -271
- package/dist/core/memorySystem.js.map +0 -1
- package/dist/core/unified/errors.d.ts +0 -189
- package/dist/core/unified/errors.d.ts.map +0 -1
- package/dist/core/unified/errors.js +0 -497
- package/dist/core/unified/errors.js.map +0 -1
- package/dist/core/unified/index.d.ts +0 -19
- package/dist/core/unified/index.d.ts.map +0 -1
- package/dist/core/unified/index.js +0 -68
- package/dist/core/unified/index.js.map +0 -1
- package/dist/core/unified/schema.d.ts +0 -101
- package/dist/core/unified/schema.d.ts.map +0 -1
- package/dist/core/unified/schema.js +0 -350
- package/dist/core/unified/schema.js.map +0 -1
- package/dist/core/unified/toolRuntime.d.ts +0 -179
- package/dist/core/unified/toolRuntime.d.ts.map +0 -1
- package/dist/core/unified/toolRuntime.js +0 -517
- package/dist/core/unified/toolRuntime.js.map +0 -1
- package/dist/core/unified/tools.d.ts +0 -127
- package/dist/core/unified/tools.d.ts.map +0 -1
- package/dist/core/unified/tools.js +0 -1333
- package/dist/core/unified/tools.js.map +0 -1
- package/dist/core/unified/types.d.ts +0 -352
- package/dist/core/unified/types.d.ts.map +0 -1
- package/dist/core/unified/types.js +0 -12
- package/dist/core/unified/types.js.map +0 -1
- package/dist/core/unified/version.d.ts +0 -209
- package/dist/core/unified/version.d.ts.map +0 -1
- package/dist/core/unified/version.js +0 -454
- package/dist/core/unified/version.js.map +0 -1
- package/dist/plugins/tools/security/securityPlugin.d.ts +0 -3
- package/dist/plugins/tools/security/securityPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/security/securityPlugin.js +0 -12
- package/dist/plugins/tools/security/securityPlugin.js.map +0 -1
- package/dist/security/active-stack-security.d.ts +0 -112
- package/dist/security/active-stack-security.d.ts.map +0 -1
- package/dist/security/active-stack-security.js +0 -296
- package/dist/security/active-stack-security.js.map +0 -1
- package/dist/security/advanced-persistence-research.d.ts +0 -92
- package/dist/security/advanced-persistence-research.d.ts.map +0 -1
- package/dist/security/advanced-persistence-research.js +0 -195
- package/dist/security/advanced-persistence-research.js.map +0 -1
- package/dist/security/advanced-targeting.d.ts +0 -119
- package/dist/security/advanced-targeting.d.ts.map +0 -1
- package/dist/security/advanced-targeting.js +0 -233
- package/dist/security/advanced-targeting.js.map +0 -1
- package/dist/security/assessment/vulnerabilityAssessment.d.ts +0 -104
- package/dist/security/assessment/vulnerabilityAssessment.d.ts.map +0 -1
- package/dist/security/assessment/vulnerabilityAssessment.js +0 -315
- package/dist/security/assessment/vulnerabilityAssessment.js.map +0 -1
- package/dist/security/authorization/securityAuthorization.d.ts +0 -88
- package/dist/security/authorization/securityAuthorization.d.ts.map +0 -1
- package/dist/security/authorization/securityAuthorization.js +0 -172
- package/dist/security/authorization/securityAuthorization.js.map +0 -1
- package/dist/security/comprehensive-targeting.d.ts +0 -85
- package/dist/security/comprehensive-targeting.d.ts.map +0 -1
- package/dist/security/comprehensive-targeting.js +0 -438
- package/dist/security/comprehensive-targeting.js.map +0 -1
- package/dist/security/global-security-integration.d.ts +0 -91
- package/dist/security/global-security-integration.d.ts.map +0 -1
- package/dist/security/global-security-integration.js +0 -218
- package/dist/security/global-security-integration.js.map +0 -1
- package/dist/security/index.d.ts +0 -38
- package/dist/security/index.d.ts.map +0 -1
- package/dist/security/index.js +0 -47
- package/dist/security/index.js.map +0 -1
- package/dist/security/persistence-analyzer.d.ts +0 -56
- package/dist/security/persistence-analyzer.d.ts.map +0 -1
- package/dist/security/persistence-analyzer.js +0 -187
- package/dist/security/persistence-analyzer.js.map +0 -1
- package/dist/security/persistence-cli.d.ts +0 -36
- package/dist/security/persistence-cli.d.ts.map +0 -1
- package/dist/security/persistence-cli.js +0 -160
- package/dist/security/persistence-cli.js.map +0 -1
- package/dist/security/persistence-research.d.ts +0 -92
- package/dist/security/persistence-research.d.ts.map +0 -1
- package/dist/security/persistence-research.js +0 -364
- package/dist/security/persistence-research.js.map +0 -1
- package/dist/security/research/persistenceResearch.d.ts +0 -97
- package/dist/security/research/persistenceResearch.d.ts.map +0 -1
- package/dist/security/research/persistenceResearch.js +0 -282
- package/dist/security/research/persistenceResearch.js.map +0 -1
- package/dist/security/security-integration.d.ts +0 -74
- package/dist/security/security-integration.d.ts.map +0 -1
- package/dist/security/security-integration.js +0 -137
- package/dist/security/security-integration.js.map +0 -1
- package/dist/security/security-testing-framework.d.ts +0 -112
- package/dist/security/security-testing-framework.d.ts.map +0 -1
- package/dist/security/security-testing-framework.js +0 -364
- package/dist/security/security-testing-framework.js.map +0 -1
- package/dist/security/simulation/attackSimulation.d.ts +0 -93
- package/dist/security/simulation/attackSimulation.d.ts.map +0 -1
- package/dist/security/simulation/attackSimulation.js +0 -341
- package/dist/security/simulation/attackSimulation.js.map +0 -1
- package/dist/security/strategic-operations.d.ts +0 -100
- package/dist/security/strategic-operations.d.ts.map +0 -1
- package/dist/security/strategic-operations.js +0 -276
- package/dist/security/strategic-operations.js.map +0 -1
- package/dist/security/tool-security-wrapper.d.ts +0 -58
- package/dist/security/tool-security-wrapper.d.ts.map +0 -1
- package/dist/security/tool-security-wrapper.js +0 -156
- package/dist/security/tool-security-wrapper.js.map +0 -1
- package/dist/shell/claudeCodeStreamHandler.d.ts +0 -145
- package/dist/shell/claudeCodeStreamHandler.d.ts.map +0 -1
- package/dist/shell/claudeCodeStreamHandler.js +0 -322
- package/dist/shell/claudeCodeStreamHandler.js.map +0 -1
- package/dist/shell/inputQueueManager.d.ts +0 -144
- package/dist/shell/inputQueueManager.d.ts.map +0 -1
- package/dist/shell/inputQueueManager.js +0 -290
- package/dist/shell/inputQueueManager.js.map +0 -1
- package/dist/shell/metricsTracker.d.ts +0 -60
- package/dist/shell/metricsTracker.d.ts.map +0 -1
- package/dist/shell/metricsTracker.js +0 -119
- package/dist/shell/metricsTracker.js.map +0 -1
- package/dist/shell/streamingOutputManager.d.ts +0 -115
- package/dist/shell/streamingOutputManager.d.ts.map +0 -1
- package/dist/shell/streamingOutputManager.js +0 -225
- package/dist/shell/streamingOutputManager.js.map +0 -1
- package/dist/tools/securityTools.d.ts +0 -22
- package/dist/tools/securityTools.d.ts.map +0 -1
- package/dist/tools/securityTools.js +0 -448
- package/dist/tools/securityTools.js.map +0 -1
- package/dist/ui/persistentPrompt.d.ts +0 -50
- package/dist/ui/persistentPrompt.d.ts.map +0 -1
- package/dist/ui/persistentPrompt.js +0 -92
- package/dist/ui/persistentPrompt.js.map +0 -1
- package/dist/ui/terminalUISchema.d.ts +0 -195
- package/dist/ui/terminalUISchema.d.ts.map +0 -1
- package/dist/ui/terminalUISchema.js +0 -113
- package/dist/ui/terminalUISchema.js.map +0 -1
- package/scripts/deploy-security-capabilities.js +0 -178
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alpha Zero 2 - Competitive Agent Runner
|
|
3
|
-
*
|
|
4
|
-
* Runs competitive comparisons between two AI agents.
|
|
5
|
-
*
|
|
6
|
-
* Principal Investigator: Bo Shang
|
|
7
|
-
* Framework: erosolar-cli
|
|
8
|
-
*/
|
|
9
|
-
import { extractCodeBlocks, evaluateCodeQuality, calculateRewardScore } from './codeEvaluator.js';
|
|
10
|
-
/**
|
|
11
|
-
* Run competitive comparisons between two agents.
|
|
12
|
-
*/
|
|
13
|
-
export class CompetitiveAgentRunner {
|
|
14
|
-
agent1;
|
|
15
|
-
agent2;
|
|
16
|
-
roundResults = [];
|
|
17
|
-
constructor(agent1, agent2) {
|
|
18
|
-
this.agent1 = agent1;
|
|
19
|
-
this.agent2 = agent2;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Run both agents on the same prompt and compare results.
|
|
23
|
-
*/
|
|
24
|
-
async runComparison(prompt, evaluateCode = true) {
|
|
25
|
-
const startTime = Date.now();
|
|
26
|
-
// Run both agents concurrently
|
|
27
|
-
const [result1, result2] = await Promise.allSettled([
|
|
28
|
-
this.runAgent(this.agent1, prompt, evaluateCode),
|
|
29
|
-
this.runAgent(this.agent2, prompt, evaluateCode),
|
|
30
|
-
]);
|
|
31
|
-
const agent1Result = result1.status === 'fulfilled'
|
|
32
|
-
? result1.value
|
|
33
|
-
: { response: '', error: String(result1.reason), score: 0, timeMs: 0 };
|
|
34
|
-
const agent2Result = result2.status === 'fulfilled'
|
|
35
|
-
? result2.value
|
|
36
|
-
: { response: '', error: String(result2.reason), score: 0, timeMs: 0 };
|
|
37
|
-
const totalTimeMs = Date.now() - startTime;
|
|
38
|
-
// Determine winner
|
|
39
|
-
let winner;
|
|
40
|
-
if (agent1Result.score > agent2Result.score) {
|
|
41
|
-
winner = this.agent1.getAgentId();
|
|
42
|
-
}
|
|
43
|
-
else if (agent2Result.score > agent1Result.score) {
|
|
44
|
-
winner = this.agent2.getAgentId();
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
winner = 'tie';
|
|
48
|
-
}
|
|
49
|
-
const result = {
|
|
50
|
-
prompt: prompt.slice(0, 100),
|
|
51
|
-
agent1: {
|
|
52
|
-
id: this.agent1.getAgentId(),
|
|
53
|
-
score: agent1Result.score,
|
|
54
|
-
responseLength: agent1Result.response.length,
|
|
55
|
-
timeMs: agent1Result.timeMs,
|
|
56
|
-
error: agent1Result.error,
|
|
57
|
-
},
|
|
58
|
-
agent2: {
|
|
59
|
-
id: this.agent2.getAgentId(),
|
|
60
|
-
score: agent2Result.score,
|
|
61
|
-
responseLength: agent2Result.response.length,
|
|
62
|
-
timeMs: agent2Result.timeMs,
|
|
63
|
-
error: agent2Result.error,
|
|
64
|
-
},
|
|
65
|
-
winner,
|
|
66
|
-
totalTimeMs,
|
|
67
|
-
};
|
|
68
|
-
this.roundResults.push(result);
|
|
69
|
-
return result;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Run a single agent and return results.
|
|
73
|
-
*/
|
|
74
|
-
async runAgent(agent, prompt, evaluateCode) {
|
|
75
|
-
const startTime = Date.now();
|
|
76
|
-
try {
|
|
77
|
-
const response = await agent.send(prompt);
|
|
78
|
-
const timeMs = Date.now() - startTime;
|
|
79
|
-
// Calculate score
|
|
80
|
-
let score = 50; // Base score
|
|
81
|
-
if (evaluateCode && response.includes('```')) {
|
|
82
|
-
const codeBlocks = extractCodeBlocks(response);
|
|
83
|
-
if (codeBlocks.length > 0) {
|
|
84
|
-
const metrics = evaluateCodeQuality(codeBlocks[0]);
|
|
85
|
-
score = calculateRewardScore(metrics);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return { response, score, timeMs };
|
|
89
|
-
}
|
|
90
|
-
catch (error) {
|
|
91
|
-
return {
|
|
92
|
-
response: '',
|
|
93
|
-
score: 0,
|
|
94
|
-
timeMs: Date.now() - startTime,
|
|
95
|
-
error: error instanceof Error ? error.message : String(error),
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Get current competition standings.
|
|
101
|
-
*/
|
|
102
|
-
getStandings() {
|
|
103
|
-
const agent1Wins = this.roundResults.filter((r) => r.winner === this.agent1.getAgentId()).length;
|
|
104
|
-
const agent2Wins = this.roundResults.filter((r) => r.winner === this.agent2.getAgentId()).length;
|
|
105
|
-
const ties = this.roundResults.filter((r) => r.winner === 'tie').length;
|
|
106
|
-
const total = this.roundResults.length;
|
|
107
|
-
return {
|
|
108
|
-
totalRounds: total,
|
|
109
|
-
agent1: {
|
|
110
|
-
id: this.agent1.getAgentId(),
|
|
111
|
-
wins: agent1Wins,
|
|
112
|
-
winRate: total > 0 ? agent1Wins / total : 0,
|
|
113
|
-
},
|
|
114
|
-
agent2: {
|
|
115
|
-
id: this.agent2.getAgentId(),
|
|
116
|
-
wins: agent2Wins,
|
|
117
|
-
winRate: total > 0 ? agent2Wins / total : 0,
|
|
118
|
-
},
|
|
119
|
-
ties,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Get all round results.
|
|
124
|
-
*/
|
|
125
|
-
getRoundResults() {
|
|
126
|
-
return [...this.roundResults];
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Reset competition history.
|
|
130
|
-
*/
|
|
131
|
-
reset() {
|
|
132
|
-
this.roundResults.length = 0;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Tournament runner for multi-round competitions.
|
|
137
|
-
*/
|
|
138
|
-
export class TournamentRunner {
|
|
139
|
-
agent1;
|
|
140
|
-
agent2;
|
|
141
|
-
status = 'pending';
|
|
142
|
-
currentResult = null;
|
|
143
|
-
constructor(agent1, agent2) {
|
|
144
|
-
this.agent1 = agent1;
|
|
145
|
-
this.agent2 = agent2;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Run a tournament with the given configuration.
|
|
149
|
-
*/
|
|
150
|
-
async run(config, callbacks) {
|
|
151
|
-
this.status = 'running';
|
|
152
|
-
const startTime = new Date();
|
|
153
|
-
const runner = new CompetitiveAgentRunner(this.agent1, this.agent2);
|
|
154
|
-
const rounds = [];
|
|
155
|
-
try {
|
|
156
|
-
for (let i = 0; i < config.rounds; i++) {
|
|
157
|
-
const prompt = config.prompts[i % config.prompts.length];
|
|
158
|
-
callbacks?.onRoundStart?.(i + 1, prompt);
|
|
159
|
-
const result = await runner.runComparison(prompt, config.evaluateCode);
|
|
160
|
-
rounds.push(result);
|
|
161
|
-
callbacks?.onRoundComplete?.(i + 1, result);
|
|
162
|
-
}
|
|
163
|
-
const endTime = new Date();
|
|
164
|
-
const totalDurationMs = endTime.getTime() - startTime.getTime();
|
|
165
|
-
const result = {
|
|
166
|
-
tournamentId: config.tournamentId,
|
|
167
|
-
config,
|
|
168
|
-
rounds,
|
|
169
|
-
standings: runner.getStandings(),
|
|
170
|
-
startTime: startTime.toISOString(),
|
|
171
|
-
endTime: endTime.toISOString(),
|
|
172
|
-
totalDurationMs,
|
|
173
|
-
};
|
|
174
|
-
this.currentResult = result;
|
|
175
|
-
this.status = 'completed';
|
|
176
|
-
callbacks?.onTournamentComplete?.(result);
|
|
177
|
-
return result;
|
|
178
|
-
}
|
|
179
|
-
catch (error) {
|
|
180
|
-
this.status = 'failed';
|
|
181
|
-
const err = error instanceof Error ? error : new Error(String(error));
|
|
182
|
-
callbacks?.onError?.(err);
|
|
183
|
-
throw err;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Get current tournament status.
|
|
188
|
-
*/
|
|
189
|
-
getStatus() {
|
|
190
|
-
return this.status;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Get the tournament result (if completed).
|
|
194
|
-
*/
|
|
195
|
-
getResult() {
|
|
196
|
-
return this.currentResult;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Generate a summary of tournament results.
|
|
201
|
-
*/
|
|
202
|
-
export function formatTournamentSummary(result) {
|
|
203
|
-
const lines = [
|
|
204
|
-
`Tournament: ${result.tournamentId}`,
|
|
205
|
-
'='.repeat(50),
|
|
206
|
-
'',
|
|
207
|
-
'Final Standings:',
|
|
208
|
-
` ${result.standings.agent1.id}: ${result.standings.agent1.wins} wins (${(result.standings.agent1.winRate * 100).toFixed(1)}%)`,
|
|
209
|
-
` ${result.standings.agent2.id}: ${result.standings.agent2.wins} wins (${(result.standings.agent2.winRate * 100).toFixed(1)}%)`,
|
|
210
|
-
` Ties: ${result.standings.ties}`,
|
|
211
|
-
'',
|
|
212
|
-
`Total Rounds: ${result.standings.totalRounds}`,
|
|
213
|
-
`Duration: ${(result.totalDurationMs / 1000).toFixed(2)}s`,
|
|
214
|
-
'',
|
|
215
|
-
'Round Results:',
|
|
216
|
-
];
|
|
217
|
-
for (let i = 0; i < result.rounds.length; i++) {
|
|
218
|
-
const round = result.rounds[i];
|
|
219
|
-
lines.push(` Round ${i + 1}: ${round.winner === 'tie' ? 'Tie' : `${round.winner} wins`} ` +
|
|
220
|
-
`(${round.agent1.score.toFixed(1)} vs ${round.agent2.score.toFixed(1)})`);
|
|
221
|
-
}
|
|
222
|
-
return lines.join('\n');
|
|
223
|
-
}
|
|
224
|
-
//# sourceMappingURL=competitiveRunner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"competitiveRunner.js","sourceRoot":"","sources":["../../src/alpha-zero/competitiveRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAElG;;GAEG;AACH,MAAM,OAAO,sBAAsB;IAChB,MAAM,CAAwB;IAC9B,MAAM,CAAwB;IAC9B,YAAY,GAA6B,EAAE,CAAC;IAE7D,YAAY,MAA6B,EAAE,MAA6B;QACtE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,MAAc,EAAE,YAAY,GAAG,IAAI;QACrD,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAE7B,+BAA+B;QAC/B,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC;YAChD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC;SACjD,CAAC,CAAC;QAEH,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,KAAK,WAAW;YACjD,CAAC,CAAC,OAAO,CAAC,KAAK;YACf,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAE,OAAiC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;QAEpG,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,KAAK,WAAW;YACjD,CAAC,CAAC,OAAO,C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C,MAAM,CAAC,EAAE,KAAK,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;QAChI,WAAW,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE;QAClC,EAAE;QACF,iBAAiB,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE;QAC/C,aAAa,CAAC,MAAM,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG;QAC1D,EAAE;QACF,gBAAgB;KACjB,CAAC;IAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAE,CAAC;QAChC,KAAK,CAAC,IAAI,CACR,WAAW,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,OAAO,GAAG;YAC/E,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CACzE,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alpha Zero 2 - Multi-Agent Competitive RL Framework
|
|
3
|
-
*
|
|
4
|
-
* A competitive reinforcement learning framework where two autonomous erosolar-cli
|
|
5
|
-
* agents compete on code optimization tasks while recursively improving their own
|
|
6
|
-
* implementations.
|
|
7
|
-
*
|
|
8
|
-
* Principal Investigator: Bo Shang
|
|
9
|
-
* Framework: erosolar-cli
|
|
10
|
-
* Status: Active Development
|
|
11
|
-
*
|
|
12
|
-
* Core Innovations:
|
|
13
|
-
* - Recursive Self-Modification Engine: Agents modify their own tool source code
|
|
14
|
-
* - Competitive Multi-Agent Framework: Tournament system with parallel execution
|
|
15
|
-
* - Version-Controlled Self-Improvement: SHA-256 checkpoints with automatic rollback
|
|
16
|
-
* - AST-Based Code Quality Metrics: Comprehensive evaluation across 10+ dimensions
|
|
17
|
-
*
|
|
18
|
-
* Structure:
|
|
19
|
-
* - Core: Types, metrics tracking, code evaluation
|
|
20
|
-
* - Self-Modification: Version-controlled code self-improvement
|
|
21
|
-
* - Introspection: Runtime analysis and self-awareness
|
|
22
|
-
* - Competitive: Multi-agent tournament framework
|
|
23
|
-
* - Security: Optional security research module (lazy loaded)
|
|
24
|
-
*
|
|
25
|
-
* Tech Stack (erosolar-cli):
|
|
26
|
-
* - Python: typer, rich, prompt-toolkit, pydantic, aiohttp, tiktoken
|
|
27
|
-
* - TypeScript: chalk, ora, gradient-string, boxen, nanospinner
|
|
28
|
-
* - AI Providers: anthropic, openai, google-generativeai
|
|
29
|
-
* - Testing: pytest, pytest-asyncio, mypy, ruff, eslint
|
|
30
|
-
*
|
|
31
|
-
* Research Contributions:
|
|
32
|
-
* - Demonstrated practical recursive self-improvement in autonomous agents
|
|
33
|
-
* - Proved competitive dynamics accelerate capability development
|
|
34
|
-
* - Established version control patterns for safe code self-modification
|
|
35
|
-
* - Created comprehensive metrics for evaluating code generation quality
|
|
36
|
-
*
|
|
37
|
-
* Citation:
|
|
38
|
-
* @software{alpha_zero_2,
|
|
39
|
-
* title={Alpha Zero 2: Recursive Self-Improvement in Competitive Multi-Agent Systems},
|
|
40
|
-
* author={Bo Shang},
|
|
41
|
-
* year={2024},
|
|
42
|
-
* framework={erosolar-cli},
|
|
43
|
-
* url={https://github.com/ErosolarAI/erosolar-by-bo}
|
|
44
|
-
* }
|
|
45
|
-
*/
|
|
46
|
-
export type { AgentPerformanceMetrics, CompetitiveAgentConfig, CompetitionRoundResult, CompetitionStandings, CodeQualityMetrics, ExecutionTrace, ImprovementSuggestion, TournamentConfig, TournamentResult, TournamentStatus, TournamentCallbacks, ResearchMetadata, } from './types.js';
|
|
47
|
-
export { ALPHA_ZERO_2_METADATA } from './types.js';
|
|
48
|
-
export { MetricsTracker, createDefaultMetrics } from './metricsTracker.js';
|
|
49
|
-
export { extractCodeBlocks, evaluateCodeQuality, calculateRewardScore, } from './codeEvaluator.js';
|
|
50
|
-
export { AlphaZeroAgentWrapper, type AlphaZeroAgentOptions } from './agentWrapper.js';
|
|
51
|
-
export { CompetitiveAgentRunner, TournamentRunner, formatTournamentSummary, } from './competitiveRunner.js';
|
|
52
|
-
export { SelfModificationEngine, createSelfModificationEngine, type ToolVersion, type TestResult, type PerformanceMetrics as SelfModPerformanceMetrics, type ModificationResult, type SelfModificationConfig, } from './selfModification.js';
|
|
53
|
-
export { IntrospectionEngine, createIntrospectionEngine, type PerformanceProfile, type CodeAnalysis, type IntrospectionConfig, } from './introspection.js';
|
|
54
|
-
export { isGoogleEnabled, getGoogleModule } from './security/googleLoader.js';
|
|
55
|
-
export * from './security/index.js';
|
|
56
|
-
/**
|
|
57
|
-
* Version information
|
|
58
|
-
*/
|
|
59
|
-
export declare const ALPHA_ZERO_VERSION = "1.0.0";
|
|
60
|
-
export declare const ALPHA_ZERO_AUTHOR = "Bo Shang";
|
|
61
|
-
export declare const ALPHA_ZERO_FRAMEWORK = "erosolar-cli";
|
|
62
|
-
export declare function isSecurityEnabled(): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Get security module (lazy load)
|
|
65
|
-
*/
|
|
66
|
-
export declare function getSecurityModule(): Promise<typeof import("./security/index.js")>;
|
|
67
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/alpha-zero/index.ts"],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BAAsB,iBAAiB,kDAYtC"}
|
package/dist/alpha-zero/index.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alpha Zero 2 - Multi-Agent Competitive RL Framework
|
|
3
|
-
*
|
|
4
|
-
* A competitive reinforcement learning framework where two autonomous erosolar-cli
|
|
5
|
-
* agents compete on code optimization tasks while recursively improving their own
|
|
6
|
-
* implementations.
|
|
7
|
-
*
|
|
8
|
-
* Principal Investigator: Bo Shang
|
|
9
|
-
* Framework: erosolar-cli
|
|
10
|
-
* Status: Active Development
|
|
11
|
-
*
|
|
12
|
-
* Core Innovations:
|
|
13
|
-
* - Recursive Self-Modification Engine: Agents modify their own tool source code
|
|
14
|
-
* - Competitive Multi-Agent Framework: Tournament system with parallel execution
|
|
15
|
-
* - Version-Controlled Self-Improvement: SHA-256 checkpoints with automatic rollback
|
|
16
|
-
* - AST-Based Code Quality Metrics: Comprehensive evaluation across 10+ dimensions
|
|
17
|
-
*
|
|
18
|
-
* Structure:
|
|
19
|
-
* - Core: Types, metrics tracking, code evaluation
|
|
20
|
-
* - Self-Modification: Version-controlled code self-improvement
|
|
21
|
-
* - Introspection: Runtime analysis and self-awareness
|
|
22
|
-
* - Competitive: Multi-agent tournament framework
|
|
23
|
-
* - Security: Optional security research module (lazy loaded)
|
|
24
|
-
*
|
|
25
|
-
* Tech Stack (erosolar-cli):
|
|
26
|
-
* - Python: typer, rich, prompt-toolkit, pydantic, aiohttp, tiktoken
|
|
27
|
-
* - TypeScript: chalk, ora, gradient-string, boxen, nanospinner
|
|
28
|
-
* - AI Providers: anthropic, openai, google-generativeai
|
|
29
|
-
* - Testing: pytest, pytest-asyncio, mypy, ruff, eslint
|
|
30
|
-
*
|
|
31
|
-
* Research Contributions:
|
|
32
|
-
* - Demonstrated practical recursive self-improvement in autonomous agents
|
|
33
|
-
* - Proved competitive dynamics accelerate capability development
|
|
34
|
-
* - Established version control patterns for safe code self-modification
|
|
35
|
-
* - Created comprehensive metrics for evaluating code generation quality
|
|
36
|
-
*
|
|
37
|
-
* Citation:
|
|
38
|
-
* @software{alpha_zero_2,
|
|
39
|
-
* title={Alpha Zero 2: Recursive Self-Improvement in Competitive Multi-Agent Systems},
|
|
40
|
-
* author={Bo Shang},
|
|
41
|
-
* year={2024},
|
|
42
|
-
* framework={erosolar-cli},
|
|
43
|
-
* url={https://github.com/ErosolarAI/erosolar-by-bo}
|
|
44
|
-
* }
|
|
45
|
-
*/
|
|
46
|
-
export { ALPHA_ZERO_2_METADATA } from './types.js';
|
|
47
|
-
// Metrics Tracker
|
|
48
|
-
export { MetricsTracker, createDefaultMetrics } from './metricsTracker.js';
|
|
49
|
-
// Code Evaluator
|
|
50
|
-
export { extractCodeBlocks, evaluateCodeQuality, calculateRewardScore, } from './codeEvaluator.js';
|
|
51
|
-
// Agent Wrapper
|
|
52
|
-
export { AlphaZeroAgentWrapper } from './agentWrapper.js';
|
|
53
|
-
// Competitive Runner
|
|
54
|
-
export { CompetitiveAgentRunner, TournamentRunner, formatTournamentSummary, } from './competitiveRunner.js';
|
|
55
|
-
// Self-Modification Engine
|
|
56
|
-
export { SelfModificationEngine, createSelfModificationEngine, } from './selfModification.js';
|
|
57
|
-
// Introspection Engine
|
|
58
|
-
export { IntrospectionEngine, createIntrospectionEngine, } from './introspection.js';
|
|
59
|
-
// Security Module (optional, lazy loaded)
|
|
60
|
-
export { isGoogleEnabled, getGoogleModule } from './security/googleLoader.js';
|
|
61
|
-
export * from './security/index.js';
|
|
62
|
-
/**
|
|
63
|
-
* Version information
|
|
64
|
-
*/
|
|
65
|
-
export const ALPHA_ZERO_VERSION = '1.0.0';
|
|
66
|
-
export const ALPHA_ZERO_AUTHOR = 'Bo Shang';
|
|
67
|
-
export const ALPHA_ZERO_FRAMEWORK = 'erosolar-cli';
|
|
68
|
-
/**
|
|
69
|
-
* Check if security research module is available
|
|
70
|
-
*/
|
|
71
|
-
let _securityModule = null;
|
|
72
|
-
export function isSecurityEnabled() {
|
|
73
|
-
if (_securityModule !== null) {
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
// Module exists, can be loaded
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
catch {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Get security module (lazy load)
|
|
86
|
-
*/
|
|
87
|
-
export async function getSecurityModule() {
|
|
88
|
-
if (_securityModule === null) {
|
|
89
|
-
try {
|
|
90
|
-
_securityModule = await import('./security/index.js');
|
|
91
|
-
}
|
|
92
|
-
catch (error) {
|
|
93
|
-
throw new Error('Security research module not available. ' +
|
|
94
|
-
'Ensure security modules are built and available.');
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return _securityModule;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/alpha-zero/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAkBH,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,kBAAkB;AAClB,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3E,iBAAiB;AACjB,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAE5B,gBAAgB;AAChB,OAAO,EAAE,qBAAqB,EAA8B,MAAM,mBAAmB,CAAC;AAEtF,qBAAqB;AACrB,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,2BAA2B;AAC3B,OAAO,EACL,sBAAsB,EACtB,4BAA4B,GAM7B,MAAM,uBAAuB,CAAC;AAE/B,uBAAuB;AACvB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAI1B,MAAM,oBAAoB,CAAC;AAE5B,0CAA0C;AAC1C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC9E,cAAc,qBAAqB,CAAC;AAEpC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;AAC5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAEnD;;GAEG;AACH,IAAI,eAAe,GAAgD,IAAI,CAAC;AAExE,MAAM,UAAU,iBAAiB;IAC/B,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC;QACH,+BAA+B;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC;YACH,eAAe,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACxD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACb,0CAA0C;gBAC1C,kDAAkD,CACnD,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Introspection Engine for Alpha Zero 2
|
|
3
|
-
*
|
|
4
|
-
* Provides runtime analysis and self-awareness capabilities for agents.
|
|
5
|
-
* Tracks execution patterns and suggests improvements.
|
|
6
|
-
*
|
|
7
|
-
* Principal Investigator: Bo Shang
|
|
8
|
-
* Framework: erosolar-cli
|
|
9
|
-
*/
|
|
10
|
-
import type { ExecutionTrace, ImprovementSuggestion } from './types.js';
|
|
11
|
-
/**
|
|
12
|
-
* Internal trace representation with additional metrics
|
|
13
|
-
*/
|
|
14
|
-
interface InternalTrace {
|
|
15
|
-
traceId: string;
|
|
16
|
-
timestamp: number;
|
|
17
|
-
durationMs: number;
|
|
18
|
-
success: boolean;
|
|
19
|
-
error?: string;
|
|
20
|
-
originalTrace?: ExecutionTrace;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Performance profile for a tool or agent
|
|
24
|
-
*/
|
|
25
|
-
export interface PerformanceProfile {
|
|
26
|
-
toolId: string;
|
|
27
|
-
executionCount: number;
|
|
28
|
-
averageExecutionTimeMs: number;
|
|
29
|
-
successRate: number;
|
|
30
|
-
errorCount: number;
|
|
31
|
-
lastExecution?: number;
|
|
32
|
-
traces: InternalTrace[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Code analysis result
|
|
36
|
-
*/
|
|
37
|
-
export interface CodeAnalysis {
|
|
38
|
-
filePath: string;
|
|
39
|
-
lineCount: number;
|
|
40
|
-
functionCount: number;
|
|
41
|
-
cyclomaticComplexity: number;
|
|
42
|
-
hasDocstrings: boolean;
|
|
43
|
-
hasTypeAnnotations: boolean;
|
|
44
|
-
imports: string[];
|
|
45
|
-
exports: string[];
|
|
46
|
-
issues: string[];
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Introspection configuration
|
|
50
|
-
*/
|
|
51
|
-
export interface IntrospectionConfig {
|
|
52
|
-
maxTraces: number;
|
|
53
|
-
enableProfiling: boolean;
|
|
54
|
-
suggestionThreshold: number;
|
|
55
|
-
verbose: boolean;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Introspection Engine
|
|
59
|
-
*
|
|
60
|
-
* Provides self-awareness and analysis capabilities for agents.
|
|
61
|
-
*/
|
|
62
|
-
export declare class IntrospectionEngine {
|
|
63
|
-
private config;
|
|
64
|
-
private profiles;
|
|
65
|
-
private codeAnalyses;
|
|
66
|
-
constructor(config?: Partial<IntrospectionConfig>);
|
|
67
|
-
/**
|
|
68
|
-
* Record an execution trace
|
|
69
|
-
*/
|
|
70
|
-
recordExecution(toolId: string, trace: {
|
|
71
|
-
traceId: string;
|
|
72
|
-
durationMs: number;
|
|
73
|
-
success: boolean;
|
|
74
|
-
error?: string;
|
|
75
|
-
originalTrace?: ExecutionTrace;
|
|
76
|
-
}): void;
|
|
77
|
-
/**
|
|
78
|
-
* Get performance profile for a tool
|
|
79
|
-
*/
|
|
80
|
-
getProfile(toolId: string): PerformanceProfile | null;
|
|
81
|
-
/**
|
|
82
|
-
* Get all performance profiles
|
|
83
|
-
*/
|
|
84
|
-
getAllProfiles(): PerformanceProfile[];
|
|
85
|
-
/**
|
|
86
|
-
* Analyze code and return analysis result
|
|
87
|
-
*/
|
|
88
|
-
analyzeCode(filePath: string, code: string): CodeAnalysis;
|
|
89
|
-
/**
|
|
90
|
-
* Generate improvement suggestions based on execution history
|
|
91
|
-
*/
|
|
92
|
-
generateSuggestions(toolId: string): ImprovementSuggestion[];
|
|
93
|
-
/**
|
|
94
|
-
* Get aggregated metrics across all tools
|
|
95
|
-
*/
|
|
96
|
-
getAggregatedMetrics(): {
|
|
97
|
-
totalExecutions: number;
|
|
98
|
-
averageSuccessRate: number;
|
|
99
|
-
averageExecutionTime: number;
|
|
100
|
-
toolCount: number;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Identify bottlenecks in execution
|
|
104
|
-
*/
|
|
105
|
-
identifyBottlenecks(): {
|
|
106
|
-
toolId: string;
|
|
107
|
-
issue: string;
|
|
108
|
-
severity: number;
|
|
109
|
-
}[];
|
|
110
|
-
/**
|
|
111
|
-
* Clear all recorded data
|
|
112
|
-
*/
|
|
113
|
-
clear(): void;
|
|
114
|
-
private getOrCreateProfile;
|
|
115
|
-
private countFunctions;
|
|
116
|
-
private calculateComplexity;
|
|
117
|
-
private hasDocstrings;
|
|
118
|
-
private hasTypeAnnotations;
|
|
119
|
-
private extractImports;
|
|
120
|
-
private extractExports;
|
|
121
|
-
private findIssues;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Create a default introspection engine
|
|
125
|
-
*/
|
|
126
|
-
export declare function createIntrospectionEngine(config?: Partial<IntrospectionConfig>): IntrospectionEngine;
|
|
127
|
-
export {};
|
|
128
|
-
//# sourceMappingURL=introspection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"introspection.d.ts","sourceRoot":"","sources":["../../src/alpha-zero/introspection.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExE;;GAEG;AACH,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAA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