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

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/dist/build.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env bun
2
- declare const externalDeps: string[];
3
- declare function build(): Promise<void>;
2
+ export {};
4
3
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../build.ts"],"names":[],"mappings":";AAEA,QAAA,MAAM,YAAY,UAAkC,CAAC;AAErD,iBAAe,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CA+FpC"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../build.ts"],"names":[],"mappings":""}
@@ -2,32 +2,42 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __moduleCache = /* @__PURE__ */ new WeakMap;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
6
8
  var __toCommonJS = (from) => {
7
- var entry = __moduleCache.get(from), desc;
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
8
10
  if (entry)
9
11
  return entry;
10
12
  entry = __defProp({}, "__esModule", { value: true });
11
- if (from && typeof from === "object" || typeof from === "function")
12
- __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- }));
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
16
21
  __moduleCache.set(from, entry);
17
22
  return entry;
18
23
  };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
19
29
  var __export = (target, all) => {
20
30
  for (var name in all)
21
31
  __defProp(target, name, {
22
32
  get: all[name],
23
33
  enumerable: true,
24
34
  configurable: true,
25
- set: (newValue) => all[name] = () => newValue
35
+ set: __exportSetter.bind(all, name)
26
36
  });
27
37
  };
28
38
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
29
39
 
30
- // node_modules/unpdf/dist/pdfjs.mjs
40
+ // ../../../node_modules/unpdf/dist/pdfjs.mjs
31
41
  var exports_pdfjs = {};
32
42
  __export(exports_pdfjs, {
33
43
  version: () => lh,
@@ -34111,7 +34121,7 @@ var init_pdfjs = __esm(() => {
34111
34121
  };
34112
34122
  NodeCanvasFactory = class NodeCanvasFactory extends BaseCanvasFactory {
34113
34123
  _createCanvas(e2, t2) {
34114
- process.getBuiltinModule("module").createRequire("file:///Users/shawwalters/eliza-workspace/plugins/plugin-pdf/typescript/node_modules/unpdf/dist/pdfjs.mjs");
34124
+ process.getBuiltinModule("module").createRequire("file:///Users/shawwalters/eliza-workspace/milady/node_modules/unpdf/dist/pdfjs.mjs");
34115
34125
  return new Proxy({}, { get: (e3, t3) => () => {
34116
34126
  throw new Error("@napi-rs/canvas is not available in this environment");
34117
34127
  } }).createCanvas(e2, t2);
@@ -38303,7 +38313,7 @@ var init_pdfjs = __esm(() => {
38303
38313
  var exports_index_node = {};
38304
38314
  __export(exports_index_node, {
38305
38315
  pdfPlugin: () => pdfPlugin,
38306
- default: () => typescript_default,
38316
+ default: () => index_node_default,
38307
38317
  PdfService: () => PdfService
38308
38318
  });
38309
38319
  module.exports = __toCommonJS(exports_index_node);
@@ -38311,7 +38321,7 @@ module.exports = __toCommonJS(exports_index_node);
38311
38321
  // services/pdf.ts
38312
38322
  var import_core = require("@elizaos/core");
38313
38323
 
38314
- // node_modules/unpdf/dist/index.mjs
38324
+ // ../../../node_modules/unpdf/dist/index.mjs
38315
38325
  var resolvedModule;
38316
38326
  var isNode = globalThis.process?.release?.name === "node";
38317
38327
  async function getDocumentProxy(data, options = {}) {
@@ -38400,7 +38410,7 @@ class PdfService extends import_core.Service {
38400
38410
  return service;
38401
38411
  }
38402
38412
  static async stop(runtime) {
38403
- const service = await runtime.getService(import_core.ServiceType.PDF);
38413
+ const service = runtime.getService(import_core.ServiceType.PDF);
38404
38414
  if (service) {
38405
38415
  await service.stop();
38406
38416
  }
@@ -38510,6 +38520,7 @@ class PdfService extends import_core.Service {
38510
38520
  }
38511
38521
  }
38512
38522
  }
38523
+
38513
38524
  // index.ts
38514
38525
  var pdfPlugin = {
38515
38526
  name: "pdf",
@@ -38517,6 +38528,8 @@ var pdfPlugin = {
38517
38528
  services: [PdfService],
38518
38529
  actions: []
38519
38530
  };
38520
- var typescript_default = pdfPlugin;
38531
+ // index.node.ts
38532
+ var defaultPdfPlugin = pdfPlugin;
38533
+ var index_node_default = defaultPdfPlugin;
38521
38534
 
38522
- //# debugId=1C03348174ACE51564756E2164756E21
38535
+ //# debugId=6BC9E18846CF8E7E64756E2164756E21