diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 10f3091..6b7b74c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0" + ".": "0.3.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index bacd568..e34b116 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-3024c2681b0acf12535d68f39c1b49113330548513a54b276116cd3f2eda182e.yml -openapi_spec_hash: ab3a6473e575381cacd245bf54dcf0f7 -config_hash: b0f343b2ab3baebad7b0d6d51f0f16fc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-4903d5902cec6a80f42b9adaa9cf0defa9805ff22d7ae96970d209a4f867e195.yml +openapi_spec_hash: 1097891c23530dfe0155f23170daf973 +config_hash: c7b0cdaba3b9797b77efd89e1754d803 diff --git a/CHANGELOG.md b/CHANGELOG.md index a2fcca6..22514d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 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) + +### Features + +* **api:** api update ([e4387a5](https://github.com/context-dot-dev/context-dev-cli/commit/e4387a54271251c65f16cfd1dce035e177393db2)) + ## 0.2.0 (2026-06-21) Full Changelog: [v0.1.0...v0.2.0](https://github.com/context-dot-dev/context-dev-cli/compare/v0.1.0...v0.2.0) diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go index 10d2893..5266c84 100644 --- a/pkg/cmd/version.go +++ b/pkg/cmd/version.go @@ -2,4 +2,4 @@ package cmd -const Version = "0.2.0" // x-release-please-version +const Version = "0.3.0" // x-release-please-version diff --git a/pkg/cmd/web.go b/pkg/cmd/web.go index 3ec5c57..2a4e194 100644 --- a/pkg/cmd/web.go +++ b/pkg/cmd/web.go @@ -241,6 +241,11 @@ var webScreenshot = requestflag.WithInnerFlags(cli.Command{ Usage: "Optional parameter to specify which page type to screenshot. If provided, the system will scrape the domain's links and use heuristics to find the most appropriate URL for the specified page type (30 supported languages). If not provided, screenshots the main domain landing page. Only applicable when using 'domain', not 'directUrl'.", QueryPath: "page", }, + &requestflag.Flag[int64]{ + Name: "scroll-offset", + Usage: "Optional vertical scroll offset in pixels for capturing a long page in viewport-sized chunks. When provided, the full page is captured once and the returned image is the viewport-sized slice that begins at this Y offset (e.g. request scrollOffset=0, then 1080, then 2160 to walk a 1920x1080 landing page top to bottom). The final slice may be shorter than the viewport height. Takes precedence over fullScreenshot. Max: 100000.", + QueryPath: "scrollOffset", + }, &requestflag.Flag[int64]{ Name: "timeout-ms", Usage: "Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).", diff --git a/pkg/cmd/web_test.go b/pkg/cmd/web_test.go index 5df8b61..9fec097 100644 --- a/pkg/cmd/web_test.go +++ b/pkg/cmd/web_test.go @@ -147,6 +147,7 @@ func TestWebScreenshot(t *testing.T) { "--handle-cookie-popup", "true", "--max-age-ms", "0", "--page", "login", + "--scroll-offset", "0", "--timeout-ms", "1000", "--viewport", "{height: 240, width: 240}", "--wait-for-ms", "0", @@ -168,6 +169,7 @@ func TestWebScreenshot(t *testing.T) { "--handle-cookie-popup", "true", "--max-age-ms", "0", "--page", "login", + "--scroll-offset", "0", "--timeout-ms", "1000", "--viewport.height", "240", "--viewport.width", "240",