@promptbook/node 0.56.0-3 → 0.56.0-4
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 +2 -2
- package/esm/typings/_packages/core.index.d.ts +2 -3
- package/esm/typings/_packages/types.index.d.ts +3 -1
- package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +2 -2
- package/umd/typings/_packages/core.index.d.ts +2 -3
- package/umd/typings/_packages/types.index.d.ts +3 -1
- package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +1 -1
- package/esm/typings/types/execution-report/executionReportJsonToString.test.d.ts +0 -1
- package/umd/typings/types/execution-report/executionReportJsonToString.test.d.ts +0 -1
package/esm/index.es.js
CHANGED
|
@@ -448,7 +448,7 @@ function union() {
|
|
|
448
448
|
/**
|
|
449
449
|
* The version of the Promptbook library
|
|
450
450
|
*/
|
|
451
|
-
var PROMPTBOOK_VERSION = '0.56.0-
|
|
451
|
+
var PROMPTBOOK_VERSION = '0.56.0-3';
|
|
452
452
|
|
|
453
453
|
/**
|
|
454
454
|
* Parses the template and returns the list of all parameter names
|
|
@@ -2219,7 +2219,7 @@ function createPromptbookLibraryFromSources() {
|
|
|
2219
2219
|
*
|
|
2220
2220
|
* @param promptbookSourcesPromiseOrFactory
|
|
2221
2221
|
* @returns PromptbookLibrary
|
|
2222
|
-
* @
|
|
2222
|
+
* @deprecated Do not use, it will became internal tool for other constructor functions
|
|
2223
2223
|
*/
|
|
2224
2224
|
function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory) {
|
|
2225
2225
|
var library;
|
|
@@ -20,20 +20,19 @@ import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-
|
|
|
20
20
|
import { addUsage } from '../execution/utils/addUsage';
|
|
21
21
|
import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
|
|
22
22
|
import { usageToWorktime } from '../execution/utils/usageToWorktime';
|
|
23
|
+
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
|
|
23
24
|
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
|
|
24
25
|
import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl';
|
|
25
26
|
import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
|
|
26
|
-
import { justTestFsImport } from '../library/constructors/justTestFsImport';
|
|
27
27
|
import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
|
|
28
28
|
import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
|
|
29
29
|
import { ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
|
|
30
30
|
import { ExecutionTypes } from '../types/ExecutionTypes';
|
|
31
31
|
import { PROMPTBOOK_VERSION } from '../version';
|
|
32
32
|
export { PROMPTBOOK_VERSION };
|
|
33
|
-
export { justTestFsImport };
|
|
34
33
|
export { ExecutionTypes };
|
|
35
34
|
export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, };
|
|
36
|
-
export { createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
|
|
35
|
+
export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
|
|
37
36
|
export { SimplePromptInterfaceTools };
|
|
38
37
|
export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };
|
|
39
38
|
export { createPromptbookExecutor, MultipleLlmExecutionTools };
|
|
@@ -22,7 +22,9 @@ import type { string_char_emoji } from '../types/typeAliasEmoji';
|
|
|
22
22
|
import type { client_id, string_char, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version } from '../types/typeAliases';
|
|
23
23
|
import type { FromtoItems } from '../utils/FromtoItems';
|
|
24
24
|
import { PROMPTBOOK_VERSION } from '../version';
|
|
25
|
-
export
|
|
25
|
+
export { PROMPTBOOK_VERSION };
|
|
26
|
+
export { EXPECTATION_UNITS };
|
|
27
|
+
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
|
|
26
28
|
/**
|
|
27
29
|
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
|
|
28
30
|
*/
|
|
@@ -18,6 +18,6 @@ import type { PromptbookLibrary } from '../PromptbookLibrary';
|
|
|
18
18
|
*
|
|
19
19
|
* @param promptbookSourcesPromiseOrFactory
|
|
20
20
|
* @returns PromptbookLibrary
|
|
21
|
-
* @
|
|
21
|
+
* @deprecated Do not use, it will became internal tool for other constructor functions
|
|
22
22
|
*/
|
|
23
23
|
export declare function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson | PromptbookString>> | (() => Promise<Array<PromptbookJson | PromptbookString>>)): PromptbookLibrary;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.56.0-
|
|
3
|
+
"version": "0.56.0-4",
|
|
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.56.0-
|
|
51
|
+
"@promptbook/core": "0.56.0-4"
|
|
52
52
|
},
|
|
53
53
|
"main": "./umd/index.umd.js",
|
|
54
54
|
"module": "./esm/index.es.js",
|
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.56.0-
|
|
456
|
+
var PROMPTBOOK_VERSION = '0.56.0-3';
|
|
457
457
|
|
|
458
458
|
/**
|
|
459
459
|
* Parses the template and returns the list of all parameter names
|
|
@@ -2224,7 +2224,7 @@
|
|
|
2224
2224
|
*
|
|
2225
2225
|
* @param promptbookSourcesPromiseOrFactory
|
|
2226
2226
|
* @returns PromptbookLibrary
|
|
2227
|
-
* @
|
|
2227
|
+
* @deprecated Do not use, it will became internal tool for other constructor functions
|
|
2228
2228
|
*/
|
|
2229
2229
|
function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory) {
|
|
2230
2230
|
var library;
|
|
@@ -20,20 +20,19 @@ import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-
|
|
|
20
20
|
import { addUsage } from '../execution/utils/addUsage';
|
|
21
21
|
import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
|
|
22
22
|
import { usageToWorktime } from '../execution/utils/usageToWorktime';
|
|
23
|
+
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
|
|
23
24
|
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
|
|
24
25
|
import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl';
|
|
25
26
|
import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
|
|
26
|
-
import { justTestFsImport } from '../library/constructors/justTestFsImport';
|
|
27
27
|
import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
|
|
28
28
|
import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
|
|
29
29
|
import { ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
|
|
30
30
|
import { ExecutionTypes } from '../types/ExecutionTypes';
|
|
31
31
|
import { PROMPTBOOK_VERSION } from '../version';
|
|
32
32
|
export { PROMPTBOOK_VERSION };
|
|
33
|
-
export { justTestFsImport };
|
|
34
33
|
export { ExecutionTypes };
|
|
35
34
|
export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, };
|
|
36
|
-
export { createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
|
|
35
|
+
export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
|
|
37
36
|
export { SimplePromptInterfaceTools };
|
|
38
37
|
export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };
|
|
39
38
|
export { createPromptbookExecutor, MultipleLlmExecutionTools };
|
|
@@ -22,7 +22,9 @@ import type { string_char_emoji } from '../types/typeAliasEmoji';
|
|
|
22
22
|
import type { client_id, string_char, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version } from '../types/typeAliases';
|
|
23
23
|
import type { FromtoItems } from '../utils/FromtoItems';
|
|
24
24
|
import { PROMPTBOOK_VERSION } from '../version';
|
|
25
|
-
export
|
|
25
|
+
export { PROMPTBOOK_VERSION };
|
|
26
|
+
export { EXPECTATION_UNITS };
|
|
27
|
+
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
|
|
26
28
|
/**
|
|
27
29
|
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
|
|
28
30
|
*/
|
|
@@ -18,6 +18,6 @@ import type { PromptbookLibrary } from '../PromptbookLibrary';
|
|
|
18
18
|
*
|
|
19
19
|
* @param promptbookSourcesPromiseOrFactory
|
|
20
20
|
* @returns PromptbookLibrary
|
|
21
|
-
* @
|
|
21
|
+
* @deprecated Do not use, it will became internal tool for other constructor functions
|
|
22
22
|
*/
|
|
23
23
|
export declare function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson | PromptbookString>> | (() => Promise<Array<PromptbookJson | PromptbookString>>)): PromptbookLibrary;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|