@promptbook/pdf 0.71.0-17 → 0.71.0-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/README.md +5 -1
- package/esm/index.es.js +5 -8
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/node.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +8 -8
- package/esm/typings/src/_packages/utils.index.d.ts +2 -2
- package/esm/typings/src/execution/Executables.d.ts +18 -0
- package/esm/typings/src/execution/ExecutionTools.d.ts +9 -3
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +11 -3
- package/esm/typings/src/llm-providers/multiple/MultipleLlmExecutionTools.d.ts +1 -2
- package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_ListModels_Response.d.ts +4 -4
- package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_Prompt_Response.d.ts +3 -3
- package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +0 -19
- package/esm/typings/src/scrapers/_common/Scraper.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/register/$provideExecutablesForNode.d.ts +12 -0
- package/esm/typings/src/scrapers/_common/register/$provideScrapersForBrowser.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -2
- package/esm/typings/src/scrapers/document/DocumentScraper.d.ts +1 -1
- package/esm/typings/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +2 -2
- package/esm/typings/src/scrapers/pdf/PdfScraper.d.ts +1 -1
- package/esm/typings/src/scrapers/website/WebsiteScraper.d.ts +5 -2
- package/esm/typings/src/scrapers/website/utils/createShowdownConverter.d.ts +7 -0
- package/esm/typings/src/types/PipelineJson/TemplateJsonCommon.d.ts +2 -2
- package/esm/typings/src/utils/execCommand/$execCommand.d.ts +2 -2
- package/esm/typings/src/utils/execCommand/{IExecCommandOptions.d.ts → ExecCommandOptions.d.ts} +2 -6
- package/esm/typings/src/utils/execCommand/execCommandNormalizeOptions.d.ts +3 -3
- package/esm/typings/src/utils/normalization/IKeywords.d.ts +2 -2
- package/esm/typings/src/utils/normalization/parseKeywords.d.ts +2 -2
- package/esm/typings/src/utils/normalization/parseKeywordsFromString.d.ts +2 -2
- package/esm/typings/src/utils/normalization/searchKeywords.d.ts +2 -2
- package/esm/typings/src/utils/unwrapResult.d.ts +4 -4
- package/package.json +4 -3
- package/umd/index.umd.js +5 -8
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/scrapers/website/utils/markdownConverter.d.ts +0 -12
- /package/esm/typings/src/scrapers/website/utils/{markdownConverter.test.d.ts → createShowdownConverter.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
#  Promptbook
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Build responsible, controlled and transparent applications on top of LLM models!
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -26,6 +26,10 @@ Supercharge your use of large language models
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
<blockquote style="color: #ff8811">
|
|
30
|
+
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
|
|
31
|
+
</blockquote>
|
|
32
|
+
|
|
29
33
|
## 📦 Package `@promptbook/pdf`
|
|
30
34
|
|
|
31
35
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
package/esm/index.es.js
CHANGED
|
@@ -12,7 +12,7 @@ import { unparse, parse } from 'papaparse';
|
|
|
12
12
|
/**
|
|
13
13
|
* The version of the Promptbook library
|
|
14
14
|
*/
|
|
15
|
-
var PROMPTBOOK_VERSION = '0.71.0-
|
|
15
|
+
var PROMPTBOOK_VERSION = '0.71.0-17';
|
|
16
16
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
17
17
|
|
|
18
18
|
/*! *****************************************************************************
|
|
@@ -2242,8 +2242,7 @@ function countTotalUsage(llmTools) {
|
|
|
2242
2242
|
* Multiple LLM Execution Tools is a proxy server that uses multiple execution tools internally and exposes the executor interface externally.
|
|
2243
2243
|
*
|
|
2244
2244
|
* Note: Internal utility of `joinLlmExecutionTools` but exposed type
|
|
2245
|
-
* @public exported from `@promptbook/
|
|
2246
|
-
* TODO: !!!!!! Export as runtime class not just type
|
|
2245
|
+
* @public exported from `@promptbook/core`
|
|
2247
2246
|
*/
|
|
2248
2247
|
var MultipleLlmExecutionTools = /** @class */ (function () {
|
|
2249
2248
|
/**
|
|
@@ -2797,7 +2796,7 @@ var $scrapersRegister = new $Register('scraper_constructors');
|
|
|
2797
2796
|
* TODO: [®] DRY Register logic
|
|
2798
2797
|
*/
|
|
2799
2798
|
|
|
2800
|
-
// TODO: !!!!!! Maybe delete this function
|
|
2799
|
+
// TODO: !!!!!!last - Maybe delete this function
|
|
2801
2800
|
/**
|
|
2802
2801
|
* Creates a message with all registered scrapers
|
|
2803
2802
|
*
|
|
@@ -2905,7 +2904,6 @@ function $registeredScrapersMessage() {
|
|
|
2905
2904
|
* @private within the repository
|
|
2906
2905
|
*/
|
|
2907
2906
|
function sourceContentToName(sourceContent) {
|
|
2908
|
-
// TODO: !!!!!! Better name for source than gibberish hash
|
|
2909
2907
|
var hash = SHA256(hexEncoder.parse(JSON.stringify(sourceContent)))
|
|
2910
2908
|
// <- TODO: [🥬] Encapsulate sha256 to some private utility function
|
|
2911
2909
|
.toString( /* hex */)
|
|
@@ -3082,7 +3080,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
3082
3080
|
content = _a.sent();
|
|
3083
3081
|
return [2 /*return*/, new Blob([
|
|
3084
3082
|
content,
|
|
3085
|
-
// <- TODO: !!!!!!
|
|
3083
|
+
// <- TODO: !!!!!! Test that this is working
|
|
3086
3084
|
], { type: mimeType_1 })];
|
|
3087
3085
|
}
|
|
3088
3086
|
});
|
|
@@ -5684,7 +5682,7 @@ var pdfScraperMetadata = $deepFreeze({
|
|
|
5684
5682
|
$scrapersMetadataRegister.register(pdfScraperMetadata);
|
|
5685
5683
|
|
|
5686
5684
|
/**
|
|
5687
|
-
* Scraper for .
|
|
5685
|
+
* Scraper for .pdf files
|
|
5688
5686
|
*
|
|
5689
5687
|
* @see `documentationUrl` for more details
|
|
5690
5688
|
* @public exported from `@promptbook/pdf`
|
|
@@ -5727,7 +5725,6 @@ var PdfScraper = /** @class */ (function () {
|
|
|
5727
5725
|
TODO_USE(this.options);
|
|
5728
5726
|
/*
|
|
5729
5727
|
const {
|
|
5730
|
-
externalProgramsPaths = {},
|
|
5731
5728
|
cacheDirname = SCRAPE_CACHE_DIRNAME,
|
|
5732
5729
|
isCacheCleaned = false,
|
|
5733
5730
|
isVerbose = IS_VERBOSE,
|