eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
31 lines (30 loc) • 1.05 kB
TypeScript
import type { DiscoverDiagnostic } from "#discover/diagnostics.js";
import { type AgentSourceManifest } from "#discover/manifest.js";
import { type ProjectSource } from "#discover/project-source.js";
/**
* Input for discovering the authored agent source graph from resolved roots.
*/
interface DiscoverAgentInput {
agentRoot: string;
appRoot: string;
/**
* Optional {@link ProjectSource} used for all filesystem reads. Defaults
* to a disk-backed source so disk callers keep their current behaviour.
* Tests that want to run discovery against an in-memory tree pass a
* memory-backed source.
*/
source?: ProjectSource;
}
/**
* Result of discovering one authored agent source graph.
*/
interface DiscoverAgentResult {
diagnostics: DiscoverDiagnostic[];
manifest: AgentSourceManifest;
}
/**
* Discovers the current agent's authored source graph without importing authored
* modules.
*/
export declare function discoverAgent(input: DiscoverAgentInput): Promise<DiscoverAgentResult>;
export {};