release: 0.4.0#5
Conversation
927aa2d to
62d40bb
Compare
|
🧪 Testing To try out this version of the SDK: Expires at: Mon, 25 May 2026 05:29:03 GMT |
Greptile SummaryThis is an automated Stainless SDK release (v0.4.0) that ships three main feature areas: a Confidence Score: 5/5This PR is safe to merge; all remaining findings are P2 or lower. The refactoring is thorough and consistent across all 83 files. The only known issue (reversed expected/actual in two ContentType assertions) was already flagged in a previous review thread and does not affect test pass/fail outcomes. No logic bugs or security concerns were found in the new features. pkg/cmd/flagoptions_test.go (reversed require.Equal args at lines 365/379, already flagged in prior thread) Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["CLI handler\ncmd.Root().Bool('raw-output')\ncmd.Root().String('format')"] --> B["ShowJSON(res, ShowJSONOpts)"]
B --> C{format?}
C -->|auto| D["recurse with 'json'"]
C -->|explore| E{isTerminal?}
E -->|yes| F["jsonview.ExploreJSON"]
E -->|no| G["warn if ExplicitFormat\nrecurse with 'json'"]
C -->|other| H["formatJSON(res, opts)"]
H --> I{RawOutput && String?}
I -->|yes| J["return res.Str + newline\n(no JSON quotes)"]
I -->|no| K{format switch}
K -->|raw| L["res.Raw + newline"]
K -->|json| M["pretty.Pretty + color"]
K -->|jsonl| N["@ugly + newline"]
K -->|yaml| O["json2yaml.Convert"]
K -->|pretty| P["jsonview.RenderJSON"]
Q["piped/flag YAML body"] --> R["applyDataAliases(cmd, bodyMap)"]
R --> S["rewriteAliases: alias key → canonical key"]
S --> T["flagOptions merges with flag values"]
Reviews (4): Last reviewed commit: "release: 0.4.0" | Re-trigger Greptile |
928d091 to
0834429
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
… many positionals
0834429 to
e3afe9b
Compare
Automated Release PR
0.4.0 (2026-04-25)
Full Changelog: v0.3.0...v0.4.0
Features
--raw-output/-roption to print raw (non-JSON) strings (28be4fa)x-stainless-cli-data-alias(96d1bfc)Bug Fixes
Chores
ShowJSONIterator(3d20d69)--format rawbe used in conjunction with--transform(5a0010a)ShowJSONOptsas argument toformatJSONinstead of many positionals (9a34472)Documentation
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
Note
Add
--raw-outputflag andShowJSONOptsoutput pipeline to all CLI commands for v0.4.0--raw-output(-r) flag that prints string JSON values without quotes, and refactors all command handlers to pass output options via a newShowJSONOptsstruct (replacing positionalos.Stdoutargs).ShowJSONandShowJSONIteratornow fall back fromexploretojsonformat when stdout is not a terminal, emitting a warning if--formatwas explicitly set.integrationscommand group and its subcommands from the CLI entirely.--mediaflag tox:tweets createand makes--textoptional when media is provided; adds--count/--woeidtox get-trends; adds--email/--proxy-countrytox:accounts reauth; adds--after/--limitto radar trending topics.integrationscommand group is a breaking CLI change for any scripts relying on those subcommands.Macroscope summarized e3afe9b.