@promptbook/editable 0.92.0-24 → 0.92.0-26
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/esm/index.es.js +23 -20
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +0 -2
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +36 -28
- package/esm/typings/src/constants.d.ts +8 -2
- package/esm/typings/src/errors/0-BoilerplateError.d.ts +2 -2
- package/esm/typings/src/execution/CommonToolsOptions.d.ts +3 -3
- package/esm/typings/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +3 -3
- package/esm/typings/src/llm-providers/_common/register/$llmToolsRegister.d.ts +3 -3
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +4 -4
- package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +5 -5
- package/esm/typings/src/llm-providers/_common/utils/cache/CacheLlmToolsOptions.d.ts +5 -3
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +5 -5
- package/esm/typings/src/other/templates/getBookTemplates.d.ts +2 -2
- package/esm/typings/src/pipeline/PipelineInterface/PipelineInterface.d.ts +3 -3
- package/esm/typings/src/pipeline/PipelineInterface/constants.d.ts +1 -1
- package/esm/typings/src/pipeline/PipelineInterface/getPipelineInterface.d.ts +1 -1
- package/esm/typings/src/pipeline/PipelineInterface/isPipelineImplementingInterface.d.ts +5 -4
- package/esm/typings/src/pipeline/PipelineInterface/isPipelineInterfacesEqual.d.ts +1 -1
- package/esm/typings/src/pipeline/PipelineJson/CommonTaskJson.d.ts +9 -6
- package/esm/typings/src/pipeline/PipelineJson/PipelineJson.d.ts +2 -2
- package/esm/typings/src/pipeline/PipelineString.d.ts +3 -1
- package/esm/typings/src/pipeline/book-notation.d.ts +2 -2
- package/esm/typings/src/prepare/prepareTasks.d.ts +7 -4
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +2 -1
- package/esm/typings/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +3 -3
- package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +1 -1
- package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/Converter.d.ts +3 -1
- package/esm/typings/src/scrapers/_common/Scraper.d.ts +4 -3
- package/esm/typings/src/scrapers/_common/ScraperIntermediateSource.d.ts +4 -2
- package/esm/typings/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -1
- package/esm/typings/src/scrapers/_common/register/$provideScrapersForBrowser.d.ts +6 -3
- package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +3 -5
- package/esm/typings/src/scrapers/_common/register/$scrapersRegister.d.ts +3 -2
- package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +8 -5
- package/esm/typings/src/scrapers/_common/register/ScraperConstructor.d.ts +2 -1
- package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +6 -5
- package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +3 -1
- package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -1
- package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +2 -1
- package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +4 -1
- package/esm/typings/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
- package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +2 -1
- package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +3 -4
- package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +5 -1
- package/esm/typings/src/storage/file-cache-storage/FileCacheStorage.d.ts +12 -5
- package/esm/typings/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +4 -2
- package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +2 -1
- package/esm/typings/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +2 -1
- package/esm/typings/src/types/IntermediateFilesStrategy.d.ts +2 -1
- package/esm/typings/src/types/ModelVariant.d.ts +5 -5
- package/esm/typings/src/types/typeAliases.d.ts +8 -6
- package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +2 -2
- package/esm/typings/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +4 -1
- package/esm/typings/src/utils/editable/utils/isFlatPipeline.d.ts +2 -1
- package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +1 -1
- package/esm/typings/src/utils/normalization/nameToUriPart.d.ts +4 -4
- package/esm/typings/src/utils/normalization/nameToUriParts.d.ts +4 -4
- package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +3 -3
- package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +3 -3
- package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +4 -4
- package/esm/typings/src/utils/normalization/normalizeTo_snake_case.d.ts +3 -3
- package/esm/typings/src/utils/normalization/removeDiacritics.d.ts +3 -3
- package/esm/typings/src/utils/normalization/searchKeywords.d.ts +4 -1
- package/esm/typings/src/utils/normalization/titleToName.d.ts +4 -4
- package/esm/typings/src/utils/organization/empty_object.d.ts +2 -2
- package/esm/typings/src/utils/organization/just_empty_object.d.ts +4 -4
- package/esm/typings/src/version.d.ts +2 -1
- package/package.json +2 -2
- package/umd/index.umd.js +23 -20
- package/umd/index.umd.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Keywords } from './IKeywords';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Searches set of keywords for a specific keyword
|
|
4
4
|
*
|
|
5
5
|
* @param haystack
|
|
6
6
|
* @param needle
|
|
@@ -8,3 +8,6 @@ import type { Keywords } from './IKeywords';
|
|
|
8
8
|
* @public exported from `@promptbook/utils`
|
|
9
9
|
*/
|
|
10
10
|
export declare function searchKeywords(haystack: Keywords, needle: Keywords): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* TODO: Rename to `isKeywordInKeywords`
|
|
13
|
+
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Converts a title string into a normalized name.
|
|
3
3
|
*
|
|
4
|
-
* @param value
|
|
5
|
-
* @returns
|
|
6
|
-
* @example
|
|
4
|
+
* @param value The title string to be converted to a name.
|
|
5
|
+
* @returns A normalized name derived from the input title.
|
|
6
|
+
* @example 'Hello World!' -> 'hello-world'
|
|
7
7
|
* @public exported from `@promptbook/utils`
|
|
8
8
|
*/
|
|
9
9
|
export declare function titleToName(value: string): string;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Organizational helper to better mark the place where to really use empty object `{}`
|
|
3
3
|
*
|
|
4
4
|
* Note: There are 2 similar types>
|
|
5
|
-
* - `empty_object`
|
|
6
|
-
* - `just_empty_object`
|
|
5
|
+
* - `empty_object` Type used for empty data objects allowing for potential future extensions
|
|
6
|
+
* - `just_empty_object` Type used when an object must remain permanently empty
|
|
7
7
|
*
|
|
8
8
|
* @private within the repository
|
|
9
9
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Organizational helper to better
|
|
2
|
+
* Organizational helper to better distinguish different empty object use cases.
|
|
3
3
|
*
|
|
4
|
-
* Note: There are 2 similar types
|
|
5
|
-
* - `empty_object`
|
|
6
|
-
* - `just_empty_object`
|
|
4
|
+
* Note: There are 2 similar types:
|
|
5
|
+
* - `empty_object` Type used for empty data objects with potential extensions
|
|
6
|
+
* - `just_empty_object` Type used specifically for objects that must remain empty
|
|
7
7
|
*
|
|
8
8
|
* Note: In most cases, you should use `empty_object`
|
|
9
9
|
*
|
|
@@ -14,7 +14,8 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Represents the version string of the Promptbook engine.
|
|
18
|
+
* It follows semantic versioning (e.g., `0.92.0-25`).
|
|
18
19
|
*
|
|
19
20
|
* @generated
|
|
20
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/editable",
|
|
3
|
-
"version": "0.92.0-
|
|
3
|
+
"version": "0.92.0-26",
|
|
4
4
|
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"module": "./esm/index.es.js",
|
|
52
52
|
"typings": "./esm/typings/src/_packages/editable.index.d.ts",
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@promptbook/core": "0.92.0-
|
|
54
|
+
"@promptbook/core": "0.92.0-26"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"crypto-js": "4.2.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* @generated
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-26';
|
|
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
|
|
@@ -1043,10 +1043,10 @@
|
|
|
1043
1043
|
*/
|
|
1044
1044
|
|
|
1045
1045
|
/**
|
|
1046
|
-
*
|
|
1046
|
+
* Normalizes a text string to SCREAMING_CASE (all uppercase with underscores).
|
|
1047
1047
|
*
|
|
1048
|
-
* @param text
|
|
1049
|
-
* @returns
|
|
1048
|
+
* @param text The text string to be converted to SCREAMING_CASE format.
|
|
1049
|
+
* @returns The normalized text in SCREAMING_CASE format.
|
|
1050
1050
|
* @example 'HELLO_WORLD'
|
|
1051
1051
|
* @example 'I_LOVE_PROMPTBOOK'
|
|
1052
1052
|
* @public exported from `@promptbook/utils`
|
|
@@ -1369,11 +1369,11 @@
|
|
|
1369
1369
|
*/
|
|
1370
1370
|
|
|
1371
1371
|
/**
|
|
1372
|
-
*
|
|
1372
|
+
* Normalizes a given text to camelCase format.
|
|
1373
1373
|
*
|
|
1374
|
-
* @param text
|
|
1375
|
-
* @param _isFirstLetterCapital
|
|
1376
|
-
* @returns
|
|
1374
|
+
* @param text The text to be normalized.
|
|
1375
|
+
* @param _isFirstLetterCapital Whether the first letter should be capitalized.
|
|
1376
|
+
* @returns The camelCase formatted string.
|
|
1377
1377
|
* @example 'helloWorld'
|
|
1378
1378
|
* @example 'iLovePromptbook'
|
|
1379
1379
|
* @public exported from `@promptbook/utils`
|
|
@@ -1665,10 +1665,10 @@
|
|
|
1665
1665
|
*/
|
|
1666
1666
|
|
|
1667
1667
|
/**
|
|
1668
|
-
*
|
|
1668
|
+
* Removes diacritic marks (accents) from characters in a string.
|
|
1669
1669
|
*
|
|
1670
|
-
* @param input
|
|
1671
|
-
* @returns
|
|
1670
|
+
* @param input The string containing diacritics to be normalized.
|
|
1671
|
+
* @returns The string with diacritics removed or normalized.
|
|
1672
1672
|
* @public exported from `@promptbook/utils`
|
|
1673
1673
|
*/
|
|
1674
1674
|
function removeDiacritics(input) {
|
|
@@ -2138,7 +2138,7 @@
|
|
|
2138
2138
|
};
|
|
2139
2139
|
|
|
2140
2140
|
/**
|
|
2141
|
-
*
|
|
2141
|
+
* Pipeline interface which is equivalent to `any`
|
|
2142
2142
|
*
|
|
2143
2143
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
2144
2144
|
*
|
|
@@ -2546,10 +2546,10 @@
|
|
|
2546
2546
|
}
|
|
2547
2547
|
|
|
2548
2548
|
/**
|
|
2549
|
-
*
|
|
2549
|
+
* Converts a given text to kebab-case format.
|
|
2550
2550
|
*
|
|
2551
|
-
* @param text
|
|
2552
|
-
* @returns
|
|
2551
|
+
* @param text The text to be converted.
|
|
2552
|
+
* @returns The kebab-case formatted string.
|
|
2553
2553
|
* @example 'hello-world'
|
|
2554
2554
|
* @example 'i-love-promptbook'
|
|
2555
2555
|
* @public exported from `@promptbook/utils`
|
|
@@ -2712,8 +2712,7 @@
|
|
|
2712
2712
|
*/
|
|
2713
2713
|
|
|
2714
2714
|
/**
|
|
2715
|
-
*
|
|
2716
|
-
*
|
|
2715
|
+
* @see {@link ModelVariant}
|
|
2717
2716
|
* @public exported from `@promptbook/core`
|
|
2718
2717
|
*/
|
|
2719
2718
|
const MODEL_VARIANTS = ['COMPLETION', 'CHAT', 'EMBEDDING' /* <- TODO [🏳] */ /* <- [🤖] */];
|
|
@@ -3999,7 +3998,8 @@
|
|
|
3999
3998
|
}
|
|
4000
3999
|
|
|
4001
4000
|
/**
|
|
4002
|
-
*
|
|
4001
|
+
* Utility to determine if a pipeline string is in flat format.
|
|
4002
|
+
* A flat pipeline is a simple text without proper structure (headers, blocks, etc).
|
|
4003
4003
|
*
|
|
4004
4004
|
* @public exported from `@promptbook/editable`
|
|
4005
4005
|
*/
|
|
@@ -4020,7 +4020,10 @@
|
|
|
4020
4020
|
}
|
|
4021
4021
|
|
|
4022
4022
|
/**
|
|
4023
|
-
*
|
|
4023
|
+
* Converts a pipeline structure to its string representation.
|
|
4024
|
+
*
|
|
4025
|
+
* Transforms a flat, simple pipeline into a properly formatted pipeline string
|
|
4026
|
+
* with sections for title, prompt, and return statement.
|
|
4024
4027
|
*
|
|
4025
4028
|
* @public exported from `@promptbook/editable`
|
|
4026
4029
|
*/
|
|
@@ -4069,7 +4072,7 @@
|
|
|
4069
4072
|
*/
|
|
4070
4073
|
|
|
4071
4074
|
/**
|
|
4072
|
-
*
|
|
4075
|
+
* Adds a new command to a pipeline string in the correct format.
|
|
4073
4076
|
*
|
|
4074
4077
|
* @public exported from `@promptbook/editable`
|
|
4075
4078
|
*/
|