agent-afk 5.296.5 → 5.296.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.
- package/dist/agent/dag.d.ts +4 -0
- package/dist/agent/facets/schema.d.ts +5 -1
- package/dist/agent/journal/types.d.ts +1 -0
- package/dist/agent/tools/compose-executor.partial.d.ts +5 -0
- package/dist/agent/tools/detach-registry.d.ts +2 -0
- package/dist/agent/types/message-types.d.ts +2 -0
- package/dist/cli/_lib/testing/virtual-screen.csi.d.ts +25 -0
- package/dist/cli/_lib/testing/virtual-screen.d.ts +0 -7
- package/dist/cli/commands/interactive/tool-lane.d.ts +0 -1
- package/dist/cli/commands/interactive/tool-lane.flush.d.ts +8 -0
- package/dist/cli/elicitation/agent-question.d.ts +2 -1
- package/dist/cli/elicitation/agent-question.fallback.d.ts +11 -0
- package/dist/cli/slash/types.d.ts +1 -0
- package/dist/cli/terminal-compositor.input-dispatch.cursor.d.ts +3 -0
- package/dist/cli/terminal-compositor.input-dispatch.enter.d.ts +8 -0
- package/dist/cli.mjs +328 -328
- package/dist/index.mjs +134 -134
- package/dist/telegram.mjs +159 -159
- package/package.json +1 -1
package/dist/agent/dag.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export interface DAGRunResult {
|
|
|
23
23
|
error: Error;
|
|
24
24
|
}>;
|
|
25
25
|
skipped: string[];
|
|
26
|
+
partial: Array<{
|
|
27
|
+
id: string;
|
|
28
|
+
stopReason: string;
|
|
29
|
+
}>;
|
|
26
30
|
}
|
|
27
31
|
export declare function validateDAG(graph: DAGGraph): void;
|
|
28
32
|
export declare function runDAG(graph: DAGGraph, signal: AbortSignal, options?: DAGRunOptions): Promise<DAGRunResult>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const FACET_VERSION =
|
|
2
|
+
export declare const FACET_VERSION = 8;
|
|
3
3
|
export declare const ToolEventInputSchema: z.ZodObject<{
|
|
4
4
|
toolName: z.ZodString;
|
|
5
5
|
toolUseId: z.ZodOptional<z.ZodString>;
|
|
@@ -7,6 +7,7 @@ export declare const ToolEventInputSchema: z.ZodObject<{
|
|
|
7
7
|
inputRaw: z.ZodOptional<z.ZodString>;
|
|
8
8
|
result: z.ZodOptional<z.ZodString>;
|
|
9
9
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
10
11
|
}, z.core.$loose>;
|
|
11
12
|
export declare const TurnInputSchema: z.ZodObject<{
|
|
12
13
|
user: z.ZodDefault<z.ZodString>;
|
|
@@ -19,6 +20,7 @@ export declare const TurnInputSchema: z.ZodObject<{
|
|
|
19
20
|
inputRaw: z.ZodOptional<z.ZodString>;
|
|
20
21
|
result: z.ZodOptional<z.ZodString>;
|
|
21
22
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
22
24
|
}, z.core.$loose>>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
26
|
export declare const StoredSessionInputSchema: z.ZodObject<{
|
|
@@ -57,6 +59,7 @@ export declare const StoredSessionInputSchema: z.ZodObject<{
|
|
|
57
59
|
inputRaw: z.ZodOptional<z.ZodString>;
|
|
58
60
|
result: z.ZodOptional<z.ZodString>;
|
|
59
61
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
60
63
|
}, z.core.$loose>>>;
|
|
61
64
|
}, z.core.$loose>>>;
|
|
62
65
|
forkedFrom: z.ZodOptional<z.ZodString>;
|
|
@@ -168,6 +171,7 @@ export declare const SessionFacetSchema: z.ZodObject<{
|
|
|
168
171
|
tool_error_categories: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
169
172
|
friction_counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
170
173
|
friction_detail: z.ZodString;
|
|
174
|
+
compose_partial_nodes: z.ZodOptional<z.ZodNumber>;
|
|
171
175
|
outcome: z.ZodEnum<{
|
|
172
176
|
unknown: "unknown";
|
|
173
177
|
aborted: "aborted";
|
|
@@ -6,6 +6,8 @@ export interface DetachedToolResult {
|
|
|
6
6
|
readonly output: string;
|
|
7
7
|
readonly exitCode?: number;
|
|
8
8
|
readonly durationMs: number;
|
|
9
|
+
readonly incomplete?: boolean;
|
|
10
|
+
readonly incompleteReason?: string;
|
|
9
11
|
}
|
|
10
12
|
export interface DetachToken {
|
|
11
13
|
readonly toolUseId: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface CsiHost {
|
|
2
|
+
readonly cols: number;
|
|
3
|
+
readonly rows: number;
|
|
4
|
+
readonly grid: string[][];
|
|
5
|
+
cursorRow: number;
|
|
6
|
+
cursorCol: number;
|
|
7
|
+
pendingWrap: boolean;
|
|
8
|
+
scrollTop: number;
|
|
9
|
+
scrollBottom: number;
|
|
10
|
+
cursorHidden: boolean;
|
|
11
|
+
readonly oscSequences: string[];
|
|
12
|
+
scrollback: string[];
|
|
13
|
+
clampRow(r: number): number;
|
|
14
|
+
clampCol(c: number): number;
|
|
15
|
+
lineAt(row: number): string;
|
|
16
|
+
scrollRegionUp(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare function normalizeCsiParams(raw: number[]): number[];
|
|
19
|
+
export declare function eraseCursorToEndOfLine(host: CsiHost): void;
|
|
20
|
+
export declare function eraseStartOfLineToCursor(host: CsiHost): void;
|
|
21
|
+
export declare function eraseEntireLine(host: CsiHost): void;
|
|
22
|
+
export declare function eraseCursorToEndOfScreen(host: CsiHost): void;
|
|
23
|
+
export declare function eraseStartOfScreenToCursor(host: CsiHost): void;
|
|
24
|
+
export declare function eraseEntireScreen(host: CsiHost): void;
|
|
25
|
+
export declare function dispatchCsi(host: CsiHost, final: number, rawParams: number[], privatePrefix: boolean): void;
|
|
@@ -26,18 +26,11 @@ export declare class VirtualScreen {
|
|
|
26
26
|
private processEscByte;
|
|
27
27
|
private processCsiByte;
|
|
28
28
|
private dispatchCsi;
|
|
29
|
-
private normalizeCsiParams;
|
|
30
29
|
private processOscByte;
|
|
31
30
|
private processUtf8Byte;
|
|
32
31
|
private putChar;
|
|
33
32
|
private lineFeed;
|
|
34
33
|
private scrollRegionUp;
|
|
35
|
-
private eraseCursorToEndOfLine;
|
|
36
|
-
private eraseStartOfLineToCursor;
|
|
37
|
-
private eraseEntireLine;
|
|
38
|
-
private eraseCursorToEndOfScreen;
|
|
39
|
-
private eraseStartOfScreenToCursor;
|
|
40
|
-
private eraseEntireScreen;
|
|
41
34
|
visibleLines(): string[];
|
|
42
35
|
lineAt(row: number): string;
|
|
43
36
|
scrollbackLines(): string[];
|
|
@@ -39,7 +39,6 @@ export declare class ToolLane {
|
|
|
39
39
|
findLastSkillEntryId(): string | undefined;
|
|
40
40
|
peekTrailingCompletedRootToolName(): string | undefined;
|
|
41
41
|
getOverlay(): string;
|
|
42
|
-
private ancestorDepthOf;
|
|
43
42
|
flushSource(parentId: string, homeDir?: string): string[];
|
|
44
43
|
flushCompletedRoots(homeDir?: string): string[];
|
|
45
44
|
flush(homeDir?: string): string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Entry } from './tool-lane-render.js';
|
|
2
|
+
export interface ToolLaneFlushHost {
|
|
3
|
+
readonly entries: Map<string, Entry>;
|
|
4
|
+
order: string[];
|
|
5
|
+
readonly compactScrollback: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function flushSource(host: ToolLaneFlushHost, parentId: string, homeDir?: string): string[];
|
|
8
|
+
export declare function flushCompletedRoots(host: ToolLaneFlushHost, homeDir?: string): string[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ElicitationRequest, ElicitationResult } from '../../agent/types/sdk-types.js';
|
|
2
2
|
import type { ReplElicitationDeps } from './repl-shared.js';
|
|
3
|
-
|
|
3
|
+
import { SKIP } from './agent-question.fallback.js';
|
|
4
|
+
export { SKIP };
|
|
4
5
|
export declare function renderAgentQuestion(request: ElicitationRequest, deps: ReplElicitationDeps, signal: AbortSignal): Promise<ElicitationResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ElicitationRequest, ElicitationResult } from '../../agent/types/sdk-types.js';
|
|
2
|
+
import type { ReplElicitationDeps } from './repl-shared.js';
|
|
3
|
+
export declare const SKIP: ElicitationResult;
|
|
4
|
+
type Writer = ReplElicitationDeps['writer'];
|
|
5
|
+
type ReadLine = ReplElicitationDeps['readLine'];
|
|
6
|
+
export declare function renderConfirmFallback(request: ElicitationRequest, readLine: ReadLine, writer: Writer, signal: AbortSignal): Promise<ElicitationResult>;
|
|
7
|
+
export declare function renderChoiceFallback(request: ElicitationRequest, readLine: ReadLine, writer: Writer, signal: AbortSignal): Promise<ElicitationResult>;
|
|
8
|
+
export declare function renderMultiChoiceFallback(request: ElicitationRequest, readLine: ReadLine, writer: Writer, signal: AbortSignal): Promise<ElicitationResult>;
|
|
9
|
+
export declare function renderNumberFallback(request: ElicitationRequest, readLine: ReadLine, writer: Writer, signal: AbortSignal): Promise<ElicitationResult>;
|
|
10
|
+
export declare function renderTextFallback(request: ElicitationRequest, readLine: ReadLine, writer: Writer, signal: AbortSignal): Promise<ElicitationResult>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputCore } from './input-core.js';
|
|
2
|
+
import type { KeyInfo, SubmissionPayload } from './terminal-compositor.types.js';
|
|
3
|
+
import type { KeyDispatchHost } from './terminal-compositor.input-dispatch.js';
|
|
4
|
+
export declare function mergeSubmissionPayloads(payloads: readonly SubmissionPayload[]): SubmissionPayload;
|
|
5
|
+
export declare function commitIfChanged(self: KeyDispatchHost, next: ReturnType<typeof InputCore.seed>): true;
|
|
6
|
+
export declare function applyAtomicPlaceholderDelete(self: KeyDispatchHost, direction: 'backward' | 'forward'): boolean;
|
|
7
|
+
export declare function handleBackspace(self: KeyDispatchHost, key: KeyInfo): boolean;
|
|
8
|
+
export declare function handleEnter(self: KeyDispatchHost, key: KeyInfo, sequence: string): boolean;
|