Skip to content

Releases: wevm/incur

incur@0.2.0

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

incur@0.1.17

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.

incur@0.1.16

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.

incur@0.1.15

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

incur@0.1.14

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'.

incur@0.1.13

03 Mar 19:32
707acb2

Choose a tag to compare

Patch Changes

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

incur@0.1.9

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().

incur@0.1.12

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

incur@0.1.11

02 Mar 06:56
3753574

Choose a tag to compare

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: true in JSON Schema, and emit stderr warnings in TTY mode.

incur@0.1.10

02 Mar 05:42
1af4513

Choose a tag to compare

Patch Changes

  • e7564a0: Added c.error() to middleware context for structured error short-circuiting. Middleware can now return c.error({ code, message }) instead of throwing, producing a proper error envelope with optional CTAs.