Skip to content

Commit 550f260

Browse files
authored
Merge branch 'main' into arcaputo3/fix-managed-agents-cli-bugs
2 parents 1eededf + af90f28 commit 550f260

42 files changed

Lines changed: 1558 additions & 175 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Link staging branch
3535
if: github.repository == 'stainless-sdks/anthropic-cli'
3636
run: |
37-
./scripts/link 'github.com/stainless-sdks/anthropic-go@${{ github.ref_name }}' || go mod edit -dropreplace='github.com/stainless-sdks/anthropic-go'
37+
./scripts/link 'github.com/stainless-sdks/anthropic-go@${{ github.ref_name }}' || true
3838
3939
- name: Bootstrap
4040
run: ./scripts/bootstrap
@@ -60,7 +60,7 @@ jobs:
6060
- name: Link staging branch
6161
if: github.repository == 'stainless-sdks/anthropic-cli'
6262
run: |
63-
./scripts/link 'github.com/stainless-sdks/anthropic-go@${{ github.ref_name }}' || go mod edit -dropreplace='github.com/stainless-sdks/anthropic-go'
63+
./scripts/link 'github.com/stainless-sdks/anthropic-go@${{ github.ref_name }}' || true
6464
6565
- name: Bootstrap
6666
run: ./scripts/bootstrap
@@ -155,7 +155,7 @@ jobs:
155155
- name: Link staging branch
156156
if: github.repository == 'stainless-sdks/anthropic-cli'
157157
run: |
158-
./scripts/link 'github.com/stainless-sdks/anthropic-go@${{ github.ref_name }}' || go mod edit -dropreplace='github.com/stainless-sdks/anthropic-go'
158+
./scripts/link 'github.com/stainless-sdks/anthropic-go@${{ github.ref_name }}' || true
159159
160160
- name: Bootstrap
161161
run: ./scripts/bootstrap

.github/workflows/publish-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
tags:
1010
- "v*"
11+
workflow_dispatch: {}
1112

1213
permissions:
1314
contents: read

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ homebrew_casks:
8484
owner: anthropics
8585
name: homebrew-tap
8686
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
87+
branch: "ant-{{.Version}}"
8788
pull_request:
8889
enabled: true
8990
homepage: anthropic.com

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.1.0"
2+
".": "1.2.1"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 72
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-d87d3ef6f636c667a0256be82cebef0699d17403d409c26ec15813683cfc3263.yml
3-
openapi_spec_hash: d849fdf2c4dd6631a60c4340e9bc1322
4-
config_hash: 062be10c6bf39b6719b3a5ea2bf758b3
1+
configured_endpoints: 77
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-e0696f59ae07dc1a9c5a8fc87a4eb05eb35afabaac0b5ff0ea38810fa9dd4a74.yml
3+
openapi_spec_hash: 69278ebbb0d1aa0b322bbbd5128bcec5
4+
config_hash: b0dbd234c2752507397c139a416f6cba

CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
# Changelog
22

3+
## 1.2.1 (2026-04-16)
4+
5+
Full Changelog: [v1.2.0...v1.2.1](https://github.com/anthropics/anthropic-cli/compare/v1.2.0...v1.2.1)
6+
7+
### Bug Fixes
8+
9+
* **goreleaser:** correct pull request config ([5d6c9ae](https://github.com/anthropics/anthropic-cli/commit/5d6c9aeb2f5552d9bf698b9a7f5b9e8c36c001bd))
10+
11+
12+
### Chores
13+
14+
* **ci:** support manually triggering release workflow ([9f53a96](https://github.com/anthropics/anthropic-cli/commit/9f53a96d298248c45822057a6c53ec6dd3e3f768))
15+
16+
## 1.2.0 (2026-04-16)
17+
18+
Full Changelog: [v1.1.0...v1.2.0](https://github.com/anthropics/anthropic-cli/compare/v1.1.0...v1.2.0)
19+
20+
### Features
21+
22+
* **api:** add claude-opus-4-7, token budgets and user_profiles ([df20ce9](https://github.com/anthropics/anthropic-cli/commit/df20ce924956647bf362c198dbcadb426c686662))
23+
* **api:** manual updates ([07273ef](https://github.com/anthropics/anthropic-cli/commit/07273ef2e27993e452db24cfdb59088989349c9f))
24+
* **cli:** alias parameters in data with `x-stainless-cli-data-alias` ([991b8e9](https://github.com/anthropics/anthropic-cli/commit/991b8e972802e2ec3ca5663ab0c6fb31ead8a4df))
25+
26+
27+
### Bug Fixes
28+
29+
* **cli:** fix incompatible Go types for flag generated as array of maps ([ced5845](https://github.com/anthropics/anthropic-cli/commit/ced58459c9d668fdde293adeb4ed676e5c73b800))
30+
* fix for failing to drop invalid module replace in link script ([ad79ded](https://github.com/anthropics/anthropic-cli/commit/ad79ded899364b5e8cb288d90597fd4b7984e538))
31+
* use correct multipart array format ([326a8b5](https://github.com/anthropics/anthropic-cli/commit/326a8b5ae00259c439cf0ea613d57fd41babc602))
32+
33+
34+
### Chores
35+
36+
* add documentation for ./scripts/link ([d1a18e2](https://github.com/anthropics/anthropic-cli/commit/d1a18e23681a821cd3d626bc73d9ad2750e465ab))
37+
* **ci:** remove release-doctor workflow ([2c92e20](https://github.com/anthropics/anthropic-cli/commit/2c92e20fdd01bb42f6051c668cdb7be544ade2d7))
38+
* **cli:** additional test cases for `ShowJSONIterator` ([9c94055](https://github.com/anthropics/anthropic-cli/commit/9c94055e3e651cc383e1022ab3cc1c5474d46167))
39+
* **cli:** fall back to JSON when using default "explore" with non-TTY ([cd58bd2](https://github.com/anthropics/anthropic-cli/commit/cd58bd23c08c9716aa7c73d789b3cbe1662ed9cf))
40+
* **cli:** switch long lists of positional args over to param structs ([4373b01](https://github.com/anthropics/anthropic-cli/commit/4373b01d3c239fdb6dd2bcbc2620da89065fb4ad))
41+
* **internal:** codegen related update ([8ea4789](https://github.com/anthropics/anthropic-cli/commit/8ea4789ee4e687b3f82609f4e8ba90d667fde294))
42+
* **internal:** codegen related update ([48aff04](https://github.com/anthropics/anthropic-cli/commit/48aff040e5a6b166e7f4d0f9073e15dbab875a3d))
43+
44+
45+
### Documentation
46+
47+
* update examples ([3213488](https://github.com/anthropics/anthropic-cli/commit/3213488ea69fab6b47e2cef8c807b26961d857ee))
48+
349
## 1.1.0 (2026-04-09)
450

551
Full Changelog: [v1.0.0...v1.1.0](https://github.com/anthropics/anthropic-cli/compare/v1.0.0...v1.1.0)

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,23 @@ base64-encoding). Note that absolute paths will begin with `@file://` or
120120
```bash
121121
ant <command> --arg @data://file.txt
122122
```
123+
124+
## Linking different Go SDK versions
125+
126+
You can link the CLI against a different version of the Anthropic Go SDK
127+
for development purposes using the `./scripts/link` script.
128+
129+
To link to a specific version from a repository (version can be a branch,
130+
git tag, or commit hash):
131+
132+
```bash
133+
./scripts/link github.com/org/repo@version
134+
```
135+
136+
To link to a local copy of the SDK:
137+
138+
```bash
139+
./scripts/link ../path/to/anthropic-go
140+
```
141+
142+
If you run the link script without any arguments, it will default to `../anthropic-go`.

cmd/ant/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ func main() {
4343
fmt.Fprintf(os.Stderr, "%s %q: %d %s\n", apierr.Request.Method, apierr.Request.URL, apierr.Response.StatusCode, http.StatusText(apierr.Response.StatusCode))
4444
format := app.String("format-error")
4545
json := gjson.Parse(apierr.RawJSON())
46-
show_err := cmd.ShowJSON(os.Stdout, "Error", json, format, app.String("transform-error"))
46+
show_err := cmd.ShowJSON(json, cmd.ShowJSONOpts{
47+
ExplicitFormat: app.IsSet("format-error"),
48+
Format: format,
49+
Title: "Error",
50+
Transform: app.String("transform-error"),
51+
})
4752
if show_err != nil {
4853
// Just print the original error:
4954
fmt.Fprintf(os.Stderr, "%s\n", err.Error())

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/anthropics/anthropic-cli
33
go 1.25
44

55
require (
6-
github.com/anthropics/anthropic-sdk-go v1.34.0
6+
github.com/anthropics/anthropic-sdk-go v1.37.0
77
github.com/charmbracelet/bubbles v0.21.0
88
github.com/charmbracelet/bubbletea v1.3.6
99
github.com/charmbracelet/lipgloss v1.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/anthropics/anthropic-sdk-go v1.34.0 h1:IV+Wwxkwypit9Md8dr48zc626NS4o9PoQieESoNE0TE=
2-
github.com/anthropics/anthropic-sdk-go v1.34.0/go.mod h1:dSIO7kSrOI7MA4fE6RRVaw8tyWP7HNQU5/H/KS4cax8=
1+
github.com/anthropics/anthropic-sdk-go v1.37.0 h1:yBKUaBG3TCRb6das/Q5qNB9Fsafon09gu2yYVgvapKE=
2+
github.com/anthropics/anthropic-sdk-go v1.37.0/go.mod h1:dSIO7kSrOI7MA4fE6RRVaw8tyWP7HNQU5/H/KS4cax8=
33
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
44
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
55
github.com/aymanbagabas/go-udiff v0.2.0 h1:TK0fH4MteXUDspT88n8CKzvK0X9O2xu9yQjWpi6yML8=

0 commit comments

Comments
 (0)