agent-afk 5.276.14 → 5.276.16

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.
@@ -11,6 +11,7 @@ export interface DaemonSpawnOptions {
11
11
  taskCwd?: string;
12
12
  }
13
13
  export declare function daemonTraceLabel(taskId: string): string;
14
+ export declare function _resetDaemonDefaultCwdCache(): void;
14
15
  export declare function daemonDefaultCwd(): string;
15
16
  export declare function spawnDaemonSession(taskId: string, options: DaemonSpawnOptions): Promise<{
16
17
  session: AgentSession;
@@ -1,3 +1,3 @@
1
1
  export declare const REINFORCED_LABEL = "reinforced";
2
2
  export declare const WEAKENED_LABEL = "partially weakened";
3
- export declare function stripTrailingAnnotation(description: string, label: string): string;
3
+ export declare function stripTrailingAnnotation(description: string, label: typeof REINFORCED_LABEL | typeof WEAKENED_LABEL): string;
@@ -2,10 +2,11 @@ import type { Dirent } from 'fs';
2
2
  export declare const READAHEAD_CONCURRENCY = 32;
3
3
  type ReaddirResult = Dirent[];
4
4
  export declare class Readahead {
5
- private readonly cache;
6
- private inFlight;
7
5
  private readonly maxConcurrent;
8
6
  private readonly signal;
7
+ private readonly cache;
8
+ private inFlight;
9
+ private epoch;
9
10
  constructor(maxConcurrent?: number, signal?: AbortSignal);
10
11
  schedule(dirPath: string): void;
11
12
  get(dirPath: string): Promise<ReaddirResult>;
@@ -11,7 +11,7 @@ export declare const MAX_VISIBLE_CHILDREN = 3;
11
11
  export declare const GROUP_THRESHOLD_DISPATCH = 2;
12
12
  export declare const GROUP_THRESHOLD_LEAF = 3;
13
13
  export declare function inProgressVerb(toolName: string): string;
14
- export declare function formatOutcome(chunk: ToolResultChunk, homeDir?: string, maxPreview?: number, toolName?: string): string;
14
+ export declare function formatOutcome(chunk: ToolResultChunk, homeDir?: string, maxPreview?: number, toolName?: string, tailWidth?: number): string;
15
15
  export declare function batchBadge(chunk: ToolResultChunk | undefined): string;
16
16
  export declare function activeToolBadge(toolUseId: string, activeTools: {
17
17
  activeCount: number;
@@ -0,0 +1,16 @@
1
+ import type { ToolResultChunk } from '../../../agent/types/message-types.js';
2
+ export interface OutcomeHead {
3
+ lead: string;
4
+ label: string;
5
+ sep: string;
6
+ suffix?: string;
7
+ }
8
+ export interface OutcomeRowsOptions {
9
+ continuationIndent: string;
10
+ cols: number;
11
+ homeDir?: string;
12
+ toolName?: string;
13
+ }
14
+ export declare function outcomeTailWidth(cols: number, continuationIndent: string): number;
15
+ export declare function fitLabelAndOutcome(label: string, outcome: string, avail: number): [string, string];
16
+ export declare function pushOutcomeRows(lines: string[], head: OutcomeHead, result: ToolResultChunk, opts: OutcomeRowsOptions): void;
@@ -48,7 +48,6 @@ export declare function getGlyphs(): Readonly<Glyphs>;
48
48
  export declare function buildIndent(ancestorIsLast: readonly boolean[], g: Readonly<Glyphs>): string;
49
49
  export declare function colorizeIndent(plainIndent: string, g: Readonly<Glyphs>, startDepth?: number): string;
50
50
  export declare function renderTextChildLines(text: string, indent: string, g: Readonly<Glyphs>, startDepth?: number): string[];
51
- export declare function pushOutcomeLines(lines: string[], headPrefix: string, outcomeText: string, continuationIndent: string, cols: number, headSuffix?: string): void;
52
51
  export { assignConnectors, addOverflowSynthetic, addResultSummarySynthetic, type GroupedSibling, type OverflowSibling, type ResultSummarySibling, type RenderableSibling, type ConnectedSibling, } from './tool-lane-render-grouping.js';
53
52
  export { renderOverlayChildren, renderFlushChildren } from './tool-lane-render-children.js';
54
53
  export { formatAgentSummary, formatAgentHeader, formatAgentChildren, } from './tool-lane-render-agent.js';