agent-afk 5.293.1 → 5.294.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.
- package/dist/agent/facets/derive.pr-detect.d.ts +3 -0
- package/dist/agent/facets/schema.d.ts +2 -0
- package/dist/agent/providers/openai-compatible/responses-translate.d.ts +6 -0
- package/dist/agent/tools/handlers/wait-for.limits.d.ts +2 -0
- package/dist/cli/_lib/stream-renderer-process.d.ts +1 -0
- package/dist/cli/_lib/stream-renderer.d.ts +1 -0
- package/dist/cli/input/spinner.d.ts +2 -0
- package/dist/cli/input/work-derived-verb.d.ts +8 -0
- package/dist/cli/terminal-compositor.d.ts +2 -0
- package/dist/cli/terminal-compositor.scrollback.d.ts +1 -1
- package/dist/cli.mjs +319 -318
- package/dist/config/env.d.ts +1 -1
- package/dist/config/env.ui.d.ts +1 -1
- package/dist/index.mjs +133 -132
- package/dist/telegram.mjs +155 -154
- package/package.json +1 -1
|
@@ -122,6 +122,7 @@ export declare const SubagentToolSummarySchema: z.ZodObject<{
|
|
|
122
122
|
tool_calls: z.ZodNumber;
|
|
123
123
|
tool_errors: z.ZodNumber;
|
|
124
124
|
tool_counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
125
|
+
detected_pr_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
126
|
}, z.core.$strip>;
|
|
126
127
|
export type SubagentToolSummary = z.infer<typeof SubagentToolSummarySchema>;
|
|
127
128
|
export declare const SessionFacetSchema: z.ZodObject<{
|
|
@@ -214,6 +215,7 @@ export declare const SessionFacetSchema: z.ZodObject<{
|
|
|
214
215
|
tool_calls: z.ZodNumber;
|
|
215
216
|
tool_errors: z.ZodNumber;
|
|
216
217
|
tool_counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
218
|
+
detected_pr_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
219
|
}, z.core.$strip>>>;
|
|
218
220
|
}, z.core.$loose>;
|
|
219
221
|
export type SessionFacet = z.infer<typeof SessionFacetSchema>;
|
|
@@ -27,6 +27,12 @@ export interface ResponsesStreamEvent {
|
|
|
27
27
|
incomplete_details?: {
|
|
28
28
|
reason?: string;
|
|
29
29
|
};
|
|
30
|
+
error?: {
|
|
31
|
+
code?: string;
|
|
32
|
+
message?: string;
|
|
33
|
+
} | null;
|
|
30
34
|
};
|
|
35
|
+
code?: string | null;
|
|
36
|
+
message?: string;
|
|
31
37
|
}
|
|
32
38
|
export declare function translateResponsesEvent(event: ResponsesStreamEvent, state: StreamState, sessionId: string): Generator<ProviderEvent>;
|
|
@@ -26,6 +26,7 @@ export interface ProcessCtx {
|
|
|
26
26
|
coordinator: CommitCoordinator;
|
|
27
27
|
childActivity: ChildActivityTracker;
|
|
28
28
|
inFlightTools: InFlightToolTracker;
|
|
29
|
+
rootTools: InFlightToolTracker;
|
|
29
30
|
sources: Map<string, SourceState>;
|
|
30
31
|
subagentMarkdown: Map<string, StreamingMarkdownRenderer>;
|
|
31
32
|
lastProgressByTask: Map<string, ProgressEvent>;
|
|
@@ -3,6 +3,7 @@ export interface SpinnerControllerOptions {
|
|
|
3
3
|
onTick: () => void;
|
|
4
4
|
goblin?: boolean;
|
|
5
5
|
workVerb?: () => string | undefined;
|
|
6
|
+
contextTip?: () => string | undefined;
|
|
6
7
|
}
|
|
7
8
|
export declare class SpinnerController {
|
|
8
9
|
private state;
|
|
@@ -11,6 +12,7 @@ export declare class SpinnerController {
|
|
|
11
12
|
private readonly onTick;
|
|
12
13
|
private readonly goblin;
|
|
13
14
|
private readonly workVerb;
|
|
15
|
+
private readonly contextTip;
|
|
14
16
|
constructor(opts: SpinnerControllerOptions);
|
|
15
17
|
private pickVerb;
|
|
16
18
|
set(config: {
|
|
@@ -3,11 +3,18 @@ export declare class InFlightToolTracker {
|
|
|
3
3
|
private readonly inFlight;
|
|
4
4
|
start(toolUseId: string, toolName: string): void;
|
|
5
5
|
finish(toolUseId: string): void;
|
|
6
|
+
has(toolName: string): boolean;
|
|
6
7
|
current(): string | undefined;
|
|
7
8
|
reset(): void;
|
|
8
9
|
}
|
|
10
|
+
export declare const WAIT_HINT_TOOL = "wait_for";
|
|
11
|
+
export declare function waitHintText(state: {
|
|
12
|
+
waiting: boolean;
|
|
13
|
+
queued: boolean;
|
|
14
|
+
}): string | undefined;
|
|
9
15
|
export interface ActiveToolNameSink {
|
|
10
16
|
setActiveToolName?(toolName: string | undefined): void;
|
|
17
|
+
setRootWaitActive?(active: boolean): void;
|
|
11
18
|
}
|
|
12
19
|
interface MaybeToolEvent {
|
|
13
20
|
type: string;
|
|
@@ -18,4 +25,5 @@ interface MaybeToolEvent {
|
|
|
18
25
|
};
|
|
19
26
|
}
|
|
20
27
|
export declare function noteToolEvent(event: MaybeToolEvent, tracker: InFlightToolTracker, sink: ActiveToolNameSink | null | undefined): boolean;
|
|
28
|
+
export declare function noteRootWaitEvent(event: MaybeToolEvent, tracker: InFlightToolTracker, sink: ActiveToolNameSink | null | undefined): boolean;
|
|
21
29
|
export {};
|
|
@@ -66,6 +66,7 @@ export declare class TerminalCompositor {
|
|
|
66
66
|
disarmRows: number;
|
|
67
67
|
readonly spinnerController: SpinnerController;
|
|
68
68
|
private activeToolName;
|
|
69
|
+
private rootWaitActive;
|
|
69
70
|
readonly caretBlinkController: CaretBlinkController;
|
|
70
71
|
repaintCount: number;
|
|
71
72
|
pendingTrailingRepaint: boolean;
|
|
@@ -128,6 +129,7 @@ export declare class TerminalCompositor {
|
|
|
128
129
|
rotateVerbEveryMs?: number;
|
|
129
130
|
}): void;
|
|
130
131
|
setActiveToolName(toolName: string | undefined): void;
|
|
132
|
+
setRootWaitActive(active: boolean): void;
|
|
131
133
|
commitAbove(text: string): void;
|
|
132
134
|
clearCommittedBand(): void;
|
|
133
135
|
forgetCommittedBand(): void;
|
|
@@ -8,4 +8,4 @@ export declare function buildBandMeta(logicalLines: readonly string[], width: nu
|
|
|
8
8
|
export declare function scrollbackFlushLines(rows: readonly string[], meta: readonly BandRowMeta[] | undefined, count: number): string[];
|
|
9
9
|
export declare function snapFlushCountToLogicalBoundary(meta: readonly BandRowMeta[] | undefined, count: number, total: number): number;
|
|
10
10
|
export declare function buildScrollbackArchiveEscape(lines: readonly string[], anchorFloor: number, bottomRow: number, width: number): string;
|
|
11
|
-
export declare function formatTipRow(text: string, cols: number): string;
|
|
11
|
+
export declare function formatTipRow(text: string, cols: number, label?: string): string;
|