@promptbook/utils 0.56.0-3 → 0.56.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/esm/index.es.js +1 -1
- 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 +1 -1
- package/umd/index.umd.js +1 -1
- 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
|
@@ -1692,7 +1692,7 @@ function unwrapResult(text, options) {
|
|
|
1692
1692
|
/**
|
|
1693
1693
|
* The version of the Promptbook library
|
|
1694
1694
|
*/
|
|
1695
|
-
var PROMPTBOOK_VERSION = '0.56.0-
|
|
1695
|
+
var PROMPTBOOK_VERSION = '0.56.0-4';
|
|
1696
1696
|
|
|
1697
1697
|
// @promptbook/utils
|
|
1698
1698
|
// And the normalization (originally n12 library) utilities:
|
|
@@ -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
package/umd/index.umd.js
CHANGED
|
@@ -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 {};
|