@promptbook/markitdown 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
 
@@ -263,8 +263,9 @@ Or you can install them separately:
263
263
  - **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
264
264
  - **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
265
265
  - **[@promptbook/google](https://www.npmjs.com/package/@promptbook/google)** - Integration with Google's Gemini API
266
+ - **[@promptbook/deepseek](https://www.npmjs.com/package/@promptbook/deepseek)** - Integration with [DeepSeek API](https://www.deepseek.com/)
266
267
  - **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
267
- - **[@promptbook/langtail](https://www.npmjs.com/package/@promptbook/langtail)** - Execution tools for Langtail API, wrapper around Langtail SDK
268
+
268
269
  - **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
269
270
  - **[@promptbook/remote-client](https://www.npmjs.com/package/@promptbook/remote-client)** - Remote client for remote execution of promptbooks
270
271
  - **[@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
@@ -6344,10 +6344,10 @@ var MarkitdownScraper = /** @class */ (function () {
6344
6344
  this.tools = tools;
6345
6345
  this.options = options;
6346
6346
  this.markdownScraper = new MarkdownScraper(tools, options);
6347
+ // Note: Module `markitdown-ts` has no types available, so it is imported using `require`
6347
6348
  // eslint-disable-next-line @typescript-eslint/no-var-requires
6348
6349
  var MarkItDown = require('markitdown-ts').MarkItDown;
6349
- // <- TODO: !!! Use Markitdown directly not through this package
6350
- // <- Note: !!!!!!!
6350
+ // <- TODO: 'Use Markitdown directly not through this package
6351
6351
  this.markitdown = new MarkItDown();
6352
6352
  }
6353
6353
  Object.defineProperty(MarkitdownScraper.prototype, "metadata", {
@@ -6392,12 +6392,12 @@ var MarkitdownScraper = /** @class */ (function () {
6392
6392
  case 2:
6393
6393
  if (!!(_f.sent())) return [3 /*break*/, 5];
6394
6394
  src = source.filename || source.url || null;
6395
- console.log('!!!', { src: src, source: source, cacheFilehandler: cacheFilehandler });
6395
+ // console.log('!!!', { src, source, cacheFilehandler });
6396
6396
  if (src === null) {
6397
6397
  throw new UnexpectedError('Source has no filename or url');
6398
6398
  }
6399
6399
  return [4 /*yield*/, this.markitdown.convert(src, {
6400
- // TODO: !!!!!! Pass when sacraping Youtube
6400
+ // TODO: Pass when sacraping Youtube
6401
6401
  // enableYoutubeTranscript: true,
6402
6402
  // youtubeTranscriptLanguage: 'en',
6403
6403
  })];
@@ -6407,9 +6407,10 @@ var MarkitdownScraper = /** @class */ (function () {
6407
6407
  throw new Error("Markitdown could not convert the \"".concat(source.source, "\""));
6408
6408
  // <- TODO: !!! Make MarkitdownError
6409
6409
  }
6410
- console.log('!!!', { result: result, cacheFilehandler: cacheFilehandler });
6410
+ // console.log('!!!', { result, cacheFilehandler });
6411
6411
  return [4 /*yield*/, this.tools.fs.writeFile(cacheFilehandler.filename, result.text_content)];
6412
6412
  case 4:
6413
+ // console.log('!!!', { result, cacheFilehandler });
6413
6414
  _f.sent();
6414
6415
  _f.label = 5;
6415
6416
  case 5: return [2 /*return*/, cacheFilehandler];