erosolar-cli 2.1.172 → 2.1.174
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 +1 -1
- package/agents/erosolar-code.rules.json +2 -2
- package/agents/general.rules.json +21 -3
- package/dist/capabilities/statusCapability.js +2 -2
- package/dist/capabilities/statusCapability.js.map +1 -1
- package/dist/contracts/agent-schemas.json +5 -5
- package/dist/core/agent.d.ts +83 -24
- package/dist/core/agent.d.ts.map +1 -1
- package/dist/core/agent.js +499 -248
- package/dist/core/agent.js.map +1 -1
- package/dist/core/preferences.d.ts +1 -0
- package/dist/core/preferences.d.ts.map +1 -1
- package/dist/core/preferences.js +8 -1
- package/dist/core/preferences.js.map +1 -1
- package/dist/core/reliabilityPrompt.d.ts +9 -0
- package/dist/core/reliabilityPrompt.d.ts.map +1 -0
- package/dist/core/reliabilityPrompt.js +31 -0
- package/dist/core/reliabilityPrompt.js.map +1 -0
- package/dist/core/schemaValidator.js +3 -3
- package/dist/core/schemaValidator.js.map +1 -1
- package/dist/core/toolPreconditions.d.ts +0 -11
- package/dist/core/toolPreconditions.d.ts.map +1 -1
- package/dist/core/toolPreconditions.js +33 -164
- package/dist/core/toolPreconditions.js.map +1 -1
- package/dist/core/toolRuntime.d.ts.map +1 -1
- package/dist/core/toolRuntime.js +9 -114
- package/dist/core/toolRuntime.js.map +1 -1
- package/dist/core/updateChecker.d.ts +61 -1
- package/dist/core/updateChecker.d.ts.map +1 -1
- package/dist/core/updateChecker.js +147 -3
- package/dist/core/updateChecker.js.map +1 -1
- package/dist/headless/headlessApp.d.ts.map +1 -1
- package/dist/headless/headlessApp.js +0 -39
- package/dist/headless/headlessApp.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/providers/openaiResponsesProvider.d.ts.map +1 -1
- package/dist/providers/openaiResponsesProvider.js +79 -74
- package/dist/providers/openaiResponsesProvider.js.map +1 -1
- package/dist/runtime/agentController.d.ts.map +1 -1
- package/dist/runtime/agentController.js +6 -3
- package/dist/runtime/agentController.js.map +1 -1
- package/dist/runtime/agentSession.d.ts +0 -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 +11 -18
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +273 -291
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/shellApp.d.ts.map +1 -1
- package/dist/shell/shellApp.js +7 -1
- package/dist/shell/shellApp.js.map +1 -1
- package/dist/shell/systemPrompt.d.ts.map +1 -1
- package/dist/shell/systemPrompt.js +4 -15
- package/dist/shell/systemPrompt.js.map +1 -1
- package/dist/subagents/taskRunner.js +2 -1
- package/dist/subagents/taskRunner.js.map +1 -1
- package/dist/tools/bashTools.d.ts.map +1 -1
- package/dist/tools/bashTools.js +101 -8
- package/dist/tools/bashTools.js.map +1 -1
- package/dist/tools/diffUtils.d.ts +8 -2
- package/dist/tools/diffUtils.d.ts.map +1 -1
- package/dist/tools/diffUtils.js +72 -13
- package/dist/tools/diffUtils.js.map +1 -1
- package/dist/tools/grepTools.d.ts.map +1 -1
- package/dist/tools/grepTools.js +10 -2
- package/dist/tools/grepTools.js.map +1 -1
- package/dist/tools/planningTools.d.ts +0 -10
- package/dist/tools/planningTools.d.ts.map +1 -1
- package/dist/tools/planningTools.js +0 -16
- package/dist/tools/planningTools.js.map +1 -1
- package/dist/tools/searchTools.d.ts.map +1 -1
- package/dist/tools/searchTools.js +4 -2
- package/dist/tools/searchTools.js.map +1 -1
- package/dist/ui/PromptController.d.ts +1 -4
- package/dist/ui/PromptController.d.ts.map +1 -1
- package/dist/ui/PromptController.js +1 -7
- package/dist/ui/PromptController.js.map +1 -1
- package/dist/ui/ShellUIAdapter.d.ts +292 -28
- package/dist/ui/ShellUIAdapter.d.ts.map +1 -1
- package/dist/ui/ShellUIAdapter.js +1513 -121
- package/dist/ui/ShellUIAdapter.js.map +1 -1
- package/dist/ui/UnifiedUIController.d.ts +81 -0
- package/dist/ui/UnifiedUIController.d.ts.map +1 -0
- package/dist/ui/UnifiedUIController.js +212 -0
- package/dist/ui/UnifiedUIController.js.map +1 -0
- package/dist/ui/UnifiedUIRenderer.d.ts +133 -30
- package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
- package/dist/ui/UnifiedUIRenderer.js +939 -370
- package/dist/ui/UnifiedUIRenderer.js.map +1 -1
- package/dist/ui/animatedStatus.d.ts +128 -6
- package/dist/ui/animatedStatus.d.ts.map +1 -1
- package/dist/ui/animatedStatus.js +383 -50
- package/dist/ui/animatedStatus.js.map +1 -1
- package/dist/ui/animation/AnimationScheduler.d.ts +192 -0
- package/dist/ui/animation/AnimationScheduler.d.ts.map +1 -0
- package/dist/ui/animation/AnimationScheduler.js +432 -0
- package/dist/ui/animation/AnimationScheduler.js.map +1 -0
- package/dist/ui/display.d.ts +182 -26
- package/dist/ui/display.d.ts.map +1 -1
- package/dist/ui/display.js +678 -97
- package/dist/ui/display.js.map +1 -1
- package/dist/ui/inPlaceUpdater.d.ts +181 -0
- package/dist/ui/inPlaceUpdater.d.ts.map +1 -0
- package/dist/ui/inPlaceUpdater.js +515 -0
- package/dist/ui/inPlaceUpdater.js.map +1 -0
- package/dist/ui/interrupts/InterruptManager.d.ts +142 -0
- package/dist/ui/interrupts/InterruptManager.d.ts.map +1 -0
- package/dist/ui/interrupts/InterruptManager.js +439 -0
- package/dist/ui/interrupts/InterruptManager.js.map +1 -0
- package/dist/ui/layout.d.ts +0 -1
- package/dist/ui/layout.d.ts.map +1 -1
- package/dist/ui/layout.js +0 -12
- package/dist/ui/layout.js.map +1 -1
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts +61 -7
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts.map +1 -1
- package/dist/ui/orchestration/UIUpdateCoordinator.js +232 -20
- package/dist/ui/orchestration/UIUpdateCoordinator.js.map +1 -1
- package/dist/ui/shortcutsHelp.d.ts.map +1 -1
- package/dist/ui/shortcutsHelp.js +0 -1
- package/dist/ui/shortcutsHelp.js.map +1 -1
- package/dist/ui/telemetry/ResponseTracker.d.ts +22 -0
- package/dist/ui/telemetry/ResponseTracker.d.ts.map +1 -0
- package/dist/ui/telemetry/ResponseTracker.js +60 -0
- package/dist/ui/telemetry/ResponseTracker.js.map +1 -0
- package/dist/ui/telemetry/UITelemetry.d.ts +181 -0
- package/dist/ui/telemetry/UITelemetry.d.ts.map +1 -0
- package/dist/ui/telemetry/UITelemetry.js +446 -0
- package/dist/ui/telemetry/UITelemetry.js.map +1 -0
- package/dist/ui/unified/index.d.ts +30 -1
- package/dist/ui/unified/index.d.ts.map +1 -1
- package/dist/ui/unified/index.js +45 -2
- package/dist/ui/unified/index.js.map +1 -1
- package/dist/ui/unified/layout.d.ts +12 -0
- package/dist/ui/unified/layout.d.ts.map +1 -0
- package/dist/ui/unified/layout.js +96 -0
- package/dist/ui/unified/layout.js.map +1 -0
- package/package.json +2 -3
- package/dist/StringUtils.d.ts +0 -8
- package/dist/StringUtils.d.ts.map +0 -1
- package/dist/StringUtils.js +0 -11
- package/dist/StringUtils.js.map +0 -1
- package/dist/core/aiFlowSupervisor.d.ts +0 -44
- package/dist/core/aiFlowSupervisor.d.ts.map +0 -1
- package/dist/core/aiFlowSupervisor.js +0 -299
- package/dist/core/aiFlowSupervisor.js.map +0 -1
- package/dist/core/cliTestHarness.d.ts +0 -200
- package/dist/core/cliTestHarness.d.ts.map +0 -1
- package/dist/core/cliTestHarness.js +0 -549
- package/dist/core/cliTestHarness.js.map +0 -1
- package/dist/core/testUtils.d.ts +0 -121
- package/dist/core/testUtils.d.ts.map +0 -1
- package/dist/core/testUtils.js +0 -235
- package/dist/core/testUtils.js.map +0 -1
- package/dist/core/toolValidation.d.ts +0 -116
- package/dist/core/toolValidation.d.ts.map +0 -1
- package/dist/core/toolValidation.js +0 -282
- package/dist/core/toolValidation.js.map +0 -1
- package/dist/ui/planOverlay.d.ts +0 -28
- package/dist/ui/planOverlay.d.ts.map +0 -1
- package/dist/ui/planOverlay.js +0 -156
- package/dist/ui/planOverlay.js.map +0 -1
- package/dist/ui/streamingFormatter.d.ts +0 -30
- package/dist/ui/streamingFormatter.d.ts.map +0 -1
- package/dist/ui/streamingFormatter.js +0 -91
- package/dist/ui/streamingFormatter.js.map +0 -1
- package/dist/utils/errorUtils.d.ts +0 -16
- package/dist/utils/errorUtils.d.ts.map +0 -1
- package/dist/utils/errorUtils.js +0 -66
- package/dist/utils/errorUtils.js.map +0 -1
|
@@ -1,39 +1,303 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* ShellUIAdapter - Bridges the UnifiedUIController with the existing shell infrastructure
|
|
3
|
+
* Provides compatibility layer and migration path from old to new UI system
|
|
4
|
+
*
|
|
5
|
+
* Advanced UI Features:
|
|
6
|
+
* - Compact same-line tool displays
|
|
7
|
+
* - In-place progress updates
|
|
8
|
+
* - Grouped operation summaries
|
|
9
|
+
* - Dynamic status badges
|
|
10
|
+
*/
|
|
11
|
+
import { UnifiedUIController } from './UnifiedUIController.js';
|
|
12
|
+
import { Display } from './display.js';
|
|
13
|
+
import { ToolRuntimeObserver } from '../core/toolRuntime.js';
|
|
14
|
+
import { UIUpdateCoordinator } from './orchestration/UIUpdateCoordinator.js';
|
|
15
|
+
export interface ToolOperation {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
status: 'pending' | 'running' | 'success' | 'error' | 'cached';
|
|
19
|
+
summary: string;
|
|
20
|
+
detail?: string;
|
|
21
|
+
startedAt: number;
|
|
22
|
+
completedAt?: number;
|
|
23
|
+
args?: Record<string, unknown>;
|
|
6
24
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
25
|
+
export type BadgeStyle = 'success' | 'error' | 'warning' | 'info' | 'muted' | 'primary' | 'accent';
|
|
26
|
+
export interface Badge {
|
|
27
|
+
text: string;
|
|
28
|
+
style: BadgeStyle;
|
|
29
|
+
icon?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ShellUIAdapterConfig {
|
|
32
|
+
enableOverlay: boolean;
|
|
33
|
+
enableTelemetry: boolean;
|
|
34
|
+
debugMode: boolean;
|
|
10
35
|
}
|
|
11
36
|
export declare class ShellUIAdapter {
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
37
|
+
private uiController;
|
|
38
|
+
private display;
|
|
39
|
+
private config;
|
|
15
40
|
private fileChangeCallback?;
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
41
|
+
private _toolStatusCallback?;
|
|
42
|
+
private _activityCallback?;
|
|
43
|
+
private profileSwitcherTimeout?;
|
|
44
|
+
private readonly updateCoordinator;
|
|
45
|
+
private pendingOperations;
|
|
46
|
+
private completedOperations;
|
|
47
|
+
private readonly maxCompletedOps;
|
|
48
|
+
private compactDisplayMode;
|
|
49
|
+
private toolWarnings;
|
|
50
|
+
private toolProgressSnapshots;
|
|
51
|
+
private exploreProgressState;
|
|
52
|
+
private toolUsageCounts;
|
|
53
|
+
private lastToolUsageSummary;
|
|
54
|
+
private lastToolUsageSummaryPlain;
|
|
55
|
+
private activeToolStatus;
|
|
56
|
+
private activeToolHeartbeatId;
|
|
57
|
+
private statusSpinnerIndex;
|
|
58
|
+
private lastToolResult;
|
|
59
|
+
private readonly maxScrollingLines;
|
|
60
|
+
private scrollingOutputBuffer;
|
|
61
|
+
private scrollingPanelOwner;
|
|
62
|
+
private readonly maxVisibleToolCalls;
|
|
63
|
+
private recentToolCalls;
|
|
64
|
+
private toolCallDisplayedCount;
|
|
65
|
+
constructor(writeStream: typeof process.stdout, display: Display, config?: Partial<ShellUIAdapterConfig>, updateCoordinator?: UIUpdateCoordinator);
|
|
66
|
+
/**
|
|
67
|
+
* Setup display integration
|
|
68
|
+
*/
|
|
69
|
+
private setupDisplayIntegration;
|
|
70
|
+
/**
|
|
71
|
+
* Expose the shared update coordinator so other components can align with UI mode.
|
|
72
|
+
*/
|
|
73
|
+
getUpdateCoordinator(): UIUpdateCoordinator;
|
|
74
|
+
/**
|
|
75
|
+
* Expose the underlying unified UI controller for orchestration/telemetry.
|
|
76
|
+
*/
|
|
77
|
+
getController(): UnifiedUIController;
|
|
78
|
+
/**
|
|
79
|
+
* Create a tool observer for the agent
|
|
80
|
+
* Shows tool results in clean panels (status bar shows active tool execution)
|
|
81
|
+
* Uses compact rendering for same-line displays when appropriate
|
|
82
|
+
*/
|
|
26
83
|
createToolObserver(): ToolRuntimeObserver;
|
|
84
|
+
/**
|
|
85
|
+
* Check if a tool should use compact (single-line) display
|
|
86
|
+
*/
|
|
87
|
+
private isCompactTool;
|
|
88
|
+
/**
|
|
89
|
+
* Track tool usage for per-request summaries.
|
|
90
|
+
*/
|
|
91
|
+
private recordToolUsage;
|
|
92
|
+
private resetToolUsageSummary;
|
|
93
|
+
/**
|
|
94
|
+
* Render a compact "tools used" line mirroring Claude Code.
|
|
95
|
+
* Shows the top two tools and how many more were used.
|
|
96
|
+
*/
|
|
97
|
+
private showToolUsageSummary;
|
|
27
98
|
getToolUsageSummary(options?: {
|
|
28
99
|
plain?: boolean;
|
|
29
100
|
}): string | null;
|
|
101
|
+
/**
|
|
102
|
+
* Get the last tool result for expansion with ctrl+o
|
|
103
|
+
*/
|
|
104
|
+
getLastToolResult(): {
|
|
105
|
+
toolName: string;
|
|
106
|
+
output: string;
|
|
107
|
+
timestamp: number;
|
|
108
|
+
} | null;
|
|
109
|
+
/**
|
|
110
|
+
* Clear the stored tool result (e.g., after expansion)
|
|
111
|
+
*/
|
|
112
|
+
clearLastToolResult(): void;
|
|
113
|
+
private formatToolUsageSummary;
|
|
114
|
+
/**
|
|
115
|
+
* Normalize preflight warnings for consistent display.
|
|
116
|
+
*/
|
|
117
|
+
private formatToolWarning;
|
|
118
|
+
/**
|
|
119
|
+
* Track warnings for a tool call so we can show them after the result too.
|
|
120
|
+
*/
|
|
121
|
+
private recordToolWarning;
|
|
122
|
+
/**
|
|
123
|
+
* Render any captured warnings for the given tool call as a structured block.
|
|
124
|
+
*/
|
|
125
|
+
private flushToolWarnings;
|
|
126
|
+
/**
|
|
127
|
+
* Get a short summary for tool operation
|
|
128
|
+
*/
|
|
129
|
+
private getToolSummary;
|
|
130
|
+
/**
|
|
131
|
+
* Extract result summary from tool output
|
|
132
|
+
* Includes file paths for file operations so users can see which files were accessed
|
|
133
|
+
*/
|
|
134
|
+
private extractResultSummary;
|
|
135
|
+
/**
|
|
136
|
+
* Display compact single-line result (Erosolar-CLI style)
|
|
137
|
+
* Shows the tool name with a concise summary (no raw payload dumps)
|
|
138
|
+
*/
|
|
139
|
+
private displayCompactResult;
|
|
140
|
+
/**
|
|
141
|
+
* Display edit results with full colored diff output.
|
|
142
|
+
* - Summary line with additions/removals
|
|
143
|
+
* - Diff lines rendered in-place (red for removals, green for additions)
|
|
144
|
+
*/
|
|
145
|
+
private displayEditResult;
|
|
146
|
+
private logToolProgress;
|
|
147
|
+
/**
|
|
148
|
+
* Append a line to scrolling output buffer and update display in-place
|
|
149
|
+
* Shows only the last maxScrollingLines, replacing previous output
|
|
150
|
+
*/
|
|
151
|
+
private appendScrollingOutput;
|
|
152
|
+
/**
|
|
153
|
+
* Build the pinned scroll-box contents for live tool output.
|
|
154
|
+
*/
|
|
155
|
+
private buildScrollingPanelLines;
|
|
156
|
+
/**
|
|
157
|
+
* Use inline scroll box only when an interactive renderer is active.
|
|
158
|
+
*/
|
|
159
|
+
private shouldUseInlineScrollBox;
|
|
160
|
+
/**
|
|
161
|
+
* Finalize scrolling output - called when tool completes
|
|
162
|
+
* Clears the scrolling progress lines so only the final result is shown
|
|
163
|
+
*/
|
|
164
|
+
private finalizeScrollingOutput;
|
|
165
|
+
private logExploreProgress;
|
|
166
|
+
private logExploreCompletion;
|
|
167
|
+
/**
|
|
168
|
+
* Centralized cleanup for tool state
|
|
169
|
+
* Called from onToolResult, onToolError, and onCacheHit
|
|
170
|
+
*/
|
|
171
|
+
private clearToolState;
|
|
172
|
+
/**
|
|
173
|
+
* Display tool call start with Erosolar-CLI style prefix
|
|
174
|
+
* - ✢ for Task/agent tools (active task indicator)
|
|
175
|
+
* - ⏺ for other tools
|
|
176
|
+
* Uses scrolling display to show only the last N tool calls
|
|
177
|
+
*/
|
|
178
|
+
private displayToolCallStart;
|
|
179
|
+
/**
|
|
180
|
+
* Append a tool call to the scrolling display, keeping only the last N visible.
|
|
181
|
+
* Older tool calls scroll up and disappear, showing only recent activity.
|
|
182
|
+
*/
|
|
183
|
+
private appendToolCallDisplay;
|
|
184
|
+
/**
|
|
185
|
+
* Clear tool call display state when processing completes
|
|
186
|
+
*/
|
|
187
|
+
clearToolCallDisplay(): void;
|
|
188
|
+
/**
|
|
189
|
+
* Format tool arguments inline for display (Erosolar-CLI style)
|
|
190
|
+
* Format: ToolName(arg1: "value1", arg2: "value2")
|
|
191
|
+
*/
|
|
192
|
+
private formatToolArgsInline;
|
|
193
|
+
/**
|
|
194
|
+
* Start processing a request
|
|
195
|
+
*/
|
|
196
|
+
startProcessing(message?: string): void;
|
|
197
|
+
/**
|
|
198
|
+
* End processing
|
|
199
|
+
*/
|
|
200
|
+
endProcessing(message?: string): void;
|
|
201
|
+
/**
|
|
202
|
+
* Update context usage (no-op - status handled by display.showStatusLine)
|
|
203
|
+
*/
|
|
204
|
+
updateContextUsage(_percentage: number): void;
|
|
205
|
+
/**
|
|
206
|
+
* Show a user interrupt
|
|
207
|
+
*/
|
|
208
|
+
showInterrupt(message: string, type?: 'confirmation' | 'alert' | 'question', handler?: () => void | Promise<void>): string;
|
|
209
|
+
/**
|
|
210
|
+
* Complete an interrupt
|
|
211
|
+
*/
|
|
212
|
+
completeInterrupt(id: string): void;
|
|
213
|
+
/**
|
|
214
|
+
* Show profile switcher (Shift+Tab)
|
|
215
|
+
*/
|
|
216
|
+
showProfileSwitcher(profiles: Array<{
|
|
217
|
+
command: string;
|
|
218
|
+
description: string;
|
|
219
|
+
}>, _currentProfile: string): void;
|
|
220
|
+
/**
|
|
221
|
+
* Enable or disable overlay
|
|
222
|
+
*/
|
|
223
|
+
setOverlayEnabled(enabled: boolean): void;
|
|
224
|
+
/**
|
|
225
|
+
* Get telemetry data (only available in unified mode)
|
|
226
|
+
*/
|
|
227
|
+
getTelemetry(): any;
|
|
228
|
+
/**
|
|
229
|
+
* Get action description for tool execution (Erosolar-CLI style)
|
|
230
|
+
* Returns a human-readable description of what the tool is doing
|
|
231
|
+
* Includes the actual file path, command, or search target when available
|
|
232
|
+
*/
|
|
233
|
+
private getToolActionDescription;
|
|
234
|
+
/**
|
|
235
|
+
* Extract a path from tool arguments, checking multiple possible keys
|
|
236
|
+
*/
|
|
237
|
+
private extractPath;
|
|
238
|
+
/**
|
|
239
|
+
* Truncate a file path to show just the filename or last path segments
|
|
240
|
+
* e.g., "/Users/bo/GitHub/project/src/ui/display.ts" -> "src/ui/display.ts"
|
|
241
|
+
*/
|
|
242
|
+
private truncatePath;
|
|
243
|
+
/**
|
|
244
|
+
* Set file change tracking callback
|
|
245
|
+
*/
|
|
246
|
+
setFileChangeCallback(callback: (path: string, type: 'edit' | 'write' | 'delete', additions: number, removals: number) => void): void;
|
|
247
|
+
/**
|
|
248
|
+
* Set tool status callback - called when tools start/complete to update dynamic status
|
|
249
|
+
*/
|
|
250
|
+
setToolStatusCallback(callback: (status: string | null) => void): void;
|
|
251
|
+
/**
|
|
252
|
+
* Set activity callback - called during tool progress to update activity line with streaming output
|
|
253
|
+
*/
|
|
254
|
+
setActivityCallback(callback: (activity: string | null) => void): void;
|
|
255
|
+
/**
|
|
256
|
+
* Keep a live status line ticking while an SSE tool or long-running tool is active.
|
|
257
|
+
* Uses a heartbeat to animate the spinner and update elapsed time without spamming writes.
|
|
258
|
+
*/
|
|
259
|
+
private startToolStatusHeartbeat;
|
|
260
|
+
private stopToolStatusHeartbeat;
|
|
261
|
+
private buildRunningStatusLine;
|
|
262
|
+
private formatElapsedMs;
|
|
263
|
+
/**
|
|
264
|
+
* Parse file changes from Edit/Write/NotebookEdit tool output
|
|
265
|
+
*/
|
|
266
|
+
private parseFileChange;
|
|
267
|
+
/**
|
|
268
|
+
* Display tool result summary using Erosolar-CLI style.
|
|
269
|
+
* Format: ⎿ Summary text
|
|
270
|
+
* Routes through display module to work with scroll regions
|
|
271
|
+
*/
|
|
272
|
+
private displayToolResultSummary;
|
|
273
|
+
/**
|
|
274
|
+
* Format tool result summary in Erosolar-CLI style
|
|
275
|
+
* Returns compact summary like "Found 4 files" or "Read 50 lines"
|
|
276
|
+
*/
|
|
277
|
+
private formatClaudeCodeResultSummary;
|
|
278
|
+
/**
|
|
279
|
+
* Format agent/task result summary showing nested tool uses
|
|
280
|
+
* Example output:
|
|
281
|
+
* Read 100 lines
|
|
282
|
+
* Found 4 lines
|
|
283
|
+
* +31 more tool uses
|
|
284
|
+
*/
|
|
285
|
+
private formatAgentResultSummary;
|
|
286
|
+
/**
|
|
287
|
+
* Extract the diff section from Edit tool output, removing repeated headers.
|
|
288
|
+
*/
|
|
289
|
+
private extractEditDiffSection;
|
|
290
|
+
/**
|
|
291
|
+
* Count lines in output while ignoring trailing blank lines.
|
|
292
|
+
*/
|
|
293
|
+
private countLines;
|
|
294
|
+
/**
|
|
295
|
+
* Get UI state
|
|
296
|
+
*/
|
|
297
|
+
getState(): any;
|
|
298
|
+
/**
|
|
299
|
+
* Dispose of resources
|
|
300
|
+
*/
|
|
30
301
|
dispose(): void;
|
|
31
|
-
private resetToolUsage;
|
|
32
|
-
private recordToolUsage;
|
|
33
|
-
private formatToolCall;
|
|
34
|
-
private summarizeArgs;
|
|
35
|
-
private limitValue;
|
|
36
|
-
private formatToolResult;
|
|
37
302
|
}
|
|
38
|
-
export {};
|
|
39
303
|
//# sourceMappingURL=ShellUIAdapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShellUIAdapter.d.ts","sourceRoot":"","sources":["../../src/ui/ShellUIAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ShellUIAdapter.d.ts","sourceRoot":"","sources":["../../src/ui/ShellUIAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAA2B,MAAM,wBAAwB,CAAC;AAKtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAI7E,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnG,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACz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