Command Text Registry (src/command-text.ts)

agent-device · packages/command-registry/src/command-text.ts · typescript · MIT
ai, cli, dev-tools, lang:typescript, tag:registry, tag:help-text

Central registry for command help text and descriptions. Provides consistent messaging for CLI, MCP, and model interfaces.

// Source: https://github.com/callstack/agent-device | License: MIT | Copyright 2026 Callstack
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Every word a command shows a human or a model, in one place.
 *
 * Each field answers a different question, so none can substitute for another and none needs a
 * fallback chain:
 *
 *   summary      what is this command, in a list of ninety?
 *   description  what does it do, and when should I reach for it?
 *   cliDetail    what else does a terminal user need — flags, argument shapes, examples?
 *   mcpDetail    what else does a model need — sequencing, cross-tool hints?
 *
 * `--help`, the command list, the MCP tool description and `explain` are all projections of
 * these four, computed where they are rendered rather than

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key