Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.62 KB

File metadata and controls

63 lines (45 loc) · 1.62 KB

Data API CLI

Query delivery process state directly from annotated source code.

For AI coding agents: Start every session with these three commands:

  1. overview — project health
  2. scope-validate <pattern> <session-type> — catches blockers before you start
  3. context <pattern> --session <type> — curated context bundle

Generated References

This document retains operational reference (JSON envelope, exit codes, piping). For full CLI documentation, see the generated references below.


Output Reference

JSON Envelope

All JSON commands wrap output in a QueryResult envelope:

{
  "success": true,
  "data": { ... },
  "metadata": {
    "timestamp": "2026-02-21T04:31:31.633Z",
    "patternCount": 318
  }
}

On error:

{
  "success": false,
  "error": "Pattern not found: \"Orchestrator\"\nDid you mean: OrchestratorPipelineFactoryMigration?",
  "code": "PATTERN_NOT_FOUND"
}

Exit Codes

Code Meaning
0 Success
1 Error (with message on stderr)

JSON Piping

pnpm outputs a banner line to stdout (> @libar-dev/...). For clean JSON piping, use npx tsx src/cli/process-api.ts directly:

npx tsx src/cli/process-api.ts list --status roadmap --names-only | jq '.data[]'