agent-afk 5.260.0 → 5.261.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/agent/afk-gate-preview.d.ts +4 -0
- package/dist/agent/afk-mode-gate.d.ts +1 -0
- package/dist/agent/types/sdk-types.d.ts +1 -0
- package/dist/cli/commit-mode.d.ts +1 -0
- package/dist/cli/terminal-compositor.commit-geometry.d.ts +1 -0
- package/dist/cli/terminal-compositor.commit-phase1.d.ts +1 -0
- package/dist/cli/terminal-compositor.committed-band-commit.d.ts +1 -0
- package/dist/cli/terminal-compositor.lifecycle.d.ts +2 -0
- package/dist/cli/update-checker.d.ts +1 -0
- package/dist/cli.mjs +280 -277
- package/dist/index.mjs +115 -115
- package/dist/telegram.mjs +137 -135
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import type { HookHandler } from './hooks.js';
|
|
|
2
2
|
import type { PermissionMode } from './types/sdk-types.js';
|
|
3
3
|
import type { ElicitationRequest, ElicitationResult } from './types/sdk-types.js';
|
|
4
4
|
import type { TraceSink } from './trace/index.js';
|
|
5
|
+
export declare const AFK_HARNESS_SERVER_NAME = "agent-afk";
|
|
5
6
|
export interface AfkModeGateOptions {
|
|
6
7
|
approvalTimeoutMs?: number;
|
|
7
8
|
promptForApproval?: boolean;
|
|
@@ -10,5 +10,6 @@ export interface CommitGeometry {
|
|
|
10
10
|
phase1EffectiveFrameTop: number;
|
|
11
11
|
hugSlack: number;
|
|
12
12
|
roomTop: number;
|
|
13
|
+
frameErased: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare function snapshotCommitGeometry(self: CommittedBandHost, contentLineCount: number, rows: number, cols: number): CommitGeometry;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CommittedBandHost } from './terminal-compositor.committed-band-commit.js';
|
|
2
2
|
import type { CommitGeometry } from './terminal-compositor.commit-geometry.js';
|
|
3
3
|
import type { CommitRoute } from './terminal-compositor.commit-route.js';
|
|
4
|
+
export declare function erasedFramePriorBandErase(self: CommittedBandHost, geo: CommitGeometry): string;
|
|
4
5
|
export declare function commitPhase1Teardown(self: CommittedBandHost, geo: CommitGeometry, route: CommitRoute): number;
|
|
@@ -25,6 +25,7 @@ export interface CommittedBandHost {
|
|
|
25
25
|
bandGeometryStale: boolean;
|
|
26
26
|
anchorRow: number | undefined;
|
|
27
27
|
armed: boolean;
|
|
28
|
+
readonly suspended: boolean;
|
|
28
29
|
logUpdate: LogUpdateFn | null;
|
|
29
30
|
readonly scrollRegion?: CompositorScrollRegionGuard;
|
|
30
31
|
readonly stdout: NodeJS.WriteStream;
|
|
@@ -38,6 +38,8 @@ export interface LifecycleHost {
|
|
|
38
38
|
readonly committedBandBottomRow: number;
|
|
39
39
|
readonly committedBandPaintedRows: number;
|
|
40
40
|
bandGeometryStale: boolean;
|
|
41
|
+
lastMeasuredFrameTop: number;
|
|
42
|
+
lastMeasuredFrameBottom: number;
|
|
41
43
|
lifecycleStateDirty: boolean;
|
|
42
44
|
clearCommittedBand(): void;
|
|
43
45
|
}
|
|
@@ -2,6 +2,7 @@ export interface UpdateInfo {
|
|
|
2
2
|
currentVersion: string;
|
|
3
3
|
latestVersion: string;
|
|
4
4
|
}
|
|
5
|
+
export declare function isMajorUpgrade(current: string, latest: string): boolean;
|
|
5
6
|
export declare function checkForUpdates(updatePolicy: 'notify' | 'auto' | 'off'): UpdateInfo | null;
|
|
6
7
|
export declare function hasUpdateCache(): boolean;
|
|
7
8
|
export declare function coldStartUpdateCheck(updatePolicy: 'notify' | 'auto' | 'off'): Promise<UpdateInfo | null>;
|