@promptbook/fake-llm 0.83.0 → 0.84.0-10
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 -0
- package/esm/index.es.js +4 -4
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/cli.index.d.ts +8 -0
- package/esm/typings/src/_packages/core.index.d.ts +4 -0
- package/esm/typings/src/_packages/editable.index.d.ts +8 -2
- package/esm/typings/src/_packages/markitdown.index.d.ts +8 -0
- package/esm/typings/src/_packages/pdf.index.d.ts +6 -0
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/_packages/wizzard.index.d.ts +8 -0
- package/esm/typings/src/constants.d.ts +1 -1
- package/esm/typings/src/executables/platforms/locateAppOnLinux.d.ts +1 -1
- package/esm/typings/src/executables/platforms/locateAppOnMacOs.d.ts +1 -1
- package/esm/typings/src/pipeline/book-notation.d.ts +4 -0
- package/esm/typings/src/pipeline/prompt-notation.d.ts +18 -0
- package/esm/typings/src/pipeline/prompt-notation.test.d.ts +4 -0
- package/esm/typings/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +43 -0
- package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +20 -0
- package/esm/typings/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/_boilerplate/register-constructor.d.ts +15 -0
- package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +28 -0
- package/esm/typings/src/scrapers/markitdown/MarkitdownScraper.d.ts +50 -0
- package/esm/typings/src/scrapers/markitdown/createMarkitdownScraper.d.ts +22 -0
- package/esm/typings/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/markitdown/register-constructor.d.ts +17 -0
- package/esm/typings/src/scrapers/markitdown/register-metadata.d.ts +28 -0
- package/esm/typings/src/types/typeAliases.d.ts +1 -1
- package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +17 -0
- package/esm/typings/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +10 -0
- package/esm/typings/src/utils/editable/{utils → edit-pipeline-string}/removePipelineCommand.d.ts +1 -1
- package/esm/typings/src/utils/editable/edit-pipeline-string/removePipelineCommand.test.d.ts +1 -0
- package/esm/typings/src/utils/editable/utils/isFlatPipeline.d.ts +7 -0
- package/esm/typings/src/utils/editable/utils/renamePipelineParameter.d.ts +3 -0
- package/package.json +3 -3
- package/umd/index.umd.js +4 -4
- package/umd/index.umd.js.map +1 -1
- /package/esm/typings/src/utils/editable/{utils/removePipelineCommand.test.d.ts → edit-pipeline-string/addPipelineCommand.test.d.ts} +0 -0
|
@@ -9,12 +9,16 @@ import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-co
|
|
|
9
9
|
import { _OpenAiAssistantMetadataRegistration } from '../llm-providers/openai/register-configuration';
|
|
10
10
|
import { _OpenAiRegistration } from '../llm-providers/openai/register-constructor';
|
|
11
11
|
import { _OpenAiAssistantRegistration } from '../llm-providers/openai/register-constructor';
|
|
12
|
+
import { _BoilerplateScraperRegistration } from '../scrapers/_boilerplate/register-constructor';
|
|
13
|
+
import { _BoilerplateScraperMetadataRegistration } from '../scrapers/_boilerplate/register-metadata';
|
|
12
14
|
import { _LegacyDocumentScraperRegistration } from '../scrapers/document-legacy/register-constructor';
|
|
13
15
|
import { _LegacyDocumentScraperMetadataRegistration } from '../scrapers/document-legacy/register-metadata';
|
|
14
16
|
import { _DocumentScraperRegistration } from '../scrapers/document/register-constructor';
|
|
15
17
|
import { _DocumentScraperMetadataRegistration } from '../scrapers/document/register-metadata';
|
|
16
18
|
import { _MarkdownScraperRegistration } from '../scrapers/markdown/register-constructor';
|
|
17
19
|
import { _MarkdownScraperMetadataRegistration } from '../scrapers/markdown/register-metadata';
|
|
20
|
+
import { _MarkitdownScraperRegistration } from '../scrapers/markitdown/register-constructor';
|
|
21
|
+
import { _MarkitdownScraperMetadataRegistration } from '../scrapers/markitdown/register-metadata';
|
|
18
22
|
import { _PdfScraperRegistration } from '../scrapers/pdf/register-constructor';
|
|
19
23
|
import { _PdfScraperMetadataRegistration } from '../scrapers/pdf/register-metadata';
|
|
20
24
|
import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
|
|
@@ -31,12 +35,16 @@ export { _OpenAiMetadataRegistration };
|
|
|
31
35
|
export { _OpenAiAssistantMetadataRegistration };
|
|
32
36
|
export { _OpenAiRegistration };
|
|
33
37
|
export { _OpenAiAssistantRegistration };
|
|
38
|
+
export { _BoilerplateScraperRegistration };
|
|
39
|
+
export { _BoilerplateScraperMetadataRegistration };
|
|
34
40
|
export { _LegacyDocumentScraperRegistration };
|
|
35
41
|
export { _LegacyDocumentScraperMetadataRegistration };
|
|
36
42
|
export { _DocumentScraperRegistration };
|
|
37
43
|
export { _DocumentScraperMetadataRegistration };
|
|
38
44
|
export { _MarkdownScraperRegistration };
|
|
39
45
|
export { _MarkdownScraperMetadataRegistration };
|
|
46
|
+
export { _MarkitdownScraperRegistration };
|
|
47
|
+
export { _MarkitdownScraperMetadataRegistration };
|
|
40
48
|
export { _PdfScraperRegistration };
|
|
41
49
|
export { _PdfScraperMetadataRegistration };
|
|
42
50
|
export { _WebsiteScraperRegistration };
|
|
@@ -11,7 +11,7 @@ export declare const ORDER_OF_PIPELINE_JSON: ExportJsonOptions<PipelineJson>['or
|
|
|
11
11
|
*
|
|
12
12
|
* @private within the repository
|
|
13
13
|
*/
|
|
14
|
-
export declare const REPLACING_NONCE = "
|
|
14
|
+
export declare const REPLACING_NONCE = "ptbkauk42kV2dzao34faw7FudQUHYPtW";
|
|
15
15
|
/**
|
|
16
16
|
* @@@
|
|
17
17
|
*
|
|
@@ -5,7 +5,7 @@ import type { LocateAppOptions } from '../locateApp';
|
|
|
5
5
|
*
|
|
6
6
|
* @private within the repository
|
|
7
7
|
*/
|
|
8
|
-
export declare function locateAppOnLinux({
|
|
8
|
+
export declare function locateAppOnLinux({ linuxWhich, }: Pick<Required<LocateAppOptions>, 'linuxWhich'>): Promise<string_executable_path | null>;
|
|
9
9
|
/**
|
|
10
10
|
* TODO: [🧠][♿] Maybe export through `@promptbook/node`
|
|
11
11
|
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
@@ -5,7 +5,7 @@ import type { LocateAppOptions } from '../locateApp';
|
|
|
5
5
|
*
|
|
6
6
|
* @private within the repository
|
|
7
7
|
*/
|
|
8
|
-
export declare function locateAppOnMacOs({
|
|
8
|
+
export declare function locateAppOnMacOs({ macOsName, }: Pick<Required<LocateAppOptions>, 'macOsName'>): Promise<string_executable_path | null>;
|
|
9
9
|
/**
|
|
10
10
|
* TODO: [🧠][♿] Maybe export through `@promptbook/node`
|
|
11
11
|
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
@@ -2,6 +2,10 @@ import type { PipelineString } from './PipelineString';
|
|
|
2
2
|
/**
|
|
3
3
|
* Tag function for notating a pipeline with a book\`...\ notation as template literal
|
|
4
4
|
*
|
|
5
|
+
* Note: There are 2 similar functions:
|
|
6
|
+
* 1) `prompt` for notating single prompt exported from `@promptbook/utils`
|
|
7
|
+
* 1) `book` for notating and validating entire books exported from `@promptbook/utils`
|
|
8
|
+
*
|
|
5
9
|
* @param strings @@@
|
|
6
10
|
* @param values @@@
|
|
7
11
|
* @returns the pipeline string
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { string_prompt } from '../types/typeAliases';
|
|
2
|
+
/**
|
|
3
|
+
* Tag function for notating a prompt as template literal
|
|
4
|
+
*
|
|
5
|
+
* Note: There are 2 similar functions:
|
|
6
|
+
* 1) `prompt` for notating single prompt exported from `@promptbook/utils`
|
|
7
|
+
* 1) `book` for notating and validating entire books exported from `@promptbook/utils`
|
|
8
|
+
*
|
|
9
|
+
* @param strings @@@
|
|
10
|
+
* @param values @@@
|
|
11
|
+
* @returns the pipeline string
|
|
12
|
+
* @public exported from `@promptbook/utils`
|
|
13
|
+
*/
|
|
14
|
+
export declare function prompt(strings: TemplateStringsArray, ...values: Array<string>): string_prompt;
|
|
15
|
+
/**
|
|
16
|
+
* TODO: [🧠][🈴] Where is the best location for this file
|
|
17
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
18
|
+
*/
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
2
|
+
import type { KnowledgePiecePreparedJson } from '../../pipeline/PipelineJson/KnowledgePieceJson';
|
|
3
|
+
import type { PrepareAndScrapeOptions } from '../../prepare/PrepareAndScrapeOptions';
|
|
4
|
+
import type { Converter } from '../_common/Converter';
|
|
5
|
+
import type { ScraperAndConverterMetadata } from '../_common/register/ScraperAndConverterMetadata';
|
|
6
|
+
import type { Scraper } from '../_common/Scraper';
|
|
7
|
+
import type { ScraperSourceHandler } from '../_common/Scraper';
|
|
8
|
+
import type { ScraperIntermediateSource } from '../_common/ScraperIntermediateSource';
|
|
9
|
+
/**
|
|
10
|
+
* Scraper of @@@ files
|
|
11
|
+
*
|
|
12
|
+
* @see `documentationUrl` for more details
|
|
13
|
+
* @public exported from `@promptbook/boilerplate`
|
|
14
|
+
*/
|
|
15
|
+
export declare class BoilerplateScraper implements Converter, Scraper {
|
|
16
|
+
private readonly tools;
|
|
17
|
+
private readonly options;
|
|
18
|
+
/**
|
|
19
|
+
* Metadata of the scraper which includes title, mime types, etc.
|
|
20
|
+
*/
|
|
21
|
+
get metadata(): ScraperAndConverterMetadata;
|
|
22
|
+
/**
|
|
23
|
+
* Markdown scraper is used internally
|
|
24
|
+
*/
|
|
25
|
+
private readonly markdownScraper;
|
|
26
|
+
constructor(tools: Pick<ExecutionTools, 'fs' | 'llm' | 'executables'>, options: PrepareAndScrapeOptions);
|
|
27
|
+
/**
|
|
28
|
+
* Convert the `.@@@` to `.md` file and returns intermediate source
|
|
29
|
+
*
|
|
30
|
+
* Note: `$` is used to indicate that this function is not a pure function - it leaves files on the disk and you are responsible for cleaning them by calling `destroy` method of returned object
|
|
31
|
+
*/
|
|
32
|
+
$convert(source: ScraperSourceHandler): Promise<ScraperIntermediateSource>;
|
|
33
|
+
/**
|
|
34
|
+
* Scrapes the docx file and returns the knowledge pieces or `null` if it can't scrape it
|
|
35
|
+
*/
|
|
36
|
+
scrape(source: ScraperSourceHandler): Promise<ReadonlyArray<Omit<KnowledgePiecePreparedJson, 'sources' | 'preparationIds'>> | null>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* TODO: [👣] Converted documents can act as cached items - there is no need to run conversion each time
|
|
40
|
+
* TODO: [🪂] Do it in parallel
|
|
41
|
+
* Note: No need to aggregate usage here, it is done by intercepting the llmTools
|
|
42
|
+
* @@@ Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
43
|
+
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
2
|
+
import type { PrepareAndScrapeOptions } from '../../prepare/PrepareAndScrapeOptions';
|
|
3
|
+
import { BoilerplateScraper } from './BoilerplateScraper';
|
|
4
|
+
/**
|
|
5
|
+
* Constructor of `BoilerplateScraper`
|
|
6
|
+
*
|
|
7
|
+
* @public exported from `@promptbook/boilerplate`
|
|
8
|
+
*/
|
|
9
|
+
export declare const createBoilerplateScraper: ((tools: Pick<ExecutionTools, 'llm'>, options: PrepareAndScrapeOptions) => BoilerplateScraper) & import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
|
|
10
|
+
title: string;
|
|
11
|
+
packageName: string;
|
|
12
|
+
className: string;
|
|
13
|
+
mimeTypes: string[];
|
|
14
|
+
documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@@";
|
|
15
|
+
isAvilableInBrowser: false;
|
|
16
|
+
requiredExecutables: never[];
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
20
|
+
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of known scraper
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available known scrapers
|
|
6
|
+
*
|
|
7
|
+
* @public exported from `@promptbook/boilerplate`
|
|
8
|
+
* @public exported from `@promptbook/wizzard`
|
|
9
|
+
* @public exported from `@promptbook/cli`
|
|
10
|
+
*/
|
|
11
|
+
export declare const _BoilerplateScraperRegistration: Registration;
|
|
12
|
+
/**
|
|
13
|
+
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
14
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
15
|
+
*/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Metadata of the scraper
|
|
4
|
+
*
|
|
5
|
+
* @private within the scraper directory
|
|
6
|
+
*/
|
|
7
|
+
export declare const boilerplateScraperMetadata: import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
|
|
8
|
+
title: string;
|
|
9
|
+
packageName: string;
|
|
10
|
+
className: string;
|
|
11
|
+
mimeTypes: string[];
|
|
12
|
+
documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@@";
|
|
13
|
+
isAvilableInBrowser: false;
|
|
14
|
+
requiredExecutables: never[];
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Registration of known scraper metadata
|
|
18
|
+
*
|
|
19
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available known scrapers
|
|
20
|
+
*
|
|
21
|
+
* @public exported from `@promptbook/core`
|
|
22
|
+
* @public exported from `@promptbook/wizzard`
|
|
23
|
+
* @public exported from `@promptbook/cli`
|
|
24
|
+
*/
|
|
25
|
+
export declare const _BoilerplateScraperMetadataRegistration: Registration;
|
|
26
|
+
/**
|
|
27
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
28
|
+
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
2
|
+
import type { KnowledgePiecePreparedJson } from '../../pipeline/PipelineJson/KnowledgePieceJson';
|
|
3
|
+
import type { PrepareAndScrapeOptions } from '../../prepare/PrepareAndScrapeOptions';
|
|
4
|
+
import type { Converter } from '../_common/Converter';
|
|
5
|
+
import type { ScraperAndConverterMetadata } from '../_common/register/ScraperAndConverterMetadata';
|
|
6
|
+
import type { Scraper } from '../_common/Scraper';
|
|
7
|
+
import type { ScraperSourceHandler } from '../_common/Scraper';
|
|
8
|
+
import type { ScraperIntermediateSource } from '../_common/ScraperIntermediateSource';
|
|
9
|
+
/**
|
|
10
|
+
* Integration of Markitdown by Microsoft into Promptbook
|
|
11
|
+
*
|
|
12
|
+
* @see https://github.com/microsoft/markitdown
|
|
13
|
+
* @see `documentationUrl` for more details
|
|
14
|
+
* @public exported from `@promptbook/markitdown`
|
|
15
|
+
* @public exported from `@promptbook/pdf`
|
|
16
|
+
*/
|
|
17
|
+
export declare class MarkitdownScraper implements Converter, Scraper {
|
|
18
|
+
private readonly tools;
|
|
19
|
+
private readonly options;
|
|
20
|
+
/**
|
|
21
|
+
* Metadata of the scraper which includes title, mime types, etc.
|
|
22
|
+
*/
|
|
23
|
+
get metadata(): ScraperAndConverterMetadata;
|
|
24
|
+
/**
|
|
25
|
+
* Markdown scraper is used internally
|
|
26
|
+
*/
|
|
27
|
+
private readonly markdownScraper;
|
|
28
|
+
/**
|
|
29
|
+
* Markdown scraper is used internally
|
|
30
|
+
*/
|
|
31
|
+
private readonly markitdown;
|
|
32
|
+
constructor(tools: Pick<ExecutionTools, 'fs' | 'llm' | 'executables'>, options: PrepareAndScrapeOptions);
|
|
33
|
+
/**
|
|
34
|
+
* Convert the documents to `.md` file and returns intermediate source
|
|
35
|
+
*
|
|
36
|
+
* Note: `$` is used to indicate that this function is not a pure function - it leaves files on the disk and you are responsible for cleaning them by calling `destroy` method of returned object
|
|
37
|
+
*/
|
|
38
|
+
$convert(source: ScraperSourceHandler): Promise<ScraperIntermediateSource>;
|
|
39
|
+
/**
|
|
40
|
+
* Scrapes the docx file and returns the knowledge pieces or `null` if it can't scrape it
|
|
41
|
+
*/
|
|
42
|
+
scrape(source: ScraperSourceHandler): Promise<ReadonlyArray<Omit<KnowledgePiecePreparedJson, 'sources' | 'preparationIds'>> | null>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* TODO: [🧠][🌜] Export only from `@promptbook/markitdown` or `@promptbook/pdf` NOT both
|
|
46
|
+
* TODO: [👣] Converted documents can act as cached items - there is no need to run conversion each time
|
|
47
|
+
* TODO: [🪂] Do it in parallel
|
|
48
|
+
* Note: No need to aggregate usage here, it is done by intercepting the llmTools
|
|
49
|
+
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
50
|
+
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
2
|
+
import type { PrepareAndScrapeOptions } from '../../prepare/PrepareAndScrapeOptions';
|
|
3
|
+
import { MarkitdownScraper } from './MarkitdownScraper';
|
|
4
|
+
/**
|
|
5
|
+
* Constructor of `MarkitdownScraper`
|
|
6
|
+
*
|
|
7
|
+
* @public exported from `@promptbook/markitdown`
|
|
8
|
+
* @public exported from `@promptbook/pdf`
|
|
9
|
+
*/
|
|
10
|
+
export declare const createMarkitdownScraper: ((tools: Pick<ExecutionTools, 'llm'>, options: PrepareAndScrapeOptions) => MarkitdownScraper) & import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
|
|
11
|
+
title: string;
|
|
12
|
+
packageName: string;
|
|
13
|
+
className: string;
|
|
14
|
+
mimeTypes: string[];
|
|
15
|
+
documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
|
|
16
|
+
isAvilableInBrowser: false;
|
|
17
|
+
requiredExecutables: never[];
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* TODO: [🧠][🌜] Export only from `@promptbook/markitdown` or `@promptbook/pdf` NOT both
|
|
21
|
+
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
22
|
+
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of known scraper
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available known scrapers
|
|
6
|
+
*
|
|
7
|
+
* @public exported from `@promptbook/markitdown`
|
|
8
|
+
* @public exported from `@promptbook/pdf`
|
|
9
|
+
* @public exported from `@promptbook/wizzard`
|
|
10
|
+
* @public exported from `@promptbook/cli`
|
|
11
|
+
*/
|
|
12
|
+
export declare const _MarkitdownScraperRegistration: Registration;
|
|
13
|
+
/**
|
|
14
|
+
* TODO: [🧠][🌜] Export only from `@promptbook/markitdown` or `@promptbook/pdf` NOT both
|
|
15
|
+
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
16
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
17
|
+
*/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Metadata of the scraper
|
|
4
|
+
*
|
|
5
|
+
* @private within the scraper directory
|
|
6
|
+
*/
|
|
7
|
+
export declare const markitdownScraperMetadata: import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
|
|
8
|
+
title: string;
|
|
9
|
+
packageName: string;
|
|
10
|
+
className: string;
|
|
11
|
+
mimeTypes: string[];
|
|
12
|
+
documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
|
|
13
|
+
isAvilableInBrowser: false;
|
|
14
|
+
requiredExecutables: never[];
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Registration of known scraper metadata
|
|
18
|
+
*
|
|
19
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available known scrapers
|
|
20
|
+
*
|
|
21
|
+
* @public exported from `@promptbook/core`
|
|
22
|
+
* @public exported from `@promptbook/wizzard`
|
|
23
|
+
* @public exported from `@promptbook/cli`
|
|
24
|
+
*/
|
|
25
|
+
export declare const _MarkitdownScraperMetadataRegistration: Registration;
|
|
26
|
+
/**
|
|
27
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
28
|
+
*/
|
|
@@ -235,7 +235,7 @@ export type string_markdown_codeblock_language = 'book' | 'markdown' | 'text' |
|
|
|
235
235
|
/**
|
|
236
236
|
* @@@
|
|
237
237
|
*/
|
|
238
|
-
export type string_promptbook_documentation_url = `https://github.com/webgptorg/promptbook/discussions/${number |
|
|
238
|
+
export type string_promptbook_documentation_url = `https://github.com/webgptorg/promptbook/discussions/${number | `@@${string}`}`;
|
|
239
239
|
/**
|
|
240
240
|
* Semantic helper
|
|
241
241
|
*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PipelineString } from '../../../pipeline/PipelineString';
|
|
2
|
+
import type { string_markdown_text } from '../../../types/typeAliases';
|
|
3
|
+
type AddPipelineCommandOptions = {
|
|
4
|
+
commandString: string_markdown_text;
|
|
5
|
+
pipelineString: PipelineString;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* @@@
|
|
9
|
+
*
|
|
10
|
+
* @public exported from `@promptbook/editable`
|
|
11
|
+
*/
|
|
12
|
+
export declare function addPipelineCommand(options: AddPipelineCommandOptions): PipelineString;
|
|
13
|
+
export {};
|
|
14
|
+
/**
|
|
15
|
+
* TODO: [🧠] What is the better solution - `- xxx`, - `- xxx` or preserve (see also next TODO)
|
|
16
|
+
* TODO: When existing commands 1) as 2) number 3) list, add 4) new command as next number
|
|
17
|
+
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PipelineString } from '../../../pipeline/PipelineString';
|
|
2
|
+
/**
|
|
3
|
+
* @@@
|
|
4
|
+
*
|
|
5
|
+
* @public exported from `@promptbook/editable`
|
|
6
|
+
*/
|
|
7
|
+
export declare function deflatePipeline(pipelineString: PipelineString): PipelineString;
|
|
8
|
+
/**
|
|
9
|
+
* TODO: Unit test
|
|
10
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/fake-llm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0-10",
|
|
4
4
|
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
|
|
5
5
|
"--note-0": " <- [🐊]",
|
|
6
6
|
"private": false,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/webgptorg/promptbook"
|
|
11
11
|
},
|
|
12
12
|
"contributors": [
|
|
13
|
-
"Pavol Hejný <
|
|
13
|
+
"Pavol Hejný <pavol@ptbk.io> (https://www.pavolhejny.com/)"
|
|
14
14
|
],
|
|
15
15
|
"--todo-0": "TODO: [❇️] Make better list of keywords",
|
|
16
16
|
"keywords": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"module": "./esm/index.es.js",
|
|
55
55
|
"typings": "./esm/typings/src/_packages/fake-llm.index.d.ts",
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@promptbook/core": "0.
|
|
57
|
+
"@promptbook/core": "0.84.0-10"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"lorem-ipsum": "2.0.8",
|
package/umd/index.umd.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* @generated
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.
|
|
26
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-9';
|
|
27
27
|
/**
|
|
28
28
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
29
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
*
|
|
258
258
|
* @public exported from `@promptbook/core`
|
|
259
259
|
*/
|
|
260
|
-
var ADMIN_EMAIL = '
|
|
260
|
+
var ADMIN_EMAIL = 'pavol@ptbk.io';
|
|
261
261
|
/**
|
|
262
262
|
* Name of the responsible person for the Promptbook on GitHub
|
|
263
263
|
*
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
*
|
|
547
547
|
* @private within the repository
|
|
548
548
|
*/
|
|
549
|
-
var REPLACING_NONCE = '
|
|
549
|
+
var REPLACING_NONCE = 'ptbkauk42kV2dzao34faw7FudQUHYPtW';
|
|
550
550
|
/**
|
|
551
551
|
* @@@
|
|
552
552
|
*
|
|
@@ -1639,7 +1639,7 @@
|
|
|
1639
1639
|
var NotYetImplementedError = /** @class */ (function (_super) {
|
|
1640
1640
|
__extends(NotYetImplementedError, _super);
|
|
1641
1641
|
function NotYetImplementedError(message) {
|
|
1642
|
-
var _this = _super.call(this, spaceTrim.spaceTrim(function (block) { return "\n ".concat(block(message), "\n\n Note: This feature is not implemented yet but it will be soon.\n\n If you want speed up the implementation or just read more, look here:\n https://github.com/webgptorg/promptbook\n\n Or contact us on
|
|
1642
|
+
var _this = _super.call(this, spaceTrim.spaceTrim(function (block) { return "\n ".concat(block(message), "\n\n Note: This feature is not implemented yet but it will be soon.\n\n If you want speed up the implementation or just read more, look here:\n https://github.com/webgptorg/promptbook\n\n Or contact us on pavol@ptbk.io\n\n "); })) || this;
|
|
1643
1643
|
_this.name = 'NotYetImplementedError';
|
|
1644
1644
|
Object.setPrototypeOf(_this, NotYetImplementedError.prototype);
|
|
1645
1645
|
return _this;
|