@gaiventures/pilotfish 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +182 -2
- package/dist/client.d.ts +272 -0
- package/dist/client.js +385 -0
- package/dist/errors.d.ts +58 -0
- package/dist/errors.js +89 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/dist/local.d.ts +161 -0
- package/dist/local.js +274 -0
- package/dist/types.d.ts +334 -0
- package/dist/types.js +2 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +2 -0
- package/dist/webhooks.d.ts +23 -0
- package/dist/webhooks.js +44 -0
- package/package.json +52 -4
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/** What a task may do without asking: only with the person's explicit say-so. */
|
|
2
|
+
export interface PreApproved {
|
|
3
|
+
kinds: Array<"pay" | "delete" | "send" | "transfer" | "cancel">;
|
|
4
|
+
maxAmount?: number;
|
|
5
|
+
currency?: string;
|
|
6
|
+
hosts?: string[];
|
|
7
|
+
}
|
|
8
|
+
/** A file for the task to upload or read: its bytes in base64 (up to 10 files, 25 MB in all). */
|
|
9
|
+
export interface UploadFile {
|
|
10
|
+
name: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
data: string;
|
|
13
|
+
}
|
|
14
|
+
/** POST /jobs: a task and its settings. Only `task` is needed. */
|
|
15
|
+
export interface TaskRequest {
|
|
16
|
+
/** What to do, with every value that matters (dates, quantities, filters, what to report back). */
|
|
17
|
+
task: string;
|
|
18
|
+
/** Open this page first. */
|
|
19
|
+
startUrl?: string;
|
|
20
|
+
/** The model every step runs on: `gpt-6-luna` (the default), `gpt-5-mini` or `gpt-5-nano`. */
|
|
21
|
+
model?: string;
|
|
22
|
+
/** Browser actions across the whole run (1-200). */
|
|
23
|
+
maxSteps?: number;
|
|
24
|
+
/** How long the run may take, ms (10 s to 1 h). */
|
|
25
|
+
timeoutMs?: number;
|
|
26
|
+
/** The country to browse from, two letters (`us`, `in`). Omitted: your settings, else the site's market. */
|
|
27
|
+
region?: string;
|
|
28
|
+
/** Further sites whose saved logins and profiles the task may use. */
|
|
29
|
+
sites?: string[];
|
|
30
|
+
/** Which of your accounts on those sites. */
|
|
31
|
+
login?: string;
|
|
32
|
+
/** Which account on each site: `{"linkedin.com": "work"}` (`""` the main one). */
|
|
33
|
+
accounts?: Record<string, string>;
|
|
34
|
+
/** In a shared project: run as this identity (`idn_…`). */
|
|
35
|
+
identity?: string;
|
|
36
|
+
/** The identity's saved logins to use, by id (`cred_…`). */
|
|
37
|
+
credentials?: string[];
|
|
38
|
+
/** Final steps that run without asking (pay, send…): only with the person's say-so. */
|
|
39
|
+
preApproved?: PreApproved;
|
|
40
|
+
/** Hosts the run may visit (all when omitted). */
|
|
41
|
+
allowedHosts?: string[];
|
|
42
|
+
/** Clearing CAPTCHAs and bot checks by itself; on by default. */
|
|
43
|
+
solve?: boolean;
|
|
44
|
+
/** Your own egress proxy (`http://user:pass@host:port`, https, socks4/5). */
|
|
45
|
+
proxy?: string;
|
|
46
|
+
/** Where `job.needs_input` and `job.finished` go, signed (verifyWebhook). */
|
|
47
|
+
webhookUrl?: string;
|
|
48
|
+
/** A JSON Schema (root `type: "object"`) for the answer: the result's `data` then validates against it. */
|
|
49
|
+
outputSchema?: Record<string, unknown>;
|
|
50
|
+
/** A trial run before scheduling: it walks the task up to its final step, never takes it, and reports. */
|
|
51
|
+
trial?: boolean;
|
|
52
|
+
/** Attachments. */
|
|
53
|
+
files?: UploadFile[];
|
|
54
|
+
/** Any other field the API takes. */
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
}
|
|
57
|
+
export type TaskStatus = "queued" | "running" | "needs_input" | "done" | "failed" | "cancelled";
|
|
58
|
+
/** A question a task is waiting on (status `needs_input`). Codes and passwords are answered on `answerUrl`, never here. */
|
|
59
|
+
export interface Question {
|
|
60
|
+
id: string;
|
|
61
|
+
kind?: string;
|
|
62
|
+
text?: string;
|
|
63
|
+
question?: string;
|
|
64
|
+
options?: string[];
|
|
65
|
+
askedAt?: number;
|
|
66
|
+
expiresAt?: number;
|
|
67
|
+
[key: string]: unknown;
|
|
68
|
+
}
|
|
69
|
+
/** What a finished task found. */
|
|
70
|
+
export interface TaskResult {
|
|
71
|
+
success?: boolean;
|
|
72
|
+
/** The answer, in words. */
|
|
73
|
+
result?: string;
|
|
74
|
+
/** `done`, `partial` or `failed`. */
|
|
75
|
+
outcome?: string;
|
|
76
|
+
stopReason?: string;
|
|
77
|
+
steps?: number;
|
|
78
|
+
/** The answer as JSON, when the task had an `outputSchema` and it validated. */
|
|
79
|
+
data?: Record<string, unknown>;
|
|
80
|
+
/** Why there is no `data`: `{code: "schema_mismatch" | "no_answer", errors?}`. */
|
|
81
|
+
dataError?: {
|
|
82
|
+
code: string;
|
|
83
|
+
errors?: string[];
|
|
84
|
+
};
|
|
85
|
+
/** A failed task's error: its code, a colon, what happened. */
|
|
86
|
+
error?: string;
|
|
87
|
+
report?: Record<string, unknown>;
|
|
88
|
+
blocked?: {
|
|
89
|
+
category?: string;
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
paused?: boolean;
|
|
93
|
+
next?: string;
|
|
94
|
+
costUsd?: number;
|
|
95
|
+
[key: string]: unknown;
|
|
96
|
+
}
|
|
97
|
+
export interface Cost {
|
|
98
|
+
modelUsd: number;
|
|
99
|
+
proxyUsd: number;
|
|
100
|
+
browserUsd: number;
|
|
101
|
+
captchaUsd: number;
|
|
102
|
+
totalUsd: number;
|
|
103
|
+
}
|
|
104
|
+
/** A task (a job) as the API shows it. */
|
|
105
|
+
export interface Task {
|
|
106
|
+
id: string;
|
|
107
|
+
/** The session it belongs to (its first task's id): follow-ups share it. */
|
|
108
|
+
threadId: string;
|
|
109
|
+
status: TaskStatus;
|
|
110
|
+
task: string;
|
|
111
|
+
question: Question | null;
|
|
112
|
+
result: TaskResult | null;
|
|
113
|
+
createdAt: number;
|
|
114
|
+
updatedAt: number;
|
|
115
|
+
finishedAt: number | null;
|
|
116
|
+
project?: string;
|
|
117
|
+
identity?: string;
|
|
118
|
+
/** A paused task (out of its per-task spend, a question unanswered): `next` says how to carry on. */
|
|
119
|
+
paused?: boolean;
|
|
120
|
+
/** What to do next: `continue` (follow up), `answer`, `sign_in`, `retry_region`. */
|
|
121
|
+
next?: "continue" | "answer" | "sign_in" | "retry_region";
|
|
122
|
+
/** On creation: the task in the API, its page in the app, and where a person answers its questions. */
|
|
123
|
+
url?: string;
|
|
124
|
+
appUrl?: string;
|
|
125
|
+
answerUrl?: string;
|
|
126
|
+
/** GET /jobs/:id: the settings it ran with, its cost so far, the live view while it runs. */
|
|
127
|
+
settings?: Record<string, unknown>;
|
|
128
|
+
cost?: Cost;
|
|
129
|
+
control?: string | null;
|
|
130
|
+
live?: {
|
|
131
|
+
sessionId: string;
|
|
132
|
+
viewToken: string;
|
|
133
|
+
controlToken?: string;
|
|
134
|
+
shareUrl: string;
|
|
135
|
+
} | null;
|
|
136
|
+
[key: string]: unknown;
|
|
137
|
+
}
|
|
138
|
+
/** One of a task's events (steps, questions, files…). */
|
|
139
|
+
export interface TaskEvent {
|
|
140
|
+
seq?: number;
|
|
141
|
+
at: number;
|
|
142
|
+
type: string;
|
|
143
|
+
data: Record<string, unknown>;
|
|
144
|
+
[key: string]: unknown;
|
|
145
|
+
}
|
|
146
|
+
/** An answer to a task's question. */
|
|
147
|
+
export type Answer = {
|
|
148
|
+
type: "yes";
|
|
149
|
+
} | {
|
|
150
|
+
type: "no";
|
|
151
|
+
} | {
|
|
152
|
+
type: "done";
|
|
153
|
+
} | {
|
|
154
|
+
type: "skip";
|
|
155
|
+
} | {
|
|
156
|
+
type: "cancel";
|
|
157
|
+
reason?: string;
|
|
158
|
+
} | {
|
|
159
|
+
type: "text";
|
|
160
|
+
text: string;
|
|
161
|
+
} | {
|
|
162
|
+
type: "code";
|
|
163
|
+
code: string;
|
|
164
|
+
};
|
|
165
|
+
/** A file of a task's session (attached, or downloaded by the run). */
|
|
166
|
+
export interface SessionFile {
|
|
167
|
+
id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
mime: string;
|
|
170
|
+
size: number;
|
|
171
|
+
origin: string;
|
|
172
|
+
url: string;
|
|
173
|
+
createdAt?: number;
|
|
174
|
+
[key: string]: unknown;
|
|
175
|
+
}
|
|
176
|
+
/** A follow-up: the next instruction in the same session (same browser while it is kept, same sign-ins). */
|
|
177
|
+
export interface FollowUpRequest {
|
|
178
|
+
text: string;
|
|
179
|
+
model?: string;
|
|
180
|
+
region?: string;
|
|
181
|
+
/** This turn's answer schema; `null` drops the session's. */
|
|
182
|
+
outputSchema?: Record<string, unknown> | null;
|
|
183
|
+
files?: UploadFile[];
|
|
184
|
+
/** A login to sign in with (`{site, username, password}` or a code login), sealed on the server and typed as placeholders. */
|
|
185
|
+
login?: Record<string, unknown>;
|
|
186
|
+
}
|
|
187
|
+
export interface Page<T> {
|
|
188
|
+
items: T[];
|
|
189
|
+
nextCursor: string | null;
|
|
190
|
+
}
|
|
191
|
+
export type BatchStatus = "running" | "done" | "cancelled" | "stopped";
|
|
192
|
+
/** POST /batches: up to 100 tasks, run one after another. */
|
|
193
|
+
export interface BatchRequest {
|
|
194
|
+
/** The tasks, in order: each its words, or a whole task request. */
|
|
195
|
+
tasks: Array<string | TaskRequest>;
|
|
196
|
+
/** Settings every task gets unless it sets its own. */
|
|
197
|
+
defaults?: Omit<Partial<TaskRequest>, "task">;
|
|
198
|
+
name?: string;
|
|
199
|
+
/** Where `batch.finished` goes, signed (verifyWebhook). */
|
|
200
|
+
webhookUrl?: string;
|
|
201
|
+
}
|
|
202
|
+
export interface BatchItem {
|
|
203
|
+
index: number;
|
|
204
|
+
task: string;
|
|
205
|
+
/** `pending` (not started), the task's status once started, `failed` (refused at its start), or `skipped` (never run). */
|
|
206
|
+
status: "pending" | TaskStatus | "skipped";
|
|
207
|
+
jobId: string | null;
|
|
208
|
+
error?: string;
|
|
209
|
+
costUsd: number;
|
|
210
|
+
result: TaskResult | null;
|
|
211
|
+
startedAt: number | null;
|
|
212
|
+
endedAt: number | null;
|
|
213
|
+
appUrl?: string;
|
|
214
|
+
}
|
|
215
|
+
export interface Batch {
|
|
216
|
+
id: string;
|
|
217
|
+
name: string | null;
|
|
218
|
+
status: BatchStatus;
|
|
219
|
+
/** Why a batch stopped early: its code, a colon, what happened (`no_credits: …`). */
|
|
220
|
+
reason?: string;
|
|
221
|
+
counts: {
|
|
222
|
+
total: number;
|
|
223
|
+
pending: number;
|
|
224
|
+
running: number;
|
|
225
|
+
done: number;
|
|
226
|
+
failed: number;
|
|
227
|
+
cancelled: number;
|
|
228
|
+
skipped: number;
|
|
229
|
+
};
|
|
230
|
+
costUsd: number;
|
|
231
|
+
project: string;
|
|
232
|
+
createdAt: number;
|
|
233
|
+
updatedAt: number;
|
|
234
|
+
finishedAt: number | null;
|
|
235
|
+
url: string;
|
|
236
|
+
/** Each task (GET /batches/:id; not in lists). */
|
|
237
|
+
items?: BatchItem[];
|
|
238
|
+
}
|
|
239
|
+
/** One of your product's end users, in a shared project: their own logins, sessions, IP address and device. */
|
|
240
|
+
export interface Identity {
|
|
241
|
+
id: string;
|
|
242
|
+
label: string;
|
|
243
|
+
externalUserId: string | null;
|
|
244
|
+
project: string;
|
|
245
|
+
country: string | null;
|
|
246
|
+
deviceOs: "windows" | "macos" | null;
|
|
247
|
+
email: string | null;
|
|
248
|
+
saveLogins: boolean;
|
|
249
|
+
createdAt: number;
|
|
250
|
+
lastUsedAt: number | null;
|
|
251
|
+
/** GET /identities/:id: saved logins (masked) and signed-in sites. */
|
|
252
|
+
logins?: Array<{
|
|
253
|
+
credential: string;
|
|
254
|
+
site: string;
|
|
255
|
+
account: string;
|
|
256
|
+
username: string;
|
|
257
|
+
hasPassword: boolean;
|
|
258
|
+
hasTotp: boolean;
|
|
259
|
+
default: boolean;
|
|
260
|
+
}>;
|
|
261
|
+
signedIn?: Array<{
|
|
262
|
+
site: string;
|
|
263
|
+
account: string;
|
|
264
|
+
}>;
|
|
265
|
+
/** POST with an `externalUserId` you had already: the identity you had. */
|
|
266
|
+
existed?: boolean;
|
|
267
|
+
[key: string]: unknown;
|
|
268
|
+
}
|
|
269
|
+
export interface IdentityCreate {
|
|
270
|
+
label?: string;
|
|
271
|
+
externalUserId?: string;
|
|
272
|
+
country?: string | null;
|
|
273
|
+
deviceOs?: "windows" | "macos" | null;
|
|
274
|
+
email?: string | null;
|
|
275
|
+
saveLogins?: boolean;
|
|
276
|
+
}
|
|
277
|
+
export interface CredentialCreate {
|
|
278
|
+
site: string;
|
|
279
|
+
username: string;
|
|
280
|
+
password?: string;
|
|
281
|
+
totp?: string;
|
|
282
|
+
otp?: "email" | "sms";
|
|
283
|
+
account?: string;
|
|
284
|
+
default?: boolean;
|
|
285
|
+
}
|
|
286
|
+
export interface LoginLink {
|
|
287
|
+
url: string;
|
|
288
|
+
expiresAt: number;
|
|
289
|
+
sites: string[];
|
|
290
|
+
webhookUrl?: string;
|
|
291
|
+
}
|
|
292
|
+
/** The settings a saved task keeps. */
|
|
293
|
+
export interface SavedTaskOptions {
|
|
294
|
+
startUrl?: string;
|
|
295
|
+
region?: string;
|
|
296
|
+
sites?: string[];
|
|
297
|
+
login?: string;
|
|
298
|
+
preApproved?: PreApproved;
|
|
299
|
+
model?: string;
|
|
300
|
+
allowedHosts?: string[];
|
|
301
|
+
solve?: boolean;
|
|
302
|
+
outputSchema?: Record<string, unknown>;
|
|
303
|
+
}
|
|
304
|
+
export interface SavedTask {
|
|
305
|
+
id: string;
|
|
306
|
+
name: string;
|
|
307
|
+
task: string;
|
|
308
|
+
options: SavedTaskOptions;
|
|
309
|
+
runs?: number;
|
|
310
|
+
lastRunAt?: number | null;
|
|
311
|
+
[key: string]: unknown;
|
|
312
|
+
}
|
|
313
|
+
/** When a schedule runs: `repeat` once (with `date`), daily, weekdays, weekly (with `days`, 1 = Monday) or monthly (with `day`, 1-28), at `time` (HH:MM) in `tz`. */
|
|
314
|
+
export interface ScheduleRule {
|
|
315
|
+
repeat: "once" | "daily" | "weekdays" | "weekly" | "monthly";
|
|
316
|
+
time: string;
|
|
317
|
+
tz: string;
|
|
318
|
+
date?: string;
|
|
319
|
+
days?: number[];
|
|
320
|
+
day?: number;
|
|
321
|
+
}
|
|
322
|
+
export interface Schedule {
|
|
323
|
+
savedTaskId: string;
|
|
324
|
+
rule: ScheduleRule;
|
|
325
|
+
paused: boolean;
|
|
326
|
+
nextRunAt: number | null;
|
|
327
|
+
lastRunAt?: number | null;
|
|
328
|
+
lastStatus?: string | null;
|
|
329
|
+
describe?: string;
|
|
330
|
+
task?: SavedTask | null;
|
|
331
|
+
[key: string]: unknown;
|
|
332
|
+
}
|
|
333
|
+
/** GET /me/usage: spending by kind, day, model and task, and what is left of an allowance. */
|
|
334
|
+
export type Usage = Record<string, unknown>;
|
package/dist/types.js
ADDED
package/dist/version.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** What a delivery's body holds. */
|
|
2
|
+
export interface WebhookEvent {
|
|
3
|
+
type: "job.needs_input" | "job.finished" | "job.question_withdrawn" | "identity.login_saved" | "batch.finished" | (string & {});
|
|
4
|
+
jobId?: string;
|
|
5
|
+
batchId?: string;
|
|
6
|
+
at: number;
|
|
7
|
+
data: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* True when `signature` (the `Pilotfish-Signature` header) signs `body` (the raw request body, exactly as received)
|
|
11
|
+
* with `secret`, and is at most `toleranceS` seconds old (default 300).
|
|
12
|
+
*/
|
|
13
|
+
export declare function verifyWebhook(secret: string, signature: string | null | undefined, body: string | Uint8Array, o?: {
|
|
14
|
+
toleranceS?: number;
|
|
15
|
+
now?: number;
|
|
16
|
+
}): Promise<boolean>;
|
|
17
|
+
/** The delivery's event, once its signature is checked; throws when it does not verify. */
|
|
18
|
+
export declare function parseWebhook(secret: string, signature: string | null | undefined, body: string | Uint8Array, o?: {
|
|
19
|
+
toleranceS?: number;
|
|
20
|
+
now?: number;
|
|
21
|
+
}): Promise<WebhookEvent>;
|
|
22
|
+
/** A `Pilotfish-Signature` header for `body` (tests of your own endpoint). */
|
|
23
|
+
export declare function signWebhook(secret: string, body: string, t?: number): Promise<string>;
|
package/dist/webhooks.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Checking a webhook delivery. Each one carries `Pilotfish-Signature: t=<unix seconds>,v1=<hex>`, the HMAC-SHA256 of
|
|
2
|
+
// "<t>.<raw body>" with your org's webhook secret (Org settings, or GET /org/webhook-secret), and `Pilotfish-Event`.
|
|
3
|
+
// Uses Web Crypto, so it runs in Node 18+, Deno, Bun and edge runtimes alike.
|
|
4
|
+
import { PilotfishError } from "./errors.js";
|
|
5
|
+
const hex = (buf) => [...new Uint8Array(buf)].map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
6
|
+
async function hmacHex(secret, message) {
|
|
7
|
+
const te = new TextEncoder();
|
|
8
|
+
const key = await crypto.subtle.importKey("raw", te.encode(secret), { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
|
|
9
|
+
return hex(await crypto.subtle.sign("HMAC", key, te.encode(message)));
|
|
10
|
+
}
|
|
11
|
+
/** Constant-time comparison of two hex strings of the same length. */
|
|
12
|
+
function same(a, b) {
|
|
13
|
+
if (a.length !== b.length)
|
|
14
|
+
return false;
|
|
15
|
+
let d = 0;
|
|
16
|
+
for (let i = 0; i < a.length; i++)
|
|
17
|
+
d |= a.charCodeAt(i) ^ b.charCodeAt(i);
|
|
18
|
+
return d === 0;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* True when `signature` (the `Pilotfish-Signature` header) signs `body` (the raw request body, exactly as received)
|
|
22
|
+
* with `secret`, and is at most `toleranceS` seconds old (default 300).
|
|
23
|
+
*/
|
|
24
|
+
export async function verifyWebhook(secret, signature, body, o = {}) {
|
|
25
|
+
if (!signature)
|
|
26
|
+
return false;
|
|
27
|
+
const t = Number(/(?:^|,)\s*t=(\d+)/.exec(signature)?.[1]);
|
|
28
|
+
const v1 = /(?:^|,)\s*v1=([0-9a-f]{64})/.exec(signature)?.[1];
|
|
29
|
+
const now = o.now ?? Math.floor(Date.now() / 1000);
|
|
30
|
+
if (!t || !v1 || Math.abs(now - t) > (o.toleranceS ?? 300))
|
|
31
|
+
return false;
|
|
32
|
+
const text = typeof body === "string" ? body : new TextDecoder().decode(body);
|
|
33
|
+
return same(await hmacHex(secret, `${t}.${text}`), v1);
|
|
34
|
+
}
|
|
35
|
+
/** The delivery's event, once its signature is checked; throws when it does not verify. */
|
|
36
|
+
export async function parseWebhook(secret, signature, body, o = {}) {
|
|
37
|
+
if (!(await verifyWebhook(secret, signature, body, o)))
|
|
38
|
+
throw new PilotfishError(0, { error: "The webhook's signature does not match (or is too old).", code: "bad_signature" });
|
|
39
|
+
return JSON.parse(typeof body === "string" ? body : new TextDecoder().decode(body));
|
|
40
|
+
}
|
|
41
|
+
/** A `Pilotfish-Signature` header for `body` (tests of your own endpoint). */
|
|
42
|
+
export async function signWebhook(secret, body, t = Math.floor(Date.now() / 1000)) {
|
|
43
|
+
return `t=${t},v1=${await hmacHex(secret, `${t}.${body}`)}`;
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaiventures/pilotfish",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Run browser tasks in pilotfish's cloud from TypeScript, or drive Chrome on your own machine.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=20.3"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@gaiventures/pilotfish-mcp": "*"
|
|
25
|
+
},
|
|
26
|
+
"peerDependenciesMeta": {
|
|
27
|
+
"@gaiventures/pilotfish-mcp": {
|
|
28
|
+
"optional": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/gAI-ventures/pilotfish-ai.git",
|
|
34
|
+
"directory": "packages/sdk"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://pilotfish.gai.ventures/docs/sdk",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/gAI-ventures/pilotfish-ai/issues"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"pilotfish",
|
|
42
|
+
"browser automation",
|
|
43
|
+
"browser agent",
|
|
44
|
+
"web automation",
|
|
45
|
+
"ai agent",
|
|
46
|
+
"mcp",
|
|
47
|
+
"chrome",
|
|
48
|
+
"cdp",
|
|
49
|
+
"sdk"
|
|
50
|
+
],
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
}
|
|
54
|
+
}
|