@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 +1 -0
- package/README.md +6 -5
- package/esm/index.es.js +7 -6
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/cli.index.d.ts +4 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/deepseek.index.d.ts +8 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/_packages/wizzard.index.d.ts +4 -0
- package/esm/typings/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +9 -0
- package/esm/typings/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +14 -0
- package/esm/typings/src/llm-providers/deepseek/register-configuration.d.ts +14 -0
- package/esm/typings/src/llm-providers/deepseek/register-constructor.d.ts +15 -0
- package/package.json +3 -15
- package/umd/index.umd.js +7 -6
- package/umd/index.umd.js.map +1 -1
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
|
-
#
|
|
3
|
+
# ✨ Promptbook
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
##
|
|
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
|
-
|
|
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-
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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];
|