autocomplete 2.0.0 copy "autocomplete: ^2.0.0" to clipboard
autocomplete: ^2.0.0 copied to clipboard

Fig-style CLI completion specs and runtime (parse command, load spec, get suggestions). Pure Dart

2.0.0 #

Breaking Changes #

  • Specs are JSON-first now. The generated Dart specs under lib/specs/ and registerBuiltinSpecs() are removed. Register the JSON catalog instead with registerJsonSpecs(catalog:, integrityReader:, resourceReader:, handlers:).
  • Spec paths are namespaced. Documents moved out of lib/specs/*.dart into assets/specs/<letter>/...; e.g. aws/account is now a/aws/account.json.
  • No bundled dart:io adapter. CompleteAdapter requires a new pathSeparator getter, and the local adapter moved to example/local_adapter.dart — copy it into your host.

Added #

  • A generated, immutable JSON catalog. Bundle shards carry each resource's byte length and SHA-256, so every document is verified before it is parsed.
  • catalog + resourceReader registration for hosts that load specs from a cache or CDN, plus a remote-loading example (bundle, cache, HTTPS fallback, single-flight downloads).
  • Generated completion data for the deno lint, osquery, and pip handlers.

Changed #

  • The AWS, Azure, and GCloud document families are excluded from the pub.dev archive and delivered on demand; the full JSON source stays in Git.
  • .pubignore, Flutter asset declarations, and the catalog directory are generated from the materialized JSON asset layout.

1.0.0 #

  • Add the v2 streaming suggestions API with requestSuggestions / streamSuggestions, cancellation, and richer request events.
  • Add SuggestionRequestMode.staticThenFinal for fast static results followed by dynamic updates.
  • Improve responsiveness by deferring generateSpec during the first static pass.
  • Add the stream_suggest_v2.dart example, runtime tests, and benchmark coverage.
  • Add built-in specs for claude, codex, gemini, and qwen.

Breaking Changes #

  • Rename clearCache() to clearDynamicSuggestion().
  • Add clearAllCaches() for callers that want the previous full-reset behavior.

0.4.0 #

  • bind AutocompleteEngine to a fixed adapter and simplify engine.getSuggestions(cmd, cwd, shell)
  • stabilize dynamic suggestions cache reuse for lazy-loaded specs, postProcess generators, and custom function generators
  • fuzzy filter opt

0.3.0 #

  • feature fix, opt

0.2.0 #

  • fuzzy suggestion filter, and tests

0.1.5 #

  • performance improvements
  • add object-oriented API

0.1.4 #

  • Fix multi-version spec selection (e.g. heroku, shopify, infracost) so the correct spec is chosen at runtime based on CLI version.
  • Add CONTRIBUTING.md with contribution and spec-writing guidelines.
  • Update spec definitions (elixir, fin, git, heroku, pnpm, shopify) and generator/runtime logic.

0.1.3 #

  • Update spec definitions.
  • Refactor code structure.

0.1.2-dev #

  • Optimization and bug fixes.

0.1.1-dev.1 #

  • Prerelease for testing.

0.1.0 #

  • Initial release.
2
likes
140
points
93
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Fig-style CLI completion specs and runtime (parse command, load spec, get suggestions). Pure Dart

Repository (GitHub)
View/report issues

Topics

#autocomplete #shell #fig

License

MIT (license)

Dependencies

crypto, yaml

More

Packages that depend on autocomplete