Releases: wevm/incur
Releases · wevm/incur
[email protected]
Patch Changes
- 9454412: Added
--token-count,--token-limit, and--token-offsetglobal options for token-aware output pagination. Uses LLM tokenization estimation (~96% accuracy viatokenx). In--verbosemode, truncated output includesmeta.nextOffsetfor programmatic pagination.
[email protected]
Patch Changes
- 6ab9a33: Added
--filter-outputglobal option to filter output by key paths with support for dot notation and array slicing. - 2dc1b00: Added
--schemaglobal option to every command that returns its JSON Schema (args, env, options, output). - c60e6b8: Exposed
formatandformatExpliciton run and middleware context. - 0e52ec0: Added
cli.fetchto expose CLI as a standard Fetch API handler - f5b0133: Added optional exitCode to c.error() and IncurError, allowing CLI authors to control the process exit code. Defaults to 1 when omitted (backward compatible).
[email protected]
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:
[email protected]
Patch Changes
- b73feaf: Added
aliasesoption toCli.createfor registering alternative binary names. Shell completions and help output include all aliases.
[email protected]
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.
[email protected]
Patch Changes
- 5122c9b: Fixed help formatter using
process.envinstead of env source override for "set:" display
[email protected]
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'.
[email protected]
Patch Changes
- aa32795: Added
versionto the command run context (c.version).
[email protected]
Patch Changes
- 1a671e9: Added
nameto run and middleware context (c.name) — returns the CLI name passed toCli.create().
[email protected]
Patch Changes
- a61c474: Added help output in human mode for root command with args when no args provided