Releases: wevm/incur
Releases · wevm/incur
incur@0.2.0
Minor Changes
-
00b0b2d: Added Fetch API integration — mount any HTTP server as a CLI command.
- Fetch gateway:
.command('api', { fetch: app.fetch })translates argv into HTTP requests using curl-style flags (-X,-d,-H,--key valuequery params) - Streaming: NDJSON responses (
application/x-ndjson) are streamed incrementally - OpenAPI support:
.command('api', { fetch, openapi: spec })generates typed subcommands with args, options, and descriptions from an OpenAPI 3.x spec - Works with any framework exposing a Web Fetch API handler (Hono, Elysia, etc.)
- Fetch gateway:
incur@0.1.17
Patch Changes
- b73feaf: Added
aliasesoption toCli.createfor registering alternative binary names. Shell completions and help output include all aliases.
incur@0.1.16
Patch Changes
- e3aa038: Added dynamic shell completions for bash, zsh, fish, and nushell. CLIs get a built-in
completions <shell>command that outputs a hook script. The hook calls back into the binary at every tab press, so completions stay in sync with commands automatically. Supports subcommands,--options, short aliases, enum values, and space suppression for command groups. - 06580f0: Added short-alias stacking (e.g.
-abcparsed as-a -b -c). The last flag in a stack can consume a value; all preceding flags must be boolean.
incur@0.1.15
Patch Changes
- 5122c9b: Fixed help formatter using
process.envinstead of env source override for "set:" display
incur@0.1.14
Patch Changes
- 3f7ca73: Added leading
#to CTA command descriptions for easier copy-paste. - 3f7ca73: Moved environment variables section to bottom of help output.
- 3f7ca73: Fixed invalid subcommand in a group falling through to root handler instead of returning
COMMAND_NOT_FOUND. Added CTA with copyable help command toCOMMAND_NOT_FOUNDerrors. - 50282a8: Added redacted current value indicator for environment variables in help output.
- 79fbabd: Fixed streaming handler ignoring CLI-level and command-level default
format. Previously,handleStreamingused onlyformatExplicitto decide between incremental and buffered mode, causing CLI defaults like{ format: 'json' }to be ignored in favor of hardcoded'toon'.
incur@0.1.13
Patch Changes
- aa32795: Added
versionto the command run context (c.version).
incur@0.1.9
Patch Changes
- 1a671e9: Added
nameto run and middleware context (c.name) — returns the CLI name passed toCli.create().
incur@0.1.12
Patch Changes
- a61c474: Added help output in human mode for root command with args when no args provided
incur@0.1.11
Patch Changes
- 77f5c98: Added deprecated option support via Zod's
.meta({ deprecated: true }). Deprecated flags show[deprecated]in help output,**Deprecated.**in skill docs,deprecated: truein JSON Schema, and emit stderr warnings in TTY mode.
incur@0.1.10
Patch Changes
- e7564a0: Added
c.error()to middleware context for structured error short-circuiting. Middleware can now returnc.error({ code, message })instead of throwing, producing a proper error envelope with optional CTAs.