agent-afk 5.158.1 → 5.158.2

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.
@@ -1,5 +1,4 @@
1
1
  import type { Message } from '../../../agent/types/message-types.js';
2
- import type { OutputEvent } from '../../../agent/types/session-types.js';
3
2
  export interface TaskViewHeader {
4
3
  id: string;
5
4
  agentType?: string;
@@ -9,8 +8,4 @@ export interface TaskViewHeader {
9
8
  toolCount?: number;
10
9
  turnCount?: number;
11
10
  }
12
- export interface TaskViewOptions {
13
- maxEvents?: number;
14
- }
15
11
  export declare function renderMessagesView(header: TaskViewHeader, messages: readonly Message[]): string;
16
- export declare function renderEventsView(header: TaskViewHeader, events: AsyncIterable<OutputEvent>, options?: TaskViewOptions): Promise<string>;
@@ -10,3 +10,5 @@ export * from './box.js';
10
10
  export * from './subagent-status-bar.js';
11
11
  export * from './stream-progress.js';
12
12
  export * from './error-card.js';
13
+ export * from './status-badge.js';
14
+ export * from './utils.js';
@@ -0,0 +1,2 @@
1
+ export type BadgeStatus = 'running' | 'done' | 'error' | 'blocked' | 'warn';
2
+ export declare function statusBadge(status: BadgeStatus): string;
@@ -1,2 +1,3 @@
1
1
  export declare function maxInnerBoxWidth(): number;
2
2
  export declare function truncateDisplay(s: string, maxWidth: number): string;
3
+ export declare function formatElapsed(ms: number): string;
@@ -1,6 +1,8 @@
1
1
  import type { SlashCommand } from '../types.js';
2
2
  import type { SubagentManager } from '../../../agent/subagent.js';
3
+ import type { InteractiveCtx } from '../../commands/interactive/shared.js';
3
4
  export declare function setTasksRegistry(manager: SubagentManager, sessionLabel: string): void;
5
+ export declare function setTasksIctx(ictx: InteractiveCtx): void;
4
6
  export declare function resetTasksRegistry(): void;
5
7
  export declare const tasksCmd: SlashCommand;
6
8
  export declare const tasksViewCmd: SlashCommand;