context.dev 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1a0062418eca906ad8f308d3ab6541bd3a6c9f0b8bc1805b58a978e7aea61c2
4
- data.tar.gz: a02eb3ec2fe28d611a14d976810b5ff51c2e2c49e432cdea9d89661eaae2de9c
3
+ metadata.gz: bb1eb49bd2c33309910f98a48b129a07a32707a85e5a832277226ee555d22780
4
+ data.tar.gz: 4c7410af11f9f6f69145a70f37e1c613fe9a90d6b2ea99acc061c10ae9119716
5
5
  SHA512:
6
- metadata.gz: 7b3c3c7ff3f1e75e6199c810205c287cb0b1e03ff2cf332a2392e5e5880a3722090959d96b39bd39dddefd1c4961faf569d03c10fbcda26e9231ad67875dd45b
7
- data.tar.gz: 5aef11c0e5b365ad204eced64e126807a96dfe32351da7940a2f780c07c461bcf0e2e8542e2e2cbfc8af6fa41d49864788b9979101e3d42e8920fb853c4ce5da
6
+ metadata.gz: 13e5b25d98899a354e90fdf559ea5b3ed8d1140a543f538a7909691a92ecb49917e87398f2da8b3759aad2751487c02e4b89e4738f15febe9bc10995825c4660
7
+ data.tar.gz: b82dee66dd6c01d5a4edb347097a978708714164cbe4460b7da394f0440b297afcc602bf52cc3cf597e3fe8638559b953bafe0288512e883f1d3b2957fc62cea
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.26.0 (2026-06-01)
4
+
5
+ Full Changelog: [v1.25.0...v1.26.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.25.0...v1.26.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([d442168](https://github.com/context-dot-dev/context-ruby-sdk/commit/d442168b67accce12463e36f03630f155c1c7be3))
10
+ * **api:** api update ([f3a97c1](https://github.com/context-dot-dev/context-ruby-sdk/commit/f3a97c19ef01be5e6cf1ce7ecfa26c972edfdf33))
11
+ * **api:** api update ([8d8abf7](https://github.com/context-dot-dev/context-ruby-sdk/commit/8d8abf7c1600bce17ea26aa245f41b2e3199f722))
12
+
3
13
  ## 1.25.0 (2026-05-31)
4
14
 
5
15
  Full Changelog: [v1.24.0...v1.25.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.24.0...v1.25.0)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "context.dev", "~> 1.25.0"
29
+ gem "context.dev", "~> 1.26.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -23,12 +23,12 @@ module ContextDev
23
23
  required :url, String
24
24
 
25
25
  # @!attribute fact_check
26
- # When true (default), every returned value must be grounded in facts stated on
27
- # the page; fields that cannot be supported by the page are returned as
28
- # null/empty. When false, the model may make reasonable inferences and derivations
29
- # from the page content (e.g. ideal customer, competitor analysis,
30
- # recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
31
- # metrics) faithful to the source.
26
+ # When true, every returned value must be grounded in facts stated on the page;
27
+ # fields that cannot be supported by the page are returned as null/empty. When
28
+ # false (default), the model may make reasonable inferences and derivations from
29
+ # the page content (e.g. ideal customer, competitor analysis, recommendations)
30
+ # while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
31
+ # faithful to the source.
32
32
  #
33
33
  # @return [Boolean, nil]
34
34
  optional :fact_check, ContextDev::Internal::Type::Boolean, api_name: :factCheck
@@ -54,7 +54,7 @@ module ContextDev
54
54
 
55
55
  # @!attribute max_age_ms
56
56
  # Return cached scrape results if a prior scrape for the same parameters is
57
- # younger than this many milliseconds.
57
+ # younger than this many milliseconds. Defaults to 7 days (604800000 ms).
58
58
  #
59
59
  # @return [Integer, nil]
60
60
  optional :max_age_ms, Integer, api_name: :maxAgeMs
@@ -93,7 +93,7 @@ module ContextDev
93
93
  #
94
94
  # @param url [String] The starting website URL to crawl and extract from. Must include http:// or http
95
95
  #
96
- # @param fact_check [Boolean] When true (default), every returned value must be grounded in facts stated on th
96
+ # @param fact_check [Boolean] When true, every returned value must be grounded in facts stated on the page; fi
97
97
  #
98
98
  # @param follow_subdomains [Boolean] When true, follow links on subdomains of the starting URL's domain.
99
99
  #
@@ -6,10 +6,8 @@ module ContextDev
6
6
  # Some parameter documentations has been truncated, see
7
7
  # {ContextDev::Models::WebExtractParams} for more details.
8
8
  #
9
- # Crawl a website, convert pages to Markdown using the scrape cache, and extract
10
- # structured data into the provided JSON Schema. The schema must describe the
11
- # response data object. This endpoint does not accept targeted page-type
12
- # selection.
9
+ # Crawl a website, use the provided JSON Schema and instructions to prioritize
10
+ # relevant internal links, and extract structured data from the selected pages.
13
11
  #
14
12
  # @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: {})
15
13
  #
@@ -17,7 +15,7 @@ module ContextDev
17
15
  #
18
16
  # @param url [String] The starting website URL to crawl and extract from. Must include http:// or http
19
17
  #
20
- # @param fact_check [Boolean] When true (default), every returned value must be grounded in facts stated on th
18
+ # @param fact_check [Boolean] When true, every returned value must be grounded in facts stated on the page; fi
21
19
  #
22
20
  # @param follow_subdomains [Boolean] When true, follow links on subdomains of the starting URL's domain.
23
21
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContextDev
4
- VERSION = "1.25.0"
4
+ VERSION = "1.26.0"
5
5
  end
@@ -22,12 +22,12 @@ module ContextDev
22
22
  sig { returns(String) }
23
23
  attr_accessor :url
24
24
 
25
- # When true (default), every returned value must be grounded in facts stated on
26
- # the page; fields that cannot be supported by the page are returned as
27
- # null/empty. When false, the model may make reasonable inferences and derivations
28
- # from the page content (e.g. ideal customer, competitor analysis,
29
- # recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
30
- # metrics) faithful to the source.
25
+ # When true, every returned value must be grounded in facts stated on the page;
26
+ # fields that cannot be supported by the page are returned as null/empty. When
27
+ # false (default), the model may make reasonable inferences and derivations from
28
+ # the page content (e.g. ideal customer, competitor analysis, recommendations)
29
+ # while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
30
+ # faithful to the source.
31
31
  sig { returns(T.nilable(T::Boolean)) }
32
32
  attr_reader :fact_check
33
33
 
@@ -57,7 +57,7 @@ module ContextDev
57
57
  attr_writer :instructions
58
58
 
59
59
  # Return cached scrape results if a prior scrape for the same parameters is
60
- # younger than this many milliseconds.
60
+ # younger than this many milliseconds. Defaults to 7 days (604800000 ms).
61
61
  sig { returns(T.nilable(Integer)) }
62
62
  attr_reader :max_age_ms
63
63
 
@@ -118,12 +118,12 @@ module ContextDev
118
118
  # The starting website URL to crawl and extract from. Must include http:// or
119
119
  # https://.
120
120
  url:,
121
- # When true (default), every returned value must be grounded in facts stated on
122
- # the page; fields that cannot be supported by the page are returned as
123
- # null/empty. When false, the model may make reasonable inferences and derivations
124
- # from the page content (e.g. ideal customer, competitor analysis,
125
- # recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
126
- # metrics) faithful to the source.
121
+ # When true, every returned value must be grounded in facts stated on the page;
122
+ # fields that cannot be supported by the page are returned as null/empty. When
123
+ # false (default), the model may make reasonable inferences and derivations from
124
+ # the page content (e.g. ideal customer, competitor analysis, recommendations)
125
+ # while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
126
+ # faithful to the source.
127
127
  fact_check: nil,
128
128
  # When true, follow links on subdomains of the starting URL's domain.
129
129
  follow_subdomains: nil,
@@ -133,7 +133,7 @@ module ContextDev
133
133
  # interpret fields in the schema.
134
134
  instructions: nil,
135
135
  # Return cached scrape results if a prior scrape for the same parameters is
136
- # younger than this many milliseconds.
136
+ # younger than this many milliseconds. Defaults to 7 days (604800000 ms).
137
137
  max_age_ms: nil,
138
138
  pdf: nil,
139
139
  # Soft time budget for the crawl in milliseconds.
@@ -3,10 +3,8 @@
3
3
  module ContextDev
4
4
  module Resources
5
5
  class Web
6
- # Crawl a website, convert pages to Markdown using the scrape cache, and extract
7
- # structured data into the provided JSON Schema. The schema must describe the
8
- # response data object. This endpoint does not accept targeted page-type
9
- # selection.
6
+ # Crawl a website, use the provided JSON Schema and instructions to prioritize
7
+ # relevant internal links, and extract structured data from the selected pages.
10
8
  sig do
11
9
  params(
12
10
  schema: T::Hash[Symbol, T.anything],
@@ -31,12 +29,12 @@ module ContextDev
31
29
  # The starting website URL to crawl and extract from. Must include http:// or
32
30
  # https://.
33
31
  url:,
34
- # When true (default), every returned value must be grounded in facts stated on
35
- # the page; fields that cannot be supported by the page are returned as
36
- # null/empty. When false, the model may make reasonable inferences and derivations
37
- # from the page content (e.g. ideal customer, competitor analysis,
38
- # recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
39
- # metrics) faithful to the source.
32
+ # When true, every returned value must be grounded in facts stated on the page;
33
+ # fields that cannot be supported by the page are returned as null/empty. When
34
+ # false (default), the model may make reasonable inferences and derivations from
35
+ # the page content (e.g. ideal customer, competitor analysis, recommendations)
36
+ # while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
37
+ # faithful to the source.
40
38
  fact_check: nil,
41
39
  # When true, follow links on subdomains of the starting URL's domain.
42
40
  follow_subdomains: nil,
@@ -46,7 +44,7 @@ module ContextDev
46
44
  # interpret fields in the schema.
47
45
  instructions: nil,
48
46
  # Return cached scrape results if a prior scrape for the same parameters is
49
- # younger than this many milliseconds.
47
+ # younger than this many milliseconds. Defaults to 7 days (604800000 ms).
50
48
  max_age_ms: nil,
51
49
  pdf: nil,
52
50
  # Soft time budget for the crawl in milliseconds.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Context Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-31 00:00:00.000000000 Z
11
+ date: 2026-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi