import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; import { copyAllTranscript } from "./copyAll.js"; export default function copyAllExtension(pi: ExtensionAPI) { const description = "Copy current thread user and assistant messages to clipboard"; pi.registerCommand("copy-all", { description, handler: async (_args, ctx) => { await copyAllTranscript(ctx); }, }); pi.registerShortcut("ctrl+alt+a", { description, handler: async (ctx) => { await copyAllTranscript(ctx); }, }); }