@superagnt/exa-search 2.0.3 → 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 +10 -9
- 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) ────────────────────────────────────────────────────
|
|
@@ -95,7 +96,7 @@ export default function register(api) {
|
|
|
95
96
|
api.registerTool({
|
|
96
97
|
name: 'superagnt_connection_exa_search',
|
|
97
98
|
description: "Search",
|
|
98
|
-
|
|
99
|
+
parameters: {
|
|
99
100
|
"type": "object",
|
|
100
101
|
"properties": {
|
|
101
102
|
"query": {
|
|
@@ -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)
|
|
@@ -181,7 +182,7 @@ export default function register(api) {
|
|
|
181
182
|
api.registerTool({
|
|
182
183
|
name: 'superagnt_connection_exa_getContents',
|
|
183
184
|
description: "Get contents",
|
|
184
|
-
|
|
185
|
+
parameters: {
|
|
185
186
|
"type": "object",
|
|
186
187
|
"properties": {
|
|
187
188
|
"urls": {
|
|
@@ -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)
|
|
@@ -243,7 +244,7 @@ export default function register(api) {
|
|
|
243
244
|
api.registerTool({
|
|
244
245
|
name: 'superagnt_connection_exa_findSimilar',
|
|
245
246
|
description: "Find similar links",
|
|
246
|
-
|
|
247
|
+
parameters: {
|
|
247
248
|
"type": "object",
|
|
248
249
|
"properties": {
|
|
249
250
|
"url": {
|
|
@@ -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)
|
|
@@ -301,7 +302,7 @@ export default function register(api) {
|
|
|
301
302
|
api.registerTool({
|
|
302
303
|
name: 'superagnt_connection_exa_answer',
|
|
303
304
|
description: "Generate an answer from search results",
|
|
304
|
-
|
|
305
|
+
parameters: {
|
|
305
306
|
"type": "object",
|
|
306
307
|
"properties": {
|
|
307
308
|
"query": {
|
|
@@ -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",
|