@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
22 lines • 1.29 kB
TypeScript
import type { TrelloAccessor } from '../../accessor/trello.ts';
import type { PathSpec } from '../../types.ts';
export declare const SEARCH_LIMIT = 1000;
export declare const RECORD_KEYS: ReadonlySet<string>;
export declare const WALKED: ReadonlySet<string>;
/**
* The `card.json` files under `under` whose card Trello's search names, or
* whose other fields hold `text`.
*
* Trello searches a card's name and description by word, so each word is
* asked on its own, and a card is read when each word is either named there
* or held by the text the listing kept (`unsearchedText`): the rest of its
* JSON (ids, due date, flags, link), and the words of those two the search
* may split otherwise. The walk lists each directory from Trello, so the kept
* text is checked against the cards as they are now. The text goes through
* `recordQueries` for its key names and escapes. Null when the text cannot be
* searched, a scope lies inside a card, a search answers a full page or fails,
* or nothing is found, since Trello indexes a write some time after it lands.
* Mirrors Python's `files_containing`.
*/
export declare function filesContaining(accessor: TrelloAccessor, text: string, under: readonly PathSpec[]): Promise<PathSpec[] | null>;
//# sourceMappingURL=search.d.ts.map