@superagnt/web-scraping 2.0.4 → 2.0.5

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/index.js CHANGED
@@ -7,7 +7,8 @@ import { homedir as _homedir } from 'node:os'
7
7
  import { join as _join } from 'node:path'
8
8
  import { existsSync as _existsSync, readFileSync as _readFileSync } from 'node:fs'
9
9
 
10
- const BASE_URL = 'https://api.superagnt.com/v1/data/web'
10
+ // SUPERAGNT_API_URL overrides the API origin (QA/staging); customers never set it.
11
+ const BASE_URL = (process.env.SUPERAGNT_API_URL || 'https://api.superagnt.com') + '/v1/data/web'
11
12
 
12
13
 
13
14
  // ── Auth Module (inlined) ────────────────────────────────────────────────────
@@ -151,7 +152,7 @@ export default function register(api) {
151
152
  "url"
152
153
  ]
153
154
  },
154
- execute: async (input) => {
155
+ execute: async (_toolCallId, input) => {
155
156
  const key = ensureApiKey()
156
157
  const params = parseToolInput(input)
157
158
  return callSuperagnt(key, 'POST', '/scrape', undefined, params)
@@ -213,7 +214,7 @@ export default function register(api) {
213
214
  "query"
214
215
  ]
215
216
  },
216
- execute: async (input) => {
217
+ execute: async (_toolCallId, input) => {
217
218
  const key = ensureApiKey()
218
219
  const params = parseToolInput(input)
219
220
  return callSuperagnt(key, 'POST', '/search', undefined, params)
@@ -263,7 +264,7 @@ export default function register(api) {
263
264
  "url"
264
265
  ]
265
266
  },
266
- execute: async (input) => {
267
+ execute: async (_toolCallId, input) => {
267
268
  const key = ensureApiKey()
268
269
  const params = parseToolInput(input)
269
270
  return callSuperagnt(key, 'POST', '/map', undefined, params)
@@ -2,7 +2,7 @@
2
2
  "id": "web-scraping",
3
3
  "name": "Web Scraping",
4
4
  "description": "Web scraping, search, and site mapping through the superagnt unified API.",
5
- "version": "2.0.4",
5
+ "version": "2.0.5",
6
6
  "contracts": {
7
7
  "tools": [
8
8
  "superagnt_web_scrape",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superagnt/web-scraping",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "description": "Web scraping, search, and site mapping through the superagnt unified API.",
6
6
  "main": "index.js",