@promptbook/types 0.48.0-0 → 0.48.0
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/README.md +5 -2
- package/esm/typings/_packages/utils.index.d.ts +2 -1
- package/esm/typings/conversion/promptbookJsonToString.d.ts +3 -3
- package/esm/typings/conversion/utils/titleToName.d.ts +4 -0
- package/esm/typings/conversion/utils/titleToName.test.d.ts +1 -0
- package/package.json +2 -2
- package/umd/typings/_packages/utils.index.d.ts +2 -1
- package/umd/typings/conversion/promptbookJsonToString.d.ts +3 -3
- package/umd/typings/conversion/utils/titleToName.d.ts +4 -0
- package/umd/typings/conversion/utils/titleToName.test.d.ts +1 -0
package/README.md
CHANGED
|
@@ -5,13 +5,13 @@ Library to supercharge your use of large language models
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
|
|
8
9
|
[ Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
|
|
9
10
|
[ Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
|
|
10
11
|
[](https://snyk.io/test/github/webgptorg/promptbook)
|
|
11
12
|
[](https://github.com/webgptorg/promptbook/issues)
|
|
12
13
|
[](https://socket.dev/npm/package/promptbook)
|
|
13
14
|
|
|
14
|
-
|
|
15
15
|
[](https://socket.dev/npm/package/@promptbook/types)
|
|
16
16
|
|
|
17
17
|
|
|
@@ -658,7 +658,10 @@ GPTs are chat assistants that can be assigned to specific tasks and materials. B
|
|
|
658
658
|
|
|
659
659
|
|
|
660
660
|
|
|
661
|
-
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
662
665
|
|
|
663
666
|
|
|
664
667
|
|
|
@@ -2,6 +2,7 @@ import { spaceTrim } from 'spacetrim';
|
|
|
2
2
|
import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';
|
|
3
3
|
import { renderPromptbookMermaid } from '../conversion/prettify/renderPromptbookMermaid';
|
|
4
4
|
import { parseNumber } from '../conversion/utils/parseNumber';
|
|
5
|
+
import { titleToName } from '../conversion/utils/titleToName';
|
|
5
6
|
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
|
|
6
7
|
import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
|
|
7
8
|
import { replaceParameters } from '../execution/utils/replaceParameters';
|
|
@@ -56,7 +57,7 @@ export declare const normalizeTo: {
|
|
|
56
57
|
snake_case: typeof normalizeTo_snake_case;
|
|
57
58
|
'kebab-case': typeof normalizeToKebabCase;
|
|
58
59
|
};
|
|
59
|
-
export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, };
|
|
60
|
+
export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, titleToName, };
|
|
60
61
|
export { renderPromptbookMermaid };
|
|
61
62
|
/**
|
|
62
63
|
* TODO: [🧠] Maybe create some indipendent package like `markdown-tools` from both here exported and @private utilities
|
|
@@ -2,7 +2,7 @@ import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
|
|
|
2
2
|
import type { PromptbookString } from '../types/PromptbookString';
|
|
3
3
|
export declare function promptbookJsonToString(promptbookJson: PromptbookJson): PromptbookString;
|
|
4
4
|
/**
|
|
5
|
-
* TODO:
|
|
6
|
-
* TODO:
|
|
7
|
-
* TODO:
|
|
5
|
+
* TODO: !!!!! Implement
|
|
6
|
+
* TODO: !!!!! Annotate and warn
|
|
7
|
+
* TODO: !!!!! Test + test together with promptbookStringToJson
|
|
8
8
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/types",
|
|
3
|
-
"version": "0.48.0
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@promptbook/core": "0.48.0
|
|
48
|
+
"@promptbook/core": "0.48.0"
|
|
49
49
|
},
|
|
50
50
|
"main": "./umd/index.umd.js",
|
|
51
51
|
"module": "./esm/index.es.js",
|
|
@@ -2,6 +2,7 @@ import { spaceTrim } from 'spacetrim';
|
|
|
2
2
|
import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';
|
|
3
3
|
import { renderPromptbookMermaid } from '../conversion/prettify/renderPromptbookMermaid';
|
|
4
4
|
import { parseNumber } from '../conversion/utils/parseNumber';
|
|
5
|
+
import { titleToName } from '../conversion/utils/titleToName';
|
|
5
6
|
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
|
|
6
7
|
import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
|
|
7
8
|
import { replaceParameters } from '../execution/utils/replaceParameters';
|
|
@@ -56,7 +57,7 @@ export declare const normalizeTo: {
|
|
|
56
57
|
snake_case: typeof normalizeTo_snake_case;
|
|
57
58
|
'kebab-case': typeof normalizeToKebabCase;
|
|
58
59
|
};
|
|
59
|
-
export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, };
|
|
60
|
+
export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, titleToName, };
|
|
60
61
|
export { renderPromptbookMermaid };
|
|
61
62
|
/**
|
|
62
63
|
* TODO: [🧠] Maybe create some indipendent package like `markdown-tools` from both here exported and @private utilities
|
|
@@ -2,7 +2,7 @@ import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
|
|
|
2
2
|
import type { PromptbookString } from '../types/PromptbookString';
|
|
3
3
|
export declare function promptbookJsonToString(promptbookJson: PromptbookJson): PromptbookString;
|
|
4
4
|
/**
|
|
5
|
-
* TODO:
|
|
6
|
-
* TODO:
|
|
7
|
-
* TODO:
|
|
5
|
+
* TODO: !!!!! Implement
|
|
6
|
+
* TODO: !!!!! Annotate and warn
|
|
7
|
+
* TODO: !!!!! Test + test together with promptbookStringToJson
|
|
8
8
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|