@promptbook/pdf 0.84.0-14 → 0.84.0-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.
package/LICENSE.md ADDED
@@ -0,0 +1 @@
1
+ [Functional Source License, Version 1.1, ALv2 Future License](https://github.com/getsentry/fsl.software/blob/main/FSL-1.1-ALv2.template.md)
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten -->
2
2
 
3
- # Promptbook
3
+ # Promptbook
4
4
 
5
5
 
6
6
 
@@ -14,12 +14,12 @@
14
14
 
15
15
 
16
16
 
17
- ## New Features
17
+ ## 🌟 New Features
18
18
 
19
+ - 🐋 **Support of [DeepSeek models](https://www.deepseek.com/)**
19
20
  - 💙 Working [the **Book** language v1.0.0](https://github.com/webgptorg/book)
20
21
  - 🖤 Run books from CLI - `npx ptbk run path/to/your/book`
21
- - 📚 Support of `.docx`, `.doc` and `.pdf` documents
22
- - ✨ **Support of [OpenAI o1 model](https://openai.com/o1/)**
22
+ - 📚 Support of `.docx`, `.doc` and `.pdf` documents as knowledge
23
23
 
24
24
 
25
25
 
@@ -265,8 +265,9 @@ Or you can install them separately:
265
265
  - **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
266
266
  - **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
267
267
  - **[@promptbook/google](https://www.npmjs.com/package/@promptbook/google)** - Integration with Google's Gemini API
268
+ - **[@promptbook/deepseek](https://www.npmjs.com/package/@promptbook/deepseek)** - Integration with [DeepSeek API](https://www.deepseek.com/)
268
269
  - **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
269
- - **[@promptbook/langtail](https://www.npmjs.com/package/@promptbook/langtail)** - Execution tools for Langtail API, wrapper around Langtail SDK
270
+
270
271
  - **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
271
272
  - **[@promptbook/remote-client](https://www.npmjs.com/package/@promptbook/remote-client)** - Remote client for remote execution of promptbooks
272
273
  - **[@promptbook/remote-server](https://www.npmjs.com/package/@promptbook/remote-server)** - Remote server for remote execution of promptbooks
package/esm/index.es.js CHANGED
@@ -24,7 +24,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
24
24
  * @generated
25
25
  * @see https://github.com/webgptorg/promptbook
26
26
  */
27
- var PROMPTBOOK_ENGINE_VERSION = '0.84.0-13';
27
+ var PROMPTBOOK_ENGINE_VERSION = '0.84.0-15';
28
28
  /**
29
29
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
30
30
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -6357,10 +6357,10 @@ var MarkitdownScraper = /** @class */ (function () {
6357
6357
  this.tools = tools;
6358
6358
  this.options = options;
6359
6359
  this.markdownScraper = new MarkdownScraper(tools, options);
6360
+ // Note: Module `markitdown-ts` has no types available, so it is imported using `require`
6360
6361
  // eslint-disable-next-line @typescript-eslint/no-var-requires
6361
6362
  var MarkItDown = require('markitdown-ts').MarkItDown;
6362
- // <- TODO: !!! Use Markitdown directly not through this package
6363
- // <- Note: !!!!!!!
6363
+ // <- TODO: 'Use Markitdown directly not through this package
6364
6364
  this.markitdown = new MarkItDown();
6365
6365
  }
6366
6366
  Object.defineProperty(MarkitdownScraper.prototype, "metadata", {
@@ -6405,12 +6405,12 @@ var MarkitdownScraper = /** @class */ (function () {
6405
6405
  case 2:
6406
6406
  if (!!(_f.sent())) return [3 /*break*/, 5];
6407
6407
  src = source.filename || source.url || null;
6408
- console.log('!!!', { src: src, source: source, cacheFilehandler: cacheFilehandler });
6408
+ // console.log('!!!', { src, source, cacheFilehandler });
6409
6409
  if (src === null) {
6410
6410
  throw new UnexpectedError('Source has no filename or url');
6411
6411
  }
6412
6412
  return [4 /*yield*/, this.markitdown.convert(src, {
6413
- // TODO: !!!!!! Pass when sacraping Youtube
6413
+ // TODO: Pass when sacraping Youtube
6414
6414
  // enableYoutubeTranscript: true,
6415
6415
  // youtubeTranscriptLanguage: 'en',
6416
6416
  })];
@@ -6420,9 +6420,10 @@ var MarkitdownScraper = /** @class */ (function () {
6420
6420
  throw new Error("Markitdown could not convert the \"".concat(source.source, "\""));
6421
6421
  // <- TODO: !!! Make MarkitdownError
6422
6422
  }
6423
- console.log('!!!', { result: result, cacheFilehandler: cacheFilehandler });
6423
+ // console.log('!!!', { result, cacheFilehandler });
6424
6424
  return [4 /*yield*/, this.tools.fs.writeFile(cacheFilehandler.filename, result.text_content)];
6425
6425
  case 4:
6426
+ // console.log('!!!', { result, cacheFilehandler });
6426
6427
  _f.sent();
6427
6428
  _f.label = 5;
6428
6429
  case 5: return [2 /*return*/, cacheFilehandler];