firecrawl-sdk 1.15.0 → 1.17.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: 7c7e11ff05113a301d334412a0aea3f1d421aa93cd45756c0546193d1cc3839e
4
- data.tar.gz: 46b8f0dc763344c1372212a1e612812292c67efc6042a3ff5a45c66a4e63dcee
3
+ metadata.gz: d4692141ed256c6cf62171578f7bfdbb852ddb915a60b48ba520a73ecc8885b1
4
+ data.tar.gz: ff206e069d080e13598824ff3faa7eaf86b89b2cacbc051cd53aa861b20d1977
5
5
  SHA512:
6
- metadata.gz: 7f29c1250ccac6a0b7aece8951bc655dd3b55aee9f4d18dd66a987829514490c350dde4865527e0a48bf52fa1362c5d2d7bcd0ae168b319bbff51c824148d190
7
- data.tar.gz: 1e907fd282ee7314cafe5223fc63571ada85ce45381de830f99baf2dcf41c7cb9b45d4a5ad45863cb1b1d0b812918a1bcda778e57886eea12811b421196932f9
6
+ metadata.gz: 83a86911be8bfd5b9736bbfbe610c40934b31a9e6da25de714972be4399c9374421955e2b0ef5e41b6a15c0829c3c3ff30dbc1004a75c9a6210182f0df620399
7
+ data.tar.gz: 9ca272944fc87bf14462b30e0f7f99239a1253ca11c88c1d7393469f52491362e0a72f7c5e354467e0f154c1e780aa08732e162fdc2345832ffe0d4779f98bc9
@@ -129,6 +129,10 @@ module Firecrawl
129
129
 
130
130
  # Search GitHub research content.
131
131
  #
132
+ # @deprecated Stops responding after 2026-11-03. Use the developer index at
133
+ # GET or POST /v2/search/developer, which this SDK does not wrap yet, so
134
+ # call it directly. It does not carry over the score breakdown or the
135
+ # web fallback results.
132
136
  # @param query_text [String] GitHub query
133
137
  # @param options [Hash] optional query parameters
134
138
  # @return [Hash]
@@ -463,6 +467,20 @@ module Firecrawl
463
467
  Models::AgentStatusResponse.new(raw)
464
468
  end
465
469
 
470
+ # Lists agent tasks, most recent first.
471
+ #
472
+ # Pages are fixed at 20 runs. To fetch the next page, pass the before
473
+ # value from the previous page's next URL. This method does not
474
+ # auto-paginate.
475
+ #
476
+ # @param before [Integer, nil] only return agent runs created before this
477
+ # unix millisecond timestamp
478
+ # @return [Models::AgentListResponse]
479
+ def list_agents(before: nil)
480
+ raw = @http.get("/v2/agent#{query(before: before)}")
481
+ Models::AgentListResponse.new(raw)
482
+ end
483
+
466
484
  # Runs an agent task and waits for completion (auto-polling).
467
485
  #
468
486
  # @param options [Models::AgentOptions] agent configuration
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Firecrawl
4
+ module Models
5
+ # Response from listing agent tasks.
6
+ class AgentListResponse
7
+ attr_reader :success, :agents, :next, :error
8
+
9
+ def initialize(raw)
10
+ @success = raw["success"]
11
+ @agents = raw["agents"]
12
+ @next = raw["next"]
13
+ @error = raw["error"]
14
+ end
15
+
16
+ def to_s
17
+ "AgentListResponse{success=#{success}, agents=#{agents&.size}}"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -5,7 +5,7 @@ module Firecrawl
5
5
  # Options for a web search request.
6
6
  class SearchOptions
7
7
  FIELDS = %i[
8
- sources categories include_domains exclude_domains limit tbs location
8
+ sources categories include_domains exclude_domains limit tbs location country
9
9
  ignore_invalid_urls timeout highlights scrape_options integration enterprise
10
10
  ].freeze
11
11
 
@@ -24,6 +24,7 @@ module Firecrawl
24
24
  "limit" => limit,
25
25
  "tbs" => tbs,
26
26
  "location" => location,
27
+ "country" => country,
27
28
  "ignoreInvalidURLs" => ignore_invalid_urls,
28
29
  "timeout" => timeout,
29
30
  "highlights" => highlights,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firecrawl
4
- VERSION = "1.15.0"
4
+ VERSION = "1.17.0"
5
5
  end
data/lib/firecrawl.rb CHANGED
@@ -24,6 +24,7 @@ require_relative "firecrawl/models/parse_file"
24
24
  require_relative "firecrawl/models/parse_options"
25
25
  require_relative "firecrawl/models/agent_options"
26
26
  require_relative "firecrawl/models/agent_response"
27
+ require_relative "firecrawl/models/agent_list_response"
27
28
  require_relative "firecrawl/models/agent_status_response"
28
29
  require_relative "firecrawl/models/agent_trace_response"
29
30
  require_relative "firecrawl/models/agent_snapshot_response"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firecrawl-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firecrawl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-26 00:00:00.000000000 Z
11
+ date: 2026-09-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A type-safe Ruby client for the Firecrawl v2 API. Supports scraping,
14
14
  crawling, batch scraping, URL mapping, web search, and AI agent operations.
@@ -24,6 +24,7 @@ files:
24
24
  - lib/firecrawl/client.rb
25
25
  - lib/firecrawl/errors.rb
26
26
  - lib/firecrawl/http_client.rb
27
+ - lib/firecrawl/models/agent_list_response.rb
27
28
  - lib/firecrawl/models/agent_options.rb
28
29
  - lib/firecrawl/models/agent_response.rb
29
30
  - lib/firecrawl/models/agent_snapshot_response.rb