@promptbook/openai 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.
|
@@ -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/openai",
|
|
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,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@promptbook/core": "0.50.0-
|
|
51
|
+
"@promptbook/core": "0.50.0-16"
|
|
52
52
|
},
|
|
53
53
|
"main": "./umd/index.umd.js",
|
|
54
54
|
"module": "./esm/index.es.js",
|
|
@@ -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 };
|