@cerebriline/agents 4.100.246 → 4.100.247

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.
@@ -189,9 +189,10 @@ export declare class AgentRuntime {
189
189
  private readonly tools;
190
190
  private hooks;
191
191
  /**
192
- * `appendContext` blocks collected from beforeTool/afterTool hooks during
193
- * the current iteration's tool executions, flushed as one user message
194
- * after the tool results so tool-result parts stay contiguous for
192
+ * `appendContext` blocks waiting to be injected as one user message.
193
+ * beforeRun hooks fill it before the run's first model request; beforeTool
194
+ * and afterTool hooks fill it during an iteration's tool executions and it
195
+ * flushes after the tool results, so tool-result parts stay contiguous for
195
196
  * providers that require them first in the following turn.
196
197
  */
197
198
  private pendingHookContexts;
@@ -266,12 +267,18 @@ export declare class AgentRuntime {
266
267
  /** Whether the run has spent its one non-convergence nudge. */
267
268
  private nonConvergenceNudgeSpent;
268
269
  /**
269
- * Whether the run has already spent its one nudge for a tool call the
270
- * provider could not read. Bounded for the reason every nudge here is: a
271
- * model that cannot emit a clean block twice will not on the third ask, and
272
- * an unbounded nudge makes a run immortal.
270
+ * The unreadable call the run was last nudged about, as a fingerprint of
271
+ * its text. The nudge is asked again for a call that differs from it and
272
+ * not for the same one: a model that writes the identical block after
273
+ * being told it could not be read will write it a third time, and a model
274
+ * that wrote a different call has moved on and broken something else.
275
+ *
276
+ * It was once per run. Measured (2026-10-11, harness run 0429): a call
277
+ * missing a comma, then a different call with a garbled tail one turn
278
+ * later, and the run ended 236 seconds in with the stub as its answer and
279
+ * the file untouched.
273
280
  */
274
- private unparsedCallNudgeSpent;
281
+ private lastNudgedUnreadableCall;
275
282
  /**
276
283
  * Whether the one intent-specific nudge has been used.
277
284
  *
@@ -287,6 +294,16 @@ export declare class AgentRuntime {
287
294
  */
288
295
  private repetitionNudger;
289
296
  private repetitionNudgerBuilt;
297
+ /**
298
+ * What the nudger said about a turn, kept because the reasoning it read
299
+ * is replaced before the turn is recorded (see `replaceSpoiledContent`).
300
+ * Asking it twice would also spend its ration twice.
301
+ */
302
+ private readonly repetitionNudges;
303
+ /** The unreadable call a turn's text held before it was replaced. */
304
+ private readonly unreadableCalls;
305
+ /** That call's fingerprint, taken from the text before it was replaced. */
306
+ private readonly unreadableCallFingerprints;
290
307
  /**
291
308
  * A message arrived mid-run and the model has not been asked to resume yet.
292
309
  *
@@ -319,11 +336,14 @@ export declare class AgentRuntime {
319
336
  * same collapse every turn. Reset by any turn that streams cleanly.
320
337
  */
321
338
  private reasoningLoopStreak;
339
+ private modelSteerController?;
322
340
  private readonly telemetryProviderId?;
323
341
  private readonly telemetryModelId?;
324
342
  constructor(config: AgentRuntimeConfig);
325
343
  run(input: AgentRunInput): Promise<AgentRunResult>;
326
344
  continue(input?: AgentRunInput): Promise<AgentRunResult>;
345
+ /** Interrupt only the current model request; running tools finish normally. */
346
+ notifyPendingUserMessage(): void;
327
347
  abort(reason?: unknown): void;
328
348
  subscribe(listener: AgentEventListener): () => void;
329
349
  /**
@@ -396,6 +416,24 @@ export declare class AgentRuntime {
396
416
  * continues either way, does not.
397
417
  */
398
418
  private repetitionNudgeFor;
419
+ /**
420
+ * Take out of a turn what must not be read back: reasoning that collapsed
421
+ * into repetition, and a tool call nothing could parse.
422
+ *
423
+ * Both were left in the transcript, and both are the largest thing in the
424
+ * next request. Measured on pandorum (2026-10-10, v9-agentic): four looped
425
+ * turns kept 44,000 to 90,000 characters of one passage repeated, and the
426
+ * request after each carried all of it; an unreadable call was copied by
427
+ * the next turn 9 times in 21, and one of them pushed the request past the
428
+ * window into two refusals and a compaction that kept it.
429
+ *
430
+ * Replaced here, before the turn is recorded, so that no request, no
431
+ * compaction and no stored session ever holds the original. The nudges
432
+ * that answer the turn are worked out first -- they quote what is about to
433
+ * go -- and the message is marked so compaction can leave a turn like this
434
+ * out of what it keeps (see `spoiledTurn` in core's compaction).
435
+ */
436
+ private replaceSpoiledContent;
399
437
  /** Whether this host asks a silent turn to continue at all. */
400
438
  private nudgesEnabled;
401
439
  /**
@@ -455,6 +493,11 @@ export declare class AgentRuntime {
455
493
  private getMaxTokensRetryBudget;
456
494
  private addUserReminderMessage;
457
495
  private execute;
496
+ /**
497
+ * Injects the collected hook context blocks as one user message at the end
498
+ * of the conversation. Always delivers: the buffer is empty afterwards.
499
+ */
500
+ private flushPendingHookContexts;
458
501
  private callBeforeRunHooks;
459
502
  private callAfterRunHooks;
460
503
  /**
@@ -476,6 +519,58 @@ export declare class AgentRuntime {
476
519
  * over every wait, and is checked again before each re-send.
477
520
  */
478
521
  private generateAssistantMessageRecoveringFaults;
522
+ /**
523
+ * Run a model turn, retrying transient provider/API failures with backoff.
524
+ *
525
+ * A turn whose model stream fails with a retryable provider error (rate
526
+ * limit, 5xx, network hiccup, or OpenRouter's generic "Provider returned
527
+ * error") is re-issued up to {@link PROVIDER_ERROR_MAX_RETRIES} times, with
528
+ * exponential backoff between attempts, before the error is allowed to
529
+ * propagate and end the run. Non-retryable errors (auth, context-window
530
+ * overflow, other client errors) and any attempt that already produced
531
+ * visible output or provider tool activity are returned unchanged for the
532
+ * caller to handle, so this only adds
533
+ * resilience and never changes behavior for a turn that would otherwise
534
+ * succeed. Context-window overflow recovery and max-tokens recovery still
535
+ * run inside each attempt (the latter at most once per run). An unknown
536
+ * finish without tool activity is continued once from the partial history;
537
+ * it is never inferred from whether the response contains visible text.
538
+ */
539
+ private generateAssistantMessageWithProviderRetry;
540
+ /**
541
+ * Run `issue`, re-running it with backoff while it returns a turn that
542
+ * failed with a transient, retryable provider error (see
543
+ * {@link isRetryableProviderErrorTurn}), up to PROVIDER_ERROR_MAX_RETRIES
544
+ * times. `issue` decides what is re-run: the whole prepared turn for an
545
+ * ordinary request, or just the issuing of an already-prepared request.
546
+ */
547
+ private withProviderErrorRetry;
548
+ /**
549
+ * True when a turn failed with a transient provider error that a retry
550
+ * could plausibly recover, and the failed attempt left nothing behind that
551
+ * a second stream would duplicate or repeat:
552
+ * - no content at all (text, reasoning, media, or local tool calls): those
553
+ * deltas were already emitted to the UI and there is no event to retract
554
+ * them, so re-streaming would show the output twice;
555
+ * - no provider-executed tool activity (recorded in message metadata, not
556
+ * content): re-issuing the request could run those side effects again;
557
+ * - not an auth or context-window failure, which the same request cannot fix.
558
+ */
559
+ private isRetryableProviderErrorTurn;
560
+ /**
561
+ * Clear the last-error fields. Called at the start of every turn and before
562
+ * every provider-error retry, so a `finish` event that omits `error` (allowed
563
+ * by the public AgentModel contract) cannot inherit the class or retryability
564
+ * of an earlier attempt. Deliberately not called inside overflow recovery,
565
+ * whose "nothing to compact" error reports the first attempt's provider
566
+ * message.
567
+ */
568
+ private resetLastError;
569
+ /**
570
+ * Sleep for `ms`, rejecting early with the abort error if the run is
571
+ * aborted while waiting, so a retry backoff never blocks cancellation.
572
+ */
573
+ private abortableDelay;
479
574
  /**
480
575
  * Run a model turn, recovering once per run from a provider-rejected
481
576
  * context-window overflow: force a compaction through `prepareTurn` and
@@ -557,7 +652,20 @@ export declare class AgentRuntime {
557
652
  */
558
653
  private describeImagesInTranscript;
559
654
  private isRecoverableOverflowTurn;
655
+ /** Tool activity executed outside AgentRuntime is recorded in metadata. */
656
+ private hasModelToolActivity;
657
+ /** Append an assistant turn to the transcript and announce it. */
658
+ private recordAssistantMessage;
560
659
  private generateAssistantMessage;
660
+ /** A model request with turn preparation and before-model hooks applied. */
661
+ private prepareModelRequest;
662
+ private generateAssistantMessageForRequest;
663
+ /**
664
+ * Issue a prepared request and assemble the assistant turn from its stream.
665
+ * Separate from preparation so a prepared request can be re-issued (e.g.
666
+ * after a transient provider error) without re-running turn preparation.
667
+ */
668
+ private streamPreparedRequest;
561
669
  private openTaskLifecycleStream;
562
670
  private captureTaskLifecycleFailure;
563
671
  private captureTaskLifecycle;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-runtime.d.ts","sourceRoot":"","sources":["../src/agent-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,uBAAuB,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,K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