@promptbook/utils 0.74.0-0 → 0.74.0-3
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 +84 -16
- package/esm/index.es.js +15 -5
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/anthropic-claude.index.d.ts +2 -2
- package/esm/typings/src/_packages/azure-openai.index.d.ts +2 -2
- package/esm/typings/src/_packages/browser.index.d.ts +2 -2
- package/esm/typings/src/_packages/cli.index.d.ts +2 -2
- package/esm/typings/src/_packages/core.index.d.ts +2 -2
- package/esm/typings/src/_packages/documents.index.d.ts +2 -2
- package/esm/typings/src/_packages/execute-javascript.index.d.ts +2 -2
- package/esm/typings/src/_packages/fake-llm.index.d.ts +2 -2
- package/esm/typings/src/_packages/langtail.index.d.ts +2 -2
- package/esm/typings/src/_packages/legacy-documents.index.d.ts +2 -2
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +2 -2
- package/esm/typings/src/_packages/node.index.d.ts +2 -2
- package/esm/typings/src/_packages/openai.index.d.ts +2 -2
- package/esm/typings/src/_packages/pdf.index.d.ts +2 -2
- package/esm/typings/src/_packages/remote-client.index.d.ts +2 -2
- package/esm/typings/src/_packages/remote-server.index.d.ts +2 -2
- package/esm/typings/src/_packages/utils.index.d.ts +2 -2
- package/esm/typings/src/_packages/website-crawler.index.d.ts +2 -2
- package/esm/typings/src/cli/cli-commands/make.d.ts +0 -1
- package/esm/typings/src/cli/cli-commands/run.d.ts +14 -0
- package/esm/typings/src/cli/promptbookCli.d.ts +1 -0
- package/esm/typings/src/cli/test/ptbk.d.ts +4 -1
- package/esm/typings/src/commands/{PROMPTBOOK_VERSION/PromptbookVersionCommand.d.ts → BOOK_VERSION/BookVersionCommand.d.ts} +4 -4
- package/esm/typings/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +1 -1
- package/esm/typings/src/commands/index.d.ts +1 -1
- package/esm/typings/src/version.d.ts +13 -2
- package/package.json +1 -1
- package/umd/index.umd.js +16 -5
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/commands/PROMPTBOOK_VERSION/promptbookVersionCommandParser.d.ts +0 -9
- /package/esm/typings/src/commands/{PROMPTBOOK_VERSION/promptbookVersionCommand.test.d.ts → BOOK_VERSION/bookVersionCommand.test.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { collectionToJson } from '../collection/collectionToJson';
|
|
3
3
|
import { createCollectionFromJson } from '../collection/constructors/createCollectionFromJson';
|
|
4
4
|
import { createCollectionFromPromise } from '../collection/constructors/createCollectionFromPromise';
|
|
@@ -91,7 +91,7 @@ import type { ExecutionReportStringOptions } from '../types/execution-report/Exe
|
|
|
91
91
|
import { ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
|
|
92
92
|
import { MODEL_VARIANTS } from '../types/ModelVariant';
|
|
93
93
|
import { EXPECTATION_UNITS } from '../types/PipelineJson/Expectations';
|
|
94
|
-
export {
|
|
94
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
95
95
|
export { collectionToJson };
|
|
96
96
|
export { createCollectionFromJson };
|
|
97
97
|
export { createCollectionFromPromise };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { createDocumentScraper } from '../scrapers/document/createDocumentScraper';
|
|
3
3
|
import { DocumentScraper } from '../scrapers/document/DocumentScraper';
|
|
4
4
|
import { _DocumentScraperRegistration } from '../scrapers/document/register-constructor';
|
|
5
|
-
export {
|
|
5
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
6
6
|
export { createDocumentScraper };
|
|
7
7
|
export { DocumentScraper };
|
|
8
8
|
export { _DocumentScraperRegistration };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { JavascriptEvalExecutionTools } from '../scripting/javascript/JavascriptEvalExecutionTools';
|
|
3
3
|
import { JavascriptExecutionTools } from '../scripting/javascript/JavascriptExecutionTools';
|
|
4
4
|
import { POSTPROCESSING_FUNCTIONS } from '../scripting/javascript/postprocessing-functions';
|
|
5
|
-
export {
|
|
5
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
6
6
|
export { JavascriptEvalExecutionTools };
|
|
7
7
|
export { JavascriptExecutionTools };
|
|
8
8
|
export { POSTPROCESSING_FUNCTIONS };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { MockedEchoLlmExecutionTools } from '../llm-providers/mocked/MockedEchoLlmExecutionTools';
|
|
3
3
|
import { MockedFackedLlmExecutionTools } from '../llm-providers/mocked/MockedFackedLlmExecutionTools';
|
|
4
|
-
export {
|
|
4
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
5
5
|
export { MockedEchoLlmExecutionTools };
|
|
6
6
|
export { MockedFackedLlmExecutionTools };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { LangtailExecutionTools } from '../llm-providers/langtail/LangtailExecutionTools';
|
|
3
3
|
import type { LangtailExecutionToolsOptions } from '../llm-providers/langtail/LangtailExecutionToolsOptions';
|
|
4
|
-
export {
|
|
4
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
5
5
|
export { LangtailExecutionTools };
|
|
6
6
|
export type { LangtailExecutionToolsOptions };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { createLegacyDocumentScraper } from '../scrapers/document-legacy/createLegacyDocumentScraper';
|
|
3
3
|
import { LegacyDocumentScraper } from '../scrapers/document-legacy/LegacyDocumentScraper';
|
|
4
4
|
import { _LegacyDocumentScraperRegistration } from '../scrapers/document-legacy/register-constructor';
|
|
5
|
-
export {
|
|
5
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
6
6
|
export { createLegacyDocumentScraper };
|
|
7
7
|
export { LegacyDocumentScraper };
|
|
8
8
|
export { _LegacyDocumentScraperRegistration };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { extractBlock } from '../postprocessing/utils/extractBlock';
|
|
3
3
|
import { extractJsonBlock } from '../postprocessing/utils/extractJsonBlock';
|
|
4
4
|
import { createMarkdownScraper } from '../scrapers/markdown/createMarkdownScraper';
|
|
@@ -21,7 +21,7 @@ import { parseMarkdownSection } from '../utils/markdown/parseMarkdownSection';
|
|
|
21
21
|
import { removeContentComments } from '../utils/markdown/removeContentComments';
|
|
22
22
|
import { removeMarkdownFormatting } from '../utils/markdown/removeMarkdownFormatting';
|
|
23
23
|
import { splitMarkdownIntoSections } from '../utils/markdown/splitMarkdownIntoSections';
|
|
24
|
-
export {
|
|
24
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
25
25
|
export { extractBlock };
|
|
26
26
|
export { extractJsonBlock };
|
|
27
27
|
export { createMarkdownScraper };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { createCollectionFromDirectory } from '../collection/constructors/createCollectionFromDirectory';
|
|
3
3
|
import { $provideExecutablesForNode } from '../executables/$provideExecutablesForNode';
|
|
4
4
|
import { $provideExecutionToolsForNode } from '../execution/utils/$provideExecutionToolsForNode';
|
|
@@ -9,7 +9,7 @@ import { $provideScrapersForNode } from '../scrapers/_common/register/$provideSc
|
|
|
9
9
|
import { FileCacheStorage } from '../storage/file-cache-storage/FileCacheStorage';
|
|
10
10
|
import { $execCommand } from '../utils/execCommand/$execCommand';
|
|
11
11
|
import { $execCommands } from '../utils/execCommand/$execCommands';
|
|
12
|
-
export {
|
|
12
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
13
13
|
export { createCollectionFromDirectory };
|
|
14
14
|
export { $provideExecutablesForNode };
|
|
15
15
|
export { $provideExecutionToolsForNode };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { createOpenAiAssistantExecutionTools } from '../llm-providers/openai/createOpenAiAssistantExecutionTools';
|
|
3
3
|
import { createOpenAiExecutionTools } from '../llm-providers/openai/createOpenAiExecutionTools';
|
|
4
4
|
import { OPENAI_MODELS } from '../llm-providers/openai/openai-models';
|
|
@@ -8,7 +8,7 @@ import { OpenAiExecutionTools } from '../llm-providers/openai/OpenAiExecutionToo
|
|
|
8
8
|
import type { OpenAiExecutionToolsOptions } from '../llm-providers/openai/OpenAiExecutionToolsOptions';
|
|
9
9
|
import { _OpenAiRegistration } from '../llm-providers/openai/register-constructor';
|
|
10
10
|
import { _OpenAiAssistantRegistration } from '../llm-providers/openai/register-constructor';
|
|
11
|
-
export {
|
|
11
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
12
12
|
export { createOpenAiAssistantExecutionTools };
|
|
13
13
|
export { createOpenAiExecutionTools };
|
|
14
14
|
export { OPENAI_MODELS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { createPdfScraper } from '../scrapers/pdf/createPdfScraper';
|
|
3
3
|
import { PdfScraper } from '../scrapers/pdf/PdfScraper';
|
|
4
4
|
import { _PdfScraperRegistration } from '../scrapers/pdf/register-constructor';
|
|
5
|
-
export {
|
|
5
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
6
6
|
export { createPdfScraper };
|
|
7
7
|
export { PdfScraper };
|
|
8
8
|
export { _PdfScraperRegistration };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import type { RemoteLlmExecutionToolsOptions } from '../llm-providers/remote/interfaces/RemoteLlmExecutionToolsOptions';
|
|
3
3
|
import type { RemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
|
|
4
4
|
import { RemoteLlmExecutionTools } from '../llm-providers/remote/RemoteLlmExecutionTools';
|
|
5
|
-
export {
|
|
5
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
6
6
|
export type { RemoteLlmExecutionToolsOptions };
|
|
7
7
|
export type { RemoteServerOptions };
|
|
8
8
|
export { RemoteLlmExecutionTools };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import type { RemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
|
|
3
3
|
import { startRemoteServer } from '../llm-providers/remote/startRemoteServer';
|
|
4
|
-
export {
|
|
4
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
5
5
|
export type { RemoteServerOptions };
|
|
6
6
|
export { startRemoteServer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMermaidOptions';
|
|
3
3
|
import { extractParameterNamesFromTemplate } from '../conversion/utils/extractParameterNamesFromTemplate';
|
|
4
4
|
import { extractVariables } from '../conversion/utils/extractVariables';
|
|
@@ -69,7 +69,7 @@ import { isUrlOnPrivateNetwork } from '../utils/validators/url/isUrlOnPrivateNet
|
|
|
69
69
|
import { isValidPipelineUrl } from '../utils/validators/url/isValidPipelineUrl';
|
|
70
70
|
import { isValidUrl } from '../utils/validators/url/isValidUrl';
|
|
71
71
|
import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
|
|
72
|
-
export {
|
|
72
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
73
73
|
export { renderPromptbookMermaid };
|
|
74
74
|
export { extractParameterNamesFromTemplate };
|
|
75
75
|
export { extractVariables };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { createWebsiteScraper } from '../scrapers/website/createWebsiteScraper';
|
|
3
3
|
import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
|
|
4
4
|
import { WebsiteScraper } from '../scrapers/website/WebsiteScraper';
|
|
5
|
-
export {
|
|
5
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
6
6
|
export { createWebsiteScraper };
|
|
7
7
|
export { _WebsiteScraperRegistration };
|
|
8
8
|
export { WebsiteScraper };
|
|
@@ -7,7 +7,6 @@ import type { Command as Program } from 'commander';
|
|
|
7
7
|
export declare function initializeMakeCommand(program: Program): void;
|
|
8
8
|
/**
|
|
9
9
|
* TODO: [🥃][main] !!! Allow `ptbk make` without configuring any llm tools
|
|
10
|
-
* TODO: Maybe remove this command - "about" command should be enough?
|
|
11
10
|
* TODO: [0] DRY Javascript and typescript - Maybe make ONLY typescript and for javascript just remove types
|
|
12
11
|
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
13
12
|
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* Initializes `run` command for Promptbook CLI utilities
|
|
4
|
+
*
|
|
5
|
+
* @private internal function of `promptbookCli`
|
|
6
|
+
*/
|
|
7
|
+
export declare function initializeRunCommand(program: Program): void;
|
|
8
|
+
/**
|
|
9
|
+
* TODO: !!!!!! Catch and wrap all errors from CLI
|
|
10
|
+
* TODO: [🧠] Pass `maxExecutionAttempts`, `csvSettings`
|
|
11
|
+
* TODO: [🥃][main] !!! Allow `ptbk run` without configuring any llm tools
|
|
12
|
+
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
13
|
+
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
14
|
+
*/
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function promptbookCli(): Promise<void>;
|
|
7
7
|
/**
|
|
8
|
+
* TODO: [🧠] Maybe `run` command the default, instead of `ptbk run ./foo.ptbk.md` -> `ptbk ./foo.ptbk.md`
|
|
8
9
|
* TODO: [🥠] Do not export, its just for CLI script
|
|
9
10
|
* TODO: [🕌] When more functionalities, rename
|
|
10
11
|
* Note: 11:11
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { string_semantic_version } from '../../types/typeAliases';
|
|
2
2
|
/**
|
|
3
|
-
* Parsed
|
|
3
|
+
* Parsed BOOK_VERSION command
|
|
4
4
|
*
|
|
5
|
-
* @see ./
|
|
5
|
+
* @see ./bookVersionCommandParser.ts for more details
|
|
6
6
|
* @private within the commands folder
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
readonly type: '
|
|
8
|
+
export type BookVersionCommand = {
|
|
9
|
+
readonly type: 'BOOK_VERSION';
|
|
10
10
|
readonly promptbookVersion: string_semantic_version;
|
|
11
11
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PipelineHeadCommandParser } from '../_common/types/CommandParser';
|
|
2
|
+
import type { BookVersionCommand } from './BookVersionCommand';
|
|
3
|
+
/**
|
|
4
|
+
* Parses the BOOK_VERSION command
|
|
5
|
+
*
|
|
6
|
+
* @see `documentationUrl` for more details
|
|
7
|
+
* @private within the commands folder
|
|
8
|
+
*/
|
|
9
|
+
export declare const bookVersionCommandParser: PipelineHeadCommandParser<BookVersionCommand>;
|
|
@@ -169,7 +169,7 @@ export type CommandParserInput = {
|
|
|
169
169
|
/**
|
|
170
170
|
* @@@
|
|
171
171
|
*
|
|
172
|
-
* @example '
|
|
172
|
+
* @example 'PROMPTBOOK_ENGINE_VERSION_0_62_0'
|
|
173
173
|
* @example 'FOREACH_LIST_LINE_CUSTOMERS_CUSTOMER'
|
|
174
174
|
*/
|
|
175
175
|
readonly normalized: string_name & string_SCREAMING_CASE;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @private internal index of `parseCommand`
|
|
5
5
|
*/
|
|
6
|
-
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./TEMPLATE/TemplateCommand").TemplateCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./
|
|
6
|
+
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./TEMPLATE/TemplateCommand").TemplateCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./BOOK_VERSION/BookVersionCommand").BookVersionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./URL/UrlCommand").UrlCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./KNOWLEDGE/KnowledgeCommand").KnowledgeCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_ACTION/ActionCommand").ActionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_INSTRUMENT/InstrumentCommand").InstrumentCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PERSONA/PersonaCommand").PersonaCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FOREACH/ForeachCommand").ForeachCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./_BOILERPLATE/BoilerplateCommand").BoilerplateCommand>];
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { string_semantic_version } from './types/typeAliases';
|
|
2
2
|
/**
|
|
3
|
-
* The version of the
|
|
3
|
+
* The version of the Book language
|
|
4
|
+
*
|
|
5
|
+
* @see https://github.com/webgptorg/book
|
|
4
6
|
*/
|
|
5
|
-
export declare const
|
|
7
|
+
export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
8
|
+
/**
|
|
9
|
+
* The version of the Promptbook engine
|
|
10
|
+
*
|
|
11
|
+
* @see https://github.com/webgptorg/promptbook
|
|
12
|
+
*/
|
|
13
|
+
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
6
14
|
export type string_promptbook_version = string_semantic_version;
|
|
15
|
+
/**
|
|
16
|
+
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
17
|
+
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -10,10 +10,20 @@
|
|
|
10
10
|
|
|
11
11
|
// ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
|
|
12
12
|
/**
|
|
13
|
-
* The version of the
|
|
13
|
+
* The version of the Book language
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/webgptorg/book
|
|
16
|
+
*/
|
|
17
|
+
var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
18
|
+
/**
|
|
19
|
+
* The version of the Promptbook engine
|
|
20
|
+
*
|
|
21
|
+
* @see https://github.com/webgptorg/promptbook
|
|
22
|
+
*/
|
|
23
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-2';
|
|
24
|
+
/**
|
|
25
|
+
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
14
26
|
*/
|
|
15
|
-
var PROMPTBOOK_VERSION = '0.73.0';
|
|
16
|
-
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
17
27
|
|
|
18
28
|
/*! *****************************************************************************
|
|
19
29
|
Copyright (c) Microsoft Corporation.
|
|
@@ -2388,7 +2398,7 @@
|
|
|
2388
2398
|
if ( /* version === '1.0.0' || */version === '2.0.0' || version === '3.0.0') {
|
|
2389
2399
|
return false;
|
|
2390
2400
|
}
|
|
2391
|
-
// <- TODO: [main] !!! Check isValidPromptbookVersion against
|
|
2401
|
+
// <- TODO: [main] !!! Check isValidPromptbookVersion against PROMPTBOOK_ENGINE_VERSIONS
|
|
2392
2402
|
return true;
|
|
2393
2403
|
}
|
|
2394
2404
|
|
|
@@ -2493,9 +2503,10 @@
|
|
|
2493
2503
|
exports.$isRunningInNode = $isRunningInNode;
|
|
2494
2504
|
exports.$isRunningInWebWorker = $isRunningInWebWorker;
|
|
2495
2505
|
exports.$randomSeed = $randomSeed;
|
|
2506
|
+
exports.BOOK_LANGUAGE_VERSION = BOOK_LANGUAGE_VERSION;
|
|
2496
2507
|
exports.CountUtils = CountUtils;
|
|
2497
2508
|
exports.DIACRITIC_VARIANTS_LETTERS = DIACRITIC_VARIANTS_LETTERS;
|
|
2498
|
-
exports.
|
|
2509
|
+
exports.PROMPTBOOK_ENGINE_VERSION = PROMPTBOOK_ENGINE_VERSION;
|
|
2499
2510
|
exports.capitalize = capitalize;
|
|
2500
2511
|
exports.checkSerializableAsJson = checkSerializableAsJson;
|
|
2501
2512
|
exports.clonePipeline = clonePipeline;
|