context.dev 0.3.0 → 0.4.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: 624b8a10e8f541fca46b1596a261404653caa94c5c69a61286b9d4af8c625256
4
- data.tar.gz: 2c67f2863d422fca17dd9bdfadb721b9766495618f1e4a63c8f4619643314f0a
3
+ metadata.gz: 9d135a3a7a66e732d5809538a672f4f3ec1c4562019235e2b9dedf6ab6957209
4
+ data.tar.gz: d2af40fda8155d75867e641b825b9b6c90901c5f49612e5cc5c951d3b70d81bd
5
5
  SHA512:
6
- metadata.gz: 6329ab55efe38ad60859190f25c39d3a00a3a94ad5e751925d96b13d16b2b8f31ec1c954099763722057e0929e7b8131bcb24409950c5c4b0c12bdae12ddcf8b
7
- data.tar.gz: 3ca0adf29ff5fe4bbade0c00624fde30121ff3465592932fea10a4f5db31198beb47e50481f07dc697ffa6d0c0ae7302ccb4755bdcfab5f2ccda9213df1737b4
6
+ metadata.gz: 8cd3d9204c84b3a288179e8974e003abbc6d60994d06577ea8f8e49b8d1f3340bdb62ec21cec9b9d8d633105acf22aad41e16ab288159d2d6bb095445801d3ab
7
+ data.tar.gz: e3e146ce74f8c8aeef7d684a776be0c92b5d99d53789881f8398e5ac4aaae33bc56b58b279674eeb9852bea5f28d5eb7ddc52dfff475c9fb1530a16a885e1b3f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0 (2026-03-25)
4
+
5
+ Full Changelog: [v0.3.0...v0.4.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v0.3.0...v0.4.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([0891a8f](https://github.com/context-dot-dev/context-ruby-sdk/commit/0891a8f97fa7ca1b8e49dbc5d383763406ac85ae))
10
+
3
11
  ## 0.3.0 (2026-03-25)
4
12
 
5
13
  Full Changelog: [v0.2.1...v0.3.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v0.2.1...v0.3.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", "~> 0.3.0"
29
+ gem "context.dev", "~> 0.4.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -14,12 +14,21 @@ module ContextDev
14
14
  # @return [String]
15
15
  required :domain, String
16
16
 
17
- # @!method initialize(domain:, request_options: {})
17
+ # @!attribute max_links
18
+ # Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
19
+ # Minimum is 1, maximum is 100,000.
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :max_links, Integer
23
+
24
+ # @!method initialize(domain:, max_links: nil, request_options: {})
18
25
  # Some parameter documentations has been truncated, see
19
26
  # {ContextDev::Models::WebWebScrapeSitemapParams} for more details.
20
27
  #
21
28
  # @param domain [String] Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be auto
22
29
  #
30
+ # @param max_links [Integer] Maximum number of links to return from the sitemap crawl. Defaults to 10,000. Mi
31
+ #
23
32
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
24
33
  end
25
34
  end
@@ -132,10 +132,12 @@ module ContextDev
132
132
  # Supports sitemap index files (recursive), parallel fetching with concurrency
133
133
  # control, deduplication, and filters out non-page resources (images, PDFs, etc.).
134
134
  #
135
- # @overload web_scrape_sitemap(domain:, request_options: {})
135
+ # @overload web_scrape_sitemap(domain:, max_links: nil, request_options: {})
136
136
  #
137
137
  # @param domain [String] Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be auto
138
138
  #
139
+ # @param max_links [Integer] Maximum number of links to return from the sitemap crawl. Defaults to 10,000. Mi
140
+ #
139
141
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil]
140
142
  #
141
143
  # @return [ContextDev::Models::WebWebScrapeSitemapResponse]
@@ -147,7 +149,7 @@ module ContextDev
147
149
  @client.request(
148
150
  method: :get,
149
151
  path: "web/scrape/sitemap",
150
- query: query,
152
+ query: query.transform_keys(max_links: "maxLinks"),
151
153
  model: ContextDev::Models::WebWebScrapeSitemapResponse,
152
154
  options: options
153
155
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContextDev
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
@@ -19,9 +19,18 @@ module ContextDev
19
19
  sig { returns(String) }
20
20
  attr_accessor :domain
21
21
 
22
+ # Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
23
+ # Minimum is 1, maximum is 100,000.
24
+ sig { returns(T.nilable(Integer)) }
25
+ attr_reader :max_links
26
+
27
+ sig { params(max_links: Integer).void }
28
+ attr_writer :max_links
29
+
22
30
  sig do
23
31
  params(
24
32
  domain: String,
33
+ max_links: Integer,
25
34
  request_options: ContextDev::RequestOptions::OrHash
26
35
  ).returns(T.attached_class)
27
36
  end
@@ -29,13 +38,20 @@ module ContextDev
29
38
  # Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
30
39
  # automatically normalized and validated.
31
40
  domain:,
41
+ # Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
42
+ # Minimum is 1, maximum is 100,000.
43
+ max_links: nil,
32
44
  request_options: {}
33
45
  )
34
46
  end
35
47
 
36
48
  sig do
37
49
  override.returns(
38
- { domain: String, request_options: ContextDev::RequestOptions }
50
+ {
51
+ domain: String,
52
+ max_links: Integer,
53
+ request_options: ContextDev::RequestOptions
54
+ }
39
55
  )
40
56
  end
41
57
  def to_hash
@@ -101,6 +101,7 @@ module ContextDev
101
101
  sig do
102
102
  params(
103
103
  domain: String,
104
+ max_links: Integer,
104
105
  request_options: ContextDev::RequestOptions::OrHash
105
106
  ).returns(ContextDev::Models::WebWebScrapeSitemapResponse)
106
107
  end
@@ -108,6 +109,9 @@ module ContextDev
108
109
  # Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
109
110
  # automatically normalized and validated.
110
111
  domain:,
112
+ # Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
113
+ # Minimum is 1, maximum is 100,000.
114
+ max_links: nil,
111
115
  request_options: {}
112
116
  )
113
117
  end
@@ -1,7 +1,8 @@
1
1
  module ContextDev
2
2
  module Models
3
3
  type web_web_scrape_sitemap_params =
4
- { domain: String } & ContextDev::Internal::Type::request_parameters
4
+ { domain: String, max_links: Integer }
5
+ & ContextDev::Internal::Type::request_parameters
5
6
 
6
7
  class WebWebScrapeSitemapParams < ContextDev::Internal::Type::BaseModel
7
8
  extend ContextDev::Internal::Type::RequestParameters::Converter
@@ -9,13 +10,19 @@ module ContextDev
9
10
 
10
11
  attr_accessor domain: String
11
12
 
13
+ attr_reader max_links: Integer?
14
+
15
+ def max_links=: (Integer) -> Integer
16
+
12
17
  def initialize: (
13
18
  domain: String,
19
+ ?max_links: Integer,
14
20
  ?request_options: ContextDev::request_opts
15
21
  ) -> void
16
22
 
17
23
  def to_hash: -> {
18
24
  domain: String,
25
+ max_links: Integer,
19
26
  request_options: ContextDev::RequestOptions
20
27
  }
21
28
  end
@@ -29,6 +29,7 @@ module ContextDev
29
29
 
30
30
  def web_scrape_sitemap: (
31
31
  domain: String,
32
+ ?max_links: Integer,
32
33
  ?request_options: ContextDev::request_opts
33
34
  ) -> ContextDev::Models::WebWebScrapeSitemapResponse
34
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Context Dev