@promptbook/remote-server 0.81.0-8 → 0.81.0-9
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/types.index.d.ts +2 -0
- package/esm/typings/src/execution/PipelineExecutor.d.ts +2 -2
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +2 -2
- package/esm/typings/src/types/typeAliases.d.ts +8 -0
- package/esm/typings/src/wizzard/wizzard.d.ts +2 -2
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
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-8';
|
|
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
|
|
@@ -143,6 +143,7 @@ import type { string_name } from '../types/typeAliases';
|
|
|
143
143
|
import type { string_parameter_name } from '../types/typeAliases';
|
|
144
144
|
import type { string_parameter_value } from '../types/typeAliases';
|
|
145
145
|
import type { Parameters } from '../types/typeAliases';
|
|
146
|
+
import type { InputParameters } from '../types/typeAliases';
|
|
146
147
|
import type { string_reserved_parameter_name } from '../types/typeAliases';
|
|
147
148
|
import type { ReservedParameters } from '../types/typeAliases';
|
|
148
149
|
import type { string_title } from '../types/typeAliases';
|
|
@@ -407,6 +408,7 @@ export type { string_name };
|
|
|
407
408
|
export type { string_parameter_name };
|
|
408
409
|
export type { string_parameter_value };
|
|
409
410
|
export type { Parameters };
|
|
411
|
+
export type { InputParameters };
|
|
410
412
|
export type { string_reserved_parameter_name };
|
|
411
413
|
export type { ReservedParameters };
|
|
412
414
|
export type { string_title };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Promisable } from 'type-fest';
|
|
2
2
|
import type { TaskProgress } from '../types/TaskProgress';
|
|
3
|
-
import type {
|
|
3
|
+
import type { InputParameters } from '../types/typeAliases';
|
|
4
4
|
import type { PipelineExecutorResult } from './PipelineExecutorResult';
|
|
5
5
|
/**
|
|
6
6
|
* Executor is a simple async function that takes INPUT PARAMETERs and returns result parameters _(along with all intermediate parameters and INPUT PARAMETERs = it extends input object)_.
|
|
@@ -11,7 +11,7 @@ import type { PipelineExecutorResult } from './PipelineExecutorResult';
|
|
|
11
11
|
* @see https://github.com/webgptorg/promptbook#executor
|
|
12
12
|
*/
|
|
13
13
|
export type PipelineExecutor = {
|
|
14
|
-
(inputParameters:
|
|
14
|
+
(inputParameters: InputParameters, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<PipelineExecutorResult>;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* TODO: [🐚] Change onProgress to object that represents the running execution, can be subscribed via RxJS to and also awaited
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable, ReadonlyDeep } from 'type-fest';
|
|
2
2
|
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
|
|
3
3
|
import type { TaskProgress } from '../../types/TaskProgress';
|
|
4
|
-
import type {
|
|
4
|
+
import type { InputParameters } from '../../types/typeAliases';
|
|
5
5
|
import type { PipelineExecutorResult } from '../PipelineExecutorResult';
|
|
6
6
|
import type { CreatePipelineExecutorOptions } from './00-CreatePipelineExecutorOptions';
|
|
7
7
|
/**
|
|
@@ -13,7 +13,7 @@ type ExecutePipelineOptions = Required<CreatePipelineExecutorOptions> & {
|
|
|
13
13
|
/**
|
|
14
14
|
* @@@
|
|
15
15
|
*/
|
|
16
|
-
readonly inputParameters: Readonly<
|
|
16
|
+
readonly inputParameters: Readonly<InputParameters>;
|
|
17
17
|
/**
|
|
18
18
|
* @@@
|
|
19
19
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TupleToUnion } from 'type-fest';
|
|
2
2
|
import { RESERVED_PARAMETER_NAMES } from '../constants';
|
|
3
|
+
import type { really_unknown } from '../utils/organization/really_unknown';
|
|
3
4
|
/**
|
|
4
5
|
* Semantic helper
|
|
5
6
|
*/
|
|
@@ -107,6 +108,13 @@ export type string_parameter_value = string;
|
|
|
107
108
|
* @see https://ptbk.io/parameters
|
|
108
109
|
*/
|
|
109
110
|
export type Parameters = Exclude<Record<string_parameter_name, string_parameter_value>, ReservedParameters>;
|
|
111
|
+
/**
|
|
112
|
+
* Parameters to pass to execution of the pipeline
|
|
113
|
+
*
|
|
114
|
+
* Note: [🚉] This should be fully serializable as JSON
|
|
115
|
+
* @see https://ptbk.io/parameters
|
|
116
|
+
*/
|
|
117
|
+
export type InputParameters = Exclude<Record<string_parameter_name, really_unknown>, ReservedParameters>;
|
|
110
118
|
/**
|
|
111
119
|
* Semantic helper
|
|
112
120
|
* Unique identifier of reserved parameter
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from 'type-fest';
|
|
2
2
|
import type { PipelineExecutorResult } from '../execution/PipelineExecutorResult';
|
|
3
3
|
import type { TaskProgress } from '../types/TaskProgress';
|
|
4
|
-
import type {
|
|
4
|
+
import type { InputParameters } from '../types/typeAliases';
|
|
5
5
|
import type { string_pipeline_url } from '../types/typeAliases';
|
|
6
6
|
/**
|
|
7
7
|
* @@@
|
|
@@ -12,7 +12,7 @@ export declare const wizzard: {
|
|
|
12
12
|
/**
|
|
13
13
|
* @@@!!!!!!
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
execute(book: string_pipeline_url, inputParameters: InputParameters, onProgress?: ((taskProgress: TaskProgress) => Promisable<void>) | undefined): Promise<PipelineExecutorResult>;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* TODO: !!!!!! Add to readmes - one markdown here imported in all packages
|
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-9",
|
|
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-9"
|
|
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-8';
|
|
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
|