@leanandmean/coding-agent 0.74.1-scramjet.66 → 0.74.1-scramjet.68
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 +2 -0
- package/dist/core/agent-session.d.ts +6 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +190 -25
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +2 -2
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/docs/compaction.md +10 -0
- package/docs/extensions.md +11 -3
- package/docs/json.md +2 -0
- package/docs/sdk.md +3 -0
- package/docs/session-format.md +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -124,6 +124,8 @@ The interface from top to bottom:
|
|
|
124
124
|
- **Editor** - Where you type; border color indicates thinking level
|
|
125
125
|
- **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model, and recent median output speed
|
|
126
126
|
|
|
127
|
+
The default footer's existing dollar amount combines parent assistant costs across the whole journal with tool-reported costs, including nested subagents and failed/interrupted work. Cumulative tool updates replace earlier reports live; saved final costs survive resume. Recoverable legacy details are interpreted by the registered tool without rewriting history or enabling execution. Token/cache/context metrics remain parent-only; `/session`, RPC statistics, and custom footer examples retain their existing accounting.
|
|
128
|
+
|
|
127
129
|
The editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.
|
|
128
130
|
|
|
129
131
|
### Browsing and copying output
|
|
@@ -167,6 +167,9 @@ export declare class AgentSession {
|
|
|
167
167
|
private _unsubscribeAgent?;
|
|
168
168
|
private _eventListeners;
|
|
169
169
|
private _agentEventQueue;
|
|
170
|
+
private readonly _toolCostExecutions;
|
|
171
|
+
private readonly _pendingToolCosts;
|
|
172
|
+
private _historicalCostDefinitions;
|
|
170
173
|
private readonly _outputThroughputTracker;
|
|
171
174
|
private readonly _outputThroughputHistory;
|
|
172
175
|
private _outputThroughputGeneration;
|
|
@@ -181,6 +184,7 @@ export declare class AgentSession {
|
|
|
181
184
|
private _pendingNextTurnMessages;
|
|
182
185
|
private readonly _inputSessionEntries;
|
|
183
186
|
private _compactionAbortController;
|
|
187
|
+
private _manualCompactionDrain;
|
|
184
188
|
private _autoCompactionAbortController;
|
|
185
189
|
private _overflowRecoveryAttempted;
|
|
186
190
|
private _branchSummaryAbortController;
|
|
@@ -235,6 +239,7 @@ export declare class AgentSession {
|
|
|
235
239
|
private _emitQueueUpdate;
|
|
236
240
|
/** Internal handler for agent events - shared by subscribe and reconnect */
|
|
237
241
|
private _handleAgentEvent;
|
|
242
|
+
private _captureToolCost;
|
|
238
243
|
private _captureOutputThroughput;
|
|
239
244
|
private _resetOutputThroughput;
|
|
240
245
|
private _captureAgentRunSettlement;
|
|
@@ -647,6 +652,7 @@ export declare class AgentSession {
|
|
|
647
652
|
entryId: string;
|
|
648
653
|
text: string;
|
|
649
654
|
}>;
|
|
655
|
+
getRecordedSessionCost(): number;
|
|
650
656
|
/**
|
|
651
657
|
* Get session statistics.
|
|
652
658
|
*/
|