@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
37 lines • 2.3 kB
TypeScript
import { TrelloAccessor } from '../../accessor/trello.ts';
import { TrelloConfig } from '../../core/trello/config.ts';
import type { FileStat, PathSpec } from '../../types.ts';
import { type DirListing } from '../../types.ts';
import { BaseVFS } from '../base.ts';
import type { RedactedSchema } from '../secrets.ts';
import type { ConfigState, Handed } from '../types.ts';
export declare const VFS_MD = "```text\n{prefix}\n workspaces/\n <workspace-name>__<workspace-id>/\n workspace.json\n boards/\n <board-name>__<board-id>/\n board.json\n members/\n <full-name>__<member-id>.json\n labels/\n <label-name>__<label-id>.json\n lists/\n <list-name>__<list-id>/\n list.json\n cards/\n <card-name>__<card-id>/\n card.json\n comments.jsonl\n```\n\n- `ls` directories first to discover exact names.\n- To act on boards and cards (list boards, members, lists, labels, cards\n and comments; create, update, move, assign, label and comment on\n cards), use the `trello` CLI if installed (`trello --help`).";
export declare class TrelloVFS extends BaseVFS {
readonly handed: {
readonly readdir: readonly ["entry"];
readonly read: readonly ["parent"];
readonly stat: readonly ["entry"];
};
readonly name: string;
readonly cachesReads: boolean;
vfsMd: string;
readonly wholeWordSearch: boolean;
readonly config: TrelloConfig;
readonly accessor: TrelloAccessor;
readonly searchable: readonly string[];
constructor(config: TrelloConfig);
/**
* Whether this VFS answers `name`; with no walk limit it reads every
* file rather than ask the service's search.
*/
supports(name: string): boolean;
filesContaining(path: PathSpec, text: string, opts: {
wholeWord: boolean;
ignoreCase: boolean;
}): Promise<PathSpec[] | null>;
readdir(path: PathSpec, handed?: Handed): Promise<FileStat[] | DirListing>;
read(path: PathSpec, handed?: Handed): Promise<Uint8Array>;
stat(path: PathSpec, handed?: Handed): Promise<FileStat>;
getState(): Promise<ConfigState<RedactedSchema<typeof TrelloConfig>>>;
}
//# sourceMappingURL=trello.d.ts.map