Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- 'stl-preview-base/**'

env:
GOPRIVATE: github.com/context-dot-dev/context-go-sdk,github.com/stainless-sdks/context.dev-go
GOPRIVATE: github.com/context-dot-dev/context-go-sdk/v2,github.com/stainless-sdks/context.dev-go/v2

jobs:
lint:
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Link staging branch
if: github.repository == 'stainless-sdks/context.dev-cli'
run: |
./scripts/link 'github.com/stainless-sdks/context.dev-go@${{ github.ref_name }}' || true
./scripts/link 'github.com/stainless-sdks/context.dev-go/v2@${{ github.ref_name }}' || true

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Link staging branch
if: github.repository == 'stainless-sdks/context.dev-cli'
run: |
./scripts/link 'github.com/stainless-sdks/context.dev-go@${{ github.ref_name }}' || true
./scripts/link 'github.com/stainless-sdks/context.dev-go/v2@${{ github.ref_name }}' || true

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Link staging branch
if: github.repository == 'stainless-sdks/context.dev-cli'
run: |
./scripts/link 'github.com/stainless-sdks/context.dev-go@${{ github.ref_name }}' || true
./scripts/link 'github.com/stainless-sdks/context.dev-go/v2@${{ github.ref_name }}' || true

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.8.0"
".": "0.9.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 29
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-7dbd739a81e6aaf7fc7ef1858606e7d572d309af55082a66431d9292e655e66f.yml
openapi_spec_hash: a6374d5d718a7bd9d3d54fb657e2bd9d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-51ebe668b198157ccb18984017dd2fe35f7675220e8b933b03325b3c459ef2a6.yml
openapi_spec_hash: b3ed94bd6b59d4e32fc2c5aa8187d6b2
config_hash: ff35e224e809656528c44163aa41bebd
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.9.0 (2026-07-08)

Full Changelog: [v0.8.0...v0.9.0](https://github.com/context-dot-dev/context-dev-cli/compare/v0.8.0...v0.9.0)

### Features

* **api:** api update ([058e8d0](https://github.com/context-dot-dev/context-dev-cli/commit/058e8d0a1dd1728ab42524cd52a39fa83c8d5aee))
* **api:** api update ([487caec](https://github.com/context-dot-dev/context-dev-cli/commit/487caec519e5299562b2b864240395e13a8a5791))
* **api:** api update ([40129c5](https://github.com/context-dot-dev/context-dev-cli/commit/40129c5f3a5fb562d1ef4c0a2f2ab408d0ca2732))

## 0.8.0 (2026-07-06)

Full Changelog: [v0.7.1...v0.8.0](https://github.com/context-dot-dev/context-dev-cli/compare/v0.7.1...v0.8.0)
Expand Down
2 changes: 1 addition & 1 deletion cmd/context-dev/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"slices"

"github.com/context-dot-dev/context-dev-cli/pkg/cmd"
"github.com/context-dot-dev/context-go-sdk"
"github.com/context-dot-dev/context-go-sdk/v2"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/charmbracelet/bubbletea v1.3.6
github.com/charmbracelet/lipgloss v1.1.0
github.com/charmbracelet/x/term v0.2.1
github.com/context-dot-dev/context-go-sdk v1.5.0
github.com/context-dot-dev/context-go-sdk/v2 v2.0.0
github.com/goccy/go-yaml v1.18.0
github.com/itchyny/json2yaml v0.1.4
github.com/muesli/reflow v0.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ github.com/charmbracelet/x/exp/golden v0.0.0-20241011142426-46044092ad91 h1:payR
github.com/charmbracelet/x/exp/golden v0.0.0-20241011142426-46044092ad91/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U=
github.com/charmbracelet/x/term v0.2.1 h1:AQeHeLZ1OqSXhrAWpYUtZyX1T3zVxfpZuEQMIQaGIAQ=
github.com/charmbracelet/x/term v0.2.1/go.mod h1:oQ4enTYFV7QN4m0i9mzHrViD7TQKvNEEkHUMCmsxdUg=
github.com/context-dot-dev/context-go-sdk v1.5.0 h1:9c726cgqHfD+6AzoBXvQDYFGL8GysVViEGfHwuR1w4A=
github.com/context-dot-dev/context-go-sdk v1.5.0/go.mod h1:YwbwUXSpQRB5LdVmgyIyZhIgKyulaeQmVWxylI4KE54=
github.com/context-dot-dev/context-go-sdk/v2 v2.0.0 h1:3ENF1kNV5f5eoP+wB2K00nZAzRXW4ytPvP3NPVQSFSs=
github.com/context-dot-dev/context-go-sdk/v2 v2.0.0/go.mod h1:CvRANWLP0FHj5XyUwzEVX79ujdwr/2Jy375UVzKNQm8=
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/context-dot-dev/context-dev-cli/internal/apiquery"
"github.com/context-dot-dev/context-dev-cli/internal/requestflag"
"github.com/context-dot-dev/context-go-sdk"
"github.com/context-dot-dev/context-go-sdk/option"
"github.com/context-dot-dev/context-go-sdk/v2"
"github.com/context-dot-dev/context-go-sdk/v2/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
11 changes: 8 additions & 3 deletions pkg/cmd/brand.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (

"github.com/context-dot-dev/context-dev-cli/internal/apiquery"
"github.com/context-dot-dev/context-dev-cli/internal/requestflag"
"github.com/context-dot-dev/context-go-sdk"
"github.com/context-dot-dev/context-go-sdk/option"
"github.com/context-dot-dev/context-go-sdk/v2"
"github.com/context-dot-dev/context-go-sdk/v2/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)

var brandRetrieve = cli.Command{
Name: "retrieve",
Usage: "Retrieve logos, backdrops, colors, industry, description, and more. Provide\nexactly one lookup identifier in the request body: a domain, company name, email\naddress, stock ticker, or transaction descriptor.",
Usage: "Retrieve logos, backdrops, colors, industry, description, and more. Provide\nexactly one lookup identifier in the request body: a domain, company name, email\naddress, stock ticker, transaction descriptor, or direct URL. Note:\n`by_direct_url` fetches brand data only from the provided URL — not from the\nentire internet.",
Suggest: true,
Flags: []cli.Flag{
&requestflag.Flag[string]{
Expand Down Expand Up @@ -75,6 +75,11 @@ var brandRetrieve = cli.Command{
Usage: "Optional stock exchange for the ticker. Defaults to NASDAQ if not specified.",
BodyPath: "ticker_exchange",
},
&requestflag.Flag[string]{
Name: "direct-url",
Usage: "Full http(s) URL to fetch brand data from (e.g., 'https://stripe.com/enterprise'). Only this URL is fetched — not the entire internet.",
BodyPath: "direct_url",
},
&requestflag.Flag[string]{
Name: "transaction-info",
Usage: "Transaction information to identify the brand.",
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/cmdutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"syscall"

"github.com/context-dot-dev/context-dev-cli/internal/jsonview"
"github.com/context-dot-dev/context-go-sdk/option"
"github.com/context-dot-dev/context-go-sdk/v2/option"

"github.com/charmbracelet/x/term"
"github.com/itchyny/json2yaml"
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/flagoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/context-dot-dev/context-dev-cli/internal/apiquery"
"github.com/context-dot-dev/context-dev-cli/internal/debugmiddleware"
"github.com/context-dot-dev/context-dev-cli/internal/requestflag"
"github.com/context-dot-dev/context-go-sdk/option"
"github.com/context-dot-dev/context-go-sdk/v2/option"

"github.com/goccy/go-yaml"
"github.com/urfave/cli/v3"
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/industry.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/context-dot-dev/context-dev-cli/internal/apiquery"
"github.com/context-dot-dev/context-dev-cli/internal/requestflag"
"github.com/context-dot-dev/context-go-sdk"
"github.com/context-dot-dev/context-go-sdk/option"
"github.com/context-dot-dev/context-go-sdk/v2"
"github.com/context-dot-dev/context-go-sdk/v2/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/context-dot-dev/context-dev-cli/internal/apiquery"
"github.com/context-dot-dev/context-dev-cli/internal/requestflag"
"github.com/context-dot-dev/context-go-sdk"
"github.com/context-dot-dev/context-go-sdk/option"
"github.com/context-dot-dev/context-go-sdk/v2"
"github.com/context-dot-dev/context-go-sdk/v2/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down Expand Up @@ -211,7 +211,7 @@ var monitorsList = cli.Command{
},
&requestflag.Flag[[]string]{
Name: "search-by",
Usage: "Comma-separated fields to search with `q`. Defaults to all of them. Note `query` only exists on semantic monitors.",
Usage: "Comma-separated fields to search with `q`. Defaults to all of them. Note `instructions` only exists on extract monitors.",
QueryPath: "search_by",
},
&requestflag.Flag[string]{
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/context-dot-dev/context-dev-cli/internal/apiquery"
"github.com/context-dot-dev/context-dev-cli/internal/requestflag"
"github.com/context-dot-dev/context-go-sdk"
"github.com/context-dot-dev/context-go-sdk/option"
"github.com/context-dot-dev/context-go-sdk/v2"
"github.com/context-dot-dev/context-go-sdk/v2/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package cmd

const Version = "0.8.0" // x-release-please-version
const Version = "0.9.0" // x-release-please-version
4 changes: 2 additions & 2 deletions pkg/cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/context-dot-dev/context-dev-cli/internal/apiquery"
"github.com/context-dot-dev/context-dev-cli/internal/requestflag"
"github.com/context-dot-dev/context-go-sdk"
"github.com/context-dot-dev/context-go-sdk/option"
"github.com/context-dot-dev/context-go-sdk/v2"
"github.com/context-dot-dev/context-go-sdk/v2/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
cd "$(dirname "$0")/.."

# Mark the necessary Go modules as private to avoid Go's proxy
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk,github.com/stainless-sdks/context.dev-go"
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk/v2,github.com/stainless-sdks/context.dev-go/v2"

echo "==> Building context-dev"
go build ./cmd/context-dev
4 changes: 2 additions & 2 deletions scripts/link
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set -euo pipefail
cd "$(dirname "$0")/.."

# Mark the necessary Go modules as private to avoid Go's proxy
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk,github.com/stainless-sdks/context.dev-go"
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk/v2,github.com/stainless-sdks/context.dev-go/v2"

REPLACEMENT="${1:-"../context.dev-go"}"
echo "==> Replacing Go SDK with $REPLACEMENT"
if [[ -d "$REPLACEMENT" ]] || go list -m "$REPLACEMENT" >/dev/null; then
go mod edit -replace github.com/context-dot-dev/context-go-sdk="$REPLACEMENT"
go mod edit -replace github.com/context-dot-dev/context-go-sdk/v2="$REPLACEMENT"
go mod tidy -e
else
echo "Skipping Go SDK replacement (branch may not exist on Go SDK)"
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
cd "$(dirname "$0")/.."

# Mark the necessary Go modules as private to avoid Go's proxy
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk,github.com/stainless-sdks/context.dev-go"
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk/v2,github.com/stainless-sdks/context.dev-go/v2"

echo "==> Running Go build"
go build ./...
2 changes: 1 addition & 1 deletion scripts/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ set -euo pipefail
cd "$(dirname "$0")/.."

# Mark the necessary Go modules as private to avoid Go's proxy
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk,github.com/stainless-sdks/context.dev-go"
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk/v2,github.com/stainless-sdks/context.dev-go/v2"

go run ./cmd/context-dev "$@"
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
cd "$(dirname "$0")/.."

# Mark the necessary Go modules as private to avoid Go's proxy
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk,github.com/stainless-sdks/context.dev-go"
export GOPRIVATE="${GOPRIVATE:+$GOPRIVATE,}github.com/context-dot-dev/context-go-sdk/v2,github.com/stainless-sdks/context.dev-go/v2"



Expand Down
2 changes: 1 addition & 1 deletion scripts/unlink
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
cd "$(dirname "$0")/.."

echo "==> Unlinking with local directory"
go mod edit -dropreplace github.com/context-dot-dev/context-go-sdk
go mod edit -dropreplace github.com/context-dot-dev/context-go-sdk/v2
Loading