import * as fs from "node:fs/promises"; import * as os from "node:os"; import * as path from "node:path"; import { openNotebookSession } from "./session"; const scratch = await fs.mkdtemp(path.join(os.tmpdir(), "omp-inline-notebook-")); try { const host = await openNotebookSession(scratch); try { console.log(JSON.stringify({ providerPromptSent: false, tools: host.result.session.getAllToolInfos().filter(tool => tool.name === "inline_notebook"), commands: host.result.session.extensionRunner?.getRegisteredCommands().map(command => command.name), }, null, 2)); } finally { await host.close(); } } finally { await fs.rm(scratch, { recursive: true, force: true }); }