agent-afk 5.164.1 → 5.165.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.
@@ -15,6 +15,8 @@ export interface DaemonOptions {
15
15
  pullPollIntervalMs?: number;
16
16
  queueDir?: string;
17
17
  writePortFile?: boolean;
18
+ oauthRefresher?: () => Promise<unknown>;
19
+ oauthRefreshIntervalMs?: number;
18
20
  }
19
21
  export interface DaemonHandle {
20
22
  readonly port: number;
@@ -11,5 +11,7 @@ export declare class ReplHistory {
11
11
  forward(): string | null;
12
12
  resetRecall(): void;
13
13
  get inRecall(): boolean;
14
+ removeAt(idx: number): boolean;
15
+ clear(): void;
14
16
  }
15
17
  export declare function loadHistory(): Promise<ReplHistory>;
@@ -8,6 +8,9 @@ export interface IHistoryRing {
8
8
  readonly inRecall: boolean;
9
9
  getEntries?(): readonly string[];
10
10
  push?(text: string): void;
11
+ removeAt?(idx: number): boolean;
12
+ clear?(): void;
13
+ readonly length?: number;
11
14
  }
12
15
  export type Trigger = {
13
16
  kind: 'slash';
@@ -0,0 +1,2 @@
1
+ import type { SlashCommand } from '../types.js';
2
+ export declare const ghostCmd: SlashCommand;
@@ -0,0 +1,2 @@
1
+ import type { SlashCommand } from '../types.js';
2
+ export declare const suggestionsCmd: SlashCommand;
@@ -7,6 +7,7 @@ export interface AutocompleteHost {
7
7
  readonly autocompleteState?: AutocompleteState;
8
8
  input: InputCoreState;
9
9
  activeGhost: string | null;
10
+ ghostPaused: boolean;
10
11
  readonly ghostEngine: SuggestEngine | undefined;
11
12
  readonly ghostGetContext: (() => SuggestContext) | undefined;
12
13
  readonly history?: IHistoryRing;
@@ -84,6 +84,7 @@ export declare class TerminalCompositor {
84
84
  readonly ghostEngine: SuggestEngine | undefined;
85
85
  readonly ghostGetContext: (() => SuggestContext) | undefined;
86
86
  activeGhost: string | null;
87
+ ghostPaused: boolean;
87
88
  debugLog(stage: string, extra?: Record<string, unknown>): void;
88
89
  constructor(opts: TerminalCompositorOptions);
89
90
  isArmed(): boolean;