@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
24 lines • 1.32 kB
TypeScript
import type { Accessor } from '../../../../accessor/base.ts';
import type { JsonValue, PathSpec } from '../../../../types.ts';
import type { CommandFnResult, Context } from '../../../config.ts';
import { FlagView } from '../../../spec/flag_view.ts';
import { CLI } from '../../types.ts';
/**
* The options a line gives the mount's search, only those it names. The
* mount answers an absent one with its own default and refuses a value it
* cannot take, before it sends any request; a `--top-k` below 1 is a usage
* error under `prog`, the name the CLI is installed under. Mirrors Python's
* `search_options`.
*/
export declare function searchOptions(fl: FlagView, prog: string): Record<string, JsonValue>;
/**
* Rank the records under every scope for one query and print each hit's
* record: one search through the dispatcher, the scopes after the first
* riding along as `scopes`, which ranks them as one where the mount serving
* them all ranks a batch, and searches each and joins the hits in scope
* order otherwise. A declined query fails rather than reading as no
* matches. Mirrors Python's `search`.
*/
export declare function search(_accessor: Accessor, paths: PathSpec[], texts: string[], ctx: Context): Promise<CommandFnResult>;
export declare const SEARCH: CLI;
//# sourceMappingURL=index.d.ts.map