Skip to content

fix: show 'ai-toolkit <command>' in agent help (branding) - #3

Merged
MarceloAdan73 merged 1 commit into
mainfrom
fix/cli-branding-usage
Aug 1, 2026
Merged

MarceloAdan73 merged 1 commit into
mainfrom
fix/cli-branding-usage

Conversation

@MarceloAdan73

Copy link
Copy Markdown
Owner

Problema

\�i-toolkit doc --help\ mostraba \Usage: agent-doc-generator\ (nombre interno del paquete) en vez de \Usage: ai-toolkit doc. Mismo issue en los 5 subcomandos.

Fix

  • \ oolkit: pasa la env var \AI_TOOLKIT_CMD\ (\�i-toolkit ) al agente spawneado.
  • Agentes: usan \process.env.AI_TOOLKIT_CMD ?? ''\ como nombre de commander. Asi la invocacion directa (
    ode .../dist/index.js --help) mantiene su nombre real.

Verificacion

  • typecheck OK (6 workspaces)
  • 626 tests pasando
  • build OK
  • Smoke test: los 5 subcomandos muestran \Usage: ai-toolkit ; invocacion directa muestra nombre interno.

The CLI spawns agents via process.execPath, so each agent's --help showed
the internal package name (e.g. 'Usage: agent-doc-generator') instead of
the public command name ('Usage: ai-toolkit doc').

- toolkit: pass AI_TOOLKIT_CMD env var to the spawned agent
- agents: use process.env.AI_TOOLKIT_CMD ?? '<internal-name>' as commander
  program name, so direct invocation keeps its real name

Verified: typecheck OK (6 workspaces), 626 tests passing, build OK,
smoke test: all 5 subcommands show 'Usage: ai-toolkit <cmd>'.
@MarceloAdan73
MarceloAdan73 merged commit ad84957 into main Aug 1, 2026
17 checks passed
@MarceloAdan73
MarceloAdan73 deleted the fix/cli-branding-usage branch August 1, 2026 21:07
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.

1 participant