fix(pi-local): pass --skill flag for paperclip skills and enable pi_local in adapter dropdown

- Add --skill ~/.pi/agent/skills to pi CLI invocation so it loads the paperclip skill
- Enable pi_local in the AgentConfigForm adapter type dropdown (was showing as coming soon)
This commit is contained in:
Richard Anaya
2026-03-18 20:34:08 -07:00
parent 1ac85d837a
commit f37e0aa7b3
2 changed files with 5 additions and 1 deletions

View File

@@ -336,6 +336,10 @@ export async function execute(ctx: AdapterExecutionContext): Promise<AdapterExec
args.push("--tools", "read,bash,edit,write,grep,find,ls");
args.push("--session", sessionFile);
// Add Paperclip skills directory so Pi can load the paperclip skill
const piSkillsHome = path.join(os.homedir(), ".pi", "agent", "skills");
args.push("--skill", piSkillsHome);
if (extraArgs.length > 0) args.push(...extraArgs);
return args;

View File

@@ -939,7 +939,7 @@ function AdapterEnvironmentResult({ result }: { result: AdapterEnvironmentTestRe
/* ---- Internal sub-components ---- */
const ENABLED_ADAPTER_TYPES = new Set(["claude_local", "codex_local", "gemini_local", "opencode_local", "cursor"]);
const ENABLED_ADAPTER_TYPES = new Set(["claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor"]);
/** Display list includes all real adapter types plus UI-only coming-soon entries. */
const ADAPTER_DISPLAY_LIST: { value: string; label: string; comingSoon: boolean }[] = [