agent-afk 5.123.6 → 5.123.7

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.
@@ -0,0 +1,41 @@
1
+ import type { Writer } from '../slash/types.js';
2
+ import type { TerminalCompositor } from '../terminal-compositor.js';
3
+ import type { OverlayComposer } from './overlay-composer.js';
4
+ import type { ToolLane } from '../commands/interactive/tool-lane.js';
5
+ import type { CommitCoordinator } from './commit-coordinator.js';
6
+ import type { StreamingMarkdownRenderer } from '../markdown-stream.js';
7
+ export interface DisposeCtx {
8
+ out: Writer;
9
+ isTTY: boolean;
10
+ ownsCompositor: boolean;
11
+ compositorRef: {
12
+ current: TerminalCompositor | null;
13
+ };
14
+ overlayComposerRef: {
15
+ current: OverlayComposer | null;
16
+ };
17
+ toolLane: ToolLane;
18
+ streamingMarkdownRef: {
19
+ current: StreamingMarkdownRenderer | null;
20
+ };
21
+ subagentMarkdown: Map<string, StreamingMarkdownRenderer>;
22
+ lastProgressByTask: Map<string, ProgressEvent>;
23
+ coordinator: CommitCoordinator;
24
+ resizeUnsubRef: {
25
+ current: (() => void) | null;
26
+ };
27
+ pauseTickIntervalRef: {
28
+ current: ReturnType<typeof setInterval> | null;
29
+ };
30
+ softStoppingRef: {
31
+ current: boolean;
32
+ };
33
+ priorOnCancelRef: {
34
+ current: (() => void) | undefined;
35
+ };
36
+ borrowedCompositorRef: {
37
+ current: TerminalCompositor | null;
38
+ };
39
+ }
40
+ import type { ProgressEvent } from '../../agent/types.js';
41
+ export declare function disposeRenderer(ctx: DisposeCtx): Promise<void>;
@@ -0,0 +1,24 @@
1
+ import type { Writer } from '../slash/types.js';
2
+ import type { IHistoryRing } from '../input/types.js';
3
+ import type { AutocompleteState } from '../input/autocomplete-state.js';
4
+ import type { TerminalCompositor } from '../terminal-compositor.js';
5
+ export interface StreamRendererOptions {
6
+ out: Writer;
7
+ thinkingMode?: 'off' | 'summary' | 'live' | 'digest';
8
+ verbose?: boolean;
9
+ onCancel?: () => void;
10
+ onBackground?: () => void;
11
+ forceNonTty?: boolean;
12
+ activeSkillName?: string;
13
+ history?: IHistoryRing;
14
+ autocompleteState?: AutocompleteState;
15
+ promptText?: string;
16
+ scrollRegion?: {
17
+ withFullScrollRegion<T>(fn: () => T): T;
18
+ getExtraRows(): number;
19
+ };
20
+ captureMode?: boolean;
21
+ reducedMotion?: boolean;
22
+ compositor?: TerminalCompositor;
23
+ onStageChange?: (stage: import('../commands/interactive/loop-stage.js').LoopStage, signals?: import('../commands/interactive/loop-stage.js').StageSignals) => void;
24
+ }
@@ -0,0 +1,37 @@
1
+ import type { OutputEvent, SubagentProgressMeta, ProgressEvent } from '../../agent/types.js';
2
+ import type { Writer } from '../slash/types.js';
3
+ import type { TerminalCompositor } from '../terminal-compositor.js';
4
+ import type { OverlayComposer } from './overlay-composer.js';
5
+ import type { ToolLane } from '../commands/interactive/tool-lane.js';
6
+ import type { ThinkingLane } from '../commands/interactive/thinking-lane.js';
7
+ import type { StreamingMarkdownRenderer } from '../markdown-stream.js';
8
+ import type { StageTrackerState } from '../commands/interactive/loop-stage.js';
9
+ import type { CommitCoordinator } from './commit-coordinator.js';
10
+ import type { ChildActivityTracker } from './child-activity-select.js';
11
+ import type { InFlightToolTracker } from '../input/work-derived-verb.js';
12
+ import type { OrchestratorCtx } from './stream-renderer-orchestrator.js';
13
+ import type { LoopStage, StageSignals } from '../commands/interactive/loop-stage.js';
14
+ import { type SourceState } from './stream-renderer-source.js';
15
+ export interface ProcessCtx {
16
+ out: Writer;
17
+ isTTY: boolean;
18
+ compositor: TerminalCompositor | null;
19
+ overlayComposer: OverlayComposer | null;
20
+ toolLane: ToolLane;
21
+ thinkingLane: ThinkingLane;
22
+ streamingMarkdownRef: {
23
+ current: StreamingMarkdownRenderer | null;
24
+ };
25
+ stageTracker: StageTrackerState;
26
+ coordinator: CommitCoordinator;
27
+ childActivity: ChildActivityTracker;
28
+ inFlightTools: InFlightToolTracker;
29
+ sources: Map<string, SourceState>;
30
+ subagentMarkdown: Map<string, StreamingMarkdownRenderer>;
31
+ lastProgressByTask: Map<string, ProgressEvent>;
32
+ thinkingMode: 'off' | 'summary' | 'live' | 'digest';
33
+ activeSkillName: string | undefined;
34
+ onStageChange: ((stage: LoopStage, signals?: StageSignals) => void) | undefined;
35
+ buildOrchestratorCtx: () => OrchestratorCtx;
36
+ }
37
+ export declare function processEvent(ctx: ProcessCtx, event: OutputEvent, meta?: SubagentProgressMeta): void;
@@ -1,29 +1,8 @@
1
1
  import type { OutputEvent, SubagentProgressMeta } from '../../agent/types.js';
2
2
  import type { Message } from '../../agent/types/message-types.js';
3
- import type { Writer } from '../slash/types.js';
4
3
  import { TerminalCompositor } from '../terminal-compositor.js';
5
- import type { IHistoryRing } from '../input/types.js';
6
- import type { AutocompleteState } from '../input/autocomplete-state.js';
7
- export interface StreamRendererOptions {
8
- out: Writer;
9
- thinkingMode?: 'off' | 'summary' | 'live' | 'digest';
10
- verbose?: boolean;
11
- onCancel?: () => void;
12
- onBackground?: () => void;
13
- forceNonTty?: boolean;
14
- activeSkillName?: string;
15
- history?: IHistoryRing;
16
- autocompleteState?: AutocompleteState;
17
- promptText?: string;
18
- scrollRegion?: {
19
- withFullScrollRegion<T>(fn: () => T): T;
20
- getExtraRows(): number;
21
- };
22
- captureMode?: boolean;
23
- reducedMotion?: boolean;
24
- compositor?: TerminalCompositor;
25
- onStageChange?: (stage: import('../commands/interactive/loop-stage.js').LoopStage, signals?: import('../commands/interactive/loop-stage.js').StageSignals) => void;
26
- }
4
+ export type { StreamRendererOptions } from './stream-renderer-options.js';
5
+ import type { StreamRendererOptions } from './stream-renderer-options.js';
27
6
  export declare class StreamRenderer {
28
7
  private readonly out;
29
8
  private readonly thinkingMode;