Workspace Intelligence command
workspai workspace graph
Render the current workspace dependency graph in a supported representation.
- Category
- Workspace Intelligence
- Workspace Intelligence
- Yes
- Produced artifacts
- 0
- Related contracts
- 2
- Registration
- contract-declared
- Registered options
- 0
Operational role
This purpose is versioned in the CLI runtime command surface. It is not inferred from page copy or a generic command template.
Canonical invocation
This invocation is derived from the runtime command surface. Commands with a registered intelligence execution include their canonical evidence-producing flags.
npx workspai workspace graph emit --jsonRuntime signature
Arguments, aliases, and options come from the versioned snapshot of the live Commander tree emitted by the CLI. Contract-declared delegated commands intentionally expose only their canonical invocation.
This command is declared by the cross-runtime capability contract and delegated outside the npm Commander tree. Its invocation remains canonical, but runtime-specific flags are documented by the selected project adapter.
Output modes
Output formats are contract-declared. Raw renderer text and structured JSON are separate integration boundaries.
| Selector | Format | Media type |
|---|---|---|
| emit --json | json | application/json |
| explain <project> --json | json | application/json |
| dot | raw-text | text/vnd.graphviz |
| mermaid | raw-text | text/vnd.mermaid |
Contract relationships
Capability contracts govern whether the command exists; artifact contracts govern the structured output it produces.
Produced artifacts
Artifacts are durable machine-readable outputs. Their schema, path, and producer relationship must remain stable across CLI, CI, IDE, MCP, and agent consumers.
No canonical artifact is registered for this command. Its effect may be interactive, delegated, lifecycle-oriented, or represented through workspace state rather than a standalone report.