agent-afk 5.142.0 → 5.144.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.
@@ -13,10 +13,12 @@ interface ToolEntryFields {
13
13
  thinkingTail?: string;
14
14
  diff?: DiffPayload;
15
15
  headerEmitted?: boolean;
16
+ startedAt: number;
16
17
  }
17
18
  export type ToolEntry = ToolEntryFields & {
18
19
  kind: 'tool';
19
20
  };
21
+ export declare function freshToolEntry(toolUseId: string, toolName: string, toolInput: string, prefix: string, agentContext?: string): ToolEntry;
20
22
  export interface TextEntry {
21
23
  kind: 'text';
22
24
  toolUseId: string;
@@ -8,6 +8,7 @@ export declare class ToolLane {
8
8
  private entries;
9
9
  private order;
10
10
  private agentIdStack;
11
+ private lastElapsedSecond;
11
12
  addStart(toolUseId: string, toolName: string, toolInput: string): void;
12
13
  addStartWithAgentContext(toolUseId: string, toolName: string, toolInput: string, agentContext: string | undefined, maxWidth?: number): void;
13
14
  mergeAgentLabel(parentToolUseId: string, label: string, maxWidth?: number): boolean;
@@ -18,6 +19,7 @@ export declare class ToolLane {
18
19
  addDiff(toolUseId: string, diff: DiffPayload): void;
19
20
  upsertTextChild(toolUseId: string, agentContext: string, text: string): void;
20
21
  removeTextChildrenUnder(agentContext: string): void;
22
+ checkElapsedDisplayNeedsUpdate(): boolean;
21
23
  hasPending(): boolean;
22
24
  hasEntry(id: string): boolean;
23
25
  findLastSkillEntryId(): string | undefined;
@@ -1,6 +1,8 @@
1
1
  import { type ChalkInstance } from 'chalk';
2
2
  import { categorizeTool, dispatchTagForCategory, SUBAGENT_TOOLS, SKILL_TOOLS, DAG_TOOLS, NESTING_TOOLS, type ToolCategory } from '../agent/tool-category.js';
3
3
  export { categorizeTool, dispatchTagForCategory, SUBAGENT_TOOLS, SKILL_TOOLS, DAG_TOOLS, NESTING_TOOLS, type ToolCategory, };
4
+ export declare const CATEGORY_HUMAN_VERB: Record<ToolCategory, string>;
5
+ export declare function humanVerbForTool(toolName: string): string;
4
6
  export interface CategoryStyle {
5
7
  color: ChalkInstance;
6
8
  glyph: string;