/** * /dcp help * * Adapted from @davecodes/pi-dcp@0.2.0 (AGPL-3.0-or-later). */ import type { ExtensionCommandContext } from "@earendil-works/pi-coding-agent"; const HELP = [ "pi-dcp commands:", " /dcp — this help", " /dcp context — current session token usage + DCP savings", " /dcp stats — cumulative DCP savings across all sessions", " /dcp sweep [n] — manually compress last n tool results (default: all since last user msg)", " /dcp manual [on|off|status|toggle] — control manual mode (runtime only — edit config.json to persist)", " /dcp decompress — temporarily restore a stored compression", " /dcp recompress — re-apply a previously decompressed entry", "", "Config: ~/.pi-dcp/config.json", "Prompts: ~/.pi-dcp/prompts/{defaults,overrides}/", "Logs: ~/.pi-dcp/dcp.log (when debug:true)", ].join("\n"); export async function handle_help( _args: string, ctx: ExtensionCommandContext, ): Promise { if (ctx.hasUI) ctx.ui.notify(HELP, "info"); }