{
  "name": "turnstile",
  "version": "0.8",
  "description": "Inspect turnstile, the macOS gate that queues builds and tests for memory and per-class slots. Gated commands run through its shims unchanged, so these commands only explain queues, waits, and past runs. Partial community schema covering read-only inspection.",
  "command_layout": "flat",
  "output": { "tty": "text", "piped": "text" },
  "commands": [
    { "name": "status", "description": "Show running and queued jobs, memory level, per-class limits, and recent runs. Reports that the daemon isn't running rather than starting it.", "mutating": false, "args": [{ "name": "--json", "type": "boolean", "description": "Machine-readable status." }, { "name": "--watch", "type": "boolean", "description": "Redraw continuously until interrupted." }], "examples": ["turnstile status --json"], "output_fields": [{ "name": "running", "type": "array" }, { "name": "queued", "type": "array" }, { "name": "recent", "type": "array", "description": "Finished runs with key, project, outcome, exit code, duration, peak memory in bytes, and log path." }, { "name": "memoryLevel", "type": "integer", "description": "Free memory as a percentage." }, { "name": "limits", "type": "object", "description": "Slots per class: compile, test, and browser." }] },
    { "name": "history", "description": "Summarize what each gated command has cost: estimated and worst peak memory, usual duration, outcomes, and how long jobs waited.", "mutating": false, "args": [{ "name": "--days", "type": "integer", "default": 30 }, { "name": "--limit", "type": "integer", "default": 20, "description": "Maximum commands listed." }, { "name": "--here", "type": "boolean", "description": "Only the project containing the working directory." }, { "name": "--json", "type": "boolean" }], "examples": ["turnstile history --here --limit 10 --json"], "output_fields": [{ "name": "commands", "type": "array", "description": "Per command and project: key, runs, estimate, worstPeak, and usualDuration." }, { "name": "waits", "type": "object" }, { "name": "outcomes", "type": "object" }] },
    { "name": "logs", "description": "Print the captured output of a run that had no terminal, such as an agent's. Logs are kept for a day, or a week for failed runs.", "mutating": false, "args": [{ "name": "job", "type": "string", "required": true, "description": "Job number, pid, or name." }, { "name": "-f", "type": "boolean", "description": "Follow the output until the run ends." }], "examples": ["turnstile logs 3628"] },
    { "name": "classify", "description": "Show how a command would be gated: its class and cost key, or pass through.", "mutating": false, "args": [{ "name": "command", "type": "string", "required": true, "description": "The command and its arguments." }], "examples": ["turnstile classify npm run build"], "output_fields": [{ "name": "stdout", "type": "string", "description": "One line, such as compile (npm run build) or pass through." }] }
  ]
}
