agent-afk 5.327.0 → 5.327.2

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,3 @@
1
+ import type { CronScheduler } from './daemon/scheduler.js';
2
+ import type { ScheduledTask } from './daemon/triggers.js';
3
+ export declare function registerTasksWithQuarantine(scheduler: CronScheduler, tasks: ScheduledTask[]): void;
@@ -15,10 +15,12 @@ export interface RealChromeProbeOptions {
15
15
  platform?: NodeJS.Platform;
16
16
  home?: string;
17
17
  localAppData?: string;
18
+ chromeConfigHome?: string;
19
+ xdgConfigHome?: string;
18
20
  terminalBundleId?: string;
19
21
  touchFile?: (file: string) => void;
20
22
  }
21
23
  export declare function chromeAppName(channel: RealChromeChannel): string;
22
- export declare function resolveChromeUserDataDir(channel: RealChromeChannel, platform: NodeJS.Platform, home: string, localAppData: string | undefined): string | null;
24
+ export declare function resolveChromeUserDataDir(channel: RealChromeChannel, platform: NodeJS.Platform, home: string, localAppData: string | undefined, chromeConfigHome?: string | undefined, xdgConfigHome?: string | undefined): string | null;
23
25
  export declare function probeRealChrome(opts?: RealChromeProbeOptions): RealChromeProbeResult;
24
26
  export declare function channelFromArgs(args: readonly string[] | undefined): RealChromeChannel;
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerAcpCommand(program: Command): void;
@@ -0,0 +1,12 @@
1
+ import type { Readable, Writable } from 'node:stream';
2
+ import type { AgentModelInput } from '../../agent/types.js';
3
+ export type { JsonRpcRequest, JsonRpcResponse } from './acp.server.protocol.js';
4
+ export { writeJson, successResponse, errorResponse } from './acp.server.protocol.js';
5
+ export interface AcpServerOptions {
6
+ model: AgentModelInput;
7
+ maxTurns: number;
8
+ input: Readable;
9
+ output: Writable;
10
+ dangerouslySkipPermissions?: boolean;
11
+ }
12
+ export declare function runAcpServer(options: AcpServerOptions): Promise<void>;
@@ -0,0 +1,48 @@
1
+ import type { Writable } from 'node:stream';
2
+ export interface JsonRpcRequest {
3
+ jsonrpc: '2.0';
4
+ id: string | number | null;
5
+ method: string;
6
+ params?: unknown;
7
+ }
8
+ export interface JsonRpcSuccess {
9
+ jsonrpc: '2.0';
10
+ id: string | number | null;
11
+ result: unknown;
12
+ }
13
+ export interface JsonRpcError {
14
+ jsonrpc: '2.0';
15
+ id: string | number | null;
16
+ error: {
17
+ code: number;
18
+ message: string;
19
+ data?: unknown;
20
+ };
21
+ }
22
+ export type JsonRpcResponse = JsonRpcSuccess | JsonRpcError;
23
+ export interface JsonRpcNotification {
24
+ jsonrpc: '2.0';
25
+ method: string;
26
+ params?: unknown;
27
+ }
28
+ export declare const PARSE_ERROR = -32700;
29
+ export declare const INVALID_REQUEST = -32600;
30
+ export declare const METHOD_NOT_FOUND = -32601;
31
+ export declare const INVALID_PARAMS = -32602;
32
+ export declare const INTERNAL_ERROR = -32603;
33
+ export type AcpUpdateType = 'text_delta' | 'tool_start' | 'tool_end' | 'rate_limit' | 'done' | 'error';
34
+ export interface AcpUpdate {
35
+ type: AcpUpdateType;
36
+ delta?: string;
37
+ toolName?: string;
38
+ retryAfterMs?: number;
39
+ sessionId?: string;
40
+ costUsd?: number;
41
+ error?: string;
42
+ }
43
+ export declare const MAX_LINE_BYTES = 1048576;
44
+ export declare function writeJson(output: Writable, obj: unknown): Promise<void>;
45
+ export declare function successResponse(id: string | number | null, result: unknown): JsonRpcSuccess;
46
+ export declare function errorResponse(id: string | number | null, code: number, message: string, data?: unknown): JsonRpcError;
47
+ export declare function notificationFrame(method: string, params: unknown): JsonRpcNotification;
48
+ export declare function normalizePrompt(raw: unknown): string | null;
@@ -0,0 +1,17 @@
1
+ import { AgentSession } from '../../agent/session.js';
2
+ import { MemoryStore } from '../../agent/memory/index.js';
3
+ import { StateStore } from '../../agent/state/state-store.js';
4
+ import type { AgentModelInput } from '../../agent/types.js';
5
+ export interface AcpSessionOptions {
6
+ model: AgentModelInput;
7
+ maxTurns: number;
8
+ dangerouslySkipPermissions?: boolean;
9
+ cwd?: string;
10
+ }
11
+ export interface AcpSessionHandle {
12
+ session: AgentSession;
13
+ memoryStore: MemoryStore;
14
+ stateStore: StateStore;
15
+ }
16
+ export declare function buildAcpSession(opts: AcpSessionOptions): Promise<AcpSessionHandle>;
17
+ export declare function closeAcpSession(handle: AcpSessionHandle): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { SlashCommand } from '../types.js';
2
+ export declare const exportCmd: SlashCommand;
@@ -0,0 +1,3 @@
1
+ import type { SessionStats } from '../types.js';
2
+ export declare function escapeHtml(raw: string): string;
3
+ export declare function renderSessionHtml(stats: SessionStats): string;
@@ -0,0 +1,2 @@
1
+ import type { SessionStats } from '../types.js';
2
+ export declare function renderSessionMarkdown(stats: SessionStats): string;
@@ -65,6 +65,7 @@ export declare class TerminalCompositor {
65
65
  resizeUnsub: (() => void) | null;
66
66
  resizeImmediateUnsub: (() => void) | null;
67
67
  disarmRows: number;
68
+ disarmCols: number;
68
69
  readonly spinnerController: SpinnerController;
69
70
  private activeToolName;
70
71
  private rootWaitActive;
@@ -22,6 +22,7 @@ export interface LifecycleHost {
22
22
  resizeUnsub: (() => void) | null;
23
23
  resizeImmediateUnsub: (() => void) | null;
24
24
  disarmRows: number;
25
+ disarmCols: number;
25
26
  logUpdate: LogUpdateFn | null;
26
27
  readonly scrollRegion?: CompositorScrollRegionGuard;
27
28
  anchorRow: number | undefined;