@promptbook/core 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
@@ -447,7 +447,7 @@ function union() {
447
447
  /**
448
448
  * The version of the Promptbook library
449
449
  */
450
- var PROMPTBOOK_VERSION = '0.50.0-14';
450
+ var PROMPTBOOK_VERSION = '0.50.0-15';
451
451
 
452
452
  /**
453
453
  * Parses the template and returns the list of all parameter names
@@ -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
- export { JavascriptEvalExecutionTools, JavascriptExecutionTools };
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/core",
3
- "version": "0.50.0-15",
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,
package/umd/index.umd.js CHANGED
@@ -453,7 +453,7 @@
453
453
  /**
454
454
  * The version of the Promptbook library
455
455
  */
456
- var PROMPTBOOK_VERSION = '0.50.0-14';
456
+ var PROMPTBOOK_VERSION = '0.50.0-15';
457
457
 
458
458
  /**
459
459
  * Parses the template and returns the list of all parameter names
@@ -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
- export { JavascriptEvalExecutionTools, JavascriptExecutionTools };
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 };