agent-afk 5.91.1 → 5.92.0
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/input/suggest-rank.d.ts +5 -0
- package/dist/cli/input/trigger.d.ts +1 -1
- package/dist/cli/input/types.d.ts +1 -0
- package/dist/cli/terminal-compositor.autocomplete.d.ts +2 -0
- package/dist/cli.mjs +436 -436
- package/dist/index.mjs +1 -1
- package/dist/telegram.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const UNRANKED: number;
|
|
2
|
+
export declare function buildRecencyRanks(history: readonly string[]): Map<string, number>;
|
|
3
|
+
export declare function rankOf(value: string, ranks: ReadonlyMap<string, number>): number;
|
|
4
|
+
export declare function compareByRecency(a: string, b: string, ranks: ReadonlyMap<string, number>): number;
|
|
5
|
+
export declare function sortByRecency(names: readonly string[], history: readonly string[]): string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Candidate, Trigger } from './types.js';
|
|
2
2
|
export declare function detectTrigger(buffer: string, cursorCol: number): Trigger | null;
|
|
3
|
-
export declare function filterSlashCandidates(query: string): Candidate[];
|
|
3
|
+
export declare function filterSlashCandidates(query: string, recentHistory?: readonly string[]): Candidate[];
|
|
4
4
|
export interface FileDirent {
|
|
5
5
|
name: string;
|
|
6
6
|
isDirectory(): boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type InputCoreState } from './input-core.js';
|
|
2
2
|
import type { AutocompleteState } from './input/autocomplete-state.js';
|
|
3
|
+
import type { IHistoryRing } from './input/types.js';
|
|
3
4
|
import type { SuggestContext, SuggestEngine } from './terminal-compositor.types.js';
|
|
4
5
|
export declare const MAX_DROPDOWN_ROWS = 6;
|
|
5
6
|
export interface AutocompleteHost {
|
|
@@ -8,6 +9,7 @@ export interface AutocompleteHost {
|
|
|
8
9
|
activeGhost: string | null;
|
|
9
10
|
readonly ghostEngine: SuggestEngine | undefined;
|
|
10
11
|
readonly ghostGetContext: (() => SuggestContext) | undefined;
|
|
12
|
+
readonly history?: IHistoryRing;
|
|
11
13
|
repaint(): void;
|
|
12
14
|
}
|
|
13
15
|
export declare function updateAutocomplete(self: AutocompleteHost): void;
|