@frogbotai/piece-exa 0.22.0 → 0.24.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/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # `@frogbotai/piece-exa`
2
+
3
+ Search the web, retrieve page content, find similar pages, and generate grounded answers with Exa.
4
+
5
+ ## Usage
6
+
7
+ ```ts
8
+ import { createExa } from '@frogbotai/piece-exa';
9
+
10
+ export const exa = createExa({ auth: { apiKey: process.env.EXA_API_KEY! } });
11
+ ```
12
+
13
+ ## Actions
14
+
15
+ | Upstream action slug | Previous wrapper export | Native action | Notes |
16
+ | -------------------- | ----------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
17
+ | `perform_search` | `performSearch` | `search` | |
18
+ | `get_contents` | `getContents` | `getContents` | |
19
+ | `generate_answer` | `generateAnswer` | `generateAnswer` | |
20
+ | `find_similar_links` | `findSimilarLinks` | `findSimilarPages` | Uses Exa's `/findSimilar` page-search operation. |
21
+ | `custom_api_call` | Not exposed | Unsupported | Deliberately excluded because the upstream action has a request-handling bug; use a dedicated HTTP action for unsupported Exa endpoints. |
@@ -0,0 +1,180 @@
1
+ import type { PieceRunArgs } from 'frogbot/pieces';
2
+ import { z } from 'zod';
3
+ import type { ExaClient } from './client.js';
4
+ declare const searchInput: z.ZodObject<{
5
+ numResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6
+ includeText: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ excludeText: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ startCrawlDate: z.ZodOptional<z.ZodString>;
9
+ endCrawlDate: z.ZodOptional<z.ZodString>;
10
+ startPublishedDate: z.ZodOptional<z.ZodString>;
11
+ endPublishedDate: z.ZodOptional<z.ZodString>;
12
+ includeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ query: z.ZodString;
15
+ type: z.ZodDefault<z.ZodEnum<{
16
+ auto: "auto";
17
+ keyword: "keyword";
18
+ neural: "neural";
19
+ }>>;
20
+ category: z.ZodOptional<z.ZodEnum<{
21
+ company: "company";
22
+ "research paper": "research paper";
23
+ news: "news";
24
+ pdf: "pdf";
25
+ github: "github";
26
+ tweet: "tweet";
27
+ "personal site": "personal site";
28
+ "linkedin profile": "linkedin profile";
29
+ "financial report": "financial report";
30
+ }>>;
31
+ }, z.core.$strip>;
32
+ export declare const search: {
33
+ slug: string;
34
+ label: string;
35
+ description: string;
36
+ idempotent: boolean;
37
+ input: z.ZodObject<{
38
+ numResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
39
+ includeText: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ excludeText: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ startCrawlDate: z.ZodOptional<z.ZodString>;
42
+ endCrawlDate: z.ZodOptional<z.ZodString>;
43
+ startPublishedDate: z.ZodOptional<z.ZodString>;
44
+ endPublishedDate: z.ZodOptional<z.ZodString>;
45
+ includeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
+ query: z.ZodString;
48
+ type: z.ZodDefault<z.ZodEnum<{
49
+ auto: "auto";
50
+ keyword: "keyword";
51
+ neural: "neural";
52
+ }>>;
53
+ category: z.ZodOptional<z.ZodEnum<{
54
+ company: "company";
55
+ "research paper": "research paper";
56
+ news: "news";
57
+ pdf: "pdf";
58
+ github: "github";
59
+ tweet: "tweet";
60
+ "personal site": "personal site";
61
+ "linkedin profile": "linkedin profile";
62
+ "financial report": "financial report";
63
+ }>>;
64
+ }, z.core.$strip>;
65
+ output: z.ZodArray<z.ZodObject<{
66
+ id: z.ZodOptional<z.ZodString>;
67
+ url: z.ZodString;
68
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ publishedDate: z.ZodOptional<z.ZodString>;
70
+ author: z.ZodOptional<z.ZodString>;
71
+ text: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$loose>>;
73
+ run({ input, client, req }: PieceRunArgs<z.output<typeof searchInput>, object, ExaClient>): Promise<unknown[]>;
74
+ };
75
+ declare const getContentsInput: z.ZodObject<{
76
+ urls: z.ZodArray<z.ZodString>;
77
+ text: z.ZodDefault<z.ZodBoolean>;
78
+ livecrawl: z.ZodOptional<z.ZodEnum<{
79
+ never: "never";
80
+ auto: "auto";
81
+ fallback: "fallback";
82
+ always: "always";
83
+ }>>;
84
+ livecrawlTimeout: z.ZodOptional<z.ZodNumber>;
85
+ subpages: z.ZodOptional<z.ZodNumber>;
86
+ subpageTarget: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>;
88
+ export declare const getContents: {
89
+ slug: string;
90
+ label: string;
91
+ description: string;
92
+ idempotent: boolean;
93
+ input: z.ZodObject<{
94
+ urls: z.ZodArray<z.ZodString>;
95
+ text: z.ZodDefault<z.ZodBoolean>;
96
+ livecrawl: z.ZodOptional<z.ZodEnum<{
97
+ never: "never";
98
+ auto: "auto";
99
+ fallback: "fallback";
100
+ always: "always";
101
+ }>>;
102
+ livecrawlTimeout: z.ZodOptional<z.ZodNumber>;
103
+ subpages: z.ZodOptional<z.ZodNumber>;
104
+ subpageTarget: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>;
106
+ output: z.ZodArray<z.ZodObject<{
107
+ id: z.ZodOptional<z.ZodString>;
108
+ url: z.ZodString;
109
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ publishedDate: z.ZodOptional<z.ZodString>;
111
+ author: z.ZodOptional<z.ZodString>;
112
+ text: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$loose>>;
114
+ run({ input, client, req, }: PieceRunArgs<z.output<typeof getContentsInput>, object, ExaClient>): Promise<unknown[]>;
115
+ };
116
+ declare const generateAnswerInput: z.ZodObject<{
117
+ query: z.ZodString;
118
+ text: z.ZodDefault<z.ZodBoolean>;
119
+ model: z.ZodDefault<z.ZodEnum<{
120
+ exa: "exa";
121
+ "exa-pro": "exa-pro";
122
+ }>>;
123
+ }, z.core.$strip>;
124
+ export declare const generateAnswer: {
125
+ slug: string;
126
+ label: string;
127
+ description: string;
128
+ idempotent: boolean;
129
+ input: z.ZodObject<{
130
+ query: z.ZodString;
131
+ text: z.ZodDefault<z.ZodBoolean>;
132
+ model: z.ZodDefault<z.ZodEnum<{
133
+ exa: "exa";
134
+ "exa-pro": "exa-pro";
135
+ }>>;
136
+ }, z.core.$strip>;
137
+ output: z.ZodString;
138
+ run({ input, client, req, }: PieceRunArgs<z.output<typeof generateAnswerInput>, object, ExaClient>): Promise<unknown>;
139
+ };
140
+ declare const findSimilarPagesInput: z.ZodObject<{
141
+ numResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
142
+ includeText: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ excludeText: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ startCrawlDate: z.ZodOptional<z.ZodString>;
145
+ endCrawlDate: z.ZodOptional<z.ZodString>;
146
+ startPublishedDate: z.ZodOptional<z.ZodString>;
147
+ endPublishedDate: z.ZodOptional<z.ZodString>;
148
+ includeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
+ excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
150
+ url: z.ZodString;
151
+ }, z.core.$strip>;
152
+ export declare const findSimilarPages: {
153
+ slug: string;
154
+ label: string;
155
+ description: string;
156
+ idempotent: boolean;
157
+ input: z.ZodObject<{
158
+ numResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
159
+ includeText: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
+ excludeText: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ startCrawlDate: z.ZodOptional<z.ZodString>;
162
+ endCrawlDate: z.ZodOptional<z.ZodString>;
163
+ startPublishedDate: z.ZodOptional<z.ZodString>;
164
+ endPublishedDate: z.ZodOptional<z.ZodString>;
165
+ includeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
166
+ excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
+ url: z.ZodString;
168
+ }, z.core.$strip>;
169
+ output: z.ZodArray<z.ZodObject<{
170
+ id: z.ZodOptional<z.ZodString>;
171
+ url: z.ZodString;
172
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ publishedDate: z.ZodOptional<z.ZodString>;
174
+ author: z.ZodOptional<z.ZodString>;
175
+ text: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$loose>>;
177
+ run({ input, client, req, }: PieceRunArgs<z.output<typeof findSimilarPagesInput>, object, ExaClient>): Promise<unknown[]>;
178
+ };
179
+ export {};
180
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA4B7C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBf,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAOiB,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC;CAShG,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;;;;;;;;;iBAOpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;iCAWnB,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC;CAKtE,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;iBAIvB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iCAWtB,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC;CAKzE,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;;;iBAIzB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;iCAWxB,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC;CAK3E,CAAC"}
@@ -0,0 +1,112 @@
1
+ import { z } from 'zod';
2
+ const result = z
3
+ .object({
4
+ id: z.string().optional(),
5
+ url: z.string(),
6
+ title: z.string().nullable().optional(),
7
+ publishedDate: z.string().optional(),
8
+ author: z.string().optional(),
9
+ text: z.string().optional(),
10
+ })
11
+ .passthrough();
12
+ const results = z.array(result);
13
+ const dates = {
14
+ startCrawlDate: z.string().datetime({ offset: true }).optional(),
15
+ endCrawlDate: z.string().datetime({ offset: true }).optional(),
16
+ startPublishedDate: z.string().datetime({ offset: true }).optional(),
17
+ endPublishedDate: z.string().datetime({ offset: true }).optional(),
18
+ };
19
+ const filters = {
20
+ numResults: z.number().int().min(1).max(100).optional(),
21
+ includeDomains: z.array(z.string()).optional(),
22
+ excludeDomains: z.array(z.string()).optional(),
23
+ ...dates,
24
+ includeText: z.array(z.string()).optional(),
25
+ excludeText: z.array(z.string()).optional(),
26
+ };
27
+ const searchInput = z.object({
28
+ query: z.string().min(1),
29
+ type: z.enum(['auto', 'keyword', 'neural']).default('auto'),
30
+ category: z
31
+ .enum([
32
+ 'company',
33
+ 'research paper',
34
+ 'news',
35
+ 'pdf',
36
+ 'github',
37
+ 'tweet',
38
+ 'personal site',
39
+ 'linkedin profile',
40
+ 'financial report',
41
+ ])
42
+ .optional(),
43
+ ...filters,
44
+ numResults: filters.numResults.default(10),
45
+ });
46
+ export const search = {
47
+ slug: 'search',
48
+ label: 'Search',
49
+ description: 'Search the web using semantic or keyword-based search.',
50
+ idempotent: true,
51
+ input: searchInput,
52
+ output: results,
53
+ async run({ input, client, req }) {
54
+ const response = await client('/search', { ...input, contents: { text: true } }, req.signal ?? undefined);
55
+ return response.results;
56
+ },
57
+ };
58
+ const getContentsInput = z.object({
59
+ urls: z.array(z.string().url()).min(1),
60
+ text: z.boolean().default(true),
61
+ livecrawl: z.enum(['never', 'fallback', 'always', 'auto']).optional(),
62
+ livecrawlTimeout: z.number().int().nonnegative().optional(),
63
+ subpages: z.number().int().nonnegative().optional(),
64
+ subpageTarget: z.string().optional(),
65
+ });
66
+ export const getContents = {
67
+ slug: 'getContents',
68
+ label: 'Get contents',
69
+ description: 'Retrieve clean content from specified URLs.',
70
+ idempotent: true,
71
+ input: getContentsInput,
72
+ output: results,
73
+ async run({ input, client, req, }) {
74
+ const response = await client('/contents', input, req.signal ?? undefined);
75
+ return response.results;
76
+ },
77
+ };
78
+ const generateAnswerInput = z.object({
79
+ query: z.string().min(1),
80
+ text: z.boolean().default(true),
81
+ model: z.enum(['exa', 'exa-pro']).default('exa'),
82
+ });
83
+ export const generateAnswer = {
84
+ slug: 'generateAnswer',
85
+ label: 'Generate answer',
86
+ description: 'Answer a question using live web search results.',
87
+ idempotent: true,
88
+ input: generateAnswerInput,
89
+ output: z.string(),
90
+ async run({ input, client, req, }) {
91
+ const response = await client('/answer', input, req.signal ?? undefined);
92
+ return response.answer;
93
+ },
94
+ };
95
+ const findSimilarPagesInput = z.object({
96
+ url: z.string().url(),
97
+ ...filters,
98
+ numResults: filters.numResults.default(10),
99
+ });
100
+ export const findSimilarPages = {
101
+ slug: 'findSimilarPages',
102
+ label: 'Find similar pages',
103
+ description: 'Find web pages similar to a reference URL.',
104
+ idempotent: true,
105
+ input: findSimilarPagesInput,
106
+ output: results,
107
+ async run({ input, client, req, }) {
108
+ const response = await client('/findSimilar', input, req.signal ?? undefined);
109
+ return response.results;
110
+ },
111
+ };
112
+ //# sourceMappingURL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zD,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,qBAAqB;IAC5B,MAAM,EAAE,OAAO;IACf,KAAK,CAAC,GAAG,CAAC,EACR,KAAK,EACL,MAAM,EACN,GAAG,GACqE;QACxE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,cAAc,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC;QAE9E,OAAQ,QAAmC,CAAC,OAAO,CAAC;IACtD,CAAC;CACF,CAAC"}
@@ -0,0 +1,10 @@
1
+ export type ExaClient = ReturnType<typeof createExaClient>;
2
+ export declare class ExaRequestError extends Error {
3
+ readonly status: number;
4
+ readonly body: unknown;
5
+ constructor(status: number, body: unknown);
6
+ }
7
+ export declare function createExaClient({ auth }: {
8
+ auth: unknown;
9
+ }): <T>(path: string, body: Record<string, unknown>, signal?: AbortSignal) => Promise<T>;
10
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAE3D,qBAAa,eAAgB,SAAQ,KAAK;aAEtB,MAAM,EAAE,MAAM;aACd,IAAI,EAAE,OAAO;gBADb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,OAAO;CAKhC;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,IAG3C,CAAC,QAAQ,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,WAAW,gBAgBnF"}
package/dist/client.js ADDED
@@ -0,0 +1,31 @@
1
+ import { exaAuth } from './config.js';
2
+ const baseUrl = 'https://api.exa.ai';
3
+ export class ExaRequestError extends Error {
4
+ status;
5
+ body;
6
+ constructor(status, body) {
7
+ super(`Exa request failed with status ${status}.`);
8
+ this.status = status;
9
+ this.body = body;
10
+ this.name = 'ExaRequestError';
11
+ }
12
+ }
13
+ export function createExaClient({ auth }) {
14
+ const { apiKey } = exaAuth.parse(auth);
15
+ return async (path, body, signal) => {
16
+ const response = await fetch(`${baseUrl}${path}`, {
17
+ method: 'POST',
18
+ headers: {
19
+ 'content-type': 'application/json',
20
+ 'x-api-key': apiKey,
21
+ },
22
+ body: JSON.stringify(body),
23
+ signal,
24
+ });
25
+ const data = await response.json();
26
+ if (!response.ok)
27
+ throw new ExaRequestError(response.status, data);
28
+ return data;
29
+ };
30
+ }
31
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,OAAO,GAAG,oBAAoB,CAAC;AAIrC,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAEtB;IACA;IAFlB,YACkB,MAAc,EACd,IAAa;QAE7B,KAAK,CAAC,kCAAkC,MAAM,GAAG,CAAC,CAAC;QAHnC,WAAM,GAAN,MAAM,CAAQ;QACd,SAAI,GAAJ,IAAI,CAAS;QAG7B,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AAED,MAAM,UAAU,eAAe,CAAC,EAAE,IAAI,EAAqB;IACzD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,KAAK,EAAK,IAAY,EAAE,IAA6B,EAAE,MAAoB,EAAE,EAAE;QACpF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,OAAO,GAAG,IAAI,EAAE,EAAE;YAChD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,WAAW,EAAE,MAAM;aACpB;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC1B,MAAM;SACP,CAAC,CAAC;QACH,MAAM,IAAI,GAAY,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAE5C,IAAI,CAAC,QAAQ,CAAC,EAAE;YAAE,MAAM,IAAI,eAAe,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEnE,OAAO,IAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const exaAuth: z.ZodObject<{
3
+ apiKey: z.ZodString;
4
+ }, z.core.$strip>;
5
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,OAAO;;iBAElB,CAAC"}
package/dist/config.js ADDED
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export const exaAuth = z.object({
3
+ apiKey: z.string().min(1).meta({ label: 'API key', secret: true }),
4
+ });
5
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CACnE,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,183 @@
1
- import { type PieceFactoryConfig } from 'frogbot/pieces';
2
- export declare const exaActions: readonly ["perform_search"];
3
- export declare function createExa(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
4
- performSearch: import("node_modules/frogbot/dist/tools/types").AnyTool;
5
- getContents: import("node_modules/frogbot/dist/tools/types").AnyTool;
6
- findSimilarLinks: import("node_modules/frogbot/dist/tools/types").AnyTool;
7
- generateAnswer: import("node_modules/frogbot/dist/tools/types").AnyTool;
8
- };
1
+ import { createExaClient } from './client.js';
2
+ export declare const exaActions: readonly ["search", "getContents", "generateAnswer", "findSimilarPages"];
3
+ export declare const createExa: import("frogbot/pieces").PieceFactory<{
4
+ readonly slug: "exa";
5
+ readonly label: "Exa";
6
+ readonly admin: {
7
+ readonly description: "Search the web, extract page content, and generate grounded answers";
8
+ readonly group: "Artificial Intelligence";
9
+ };
10
+ readonly auth: import("zod").ZodObject<{
11
+ apiKey: import("zod").ZodString;
12
+ }, import("zod/v4/core").$strip>;
13
+ readonly client: typeof createExaClient;
14
+ readonly actions: readonly [{
15
+ slug: string;
16
+ label: string;
17
+ description: string;
18
+ idempotent: boolean;
19
+ input: import("zod").ZodObject<{
20
+ numResults: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
21
+ includeText: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
22
+ excludeText: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
23
+ startCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
24
+ endCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
25
+ startPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
26
+ endPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
27
+ includeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
28
+ excludeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
29
+ query: import("zod").ZodString;
30
+ type: import("zod").ZodDefault<import("zod").ZodEnum<{
31
+ auto: "auto";
32
+ keyword: "keyword";
33
+ neural: "neural";
34
+ }>>;
35
+ category: import("zod").ZodOptional<import("zod").ZodEnum<{
36
+ company: "company";
37
+ "research paper": "research paper";
38
+ news: "news";
39
+ pdf: "pdf";
40
+ github: "github";
41
+ tweet: "tweet";
42
+ "personal site": "personal site";
43
+ "linkedin profile": "linkedin profile";
44
+ "financial report": "financial report";
45
+ }>>;
46
+ }, import("zod/v4/core").$strip>;
47
+ output: import("zod").ZodArray<import("zod").ZodObject<{
48
+ id: import("zod").ZodOptional<import("zod").ZodString>;
49
+ url: import("zod").ZodString;
50
+ title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
51
+ publishedDate: import("zod").ZodOptional<import("zod").ZodString>;
52
+ author: import("zod").ZodOptional<import("zod").ZodString>;
53
+ text: import("zod").ZodOptional<import("zod").ZodString>;
54
+ }, import("zod/v4/core").$loose>>;
55
+ run({ input, client, req }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
56
+ numResults: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
57
+ includeText: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
58
+ excludeText: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
59
+ startCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
60
+ endCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
61
+ startPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
62
+ endPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
63
+ includeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
64
+ excludeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
65
+ query: import("zod").ZodString;
66
+ type: import("zod").ZodDefault<import("zod").ZodEnum<{
67
+ auto: "auto";
68
+ keyword: "keyword";
69
+ neural: "neural";
70
+ }>>;
71
+ category: import("zod").ZodOptional<import("zod").ZodEnum<{
72
+ company: "company";
73
+ "research paper": "research paper";
74
+ news: "news";
75
+ pdf: "pdf";
76
+ github: "github";
77
+ tweet: "tweet";
78
+ "personal site": "personal site";
79
+ "linkedin profile": "linkedin profile";
80
+ "financial report": "financial report";
81
+ }>>;
82
+ }, import("zod/v4/core").$strip>>, object, import("./client.js").ExaClient>): Promise<unknown[]>;
83
+ }, {
84
+ slug: string;
85
+ label: string;
86
+ description: string;
87
+ idempotent: boolean;
88
+ input: import("zod").ZodObject<{
89
+ urls: import("zod").ZodArray<import("zod").ZodString>;
90
+ text: import("zod").ZodDefault<import("zod").ZodBoolean>;
91
+ livecrawl: import("zod").ZodOptional<import("zod").ZodEnum<{
92
+ never: "never";
93
+ auto: "auto";
94
+ fallback: "fallback";
95
+ always: "always";
96
+ }>>;
97
+ livecrawlTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
98
+ subpages: import("zod").ZodOptional<import("zod").ZodNumber>;
99
+ subpageTarget: import("zod").ZodOptional<import("zod").ZodString>;
100
+ }, import("zod/v4/core").$strip>;
101
+ output: import("zod").ZodArray<import("zod").ZodObject<{
102
+ id: import("zod").ZodOptional<import("zod").ZodString>;
103
+ url: import("zod").ZodString;
104
+ title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
105
+ publishedDate: import("zod").ZodOptional<import("zod").ZodString>;
106
+ author: import("zod").ZodOptional<import("zod").ZodString>;
107
+ text: import("zod").ZodOptional<import("zod").ZodString>;
108
+ }, import("zod/v4/core").$loose>>;
109
+ run({ input, client, req, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
110
+ urls: import("zod").ZodArray<import("zod").ZodString>;
111
+ text: import("zod").ZodDefault<import("zod").ZodBoolean>;
112
+ livecrawl: import("zod").ZodOptional<import("zod").ZodEnum<{
113
+ never: "never";
114
+ auto: "auto";
115
+ fallback: "fallback";
116
+ always: "always";
117
+ }>>;
118
+ livecrawlTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
119
+ subpages: import("zod").ZodOptional<import("zod").ZodNumber>;
120
+ subpageTarget: import("zod").ZodOptional<import("zod").ZodString>;
121
+ }, import("zod/v4/core").$strip>>, object, import("./client.js").ExaClient>): Promise<unknown[]>;
122
+ }, {
123
+ slug: string;
124
+ label: string;
125
+ description: string;
126
+ idempotent: boolean;
127
+ input: import("zod").ZodObject<{
128
+ query: import("zod").ZodString;
129
+ text: import("zod").ZodDefault<import("zod").ZodBoolean>;
130
+ model: import("zod").ZodDefault<import("zod").ZodEnum<{
131
+ exa: "exa";
132
+ "exa-pro": "exa-pro";
133
+ }>>;
134
+ }, import("zod/v4/core").$strip>;
135
+ output: import("zod").ZodString;
136
+ run({ input, client, req, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
137
+ query: import("zod").ZodString;
138
+ text: import("zod").ZodDefault<import("zod").ZodBoolean>;
139
+ model: import("zod").ZodDefault<import("zod").ZodEnum<{
140
+ exa: "exa";
141
+ "exa-pro": "exa-pro";
142
+ }>>;
143
+ }, import("zod/v4/core").$strip>>, object, import("./client.js").ExaClient>): Promise<unknown>;
144
+ }, {
145
+ slug: string;
146
+ label: string;
147
+ description: string;
148
+ idempotent: boolean;
149
+ input: import("zod").ZodObject<{
150
+ numResults: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
151
+ includeText: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
152
+ excludeText: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
153
+ startCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
154
+ endCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
155
+ startPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
156
+ endPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
157
+ includeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
158
+ excludeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
159
+ url: import("zod").ZodString;
160
+ }, import("zod/v4/core").$strip>;
161
+ output: import("zod").ZodArray<import("zod").ZodObject<{
162
+ id: import("zod").ZodOptional<import("zod").ZodString>;
163
+ url: import("zod").ZodString;
164
+ title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
165
+ publishedDate: import("zod").ZodOptional<import("zod").ZodString>;
166
+ author: import("zod").ZodOptional<import("zod").ZodString>;
167
+ text: import("zod").ZodOptional<import("zod").ZodString>;
168
+ }, import("zod/v4/core").$loose>>;
169
+ run({ input, client, req, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
170
+ numResults: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
171
+ includeText: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
172
+ excludeText: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
173
+ startCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
174
+ endCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
175
+ startPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
176
+ endPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
177
+ includeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
178
+ excludeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
179
+ url: import("zod").ZodString;
180
+ }, import("zod/v4/core").$strip>>, object, import("./client.js").ExaClient>): Promise<unknown[]>;
181
+ }];
182
+ }>;
9
183
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,UAAU,6BAA8B,CAAC;AAEtD,wBAAgB,SAAS,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;EAsBpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,eAAO,MAAM,UAAU,0EAA2E,CAAC;AAEnG,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUpB,CAAC"}
package/dist/index.js CHANGED
@@ -1,27 +1,17 @@
1
- import * as module from '@activepieces/piece-exa';
2
- import { createActivepiecesPiece } from 'frogbot/pieces';
3
- export const exaActions = ['perform_search'];
4
- export function createExa(config) {
5
- const piece = createActivepiecesPiece({
6
- module,
7
- service: 'exa',
8
- credentialType: 'secret_text',
9
- defaultActions: exaActions,
10
- config,
11
- });
12
- const tool = piece.tool;
13
- piece.actions = piece.actions.filter((action) => action !== 'custom_api_call');
14
- piece.tool = (action) => {
15
- if (action === 'custom_api_call') {
16
- throw new Error("[frogbot] Piece 'exa' has no action 'custom_api_call'.");
17
- }
18
- return tool(action);
19
- };
20
- return Object.assign(piece, {
21
- performSearch: piece.tool('perform_search'),
22
- getContents: piece.tool('get_contents'),
23
- findSimilarLinks: piece.tool('find_similar_links'),
24
- generateAnswer: piece.tool('generate_answer'),
25
- });
26
- }
1
+ import { definePiece } from 'frogbot/pieces';
2
+ import { findSimilarPages, generateAnswer, getContents, search } from './actions.js';
3
+ import { createExaClient } from './client.js';
4
+ import { exaAuth } from './config.js';
5
+ export const exaActions = ['search', 'getContents', 'generateAnswer', 'findSimilarPages'];
6
+ export const createExa = definePiece({
7
+ slug: 'exa',
8
+ label: 'Exa',
9
+ admin: {
10
+ description: 'Search the web, extract page content, and generate grounded answers',
11
+ group: 'Artificial Intelligence',
12
+ },
13
+ auth: exaAuth,
14
+ client: createExaClient,
15
+ actions: [search, getContents, generateAnswer, findSimilarPages],
16
+ });
27
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,gBAAgB,CAAU,CAAC;AAEtD,MAAM,UAAU,SAAS,CAAC,MAA2B;IACnD,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACpC,MAAM;QACN,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,UAAU;QAC1B,MAAM;KACP,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACxB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,iBAAiB,CAAC,CAAC;IAC/E,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE,EAAE;QACtB,IAAI,MAAM,KAAK,iBAAiB,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;QAC5E,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QAC1B,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;QAC3C,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACvC,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC;QAClD,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC9C,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,CAAU,CAAC;AAEnG,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;IACnC,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,WAAW,EAAE,qEAAqE;QAClF,KAAK,EAAE,yBAAyB;KACjC;IACD,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,eAAe;IACvB,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC;CACjE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "name": "@frogbotai/piece-exa",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "description": "Exa tools for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/frogbotai/frogbot.git",
10
- "directory": "packages/pieces/piece-exa"
11
- },
12
7
  "type": "module",
13
8
  "main": "./dist/index.js",
14
9
  "types": "./dist/index.d.ts",
@@ -24,14 +19,14 @@
24
19
  ],
25
20
  "sideEffects": false,
26
21
  "dependencies": {
27
- "@activepieces/piece-exa": "0.1.7"
22
+ "zod": "^4.3.6"
28
23
  },
29
24
  "peerDependencies": {
30
- "frogbot": "0.22.0"
25
+ "frogbot": "0.24.0"
31
26
  },
32
27
  "devDependencies": {
33
28
  "typescript": "5.6.2",
34
- "frogbot": "0.22.0"
29
+ "frogbot": "0.24.0"
35
30
  },
36
31
  "publishConfig": {
37
32
  "access": "public"