Skip to content

docs(deploy): document on-demand CLI lookup and AGENTFLOW_RUNTIME_CLI_DIR - #1463

Open
wcy12378 wants to merge 1 commit into
Tencent:mainfrom
wcy12378:codex/deepseek-cli-install-docs
Open

wcy12378 wants to merge 1 commit into
Tencent:mainfrom
wcy12378:codex/deepseek-cli-install-docs

Conversation

@wcy12378

Copy link
Copy Markdown

docs(deploy): document on-demand CLI lookup and AGENTFLOW_RUNTIME_CLI_DIR

This is the documentation-only slice of #988. The issue's two code concerns were already fixed on current main: the CLI install entry point (/api/assistant/cli-install plus the web action) exists, and resolveAssistantEngineBin already falls back to AGENTFLOW_RUNTIME_CLI_DIR on-demand installs. What remained was that the deployment guide never mentioned any of it — AGENTFLOW_RUNTIME_CLI_DIR had zero hits under docs/, so an operator checking only PATH could still conclude a correctly installed CLI was missing.

Change

One paragraph in docs/deployment.md (Native development) documenting:

  • the five-step conversation-CLI lookup order (engine-specific override → managed inventory → PATH → global/~/.local/bin → on-demand AGENTFLOW_RUNTIME_CLI_DIR);
  • the requirement that the runtime CLI dir resolve to the same absolute path on the host and Docker daemon (sandboxes bind-mount it);
  • the <dir>/<engine>/current/node_modules/.bin/<binary> layout (Claude Code uses its pinned version directory);
  • the explicit @deepseek-ai/dsh@0.2.2-rc.1 pin (not a floating latest);
  • that AGENTFLOW_MANAGED_CLI_ROOT (daily updater with rollback) and AGENTFLOW_RUNTIME_CLI_DIR (first-use on-demand installs) are separate, non-substitute directories.

No behavior change, no code touched. Findings from a DeepSeek read-only install audit.

Scope / notes

Related

Part of #988; does not close the issue.

…_DIR

The installation entry point and binary detection for on-demand CLIs were
already implemented, but the deployment guide never mentioned
AGENTFLOW_RUNTIME_CLI_DIR: lookup order, directory layout, the pinned dsh
version, or how it differs from AGENTFLOW_MANAGED_CLI_ROOT. As a result a
correctly installed on-demand CLI still looked 'not installed' to operators
who only checked PATH (Tencent#988).

Document the five-step conversation CLI lookup, the shared absolute path
requirement for sandboxes, the <dir>/<engine>/current/node_modules/.bin layout,
the explicit @deepseek-ai/dsh@0.2.2-rc.1 pin, and the distinction from the
daily-updater managed root. Documentation only; no behavior change.

Part of Tencent#988. Follow-up from the DeepSeek install audit.

@Robert0622 Robert0622 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review & Deploy Test: PASS ✅

Docs-only change. Adds paragraph to docs/deployment.md documenting the CLI lookup order, AGENTFLOW_RUNTIME_CLI_DIR, and the dsh version pin. The lookup order and version pin match the code.

Minor note (non-blocking):

  • P3: Stated install layout differs slightly for Cursor and installer-based CLIs; worth a follow-up clarification.

loopforge-pr-review:4b0371745dc9480e1f4b3e2adfcd4d28f0fe6cb7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants