openpod

An opencode plugin that spins up a dedicated virtual machine for each session to isolate agent work.
git clone https://unitehenry.com/git/openpod.git
Log | Files | Refs | README

commit 8a4ac0e14cae4cfa2b620ce5c4128c1de156a295
parent 387358788ee1505712f9b4b801e084027fca91f5
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sat, 24 Oct 2026 23:36:34 +0000

refactor(command): extract description to COMMAND_DESCRIPTION constant

- Add COMMAND_DESCRIPTION constant alongside COMMAND_NAME
- Use it for the command description in editor.add()
- Keeps registration declarative and easier to maintain

Diffstat:
Mcommand/index.ts | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/command/index.ts b/command/index.ts @@ -6,6 +6,9 @@ import { clear } from "./clear"; const COMMAND_NAME = "clear-openpod"; +const COMMAND_DESCRIPTION = + "Stop and delete all openpod Lima instances and remove the entire ~/.local/share/openpod directory"; + export async function registerCommand( ctx: Plugin.Context, deps: OpenpodContext, @@ -16,8 +19,7 @@ export async function registerCommand( await ctx.command.transform((editor) => { editor.add({ name: COMMAND_NAME, - description: - "Stop and delete all openpod Lima instances and remove the entire ~/.local/share/openpod directory", + description: COMMAND_DESCRIPTION, execute: async ({ sessionID }) => { await clear(deps); await ctx.session.remove({ sessionID });