import { z } from 'zod'; /** * Well-known URI schemes used by LensMCP. See `planning/03-mcp-surface.md`. * Each scheme maps 1:1 to a FrontMCP @App package. */ export declare const URI_SCHEMES: readonly ["agent", "events", "build", "lint", "typecheck", "test", "runtime", "render", "visual", "flow", "story", "trace", "graph", "bundle", "security", "perf", "deps", "memory", "browser", "react", "valtio", "nest", "next", "process"]; export type UriScheme = (typeof URI_SCHEMES)[number]; export declare const ResourceEnvelopeSchema: z.ZodObject<{ $schema: z.ZodOptional; schemaVersion: z.ZodLiteral<1>; revision: z.ZodNumber; updatedAt: z.ZodOptional; }, z.core.$strip>; export type ResourceEnvelope = z.infer; export declare const AgentStatusKindSchema: z.ZodEnum<{ warning: "warning"; clean: "clean"; failing: "failing"; starting: "starting"; }>; export type AgentStatusKind = z.infer; export declare const AgentBlockingItemSchema: z.ZodObject<{ source: z.ZodString; severity: z.ZodEnum<{ error: "error"; debug: "debug"; info: "info"; warning: "warning"; fatal: "fatal"; }>; title: z.ZodString; fingerprint: z.ZodString; resource: z.ZodString; pageId: z.ZodOptional; flowId: z.ZodOptional; location: z.ZodOptional; column: z.ZodOptional; symbol: z.ZodOptional; componentName: z.ZodOptional; hookName: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type AgentBlockingItem = z.infer; export declare const AgentChecksSchema: z.ZodObject<{ typecheck: z.ZodOptional>; lint: z.ZodOptional>; build: z.ZodOptional>; runtime: z.ZodOptional>; visual: z.ZodOptional>; memory: z.ZodOptional>; }, z.core.$strip>; /** * How the MCP server answering this read is being served. * * `shared` means ONE server for the workspace, reached by every agent session * through a thin stdio shim — so `sessionId` below is the SHARED lens session * and other sessions are reading the same state. `embedded` means this server * belongs to one agent session and dies with it (and therefore keeps serving the * bundle it started with until that session ends). */ export declare const AgentServerModeSchema: z.ZodEnum<{ embedded: "embedded"; shared: "shared"; }>; export type AgentServerMode = z.infer; export declare const AgentServerInfoSchema: z.ZodObject<{ mode: z.ZodEnum<{ embedded: "embedded"; shared: "shared"; }>; pid: z.ZodNumber; startedAt: z.ZodString; url: z.ZodOptional; }, z.core.$strip>; export type AgentServerInfo = z.infer; export declare const AgentCurrentStatusSchema: z.ZodObject<{ $schema: z.ZodOptional; schemaVersion: z.ZodLiteral<1>; revision: z.ZodNumber; updatedAt: z.ZodOptional; sessionId: z.ZodString; status: z.ZodEnum<{ warning: "warning"; clean: "clean"; failing: "failing"; starting: "starting"; }>; activeTab: z.ZodOptional; tabsWithIssues: z.ZodOptional>; blocking: z.ZodArray; title: z.ZodString; fingerprint: z.ZodString; resource: z.ZodString; pageId: z.ZodOptional; flowId: z.ZodOptional; location: z.ZodOptional; column: z.ZodOptional; symbol: z.ZodOptional; componentName: z.ZodOptional; hookName: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; warnings: z.ZodDefault; title: z.ZodString; fingerprint: z.ZodString; resource: z.ZodString; pageId: z.ZodOptional; flowId: z.ZodOptional; location: z.ZodOptional; column: z.ZodOptional; symbol: z.ZodOptional; componentName: z.ZodOptional; hookName: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; suggestedReads: z.ZodArray; checks: z.ZodOptional>; lint: z.ZodOptional>; build: z.ZodOptional>; runtime: z.ZodOptional>; visual: z.ZodOptional>; memory: z.ZodOptional>; }, z.core.$strip>>; server: z.ZodOptional; pid: z.ZodNumber; startedAt: z.ZodString; url: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type AgentCurrentStatus = z.infer; /** * Hot-tier retention pressure. * * WHY it is on the bootstrap surface: every retention cap used to be a COUNT * cap over payloads of arbitrary size, so the hot tier could hold hundreds of * MB while every counter still read "5 000 events" — the growth was * invisible from the outside (the MCP server was found at 395–720 MB RSS by * looking at the process, not at any lens surface). These are the numbers * that make a bounded tier observable: what is resident in BYTES, what was * evicted to stay inside the budget, and how many producer payloads the * ingest clamp had to shrink. `truncatedEvents` climbing is the signal that * some producer is attaching megabytes per event. */ export declare const AgentStorageStatsSchema: z.ZodObject<{ eventsResident: z.ZodNumber; eventsResidentBytes: z.ZodNumber; eventsIngested: z.ZodNumber; eventsDropped: z.ZodNumber; eventsDroppedForBytes: z.ZodOptional; eventCap: z.ZodOptional; eventByteCap: z.ZodOptional; artifactsResident: z.ZodOptional; artifactsResidentBytes: z.ZodOptional; artifactsDropped: z.ZodOptional; artifactByteCap: z.ZodOptional; truncatedEvents: z.ZodOptional; truncatedBytesReclaimed: z.ZodOptional; rawByteLimit: z.ZodOptional; reducers: z.ZodOptional>>; }, z.core.$strip>; export type AgentStorageStats = z.infer; export declare const AgentSessionSchema: z.ZodObject<{ $schema: z.ZodOptional; schemaVersion: z.ZodLiteral<1>; revision: z.ZodNumber; updatedAt: z.ZodOptional; sessionId: z.ZodString; supportedResources: z.ZodArray; supportedTools: z.ZodArray; supportedJobs: z.ZodArray; supportedChannels: z.ZodArray; subscribedByDefault: z.ZodArray; transports: z.ZodArray>; host: z.ZodObject<{ platform: z.ZodString; node: z.ZodString; }, z.core.$strip>; project: z.ZodObject<{ name: z.ZodString; nxVersion: z.ZodOptional; }, z.core.$strip>; storage: z.ZodOptional; eventCap: z.ZodOptional; eventByteCap: z.ZodOptional; artifactsResident: z.ZodOptional; artifactsResidentBytes: z.ZodOptional; artifactsDropped: z.ZodOptional; artifactByteCap: z.ZodOptional; truncatedEvents: z.ZodOptional; truncatedBytesReclaimed: z.ZodOptional; rawByteLimit: z.ZodOptional; reducers: z.ZodOptional>>; }, z.core.$strip>>; }, z.core.$strip>; export type AgentSession = z.infer; /** * The three "is my code OK?" resources: an envelope + a status + counts + the * {@link ProducerHealthSchema} block. * * The producer block is what makes `status` legible. Without it, * `{"status":"unknown","errorCount":0,"revision":0}` is ambiguous between * "checked, nothing wrong" and "nothing has ever checked" — and for * `typecheck://` and `lint://` it was always the second, because neither had a * producer wired at all. Read `producer` BEFORE trusting `status`. */ declare const CheckEntrySchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodNumber; message: z.ZodString; fingerprint: z.ZodString; code: z.ZodOptional; rule: z.ZodOptional; severity: z.ZodOptional>; file: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; project: z.ZodOptional; }, z.core.$strip>; export type CheckEntry = z.infer; export declare const TypecheckCurrentSchema: z.ZodObject<{ $schema: z.ZodOptional; schemaVersion: z.ZodLiteral<1>; revision: z.ZodNumber; updatedAt: z.ZodOptional; producer: z.ZodEnum<{ none: "none"; connected: "connected"; }>; producers: z.ZodArray; firstReportedAt: z.ZodNumber; lastReportedAt: z.ZodNumber; lastRunStatus: z.ZodEnum<{ error: "error"; running: "running"; clean: "clean"; failing: "failing"; }>; lastRunDurationMs: z.ZodOptional; errorCount: z.ZodNumber; warningCount: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>>; lastReportedAt: z.ZodOptional; ageMs: z.ZodOptional; stale: z.ZodBoolean; detail: z.ZodString; status: z.ZodEnum<{ unknown: "unknown"; clean: "clean"; failing: "failing"; }>; errorCount: z.ZodNumber; lastRunAt: z.ZodOptional; }, z.core.$strip>; export type TypecheckCurrent = z.infer; export declare const TypecheckErrorsSchema: z.ZodObject<{ $schema: z.ZodOptional; schemaVersion: z.ZodLiteral<1>; revision: z.ZodNumber; updatedAt: z.ZodOptional; producer: z.ZodEnum<{ none: "none"; connected: "connected"; }>; producers: z.ZodArray; firstReportedAt: z.ZodNumber; lastReportedAt: z.ZodNumber; lastRunStatus: z.ZodEnum<{ error: "error"; running: "running"; clean: "clean"; failing: "failing"; }>; lastRunDurationMs: z.ZodOptional; errorCount: z.ZodNumber; warningCount: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>>; lastReportedAt: z.ZodOptional; ageMs: z.ZodOptional; stale: z.ZodBoolean; detail: z.ZodString; errors: z.ZodArray; rule: z.ZodOptional; severity: z.ZodOptional>; file: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; project: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type TypecheckErrors = z.infer; export declare const LintCurrentSchema: z.ZodObject<{ $schema: z.ZodOptional; schemaVersion: z.ZodLiteral<1>; revision: z.ZodNumber; updatedAt: z.ZodOptional; producer: z.ZodEnum<{ none: "none"; connected: "connected"; }>; producers: z.ZodArray; firstReportedAt: z.ZodNumber; lastReportedAt: z.ZodNumber; lastRunStatus: z.ZodEnum<{ error: "error"; running: "running"; clean: "clean"; failing: "failing"; }>; lastRunDurationMs: z.ZodOptional; errorCount: z.ZodNumber; warningCount: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>>; lastReportedAt: z.ZodOptional; ageMs: z.ZodOptional; stale: z.ZodBoolean; detail: z.ZodString; status: z.ZodEnum<{ warning: "warning"; unknown: "unknown"; clean: "clean"; failing: "failing"; }>; errorCount: z.ZodNumber; warningCount: z.ZodNumber; lastRunAt: z.ZodOptional; }, z.core.$strip>; export type LintCurrent = z.infer; export declare const BuildCurrentSchema: z.ZodObject<{ $schema: z.ZodOptional; schemaVersion: z.ZodLiteral<1>; revision: z.ZodNumber; updatedAt: z.ZodOptional; producer: z.ZodEnum<{ none: "none"; connected: "connected"; }>; producers: z.ZodArray; firstReportedAt: z.ZodNumber; lastReportedAt: z.ZodNumber; lastRunStatus: z.ZodEnum<{ error: "error"; running: "running"; clean: "clean"; failing: "failing"; }>; lastRunDurationMs: z.ZodOptional; errorCount: z.ZodNumber; warningCount: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>>; lastReportedAt: z.ZodOptional; ageMs: z.ZodOptional; stale: z.ZodBoolean; detail: z.ZodString; status: z.ZodEnum<{ warning: "warning"; unknown: "unknown"; clean: "clean"; failing: "failing"; }>; hmrUpdates: z.ZodNumber; lastRunAt: z.ZodOptional; }, z.core.$strip>; export type BuildCurrent = z.infer; export {};