openclaw-smart-fetch 0.2.1 → 0.2.2
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/index.d.ts +20 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type IncludeRepliesOption = boolean | "extractors";
|
|
2
|
+
interface FetchToolConfig {
|
|
3
|
+
maxChars?: number;
|
|
4
|
+
timeoutMs?: number;
|
|
5
|
+
browser?: string;
|
|
6
|
+
os?: string;
|
|
7
|
+
removeImages?: boolean;
|
|
8
|
+
includeReplies?: IncludeRepliesOption;
|
|
9
|
+
batchConcurrency?: number;
|
|
10
|
+
}
|
|
11
|
+
interface FetchToolDefaults {
|
|
12
|
+
maxChars: number;
|
|
13
|
+
timeoutMs: number;
|
|
14
|
+
browser: string;
|
|
15
|
+
os: string;
|
|
16
|
+
removeImages: boolean;
|
|
17
|
+
includeReplies: IncludeRepliesOption;
|
|
18
|
+
batchConcurrency: number;
|
|
19
|
+
}
|
|
3
20
|
|
|
4
21
|
type PluginConfig = FetchToolConfig;
|
|
5
22
|
interface ToolRegistrationApi {
|
|
@@ -21,7 +38,7 @@ interface ToolRegistrationApi {
|
|
|
21
38
|
};
|
|
22
39
|
}
|
|
23
40
|
|
|
24
|
-
declare const resolvePluginDefaults: (pluginConfig?: PluginConfig) =>
|
|
41
|
+
declare const resolvePluginDefaults: (pluginConfig?: PluginConfig) => FetchToolDefaults;
|
|
25
42
|
declare const plugin: {
|
|
26
43
|
id: string;
|
|
27
44
|
name: string;
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "smart-fetch",
|
|
3
3
|
"name": "Smart Fetch",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "Clean web content extraction with browser-grade TLS fingerprinting. Uses wreq-js (Rust native bindings) for anti-bot bypass and Defuddle for superior content extraction.",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-smart-fetch",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenClaw smart fetch plugin with browser-grade TLS fingerprinting and Defuddle extraction.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,9 +67,11 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@sinclair/typebox": "^0.34.49",
|
|
70
|
-
"smart-fetch-core": "0.2.1",
|
|
71
70
|
"@thinkscape/wreq-js": "2.2.2",
|
|
72
71
|
"defuddle": "^0.14.0",
|
|
73
72
|
"linkedom": "^0.18.12"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"smart-fetch-core": "0.2.2"
|
|
74
76
|
}
|
|
75
77
|
}
|