@flopod/cli
v0.3.1
Published
The Flopod host package. Despite the `cli` name, it ships three things on top of one shared core:
Readme
@flopod/cli
The Flopod host package. Despite the cli name, it ships three things on top of one shared core:
- Core (library) —
src/flopod.tsexportsopenFlopod()→ aFlopodHandle(compile,run,resume,cancel,signal,observe, …). This is the reusable operations layer:compile()runs in-process via@flopod/compiler; anything that executes a workflow spawns it as a child process (the "spawn model"). It has no argv parsing and no HTTP — pure operations. - CLI —
src/commands/*parse argv and call into the handle (flopod run,flopod compile, …). - Web server —
src/commands/edit.tswires the HTTP API and servesUI_HTMLfrom@flopod/ui, launched viaflopod dev/serve.
Dependency direction is one-way: commands/* → flopod.ts → @flopod/compiler,
@flopod/runtime. The CLI and web server are thin consumers; the core never
imports them. If the deployed control plane ever needs the HTTP routes without
the CLI's dev-only deps, flopod.ts is the seam to pull out into @flopod/core.
