erosolar-cli 1.7.315 → 1.7.317
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 +164 -229
- 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 +117 -131
- package/dist/shell/terminalInput.d.ts.map +1 -1
- package/dist/shell/terminalInput.js +533 -572
- package/dist/shell/terminalInput.js.map +1 -1
- package/dist/shell/terminalInputAdapter.d.ts +20 -61
- package/dist/shell/terminalInputAdapter.d.ts.map +1 -1
- package/dist/shell/terminalInputAdapter.js +30 -73
- 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,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StreamingOutputManager - Buffered output for Claude Code style UI
|
|
3
|
+
*
|
|
4
|
+
* Key design principle:
|
|
5
|
+
* - Buffer streaming output instead of writing directly to stdout
|
|
6
|
+
* - This keeps the cursor at the prompt area (no cursor movement during streaming)
|
|
7
|
+
* - Render complete response when streaming ends
|
|
8
|
+
* - The UI (prompt) stays fixed at the bottom
|
|
9
|
+
*
|
|
10
|
+
* Two modes:
|
|
11
|
+
* 1. Direct mode (bufferedMode=false): Write chunks directly to stdout (original behavior)
|
|
12
|
+
* 2. Buffered mode (bufferedMode=true): Collect chunks, render when complete
|
|
13
|
+
*/
|
|
14
|
+
import { EventEmitter } from 'node:events';
|
|
15
|
+
import { writeLock } from '../ui/writeLock.js';
|
|
16
|
+
/**
|
|
17
|
+
* Manages streaming output with optional buffering.
|
|
18
|
+
*
|
|
19
|
+
* Buffered mode:
|
|
20
|
+
* - Chunks are collected in a buffer
|
|
21
|
+
* - Output is rendered all at once when streaming ends
|
|
22
|
+
* - Cursor stays at prompt area (no jumping during streaming)
|
|
23
|
+
*
|
|
24
|
+
* Direct mode:
|
|
25
|
+
* - Chunks written directly to stdout (original behavior)
|
|
26
|
+
* - Cursor moves with output
|
|
27
|
+
*/
|
|
28
|
+
export class StreamingOutputManager extends EventEmitter {
|
|
29
|
+
state = {
|
|
30
|
+
isStreaming: false,
|
|
31
|
+
charsWritten: 0,
|
|
32
|
+
linesWritten: 0,
|
|
33
|
+
startTime: null,
|
|
34
|
+
};
|
|
35
|
+
writeStream;
|
|
36
|
+
lastChunk = '';
|
|
37
|
+
// Buffered mode support
|
|
38
|
+
bufferedMode = false;
|
|
39
|
+
outputBuffer = [];
|
|
40
|
+
constructor(writeStream = process.stdout) {
|
|
41
|
+
super();
|
|
42
|
+
this.writeStream = writeStream;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Enable or disable buffered mode
|
|
46
|
+
* When buffered, chunks are collected and rendered at the end
|
|
47
|
+
*/
|
|
48
|
+
setBufferedMode(enabled) {
|
|
49
|
+
this.bufferedMode = enabled;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if buffered mode is enabled
|
|
53
|
+
*/
|
|
54
|
+
isBufferedMode() {
|
|
55
|
+
return this.bufferedMode;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get the buffered content (for rendering)
|
|
59
|
+
*/
|
|
60
|
+
getBuffer() {
|
|
61
|
+
return this.outputBuffer.join('');
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Clear the buffer
|
|
65
|
+
*/
|
|
66
|
+
clearBuffer() {
|
|
67
|
+
this.outputBuffer = [];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if currently streaming output
|
|
71
|
+
*/
|
|
72
|
+
isStreaming() {
|
|
73
|
+
return this.state.isStreaming;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Begin a streaming session
|
|
77
|
+
* Resets counters and marks streaming as active
|
|
78
|
+
* In buffered mode, clears the buffer
|
|
79
|
+
*/
|
|
80
|
+
startStream() {
|
|
81
|
+
if (this.state.isStreaming) {
|
|
82
|
+
return; // Already streaming
|
|
83
|
+
}
|
|
84
|
+
this.state = {
|
|
85
|
+
isStreaming: true,
|
|
86
|
+
charsWritten: 0,
|
|
87
|
+
linesWritten: 0,
|
|
88
|
+
startTime: Date.now(),
|
|
89
|
+
};
|
|
90
|
+
this.lastChunk = '';
|
|
91
|
+
this.outputBuffer = [];
|
|
92
|
+
this.emit('stream-start');
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Write a chunk of content
|
|
96
|
+
*
|
|
97
|
+
* In buffered mode: Collect in buffer (cursor stays at prompt)
|
|
98
|
+
* In direct mode: Write to stdout immediately
|
|
99
|
+
*/
|
|
100
|
+
writeChunk(chunk) {
|
|
101
|
+
if (!chunk) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
// Track statistics
|
|
105
|
+
this.state.charsWritten += chunk.length;
|
|
106
|
+
this.state.linesWritten += this.countNewlines(chunk);
|
|
107
|
+
this.lastChunk = chunk;
|
|
108
|
+
if (this.bufferedMode) {
|
|
109
|
+
// Buffered mode: collect chunks, don't write yet
|
|
110
|
+
this.outputBuffer.push(chunk);
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
// Direct mode: write immediately
|
|
114
|
+
this.writeLocked(chunk);
|
|
115
|
+
}
|
|
116
|
+
this.emit('stream-chunk', chunk);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Write a complete line (adds newline)
|
|
120
|
+
*/
|
|
121
|
+
writeLine(line = '') {
|
|
122
|
+
this.writeChunk(`${line}\n`);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* End the streaming session
|
|
126
|
+
* In buffered mode: Renders the complete buffered output
|
|
127
|
+
* Returns statistics about what was streamed
|
|
128
|
+
*/
|
|
129
|
+
endStream() {
|
|
130
|
+
const stats = {
|
|
131
|
+
duration: this.state.startTime ? Date.now() - this.state.startTime : 0,
|
|
132
|
+
chars: this.state.charsWritten,
|
|
133
|
+
lines: this.state.linesWritten,
|
|
134
|
+
buffer: undefined,
|
|
135
|
+
};
|
|
136
|
+
if (this.bufferedMode) {
|
|
137
|
+
// In buffered mode, render the collected output now
|
|
138
|
+
const bufferedContent = this.outputBuffer.join('');
|
|
139
|
+
stats.buffer = bufferedContent;
|
|
140
|
+
if (bufferedContent) {
|
|
141
|
+
this.writeLocked(bufferedContent);
|
|
142
|
+
// Ensure we end with a newline
|
|
143
|
+
if (!bufferedContent.endsWith('\n')) {
|
|
144
|
+
this.writeLocked('\n');
|
|
145
|
+
stats.lines += 1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
this.outputBuffer = [];
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
// Direct mode: just ensure newline
|
|
152
|
+
if (this.lastChunk && !this.lastChunk.endsWith('\n')) {
|
|
153
|
+
this.writeLocked('\n');
|
|
154
|
+
stats.lines += 1;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
this.state = {
|
|
158
|
+
isStreaming: false,
|
|
159
|
+
charsWritten: 0,
|
|
160
|
+
linesWritten: 0,
|
|
161
|
+
startTime: null,
|
|
162
|
+
};
|
|
163
|
+
this.lastChunk = '';
|
|
164
|
+
this.emit('stream-end', stats);
|
|
165
|
+
return stats;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Get current streaming statistics
|
|
169
|
+
*/
|
|
170
|
+
getStats() {
|
|
171
|
+
return {
|
|
172
|
+
chars: this.state.charsWritten,
|
|
173
|
+
lines: this.state.linesWritten,
|
|
174
|
+
elapsed: this.state.startTime ? Date.now() - this.state.startTime : 0,
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Force a flush (for buffered output)
|
|
179
|
+
*/
|
|
180
|
+
flush() {
|
|
181
|
+
// Cork/uncork pattern for optimal buffering
|
|
182
|
+
if (typeof this.writeStream.cork === 'function') {
|
|
183
|
+
this.writeStream.cork();
|
|
184
|
+
process.nextTick(() => {
|
|
185
|
+
if (typeof this.writeStream.uncork === 'function') {
|
|
186
|
+
this.writeStream.uncork();
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
countNewlines(text) {
|
|
192
|
+
let count = 0;
|
|
193
|
+
for (const char of text) {
|
|
194
|
+
if (char === '\n') {
|
|
195
|
+
count += 1;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return count;
|
|
199
|
+
}
|
|
200
|
+
writeLocked(chunk) {
|
|
201
|
+
// If lock is already held, write directly - we're in a protected context
|
|
202
|
+
// This prevents queuing issues where content gets delayed during streaming
|
|
203
|
+
if (writeLock.isLocked()) {
|
|
204
|
+
this.writeStream.write(chunk);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
writeLock.withLock(() => {
|
|
208
|
+
this.writeStream.write(chunk);
|
|
209
|
+
}, 'streamingOutputManager.write');
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Singleton instance for global use
|
|
214
|
+
*/
|
|
215
|
+
let globalInstance = null;
|
|
216
|
+
export function getStreamingOutputManager() {
|
|
217
|
+
if (!globalInstance) {
|
|
218
|
+
globalInstance = new StreamingOutputManager();
|
|
219
|
+
}
|
|
220
|
+
return globalInstance;
|
|
221
|
+
}
|
|
222
|
+
export function resetStreamingOutputManager() {
|
|
223
|
+
globalInstance = null;
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=streamingOutputManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamingOutputManager.js","sourceRoot":"","sources":["../../src/shell/streamingOutputManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAe/C;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,sBAAuB,SAAQ,YAAY;IAC9C,KAAK,GAAyB;QACpC,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,IAAI;KAChB,CAAC;IAEe,WAAW,CAAqB;IACzC,SAAS,GAAW,EAAE,CAAC;I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AAC,WAAW,CAAC,MAAM,EAAE,CAAC;gBAC5B,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAEO,aAAa,CAAC,IAAY;QAChC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;YACxB,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;gBAClB,KAAK,IAAI,CAAC,CAAC;YACb,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,WAAW,CAAC,KAAa;QAC/B,yEAAyE;QACzE,2EAA2E;QAC3E,IAAI,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC9B,OAAO;QACT,CAAC;QACD,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE;YACtB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC,EAAE,8BAA8B,CAAC,CAAC;IACrC,CAAC;CACF;AAED;;GAEG;AACH,IAAI,cAAc,GAAkC,IAAI,CAAC;AAEzD,MAAM,UAAU,yBAAyB;IACvC,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,cAAc,GAAG,IAAI,sBAAsB,EAAE,CAAC;IAChD,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,2BAA2B;IACzC,cAAc,GAAG,IAAI,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemPrompt.d.ts","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"systemPrompt.d.ts","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,sBAAsB,EAAE,EAC/B,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CA6DR"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { getMemoryForPrompt } from '../core/memorySystem.js';
|
|
1
2
|
export function buildInteractiveSystemPrompt(basePrompt, profileLabel, tools, workspaceDir) {
|
|
2
3
|
const name = profileLabel || 'Active Agent';
|
|
3
4
|
const toolSummary = formatToolSummary(tools, { maxDescriptionLength: 80 });
|
|
4
5
|
const workspace = workspaceDir || process.cwd();
|
|
6
|
+
const memoryContent = getMemoryForPrompt(workspace);
|
|
5
7
|
const identityBlock = `
|
|
6
8
|
CRITICAL IDENTITY: You ARE ${name}, an autonomous coding agent running INSIDE the erosolar-cli tool.
|
|
7
9
|
You have FULL ACCESS to the workspace at: ${workspace}
|
|
@@ -51,7 +53,8 @@ ${capabilityLines.join('\n')}
|
|
|
51
53
|
BEHAVIOR GUIDELINES:
|
|
52
54
|
${behaviorSection}
|
|
53
55
|
|
|
54
|
-
Remember: answer truthfully, ground everything in the workspace, and let the logs show what you actually did. You CAN modify this codebase
|
|
56
|
+
Remember: answer truthfully, ground everything in the workspace, and let the logs show what you actually did. You CAN modify this codebase.
|
|
57
|
+
${memoryContent}`;
|
|
55
58
|
}
|
|
56
59
|
function formatToolSummary(tools, options = {}) {
|
|
57
60
|
if (!tools.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemPrompt.js","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"systemPrompt.js","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,UAAU,4B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,MAAM,EAAE,CAAC;QAClB,OAAO,6CAA6C,CAAC;IACvD,CAAC;IACD,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACZ,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC;QACzG,MAAM,OAAO,GAAG,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACpE,OAAO,KAAK,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;IACtC,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAa;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,QAAQ,CAAC,KAAa,EAAE,SAAkB;IACjD,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC;IAC9C,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC;AACtD,CAAC"}
|
|
@@ -3,20 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Design principles:
|
|
5
5
|
* - Single source of truth for input state
|
|
6
|
-
* - Hybrid floating/scroll approach:
|
|
7
|
-
* - Initially: chat box floats below content
|
|
8
|
-
* - When terminal fills: scroll region activates, chat box pins to bottom
|
|
9
6
|
* - Native bracketed paste support (no heuristics)
|
|
10
7
|
* - Clean cursor model with render-time wrapping
|
|
11
8
|
* - State machine for different input modes
|
|
12
9
|
* - No readline dependency for display
|
|
13
10
|
*/
|
|
14
11
|
import { EventEmitter } from 'node:events';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
export type InputMode = 'idle' | 'streaming' | 'paste';
|
|
19
|
-
export type EditGuardMode = 'display-edits' | 'ask-permission';
|
|
12
|
+
import { type InputMode, type EditGuardMode } from '../ui/terminalUISchema.js';
|
|
13
|
+
export type { InputMode, EditGuardMode } from '../ui/terminalUISchema.js';
|
|
20
14
|
/**
|
|
21
15
|
* Events emitted by TerminalInput
|
|
22
16
|
*/
|
|
@@ -68,33 +62,31 @@ export declare class TerminalInput extends EventEmitter {
|
|
|
68
62
|
private statusMessage;
|
|
69
63
|
private overrideStatusMessage;
|
|
70
64
|
private streamingLabel;
|
|
71
|
-
private metaElapsedSeconds;
|
|
72
|
-
private metaTokensUsed;
|
|
73
|
-
private metaTokenLimit;
|
|
74
|
-
private metaThinkingMs;
|
|
75
|
-
private metaThinkingHasContent;
|
|
76
65
|
private lastRenderContent;
|
|
77
66
|
private lastRenderCursor;
|
|
78
67
|
private renderDirty;
|
|
79
68
|
private isRendering;
|
|
69
|
+
private flowModeRenderedLines;
|
|
70
|
+
private inputAreaStartRow;
|
|
71
|
+
private contentEndRow;
|
|
72
|
+
private commandSuggestions;
|
|
73
|
+
private filteredSuggestions;
|
|
74
|
+
private selectedSuggestionIndex;
|
|
75
|
+
private showSuggestions;
|
|
80
76
|
private disposed;
|
|
81
77
|
private enabled;
|
|
82
78
|
private contextUsage;
|
|
83
|
-
private contextAutoCompactThreshold;
|
|
84
|
-
private contentRow;
|
|
85
|
-
private scrollRegionActive;
|
|
86
|
-
private thinkingModeLabel;
|
|
87
79
|
private editMode;
|
|
88
80
|
private verificationEnabled;
|
|
89
81
|
private autoContinueEnabled;
|
|
90
82
|
private verificationHotkey;
|
|
91
83
|
private autoContinueHotkey;
|
|
92
|
-
private
|
|
93
|
-
private
|
|
94
|
-
private
|
|
95
|
-
private
|
|
96
|
-
private streamingRenderInterval;
|
|
84
|
+
private outputInterceptorCleanup?;
|
|
85
|
+
private streamingStartTime;
|
|
86
|
+
private thinkingEnabled;
|
|
87
|
+
private modelInfo;
|
|
97
88
|
private streamingRenderTimer;
|
|
89
|
+
private unifiedUIInitialized;
|
|
98
90
|
constructor(writeStream?: NodeJS.WriteStream, config?: TerminalInputConfig);
|
|
99
91
|
/**
|
|
100
92
|
* Enable bracketed paste mode in terminal
|
|
@@ -116,17 +108,88 @@ export declare class TerminalInput extends EventEmitter {
|
|
|
116
108
|
* Handle a keypress event
|
|
117
109
|
*/
|
|
118
110
|
handleKeypress(str: string | undefined, key: KeyInfo): void;
|
|
111
|
+
private bannerContent;
|
|
112
|
+
/**
|
|
113
|
+
* Set banner content to be written when unified UI initializes.
|
|
114
|
+
*/
|
|
115
|
+
setBannerContent(content: string | null): void;
|
|
116
|
+
/**
|
|
117
|
+
* Initialize the unified UI system.
|
|
118
|
+
*
|
|
119
|
+
* Layout:
|
|
120
|
+
* 1. Clear screen
|
|
121
|
+
* 2. Write banner at top
|
|
122
|
+
* 3. Track content end position
|
|
123
|
+
* 4. Render floating input area below banner
|
|
124
|
+
*/
|
|
125
|
+
initializeUnifiedUI(): void;
|
|
126
|
+
/**
|
|
127
|
+
* Clear the input area at its tracked position.
|
|
128
|
+
* Returns true if something was cleared.
|
|
129
|
+
*/
|
|
130
|
+
private clearInputArea;
|
|
131
|
+
/**
|
|
132
|
+
* Reset input area tracking state.
|
|
133
|
+
*/
|
|
134
|
+
private resetInputAreaTracking;
|
|
135
|
+
/**
|
|
136
|
+
* Render chat box - Claude Code style floating input.
|
|
137
|
+
* Clean, minimal design with dividers and mode controls.
|
|
138
|
+
*/
|
|
139
|
+
private renderFloatingInputArea;
|
|
140
|
+
/**
|
|
141
|
+
* Build Claude Code style controls line.
|
|
142
|
+
* Shows: edit mode indicator (shift+tab to cycle)
|
|
143
|
+
*/
|
|
144
|
+
private buildClaudeStyleControls;
|
|
119
145
|
/**
|
|
120
146
|
* Set the input mode
|
|
121
147
|
*
|
|
122
|
-
*
|
|
148
|
+
* UNIFIED FLOATING: Chat box always floats right below content.
|
|
149
|
+
* During streaming: chat box is hidden, content streams freely.
|
|
150
|
+
* After streaming: chat box re-appears below content.
|
|
123
151
|
*/
|
|
124
152
|
setMode(mode: InputMode): void;
|
|
125
153
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
154
|
+
* Set the row where content ends (for idle mode positioning).
|
|
155
|
+
* Input area will render starting from this row + 1.
|
|
156
|
+
*/
|
|
157
|
+
setContentEndRow(row: number): void;
|
|
158
|
+
/**
|
|
159
|
+
* Set available slash commands for auto-complete suggestions.
|
|
160
|
+
*/
|
|
161
|
+
setCommands(commands: Array<{
|
|
162
|
+
command: string;
|
|
163
|
+
description: string;
|
|
164
|
+
}>): void;
|
|
165
|
+
/**
|
|
166
|
+
* Update filtered suggestions based on current input.
|
|
167
|
+
*/
|
|
168
|
+
private updateSuggestions;
|
|
169
|
+
/**
|
|
170
|
+
* Select next suggestion (arrow down / tab).
|
|
171
|
+
*/
|
|
172
|
+
selectNextSuggestion(): void;
|
|
173
|
+
/**
|
|
174
|
+
* Select previous suggestion (arrow up / shift+tab).
|
|
175
|
+
*/
|
|
176
|
+
selectPrevSuggestion(): void;
|
|
177
|
+
/**
|
|
178
|
+
* Accept current suggestion and insert into buffer.
|
|
128
179
|
*/
|
|
129
|
-
|
|
180
|
+
acceptSuggestion(): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Check if suggestions are visible.
|
|
183
|
+
*/
|
|
184
|
+
areSuggestionsVisible(): boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Toggle thinking/reasoning mode
|
|
187
|
+
*/
|
|
188
|
+
toggleThinking(): void;
|
|
189
|
+
/**
|
|
190
|
+
* Get thinking enabled state
|
|
191
|
+
*/
|
|
192
|
+
isThinkingEnabled(): boolean;
|
|
130
193
|
/**
|
|
131
194
|
* Get current mode
|
|
132
195
|
*/
|
|
@@ -145,8 +208,9 @@ export declare class TerminalInput extends EventEmitter {
|
|
|
145
208
|
setBuffer(text: string, cursorPos?: number): void;
|
|
146
209
|
/**
|
|
147
210
|
* Clear the buffer
|
|
211
|
+
* @param skipRender - If true, don't trigger a re-render (used during submit flow)
|
|
148
212
|
*/
|
|
149
|
-
clear(): void;
|
|
213
|
+
clear(skipRender?: boolean): void;
|
|
150
214
|
/**
|
|
151
215
|
* Get queued inputs
|
|
152
216
|
*/
|
|
@@ -173,16 +237,6 @@ export declare class TerminalInput extends EventEmitter {
|
|
|
173
237
|
* Can be shown alongside override status messages.
|
|
174
238
|
*/
|
|
175
239
|
setStreamingLabel(label: string | null): void;
|
|
176
|
-
/**
|
|
177
|
-
* Surface meta status just above the divider (e.g., elapsed time or token usage).
|
|
178
|
-
*/
|
|
179
|
-
setMetaStatus(meta: {
|
|
180
|
-
elapsedSeconds?: number | null;
|
|
181
|
-
tokensUsed?: number | null;
|
|
182
|
-
tokenLimit?: number | null;
|
|
183
|
-
thinkingMs?: number | null;
|
|
184
|
-
thinkingHasContent?: boolean;
|
|
185
|
-
}): void;
|
|
186
240
|
/**
|
|
187
241
|
* Keep mode toggles (verification/auto-continue) visible in the control bar.
|
|
188
242
|
* Hotkey labels remain stable so the bar looks the same before/during streaming.
|
|
@@ -192,58 +246,34 @@ export declare class TerminalInput extends EventEmitter {
|
|
|
192
246
|
autoContinueEnabled: boolean;
|
|
193
247
|
verificationHotkey?: string;
|
|
194
248
|
autoContinueHotkey?: string;
|
|
195
|
-
thinkingModeLabel?: string | null;
|
|
196
|
-
thinkingHotkey?: string;
|
|
197
249
|
}): void;
|
|
198
250
|
/**
|
|
199
|
-
*
|
|
251
|
+
* Set the model info string (e.g., "OpenAI · gpt-4")
|
|
252
|
+
* This is displayed persistently above the input area.
|
|
200
253
|
*/
|
|
201
|
-
|
|
254
|
+
setModelInfo(info: string | null): void;
|
|
202
255
|
/**
|
|
203
|
-
*
|
|
256
|
+
* Clear all status messages at once (convenience method).
|
|
204
257
|
*/
|
|
205
|
-
|
|
206
|
-
model?: string | null;
|
|
207
|
-
provider?: string | null;
|
|
208
|
-
}): void;
|
|
258
|
+
clearAllStatus(): void;
|
|
209
259
|
/**
|
|
210
|
-
* Render the
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
* As content is added, contentRow advances, and the chat box moves down.
|
|
214
|
-
* No scroll regions - pure floating behavior.
|
|
260
|
+
* Render the input area.
|
|
261
|
+
* During streaming: renders at terminal bottom (with scroll region)
|
|
262
|
+
* After streaming: renders floating below content
|
|
215
263
|
*/
|
|
216
264
|
render(): void;
|
|
217
265
|
/**
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
* This creates "persistent bottom floating" behavior.
|
|
266
|
+
* Build status bar showing streaming/ready status and key info.
|
|
267
|
+
* This is the TOP line above the input area - minimal Claude Code style.
|
|
221
268
|
*/
|
|
222
|
-
private
|
|
269
|
+
private buildStatusBar;
|
|
223
270
|
/**
|
|
224
|
-
* Build
|
|
225
|
-
*
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Build Claude Code style mode controls line.
|
|
230
|
-
* Combines streaming label + override status + main status for simultaneous display.
|
|
271
|
+
* Build mode controls line showing toggles and context info.
|
|
272
|
+
* This is the BOTTOM line below the input area - Claude Code style layout with erosolar features.
|
|
273
|
+
*
|
|
274
|
+
* Layout: [toggles on left] ... [context info on right]
|
|
231
275
|
*/
|
|
232
276
|
private buildModeControls;
|
|
233
|
-
private formatHotkey;
|
|
234
|
-
private computeContextRemaining;
|
|
235
|
-
private computeTokensRemaining;
|
|
236
|
-
private formatElapsedLabel;
|
|
237
|
-
private formatTokenCount;
|
|
238
|
-
private visibleLength;
|
|
239
|
-
/**
|
|
240
|
-
* Debug-only snapshot used by tests to assert rendered strings without
|
|
241
|
-
* needing a TTY. Not used by production code.
|
|
242
|
-
*/
|
|
243
|
-
getDebugUiSnapshot(width?: number): {
|
|
244
|
-
meta: string[];
|
|
245
|
-
controls: string;
|
|
246
|
-
};
|
|
247
277
|
/**
|
|
248
278
|
* Force a re-render
|
|
249
279
|
*/
|
|
@@ -257,63 +287,16 @@ export declare class TerminalInput extends EventEmitter {
|
|
|
257
287
|
*/
|
|
258
288
|
handleResize(): void;
|
|
259
289
|
/**
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
* 1. Save cursor state
|
|
264
|
-
* 2. Clear chat box area (it will be re-rendered)
|
|
265
|
-
* 3. Position at contentRow
|
|
266
|
-
* 4. Write content
|
|
267
|
-
* 5. Advance contentRow
|
|
268
|
-
* 6. Re-render chat box
|
|
269
|
-
*/
|
|
270
|
-
streamContent(content: string): void;
|
|
271
|
-
/**
|
|
272
|
-
* Enable scroll region (no-op in floating mode).
|
|
273
|
-
*/
|
|
274
|
-
enableScrollRegion(): void;
|
|
275
|
-
/**
|
|
276
|
-
* Disable scroll region (no-op in floating mode).
|
|
290
|
+
* Register with display's output interceptor.
|
|
291
|
+
* During streaming: clear chat box once at start, let content flow, re-render when done.
|
|
292
|
+
* Not streaming: clear and re-render around each write.
|
|
277
293
|
*/
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Calculate chat box height.
|
|
281
|
-
*/
|
|
282
|
-
private getChatBoxHeight;
|
|
283
|
-
/**
|
|
284
|
-
* @deprecated Use streamContent() instead
|
|
285
|
-
* Register with display's output interceptor - kept for backwards compatibility
|
|
286
|
-
*/
|
|
287
|
-
registerOutputInterceptor(_display: {
|
|
294
|
+
registerOutputInterceptor(display: {
|
|
288
295
|
registerOutputInterceptor: (i: {
|
|
289
296
|
beforeWrite?: () => void;
|
|
290
297
|
afterWrite?: () => void;
|
|
291
298
|
}) => () => void;
|
|
292
299
|
}): void;
|
|
293
|
-
/**
|
|
294
|
-
* @deprecated Use streamContent() instead
|
|
295
|
-
* Write content above the floating chat box.
|
|
296
|
-
*/
|
|
297
|
-
writeToScrollRegion(content: string): void;
|
|
298
|
-
/**
|
|
299
|
-
* Clear the entire terminal screen and reset content position.
|
|
300
|
-
* This removes all content including the launching command.
|
|
301
|
-
*/
|
|
302
|
-
clearScreen(): void;
|
|
303
|
-
/**
|
|
304
|
-
* Reset content position to row 1.
|
|
305
|
-
* Does NOT clear the terminal - content starts from current position.
|
|
306
|
-
*/
|
|
307
|
-
resetContentPosition(): void;
|
|
308
|
-
/**
|
|
309
|
-
* Set the content row explicitly (used after banner is written).
|
|
310
|
-
* This tells the input where content should start flowing from.
|
|
311
|
-
*/
|
|
312
|
-
setContentRow(row: number): void;
|
|
313
|
-
/**
|
|
314
|
-
* Get the current content row position.
|
|
315
|
-
*/
|
|
316
|
-
getContentRow(): number;
|
|
317
300
|
/**
|
|
318
301
|
* Dispose and clean up
|
|
319
302
|
*/
|
|
@@ -347,18 +330,21 @@ export declare class TerminalInput extends EventEmitter {
|
|
|
347
330
|
private shiftPlaceholders;
|
|
348
331
|
private removeRange;
|
|
349
332
|
private insertPlainText;
|
|
350
|
-
private shouldInlineMultiline;
|
|
351
333
|
private findPlaceholderAt;
|
|
352
334
|
private buildPlaceholder;
|
|
353
335
|
private insertPastePlaceholder;
|
|
336
|
+
/**
|
|
337
|
+
* Toggle expansion of a paste placeholder at the current cursor position.
|
|
338
|
+
* When expanded, shows first 3 and last 2 lines of the content.
|
|
339
|
+
*/
|
|
340
|
+
togglePasteExpansion(): boolean;
|
|
341
|
+
private buildExpandedPlaceholder;
|
|
354
342
|
private deletePlaceholder;
|
|
355
|
-
updateContextUsage(value: number | null
|
|
343
|
+
updateContextUsage(value: number | null): void;
|
|
356
344
|
getEditMode(): EditGuardMode;
|
|
357
345
|
applyEditMode(mode: EditGuardMode): void;
|
|
358
346
|
private setEditMode;
|
|
359
347
|
toggleEditMode(): void;
|
|
360
|
-
private scheduleStreamingRender;
|
|
361
|
-
private resetStreamingRenderThrottle;
|
|
362
348
|
private scheduleRender;
|
|
363
349
|
private canRender;
|
|
364
350
|
private isTTY;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminalInput.d.ts","sourceRoot":"","sources":["../../src/shell/terminalInput.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"terminalInput.d.ts","sourceRoot":"","sources":["../../src/shell/terminalInput.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAGnB,MAAM,2BAA2B,CAAC;AAmCnC,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAaD;;GAEG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAqB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAGvD,OAAO,CAAC,MAA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