@mendable/firecrawl 4.10.0 → 4.11.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.
- package/dist/{chunk-GY35KXDS.js → chunk-X3D7QXG6.js} +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/{package-THA2MQX4.js → package-A5RBY34U.js} +1 -1
- package/package.json +1 -1
- package/src/v2/methods/agent.ts +2 -0
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@mendable/firecrawl-js",
|
|
11
|
-
version: "4.
|
|
11
|
+
version: "4.11.0",
|
|
12
12
|
description: "JavaScript SDK for Firecrawl API",
|
|
13
13
|
main: "dist/index.js",
|
|
14
14
|
types: "dist/index.d.ts",
|
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var require_package = __commonJS({
|
|
|
35
35
|
"package.json"(exports2, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
name: "@mendable/firecrawl-js",
|
|
38
|
-
version: "4.
|
|
38
|
+
version: "4.11.0",
|
|
39
39
|
description: "JavaScript SDK for Firecrawl API",
|
|
40
40
|
main: "dist/index.js",
|
|
41
41
|
types: "dist/index.d.ts",
|
|
@@ -840,6 +840,7 @@ function prepareAgentPayload(args) {
|
|
|
840
840
|
if (args.integration && args.integration.trim()) body.integration = args.integration.trim();
|
|
841
841
|
if (args.maxCredits !== null && args.maxCredits !== void 0) body.maxCredits = args.maxCredits;
|
|
842
842
|
if (args.strictConstrainToURLs !== null && args.strictConstrainToURLs !== void 0) body.strictConstrainToURLs = args.strictConstrainToURLs;
|
|
843
|
+
if (args.model !== null && args.model !== void 0) body.model = args.model;
|
|
843
844
|
return body;
|
|
844
845
|
}
|
|
845
846
|
async function startAgent(http, args) {
|
package/dist/index.d.cts
CHANGED
|
@@ -593,6 +593,7 @@ declare function prepareAgentPayload(args: {
|
|
|
593
593
|
integration?: string;
|
|
594
594
|
maxCredits?: number;
|
|
595
595
|
strictConstrainToURLs?: boolean;
|
|
596
|
+
model?: "spark-1-pro" | "spark-1-mini";
|
|
596
597
|
}): Record<string, unknown>;
|
|
597
598
|
declare function startAgent(http: HttpClient, args: Parameters<typeof prepareAgentPayload>[0]): Promise<AgentResponse>;
|
|
598
599
|
|
package/dist/index.d.ts
CHANGED
|
@@ -593,6 +593,7 @@ declare function prepareAgentPayload(args: {
|
|
|
593
593
|
integration?: string;
|
|
594
594
|
maxCredits?: number;
|
|
595
595
|
strictConstrainToURLs?: boolean;
|
|
596
|
+
model?: "spark-1-pro" | "spark-1-mini";
|
|
596
597
|
}): Record<string, unknown>;
|
|
597
598
|
declare function startAgent(http: HttpClient, args: Parameters<typeof prepareAgentPayload>[0]): Promise<AgentResponse>;
|
|
598
599
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_package
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X3D7QXG6.js";
|
|
4
4
|
|
|
5
5
|
// src/v2/utils/httpClient.ts
|
|
6
6
|
import axios from "axios";
|
|
@@ -721,6 +721,7 @@ function prepareAgentPayload(args) {
|
|
|
721
721
|
if (args.integration && args.integration.trim()) body.integration = args.integration.trim();
|
|
722
722
|
if (args.maxCredits !== null && args.maxCredits !== void 0) body.maxCredits = args.maxCredits;
|
|
723
723
|
if (args.strictConstrainToURLs !== null && args.strictConstrainToURLs !== void 0) body.strictConstrainToURLs = args.strictConstrainToURLs;
|
|
724
|
+
if (args.model !== null && args.model !== void 0) body.model = args.model;
|
|
724
725
|
return body;
|
|
725
726
|
}
|
|
726
727
|
async function startAgent(http, args) {
|
|
@@ -1333,7 +1334,7 @@ var FirecrawlApp = class {
|
|
|
1333
1334
|
if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
|
|
1334
1335
|
return process.env.npm_package_version;
|
|
1335
1336
|
}
|
|
1336
|
-
const packageJson = await import("./package-
|
|
1337
|
+
const packageJson = await import("./package-A5RBY34U.js");
|
|
1337
1338
|
return packageJson.default.version;
|
|
1338
1339
|
} catch (error) {
|
|
1339
1340
|
const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
|
package/package.json
CHANGED
package/src/v2/methods/agent.ts
CHANGED
|
@@ -11,6 +11,7 @@ function prepareAgentPayload(args: {
|
|
|
11
11
|
integration?: string;
|
|
12
12
|
maxCredits?: number;
|
|
13
13
|
strictConstrainToURLs?: boolean;
|
|
14
|
+
model?: "spark-1-pro" | "spark-1-mini";
|
|
14
15
|
}): Record<string, unknown> {
|
|
15
16
|
const body: Record<string, unknown> = {};
|
|
16
17
|
if (args.urls) body.urls = args.urls;
|
|
@@ -23,6 +24,7 @@ function prepareAgentPayload(args: {
|
|
|
23
24
|
if (args.integration && args.integration.trim()) body.integration = args.integration.trim();
|
|
24
25
|
if (args.maxCredits !== null && args.maxCredits !== undefined) body.maxCredits = args.maxCredits;
|
|
25
26
|
if (args.strictConstrainToURLs !== null && args.strictConstrainToURLs !== undefined) body.strictConstrainToURLs = args.strictConstrainToURLs;
|
|
27
|
+
if (args.model !== null && args.model !== undefined) body.model = args.model;
|
|
26
28
|
return body;
|
|
27
29
|
}
|
|
28
30
|
|