import { type ArtifactSource } from "./helpers.js"; import { type ValidationResult } from "./schemas.js"; export declare const RUNTIME_TOOL_SPEC_REGISTRY_REL_PATH = "agent-state/runtime-tool-specs.json"; export declare const RUNTIME_TOOL_SPEC_SCHEMA_REL_PATH = "agent-state/MODULES/schemas/RUNTIME_TOOL_SPEC_REGISTRY.schema.json"; export declare const RUNTIME_TOOL_SPEC_SCHEMA_NAME = "runtime-tool-spec-registry@1.0.0"; type JsonSchemaScalar = string | number | boolean | null; export type RuntimeToolSchemaType = "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; export interface RuntimeToolSchema { type: RuntimeToolSchemaType; description?: string; enum?: JsonSchemaScalar[]; properties?: Record; required?: string[]; additionalProperties?: boolean; items?: RuntimeToolSchema; } export interface RuntimeToolExecutorConfig { command: string; cwd?: string; timeout_ms?: number; env?: Record; } export interface RuntimeToolSpec { name: string; description: string; input_schema: RuntimeToolSchema; success_schema?: RuntimeToolSchema; failure_schema?: RuntimeToolSchema; executor: RuntimeToolExecutorConfig; } export interface RuntimeToolSpecRegistry { version: 1; updated_at: string; tools: RuntimeToolSpec[]; } export interface RuntimeToolSpecRegistryResult { ok: boolean; schema: typeof RUNTIME_TOOL_SPEC_SCHEMA_NAME; path: string; source: ArtifactSource; registry?: RuntimeToolSpecRegistry; errors?: string[]; } export interface RuntimeToolExecutionContext { session_id?: string; workspace_path?: string; turn_number?: number; } export interface RuntimeToolExecutionResult { ok: boolean; name: string; summary: string; request_path: string; response_path: string; exit_code?: number | null; duration_ms?: number; output?: unknown; error?: unknown; validation_errors?: string[]; } export declare function validateRuntimeToolRegistryContent(raw: string): ValidationResult; export declare function loadRuntimeToolRegistry(explicitPath?: string): RuntimeToolSpecRegistryResult; export declare function readRuntimeToolRegistry(): RuntimeToolSpecRegistry; export declare function listRuntimeToolSpecs(): RuntimeToolSpec[]; export declare function getRuntimeToolRegistryPath(): string; export declare function executeRuntimeTool(name: string, input: unknown, context?: RuntimeToolExecutionContext): Promise; export {}; //# sourceMappingURL=runtime-tool-specs.d.ts.map