import type { AgentTool } from "@ch1nyzzz/pi-agent-core"; import { type ExtensionFactory, type SessionStartEvent } from "@ch1nyzzz/pi-coding-agent"; import type { EvoCapabilityName } from "../components/capabilities/protocol.ts"; import type { EvoCapabilityService } from "../components/capabilities/service.ts"; import type { CompiledBundle } from "../types.ts"; import { type ManagedRuntimeResources } from "./managed-sources.ts"; export { createEvoFeatureHandler, guardEvoFeature, isEvoFeatureEnabled } from "./feature-gate.ts"; /** * Tool names offered to spawned child agents when the embedder does not supply * its own trusted tool set. Grant previews default their spawn-agent allowlist * to this same list so imported packs work against the default host. The two * research tools give retrieval-heavy workflows (deep-research) allowlisted * public search/fetch without credentials. */ export declare const DEFAULT_SPAWN_AGENT_TOOL_NAMES: readonly string[]; export type RuntimeBundleSectionPlacement = "stable" | "regular" | "memory" | "dynamic"; export interface RuntimeBundleSection { path: string; content: string; placement: RuntimeBundleSectionPlacement; } export interface RuntimeBundle { bundle: CompiledBundle; systemPromptAppend: string; sections: readonly RuntimeBundleSection[]; managedResources: ManagedRuntimeResources; skillDirectory?: string; enabledTools?: string[]; } export declare function renderRuntimeBundlePrompt(runtime: RuntimeBundle, excludedPaths?: ReadonlySet): string; export declare function resolveSessionBundleDigest(entries: readonly unknown[], sessionId: string, reason: SessionStartEvent["reason"]): string | undefined; export declare function renderRuntimeBundle(bundle: CompiledBundle): Promise; export declare function replaceRuntimeBundlePrompt(systemPrompt: string, replacement: string): string; export interface EvoPolicyRuntimeOptions { root?: string; componentSandbox?: boolean; /** Trusted, pre-constructed tools available to isolated spawned agents. */ spawnAgentTools?: readonly AgentTool[]; /** Fixed prompt for isolated spawned agents. */ spawnAgentSystemPrompt?: string; /** Hard provider-turn limit for one isolated spawned-agent run. */ spawnAgentMaxTurns?: number; /** * Trusted host adapters supplied by the embedding extension. Built-in * workspace file, infer, spawn-agent, and component-memory services are * merged around these adapters; memory adapters cannot be replaced. */ capabilityServices?: Partial>; } export declare function createPolicyRuntimeExtension(options?: EvoPolicyRuntimeOptions): ExtensionFactory; //# sourceMappingURL=runtime.d.ts.map