@promptbook/core 0.75.1 → 0.75.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 +5 -17
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/pipeline/PipelineInterface/PipelineInterface.d.ts +0 -4
- package/esm/typings/src/pipeline/PipelineInterface/getPipelineInterface.d.ts +1 -3
- package/esm/typings/src/pipeline/PipelineInterface/isPipelineImplementingInterface.d.ts +1 -4
- package/esm/typings/src/pipeline/PipelineInterface/isPipelineInterfacesEqual.d.ts +1 -4
- package/package.json +1 -1
- package/umd/index.umd.js +5 -17
- package/umd/index.umd.js.map +1 -1
|
@@ -20,7 +20,3 @@ export type PipelineInterface = {
|
|
|
20
20
|
*/
|
|
21
21
|
readonly outputParameters: ReadonlyArray<OutputParameterJson>;
|
|
22
22
|
};
|
|
23
|
-
/**
|
|
24
|
-
* TODO: [🧠][🤓] How to pass optional parameters - for example summary in FORMFACTOR Translator
|
|
25
|
-
* TODO: [🧠] Better name than `PipelineInterface` to avoid confusion with typescript `interface`
|
|
26
|
-
*/
|
|
@@ -3,11 +3,9 @@ import type { PipelineInterface } from './PipelineInterface';
|
|
|
3
3
|
/**
|
|
4
4
|
* @@@
|
|
5
5
|
*
|
|
6
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
6
7
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
7
8
|
*
|
|
8
9
|
* @public exported from `@promptbook/core`
|
|
9
10
|
*/
|
|
10
11
|
export declare function getPipelineInterface(pipeline: PipelineJson): PipelineInterface;
|
|
11
|
-
/**
|
|
12
|
-
* TODO: !!!!!! Write unit test
|
|
13
|
-
*/
|
|
@@ -18,12 +18,9 @@ export type IsPipelineImplementingInterfaceOptions = {
|
|
|
18
18
|
/**
|
|
19
19
|
* @@@
|
|
20
20
|
*
|
|
21
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
21
22
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
22
23
|
*
|
|
23
24
|
* @public exported from `@promptbook/core`
|
|
24
25
|
*/
|
|
25
26
|
export declare function isPipelineImplementingInterface(options: IsPipelineImplementingInterfaceOptions): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* TODO: !!!!!! Test real implementing NOT equality
|
|
28
|
-
* TODO: !!!!!! Write unit test
|
|
29
|
-
*/
|
|
@@ -2,12 +2,9 @@ import type { PipelineInterface } from './PipelineInterface';
|
|
|
2
2
|
/**
|
|
3
3
|
* @@@
|
|
4
4
|
*
|
|
5
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
5
6
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
6
7
|
*
|
|
7
8
|
* @public exported from `@promptbook/core`
|
|
8
9
|
*/
|
|
9
10
|
export declare function isPipelineInterfacesEqual(pipelineInterface1: PipelineInterface, pipelineInterface2: PipelineInterface): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* TODO: [🧠] !!! Return more states than true/false - 'IDENTICAL' |'IDENTICAL_UNPREPARED' | 'IDENTICAL_INTERFACE' | 'DIFFERENT'
|
|
12
|
-
* TODO: !!! Write unit test
|
|
13
|
-
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
*
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.75.
|
|
27
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.75.1';
|
|
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
|
|
@@ -1290,7 +1290,6 @@
|
|
|
1290
1290
|
while (unresovedTasks.length > 0) {
|
|
1291
1291
|
_loop_3();
|
|
1292
1292
|
}
|
|
1293
|
-
// TODO: !!!!!! Test that pipeline interface implements declared formfactor interface
|
|
1294
1293
|
}
|
|
1295
1294
|
/**
|
|
1296
1295
|
* TODO: !! [🧞♀️] Do not allow joker + foreach
|
|
@@ -10057,6 +10056,7 @@
|
|
|
10057
10056
|
/**
|
|
10058
10057
|
* @@@
|
|
10059
10058
|
*
|
|
10059
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
10060
10060
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
10061
10061
|
*
|
|
10062
10062
|
* @public exported from `@promptbook/core`
|
|
@@ -10094,8 +10094,6 @@
|
|
|
10094
10094
|
var name2 = _b.name;
|
|
10095
10095
|
return name1.localeCompare(name2);
|
|
10096
10096
|
});
|
|
10097
|
-
// <- TODO: [🧠] Should we compare a descriptions?
|
|
10098
|
-
// <- TODO: [🧠][🛴] Maybe add type + expectations into the intefrace, like "a person name"
|
|
10099
10097
|
}
|
|
10100
10098
|
}
|
|
10101
10099
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -10107,29 +10105,23 @@
|
|
|
10107
10105
|
}
|
|
10108
10106
|
return $deepFreeze(pipelineInterface);
|
|
10109
10107
|
}
|
|
10110
|
-
/**
|
|
10111
|
-
* TODO: !!!!!! Write unit test
|
|
10112
|
-
*/
|
|
10113
10108
|
|
|
10114
10109
|
/**
|
|
10115
10110
|
* @@@
|
|
10116
10111
|
*
|
|
10112
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
10117
10113
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
10118
10114
|
*
|
|
10119
10115
|
* @public exported from `@promptbook/core`
|
|
10120
10116
|
*/
|
|
10121
10117
|
function isPipelineInterfacesEqual(pipelineInterface1, pipelineInterface2) {
|
|
10122
|
-
|
|
10123
|
-
return JSON.stringify(pipelineInterface1) === JSON.stringify(pipelineInterface2);
|
|
10118
|
+
return JSON.stringify(Object.keys(pipelineInterface1)) === JSON.stringify(Object.keys(pipelineInterface2));
|
|
10124
10119
|
}
|
|
10125
|
-
/**
|
|
10126
|
-
* TODO: [🧠] !!! Return more states than true/false - 'IDENTICAL' |'IDENTICAL_UNPREPARED' | 'IDENTICAL_INTERFACE' | 'DIFFERENT'
|
|
10127
|
-
* TODO: !!! Write unit test
|
|
10128
|
-
*/
|
|
10129
10120
|
|
|
10130
10121
|
/**
|
|
10131
10122
|
* @@@
|
|
10132
10123
|
*
|
|
10124
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
10133
10125
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
10134
10126
|
*
|
|
10135
10127
|
* @public exported from `@promptbook/core`
|
|
@@ -10138,10 +10130,6 @@
|
|
|
10138
10130
|
var pipeline = options.pipeline, pipelineInterface = options.pipelineInterface;
|
|
10139
10131
|
return isPipelineInterfacesEqual(getPipelineInterface(pipeline), pipelineInterface);
|
|
10140
10132
|
}
|
|
10141
|
-
/**
|
|
10142
|
-
* TODO: !!!!!! Test real implementing NOT equality
|
|
10143
|
-
* TODO: !!!!!! Write unit test
|
|
10144
|
-
*/
|
|
10145
10133
|
|
|
10146
10134
|
/**
|
|
10147
10135
|
* Metadata of the scraper
|