reasonix 0.22.0 → 0.23.1

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
@@ -631,6 +631,7 @@ declare class CacheFirstLoop {
631
631
  private _escalateThisTurn;
632
632
  private _turnFailureCount;
633
633
  private _turnFailureTypes;
634
+ private _turnSelfCorrected;
634
635
  constructor(opts: CacheFirstLoopOptions);
635
636
  /** Shrink huge edit_file/write_file args post-dispatch — tool result already explains. */
636
637
  private compactToolCallArgsAfterResponse;
@@ -642,6 +643,8 @@ declare class CacheFirstLoop {
642
643
  charsSaved: number;
643
644
  };
644
645
  appendAndPersist(message: ChatMessage): void;
646
+ /** Swap the just-appended assistant entry — used by self-correction to restore the original tool_calls without dropping reasoning_content. */
647
+ private replaceTailAssistantMessage;
645
648
  /** "New chat" — drops messages but keeps session + immutable prefix (cache-first invariant). */
646
649
  clearLog(): {
647
650
  dropped: number;
@@ -705,12 +708,15 @@ declare function formatLoopError(err: Error): string;
705
708
  /** Expand `@path` mentions inline. Paths must resolve inside rootDir; escapes / oversize get a skip note, not content. */
706
709
  /** Caps match tool-result dispatch truncation (0.5.2). */
707
710
  declare const DEFAULT_AT_MENTION_MAX_BYTES: number;
711
+ /** Universally-uninteresting build / VCS dirs. Framework-specific dirs (Pods, target, …) live in .gitignore. */
708
712
  declare const DEFAULT_PICKER_IGNORE_DIRS: readonly string[];
709
713
  interface ListFilesOptions {
710
- /** Cap the walk once we've collected this many entries. Default 500. */
714
+ /** Cap the walk once we've collected this many entries. Default 2000. */
711
715
  maxResults?: number;
712
716
  /** Directory names to skip entirely. Defaults to {@link DEFAULT_PICKER_IGNORE_DIRS}. */
713
717
  ignoreDirs?: readonly string[];
718
+ /** Walk nested .gitignores (root + every subdir). Default true. */
719
+ respectGitignore?: boolean;
714
720
  }
715
721
  /** Sync on purpose — fits the TUI's single-turn-per-tick model. Skips dot-DIRS but keeps dotfiles. */
716
722
  declare function listFilesSync(root: string, opts?: ListFilesOptions): string[];
@@ -1855,6 +1861,8 @@ interface ReasonixConfig {
1855
1861
  session?: string | null;
1856
1862
  setupCompleted?: boolean;
1857
1863
  search?: boolean;
1864
+ /** Persisted sidebar visibility — undefined = auto (open on cols ≥ 120). */
1865
+ sidebarOpen?: boolean;
1858
1866
  projects?: {
1859
1867
  [absoluteRootDir: string]: {
1860
1868
  shellAllowed?: string[];