evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Create a lightweight runner that binds plain-text/code files to a live kernel session so engineers can execute snippets without converting files into notebooks.
export interface RunResult {
executionCount: number;
stdout: string;
stderr: string;
}
export interface KernelTextRunnerOptions {
openSession(path: string): Promise<unknown>;
closeSession(path: string): Promise<void>;
sendToKernel(session: unknown, code: string): Promise<RunResult>;
updatePreview(path: string, content: string, history: RunResult[]): void;
appendOutput(path: string, result: RunResult): void;
}
export class KernelTextRunner {
constructor(options: KernelTextRunnerOptions);
attachDocument(path: string, content: string): Promise<void>;
detachDocument(path: string): Promise<void>;
executeSelection(params: { path: string; content: string; selection?: { start: number; end: number }; cursorLine: number }): Promise<RunResult>;
togglePreview(path: string, content: string): void;
getHistory(path: string): RunResult[];
}Provides kernel-backed text editing, session management, and preview surfaces for documents. @satisfied-by