Skip to content

Releases: wevm/incur

[email protected]

06 Mar 00:01
5d40c81

Choose a tag to compare

Patch Changes

  • 9454412: Added --token-count, --token-limit, and --token-offset global options for token-aware output pagination. Uses LLM tokenization estimation (~96% accuracy via tokenx). In --verbose mode, truncated output includes meta.nextOffset for programmatic pagination.

[email protected]

05 Mar 21:18
b9bbdc4

Choose a tag to compare

Patch Changes

  • 6ab9a33: Added --filter-output global option to filter output by key paths with support for dot notation and array slicing.
  • 2dc1b00: Added --schema global option to every command that returns its JSON Schema (args, env, options, output).
  • c60e6b8: Exposed format and formatExplicit on run and middleware context.
  • 0e52ec0: Added cli.fetch to 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]

04 Mar 22:52
3de8efb

Choose a tag to compare

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 value query 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.)

[email protected]

04 Mar 20:28
11268c1

Choose a tag to compare

Patch Changes

  • b73feaf: Added aliases option to Cli.create for registering alternative binary names. Shell completions and help output include all aliases.

[email protected]

04 Mar 18:27
8184184

Choose a tag to compare

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. -abc parsed as -a -b -c). The last flag in a stack can consume a value; all preceding flags must be boolean.

[email protected]

04 Mar 00:17
9da4186

Choose a tag to compare

Patch Changes

  • 5122c9b: Fixed help formatter using process.env instead of env source override for "set:" display

[email protected]

03 Mar 23:39
16eb743

Choose a tag to compare

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 to COMMAND_NOT_FOUND errors.
  • 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, handleStreaming used only formatExplicit to decide between incremental and buffered mode, causing CLI defaults like { format: 'json' } to be ignored in favor of hardcoded 'toon'.

[email protected]

03 Mar 19:32
707acb2

Choose a tag to compare

Patch Changes

  • aa32795: Added version to the command run context (c.version).

[email protected]

02 Mar 02:47
fb3c31a

Choose a tag to compare

Patch Changes

  • 1a671e9: Added name to run and middleware context (c.name) — returns the CLI name passed to Cli.create().

[email protected]

02 Mar 19:39
dc9ba9d

Choose a tag to compare

Patch Changes

  • a61c474: Added help output in human mode for root command with args when no args provided