Skip to content

@manifesto-ai/studio-cli ​

Terminal inspection surface for @manifesto-ai/studio-core.

Overview ​

@manifesto-ai/studio-cli compiles or loads a schema, attaches optional overlays, and renders Studio projections in a shell-friendly form.

Use it when you want to inspect one domain from:

  • a local terminal
  • a shell script
  • CI
  • a lightweight debugging workflow without building a custom UI

Install ​

bash
npm install -D @manifesto-ai/studio-cli

Run without installing globally:

bash
npx @manifesto-ai/studio-cli --help

Command Surface ​

CommandPurpose
studio-cli analyzeRun findings analysis
studio-cli checkAlias of findings analysis
studio-cli graphReturn the semantic domain graph
studio-cli explainExplain why an action is blocked
studio-cli traceReturn trace replay analysis
studio-cli availabilityReturn action availability from the current canonical snapshot
studio-cli snapshotInspect a canonical snapshot
studio-cli lineageReturn lineage state
studio-cli governanceReturn governance state
studio-cli transition-graphProject observation records into a transition graph

Common Inputs ​

The CLI can start from:

  • --bundle <file>: analysis bundle JSON
  • --schema <file>: DomainSchema JSON
  • --mel <file>: MEL file compiled at startup
  • --snapshot <file>: canonical snapshot JSON
  • --trace <file>: trace graph JSON
  • --lineage <file>: lineage export JSON
  • --governance <file>: governance export JSON
  • --observations <file> and --preset <file> for transition-graph

Outputs are text or json.

Examples ​

bash
studio-cli analyze path/to/domain.mel
studio-cli graph path/to/domain.mel --format full --output json
studio-cli snapshot path/to/domain.mel --snapshot path/to/canonical-snapshot.json
studio-cli trace path/to/trace.json --schema path/to/schema.json
studio-cli transition-graph --observations path/to/observations.json --preset path/to/projection-preset.json

Important Notes ​

  • Snapshot inspection expects full internal snapshots from runtime.inspect.canonicalSnapshot().
  • transition-graph requires explicit observations and a projection preset unless --bundle already contains both.
  • The CLI is thin by design. It delegates bundle loading to @manifesto-ai/studio-node and analysis to @manifesto-ai/studio-core.

Relationship To Other Packages ​