@promptbook/markdown-utils 0.78.3 → 0.79.0
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/README.md +2 -2
- package/esm/index.es.js +4 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +2 -2
- package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +6 -1
- package/esm/typings/src/formfactors/index.d.ts +12 -2
- package/esm/typings/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +6 -1
- package/package.json +1 -1
- package/umd/index.umd.js +4 -1
- package/umd/index.umd.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WritableDeep } from 'type-fest';
|
|
1
|
+
import type { SetOptional, WritableDeep } from 'type-fest';
|
|
2
2
|
import type { PipelineJson } from '../../../pipeline/PipelineJson/PipelineJson';
|
|
3
3
|
import type { TaskJson } from '../../../pipeline/PipelineJson/TaskJson';
|
|
4
4
|
import type { string_markdown_text } from '../../../types/typeAliases';
|
|
@@ -140,7 +140,7 @@ export type $TaskJson = {
|
|
|
140
140
|
*
|
|
141
141
|
* @private internal helper for command parsers
|
|
142
142
|
*/
|
|
143
|
-
export type $PipelineJson = WritableDeep<PipelineJson
|
|
143
|
+
export type $PipelineJson = WritableDeep<SetOptional<PipelineJson, 'formfactorName'>>;
|
|
144
144
|
/**
|
|
145
145
|
* @@@
|
|
146
146
|
*/
|
|
@@ -8,7 +8,12 @@ export declare const GeneratorFormfactorDefinition: {
|
|
|
8
8
|
readonly description: "@@@";
|
|
9
9
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/184";
|
|
10
10
|
readonly pipelineInterface: {
|
|
11
|
-
readonly inputParameters: readonly [
|
|
11
|
+
readonly inputParameters: readonly [{
|
|
12
|
+
readonly name: "nonce";
|
|
13
|
+
readonly description: "Just to prevent GENERATOR to be set as implicit formfactor";
|
|
14
|
+
readonly isInput: true;
|
|
15
|
+
readonly isOutput: false;
|
|
16
|
+
}];
|
|
12
17
|
readonly outputParameters: readonly [];
|
|
13
18
|
};
|
|
14
19
|
};
|
|
@@ -96,7 +96,12 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
96
96
|
readonly description: "@@@";
|
|
97
97
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/177";
|
|
98
98
|
readonly pipelineInterface: {
|
|
99
|
-
readonly inputParameters: readonly [
|
|
99
|
+
readonly inputParameters: readonly [{
|
|
100
|
+
readonly name: "nonce";
|
|
101
|
+
readonly description: "Just to prevent EXPERIMENTAL_MATCHER to be set as implicit formfactor";
|
|
102
|
+
readonly isInput: true;
|
|
103
|
+
readonly isOutput: false;
|
|
104
|
+
}];
|
|
100
105
|
readonly outputParameters: readonly [];
|
|
101
106
|
};
|
|
102
107
|
}, {
|
|
@@ -104,7 +109,12 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
104
109
|
readonly description: "@@@";
|
|
105
110
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/184";
|
|
106
111
|
readonly pipelineInterface: {
|
|
107
|
-
readonly inputParameters: readonly [
|
|
112
|
+
readonly inputParameters: readonly [{
|
|
113
|
+
readonly name: "nonce";
|
|
114
|
+
readonly description: "Just to prevent GENERATOR to be set as implicit formfactor";
|
|
115
|
+
readonly isInput: true;
|
|
116
|
+
readonly isOutput: false;
|
|
117
|
+
}];
|
|
108
118
|
readonly outputParameters: readonly [];
|
|
109
119
|
};
|
|
110
120
|
}];
|
|
@@ -8,7 +8,12 @@ export declare const MatcherFormfactorDefinition: {
|
|
|
8
8
|
readonly description: "@@@";
|
|
9
9
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/177";
|
|
10
10
|
readonly pipelineInterface: {
|
|
11
|
-
readonly inputParameters: readonly [
|
|
11
|
+
readonly inputParameters: readonly [{
|
|
12
|
+
readonly name: "nonce";
|
|
13
|
+
readonly description: "Just to prevent EXPERIMENTAL_MATCHER to be set as implicit formfactor";
|
|
14
|
+
readonly isInput: true;
|
|
15
|
+
readonly isOutput: false;
|
|
16
|
+
}];
|
|
12
17
|
readonly outputParameters: readonly [];
|
|
13
18
|
};
|
|
14
19
|
};
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.78.
|
|
25
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.78.4';
|
|
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
|
|
@@ -1307,6 +1307,9 @@
|
|
|
1307
1307
|
*/
|
|
1308
1308
|
function $deepFreeze(objectValue) {
|
|
1309
1309
|
var e_1, _a;
|
|
1310
|
+
if (Array.isArray(objectValue)) {
|
|
1311
|
+
return Object.freeze(objectValue.map(function (item) { return $deepFreeze(item); }));
|
|
1312
|
+
}
|
|
1310
1313
|
var propertyNames = Object.getOwnPropertyNames(objectValue);
|
|
1311
1314
|
try {
|
|
1312
1315
|
for (var propertyNames_1 = __values(propertyNames), propertyNames_1_1 = propertyNames_1.next(); !propertyNames_1_1.done; propertyNames_1_1 = propertyNames_1.next()) {
|