From d9b903c39a5521064f49f658d32205f310f54e00 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 18:11:22 +0000 Subject: [PATCH 1/3] feat(api): api update --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 7f8a744..2e84305 100644 --- a/go.mod +++ b/go.mod @@ -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.1.0 + github.com/context-dot-dev/context-go-sdk v1.2.0 github.com/goccy/go-yaml v1.18.0 github.com/itchyny/json2yaml v0.1.4 github.com/muesli/reflow v0.3.0 diff --git a/go.sum b/go.sum index 299a540..f3cb7d4 100644 --- a/go.sum +++ b/go.sum @@ -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.1.0 h1:CwBPH2p3b2eA3euoV3h9wFNT7/obkeXeGXrCWPKv9tc= -github.com/context-dot-dev/context-go-sdk v1.1.0/go.mod h1:YwbwUXSpQRB5LdVmgyIyZhIgKyulaeQmVWxylI4KE54= +github.com/context-dot-dev/context-go-sdk v1.2.0 h1:fFXWrYeZK8WFJhrGLEm3XSHomUMJwLYT9p9H5stJ1m4= +github.com/context-dot-dev/context-go-sdk v1.2.0/go.mod h1:YwbwUXSpQRB5LdVmgyIyZhIgKyulaeQmVWxylI4KE54= 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= From e9b3454a43a4f9f7614a56a6039eb260b398de52 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:47:12 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 ++-- pkg/cmd/web.go | 20 ++++++++++++++++++++ pkg/cmd/web_test.go | 9 +++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e34b116..24c57ba 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 25 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-4903d5902cec6a80f42b9adaa9cf0defa9805ff22d7ae96970d209a4f867e195.yml -openapi_spec_hash: 1097891c23530dfe0155f23170daf973 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-00c5b8f1ebfe212bc8fb46204f5c05507630afa55b10f77e3a43c66d21edbb77.yml +openapi_spec_hash: 8bf4489b9bce0e52a89480109ffc5257 config_hash: c7b0cdaba3b9797b77efd89e1754d803 diff --git a/pkg/cmd/web.go b/pkg/cmd/web.go index 2a4e194..4b302cd 100644 --- a/pkg/cmd/web.go +++ b/pkg/cmd/web.go @@ -209,6 +209,11 @@ var webScreenshot = requestflag.WithInnerFlags(cli.Command{ Usage: "Capture a screenshot of a website.", Suggest: true, Flags: []cli.Flag{ + &requestflag.Flag[string]{ + Name: "country", + Usage: "Two-letter ISO 3166-1 alpha-2 country code for the website request location. When provided, Context.dev fetches the target page from that country.", + QueryPath: "country", + }, &requestflag.Flag[string]{ Name: "direct-url", Usage: "A specific URL to screenshot directly, bypassing domain resolution (e.g., 'https://example.com/pricing'). When provided, the screenshot is taken of this exact URL. You must provide either 'domain' or 'directUrl', but not both.", @@ -391,6 +396,11 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{ Required: true, BodyPath: "url", }, + &requestflag.Flag[string]{ + Name: "country", + Usage: "Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev residential proxy exit location. Must be one of Context.dev's supported countries. When provided, Context.dev fetches the target page from that country.", + BodyPath: "country", + }, &requestflag.Flag[[]string]{ Name: "exclude-selector", Usage: `CSS selectors to remove before each crawled page is converted to Markdown. Applied after includeSelectors. Exclusion takes precedence: an element matching both is removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".`, @@ -515,6 +525,11 @@ var webWebScrapeHTML = requestflag.WithInnerFlags(cli.Command{ Required: true, QueryPath: "url", }, + &requestflag.Flag[string]{ + Name: "country", + Usage: "Two-letter ISO 3166-1 alpha-2 country code for the website request location. When provided, Context.dev fetches the target page from that country.", + QueryPath: "country", + }, &requestflag.Flag[[]string]{ Name: "exclude-selector", Usage: `CSS selectors to remove from the result. Applied after includeSelectors. Exclusion takes precedence: an element matching both is removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".`, @@ -663,6 +678,11 @@ var webWebScrapeMd = requestflag.WithInnerFlags(cli.Command{ Required: true, QueryPath: "url", }, + &requestflag.Flag[string]{ + Name: "country", + Usage: "Two-letter ISO 3166-1 alpha-2 country code for the website request location. When provided, Context.dev fetches the target page from that country.", + QueryPath: "country", + }, &requestflag.Flag[[]string]{ Name: "exclude-selector", Usage: `CSS selectors to remove before conversion to Markdown. Applied after includeSelectors. Exclusion takes precedence: an element matching both is removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".`, diff --git a/pkg/cmd/web_test.go b/pkg/cmd/web_test.go index 9fec097..4c9a09b 100644 --- a/pkg/cmd/web_test.go +++ b/pkg/cmd/web_test.go @@ -141,6 +141,7 @@ func TestWebScreenshot(t *testing.T) { t, "--api-key", "string", "web", "screenshot", + "--country", "de", "--direct-url", "https://example.com", "--domain", "domain", "--full-screenshot", "true", @@ -163,6 +164,7 @@ func TestWebScreenshot(t *testing.T) { t, "--api-key", "string", "web", "screenshot", + "--country", "de", "--direct-url", "https://example.com", "--domain", "domain", "--full-screenshot", "true", @@ -264,6 +266,7 @@ func TestWebWebCrawlMd(t *testing.T) { "--api-key", "string", "web", "web-crawl-md", "--url", "https://example.com", + "--country", "de", "--exclude-selector", "string", "--follow-subdomains=true", "--include-frames=true", @@ -293,6 +296,7 @@ func TestWebWebCrawlMd(t *testing.T) { "--api-key", "string", "web", "web-crawl-md", "--url", "https://example.com", + "--country", "de", "--exclude-selector", "string", "--follow-subdomains=true", "--include-frames=true", @@ -318,6 +322,7 @@ func TestWebWebCrawlMd(t *testing.T) { // Test piping YAML data over stdin pipeData := []byte("" + "url: https://example.com\n" + + "country: de\n" + "excludeSelectors:\n" + " - string\n" + "followSubdomains: true\n" + @@ -355,6 +360,7 @@ func TestWebWebScrapeHTML(t *testing.T) { "--api-key", "string", "web", "web-scrape-html", "--url", "https://example.com", + "--country", "de", "--exclude-selector", "string", "--headers", "{foo: J!}", "--include-frames=true", @@ -377,6 +383,7 @@ func TestWebWebScrapeHTML(t *testing.T) { "--api-key", "string", "web", "web-scrape-html", "--url", "https://example.com", + "--country", "de", "--exclude-selector", "string", "--headers", "{foo: J!}", "--include-frames=true", @@ -438,6 +445,7 @@ func TestWebWebScrapeMd(t *testing.T) { "--api-key", "string", "web", "web-scrape-md", "--url", "https://example.com", + "--country", "de", "--exclude-selector", "string", "--headers", "{foo: J!}", "--include-frames=true", @@ -463,6 +471,7 @@ func TestWebWebScrapeMd(t *testing.T) { "--api-key", "string", "web", "web-scrape-md", "--url", "https://example.com", + "--country", "de", "--exclude-selector", "string", "--headers", "{foo: J!}", "--include-frames=true", From ba7b987c65067d05beb03867c2900b8cd41daac8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:47:34 +0000 Subject: [PATCH 3/3] release: 0.4.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ pkg/cmd/version.go | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6b7b74c..da59f99 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.3.0" + ".": "0.4.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 22514d6..20a6faa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.4.0 (2026-06-26) + +Full Changelog: [v0.3.0...v0.4.0](https://github.com/context-dot-dev/context-dev-cli/compare/v0.3.0...v0.4.0) + +### Features + +* **api:** api update ([e9b3454](https://github.com/context-dot-dev/context-dev-cli/commit/e9b3454a43a4f9f7614a56a6039eb260b398de52)) +* **api:** api update ([d9b903c](https://github.com/context-dot-dev/context-dev-cli/commit/d9b903c39a5521064f49f658d32205f310f54e00)) + ## 0.3.0 (2026-06-25) Full Changelog: [v0.2.0...v0.3.0](https://github.com/context-dot-dev/context-dev-cli/compare/v0.2.0...v0.3.0) diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go index 5266c84..b113456 100644 --- a/pkg/cmd/version.go +++ b/pkg/cmd/version.go @@ -2,4 +2,4 @@ package cmd -const Version = "0.3.0" // x-release-please-version +const Version = "0.4.0" // x-release-please-version