diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0c0c0c35..f3dbfd2a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.25.0" + ".": "1.26.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 4eb43d23..deed0132 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 24 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-cc8ca2c80e73bdcff491c96d9289c9e88d831215375ef83632cc51f8e8e06183.yml -openapi_spec_hash: bf55dce481efcf2f24bc9ff59c2e3f61 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-1785aa93e6fb2784640a4c32eb0221f0b31aa06644d090f72f8533524aeef7c6.yml +openapi_spec_hash: 7dc1fadcec32637e795f641a0e97c63e config_hash: cf2c7f48b329e0a61612b30cd2755ad1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 07132f42..b74bacbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 1.26.0 (2026-06-01) + +Full Changelog: [v1.25.0...v1.26.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.25.0...v1.26.0) + +### Features + +* **api:** api update ([d442168](https://github.com/context-dot-dev/context-ruby-sdk/commit/d442168b67accce12463e36f03630f155c1c7be3)) +* **api:** api update ([f3a97c1](https://github.com/context-dot-dev/context-ruby-sdk/commit/f3a97c19ef01be5e6cf1ce7ecfa26c972edfdf33)) +* **api:** api update ([8d8abf7](https://github.com/context-dot-dev/context-ruby-sdk/commit/8d8abf7c1600bce17ea26aa245f41b2e3199f722)) + ## 1.25.0 (2026-05-31) Full Changelog: [v1.24.0...v1.25.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.24.0...v1.25.0) diff --git a/Gemfile.lock b/Gemfile.lock index 1fd394c1..5ac30fe2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - context.dev (1.25.0) + context.dev (1.26.0) cgi connection_pool diff --git a/README.md b/README.md index 5becb3ed..f86f616a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "context.dev", "~> 1.25.0" +gem "context.dev", "~> 1.26.0" ``` diff --git a/lib/context_dev/models/web_extract_params.rb b/lib/context_dev/models/web_extract_params.rb index 641f2f8c..01192d13 100644 --- a/lib/context_dev/models/web_extract_params.rb +++ b/lib/context_dev/models/web_extract_params.rb @@ -23,12 +23,12 @@ class WebExtractParams < ContextDev::Internal::Type::BaseModel required :url, String # @!attribute fact_check - # When true (default), every returned value must be grounded in facts stated on - # the page; fields that cannot be supported by the page are returned as - # null/empty. When false, the model may make reasonable inferences and derivations - # from the page content (e.g. ideal customer, competitor analysis, - # recommendations) while keeping verifiable specifics (names, quotes, URLs, dates, - # metrics) faithful to the source. + # When true, every returned value must be grounded in facts stated on the page; + # fields that cannot be supported by the page are returned as null/empty. When + # false (default), the model may make reasonable inferences and derivations from + # the page content (e.g. ideal customer, competitor analysis, recommendations) + # while keeping verifiable specifics (names, quotes, URLs, dates, metrics) + # faithful to the source. # # @return [Boolean, nil] optional :fact_check, ContextDev::Internal::Type::Boolean, api_name: :factCheck @@ -54,7 +54,7 @@ class WebExtractParams < ContextDev::Internal::Type::BaseModel # @!attribute max_age_ms # Return cached scrape results if a prior scrape for the same parameters is - # younger than this many milliseconds. + # younger than this many milliseconds. Defaults to 7 days (604800000 ms). # # @return [Integer, nil] optional :max_age_ms, Integer, api_name: :maxAgeMs @@ -93,7 +93,7 @@ class WebExtractParams < ContextDev::Internal::Type::BaseModel # # @param url [String] The starting website URL to crawl and extract from. Must include http:// or http # - # @param fact_check [Boolean] When true (default), every returned value must be grounded in facts stated on th + # @param fact_check [Boolean] When true, every returned value must be grounded in facts stated on the page; fi # # @param follow_subdomains [Boolean] When true, follow links on subdomains of the starting URL's domain. # diff --git a/lib/context_dev/resources/web.rb b/lib/context_dev/resources/web.rb index dba716d5..573aafce 100644 --- a/lib/context_dev/resources/web.rb +++ b/lib/context_dev/resources/web.rb @@ -6,10 +6,8 @@ class Web # Some parameter documentations has been truncated, see # {ContextDev::Models::WebExtractParams} for more details. # - # Crawl a website, convert pages to Markdown using the scrape cache, and extract - # structured data into the provided JSON Schema. The schema must describe the - # response data object. This endpoint does not accept targeted page-type - # selection. + # Crawl a website, use the provided JSON Schema and instructions to prioritize + # relevant internal links, and extract structured data from the selected pages. # # @overload extract(schema:, url:, fact_check: nil, follow_subdomains: nil, include_frames: nil, instructions: nil, max_age_ms: nil, pdf: nil, stop_after_ms: nil, timeout_ms: nil, wait_for_ms: nil, request_options: {}) # @@ -17,7 +15,7 @@ class Web # # @param url [String] The starting website URL to crawl and extract from. Must include http:// or http # - # @param fact_check [Boolean] When true (default), every returned value must be grounded in facts stated on th + # @param fact_check [Boolean] When true, every returned value must be grounded in facts stated on the page; fi # # @param follow_subdomains [Boolean] When true, follow links on subdomains of the starting URL's domain. # diff --git a/lib/context_dev/version.rb b/lib/context_dev/version.rb index 9a2b056b..038a158c 100644 --- a/lib/context_dev/version.rb +++ b/lib/context_dev/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ContextDev - VERSION = "1.25.0" + VERSION = "1.26.0" end diff --git a/rbi/context_dev/models/web_extract_params.rbi b/rbi/context_dev/models/web_extract_params.rbi index 97e242b1..acb0c510 100644 --- a/rbi/context_dev/models/web_extract_params.rbi +++ b/rbi/context_dev/models/web_extract_params.rbi @@ -22,12 +22,12 @@ module ContextDev sig { returns(String) } attr_accessor :url - # When true (default), every returned value must be grounded in facts stated on - # the page; fields that cannot be supported by the page are returned as - # null/empty. When false, the model may make reasonable inferences and derivations - # from the page content (e.g. ideal customer, competitor analysis, - # recommendations) while keeping verifiable specifics (names, quotes, URLs, dates, - # metrics) faithful to the source. + # When true, every returned value must be grounded in facts stated on the page; + # fields that cannot be supported by the page are returned as null/empty. When + # false (default), the model may make reasonable inferences and derivations from + # the page content (e.g. ideal customer, competitor analysis, recommendations) + # while keeping verifiable specifics (names, quotes, URLs, dates, metrics) + # faithful to the source. sig { returns(T.nilable(T::Boolean)) } attr_reader :fact_check @@ -57,7 +57,7 @@ module ContextDev attr_writer :instructions # Return cached scrape results if a prior scrape for the same parameters is - # younger than this many milliseconds. + # younger than this many milliseconds. Defaults to 7 days (604800000 ms). sig { returns(T.nilable(Integer)) } attr_reader :max_age_ms @@ -118,12 +118,12 @@ module ContextDev # The starting website URL to crawl and extract from. Must include http:// or # https://. url:, - # When true (default), every returned value must be grounded in facts stated on - # the page; fields that cannot be supported by the page are returned as - # null/empty. When false, the model may make reasonable inferences and derivations - # from the page content (e.g. ideal customer, competitor analysis, - # recommendations) while keeping verifiable specifics (names, quotes, URLs, dates, - # metrics) faithful to the source. + # When true, every returned value must be grounded in facts stated on the page; + # fields that cannot be supported by the page are returned as null/empty. When + # false (default), the model may make reasonable inferences and derivations from + # the page content (e.g. ideal customer, competitor analysis, recommendations) + # while keeping verifiable specifics (names, quotes, URLs, dates, metrics) + # faithful to the source. fact_check: nil, # When true, follow links on subdomains of the starting URL's domain. follow_subdomains: nil, @@ -133,7 +133,7 @@ module ContextDev # interpret fields in the schema. instructions: nil, # Return cached scrape results if a prior scrape for the same parameters is - # younger than this many milliseconds. + # younger than this many milliseconds. Defaults to 7 days (604800000 ms). max_age_ms: nil, pdf: nil, # Soft time budget for the crawl in milliseconds. diff --git a/rbi/context_dev/resources/web.rbi b/rbi/context_dev/resources/web.rbi index 92d7ba1e..de0d342b 100644 --- a/rbi/context_dev/resources/web.rbi +++ b/rbi/context_dev/resources/web.rbi @@ -3,10 +3,8 @@ module ContextDev module Resources class Web - # Crawl a website, convert pages to Markdown using the scrape cache, and extract - # structured data into the provided JSON Schema. The schema must describe the - # response data object. This endpoint does not accept targeted page-type - # selection. + # Crawl a website, use the provided JSON Schema and instructions to prioritize + # relevant internal links, and extract structured data from the selected pages. sig do params( schema: T::Hash[Symbol, T.anything], @@ -31,12 +29,12 @@ module ContextDev # The starting website URL to crawl and extract from. Must include http:// or # https://. url:, - # When true (default), every returned value must be grounded in facts stated on - # the page; fields that cannot be supported by the page are returned as - # null/empty. When false, the model may make reasonable inferences and derivations - # from the page content (e.g. ideal customer, competitor analysis, - # recommendations) while keeping verifiable specifics (names, quotes, URLs, dates, - # metrics) faithful to the source. + # When true, every returned value must be grounded in facts stated on the page; + # fields that cannot be supported by the page are returned as null/empty. When + # false (default), the model may make reasonable inferences and derivations from + # the page content (e.g. ideal customer, competitor analysis, recommendations) + # while keeping verifiable specifics (names, quotes, URLs, dates, metrics) + # faithful to the source. fact_check: nil, # When true, follow links on subdomains of the starting URL's domain. follow_subdomains: nil, @@ -46,7 +44,7 @@ module ContextDev # interpret fields in the schema. instructions: nil, # Return cached scrape results if a prior scrape for the same parameters is - # younger than this many milliseconds. + # younger than this many milliseconds. Defaults to 7 days (604800000 ms). max_age_ms: nil, pdf: nil, # Soft time budget for the crawl in milliseconds.