@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
package/esm/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
22
22
|
*
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.75.
|
|
25
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.75.1';
|
|
26
26
|
/**
|
|
27
27
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
28
28
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1288,7 +1288,6 @@ function validatePipelineCore(pipeline) {
|
|
|
1288
1288
|
while (unresovedTasks.length > 0) {
|
|
1289
1289
|
_loop_3();
|
|
1290
1290
|
}
|
|
1291
|
-
// TODO: !!!!!! Test that pipeline interface implements declared formfactor interface
|
|
1292
1291
|
}
|
|
1293
1292
|
/**
|
|
1294
1293
|
* TODO: !! [🧞♀️] Do not allow joker + foreach
|
|
@@ -10055,6 +10054,7 @@ var _OpenAiAssistantMetadataRegistration = $llmToolsMetadataRegister.register({
|
|
|
10055
10054
|
/**
|
|
10056
10055
|
* @@@
|
|
10057
10056
|
*
|
|
10057
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
10058
10058
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
10059
10059
|
*
|
|
10060
10060
|
* @public exported from `@promptbook/core`
|
|
@@ -10092,8 +10092,6 @@ function getPipelineInterface(pipeline) {
|
|
|
10092
10092
|
var name2 = _b.name;
|
|
10093
10093
|
return name1.localeCompare(name2);
|
|
10094
10094
|
});
|
|
10095
|
-
// <- TODO: [🧠] Should we compare a descriptions?
|
|
10096
|
-
// <- TODO: [🧠][🛴] Maybe add type + expectations into the intefrace, like "a person name"
|
|
10097
10095
|
}
|
|
10098
10096
|
}
|
|
10099
10097
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -10105,29 +10103,23 @@ function getPipelineInterface(pipeline) {
|
|
|
10105
10103
|
}
|
|
10106
10104
|
return $deepFreeze(pipelineInterface);
|
|
10107
10105
|
}
|
|
10108
|
-
/**
|
|
10109
|
-
* TODO: !!!!!! Write unit test
|
|
10110
|
-
*/
|
|
10111
10106
|
|
|
10112
10107
|
/**
|
|
10113
10108
|
* @@@
|
|
10114
10109
|
*
|
|
10110
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
10115
10111
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
10116
10112
|
*
|
|
10117
10113
|
* @public exported from `@promptbook/core`
|
|
10118
10114
|
*/
|
|
10119
10115
|
function isPipelineInterfacesEqual(pipelineInterface1, pipelineInterface2) {
|
|
10120
|
-
|
|
10121
|
-
return JSON.stringify(pipelineInterface1) === JSON.stringify(pipelineInterface2);
|
|
10116
|
+
return JSON.stringify(Object.keys(pipelineInterface1)) === JSON.stringify(Object.keys(pipelineInterface2));
|
|
10122
10117
|
}
|
|
10123
|
-
/**
|
|
10124
|
-
* TODO: [🧠] !!! Return more states than true/false - 'IDENTICAL' |'IDENTICAL_UNPREPARED' | 'IDENTICAL_INTERFACE' | 'DIFFERENT'
|
|
10125
|
-
* TODO: !!! Write unit test
|
|
10126
|
-
*/
|
|
10127
10118
|
|
|
10128
10119
|
/**
|
|
10129
10120
|
* @@@
|
|
10130
10121
|
*
|
|
10122
|
+
* @deprecated https://github.com/webgptorg/promptbook/pull/186
|
|
10131
10123
|
* @see https://github.com/webgptorg/promptbook/discussions/171
|
|
10132
10124
|
*
|
|
10133
10125
|
* @public exported from `@promptbook/core`
|
|
@@ -10136,10 +10128,6 @@ function isPipelineImplementingInterface(options) {
|
|
|
10136
10128
|
var pipeline = options.pipeline, pipelineInterface = options.pipelineInterface;
|
|
10137
10129
|
return isPipelineInterfacesEqual(getPipelineInterface(pipeline), pipelineInterface);
|
|
10138
10130
|
}
|
|
10139
|
-
/**
|
|
10140
|
-
* TODO: !!!!!! Test real implementing NOT equality
|
|
10141
|
-
* TODO: !!!!!! Write unit test
|
|
10142
|
-
*/
|
|
10143
10131
|
|
|
10144
10132
|
/**
|
|
10145
10133
|
* Metadata of the scraper
|