import type { ExtensionAPI } from "../_shared/pi-api.js"; import { setTextWidget } from "../_shared/pi-api.js"; export default function liveTerminal(pi: ExtensionAPI): void { pi.registerCommand("live", { description: "Show fail-closed live process log status.", handler: async (_args, ctx) => { setTextWidget(ctx, "live", renderLiveStatus()); }, }); } function renderLiveStatus(): string { return [ "live-terminal is disabled in miloc-pi.", "Expected behavior is process stdout/stderr/log tail for LLM-launched commands.", "OMP bash/job/PTY streaming is the source truth for command chunks, background jobs, terminal ids, cancellation, and progress updates.", "This extension does not observe lifecycle hooks until that OMP process-log surface is ported here.", ].join("\n"); }