@promptbook/legacy-documents 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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/legacy-documents",
3
- "version": "0.78.3",
3
+ "version": "0.79.0",
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/legacy-documents.index.d.ts",
56
56
  "peerDependencies": {
57
- "@promptbook/core": "0.78.3"
57
+ "@promptbook/core": "0.79.0"
58
58
  },
59
59
  "dependencies": {
60
60
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- var PROMPTBOOK_ENGINE_VERSION = '0.78.2';
26
+ var PROMPTBOOK_ENGINE_VERSION = '0.78.4';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1847,6 +1847,9 @@
1847
1847
  */
1848
1848
  function $deepFreeze(objectValue) {
1849
1849
  var e_1, _a;
1850
+ if (Array.isArray(objectValue)) {
1851
+ return Object.freeze(objectValue.map(function (item) { return $deepFreeze(item); }));
1852
+ }
1850
1853
  var propertyNames = Object.getOwnPropertyNames(objectValue);
1851
1854
  try {
1852
1855
  for (var propertyNames_1 = __values(propertyNames), propertyNames_1_1 = propertyNames_1.next(); !propertyNames_1_1.done; propertyNames_1_1 = propertyNames_1.next()) {