/** Declarative help for the `assistant ps` command. */ import type { CliCommandHelp } from "../lib/cli-command-help.js"; export const psHelp: CliCommandHelp = { name: "ps", description: "Show the assistant daemon's live process tree", options: [ { flags: "--json", description: "Machine-readable JSON output", }, ], helpText: ` Walks the daemon's OS process tree and reports every descendant process parented to the assistant runtime — qdrant, the embed worker, the memory worker (when the daemon owns it), MCP servers, and any other live children. The tree is built from the native process table (/proc on Linux, ps on macOS), so it reflects what is actually running, not a fixed subsystem list. Each node shows its origin — 'workspace' for the daemon and its subsystems, or 'plugin:' for a process spawned from a plugin (e.g. 'plugin:default-memory', 'plugin:cognee') — plus its PID. Every listed process is live by definition. Examples: $ assistant ps $ assistant ps --json`, };