@promptbook/remote-server 0.81.0-14 → 0.81.0-15
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/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/utils.index.d.ts +2 -2
- package/esm/typings/src/formfactors/image-generator/ImageGeneratorFormfactorDefinition.d.ts +24 -0
- package/esm/typings/src/formfactors/index.d.ts +22 -5
- package/esm/typings/src/high-level-abstractions/index.d.ts +2 -2
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizzardOrCli.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/esm/typings/src/utils/validators/filePath/{isPathRoot.d.ts → isRootPath.d.ts} +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- /package/esm/typings/src/utils/validators/filePath/{isPathRoot.test.d.ts → isRootPath.test.d.ts} +0 -0
package/esm/index.es.js
CHANGED
|
@@ -17,7 +17,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
17
17
|
* @generated
|
|
18
18
|
* @see https://github.com/webgptorg/promptbook
|
|
19
19
|
*/
|
|
20
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-
|
|
20
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-14';
|
|
21
21
|
/**
|
|
22
22
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
23
23
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -74,6 +74,7 @@ import { BoilerplateFormfactorDefinition } from '../formfactors/_boilerplate/Boi
|
|
|
74
74
|
import { ChatbotFormfactorDefinition } from '../formfactors/chatbot/ChatbotFormfactorDefinition';
|
|
75
75
|
import { GeneratorFormfactorDefinition } from '../formfactors/generator/GeneratorFormfactorDefinition';
|
|
76
76
|
import { GenericFormfactorDefinition } from '../formfactors/generic/GenericFormfactorDefinition';
|
|
77
|
+
import { ImageGeneratorFormfactorDefinition } from '../formfactors/image-generator/ImageGeneratorFormfactorDefinition';
|
|
77
78
|
import { FORMFACTOR_DEFINITIONS } from '../formfactors/index';
|
|
78
79
|
import { MatcherFormfactorDefinition } from '../formfactors/matcher/MatcherFormfactorDefinition';
|
|
79
80
|
import { SheetsFormfactorDefinition } from '../formfactors/sheets/SheetsFormfactorDefinition';
|
|
@@ -193,6 +194,7 @@ export { BoilerplateFormfactorDefinition };
|
|
|
193
194
|
export { ChatbotFormfactorDefinition };
|
|
194
195
|
export { GeneratorFormfactorDefinition };
|
|
195
196
|
export { GenericFormfactorDefinition };
|
|
197
|
+
export { ImageGeneratorFormfactorDefinition };
|
|
196
198
|
export { FORMFACTOR_DEFINITIONS };
|
|
197
199
|
export { MatcherFormfactorDefinition };
|
|
198
200
|
export { SheetsFormfactorDefinition };
|
|
@@ -68,7 +68,7 @@ import { trimCodeBlock } from '../utils/trimCodeBlock';
|
|
|
68
68
|
import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
|
|
69
69
|
import { unwrapResult } from '../utils/unwrapResult';
|
|
70
70
|
import { isValidEmail } from '../utils/validators/email/isValidEmail';
|
|
71
|
-
import {
|
|
71
|
+
import { isRootPath } from '../utils/validators/filePath/isRootPath';
|
|
72
72
|
import { isValidFilePath } from '../utils/validators/filePath/isValidFilePath';
|
|
73
73
|
import { isValidJavascriptName } from '../utils/validators/javascriptName/isValidJavascriptName';
|
|
74
74
|
import { isValidPromptbookVersion } from '../utils/validators/semanticVersion/isValidPromptbookVersion';
|
|
@@ -148,7 +148,7 @@ export { trimCodeBlock };
|
|
|
148
148
|
export { trimEndOfCodeBlock };
|
|
149
149
|
export { unwrapResult };
|
|
150
150
|
export { isValidEmail };
|
|
151
|
-
export {
|
|
151
|
+
export { isRootPath };
|
|
152
152
|
export { isValidFilePath };
|
|
153
153
|
export { isValidJavascriptName };
|
|
154
154
|
export { isValidPromptbookVersion };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Image generator is form of app that generates image from input message
|
|
3
|
+
*
|
|
4
|
+
* @public exported from `@promptbook/core`
|
|
5
|
+
*/
|
|
6
|
+
export declare const ImageGeneratorFormfactorDefinition: {
|
|
7
|
+
readonly name: "IMAGE_GENERATOR";
|
|
8
|
+
readonly description: "@@@";
|
|
9
|
+
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/184";
|
|
10
|
+
readonly pipelineInterface: {
|
|
11
|
+
readonly inputParameters: readonly [{
|
|
12
|
+
readonly name: "inputMessage";
|
|
13
|
+
readonly description: "Input message to be image made from";
|
|
14
|
+
readonly isInput: true;
|
|
15
|
+
readonly isOutput: false;
|
|
16
|
+
}];
|
|
17
|
+
readonly outputParameters: readonly [{
|
|
18
|
+
readonly name: "prompt";
|
|
19
|
+
readonly description: "Prompt to be used for image generation";
|
|
20
|
+
readonly isInput: false;
|
|
21
|
+
readonly isOutput: true;
|
|
22
|
+
}];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -19,11 +19,7 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
19
19
|
readonly pipelineInterface: {
|
|
20
20
|
readonly inputParameters: readonly [{
|
|
21
21
|
readonly name: "previousTitle";
|
|
22
|
-
readonly description: "Previous title of the conversation";
|
|
23
|
-
* All available formfactor definitions
|
|
24
|
-
*
|
|
25
|
-
* @public exported from `@promptbook/core`
|
|
26
|
-
*/
|
|
22
|
+
readonly description: "Previous title of the conversation";
|
|
27
23
|
readonly isInput: true;
|
|
28
24
|
readonly isOutput: false;
|
|
29
25
|
}, {
|
|
@@ -40,6 +36,9 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
40
36
|
readonly outputParameters: readonly [{
|
|
41
37
|
readonly name: "title";
|
|
42
38
|
readonly description: "Title of the conversation";
|
|
39
|
+
/**
|
|
40
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
41
|
+
*/
|
|
43
42
|
readonly isInput: false;
|
|
44
43
|
readonly isOutput: true;
|
|
45
44
|
}, {
|
|
@@ -117,6 +116,24 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
117
116
|
}];
|
|
118
117
|
readonly outputParameters: readonly [];
|
|
119
118
|
};
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "IMAGE_GENERATOR";
|
|
121
|
+
readonly description: "@@@";
|
|
122
|
+
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/184";
|
|
123
|
+
readonly pipelineInterface: {
|
|
124
|
+
readonly inputParameters: readonly [{
|
|
125
|
+
readonly name: "inputMessage";
|
|
126
|
+
readonly description: "Input message to be image made from";
|
|
127
|
+
readonly isInput: true;
|
|
128
|
+
readonly isOutput: false;
|
|
129
|
+
}];
|
|
130
|
+
readonly outputParameters: readonly [{
|
|
131
|
+
readonly name: "prompt";
|
|
132
|
+
readonly description: "Prompt to be used for image generation";
|
|
133
|
+
readonly isInput: false;
|
|
134
|
+
readonly isOutput: true;
|
|
135
|
+
}];
|
|
136
|
+
};
|
|
120
137
|
}];
|
|
121
138
|
/**
|
|
122
139
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -23,7 +23,7 @@ export declare const HIGH_LEVEL_ABSTRACTIONS: readonly [{
|
|
|
23
23
|
path: string | null;
|
|
24
24
|
content: import("../pipeline/PipelineString").PipelineString;
|
|
25
25
|
}[];
|
|
26
|
-
readonly formfactorName?: "CHATBOT" | "GENERATOR" | "GENERIC" | "EXPERIMENTAL_MATCHER" | "SHEETS" | "TRANSLATOR" | undefined;
|
|
26
|
+
readonly formfactorName?: "CHATBOT" | "GENERATOR" | "GENERIC" | "IMAGE_GENERATOR" | "EXPERIMENTAL_MATCHER" | "SHEETS" | "TRANSLATOR" | undefined;
|
|
27
27
|
}>): void;
|
|
28
28
|
}, {
|
|
29
29
|
type: "SYNC";
|
|
@@ -45,7 +45,7 @@ export declare const HIGH_LEVEL_ABSTRACTIONS: readonly [{
|
|
|
45
45
|
path: string | null;
|
|
46
46
|
content: import("../pipeline/PipelineString").PipelineString;
|
|
47
47
|
}[];
|
|
48
|
-
readonly formfactorName?: "CHATBOT" | "GENERATOR" | "GENERIC" | "EXPERIMENTAL_MATCHER" | "SHEETS" | "TRANSLATOR" | undefined;
|
|
48
|
+
readonly formfactorName?: "CHATBOT" | "GENERATOR" | "GENERIC" | "IMAGE_GENERATOR" | "EXPERIMENTAL_MATCHER" | "SHEETS" | "TRANSLATOR" | undefined;
|
|
49
49
|
}>): void;
|
|
50
50
|
}];
|
|
51
51
|
/**
|
package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { LlmToolsConfiguration } from './LlmToolsConfiguration';
|
|
|
12
12
|
* @returns @@@
|
|
13
13
|
* @public exported from `@promptbook/node`
|
|
14
14
|
*/
|
|
15
|
-
export declare function $provideLlmToolsConfigurationFromEnv(): LlmToolsConfiguration
|
|
15
|
+
export declare function $provideLlmToolsConfigurationFromEnv(): Promise<LlmToolsConfiguration>;
|
|
16
16
|
/**
|
|
17
17
|
* TODO: [🧠][🪁] Maybe do allow to do auto-install if package not registered and not found
|
|
18
18
|
* TODO: Add Azure OpenAI
|
|
@@ -14,7 +14,7 @@ type GetLlmToolsForTestingAndScriptsAndPlaygroundOptions = CreateLlmToolsFromCon
|
|
|
14
14
|
*
|
|
15
15
|
* @private within the repository - JUST FOR TESTS, SCRIPTS AND PLAYGROUND
|
|
16
16
|
*/
|
|
17
|
-
export declare function $provideLlmToolsForTestingAndScriptsAndPlayground(options?: GetLlmToolsForTestingAndScriptsAndPlaygroundOptions): LlmExecutionToolsWithTotalUsage
|
|
17
|
+
export declare function $provideLlmToolsForTestingAndScriptsAndPlayground(options?: GetLlmToolsForTestingAndScriptsAndPlaygroundOptions): Promise<LlmExecutionToolsWithTotalUsage>;
|
|
18
18
|
export {};
|
|
19
19
|
/**
|
|
20
20
|
* Note: [⚪] This should never be in any released package
|
|
@@ -5,7 +5,7 @@ import type { LlmExecutionToolsWithTotalUsage } from '../utils/count-total-usage
|
|
|
5
5
|
*
|
|
6
6
|
* @private within the repository - for CLI utils
|
|
7
7
|
*/
|
|
8
|
-
export declare function $provideLlmToolsForWizzardOrCli(options?: Pick<CacheLlmToolsOptions, 'isCacheReloaded'>): LlmExecutionToolsWithTotalUsage
|
|
8
|
+
export declare function $provideLlmToolsForWizzardOrCli(options?: Pick<CacheLlmToolsOptions, 'isCacheReloaded'>): Promise<LlmExecutionToolsWithTotalUsage>;
|
|
9
9
|
/**
|
|
10
10
|
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
11
11
|
* TODO: [👷♂️] @@@ Manual about construction of llmTools
|
|
@@ -15,7 +15,7 @@ import type { CreateLlmToolsFromConfigurationOptions } from './createLlmToolsFro
|
|
|
15
15
|
* @returns @@@
|
|
16
16
|
* @public exported from `@promptbook/node`
|
|
17
17
|
*/
|
|
18
|
-
export declare function $provideLlmToolsFromEnv(options?: CreateLlmToolsFromConfigurationOptions): MultipleLlmExecutionTools
|
|
18
|
+
export declare function $provideLlmToolsFromEnv(options?: CreateLlmToolsFromConfigurationOptions): Promise<MultipleLlmExecutionTools>;
|
|
19
19
|
/**
|
|
20
20
|
* TODO: @@@ write `$provideLlmToolsFromEnv` vs `$provideLlmToolsConfigurationFromEnv` vs `createLlmToolsFromConfiguration`
|
|
21
21
|
* TODO: [🧠][🍛] Which name is better `$provideLlmToolsFromEnv` or `$provideLlmToolsFromEnvironment`?
|
|
@@ -6,7 +6,7 @@ import type { string_filename } from '../../../types/typeAliases';
|
|
|
6
6
|
* Note: This does not check if the file exists only if the path is valid
|
|
7
7
|
* @public exported from `@promptbook/utils`
|
|
8
8
|
*/
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function isRootPath(value: string_dirname | string_filename): boolean;
|
|
10
10
|
/**
|
|
11
11
|
* TODO: [🍏] Make for MacOS paths
|
|
12
12
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-server",
|
|
3
|
-
"version": "0.81.0-
|
|
3
|
+
"version": "0.81.0-15",
|
|
4
4
|
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
|
|
5
5
|
"--note-0": " <- [🐊]",
|
|
6
6
|
"private": false,
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"module": "./esm/index.es.js",
|
|
55
55
|
"typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@promptbook/core": "0.81.0-
|
|
57
|
+
"@promptbook/core": "0.81.0-15"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @generated
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-
|
|
27
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-14';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
/package/esm/typings/src/utils/validators/filePath/{isPathRoot.test.d.ts → isRootPath.test.d.ts}
RENAMED
|
File without changes
|