@promptbook/remote-client 0.92.0-23 → 0.92.0-25
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 +45 -31
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +0 -2
- package/esm/typings/src/collection/PipelineCollection.d.ts +0 -2
- package/esm/typings/src/collection/SimplePipelineCollection.d.ts +1 -1
- package/esm/typings/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -1
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +36 -28
- package/esm/typings/src/config.d.ts +8 -4
- package/esm/typings/src/constants.d.ts +2 -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/formats/_common/FormatSubvalueParser.d.ts +10 -10
- package/esm/typings/src/formfactors/_boilerplate/BoilerplateFormfactorDefinition.d.ts +3 -2
- package/esm/typings/src/formfactors/_common/string_formfactor_name.d.ts +2 -1
- package/esm/typings/src/formfactors/index.d.ts +1 -1
- package/esm/typings/src/formfactors/sheets/SheetsFormfactorDefinition.d.ts +3 -2
- 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/cache/cacheLlmTools.d.ts +3 -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/environment/$getGlobalScope.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 +45 -31
- package/umd/index.umd.js.map +1 -1
|
@@ -5,7 +5,7 @@ type AddPipelineCommandOptions = {
|
|
|
5
5
|
pipelineString: PipelineString;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Adds a new command to a pipeline string in the correct format.
|
|
9
9
|
*
|
|
10
10
|
* @public exported from `@promptbook/editable`
|
|
11
11
|
*/
|
|
@@ -14,4 +14,4 @@ export {};
|
|
|
14
14
|
/**
|
|
15
15
|
* TODO: [🧠] What is the better solution - `- xxx`, - `- xxx` or preserve (see also next TODO)
|
|
16
16
|
* TODO: When existing commands 1) as 2) number 3) list, add 4) new command as next number
|
|
17
|
-
*/
|
|
17
|
+
*/
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { PipelineString } from '../../../pipeline/PipelineString';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Converts a pipeline structure to its string representation.
|
|
4
|
+
*
|
|
5
|
+
* Transforms a flat, simple pipeline into a properly formatted pipeline string
|
|
6
|
+
* with sections for title, prompt, and return statement.
|
|
4
7
|
*
|
|
5
8
|
* @public exported from `@promptbook/editable`
|
|
6
9
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PipelineString } from '../../../pipeline/PipelineString';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Utility to determine if a pipeline string is in flat format.
|
|
4
|
+
* A flat pipeline is a simple text without proper structure (headers, blocks, etc).
|
|
4
5
|
*
|
|
5
6
|
* @public exported from `@promptbook/editable`
|
|
6
7
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { really_any } from '../organization/really_any';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Safely retrieves the global scope object (window in browser, global in Node.js)
|
|
4
|
+
* regardless of the JavaScript environment in which the code is running
|
|
4
5
|
*
|
|
5
6
|
* Note: `$` is used to indicate that this function is not a pure function - it access global scope
|
|
6
7
|
*
|
|
@@ -9,7 +9,7 @@ import type { string_markdown_text } from '../../types/typeAliases';
|
|
|
9
9
|
* Note: It can not work with html syntax and comments
|
|
10
10
|
*
|
|
11
11
|
* @param markdown any valid markdown
|
|
12
|
-
* @returns
|
|
12
|
+
* @returns An array of strings, each representing an individual list item found in the markdown
|
|
13
13
|
* @public exported from `@promptbook/markdown-utils`
|
|
14
14
|
*/
|
|
15
15
|
export declare function extractAllListItemsFromMarkdown(markdown: string_markdown): string_markdown_text[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Converts a name string into a URI-compatible format.
|
|
3
3
|
*
|
|
4
|
-
* @param name
|
|
5
|
-
* @returns
|
|
6
|
-
* @example
|
|
4
|
+
* @param name The string to be converted to a URI-compatible format.
|
|
5
|
+
* @returns A URI-compatible string derived from the input name.
|
|
6
|
+
* @example 'Hello World' -> 'hello-world'
|
|
7
7
|
* @public exported from `@promptbook/utils`
|
|
8
8
|
*/
|
|
9
9
|
export declare function nameToUriPart(name: string): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Converts a given name into URI-compatible parts.
|
|
3
3
|
*
|
|
4
|
-
* @param name
|
|
5
|
-
* @returns
|
|
6
|
-
* @example
|
|
4
|
+
* @param name The name to be converted into URI parts.
|
|
5
|
+
* @returns An array of URI-compatible parts derived from the name.
|
|
6
|
+
* @example 'Example Name' -> ['example', 'name']
|
|
7
7
|
* @public exported from `@promptbook/utils`
|
|
8
8
|
*/
|
|
9
9
|
export declare function nameToUriParts(name: string): string[];
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export type string_kebab_case = string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Converts a given text to kebab-case format.
|
|
11
11
|
*
|
|
12
|
-
* @param text
|
|
13
|
-
* @returns
|
|
12
|
+
* @param text The text to be converted.
|
|
13
|
+
* @returns The kebab-case formatted string.
|
|
14
14
|
* @example 'hello-world'
|
|
15
15
|
* @example 'i-love-promptbook'
|
|
16
16
|
* @public exported from `@promptbook/utils`
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export type string_SCREAMING_CASE = string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Normalizes a text string to SCREAMING_CASE (all uppercase with underscores).
|
|
11
11
|
*
|
|
12
|
-
* @param text
|
|
13
|
-
* @returns
|
|
12
|
+
* @param text The text string to be converted to SCREAMING_CASE format.
|
|
13
|
+
* @returns The normalized text in SCREAMING_CASE format.
|
|
14
14
|
* @example 'HELLO_WORLD'
|
|
15
15
|
* @example 'I_LOVE_PROMPTBOOK'
|
|
16
16
|
* @public exported from `@promptbook/utils`
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export type string_camelCase = string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Normalizes a given text to camelCase format.
|
|
11
11
|
*
|
|
12
|
-
* @param text
|
|
13
|
-
* @param _isFirstLetterCapital
|
|
14
|
-
* @returns
|
|
12
|
+
* @param text The text to be normalized.
|
|
13
|
+
* @param _isFirstLetterCapital Whether the first letter should be capitalized.
|
|
14
|
+
* @returns The camelCase formatted string.
|
|
15
15
|
* @example 'helloWorld'
|
|
16
16
|
* @example 'iLovePromptbook'
|
|
17
17
|
* @public exported from `@promptbook/utils`
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type string_snake_case = string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Normalizes a text string to snake_case format.
|
|
10
10
|
*
|
|
11
|
-
* @param text
|
|
12
|
-
* @returns
|
|
11
|
+
* @param text The text string to be converted to snake_case format.
|
|
12
|
+
* @returns The normalized text in snake_case format.
|
|
13
13
|
* @example 'hello_world'
|
|
14
14
|
* @example 'i_love_promptbook'
|
|
15
15
|
* @public exported from `@promptbook/utils`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Removes diacritic marks (accents) from characters in a string.
|
|
3
3
|
*
|
|
4
|
-
* @param input
|
|
5
|
-
* @returns
|
|
4
|
+
* @param input The string containing diacritics to be normalized.
|
|
5
|
+
* @returns The string with diacritics removed or normalized.
|
|
6
6
|
* @public exported from `@promptbook/utils`
|
|
7
7
|
*/
|
|
8
8
|
export declare function removeDiacritics(input: string): string;
|
|
@@ -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-24`).
|
|
18
19
|
*
|
|
19
20
|
* @generated
|
|
20
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-client",
|
|
3
|
-
"version": "0.92.0-
|
|
3
|
+
"version": "0.92.0-25",
|
|
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/remote-client.index.d.ts",
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@promptbook/core": "0.92.0-
|
|
54
|
+
"@promptbook/core": "0.92.0-25"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"crypto": "1.0.1",
|
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-25';
|
|
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
|
|
@@ -996,10 +996,10 @@
|
|
|
996
996
|
*/
|
|
997
997
|
|
|
998
998
|
/**
|
|
999
|
-
*
|
|
999
|
+
* Removes diacritic marks (accents) from characters in a string.
|
|
1000
1000
|
*
|
|
1001
|
-
* @param input
|
|
1002
|
-
* @returns
|
|
1001
|
+
* @param input The string containing diacritics to be normalized.
|
|
1002
|
+
* @returns The string with diacritics removed or normalized.
|
|
1003
1003
|
* @public exported from `@promptbook/utils`
|
|
1004
1004
|
*/
|
|
1005
1005
|
function removeDiacritics(input) {
|
|
@@ -1013,10 +1013,10 @@
|
|
|
1013
1013
|
*/
|
|
1014
1014
|
|
|
1015
1015
|
/**
|
|
1016
|
-
*
|
|
1016
|
+
* Converts a given text to kebab-case format.
|
|
1017
1017
|
*
|
|
1018
|
-
* @param text
|
|
1019
|
-
* @returns
|
|
1018
|
+
* @param text The text to be converted.
|
|
1019
|
+
* @returns The kebab-case formatted string.
|
|
1020
1020
|
* @example 'hello-world'
|
|
1021
1021
|
* @example 'i-love-promptbook'
|
|
1022
1022
|
* @public exported from `@promptbook/utils`
|
|
@@ -1929,6 +1929,15 @@
|
|
|
1929
1929
|
mappedData.push(mappedRow);
|
|
1930
1930
|
if (onProgress) {
|
|
1931
1931
|
// Note: Report the CSV with all rows mapped so far
|
|
1932
|
+
/*
|
|
1933
|
+
!!!!
|
|
1934
|
+
// Report progress with updated value
|
|
1935
|
+
const progressData = mappedData.map((row, i) =>
|
|
1936
|
+
i > index ? { ...row, [outputParameterName]: PENDING_VALUE_PLACEHOLDER } : row,
|
|
1937
|
+
);
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
*/
|
|
1932
1941
|
await onProgress(papaparse.unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS }));
|
|
1933
1942
|
}
|
|
1934
1943
|
}
|
|
@@ -2138,10 +2147,10 @@
|
|
|
2138
2147
|
*/
|
|
2139
2148
|
|
|
2140
2149
|
/**
|
|
2141
|
-
*
|
|
2150
|
+
* Normalizes a text string to SCREAMING_CASE (all uppercase with underscores).
|
|
2142
2151
|
*
|
|
2143
|
-
* @param text
|
|
2144
|
-
* @returns
|
|
2152
|
+
* @param text The text string to be converted to SCREAMING_CASE format.
|
|
2153
|
+
* @returns The normalized text in SCREAMING_CASE format.
|
|
2145
2154
|
* @example 'HELLO_WORLD'
|
|
2146
2155
|
* @example 'I_LOVE_PROMPTBOOK'
|
|
2147
2156
|
* @public exported from `@promptbook/utils`
|
|
@@ -2478,11 +2487,11 @@
|
|
|
2478
2487
|
*/
|
|
2479
2488
|
|
|
2480
2489
|
/**
|
|
2481
|
-
*
|
|
2490
|
+
* Normalizes a given text to camelCase format.
|
|
2482
2491
|
*
|
|
2483
|
-
* @param text
|
|
2484
|
-
* @param _isFirstLetterCapital
|
|
2485
|
-
* @returns
|
|
2492
|
+
* @param text The text to be normalized.
|
|
2493
|
+
* @param _isFirstLetterCapital Whether the first letter should be capitalized.
|
|
2494
|
+
* @returns The camelCase formatted string.
|
|
2486
2495
|
* @example 'helloWorld'
|
|
2487
2496
|
* @example 'iLovePromptbook'
|
|
2488
2497
|
* @public exported from `@promptbook/utils`
|
|
@@ -2986,7 +2995,7 @@
|
|
|
2986
2995
|
};
|
|
2987
2996
|
|
|
2988
2997
|
/**
|
|
2989
|
-
*
|
|
2998
|
+
* Pipeline interface which is equivalent to `any`
|
|
2990
2999
|
*
|
|
2991
3000
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
2992
3001
|
*
|
|
@@ -3067,14 +3076,15 @@
|
|
|
3067
3076
|
};
|
|
3068
3077
|
|
|
3069
3078
|
/**
|
|
3070
|
-
* Sheets is form of app that
|
|
3079
|
+
* Sheets is form of app that processes tabular data in CSV format, allowing transformation
|
|
3080
|
+
* and analysis of structured data through AI-powered operations
|
|
3071
3081
|
*
|
|
3072
3082
|
* @public exported from `@promptbook/core`
|
|
3073
3083
|
*/
|
|
3074
3084
|
const SheetsFormfactorDefinition = {
|
|
3075
3085
|
name: 'SHEETS',
|
|
3076
3086
|
aliasNames: ['SHEETS', 'SHEET'],
|
|
3077
|
-
description:
|
|
3087
|
+
description: `A formfactor for processing spreadsheet-like data in CSV format, enabling AI transformations on tabular data`,
|
|
3078
3088
|
documentationUrl: `https://github.com/webgptorg/promptbook/discussions/176`,
|
|
3079
3089
|
pipelineInterface: {
|
|
3080
3090
|
inputParameters: [
|
|
@@ -3150,7 +3160,7 @@
|
|
|
3150
3160
|
/**
|
|
3151
3161
|
* Parses the formfactor command
|
|
3152
3162
|
*
|
|
3153
|
-
* Note:
|
|
3163
|
+
* Note: This command is used as a formfactor for new commands and defines the app type format - it should NOT be used in any `.book` file
|
|
3154
3164
|
*
|
|
3155
3165
|
* @see `documentationUrl` for more details
|
|
3156
3166
|
* @public exported from `@promptbook/editable`
|
|
@@ -3172,7 +3182,7 @@
|
|
|
3172
3182
|
/**
|
|
3173
3183
|
* Description of the FORMFACTOR command
|
|
3174
3184
|
*/
|
|
3175
|
-
description:
|
|
3185
|
+
description: `Specifies the application type and interface requirements that this promptbook should conform to`,
|
|
3176
3186
|
/**
|
|
3177
3187
|
* Link to documentation
|
|
3178
3188
|
*/
|
|
@@ -3315,8 +3325,7 @@
|
|
|
3315
3325
|
};
|
|
3316
3326
|
|
|
3317
3327
|
/**
|
|
3318
|
-
*
|
|
3319
|
-
*
|
|
3328
|
+
* @see {@link ModelVariant}
|
|
3320
3329
|
* @public exported from `@promptbook/core`
|
|
3321
3330
|
*/
|
|
3322
3331
|
const MODEL_VARIANTS = ['COMPLETION', 'CHAT', 'EMBEDDING' /* <- TODO [🏳] */ /* <- [🤖] */];
|
|
@@ -4321,7 +4330,7 @@
|
|
|
4321
4330
|
}
|
|
4322
4331
|
|
|
4323
4332
|
/**
|
|
4324
|
-
*
|
|
4333
|
+
* Extracts the interface (input and output parameters) from a pipeline.
|
|
4325
4334
|
*
|
|
4326
4335
|
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
4327
4336
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
@@ -4354,7 +4363,7 @@
|
|
|
4354
4363
|
}
|
|
4355
4364
|
|
|
4356
4365
|
/**
|
|
4357
|
-
*
|
|
4366
|
+
* Checks if two pipeline interfaces are structurally identical.
|
|
4358
4367
|
*
|
|
4359
4368
|
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
4360
4369
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
@@ -4386,10 +4395,11 @@
|
|
|
4386
4395
|
}
|
|
4387
4396
|
|
|
4388
4397
|
/**
|
|
4389
|
-
*
|
|
4398
|
+
* Checks if a given pipeline satisfies the requirements of a specified pipeline interface.
|
|
4390
4399
|
*
|
|
4391
4400
|
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
4392
4401
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
4402
|
+
* @returns `true` if the pipeline implements the interface, `false` otherwise.
|
|
4393
4403
|
*
|
|
4394
4404
|
* @public exported from `@promptbook/core`
|
|
4395
4405
|
*/
|
|
@@ -4619,7 +4629,8 @@
|
|
|
4619
4629
|
}
|
|
4620
4630
|
|
|
4621
4631
|
/**
|
|
4622
|
-
*
|
|
4632
|
+
* Utility to determine if a pipeline string is in flat format.
|
|
4633
|
+
* A flat pipeline is a simple text without proper structure (headers, blocks, etc).
|
|
4623
4634
|
*
|
|
4624
4635
|
* @public exported from `@promptbook/editable`
|
|
4625
4636
|
*/
|
|
@@ -4640,7 +4651,10 @@
|
|
|
4640
4651
|
}
|
|
4641
4652
|
|
|
4642
4653
|
/**
|
|
4643
|
-
*
|
|
4654
|
+
* Converts a pipeline structure to its string representation.
|
|
4655
|
+
*
|
|
4656
|
+
* Transforms a flat, simple pipeline into a properly formatted pipeline string
|
|
4657
|
+
* with sections for title, prompt, and return statement.
|
|
4644
4658
|
*
|
|
4645
4659
|
* @public exported from `@promptbook/editable`
|
|
4646
4660
|
*/
|
|
@@ -4697,7 +4711,7 @@
|
|
|
4697
4711
|
* Note: It can not work with html syntax and comments
|
|
4698
4712
|
*
|
|
4699
4713
|
* @param markdown any valid markdown
|
|
4700
|
-
* @returns
|
|
4714
|
+
* @returns An array of strings, each representing an individual list item found in the markdown
|
|
4701
4715
|
* @public exported from `@promptbook/markdown-utils`
|
|
4702
4716
|
*/
|
|
4703
4717
|
function extractAllListItemsFromMarkdown(markdown) {
|
|
@@ -4950,11 +4964,11 @@
|
|
|
4950
4964
|
*/
|
|
4951
4965
|
|
|
4952
4966
|
/**
|
|
4953
|
-
*
|
|
4967
|
+
* Converts a title string into a normalized name.
|
|
4954
4968
|
*
|
|
4955
|
-
* @param value
|
|
4956
|
-
* @returns
|
|
4957
|
-
* @example
|
|
4969
|
+
* @param value The title string to be converted to a name.
|
|
4970
|
+
* @returns A normalized name derived from the input title.
|
|
4971
|
+
* @example 'Hello World!' -> 'hello-world'
|
|
4958
4972
|
* @public exported from `@promptbook/utils`
|
|
4959
4973
|
*/
|
|
4960
4974
|
function titleToName(value) {
|