@meetopenbot/firecrawl 1.0.4 → 1.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.
@@ -0,0 +1,4 @@
1
+ import type { Plugin } from '@meetopenbot/plugin-sdk';
2
+ declare const plugin: Plugin;
3
+ export { plugin };
4
+ export default plugin;
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- // node_modules/@meetopenbot/plugin-sdk/dist/plugin.js
1
+ // ../plugin-sdk/dist/plugin.js
2
2
  function definePlugin(definition) {
3
3
  return definition;
4
4
  }
5
5
 
6
- // node_modules/@meetopenbot/plugin-sdk/dist/helpers.js
6
+ // ../plugin-sdk/dist/helpers.js
7
7
  function shouldHandleInvoke(event, agentId) {
8
8
  const routedTo = event.data?.agentId;
9
9
  return !(typeof routedTo === "string" && routedTo && routedTo !== agentId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetopenbot/firecrawl",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "Firecrawl agent plugin for OpenBot",
6
6
  "main": "./dist/index.js",
@@ -8,15 +8,15 @@
8
8
  "access": "public"
9
9
  },
10
10
  "exports": {
11
- ".": "./dist/index.js"
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ }
12
16
  },
13
17
  "files": [
14
18
  "dist"
15
19
  ],
16
- "scripts": {
17
- "build": "esbuild src/index.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/index.js",
18
- "prepublishOnly": "npm run build"
19
- },
20
20
  "engines": {
21
21
  "node": ">=18"
22
22
  },
@@ -25,6 +25,12 @@
25
25
  "esbuild": "^0.21.0"
26
26
  },
27
27
  "dependencies": {
28
- "@meetopenbot/plugin-sdk": "^0.1.1"
28
+ "@meetopenbot/plugin-sdk": "^0.2.0"
29
+ },
30
+ "types": "./dist/index.d.ts",
31
+ "scripts": {
32
+ "build": "esbuild src/index.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/index.js && node ../../scripts/write-plugin-declaration.mjs",
33
+ "dev": "esbuild src/index.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/index.js --watch",
34
+ "typecheck": "tsc --noEmit --allowImportingTsExtensions --module ESNext --moduleResolution Bundler --target ES2022 --skipLibCheck src/index.ts"
29
35
  }
30
- }
36
+ }