package cli // Help is also the public command inventory for agents and parity checks. var usage = map[string]string{ "new": "new [name] [prompt] [--template KEY] [--no-open | --json]", "edit": "edit [name|id] [prompt] [--version N] [--no-open | --json]", "drafts": "drafts [--json]", "validate": "validate [--json]", "submit": "submit [--name NAME] [--create-only] [--json]", "list": "list [--json]", "show": "show [--version N] [--json]", "versions": "versions [--json]", "export": "export [--version N]", "templates": "templates [--json]", "template": "template [--source | --json]", "run": "run [name|id] [prompt] [--yes] [--json [--wait]]", "runs": "runs [--pipeline NAME] [--json]", "inspect": "inspect [--json]", "cancel": "cancel [--json]", "connection": "connection [--json]", "ping": "ping [--json]", "rpc": "rpc ", "tui": "tui", } var notes = map[string]string{ "new": "Create an optional template copy or a one-stage starter. Opens OpenCode with the pipeline skill already loaded. No submission is performed.", "edit": "Omit the name to open fuzzy selection. Original immutable source is copied to a private draft. OpenCode edits that draft, never the live definition.", "validate": "Uses the same server parser as submission. Does not persist or activate schedules. Structural validity does not prove runtime/tool availability.", "submit": "This command is explicit approval to publish; schedules activate on acceptance. Managed drafts provide the name and base-version guard. --force never bypasses validation.", "run": "Interactive: Enter adds a prompt line, Ctrl+S continues, then type RUN to start. JSON: supply a name/prompt and --yes. Tool approval is separate; cancellation does not undo edits.", "rpc": "Accepts a JSON protocol envelope; '-' reads stdin. Every TUI server operation is available here too. Mutating commands are not dry runs.", } var serviceHelp = map[string]string{ "service": "Configure per-user OS autostart: pipelines service enable --workspace-root DIR. Use --print to preview, service status to inspect, and service disable before uninstalling. Linux uses systemd; macOS uses launchd. No sudo.", "serve": "Run the native server in the foreground. Its flags are documented by pipelines serve --help. Installation never starts it automatically.", "start": "Start the per-user native pipeline server and this installation's Docker ntfy together.", "stop": "Stop both services. Active execution is interrupted; file changes are not rolled back.", "restart": "Stop, then start both services, retaining definitions, run history, and credentials.", "status": "Show pipeline/ntfy health and the public phone connection (no credentials).", "doctor": "Check both health endpoints and host OpenCode API discovery; does not execute a model.", "logs": "Follow the native server log. Press Ctrl+C to stop following.", "uninstall": "Remove verified Go binaries from this command's bin directory; retain data and drafts. --yes skips confirmation. Existing managed installations can be selected explicitly with PIPELINES_PREFIX.", }