@promptbook/remote-server 0.40.0-1 → 0.40.0-2

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 CHANGED
@@ -75,7 +75,7 @@ function __generator(thisArg, body) {
75
75
  /**
76
76
  * The version of the Promptbook library
77
77
  */
78
- var PROMPTBOOK_VERSION = '0.40.0-0';
78
+ var PROMPTBOOK_VERSION = '0.40.0-1';
79
79
 
80
80
  /**
81
81
  * This error indicates errors during the execution of the promptbook
@@ -1,8 +1,3 @@
1
- import { ExpectError } from '../errors/ExpectError';
2
- import { NotFoundError } from '../errors/NotFoundError';
3
- import { PromptbookExecutionError } from '../errors/PromptbookExecutionError';
4
- import { PromptbookLogicError } from '../errors/PromptbookLogicError';
5
- import { PromptbookSyntaxError } from '../errors/PromptbookSyntaxError';
6
1
  import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
7
2
  import type { ExecutionTools } from '../execution/ExecutionTools';
8
3
  import type { NaturalExecutionTools } from '../execution/NaturalExecutionTools';
@@ -26,8 +21,7 @@ import type { string_char_emoji } from '../types/typeAliasEmoji';
26
21
  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';
27
22
  import { FromtoItems } from '../utils/FromtoItems';
28
23
  export { CommonExecutionToolsOptions, EXPECTATION_UNITS, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, ExpectationUnit, FromtoItems, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, client_id, 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, };
29
- export { ExpectError, NotFoundError, PromptbookExecutionError, PromptbookLogicError, PromptbookSyntaxError };
30
24
  /**
31
- * TODO: [🧠] Is this the best package to export custom errors from?
25
+ * TODO: [🧠][🆔] Is this the best package to export custom errors from?
32
26
  * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
33
27
  */
@@ -22,7 +22,7 @@ export declare class SimplePromptbookLibrary implements PromptbookLibrary {
22
22
  * @param settings settings for creating executor functions
23
23
  * @returns PromptbookLibrary
24
24
  */
25
- static fromSources(promptbookSources: Record<string_promptbook_url, PromptbookJson | PromptbookString>, settings?: Partial<CreatePromptbookExecutorSettings>): SimplePromptbookLibrary;
25
+ static fromSources(promptbookSources: Array<PromptbookJson | PromptbookString>, settings?: Partial<CreatePromptbookExecutorSettings>): SimplePromptbookLibrary;
26
26
  private constructor();
27
27
  /**
28
28
  * Gets all promptbooks in the library
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-server",
3
- "version": "0.40.0-1",
3
+ "version": "0.40.0-2",
4
4
  "description": "Library to supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -35,10 +35,10 @@
35
35
  "homepage": "https://www.npmjs.com/package/@promptbook/core",
36
36
  "dependencies": {
37
37
  "socket.io": "4.7.2",
38
- "spacetrim": "0.11.0"
38
+ "spacetrim": "0.11.2"
39
39
  },
40
40
  "peerDependencies": {
41
- "@promptbook/core": "0.40.0-1"
41
+ "@promptbook/core": "0.40.0-2"
42
42
  },
43
43
  "main": "./umd/index.umd.js",
44
44
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -82,7 +82,7 @@
82
82
  /**
83
83
  * The version of the Promptbook library
84
84
  */
85
- var PROMPTBOOK_VERSION = '0.40.0-0';
85
+ var PROMPTBOOK_VERSION = '0.40.0-1';
86
86
 
87
87
  /**
88
88
  * This error indicates errors during the execution of the promptbook
@@ -1,8 +1,3 @@
1
- import { ExpectError } from '../errors/ExpectError';
2
- import { NotFoundError } from '../errors/NotFoundError';
3
- import { PromptbookExecutionError } from '../errors/PromptbookExecutionError';
4
- import { PromptbookLogicError } from '../errors/PromptbookLogicError';
5
- import { PromptbookSyntaxError } from '../errors/PromptbookSyntaxError';
6
1
  import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
7
2
  import type { ExecutionTools } from '../execution/ExecutionTools';
8
3
  import type { NaturalExecutionTools } from '../execution/NaturalExecutionTools';
@@ -26,8 +21,7 @@ import type { string_char_emoji } from '../types/typeAliasEmoji';
26
21
  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';
27
22
  import { FromtoItems } from '../utils/FromtoItems';
28
23
  export { CommonExecutionToolsOptions, EXPECTATION_UNITS, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, ExpectationUnit, FromtoItems, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, client_id, 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, };
29
- export { ExpectError, NotFoundError, PromptbookExecutionError, PromptbookLogicError, PromptbookSyntaxError };
30
24
  /**
31
- * TODO: [🧠] Is this the best package to export custom errors from?
25
+ * TODO: [🧠][🆔] Is this the best package to export custom errors from?
32
26
  * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
33
27
  */
@@ -22,7 +22,7 @@ export declare class SimplePromptbookLibrary implements PromptbookLibrary {
22
22
  * @param settings settings for creating executor functions
23
23
  * @returns PromptbookLibrary
24
24
  */
25
- static fromSources(promptbookSources: Record<string_promptbook_url, PromptbookJson | PromptbookString>, settings?: Partial<CreatePromptbookExecutorSettings>): SimplePromptbookLibrary;
25
+ static fromSources(promptbookSources: Array<PromptbookJson | PromptbookString>, settings?: Partial<CreatePromptbookExecutorSettings>): SimplePromptbookLibrary;
26
26
  private constructor();
27
27
  /**
28
28
  * Gets all promptbooks in the library