context.dev 0.2.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: a11e2a19a4e5223960b4d92864c4320f3626a693f335e7ea543b994a94d86694
4
- data.tar.gz: fe0df6795e552a20c4821be98ef5a6ff2c1093bc1c88de5708f9353a501af141
3
+ metadata.gz: 9d135a3a7a66e732d5809538a672f4f3ec1c4562019235e2b9dedf6ab6957209
4
+ data.tar.gz: d2af40fda8155d75867e641b825b9b6c90901c5f49612e5cc5c951d3b70d81bd
5
5
  SHA512:
6
- metadata.gz: de1a54511bcc1b82e0bc5a2ae613aff300cec59e3499b24061614e6115845f7c19b4744ad0a5f685f448c8e152a3fc221641cd0786df5edd98e558586162fd54
7
- data.tar.gz: 981e3c321edf7839a3882d8c634a2ef3a66ea1e938415de2565f49fd974824669238b150714aae9ab744011f0756443c6452f12cfa5c630da7c25e43971c3fd8
6
+ metadata.gz: 8cd3d9204c84b3a288179e8974e003abbc6d60994d06577ea8f8e49b8d1f3340bdb62ec21cec9b9d8d633105acf22aad41e16ab288159d2d6bb095445801d3ab
7
+ data.tar.gz: e3e146ce74f8c8aeef7d684a776be0c92b5d99d53789881f8398e5ac4aaae33bc56b58b279674eeb9852bea5f28d5eb7ddc52dfff475c9fb1530a16a885e1b3f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
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
+
11
+ ## 0.3.0 (2026-03-25)
12
+
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)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([ff1db16](https://github.com/context-dot-dev/context-ruby-sdk/commit/ff1db1692a06315279532c93a05722223cb2c7ee))
18
+ * **api:** api update ([97eac17](https://github.com/context-dot-dev/context-ruby-sdk/commit/97eac17686bff356d4d5b6ad6438beb24c05b05a))
19
+ * **api:** manual updates ([d120a5d](https://github.com/context-dot-dev/context-ruby-sdk/commit/d120a5dde6665acced2c75394beb6910389e344e))
20
+ * **api:** manual updates ([fe32a5e](https://github.com/context-dot-dev/context-ruby-sdk/commit/fe32a5e431bf152d8b0966f9927efcd8ebc3b5c1))
21
+
22
+
23
+ ### Chores
24
+
25
+ * configure new SDK language ([8d24989](https://github.com/context-dot-dev/context-ruby-sdk/commit/8d2498986b1358432204720208f1a9b18d0f53f0))
26
+ * **internal:** tweak CI branches ([2b124b9](https://github.com/context-dot-dev/context-ruby-sdk/commit/2b124b9fd6a5eeb81fa445afc448ce4819fc077e))
27
+ * sync repo ([663ae2b](https://github.com/context-dot-dev/context-ruby-sdk/commit/663ae2b31199fd8a6b7e37161111d2c37a8d76df))
28
+ * update SDK settings ([8a92059](https://github.com/context-dot-dev/context-ruby-sdk/commit/8a920591a4a5ef301d26d19ca2a985ac7c0d8efd))
29
+ * update SDK settings ([3c49703](https://github.com/context-dot-dev/context-ruby-sdk/commit/3c49703a25e8951d07f597cc16b1abc03b248d84))
30
+
31
+ ## 0.2.1 (2026-03-25)
32
+
33
+ Full Changelog: [v0.2.0...v0.2.1](https://github.com/context-dot-dev/ruby-sdk/compare/v0.2.0...v0.2.1)
34
+
35
+ ### Chores
36
+
37
+ * sync repo ([00fbb10](https://github.com/context-dot-dev/ruby-sdk/commit/00fbb10a2bf3f189e7e0da59238e1effcaf7b9eb))
38
+ * update SDK settings ([2effe2a](https://github.com/context-dot-dev/ruby-sdk/commit/2effe2a7cd8e7f7664590f5a094c6f9598b1866e))
39
+
40
+ ## 0.2.1 (2026-03-25)
41
+
42
+ Full Changelog: [v0.2.0...v0.2.1](https://github.com/context-dot-dev/ruby-sdk/compare/v0.2.0...v0.2.1)
43
+
44
+ ### Chores
45
+
46
+ * sync repo ([e3eb15b](https://github.com/context-dot-dev/ruby-sdk/commit/e3eb15bd44f41866d57904b62e4d3dc6c37772d3))
47
+ * update SDK settings ([84a6c7d](https://github.com/context-dot-dev/ruby-sdk/commit/84a6c7d4f5752a044f911caf99c20fbb3eb45240))
48
+
3
49
  ## 0.2.0 (2026-03-18)
4
50
 
5
51
  Full Changelog: [v0.1.0...v0.2.0](https://github.com/brand-dot-dev/context-ruby-sdk/compare/v0.1.0...v0.2.0)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Context Dev Ruby API library
2
2
 
3
- The Context Dev Ruby library provides convenient access to the Context Dev REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/brand-dot-dev/context-ruby-sdk#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
3
+ The Context Dev Ruby library provides convenient access to the Context Dev REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/context-dot-dev/context-ruby-sdk#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
4
4
 
5
5
  It is generated with [Stainless](https://www.stainless.com/).
6
6
 
@@ -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.2.0"
29
+ gem "context.dev", "~> 0.4.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -241,4 +241,4 @@ Ruby 3.2.0 or higher.
241
241
 
242
242
  ## Contributing
243
243
 
244
- See [the contributing documentation](https://github.com/brand-dot-dev/context-ruby-sdk/tree/main/CONTRIBUTING.md).
244
+ See [the contributing documentation](https://github.com/context-dot-dev/context-ruby-sdk/tree/main/CONTRIBUTING.md).
@@ -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
@@ -65,7 +65,7 @@ module ContextDev
65
65
  )
66
66
  end
67
67
 
68
- # Beta feature: Extract product information from a brand's website. Brand.dev will
68
+ # Beta feature: Extract product information from a brand's website. We will
69
69
  # analyze the website and return a list of products with details such as name,
70
70
  # description, image, pricing, features, and more.
71
71
  #
@@ -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.2.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
@@ -51,7 +51,7 @@ module ContextDev
51
51
  )
52
52
  end
53
53
 
54
- # Beta feature: Extract product information from a brand's website. Brand.dev will
54
+ # Beta feature: Extract product information from a brand's website. We will
55
55
  # analyze the website and return a list of products with details such as name,
56
56
  # description, image, pricing, features, and more.
57
57
  sig do
@@ -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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.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-03-18 00:00:00.000000000 Z
11
+ date: 2026-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -256,7 +256,7 @@ homepage: https://gemdocs.org/gems/context.dev
256
256
  licenses: []
257
257
  metadata:
258
258
  homepage_uri: https://gemdocs.org/gems/context.dev
259
- source_code_uri: https://github.com/brand-dot-dev/context-ruby-sdk
259
+ source_code_uri: https://github.com/context-dot-dev/context-ruby-sdk
260
260
  rubygems_mfa_required: 'false'
261
261
  post_install_message:
262
262
  rdoc_options: []