@cerebriline/agents 4.100.246 → 4.100.248
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/agent-runtime.d.ts +153 -8
- package/dist/agent-runtime.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -45
- package/dist/reasoning-repetition.d.ts +11 -0
- package/dist/reasoning-repetition.d.ts.map +1 -1
- package/dist/tool-intent-guard.d.ts +75 -0
- package/dist/tool-intent-guard.d.ts.map +1 -0
- package/package.json +3 -3
package/dist/agent-runtime.d.ts
CHANGED
|
@@ -189,9 +189,10 @@ export declare class AgentRuntime {
|
|
|
189
189
|
private readonly tools;
|
|
190
190
|
private hooks;
|
|
191
191
|
/**
|
|
192
|
-
* `appendContext` blocks
|
|
193
|
-
*
|
|
194
|
-
*
|
|
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
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
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
|
|
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,25 @@ export declare class AgentRuntime {
|
|
|
319
336
|
* same collapse every turn. Reset by any turn that streams cleanly.
|
|
320
337
|
*/
|
|
321
338
|
private reasoningLoopStreak;
|
|
339
|
+
/**
|
|
340
|
+
* What to tell the model about a call this runtime cut for an overlong
|
|
341
|
+
* `intent`, held until the one place a user message may follow the turn:
|
|
342
|
+
* at once when the turn called nothing else, after the tool results when
|
|
343
|
+
* it did.
|
|
344
|
+
*/
|
|
345
|
+
private pendingToolIntentNudge?;
|
|
346
|
+
/** The request the turn in hand was made with (`continueConversation`). */
|
|
347
|
+
private lastIssuedRequest?;
|
|
348
|
+
/** Requests in a row this runtime cut for an overlong `intent`. */
|
|
349
|
+
private toolIntentCutStreak;
|
|
350
|
+
private modelSteerController?;
|
|
322
351
|
private readonly telemetryProviderId?;
|
|
323
352
|
private readonly telemetryModelId?;
|
|
324
353
|
constructor(config: AgentRuntimeConfig);
|
|
325
354
|
run(input: AgentRunInput): Promise<AgentRunResult>;
|
|
326
355
|
continue(input?: AgentRunInput): Promise<AgentRunResult>;
|
|
356
|
+
/** Interrupt only the current model request; running tools finish normally. */
|
|
357
|
+
notifyPendingUserMessage(): void;
|
|
327
358
|
abort(reason?: unknown): void;
|
|
328
359
|
subscribe(listener: AgentEventListener): () => void;
|
|
329
360
|
/**
|
|
@@ -396,6 +427,24 @@ export declare class AgentRuntime {
|
|
|
396
427
|
* continues either way, does not.
|
|
397
428
|
*/
|
|
398
429
|
private repetitionNudgeFor;
|
|
430
|
+
/**
|
|
431
|
+
* Take out of a turn what must not be read back: reasoning that collapsed
|
|
432
|
+
* into repetition, and a tool call nothing could parse.
|
|
433
|
+
*
|
|
434
|
+
* Both were left in the transcript, and both are the largest thing in the
|
|
435
|
+
* next request. Measured on pandorum (2026-10-10, v9-agentic): four looped
|
|
436
|
+
* turns kept 44,000 to 90,000 characters of one passage repeated, and the
|
|
437
|
+
* request after each carried all of it; an unreadable call was copied by
|
|
438
|
+
* the next turn 9 times in 21, and one of them pushed the request past the
|
|
439
|
+
* window into two refusals and a compaction that kept it.
|
|
440
|
+
*
|
|
441
|
+
* Replaced here, before the turn is recorded, so that no request, no
|
|
442
|
+
* compaction and no stored session ever holds the original. The nudges
|
|
443
|
+
* that answer the turn are worked out first -- they quote what is about to
|
|
444
|
+
* go -- and the message is marked so compaction can leave a turn like this
|
|
445
|
+
* out of what it keeps (see `spoiledTurn` in core's compaction).
|
|
446
|
+
*/
|
|
447
|
+
private replaceSpoiledContent;
|
|
399
448
|
/** Whether this host asks a silent turn to continue at all. */
|
|
400
449
|
private nudgesEnabled;
|
|
401
450
|
/**
|
|
@@ -430,6 +479,22 @@ export declare class AgentRuntime {
|
|
|
430
479
|
* A condenser that throws, or that has nothing to say, leaves the discard
|
|
431
480
|
* exactly as it was.
|
|
432
481
|
*/
|
|
482
|
+
/**
|
|
483
|
+
* What the last request left free in the window, as far as can be vouched
|
|
484
|
+
* for: the window its cap was resolved against, less what the provider
|
|
485
|
+
* counted for it and the reserve a cap is given. Where no window was
|
|
486
|
+
* reported, the cap itself is the floor -- it is never more than the
|
|
487
|
+
* window less the input it was computed against.
|
|
488
|
+
*/
|
|
489
|
+
private continuationRoomTokens;
|
|
490
|
+
/**
|
|
491
|
+
* One more turn of the conversation that is not kept: the last request as
|
|
492
|
+
* it was issued, one user message after it, prose only. See
|
|
493
|
+
* `DiscardedTurnInput.continueConversation`.
|
|
494
|
+
*/
|
|
495
|
+
private continueConversation;
|
|
496
|
+
/** Whether the host's `recoverTurnFault` is the one to wait this fault out. */
|
|
497
|
+
private recoversTurnFault;
|
|
433
498
|
private noteDiscardedReasoning;
|
|
434
499
|
/**
|
|
435
500
|
* What the retry after a truncated turn is allowed to spend.
|
|
@@ -455,6 +520,11 @@ export declare class AgentRuntime {
|
|
|
455
520
|
private getMaxTokensRetryBudget;
|
|
456
521
|
private addUserReminderMessage;
|
|
457
522
|
private execute;
|
|
523
|
+
/**
|
|
524
|
+
* Injects the collected hook context blocks as one user message at the end
|
|
525
|
+
* of the conversation. Always delivers: the buffer is empty afterwards.
|
|
526
|
+
*/
|
|
527
|
+
private flushPendingHookContexts;
|
|
458
528
|
private callBeforeRunHooks;
|
|
459
529
|
private callAfterRunHooks;
|
|
460
530
|
/**
|
|
@@ -476,6 +546,58 @@ export declare class AgentRuntime {
|
|
|
476
546
|
* over every wait, and is checked again before each re-send.
|
|
477
547
|
*/
|
|
478
548
|
private generateAssistantMessageRecoveringFaults;
|
|
549
|
+
/**
|
|
550
|
+
* Run a model turn, retrying transient provider/API failures with backoff.
|
|
551
|
+
*
|
|
552
|
+
* A turn whose model stream fails with a retryable provider error (rate
|
|
553
|
+
* limit, 5xx, network hiccup, or OpenRouter's generic "Provider returned
|
|
554
|
+
* error") is re-issued up to {@link PROVIDER_ERROR_MAX_RETRIES} times, with
|
|
555
|
+
* exponential backoff between attempts, before the error is allowed to
|
|
556
|
+
* propagate and end the run. Non-retryable errors (auth, context-window
|
|
557
|
+
* overflow, other client errors) and any attempt that already produced
|
|
558
|
+
* visible output or provider tool activity are returned unchanged for the
|
|
559
|
+
* caller to handle, so this only adds
|
|
560
|
+
* resilience and never changes behavior for a turn that would otherwise
|
|
561
|
+
* succeed. Context-window overflow recovery and max-tokens recovery still
|
|
562
|
+
* run inside each attempt (the latter at most once per run). An unknown
|
|
563
|
+
* finish without tool activity is continued once from the partial history;
|
|
564
|
+
* it is never inferred from whether the response contains visible text.
|
|
565
|
+
*/
|
|
566
|
+
private generateAssistantMessageWithProviderRetry;
|
|
567
|
+
/**
|
|
568
|
+
* Run `issue`, re-running it with backoff while it returns a turn that
|
|
569
|
+
* failed with a transient, retryable provider error (see
|
|
570
|
+
* {@link isRetryableProviderErrorTurn}), up to PROVIDER_ERROR_MAX_RETRIES
|
|
571
|
+
* times. `issue` decides what is re-run: the whole prepared turn for an
|
|
572
|
+
* ordinary request, or just the issuing of an already-prepared request.
|
|
573
|
+
*/
|
|
574
|
+
private withProviderErrorRetry;
|
|
575
|
+
/**
|
|
576
|
+
* True when a turn failed with a transient provider error that a retry
|
|
577
|
+
* could plausibly recover, and the failed attempt left nothing behind that
|
|
578
|
+
* a second stream would duplicate or repeat:
|
|
579
|
+
* - no content at all (text, reasoning, media, or local tool calls): those
|
|
580
|
+
* deltas were already emitted to the UI and there is no event to retract
|
|
581
|
+
* them, so re-streaming would show the output twice;
|
|
582
|
+
* - no provider-executed tool activity (recorded in message metadata, not
|
|
583
|
+
* content): re-issuing the request could run those side effects again;
|
|
584
|
+
* - not an auth or context-window failure, which the same request cannot fix.
|
|
585
|
+
*/
|
|
586
|
+
private isRetryableProviderErrorTurn;
|
|
587
|
+
/**
|
|
588
|
+
* Clear the last-error fields. Called at the start of every turn and before
|
|
589
|
+
* every provider-error retry, so a `finish` event that omits `error` (allowed
|
|
590
|
+
* by the public AgentModel contract) cannot inherit the class or retryability
|
|
591
|
+
* of an earlier attempt. Deliberately not called inside overflow recovery,
|
|
592
|
+
* whose "nothing to compact" error reports the first attempt's provider
|
|
593
|
+
* message.
|
|
594
|
+
*/
|
|
595
|
+
private resetLastError;
|
|
596
|
+
/**
|
|
597
|
+
* Sleep for `ms`, rejecting early with the abort error if the run is
|
|
598
|
+
* aborted while waiting, so a retry backoff never blocks cancellation.
|
|
599
|
+
*/
|
|
600
|
+
private abortableDelay;
|
|
479
601
|
/**
|
|
480
602
|
* Run a model turn, recovering once per run from a provider-rejected
|
|
481
603
|
* context-window overflow: force a compaction through `prepareTurn` and
|
|
@@ -557,7 +679,20 @@ export declare class AgentRuntime {
|
|
|
557
679
|
*/
|
|
558
680
|
private describeImagesInTranscript;
|
|
559
681
|
private isRecoverableOverflowTurn;
|
|
682
|
+
/** Tool activity executed outside AgentRuntime is recorded in metadata. */
|
|
683
|
+
private hasModelToolActivity;
|
|
684
|
+
/** Append an assistant turn to the transcript and announce it. */
|
|
685
|
+
private recordAssistantMessage;
|
|
560
686
|
private generateAssistantMessage;
|
|
687
|
+
/** A model request with turn preparation and before-model hooks applied. */
|
|
688
|
+
private prepareModelRequest;
|
|
689
|
+
private generateAssistantMessageForRequest;
|
|
690
|
+
/**
|
|
691
|
+
* Issue a prepared request and assemble the assistant turn from its stream.
|
|
692
|
+
* Separate from preparation so a prepared request can be re-issued (e.g.
|
|
693
|
+
* after a transient provider error) without re-running turn preparation.
|
|
694
|
+
*/
|
|
695
|
+
private streamPreparedRequest;
|
|
561
696
|
private openTaskLifecycleStream;
|
|
562
697
|
private captureTaskLifecycleFailure;
|
|
563
698
|
private captureTaskLifecycle;
|
|
@@ -583,6 +718,16 @@ export declare class AgentRuntime {
|
|
|
583
718
|
* every turn is not recovering, and the streak ends the run.
|
|
584
719
|
*/
|
|
585
720
|
private onReasoningLoopCut;
|
|
721
|
+
/** Every argument name of every tool this run may call. */
|
|
722
|
+
private toolArgumentNames;
|
|
723
|
+
/**
|
|
724
|
+
* A tool call's `intent` ran past its limit and the request was cut.
|
|
725
|
+
*
|
|
726
|
+
* Nothing is counted and nothing ends the run: the cut is what bounds the
|
|
727
|
+
* cost, and each one is a few hundred tokens where the uncut call was tens
|
|
728
|
+
* of thousands.
|
|
729
|
+
*/
|
|
730
|
+
private onToolIntentCut;
|
|
586
731
|
private throwIfAborted;
|
|
587
732
|
private normalizeAbortError;
|
|
588
733
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runtime.d.ts","sourceRoot":"","sources":["../src/agent-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,uBAAuB,
|
|
1
|
+
{"version":3,"file":"agent-runtime.d.ts","sourceRoot":"","sources":["../src/agent-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,uBAAuB,EAE5B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAKX,YAAY,EAEZ,UAAU,EAKV,cAAc,EACd,iBAAiB,EAEjB,yBAAyB,EAOzB,kBAAkB,IAAI,sBAAsB,EAO5C,iBAAiB,EAEjB,MAAM,eAAe,CAAC;AAyFvB,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,QAAS,CAAC;AAE/C;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GAClB,MAAM,CAmBR;AAYD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+BAA+B,IAAI,CAAC;AA+MjD;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACzC,SAAS,CAAC,EAAE,iBAAiB,GAC3B,MAAM,CAcR;AAYD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAEjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sCAAs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AACH,eAAO,MAAM,KAAK,qBAAe,CAAC;AAClC,MAAM,MAAM,KAAK,GAAG,YAAY,CAAC;AAEjC,wBAAgB,WAAW,CAAC,MAAM,EAAE,kBAAkB,GAAG,YAAY,CAEpE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export type { ReasoningLoopGuardConfig, ReasoningLoopKind, ReasoningLoopVerdict,
|
|
|
24
24
|
export { DEFAULT_REASONING_LOOP_GUARD, describeReasoningLoop, ReasoningLoopGuard, } from "./reasoning-loop-guard";
|
|
25
25
|
export type { ReasoningRepetitionConfig, RepetitionMeasurement, RepetitionNudger, } from "./reasoning-repetition";
|
|
26
26
|
export { createRepetitionNudger, DEFAULT_REASONING_REPETITION, describeRepetition, isRepetitionLoop, measureReasoningRepetition, } from "./reasoning-repetition";
|
|
27
|
+
export { DEFAULT_TOOL_INTENT_MAX_CHARS, isToolIntentGuardEnabled, setToolIntentGuardEnabled, type ToolIntentOverrun, } from "./tool-intent-guard";
|
|
27
28
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,YAAY,EACX,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,IAAI,sBAAsB,EAC5C,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,UAAU,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EACX,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,GAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,KAAK,EACL,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,+BAA+B,EAC/B,sCAAsC,EACtC,mCAAmC,GACnC,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACX,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,4BAA4B,EAC5B,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACX,yBAAyB,EACzB,qBAAqB,EACrB,gBAAgB,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,gBAAgB,EAChB,0BAA0B,GAC1B,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,YAAY,EACX,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,IAAI,sBAAsB,EAC5C,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,UAAU,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EACX,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,GAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,KAAK,EACL,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,+BAA+B,EAC/B,sCAAsC,EACtC,mCAAmC,GACnC,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACX,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,4BAA4B,EAC5B,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACX,yBAAyB,EACzB,qBAAqB,EACrB,gBAAgB,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,gBAAgB,EAChB,0BAA0B,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,EACxB,yBAAyB,EACzB,KAAK,iBAAiB,GACtB,MAAM,qBAAqB,CAAC"}
|