@narumitw/pi-firecrawl 0.4.3 → 0.6.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/firecrawl.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-firecrawl",
3
- "version": "0.4.3",
3
+ "version": "0.6.0",
4
4
  "description": "Pi extension that exposes Firecrawl web scraping and crawling tools.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@biomejs/biome": "2.4.14",
36
- "@earendil-works/pi-coding-agent": "0.74.0",
36
+ "@earendil-works/pi-coding-agent": "0.79.8",
37
37
  "typescript": "6.0.3"
38
38
  },
39
39
  "repository": {
package/src/firecrawl.ts CHANGED
@@ -140,7 +140,7 @@ const scrapeTool = defineTool({
140
140
  location: Type.Optional(Type.Any({ description: "Firecrawl location options." })),
141
141
  }),
142
142
  async execute(_toolCallId, params, signal, _onUpdate, ctx) {
143
- return withStatus(ctx, "🔥 scrape", async () => {
143
+ return withStatus(ctx, "scrape", async () => {
144
144
  const payload = await firecrawlRequest("POST", "/scrape", cleanObject(params), signal);
145
145
  return jsonResult(payload);
146
146
  });
@@ -178,7 +178,7 @@ const crawlTool = defineTool({
178
178
  webhook: Type.Optional(Type.Any({ description: "Firecrawl webhook configuration." })),
179
179
  }),
180
180
  async execute(_toolCallId, params, signal, _onUpdate, ctx) {
181
- return withStatus(ctx, "🔥 crawl", async () => {
181
+ return withStatus(ctx, "crawl", async () => {
182
182
  const payload = await firecrawlRequest("POST", "/crawl", cleanObject(params), signal);
183
183
  return jsonResult(payload);
184
184
  });
@@ -194,7 +194,7 @@ const crawlStatusTool = defineTool({
194
194
  id: Type.String({ description: "Crawl job id returned by firecrawl_crawl." }),
195
195
  }),
196
196
  async execute(_toolCallId, params, signal, _onUpdate, ctx) {
197
- return withStatus(ctx, "🔥 crawl status", async () => {
197
+ return withStatus(ctx, "crawl status", async () => {
198
198
  const payload = await firecrawlRequest(
199
199
  "GET",
200
200
  `/crawl/${encodeURIComponent(params.id)}`,
@@ -226,7 +226,7 @@ const mapTool = defineTool({
226
226
  limit: Type.Optional(Type.Number({ description: "Maximum number of URLs to return." })),
227
227
  }),
228
228
  async execute(_toolCallId, params, signal, _onUpdate, ctx) {
229
- return withStatus(ctx, "🔥 map", async () => {
229
+ return withStatus(ctx, "map", async () => {
230
230
  const payload = await firecrawlRequest("POST", "/map", cleanObject(params), signal);
231
231
  return jsonResult(payload);
232
232
  });
@@ -250,7 +250,7 @@ const searchTool = defineTool({
250
250
  ),
251
251
  }),
252
252
  async execute(_toolCallId, params, signal, _onUpdate, ctx) {
253
- return withStatus(ctx, "🔥 search", async () => {
253
+ return withStatus(ctx, "search", async () => {
254
254
  const payload = await firecrawlRequest("POST", "/search", cleanObject(params), signal);
255
255
  return jsonResult(payload);
256
256
  });