@leanandmean/coding-agent 0.74.1-scramjet.53 → 0.74.1-scramjet.55
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/agent-session.d.ts +31 -15
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +535 -215
- package/dist/core/agent-session.js.map +1 -1
- package/docs/models.md +2 -0
- package/docs/rpc.md +2 -2
- package/package.json +4 -4
|
@@ -184,11 +184,12 @@ export declare class AgentSession {
|
|
|
184
184
|
private _autoCompactionAbortController;
|
|
185
185
|
private _overflowRecoveryAttempted;
|
|
186
186
|
private _branchSummaryAbortController;
|
|
187
|
-
private
|
|
188
|
-
private _retryAttempt;
|
|
187
|
+
private _retry;
|
|
189
188
|
private _runRetryCount;
|
|
190
|
-
private
|
|
191
|
-
private
|
|
189
|
+
private _activeAgentRunSettlement;
|
|
190
|
+
private _pendingAgentRunStart;
|
|
191
|
+
private readonly _unsettledAgentRuns;
|
|
192
|
+
private readonly _unsettledRetryChains;
|
|
192
193
|
private _bashAbortController;
|
|
193
194
|
private _pendingBashMessages;
|
|
194
195
|
private _extensionRunner;
|
|
@@ -232,18 +233,19 @@ export declare class AgentSession {
|
|
|
232
233
|
/** Emit an event to all listeners */
|
|
233
234
|
private _emit;
|
|
234
235
|
private _emitQueueUpdate;
|
|
235
|
-
private _lastAssistantMessage;
|
|
236
236
|
/** Internal handler for agent events - shared by subscribe and reconnect */
|
|
237
237
|
private _handleAgentEvent;
|
|
238
238
|
private _captureOutputThroughput;
|
|
239
239
|
private _resetOutputThroughput;
|
|
240
|
-
private
|
|
241
|
-
private
|
|
240
|
+
private _captureAgentRunSettlement;
|
|
241
|
+
private _settleAgentRun;
|
|
242
|
+
private _settleRetryChain;
|
|
243
|
+
private _completeAgentRun;
|
|
244
|
+
private _reserveAgentRunStart;
|
|
245
|
+
private _rejectAgentRunStart;
|
|
242
246
|
private _processAgentEventTracked;
|
|
243
|
-
private
|
|
247
|
+
private _harnessPersistenceAckForEvent;
|
|
244
248
|
private _processAgentEvent;
|
|
245
|
-
/** Resolve the pending retry promise */
|
|
246
|
-
private _resolveRetry;
|
|
247
249
|
/** Extract text content from a message */
|
|
248
250
|
private _getUserMessageText;
|
|
249
251
|
/** Find the last assistant message in agent state (including aborted ones) */
|
|
@@ -338,6 +340,8 @@ export declare class AgentSession {
|
|
|
338
340
|
*/
|
|
339
341
|
invokeHarnessTool(name: string, args: unknown, options?: InvokeHarnessToolOptions): Promise<void>;
|
|
340
342
|
private _allocateHarnessToolCallId;
|
|
343
|
+
private _completeHarnessToolInvocation;
|
|
344
|
+
private _settleHarnessPersistenceAck;
|
|
341
345
|
private _registerHarnessPersistenceAck;
|
|
342
346
|
/** Whether compaction or branch summarization is currently running */
|
|
343
347
|
get isCompacting(): boolean;
|
|
@@ -547,16 +551,28 @@ export declare class AgentSession {
|
|
|
547
551
|
private _refreshToolRegistry;
|
|
548
552
|
private _buildRuntime;
|
|
549
553
|
reload(): Promise<void>;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
554
|
+
private _classifyRetry;
|
|
555
|
+
private _isLegacyRetryableError;
|
|
556
|
+
private _bounded;
|
|
557
|
+
private _appendAutoRetryRecord;
|
|
558
|
+
/**
|
|
559
|
+
* Persist a terminal record, emit `auto_retry_end` when a retry phase was active, and clear the phase.
|
|
560
|
+
* The phase is released before persistence is attempted so a persistence failure can never strand it.
|
|
561
|
+
*/
|
|
562
|
+
private _finishRetry;
|
|
563
|
+
private _finishRetryWithoutSuccess;
|
|
564
|
+
/** A run that ends without a classifiable snapshot cannot continue the retry; close it so nothing stays wedged. */
|
|
565
|
+
private _releaseRetryForFailedRun;
|
|
566
|
+
private _reportRetryFailure;
|
|
555
567
|
private _handleRetryableError;
|
|
568
|
+
private _finishCancelledRetry;
|
|
556
569
|
/**
|
|
557
570
|
* Cancel in-progress retry.
|
|
558
571
|
*/
|
|
559
572
|
abortRetry(): void;
|
|
573
|
+
/** Agent's own `activeRun` guard is false during backoff; the retry phase owns the idle Agent then. */
|
|
574
|
+
private _assertRetryNotOwningIdleAgent;
|
|
575
|
+
private _runAgentPrompt;
|
|
560
576
|
private waitForRetry;
|
|
561
577
|
/** Whether auto-retry is currently in progress */
|
|
562
578
|
get isRetrying(): boolean;
|