From caba82fe36fef56b7ab9fc796635eb0fa4bf06da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Fri, 5 Jun 2026 16:45:33 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20bootstrap=20PATH=20fix=20guidance=20?= =?UTF-8?q?=E2=80=94=20find=20binary=20location=20+=20update=20shell=20con?= =?UTF-8?q?fig=20(#118=20#1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/src/commands/prompt.ts | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/cli/src/commands/prompt.ts b/packages/cli/src/commands/prompt.ts index d427e75..a2d323d 100644 --- a/packages/cli/src/commands/prompt.ts +++ b/packages/cli/src/commands/prompt.ts @@ -100,14 +100,6 @@ pnpm add -g @united-workforce/cli npm install -g @united-workforce/cli \`\`\` -Verify the CLI is available: - -\`\`\`bash -uwf --version # should print ${CLI_VERSION} -\`\`\` - -If \`uwf\` is not found, your global bin directory is not in PATH — go back to Step 0 check #3. - Next, install an agent adapter (**must be installed before running \`uwf setup --agent\`**): | Adapter | Install (pnpm / npm) | When to use | @@ -116,13 +108,25 @@ Next, install an agent adapter (**must be installed before running \`uwf setup - | uwf-claude-code | \`pnpm add -g @united-workforce/agent-claude-code\` / \`npm i -g @united-workforce/agent-claude-code\` | When using Claude Code CLI directly | | uwf-builtin | \`pnpm add -g @united-workforce/agent-builtin\` / \`npm i -g @united-workforce/agent-builtin\` | Lightweight built-in agent (no external dependency) | -Verify the adapter is installed: +**After installing, verify that \`uwf\` and the adapter command (e.g. \`uwf-hermes\`) are available in PATH.** Run: \`\`\`bash +uwf --version # should print ${CLI_VERSION} uwf-hermes --version # (or uwf-claude-code / uwf-builtin) \`\`\` -If the command is not found, check your global bin PATH (Step 0 check #3). +If either command is not found, the global bin directory is not in the current shell's PATH. **You must fix this before continuing:** + +1. Find where the binary was installed: + \`\`\`bash + find ~/.local ~/.hermes /usr/local -name uwf -type f 2>/dev/null + npm prefix -g # global prefix — bin is /bin + \`\`\` +2. Add the directory to PATH permanently by appending to the user's shell config (e.g. \`~/.bashrc\`, \`~/.zshrc\`, \`~/.profile\`, or fish config): + \`\`\`bash + export PATH=":$PATH" + \`\`\` +3. Source the updated config or open a new shell, then re-verify the commands work. **uwf-hermes** also requires the Hermes ACP plugin: \`\`\`bash