reasonix 0.30.5 → 0.31.0

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/index.d.ts CHANGED
@@ -454,8 +454,10 @@ interface RunHooksOptions {
454
454
  /** Stops at first `block` so a gating hook can prevent later hooks running against a phantom success. */
455
455
  declare function runHooks(opts: RunHooksOptions): Promise<HookReport>;
456
456
 
457
- /** Single text-layer DeepSeek-error formatter — 429/5xx never reach here (retry.ts swallows). */
458
- declare function formatLoopError(err: Error): string;
457
+ interface DeepSeekProbeResult {
458
+ reachable: boolean;
459
+ }
460
+ declare function formatLoopError(err: Error, probe?: DeepSeekProbeResult): string;
459
461
 
460
462
  /** Drops both unpaired assistant.tool_calls and stray tool messages — DeepSeek 400s on either. */
461
463
  declare function fixToolCallPairing(messages: ChatMessage[]): {
@@ -863,6 +865,8 @@ declare class CacheFirstLoop {
863
865
  get proArmed(): boolean;
864
866
  /** UI surface — true while the current turn is running on pro (armed or auto-escalated). */
865
867
  get escalatedThisTurn(): boolean;
868
+ /** UI surface — model id of the call about to run (or running) right now, including escalation. */
869
+ get currentCallModel(): string;
866
870
  private modelForCurrentCall;
867
871
  /** Returns true ONLY on the tipping call — caller surfaces a one-shot warning. */
868
872
  private noteToolFailureSignal;