@elizaos/plugin-pdf 2.0.0-alpha.15 → 2.0.0-alpha.16

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.
@@ -1,9 +1,10 @@
1
- import { Service, type IAgentRuntime } from "@elizaos/core";
1
+ import type { IAgentRuntime } from "@elizaos/core";
2
+ import { Service } from "@elizaos/core";
2
3
  import type { PdfConversionResult, PdfDocumentInfo, PdfExtractionOptions } from "../types";
3
4
  export declare class PdfService extends Service {
4
5
  static serviceType: "pdf";
5
6
  capabilityDescription: string;
6
- static start(_runtime: IAgentRuntime): Promise<PdfService>;
7
+ static start(runtime: IAgentRuntime): Promise<PdfService>;
7
8
  static stop(runtime: IAgentRuntime): Promise<void>;
8
9
  stop(): Promise<void>;
9
10
  convertPdfToText(pdfBuffer: Buffer): Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../../services/pdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAGjF,OAAO,KAAK,EACR,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACvB,MAAM,UAAU,CAAC;AAElB,qBAAa,UAAW,SAAQ,OAAO;IACnC,MAAM,CAAC,WAAW,QAAmB;IACrC,qBAAqB,SAAoD;WAE5D,KAAK,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;WAInD,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAOlD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAErB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAUpD,2BAA2B,CAC7B,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,oBAAyB,GACnC,OAAO,CAAC,mBAAmB,CAAC;IA2BzB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAoBlE,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;CAY1C;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../../services/pdf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAU,OAAO,EAAe,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EAGrB,MAAM,UAAU,CAAC;AAMlB,qBAAa,UAAW,SAAQ,OAAO;IACrC,MAAM,CAAC,WAAW,QAAmB;IACrC,qBAAqB,SAAoD;WAE5D,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;WAKlD,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAOlD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAErB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IA4BpD,2BAA2B,CAC/B,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,mBAAmB,CAAC;IAwCzB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAkDlE,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;CA6BxC;AAED,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-pdf",
3
- "version": "2.0.0-alpha.15",
3
+ "version": "2.0.0-alpha.16",
4
4
  "type": "module",
5
5
  "main": "dist/cjs/index.node.cjs",
6
6
  "module": "dist/node/index.node.js",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@elizaos/core": "alpha",
37
- "pdf-parse": "^2.4.5"
37
+ "unpdf": "^1.4.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@biomejs/biome": "^2.3.11",
@@ -43,19 +43,6 @@
43
43
  "typescript": "^5.9.3",
44
44
  "vitest": "^2.0.0"
45
45
  },
46
- "scripts": {
47
- "build:ts": "bun run build.ts",
48
- "dev": "bun --hot build.ts",
49
- "lint": "bunx @biomejs/biome check --write --unsafe .",
50
- "lint:check": "bunx @biomejs/biome check .",
51
- "clean": "rm -rf dist .turbo node_modules",
52
- "format": "bunx @biomejs/biome format --write .",
53
- "format:check": "bunx @biomejs/biome format .",
54
- "typecheck": "tsc --noEmit",
55
- "test": "vitest run --passWithNoTests",
56
- "test:ts": "vitest run --passWithNoTests",
57
- "build": "bun run build.ts"
58
- },
59
46
  "publishConfig": {
60
47
  "access": "public"
61
48
  },
@@ -73,5 +60,18 @@
73
60
  "browser": "Browser-compatible build available via exports.browser",
74
61
  "node": "Node.js build available via exports.node"
75
62
  }
63
+ },
64
+ "scripts": {
65
+ "build:ts": "bun run build.ts",
66
+ "dev": "bun --hot build.ts",
67
+ "lint": "bunx @biomejs/biome check --write --unsafe .",
68
+ "lint:check": "bunx @biomejs/biome check .",
69
+ "clean": "rm -rf dist .turbo node_modules",
70
+ "format": "bunx @biomejs/biome format --write .",
71
+ "format:check": "bunx @biomejs/biome format .",
72
+ "typecheck": "tsc --noEmit",
73
+ "test": "vitest run --passWithNoTests",
74
+ "test:ts": "vitest run --passWithNoTests",
75
+ "build": "bun run build.ts"
76
76
  }
77
77
  }