Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Nick: press + write

Nicolasdb161ac55a9e
diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts
index b7ca551b2..b3e8df778 100644
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@ -71,11 +71,11 @@ export const actionsSchema = z.array(z.union([
fullPage: z.boolean().default(false),
}),
z.object({
- type: z.literal("typeText"),
+ type: z.literal("write"),
text: z.string(),
}),
z.object({
- type: z.literal("pressKey"),
+ type: z.literal("press"),
key: z.string(),
}),
z.object({
diff --git a/apps/api/src/lib/entities.ts b/apps/api/src/lib/entities.ts
index 7723f0f26..05ded7ef8 100644
--- a/apps/api/src/lib/entities.ts
+++ b/apps/api/src/lib/entities.ts
@@ -20,10 +20,10 @@ export type Action = {
type: "screenshot",
fullPage?: boolean,
} | {
- type: "typeText",
+ type: "write",
text: string,
} | {
- type: "pressKey",
+ type: "press",
key: string,
} | {
type: "scroll",
diff --git a/apps/js-sdk/firecrawl/package.json b/apps/js-sdk/firecrawl/package.json
index 4b93536fe..50657439e 100644
--- a/apps/js-sdk/firecrawl/package.json
+++ b/apps/js-sdk/firecrawl/package.json
@@ -1,6 +1,6 @@
{
- "name": "@mendable/firecrawl-js",
- "version": "1.4.5",
+ "name": "firecrawl",
+ "version": "1.5.0",
"description": "JavaScript SDK for Firecrawl API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
diff --git a/apps/js-sdk/firecrawl/src/index.ts b/apps/js-sdk/firecrawl/src/index.ts
index 7004d86fd..53acd4671 100644
--- a/apps/js-sdk/firecrawl/src/index.ts
+++ b/apps/js-sdk/firecrawl/src/index.ts
@@ -94,10 +94,10 @@ export type Action = {
type: "screenshot",
fullPage?: boolean,
} | {
- type: "typeText",
+ type: "write",
text: string,
} | {
- type: "pressKey",
+ type: "press",
key: string,
} | {
type: "scroll",