Skip to content

Releases: orq-ai/bartolo

v0.4.3

02 May 21:43

Choose a tag to compare

Top-level oneOf / anyOf request bodies now expose every branch's properties as flags.

Highlights

  • Endpoints whose request body is a discriminated union (e.g. chunking parse over multiple chunker strategies: token, sentence, recursive, semantic, agentic) now produce a unified flag set covering every strategy's fields.
  • Required fields are the intersection across branches (a field is only universally required if every branch requires it).
  • Properties from earlier branches win on conflict so the discriminator field (e.g. --strategy) is preserved.
  • allOf merge from v0.4.0 still applies and now composes with oneOf / anyOf flattening (recursively).

Upgrade

go install github.com/orq-ai/bartolo@v0.4.3
go get github.com/orq-ai/bartolo@v0.4.3 && go mod tidy
bartolo generate openapi.json

v0.4.2

02 May 21:31

Choose a tag to compare

Add JSON-string fallback flag so every top-level body field is exposed on the CLI.

Highlights

  • New json body field flag type. Used for nested objects, arrays of objects, and polymorphic unions that previously were silently dropped.
  • Pass any JSON value: --invoke-options '{"timeout":30}', --documents '[{"id":"a"}]'.
  • deployments invoke (and similar endpoints with rich request bodies) now expose every top-level field including --messages, --prefix-messages, --identity, --thread, --knowledge-filter, and --documents.
  • Existing typed flags (scalar, nullable, slice, map, enum) are unchanged.

Upgrade

go install github.com/orq-ai/bartolo@v0.4.2
go get github.com/orq-ai/bartolo@v0.4.2 && go mod tidy
bartolo generate openapi.json

v0.4.1

02 May 21:26

Choose a tag to compare

Add a top-level version subcommand and --version flag.

Highlights

  • bartolo version prints the installed generator version.
  • bartolo --version works as the conventional alternative.

Helpful when generated code looks unexpectedly stale: check the binary on PATH instead of guessing.

Upgrade

go install github.com/orq-ai/bartolo@v0.4.1
bartolo version

v0.4.0

02 May 21:19

Choose a tag to compare

Merge allOf compositions when extracting body field flags so endpoints whose top-level request schema is allOf: [...] (e.g. chat completions) now expose flags for every merged property.

Highlights

  • allOf request schemas are flattened (recursively) into a synthetic object before flag extraction. Properties from every branch are unioned; required fields are collected across branches; the host schema's properties win on conflict.
  • Endpoints like chat create (~25 flags such as --model, --temperature, --metadata, --modalities, --variables) now generate flags instead of producing an empty flag list.
  • Same merge runs in the description summary so the docstring's "Top-level fields" section reflects the merged shape.

Upgrade

go get github.com/orq-ai/bartolo@v0.4.0
go mod tidy

Then regenerate your CLI to pick up flags for allOf-shaped endpoints. Existing flag generation is unchanged.

v0.3.0

02 May 21:13

Choose a tag to compare

Expand generated body field flags to cover nullable scalars, repeatable slices, string maps, and string enums.

Highlights

  • Nullable scalars (string | null, type: [X, "null"], anyOf with null) now produce flags. Pass the literal null to send an explicit JSON null.
  • Arrays of scalars produce repeatable flags: --tag a --tag b or --tag a,b.
  • additionalProperties string maps produce key=value flags: --metadata region=eu --metadata tier=gold.
  • String enums produce flags with shell completion and value validation.
  • anyOf / oneOf with a single non-null branch now collapse to that branch instead of being skipped silently.

Upgrade

go get github.com/orq-ai/bartolo@v0.3.0
go mod tidy

Then regenerate your CLI to pick up the new flags. Existing scalar / bool / int / float flags continue to work unchanged.

v0.2.0

13 Apr 09:39

Choose a tag to compare

Bartolo v0.2.0

This release publishes the new generator/runtime compatibility surface required by recently generated CLIs.

Highlights:

  • generated CLIs now support typed top-level body flags in addition to shorthand/stdin
  • runtime exports BodyField and ApplyBodyFlags so new generated commands compile correctly
  • generated projects are split into cmd/, cli/generated, and cli/custom
  • auth setup/login, doctor --fix, server management, completions, examples, and bartolo sync are included in the scaffold
  • JSON OpenAPI fixtures are covered in verification

If you generated a CLI against Bartolo main before this release, update it to v0.2.0 and run go mod tidy.

v0.1.0

12 Apr 21:15

Choose a tag to compare