@promptbook/openai 0.112.0-65 → 0.112.0-66
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 +50 -2
- package/esm/index.es.js.map +1 -1
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/esm/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/esm/src/config.d.ts +3 -3
- package/esm/src/utils/files/getPromptbookTempPath.d.ts +24 -0
- package/esm/src/utils/files/getPromptbookTempPath.test.d.ts +1 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +50 -2
- package/umd/index.umd.js.map +1 -1
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/umd/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/umd/src/config.d.ts +3 -3
- package/umd/src/utils/files/getPromptbookTempPath.d.ts +24 -0
- package/umd/src/utils/files/getPromptbookTempPath.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
package/esm/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import colors from 'colors';
|
|
2
2
|
import { spaceTrim as spaceTrim$1 } from 'spacetrim';
|
|
3
|
-
import 'path';
|
|
3
|
+
import { posix } from 'path';
|
|
4
4
|
import { randomBytes } from 'crypto';
|
|
5
5
|
import 'crypto-js';
|
|
6
6
|
import 'crypto-js/enc-hex';
|
|
@@ -23,7 +23,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
23
23
|
* @generated
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-66';
|
|
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
|
|
@@ -979,6 +979,29 @@ function saturate(amount) {
|
|
|
979
979
|
}
|
|
980
980
|
// TODO: Maybe implement by mix+hsl
|
|
981
981
|
|
|
982
|
+
/**
|
|
983
|
+
* Relative directory name without the `./` prefix for Git ignore rules and glob patterns.
|
|
984
|
+
*
|
|
985
|
+
* @private internal utility for Promptbook-owned temp files
|
|
986
|
+
*/
|
|
987
|
+
const PROMPTBOOK_TEMP_DIRECTORY_NAME = '.promptbook';
|
|
988
|
+
/**
|
|
989
|
+
* Builds one project-relative path inside the shared Promptbook working directory.
|
|
990
|
+
*
|
|
991
|
+
* @private internal utility for Promptbook-owned temp files
|
|
992
|
+
*/
|
|
993
|
+
function getPromptbookTempPath(...pathSegments) {
|
|
994
|
+
return `./${getPromptbookTempPosixPath(...pathSegments)}`;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Builds one POSIX path fragment inside the shared Promptbook working directory for globs and generated text files.
|
|
998
|
+
*
|
|
999
|
+
* @private internal utility for Promptbook-owned temp files
|
|
1000
|
+
*/
|
|
1001
|
+
function getPromptbookTempPosixPath(...pathSegments) {
|
|
1002
|
+
return posix.join(PROMPTBOOK_TEMP_DIRECTORY_NAME, ...pathSegments);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
982
1005
|
/**
|
|
983
1006
|
* Name for the Promptbook
|
|
984
1007
|
*
|
|
@@ -1086,6 +1109,31 @@ const CONNECTION_TIMEOUT_MS = 7 * 1000;
|
|
|
1086
1109
|
* @private within the repository - too low-level in comparison with other `MAX_...`
|
|
1087
1110
|
*/
|
|
1088
1111
|
const CONNECTION_RETRIES_LIMIT = 5;
|
|
1112
|
+
// <- TODO: [🕝] Make also `AGENTS_DIRNAME_ALTERNATIVES`
|
|
1113
|
+
/**
|
|
1114
|
+
* Where to store the temporary downloads
|
|
1115
|
+
*
|
|
1116
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1117
|
+
*
|
|
1118
|
+
* @public exported from `@promptbook/core`
|
|
1119
|
+
*/
|
|
1120
|
+
getPromptbookTempPath('download-cache');
|
|
1121
|
+
/**
|
|
1122
|
+
* Where to store the cache of executions for promptbook CLI
|
|
1123
|
+
*
|
|
1124
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1125
|
+
*
|
|
1126
|
+
* @public exported from `@promptbook/core`
|
|
1127
|
+
*/
|
|
1128
|
+
getPromptbookTempPath('execution-cache');
|
|
1129
|
+
/**
|
|
1130
|
+
* Where to store the scrape cache
|
|
1131
|
+
*
|
|
1132
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1133
|
+
*
|
|
1134
|
+
* @public exported from `@promptbook/core`
|
|
1135
|
+
*/
|
|
1136
|
+
getPromptbookTempPath('scrape-cache');
|
|
1089
1137
|
// <- TODO: [🧜♂️]
|
|
1090
1138
|
/**
|
|
1091
1139
|
* Default settings for parsing and generating CSV files in Promptbook.
|