@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.
@@ -1,3 +1,7 @@
1
- export * from "./index";
2
- export { default } from "./index";
1
+ import { pdfPlugin } from "./index";
2
+ export { PdfService } from "./services/pdf";
3
+ export * from "./types";
4
+ export { pdfPlugin };
5
+ declare const defaultPdfPlugin: import("@elizaos/core").Plugin;
6
+ export default defaultPdfPlugin;
3
7
  //# sourceMappingURL=index.browser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../index.browser.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../index.browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,QAAA,MAAM,gBAAgB,gCAAY,CAAC;AAEnC,eAAe,gBAAgB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { Plugin } from "@elizaos/core";
2
- export * from "./services";
2
+ export { PdfService } from "./services/pdf";
3
3
  export * from "./types";
4
4
  export declare const pdfPlugin: Plugin;
5
- export default pdfPlugin;
5
+ declare const defaultPdfPlugin: Plugin;
6
+ export default defaultPdfPlugin;
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,SAAS,EAAE,MAKvB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,SAAS,EAAE,MAKvB,CAAC;AAEF,QAAA,MAAM,gBAAgB,QAAY,CAAC;AAEnC,eAAe,gBAAgB,CAAC"}
@@ -1,3 +1,7 @@
1
- export * from "./index";
2
- export { default } from "./index";
1
+ import { pdfPlugin } from "./index";
2
+ export { PdfService } from "./services/pdf";
3
+ export * from "./types";
4
+ export { pdfPlugin };
5
+ declare const defaultPdfPlugin: import("@elizaos/core").Plugin;
6
+ export default defaultPdfPlugin;
3
7
  //# sourceMappingURL=index.node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../index.node.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../index.node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,QAAA,MAAM,gBAAgB,gCAAY,CAAC;AAEnC,eAAe,gBAAgB,CAAC"}
@@ -1,16 +1,20 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __returnValue = (v) => v;
3
+ function __exportSetter(name, newValue) {
4
+ this[name] = __returnValue.bind(null, newValue);
5
+ }
2
6
  var __export = (target, all) => {
3
7
  for (var name in all)
4
8
  __defProp(target, name, {
5
9
  get: all[name],
6
10
  enumerable: true,
7
11
  configurable: true,
8
- set: (newValue) => all[name] = () => newValue
12
+ set: __exportSetter.bind(all, name)
9
13
  });
10
14
  };
11
15
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
12
16
 
13
- // node_modules/unpdf/dist/pdfjs.mjs
17
+ // ../../../node_modules/unpdf/dist/pdfjs.mjs
14
18
  var exports_pdfjs = {};
15
19
  __export(exports_pdfjs, {
16
20
  version: () => lh,
@@ -38285,7 +38289,7 @@ var init_pdfjs = __esm(() => {
38285
38289
  // services/pdf.ts
38286
38290
  import { logger, Service, ServiceType } from "@elizaos/core";
38287
38291
 
38288
- // node_modules/unpdf/dist/index.mjs
38292
+ // ../../../node_modules/unpdf/dist/index.mjs
38289
38293
  var resolvedModule;
38290
38294
  var isNode = globalThis.process?.release?.name === "node";
38291
38295
  async function getDocumentProxy(data, options = {}) {
@@ -38374,7 +38378,7 @@ class PdfService extends Service {
38374
38378
  return service;
38375
38379
  }
38376
38380
  static async stop(runtime) {
38377
- const service = await runtime.getService(ServiceType.PDF);
38381
+ const service = runtime.getService(ServiceType.PDF);
38378
38382
  if (service) {
38379
38383
  await service.stop();
38380
38384
  }
@@ -38484,6 +38488,7 @@ class PdfService extends Service {
38484
38488
  }
38485
38489
  }
38486
38490
  }
38491
+
38487
38492
  // index.ts
38488
38493
  var pdfPlugin = {
38489
38494
  name: "pdf",
@@ -38491,11 +38496,13 @@ var pdfPlugin = {
38491
38496
  services: [PdfService],
38492
38497
  actions: []
38493
38498
  };
38494
- var typescript_default = pdfPlugin;
38499
+ // index.node.ts
38500
+ var defaultPdfPlugin = pdfPlugin;
38501
+ var index_node_default = defaultPdfPlugin;
38495
38502
  export {
38496
38503
  pdfPlugin,
38497
- typescript_default as default,
38504
+ index_node_default as default,
38498
38505
  PdfService
38499
38506
  };
38500
38507
 
38501
- //# debugId=C4087FF84868624864756E2164756E21
38508
+ //# debugId=297AD6F611D02A5864756E2164756E21