/** * ollama_log_tail — structured tail of the NDJSON observability log (no-LLM). * * Reads the last N lines of ~/.ollama-intern/log.ndjson (override via * INTERN_LOG_PATH), parses each line as JSON, applies optional filters, and * returns a stable array of structured events. Truncated final lines are * skipped silently (the log is append-only and a concurrent writer can * leave a partial line at the tail). * * Missing log file is a soft-empty case: the tool returns 0 events without * an error — there's nothing wrong with "no activity yet." */ import { z } from "zod"; import type { Envelope } from "../envelope.js"; import type { RunContext } from "../runContext.js"; export declare const logTailSchema: z.ZodObject<{ limit: z.ZodOptional; filter_kind: z.ZodOptional; filter_tool: z.ZodOptional; since: z.ZodOptional; }, z.core.$strip>; export type LogTailInput = z.infer; export interface LogTailResult { events: Array>; total_returned: number; log_path: string; log_present: boolean; } export declare function handleLogTail(input: LogTailInput, ctx: RunContext): Promise>; //# sourceMappingURL=logTail.d.ts.map