@weftai/cli
v0.4.0
Published
CLI for Weftai: run, validate, describe, trace, mcp, init.
Readme
@weftai/cli
Run a Weftai domain against saved plans with no model in the loop.
weftai run <plan.json> --domain <file> [--fixture <file>] [--trace out.json] [--format text|json]
weftai validate <plan.json> --domain <file>
weftai describe --domain <file> [--json]
weftai trace <trace.json>
weftai mcp --domain <file> [--fixture <file>] [--name <name>]
weftai init [dir]A domain file default-exports { registry, createContext(fixturePath?) }. TypeScript domain
files load through jiti.
runexecutes a plan and prints the model-facing text (or--format json), optionally writing a trace. Exit code 1 when any step failed.validatereports plan issues without running handlers.describeprints the model-facing operation list, or the union plan schema with--json.traceprints a table of steps, status, counts, timings and notices from a trace file.mcpserves the domain over MCP stdio, ready forclaude mcp add.initscaffolds a domain package with one collection, one operation, the standard operations, a fixture and a test.
