erosolar-cli 1.7.14 → 1.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/responseVerifier.d.ts +79 -0
- package/dist/core/responseVerifier.d.ts.map +1 -0
- package/dist/core/responseVerifier.js +443 -0
- package/dist/core/responseVerifier.js.map +1 -0
- package/dist/shell/interactiveShell.d.ts +10 -0
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +80 -0
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/ui/ShellUIAdapter.d.ts +3 -0
- package/dist/ui/ShellUIAdapter.d.ts.map +1 -1
- package/dist/ui/ShellUIAdapter.js +4 -10
- package/dist/ui/ShellUIAdapter.js.map +1 -1
- package/dist/ui/persistentPrompt.d.ts +4 -0
- package/dist/ui/persistentPrompt.d.ts.map +1 -1
- package/dist/ui/persistentPrompt.js +10 -11
- package/dist/ui/persistentPrompt.js.map +1 -1
- package/package.json +1 -1
- package/dist/bin/core/agent.js +0 -362
- package/dist/bin/core/agentProfileManifest.js +0 -187
- package/dist/bin/core/agentProfiles.js +0 -34
- package/dist/bin/core/agentRulebook.js +0 -135
- package/dist/bin/core/agentSchemaLoader.js +0 -233
- package/dist/bin/core/contextManager.js +0 -412
- package/dist/bin/core/contextWindow.js +0 -122
- package/dist/bin/core/customCommands.js +0 -80
- package/dist/bin/core/errors/apiKeyErrors.js +0 -114
- package/dist/bin/core/errors/errorTypes.js +0 -340
- package/dist/bin/core/errors/safetyValidator.js +0 -304
- package/dist/bin/core/errors.js +0 -32
- package/dist/bin/core/modelDiscovery.js +0 -755
- package/dist/bin/core/preferences.js +0 -224
- package/dist/bin/core/schemaValidator.js +0 -92
- package/dist/bin/core/secretStore.js +0 -199
- package/dist/bin/core/sessionStore.js +0 -187
- package/dist/bin/core/toolRuntime.js +0 -290
- package/dist/bin/core/types.js +0 -1
- package/dist/bin/shell/bracketedPasteManager.js +0 -350
- package/dist/bin/shell/fileChangeTracker.js +0 -65
- package/dist/bin/shell/interactiveShell.js +0 -2908
- package/dist/bin/shell/liveStatus.js +0 -78
- package/dist/bin/shell/shellApp.js +0 -290
- package/dist/bin/shell/systemPrompt.js +0 -60
- package/dist/bin/shell/updateManager.js +0 -108
- package/dist/bin/ui/ShellUIAdapter.js +0 -459
- package/dist/bin/ui/UnifiedUIController.js +0 -183
- package/dist/bin/ui/animation/AnimationScheduler.js +0 -430
- package/dist/bin/ui/codeHighlighter.js +0 -854
- package/dist/bin/ui/designSystem.js +0 -121
- package/dist/bin/ui/display.js +0 -1222
- package/dist/bin/ui/interrupts/InterruptManager.js +0 -437
- package/dist/bin/ui/layout.js +0 -139
- package/dist/bin/ui/orchestration/StatusOrchestrator.js +0 -403
- package/dist/bin/ui/outputMode.js +0 -38
- package/dist/bin/ui/persistentPrompt.js +0 -183
- package/dist/bin/ui/richText.js +0 -338
- package/dist/bin/ui/shortcutsHelp.js +0 -87
- package/dist/bin/ui/telemetry/UITelemetry.js +0 -443
- package/dist/bin/ui/textHighlighter.js +0 -210
- package/dist/bin/ui/theme.js +0 -116
- package/dist/bin/ui/toolDisplay.js +0 -423
- package/dist/bin/ui/toolDisplayAdapter.js +0 -357
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File Change Tracker
|
|
3
|
-
* Tracks file modifications during a session to display summary stats
|
|
4
|
-
*/
|
|
5
|
-
export class FileChangeTracker {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.changes = new Map();
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Record a file edit/write operation
|
|
11
|
-
*/
|
|
12
|
-
recordChange(path, type, additions = 0, removals = 0) {
|
|
13
|
-
const existing = this.changes.get(path);
|
|
14
|
-
if (existing) {
|
|
15
|
-
// Accumulate changes for the same file
|
|
16
|
-
existing.additions += additions;
|
|
17
|
-
existing.removals += removals;
|
|
18
|
-
existing.timestamp = Date.now();
|
|
19
|
-
existing.type = type; // Update to latest operation type
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
this.changes.set(path, {
|
|
23
|
-
path,
|
|
24
|
-
type,
|
|
25
|
-
additions,
|
|
26
|
-
removals,
|
|
27
|
-
timestamp: Date.now(),
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Get summary of all changes
|
|
33
|
-
*/
|
|
34
|
-
getSummary() {
|
|
35
|
-
let totalAdditions = 0;
|
|
36
|
-
let totalRemovals = 0;
|
|
37
|
-
for (const change of this.changes.values()) {
|
|
38
|
-
totalAdditions += change.additions;
|
|
39
|
-
totalRemovals += change.removals;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
files: this.changes.size,
|
|
43
|
-
additions: totalAdditions,
|
|
44
|
-
removals: totalRemovals,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Get all changes
|
|
49
|
-
*/
|
|
50
|
-
getAllChanges() {
|
|
51
|
-
return Array.from(this.changes.values()).sort((a, b) => b.timestamp - a.timestamp);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Clear all tracked changes
|
|
55
|
-
*/
|
|
56
|
-
clear() {
|
|
57
|
-
this.changes.clear();
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Get change for specific file
|
|
61
|
-
*/
|
|
62
|
-
getChange(path) {
|
|
63
|
-
return this.changes.get(path);
|
|
64
|
-
}
|
|
65
|
-
}
|