agent-afk 5.276.15 → 5.276.17
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/agent/daemon/session-spawn.d.ts +1 -0
- package/dist/agent/tools/handlers/glob-readahead.d.ts +3 -2
- package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +0 -2
- package/dist/cli/_lib/stream-renderer-process.d.ts +0 -4
- package/dist/cli/_lib/stream-renderer.d.ts +0 -4
- package/dist/cli/commands/interactive/tool-lane-format.d.ts +1 -1
- package/dist/cli/commands/interactive/tool-lane-outcome-rows.d.ts +16 -0
- package/dist/cli/commands/interactive/tool-lane-render.d.ts +0 -1
- package/dist/cli/render/index.d.ts +0 -1
- package/dist/cli.mjs +306 -307
- package/dist/index.mjs +125 -125
- package/dist/telegram.mjs +145 -145
- package/package.json +1 -1
- package/dist/cli/render/subagent-status-bar.d.ts +0 -9
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -9,7 +9,6 @@ import type { StreamingMarkdownRenderer } from '../markdown-stream.js';
|
|
|
9
9
|
import type { Writer } from '../slash/types.js';
|
|
10
10
|
import type { ProgressEvent } from '../../agent/types.js';
|
|
11
11
|
import { type TtfbTickCtx } from './stream-renderer-ttfb.js';
|
|
12
|
-
import { type SubagentStatusBarSpec } from '../render.js';
|
|
13
12
|
export interface LifecycleContext extends TtfbTickCtx {
|
|
14
13
|
compositor: TerminalCompositor | null;
|
|
15
14
|
overlayComposer: OverlayComposer | null;
|
|
@@ -31,7 +30,6 @@ export declare function registerOverlaySlots(overlayComposer: OverlayComposer, c
|
|
|
31
30
|
childActivity?: ChildActivityTracker;
|
|
32
31
|
getInterrupting: () => boolean;
|
|
33
32
|
getSoftStopping: () => boolean;
|
|
34
|
-
getActiveSubagents?: () => ReadonlyMap<string, SubagentStatusBarSpec>;
|
|
35
33
|
}): void;
|
|
36
34
|
export declare function formatInterruptAffordance(interrupting: boolean): string;
|
|
37
35
|
export declare function subscribeToResize(overlayComposer: OverlayComposer, disposed: boolean): () => void;
|
|
@@ -11,7 +11,6 @@ import type { ChildActivityTracker } from './child-activity-select.js';
|
|
|
11
11
|
import type { InFlightToolTracker } from '../input/work-derived-verb.js';
|
|
12
12
|
import type { OrchestratorCtx } from './stream-renderer-orchestrator.js';
|
|
13
13
|
import type { LoopStage, StageSignals } from '../commands/interactive/loop-stage.js';
|
|
14
|
-
import type { SubagentStatusBarSpec } from '../render.js';
|
|
15
14
|
import { type SourceState } from './stream-renderer-source.js';
|
|
16
15
|
export interface ProcessCtx {
|
|
17
16
|
out: Writer;
|
|
@@ -34,8 +33,5 @@ export interface ProcessCtx {
|
|
|
34
33
|
activeSkillName: string | undefined;
|
|
35
34
|
onStageChange: ((stage: LoopStage, signals?: StageSignals) => void) | undefined;
|
|
36
35
|
buildOrchestratorCtx: () => OrchestratorCtx;
|
|
37
|
-
activeSubagents: Map<string, SubagentStatusBarSpec>;
|
|
38
|
-
subagentStartedAt: Map<string, number>;
|
|
39
|
-
overlayComposerForStatus: OverlayComposer | null;
|
|
40
36
|
}
|
|
41
37
|
export declare function processEvent(ctx: ProcessCtx, event: OutputEvent, meta?: SubagentProgressMeta): void;
|
|
@@ -39,10 +39,6 @@ export declare class StreamRenderer {
|
|
|
39
39
|
private smoke;
|
|
40
40
|
private pauseTickInterval;
|
|
41
41
|
private resizeUnsub;
|
|
42
|
-
private subagentTickInterval;
|
|
43
|
-
private activeSubagents;
|
|
44
|
-
private subagentStartedAt;
|
|
45
|
-
private lastSubagentTotalSec;
|
|
46
42
|
private readonly ttfbStartedAt;
|
|
47
43
|
private ttfbDone;
|
|
48
44
|
private lastTtfbAnnotation;
|
|
@@ -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';
|
|
@@ -5,7 +5,6 @@ export * from './usage-limit-box.js';
|
|
|
5
5
|
export * from './card.js';
|
|
6
6
|
export * from './divider.js';
|
|
7
7
|
export * from './box.js';
|
|
8
|
-
export * from './subagent-status-bar.js';
|
|
9
8
|
export * from './stream-progress.js';
|
|
10
9
|
export * from './error-card.js';
|
|
11
10
|
export * from './status-badge.js';
|