feat: add /ego-mgr slash command and rename pcexec to pc-exec

Changes:
1. Add /ego-mgr slash command with subcommands:
   - get, set, list, delete, add-column, add-public-column, show
   - Uses pcExec to call ego-mgr binary with proper env vars

2. Rename pcexec → pc-exec throughout codebase:
   - Tool name: pcexec → pc-exec
   - Function exports: pcexec → pcExec, pcexecSync → pcExecSync
   - Updated all references in skills and plugin files

3. Translate all Chinese text to English:
   - ego-mgr-slash.ts responses
   - slash-commands.ts responses
   - SKILL.md files remain in English
This commit is contained in:
zhi
2026-03-24 10:21:35 +00:00
parent 7fd2819a04
commit a3a1081f22
7 changed files with 283 additions and 45 deletions

View File

@@ -201,9 +201,9 @@ async function replaceSecretMgrGets(
}
/**
* Safe exec wrapper that handles pass_mgr get commands and sanitizes output.
* Safe exec wrapper that handles secret-mgr get commands and sanitizes output.
*/
export async function pcexec(
export async function pcExec(
command: string,
options: PcExecOptions = {},
): Promise<PcExecResult> {
@@ -297,9 +297,9 @@ export async function pcexec(
/**
* Synchronous version — password substitution is NOT supported here
* (use async pcexec for pass_mgr integration).
* (use async pcExec for secret-mgr integration).
*/
export function pcexecSync(
export function pcExecSync(
command: string,
options: PcExecOptions = {},
): PcExecResult {
@@ -336,4 +336,4 @@ export function pcexecSync(
}
}
export default pcexec;
export default pcExec;