import { type ProjectAgentRuntimeDiscovery } from "../agent/project/agent-runtime.js"; import type { DiscoveryResult } from "../discovery/index.js"; import type { RuntimeAdapter } from "../platform/index.js"; import type { FileSystemAdapter } from "../platform/adapters/base.js"; import type { VeryfrontConfig } from "../config/index.js"; import type { RunnableTask } from "./runner.js"; /** Project runtime discovery result used by task lookup and execution helpers. */ export type ProjectTaskRuntimeDiscovery = ProjectAgentRuntimeDiscovery; /** Options for discovering tasks through the unified project runtime. */ export interface ProjectTaskRuntimeOptions { /** Project root used to resolve local discovery paths and configuration. */ projectDir: string; /** Runtime adapter that owns filesystem and environment access. */ adapter: RuntimeAdapter; /** Preloaded project configuration, or `null` to load it from the project. */ config?: VeryfrontConfig | null; /** Optional filesystem override for virtual or hosted project sources. */ fsAdapter?: FileSystemAdapter; /** Source-specific configuration cache key. */ cacheKey?: string; /** Emit verbose discovery diagnostics. */ debug?: boolean; /** Reject the discovery when any colocated project primitive fails to load. */ throwOnErrors?: boolean; /** Explicit host-owned capability for a trusted local or dedicated runtime. */ allowHostProjectCodeExecution?: boolean; } /** Format project-runtime discovery failures for CLI and operator diagnostics. */ export declare function formatProjectRuntimeDiscoveryErrors(errors: DiscoveryResult["errors"]): string[]; /** Discover project tasks and the colocated runtime primitives they may use. */ export declare function discoverProjectTaskRuntime(options: ProjectTaskRuntimeOptions): Promise; /** Find one task by its stable project-runtime ID. */ export declare function findProjectRuntimeTask(discovery: DiscoveryResult, taskId: string): RunnableTask | null; /** List project-runtime tasks in deterministic ID order. */ export declare function listProjectRuntimeTasks(discovery: DiscoveryResult): RunnableTask[]; //# sourceMappingURL=project-runtime.d.ts.map