agent-afk 5.237.0 → 5.237.1
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/cli/terminal-compositor.api.d.ts +50 -0
- package/dist/cli.mjs +244 -244
- package/dist/index.mjs +109 -109
- package/dist/telegram.mjs +127 -127
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { InputCoreState } from './input-core.js';
|
|
2
|
+
import type { ImageAttachment } from './input/attachments.js';
|
|
3
|
+
import type { SubmissionPayload, CompositorInputMode, PickerController } from './terminal-compositor.types.js';
|
|
4
|
+
import type { InputModeHost } from './terminal-compositor.input-mode.js';
|
|
5
|
+
import type { QueuedSnapshot } from './terminal-compositor.queued-access.js';
|
|
6
|
+
import type { RenderHost } from './terminal-compositor.render.js';
|
|
7
|
+
import type { AutocompleteHost } from './terminal-compositor.autocomplete.js';
|
|
8
|
+
import type { KeyDispatchHost } from './terminal-compositor.input-dispatch.js';
|
|
9
|
+
export type ApiHost = InputModeHost & RenderHost & AutocompleteHost & KeyDispatchHost & {
|
|
10
|
+
onSubmit?: (payload: SubmissionPayload) => void;
|
|
11
|
+
onCancel?: () => void;
|
|
12
|
+
onRewindRequest?: () => void;
|
|
13
|
+
onIdleEscape?: () => void;
|
|
14
|
+
onOpenEditor?: () => void;
|
|
15
|
+
flushPendingRepaint(): void;
|
|
16
|
+
};
|
|
17
|
+
export declare function setOnSubmit(self: ApiHost, handler: ((payload: SubmissionPayload) => void) | null): void;
|
|
18
|
+
export declare function setOnCancel(self: ApiHost, handler: (() => void) | null): void;
|
|
19
|
+
export declare function getOnCancel(self: ApiHost): (() => void) | undefined;
|
|
20
|
+
export declare function setOnRewindRequest(self: ApiHost, handler: (() => void) | null): void;
|
|
21
|
+
export declare function setOnIdleEscape(self: ApiHost, handler: (() => void) | null): void;
|
|
22
|
+
export declare function setOnOpenEditor(self: ApiHost, handler: (() => void) | null): void;
|
|
23
|
+
export declare function enterPickerMode(self: ApiHost, controller: PickerController): void;
|
|
24
|
+
export declare function exitPickerMode(self: ApiHost): void;
|
|
25
|
+
export declare function repaintPicker(self: ApiHost): void;
|
|
26
|
+
export declare function terminalRows(self: ApiHost): number;
|
|
27
|
+
export declare function setInputMode(self: ApiHost, mode: CompositorInputMode): void;
|
|
28
|
+
export declare function getInputMode(self: ApiHost): CompositorInputMode;
|
|
29
|
+
export declare function getBuffer(self: ApiHost): {
|
|
30
|
+
text: string;
|
|
31
|
+
queued: boolean;
|
|
32
|
+
};
|
|
33
|
+
export declare function getPendingCount(self: ApiHost): number;
|
|
34
|
+
export declare function peekQueuedText(self: ApiHost): QueuedSnapshot | undefined;
|
|
35
|
+
export declare function reserveQueued(self: ApiHost, snapshot: QueuedSnapshot): void;
|
|
36
|
+
export declare function releaseQueued(self: ApiHost, snapshot: QueuedSnapshot): void;
|
|
37
|
+
export declare function dropQueued(self: ApiHost, snapshot: QueuedSnapshot): number;
|
|
38
|
+
export declare function getAttachments(self: ApiHost): ImageAttachment[];
|
|
39
|
+
export declare function renderInputLine(self: ApiHost): string;
|
|
40
|
+
export declare function updateAutocomplete(self: ApiHost): void;
|
|
41
|
+
export declare function updateGhost(self: ApiHost): void;
|
|
42
|
+
export declare function primePromptGhost(self: ApiHost): void;
|
|
43
|
+
export declare function dismissPromptGhost(self: ApiHost): boolean;
|
|
44
|
+
export declare function renderDropdownRows(self: ApiHost): string[];
|
|
45
|
+
export declare function renderHintRow(self: ApiHost): string | null;
|
|
46
|
+
export declare function applyEdit(self: ApiHost, next: InputCoreState): boolean;
|
|
47
|
+
export declare function prefillInput(self: ApiHost, text: string): void;
|
|
48
|
+
export declare function applyDropdownSelection(self: ApiHost): boolean;
|
|
49
|
+
export declare function applyGhostAccept(self: ApiHost): boolean;
|
|
50
|
+
export declare function applyGhostWordAccept(self: ApiHost): boolean;
|