@promptbook/remote-client 0.9.0 โ 0.11.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/typings/_packages/types.index.d.ts +2 -2
- package/esm/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools.d.ts +4 -4
- package/esm/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionToolsOptions.d.ts +5 -0
- package/esm/typings/execution/plugins/natural-execution-tools/remote/createRemoteServer.d.ts +1 -0
- package/esm/typings/types/ModelRequirements.d.ts +4 -0
- package/esm/typings/types/typeAliases.d.ts +0 -16
- package/package.json +2 -2
- package/umd/typings/_packages/types.index.d.ts +2 -2
- package/umd/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools.d.ts +4 -4
- package/umd/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionToolsOptions.d.ts +5 -0
- package/umd/typings/execution/plugins/natural-execution-tools/remote/createRemoteServer.d.ts +1 -0
- package/umd/typings/types/ModelRequirements.d.ts +4 -0
- package/umd/typings/types/typeAliases.d.ts +0 -16
|
@@ -16,5 +16,5 @@ import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineStr
|
|
|
16
16
|
import { ScriptLanguage } from '../types/ScriptLanguage';
|
|
17
17
|
import { DoneTaskProgress, PendingTaskProgress, TaskProgress } from '../types/TaskProgress';
|
|
18
18
|
import { string_char_emoji } from '../types/typeAliasEmoji';
|
|
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,
|
|
20
|
-
export { CommonExecutionToolsOptions, DoneTaskProgress, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, PendingTaskProgress, 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,
|
|
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, DoneTaskProgress, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, PendingTaskProgress, 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, };
|
package/esm/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Prompt } from '../../../../types/Prompt';
|
|
2
|
-
import { NaturalExecutionTools } from '../../../NaturalExecutionTools';
|
|
3
|
-
import { PromptChatResult, PromptCompletionResult } from '../../../PromptResult';
|
|
4
|
-
import { OpenAiExecutionToolsOptions } from './OpenAiExecutionToolsOptions';
|
|
1
|
+
import type { Prompt } from '../../../../types/Prompt';
|
|
2
|
+
import type { NaturalExecutionTools } from '../../../NaturalExecutionTools';
|
|
3
|
+
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult';
|
|
4
|
+
import type { OpenAiExecutionToolsOptions } from './OpenAiExecutionToolsOptions';
|
|
5
5
|
/**
|
|
6
6
|
* Execution Tools for calling OpenAI API.
|
|
7
7
|
*/
|
|
@@ -8,4 +8,9 @@ export interface OpenAiExecutionToolsOptions extends CommonExecutionToolsOptions
|
|
|
8
8
|
* OpenAI API key
|
|
9
9
|
*/
|
|
10
10
|
openAiApiKey: string_token;
|
|
11
|
+
/**
|
|
12
|
+
* A unique identifier representing your end-user, which can help OpenAI to monitor
|
|
13
|
+
* and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).
|
|
14
|
+
*/
|
|
15
|
+
user?: string_token;
|
|
11
16
|
}
|
package/esm/typings/execution/plugins/natural-execution-tools/remote/createRemoteServer.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { RemoteServerOptions } from './interfaces/RemoteServerOptions';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function createRemoteServer(options: RemoteServerOptions): void;
|
|
11
11
|
/**
|
|
12
|
+
* TODO: !!! This should be name runRemoteServer OR startRemoteServer and return Destroyable OR Promise<Destroyable>
|
|
12
13
|
* TODO: Handle progress - support streaming
|
|
13
14
|
* TODO: [๐คนโโ๏ธ] Do not hang up immediately but wait until client closes OR timeout
|
|
14
15
|
* TODO: [๐คนโโ๏ธ] Timeout on chat to free up resources
|
|
@@ -21,6 +21,10 @@ export interface ModelRequirements {
|
|
|
21
21
|
* - **CHAT** - model that takes prompt and previous messages and returns response
|
|
22
22
|
*/
|
|
23
23
|
readonly variant: ModelVariant;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum number of tokens that can be generated by the model
|
|
26
|
+
*/
|
|
27
|
+
readonly maxTokens?: number;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* TODO: Maybe figure out better word than "variant"
|
|
@@ -20,18 +20,6 @@ export type string_prompt = string;
|
|
|
20
20
|
* For example `"A cat wearing a {ITEM}"`
|
|
21
21
|
*/
|
|
22
22
|
export type string_template = string;
|
|
23
|
-
/**
|
|
24
|
-
* Semantic helper
|
|
25
|
-
*
|
|
26
|
-
* For example `"A cat wearing a hat"`
|
|
27
|
-
*/
|
|
28
|
-
export type string_image_prompt = string_prompt;
|
|
29
|
-
/**
|
|
30
|
-
* Semantic helper
|
|
31
|
-
*
|
|
32
|
-
* For example `"A cat wearing a hat --wallpaper --v 5.2"`
|
|
33
|
-
*/
|
|
34
|
-
export type string_midjourney_prompt = string_image_prompt;
|
|
35
23
|
/**
|
|
36
24
|
* Semantic helper
|
|
37
25
|
*
|
|
@@ -389,10 +377,6 @@ export interface IRepository {
|
|
|
389
377
|
readonly type?: string | 'git';
|
|
390
378
|
readonly url?: string;
|
|
391
379
|
}
|
|
392
|
-
/**
|
|
393
|
-
* CSS cursor type
|
|
394
|
-
*/
|
|
395
|
-
export type string_css_cursor = 'alias' | 'all-scroll' | 'auto' | 'cell' | 'context-menu' | 'col-resize' | 'copy' | 'crosshair' | 'default' | 'e-resize' | 'ew-resize' | 'grab' | 'grabbing' | 'help' | 'move' | 'n-resize' | 'ne-resize' | 'nesw-resize' | 'ns-resize' | 'nw-resize' | 'nwse-resize' | 'no-drop' | 'none' | 'not-allowed' | 'pointer' | 'progress' | 'row-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'text' | 'w-resize' | 'wait' | 'zoom-in' | 'zoom-out';
|
|
396
380
|
/**
|
|
397
381
|
* Semantic helper for attributes
|
|
398
382
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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.11.0"
|
|
41
41
|
},
|
|
42
42
|
"main": "./umd/index.umd.js",
|
|
43
43
|
"module": "./esm/index.es.js",
|
|
@@ -16,5 +16,5 @@ import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineStr
|
|
|
16
16
|
import { ScriptLanguage } from '../types/ScriptLanguage';
|
|
17
17
|
import { DoneTaskProgress, PendingTaskProgress, TaskProgress } from '../types/TaskProgress';
|
|
18
18
|
import { string_char_emoji } from '../types/typeAliasEmoji';
|
|
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,
|
|
20
|
-
export { CommonExecutionToolsOptions, DoneTaskProgress, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, PendingTaskProgress, 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,
|
|
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, DoneTaskProgress, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, PendingTaskProgress, 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, };
|
package/umd/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Prompt } from '../../../../types/Prompt';
|
|
2
|
-
import { NaturalExecutionTools } from '../../../NaturalExecutionTools';
|
|
3
|
-
import { PromptChatResult, PromptCompletionResult } from '../../../PromptResult';
|
|
4
|
-
import { OpenAiExecutionToolsOptions } from './OpenAiExecutionToolsOptions';
|
|
1
|
+
import type { Prompt } from '../../../../types/Prompt';
|
|
2
|
+
import type { NaturalExecutionTools } from '../../../NaturalExecutionTools';
|
|
3
|
+
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult';
|
|
4
|
+
import type { OpenAiExecutionToolsOptions } from './OpenAiExecutionToolsOptions';
|
|
5
5
|
/**
|
|
6
6
|
* Execution Tools for calling OpenAI API.
|
|
7
7
|
*/
|
|
@@ -8,4 +8,9 @@ export interface OpenAiExecutionToolsOptions extends CommonExecutionToolsOptions
|
|
|
8
8
|
* OpenAI API key
|
|
9
9
|
*/
|
|
10
10
|
openAiApiKey: string_token;
|
|
11
|
+
/**
|
|
12
|
+
* A unique identifier representing your end-user, which can help OpenAI to monitor
|
|
13
|
+
* and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).
|
|
14
|
+
*/
|
|
15
|
+
user?: string_token;
|
|
11
16
|
}
|
package/umd/typings/execution/plugins/natural-execution-tools/remote/createRemoteServer.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { RemoteServerOptions } from './interfaces/RemoteServerOptions';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function createRemoteServer(options: RemoteServerOptions): void;
|
|
11
11
|
/**
|
|
12
|
+
* TODO: !!! This should be name runRemoteServer OR startRemoteServer and return Destroyable OR Promise<Destroyable>
|
|
12
13
|
* TODO: Handle progress - support streaming
|
|
13
14
|
* TODO: [๐คนโโ๏ธ] Do not hang up immediately but wait until client closes OR timeout
|
|
14
15
|
* TODO: [๐คนโโ๏ธ] Timeout on chat to free up resources
|
|
@@ -21,6 +21,10 @@ export interface ModelRequirements {
|
|
|
21
21
|
* - **CHAT** - model that takes prompt and previous messages and returns response
|
|
22
22
|
*/
|
|
23
23
|
readonly variant: ModelVariant;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum number of tokens that can be generated by the model
|
|
26
|
+
*/
|
|
27
|
+
readonly maxTokens?: number;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* TODO: Maybe figure out better word than "variant"
|
|
@@ -20,18 +20,6 @@ export type string_prompt = string;
|
|
|
20
20
|
* For example `"A cat wearing a {ITEM}"`
|
|
21
21
|
*/
|
|
22
22
|
export type string_template = string;
|
|
23
|
-
/**
|
|
24
|
-
* Semantic helper
|
|
25
|
-
*
|
|
26
|
-
* For example `"A cat wearing a hat"`
|
|
27
|
-
*/
|
|
28
|
-
export type string_image_prompt = string_prompt;
|
|
29
|
-
/**
|
|
30
|
-
* Semantic helper
|
|
31
|
-
*
|
|
32
|
-
* For example `"A cat wearing a hat --wallpaper --v 5.2"`
|
|
33
|
-
*/
|
|
34
|
-
export type string_midjourney_prompt = string_image_prompt;
|
|
35
23
|
/**
|
|
36
24
|
* Semantic helper
|
|
37
25
|
*
|
|
@@ -389,10 +377,6 @@ export interface IRepository {
|
|
|
389
377
|
readonly type?: string | 'git';
|
|
390
378
|
readonly url?: string;
|
|
391
379
|
}
|
|
392
|
-
/**
|
|
393
|
-
* CSS cursor type
|
|
394
|
-
*/
|
|
395
|
-
export type string_css_cursor = 'alias' | 'all-scroll' | 'auto' | 'cell' | 'context-menu' | 'col-resize' | 'copy' | 'crosshair' | 'default' | 'e-resize' | 'ew-resize' | 'grab' | 'grabbing' | 'help' | 'move' | 'n-resize' | 'ne-resize' | 'nesw-resize' | 'ns-resize' | 'nw-resize' | 'nwse-resize' | 'no-drop' | 'none' | 'not-allowed' | 'pointer' | 'progress' | 'row-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'text' | 'w-resize' | 'wait' | 'zoom-in' | 'zoom-out';
|
|
396
380
|
/**
|
|
397
381
|
* Semantic helper for attributes
|
|
398
382
|
*
|