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 +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +1 -1
- data/lib/context_dev/models/web_extract_params.rb +8 -8
- data/lib/context_dev/resources/web.rb +3 -5
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/models/web_extract_params.rbi +14 -14
- data/rbi/context_dev/resources/web.rbi +9 -11
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb1eb49bd2c33309910f98a48b129a07a32707a85e5a832277226ee555d22780
|
|
4
|
+
data.tar.gz: 4c7410af11f9f6f69145a70f37e1c613fe9a90d6b2ea99acc061c10ae9119716
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -23,12 +23,12 @@ module ContextDev
|
|
|
23
23
|
required :url, String
|
|
24
24
|
|
|
25
25
|
# @!attribute fact_check
|
|
26
|
-
# When true
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
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
|
|
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,
|
|
10
|
-
#
|
|
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
|
|
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
|
#
|
data/lib/context_dev/version.rb
CHANGED
|
@@ -22,12 +22,12 @@ module ContextDev
|
|
|
22
22
|
sig { returns(String) }
|
|
23
23
|
attr_accessor :url
|
|
24
24
|
|
|
25
|
-
# When true
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
#
|
|
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
|
|
122
|
-
#
|
|
123
|
-
#
|
|
124
|
-
#
|
|
125
|
-
#
|
|
126
|
-
#
|
|
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,
|
|
7
|
-
#
|
|
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
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-06-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|