@promptbook/cli 0.50.0-15 → 0.50.0-16
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
CHANGED
|
@@ -143,7 +143,7 @@ new Function("\n try {\n if (typeof WorkerGlobalScope !== 'undefined'
|
|
|
143
143
|
/**
|
|
144
144
|
* The version of the Promptbook library
|
|
145
145
|
*/
|
|
146
|
-
var PROMPTBOOK_VERSION = '0.50.0-
|
|
146
|
+
var PROMPTBOOK_VERSION = '0.50.0-15';
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
|
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
import spaceTrim from 'spacetrim';
|
|
1
2
|
import { JavascriptEvalExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools';
|
|
2
3
|
import { JavascriptExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools';
|
|
3
|
-
|
|
4
|
+
import { prettifyMarkdown } from '../utils/markdown/prettifyMarkdown';
|
|
5
|
+
import { capitalize } from '../utils/normalization/capitalize';
|
|
6
|
+
import { decapitalize } from '../utils/normalization/decapitalize';
|
|
7
|
+
import { nameToUriPart } from '../utils/normalization/nameToUriPart';
|
|
8
|
+
import { nameToUriParts } from '../utils/normalization/nameToUriParts';
|
|
9
|
+
import { normalizeToKebabCase } from '../utils/normalization/normalize-to-kebab-case';
|
|
10
|
+
import { normalizeTo_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
|
|
11
|
+
import { normalizeTo_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
|
|
12
|
+
import { normalizeTo_camelCase } from '../utils/normalization/normalizeTo_camelCase';
|
|
13
|
+
import { normalizeTo_snake_case } from '../utils/normalization/normalizeTo_snake_case';
|
|
14
|
+
import { normalizeWhitespaces } from '../utils/normalization/normalizeWhitespaces';
|
|
15
|
+
import { removeDiacritics } from '../utils/normalization/removeDiacritics';
|
|
16
|
+
import { extractBlock } from '../utils/postprocessing/extractBlock';
|
|
17
|
+
import { removeEmojis } from '../utils/removeEmojis';
|
|
18
|
+
import { removeQuotes } from '../utils/removeQuotes';
|
|
19
|
+
import { trimCodeBlock } from '../utils/trimCodeBlock';
|
|
20
|
+
import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
|
|
21
|
+
import { unwrapResult } from '../utils/unwrapResult';
|
|
22
|
+
declare const POSTPROCESSING_FUNCTIONS: {
|
|
23
|
+
spaceTrim: typeof spaceTrim;
|
|
24
|
+
removeQuotes: typeof removeQuotes;
|
|
25
|
+
unwrapResult: typeof unwrapResult;
|
|
26
|
+
trimEndOfCodeBlock: typeof trimEndOfCodeBlock;
|
|
27
|
+
trimCodeBlock: typeof trimCodeBlock;
|
|
28
|
+
trim: (str: string) => string;
|
|
29
|
+
reverse: (str: string) => string;
|
|
30
|
+
removeEmojis: typeof removeEmojis;
|
|
31
|
+
prettifyMarkdown: typeof prettifyMarkdown;
|
|
32
|
+
capitalize: typeof capitalize;
|
|
33
|
+
decapitalize: typeof decapitalize;
|
|
34
|
+
nameToUriPart: typeof nameToUriPart;
|
|
35
|
+
nameToUriParts: typeof nameToUriParts;
|
|
36
|
+
removeDiacritics: typeof removeDiacritics;
|
|
37
|
+
normalizeWhitespaces: typeof normalizeWhitespaces;
|
|
38
|
+
normalizeToKebabCase: typeof normalizeToKebabCase;
|
|
39
|
+
normalizeTo_camelCase: typeof normalizeTo_camelCase;
|
|
40
|
+
normalizeTo_snake_case: typeof normalizeTo_snake_case;
|
|
41
|
+
normalizeTo_PascalCase: typeof normalizeTo_PascalCase;
|
|
42
|
+
parseKeywords: (input: string) => string;
|
|
43
|
+
normalizeTo_SCREAMING_CASE: typeof normalizeTo_SCREAMING_CASE;
|
|
44
|
+
extractBlock: typeof extractBlock;
|
|
45
|
+
};
|
|
46
|
+
export { JavascriptEvalExecutionTools, JavascriptExecutionTools, POSTPROCESSING_FUNCTIONS };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/cli",
|
|
3
|
-
"version": "0.50.0-
|
|
3
|
+
"version": "0.50.0-16",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@promptbook/core": "0.50.0-
|
|
55
|
+
"@promptbook/core": "0.50.0-16"
|
|
56
56
|
},
|
|
57
57
|
"main": "./umd/index.umd.js",
|
|
58
58
|
"module": "./esm/index.es.js",
|
package/umd/index.umd.js
CHANGED
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
/**
|
|
147
147
|
* The version of the Promptbook library
|
|
148
148
|
*/
|
|
149
|
-
var PROMPTBOOK_VERSION = '0.50.0-
|
|
149
|
+
var PROMPTBOOK_VERSION = '0.50.0-15';
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
|
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
import spaceTrim from 'spacetrim';
|
|
1
2
|
import { JavascriptEvalExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools';
|
|
2
3
|
import { JavascriptExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools';
|
|
3
|
-
|
|
4
|
+
import { prettifyMarkdown } from '../utils/markdown/prettifyMarkdown';
|
|
5
|
+
import { capitalize } from '../utils/normalization/capitalize';
|
|
6
|
+
import { decapitalize } from '../utils/normalization/decapitalize';
|
|
7
|
+
import { nameToUriPart } from '../utils/normalization/nameToUriPart';
|
|
8
|
+
import { nameToUriParts } from '../utils/normalization/nameToUriParts';
|
|
9
|
+
import { normalizeToKebabCase } from '../utils/normalization/normalize-to-kebab-case';
|
|
10
|
+
import { normalizeTo_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
|
|
11
|
+
import { normalizeTo_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
|
|
12
|
+
import { normalizeTo_camelCase } from '../utils/normalization/normalizeTo_camelCase';
|
|
13
|
+
import { normalizeTo_snake_case } from '../utils/normalization/normalizeTo_snake_case';
|
|
14
|
+
import { normalizeWhitespaces } from '../utils/normalization/normalizeWhitespaces';
|
|
15
|
+
import { removeDiacritics } from '../utils/normalization/removeDiacritics';
|
|
16
|
+
import { extractBlock } from '../utils/postprocessing/extractBlock';
|
|
17
|
+
import { removeEmojis } from '../utils/removeEmojis';
|
|
18
|
+
import { removeQuotes } from '../utils/removeQuotes';
|
|
19
|
+
import { trimCodeBlock } from '../utils/trimCodeBlock';
|
|
20
|
+
import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
|
|
21
|
+
import { unwrapResult } from '../utils/unwrapResult';
|
|
22
|
+
declare const POSTPROCESSING_FUNCTIONS: {
|
|
23
|
+
spaceTrim: typeof spaceTrim;
|
|
24
|
+
removeQuotes: typeof removeQuotes;
|
|
25
|
+
unwrapResult: typeof unwrapResult;
|
|
26
|
+
trimEndOfCodeBlock: typeof trimEndOfCodeBlock;
|
|
27
|
+
trimCodeBlock: typeof trimCodeBlock;
|
|
28
|
+
trim: (str: string) => string;
|
|
29
|
+
reverse: (str: string) => string;
|
|
30
|
+
removeEmojis: typeof removeEmojis;
|
|
31
|
+
prettifyMarkdown: typeof prettifyMarkdown;
|
|
32
|
+
capitalize: typeof capitalize;
|
|
33
|
+
decapitalize: typeof decapitalize;
|
|
34
|
+
nameToUriPart: typeof nameToUriPart;
|
|
35
|
+
nameToUriParts: typeof nameToUriParts;
|
|
36
|
+
removeDiacritics: typeof removeDiacritics;
|
|
37
|
+
normalizeWhitespaces: typeof normalizeWhitespaces;
|
|
38
|
+
normalizeToKebabCase: typeof normalizeToKebabCase;
|
|
39
|
+
normalizeTo_camelCase: typeof normalizeTo_camelCase;
|
|
40
|
+
normalizeTo_snake_case: typeof normalizeTo_snake_case;
|
|
41
|
+
normalizeTo_PascalCase: typeof normalizeTo_PascalCase;
|
|
42
|
+
parseKeywords: (input: string) => string;
|
|
43
|
+
normalizeTo_SCREAMING_CASE: typeof normalizeTo_SCREAMING_CASE;
|
|
44
|
+
extractBlock: typeof extractBlock;
|
|
45
|
+
};
|
|
46
|
+
export { JavascriptEvalExecutionTools, JavascriptExecutionTools, POSTPROCESSING_FUNCTIONS };
|