eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
13 lines (12 loc) • 688 B
TypeScript
import type { Command } from "#compiled/commander/index.js";
import type { ResolvedDiscoveryProject } from "#discover/project.js";
import type { EveProjectContext } from "#internal/project-context.js";
export interface CliApplicationContext {
root: string;
project?: ResolvedDiscoveryProject;
resolve(): Promise<void>;
resolveAgent(): Promise<EveProjectContext>;
}
export type CliApplicationRootRequirement = (command: Command) => boolean;
/** Adds application-root resolution to a project-scoped CLI command. */
export declare function applicationCommand(command: Command, applicationContext: CliApplicationContext, requirement?: CliApplicationRootRequirement): Command;