diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fbd9082..7deae33 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.5.0" + ".": "1.6.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 97db86d..f9b95cb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 40 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-a0dda03bbb600917cfb9add468cc4c8c84351a8dbbf61644dbc353263ca1748f.yml -openapi_spec_hash: c24264f32a46d9317aac5af9d6a396f7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-7f75f39699c1298d16691b5a58b1312a229b78288fba6e2de4040ba1422e530f.yml +openapi_spec_hash: b3ad781596e4c52fde918cfaae54a5d4 config_hash: 920678668dd2da6f8966fbf1b8fde4e2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 89cdc76..69113c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.6.0 (2026-08-10) + +Full Changelog: [v1.5.0...v1.6.0](https://github.com/context-dot-dev/context-dev-cli/compare/v1.5.0...v1.6.0) + +### Features + +* **api:** api update ([18adfb0](https://github.com/context-dot-dev/context-dev-cli/commit/18adfb09e23af7efc8a64370e13d5cc38fe73859)) +* **api:** api update ([df232b5](https://github.com/context-dot-dev/context-dev-cli/commit/df232b58f81c68fd6a914e7fe63882a0f3de9fd4)) + ## 1.5.0 (2026-08-07) Full Changelog: [v1.4.0...v1.5.0](https://github.com/context-dot-dev/context-dev-cli/compare/v1.4.0...v1.5.0) diff --git a/go.mod b/go.mod index a5e14f2..63f9b32 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/v2 v2.8.0 + github.com/context-dot-dev/context-go-sdk/v2 v2.9.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 738ff27..3554fa9 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/v2 v2.8.0 h1:K7a/NQIXa4C3VLiF+1cCDyAMGIEnsva2CdkKaYqzC5Q= -github.com/context-dot-dev/context-go-sdk/v2 v2.8.0/go.mod h1:CvRANWLP0FHj5XyUwzEVX79ujdwr/2Jy375UVzKNQm8= +github.com/context-dot-dev/context-go-sdk/v2 v2.9.0 h1:Lv27NRJ1PyQF9QKNjMLYvrc1uRKaBjFD3sj7YHOnGgw= +github.com/context-dot-dev/context-go-sdk/v2 v2.9.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= diff --git a/pkg/cmd/batch_test.go b/pkg/cmd/batch_test.go index 123f80d..bbafe6f 100644 --- a/pkg/cmd/batch_test.go +++ b/pkg/cmd/batch_test.go @@ -82,7 +82,7 @@ func TestBatchSubmit(t *testing.T) { t, "--api-key", "string", "batch", "submit", - "--input", "{data: {format: markdown, urls: [{url: https://example.com/products/anvil, itemId: sku-1, meta: {category: bar}}, {url: https://example.com/products/hammer, itemId: sku-2, meta: {foo: bar}}], options: {country: de, excludeSelectors: [x], includeImages: true, includeLinks: true, includeSelectors: [x], maxAgeMs: 0, pdf: {end: 1, ocr: 'true', shouldParse: 'true', start: 1}, settleAnimations: true, shortenBase64Images: true, useMainContentOnly: true, waitForMs: 0}}, mode: scrape}", + "--input", "{data: {format: markdown, urls: [{url: https://example.com/products/anvil, itemId: sku-1, meta: {category: bar}}, {url: https://example.com/products/hammer, itemId: sku-2, meta: {foo: bar}}], options: {country: de, excludeSelectors: [x], includeHTML: true, includeImages: true, includeLinks: true, includeSelectors: [x], maxAgeMs: 0, pdf: {end: 1, ocr: 'true', shouldParse: 'true', start: 1}, settleAnimations: true, shortenBase64Images: true, useMainContentOnly: true, waitForMs: 0}}, mode: scrape}", "--tag", "docs", "--tag", "competitor", "--webhook-url", "webhookUrl", @@ -109,6 +109,7 @@ func TestBatchSubmit(t *testing.T) { " country: de\n" + " excludeSelectors:\n" + " - x\n" + + " includeHTML: true\n" + " includeImages: true\n" + " includeLinks: true\n" + " includeSelectors:\n" + diff --git a/pkg/cmd/utility.go b/pkg/cmd/utility.go index 5376d1b..4173edf 100644 --- a/pkg/cmd/utility.go +++ b/pkg/cmd/utility.go @@ -16,18 +16,18 @@ import ( var utilityPrefetch = cli.Command{ Name: "prefetch", - Usage: "Signal that you may fetch brand data soon to improve latency. The type field\nselects what to prefetch (currently only 'brand') and identifier carries exactly\none lookup key: a domain, or an email whose domain is extracted and validated\n(free email providers and disposable email addresses are not allowed).", + Usage: "Signal that you may fetch data soon to improve latency. The type field selects\nwhat to prefetch ('brand' queues a brand data fetch, 'styleguide' queues a\nstyleguide extraction) and identifier carries exactly one lookup key: a domain,\nor an email whose domain is extracted and validated (free email providers and\ndisposable email addresses are not allowed).", Suggest: true, Flags: []cli.Flag{ &requestflag.Flag[map[string]any]{ Name: "identifier", - Usage: "Identifier of the brand to prefetch. Provide exactly one of domain or email.", + Usage: "Identifier of the target to prefetch. Provide exactly one of domain or email.", Required: true, BodyPath: "identifier", }, &requestflag.Flag[string]{ Name: "type", - Usage: "What to prefetch. Currently only 'brand' is supported.", + Usage: "What to prefetch: 'brand' warms the brand data cache, 'styleguide' warms the styleguide cache.", Required: true, BodyPath: "type", }, diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go index cf77cd0..855000d 100644 --- a/pkg/cmd/version.go +++ b/pkg/cmd/version.go @@ -2,4 +2,4 @@ package cmd -const Version = "1.5.0" // x-release-please-version +const Version = "1.6.0" // x-release-please-version diff --git a/pkg/cmd/web.go b/pkg/cmd/web.go index 04af894..4db1274 100644 --- a/pkg/cmd/web.go +++ b/pkg/cmd/web.go @@ -832,6 +832,12 @@ var webWebScrapeMd = requestflag.WithInnerFlags(cli.Command{ Default: false, QueryPath: "includeFrames", }, + &requestflag.Flag[any]{ + Name: "include-html", + Usage: "When true, the response also includes an `html` field with the page HTML the Markdown was converted from — the same body the Scrape HTML endpoint returns for the equivalent request.", + Default: false, + QueryPath: "includeHTML", + }, &requestflag.Flag[any]{ Name: "include-images", Usage: "Include image references in Markdown output", diff --git a/pkg/cmd/web_test.go b/pkg/cmd/web_test.go index 3505637..0c173b3 100644 --- a/pkg/cmd/web_test.go +++ b/pkg/cmd/web_test.go @@ -522,6 +522,7 @@ func TestWebWebScrapeMd(t *testing.T) { "--exclude-selector", "[x]", "--headers", "{foo: J!}", "--include-frames", "'true'", + "--include-html", "'true'", "--include-images", "'true'", "--include-links", "'true'", "--include-selector", "[x]", @@ -553,6 +554,7 @@ func TestWebWebScrapeMd(t *testing.T) { "--exclude-selector", "[x]", "--headers", "{foo: J!}", "--include-frames", "'true'", + "--include-html", "'true'", "--include-images", "'true'", "--include-links", "'true'", "--include-selector", "[x]",