@superagnt/exa-search 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 +6 -5
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
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
|
-
|
|
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/connections/exa'
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
// ── Auth Module (inlined) ────────────────────────────────────────────────────
|
|
@@ -171,7 +172,7 @@ export default function register(api) {
|
|
|
171
172
|
"query"
|
|
172
173
|
]
|
|
173
174
|
},
|
|
174
|
-
execute: async (input) => {
|
|
175
|
+
execute: async (_toolCallId, input) => {
|
|
175
176
|
const key = ensureApiKey()
|
|
176
177
|
const params = parseToolInput(input)
|
|
177
178
|
return callSuperagnt(key, 'POST', '/search', undefined, params)
|
|
@@ -233,7 +234,7 @@ export default function register(api) {
|
|
|
233
234
|
"urls"
|
|
234
235
|
]
|
|
235
236
|
},
|
|
236
|
-
execute: async (input) => {
|
|
237
|
+
execute: async (_toolCallId, input) => {
|
|
237
238
|
const key = ensureApiKey()
|
|
238
239
|
const params = parseToolInput(input)
|
|
239
240
|
return callSuperagnt(key, 'POST', '/contents', undefined, params)
|
|
@@ -291,7 +292,7 @@ export default function register(api) {
|
|
|
291
292
|
"url"
|
|
292
293
|
]
|
|
293
294
|
},
|
|
294
|
-
execute: async (input) => {
|
|
295
|
+
execute: async (_toolCallId, input) => {
|
|
295
296
|
const key = ensureApiKey()
|
|
296
297
|
const params = parseToolInput(input)
|
|
297
298
|
return callSuperagnt(key, 'POST', '/findSimilar', undefined, params)
|
|
@@ -325,7 +326,7 @@ export default function register(api) {
|
|
|
325
326
|
"query"
|
|
326
327
|
]
|
|
327
328
|
},
|
|
328
|
-
execute: async (input) => {
|
|
329
|
+
execute: async (_toolCallId, input) => {
|
|
329
330
|
const key = ensureApiKey()
|
|
330
331
|
const params = parseToolInput(input)
|
|
331
332
|
return callSuperagnt(key, 'POST', '/answer', undefined, params)
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "exa-search",
|
|
3
3
|
"name": "Exa Integration",
|
|
4
4
|
"description": "OpenClaw plugin for Exa — run neural web search, fetch parsed contents, find similar URLs, and get agentic answers through your superagnt API key.",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.5",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": [
|
|
8
8
|
"superagnt_connection_exa_search",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superagnt/exa-search",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenClaw plugin for Exa — run neural web search, fetch parsed contents, find similar URLs, and get agentic answers through your superagnt API key.",
|
|
6
6
|
"main": "index.js",
|