@promptbook/remote-client 0.13.1 → 0.15.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.
|
@@ -14,7 +14,7 @@ import { PromptTemplateParameterJson } from '../types/PromptTemplatePipelineJson
|
|
|
14
14
|
import { PromptTemplatePipelineJson } from '../types/PromptTemplatePipelineJson/PromptTemplatePipelineJson';
|
|
15
15
|
import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineString';
|
|
16
16
|
import { ScriptLanguage } from '../types/ScriptLanguage';
|
|
17
|
-
import {
|
|
17
|
+
import { TaskProgress } from '../types/TaskProgress';
|
|
18
18
|
import { string_char_emoji } from '../types/typeAliasEmoji';
|
|
19
19
|
import { ILicense, IPersonProfile, IRepository, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_property, string_css_selector, string_css_value, 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_license_token, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptbk_url, string_ptbk_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment } from '../types/typeAliases';
|
|
20
|
-
export { CommonExecutionToolsOptions,
|
|
20
|
+
export { CommonExecutionToolsOptions, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptTemplatePipelineJson, PromptTemplatePipelineString, PtpExecutor, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_char_emoji, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_property, string_css_selector, string_css_value, 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_license_token, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptbk_url, string_ptbk_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment, };
|
|
@@ -1,12 +1,42 @@
|
|
|
1
|
+
import { ExecutionType } from './ExecutionTypes';
|
|
1
2
|
import { string_name, string_title } from './typeAliases';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* TaskProgress represents the progress of a PromptTemplatePipeline execution.
|
|
5
|
+
*/
|
|
6
|
+
export interface TaskProgress {
|
|
7
|
+
/**
|
|
8
|
+
* The unique name of the task.
|
|
9
|
+
*
|
|
10
|
+
* Note: This is not supposed to be displayed to the user.
|
|
11
|
+
* It is used to identify the task in the code, for example as react key
|
|
12
|
+
*/
|
|
4
13
|
readonly name: string_name;
|
|
14
|
+
/**
|
|
15
|
+
* Title of the task.
|
|
16
|
+
*
|
|
17
|
+
* Note: This is supposed to be displayed to the user.
|
|
18
|
+
* Note: This is trimmed and stripped of HTML tags and emojis with "🖋" prefix
|
|
19
|
+
*/
|
|
5
20
|
readonly title: string_title;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
|
|
11
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Does the task started?
|
|
23
|
+
*/
|
|
24
|
+
readonly isStarted: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Is task done?
|
|
27
|
+
*/
|
|
28
|
+
readonly isDone: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The type of the execution.
|
|
31
|
+
* Note: The Promptbook library reports everything, in the app level you can filter out the execution types that you don't want to show to the user.
|
|
32
|
+
*/
|
|
33
|
+
readonly executionType: ExecutionType;
|
|
34
|
+
/**
|
|
35
|
+
* The parameter name that is being processed.
|
|
36
|
+
*/
|
|
37
|
+
readonly parameterName: string_name;
|
|
38
|
+
/**
|
|
39
|
+
* The parameter value or null if the parameter is not yet processed.
|
|
40
|
+
*/
|
|
41
|
+
readonly parameterValue: string | null;
|
|
12
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"socket.io-client": "4.7.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@promptbook/core": "0.
|
|
40
|
+
"@promptbook/core": "0.15.0"
|
|
41
41
|
},
|
|
42
42
|
"main": "./umd/index.umd.js",
|
|
43
43
|
"module": "./esm/index.es.js",
|
|
@@ -14,7 +14,7 @@ import { PromptTemplateParameterJson } from '../types/PromptTemplatePipelineJson
|
|
|
14
14
|
import { PromptTemplatePipelineJson } from '../types/PromptTemplatePipelineJson/PromptTemplatePipelineJson';
|
|
15
15
|
import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineString';
|
|
16
16
|
import { ScriptLanguage } from '../types/ScriptLanguage';
|
|
17
|
-
import {
|
|
17
|
+
import { TaskProgress } from '../types/TaskProgress';
|
|
18
18
|
import { string_char_emoji } from '../types/typeAliasEmoji';
|
|
19
19
|
import { ILicense, IPersonProfile, IRepository, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_property, string_css_selector, string_css_value, 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_license_token, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptbk_url, string_ptbk_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment } from '../types/typeAliases';
|
|
20
|
-
export { CommonExecutionToolsOptions,
|
|
20
|
+
export { CommonExecutionToolsOptions, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptTemplatePipelineJson, PromptTemplatePipelineString, PtpExecutor, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_char_emoji, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_property, string_css_selector, string_css_value, 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_license_token, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptbk_url, string_ptbk_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment, };
|
|
@@ -1,12 +1,42 @@
|
|
|
1
|
+
import { ExecutionType } from './ExecutionTypes';
|
|
1
2
|
import { string_name, string_title } from './typeAliases';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* TaskProgress represents the progress of a PromptTemplatePipeline execution.
|
|
5
|
+
*/
|
|
6
|
+
export interface TaskProgress {
|
|
7
|
+
/**
|
|
8
|
+
* The unique name of the task.
|
|
9
|
+
*
|
|
10
|
+
* Note: This is not supposed to be displayed to the user.
|
|
11
|
+
* It is used to identify the task in the code, for example as react key
|
|
12
|
+
*/
|
|
4
13
|
readonly name: string_name;
|
|
14
|
+
/**
|
|
15
|
+
* Title of the task.
|
|
16
|
+
*
|
|
17
|
+
* Note: This is supposed to be displayed to the user.
|
|
18
|
+
* Note: This is trimmed and stripped of HTML tags and emojis with "🖋" prefix
|
|
19
|
+
*/
|
|
5
20
|
readonly title: string_title;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
|
|
11
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Does the task started?
|
|
23
|
+
*/
|
|
24
|
+
readonly isStarted: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Is task done?
|
|
27
|
+
*/
|
|
28
|
+
readonly isDone: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The type of the execution.
|
|
31
|
+
* Note: The Promptbook library reports everything, in the app level you can filter out the execution types that you don't want to show to the user.
|
|
32
|
+
*/
|
|
33
|
+
readonly executionType: ExecutionType;
|
|
34
|
+
/**
|
|
35
|
+
* The parameter name that is being processed.
|
|
36
|
+
*/
|
|
37
|
+
readonly parameterName: string_name;
|
|
38
|
+
/**
|
|
39
|
+
* The parameter value or null if the parameter is not yet processed.
|
|
40
|
+
*/
|
|
41
|
+
readonly parameterValue: string | null;
|
|
12
42
|
}
|