eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
39 lines (38 loc) • 1.71 kB
TypeScript
import { z } from "#compiled/zod/index.js";
import type { DiscoverDiagnostic, DiscoverDiagnosticsSummary } from "#discover/diagnostics.js";
import type { AgentSourceDescriptor } from "#compiler/source-graph.js";
export declare const compilerDiagnosticSeveritySchema: z.ZodEnum<{
error: "error";
warning: "warning";
}>;
export declare const compilerDiagnosticSourceSchema: z.ZodObject<{
logicalPath: z.ZodOptional<z.ZodString>;
nodeId: z.ZodString;
sourceId: z.ZodOptional<z.ZodString>;
sourcePath: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
export type CompilerDiagnosticSource = z.infer<typeof compilerDiagnosticSourceSchema>;
export declare const compilerDiagnosticSchema: z.ZodObject<{
code: z.ZodString;
message: z.ZodString;
severity: z.ZodEnum<{
error: "error";
warning: "warning";
}>;
sources: z.ZodReadonly<z.ZodArray<z.ZodObject<{
logicalPath: z.ZodOptional<z.ZodString>;
nodeId: z.ZodString;
sourceId: z.ZodOptional<z.ZodString>;
sourcePath: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>>;
}, z.core.$strict>;
export type CompilerDiagnostic = z.infer<typeof compilerDiagnosticSchema>;
export declare function projectDiscoverDiagnostic(diagnostic: DiscoverDiagnostic, nodeId: string): CompilerDiagnostic;
export declare function createChannelRouteShadowedDiagnostic(input: {
readonly loser: AgentSourceDescriptor;
readonly method: string;
readonly nodeId: string;
readonly urlPath: string;
readonly winner: AgentSourceDescriptor;
}): CompilerDiagnostic;
export declare function summarizeCompilerDiagnostics(diagnostics: readonly CompilerDiagnostic[]): DiscoverDiagnosticsSummary;