seam-cli-0.5.10 is not a library.
seam-cli
SeamJS command-line tool for building HTML skeleton templates, generating typed TypeScript clients from procedure manifests, and orchestrating dev servers.
Crate Structure
The CLI is split into three crates:
seam-skeleton(src/cli/skeleton/) — HTML skeleton extraction pipeline (slot, extract, document, CTR check)seam-codegen(src/cli/codegen/) — TypeScript codegen, manifest types, RPC hash mapseam-cli(src/cli/core/) — Build orchestration, dev servers, CLI entry point (this crate)
Modules
src/main.rs— CLI entry point (clap), dispatches subcommandssrc/config/— Parsesseam.toml, walks up directory tree to find configsrc/pull.rs— Fetches/_seam/manifest.jsonfrom a running serversrc/build/— Build pipeline orchestration (route processing, asset packaging)src/dev/— Starts backend + frontend dev serverssrc/ui.rs— Terminal output formatting
Commands
| Command | Description |
|---|---|
seam pull |
Fetch procedure manifest from a running server |
seam generate |
Generate typed client from a manifest file |
seam build |
Extract HTML skeletons, run full build pipeline with per-page splitting |
seam dev |
Start backend and frontend dev servers |
seam clean |
Remove build artifacts (.seam/ directory) |
seam --version |
Print CLI version |
Development
- Build:
cargo build -p seam-cli - Test:
cargo test -p seam-cli - Run:
cargo run -p seam-cli -- <command>
Notes
- The crate name is
seam-cli, but the binary name isseam - Config file lookup walks up the directory tree until it finds
seam.toml - Skeleton logic lives in
seam-skeleton, codegen inseam-codegen