@promptbook/node 0.75.0-4 → 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/README.md +22 -16
- package/esm/index.es.js +1 -3
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +6 -0
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/config.d.ts +25 -0
- 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/esm/typings/src/utils/organization/spaceTrim.d.ts +11 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -3
- package/umd/index.umd.js.map +1 -1
|
@@ -4,7 +4,10 @@ import { createCollectionFromJson } from '../collection/constructors/createColle
|
|
|
4
4
|
import { createCollectionFromPromise } from '../collection/constructors/createCollectionFromPromise';
|
|
5
5
|
import { createCollectionFromUrl } from '../collection/constructors/createCollectionFromUrl';
|
|
6
6
|
import { createSubcollection } from '../collection/constructors/createSubcollection';
|
|
7
|
+
import { NAME } from '../config';
|
|
7
8
|
import { CLAIM } from '../config';
|
|
9
|
+
import { LOGO_LIGHT_SRC } from '../config';
|
|
10
|
+
import { LOGO_DARK_SRC } from '../config';
|
|
8
11
|
import { DEFAULT_TITLE } from '../config';
|
|
9
12
|
import { MAX_FILENAME_LENGTH } from '../config';
|
|
10
13
|
import { DEFAULT_INTERMEDIATE_FILES_STRATEGY } from '../config';
|
|
@@ -113,7 +116,10 @@ export { createCollectionFromJson };
|
|
|
113
116
|
export { createCollectionFromPromise };
|
|
114
117
|
export { createCollectionFromUrl };
|
|
115
118
|
export { createSubcollection };
|
|
119
|
+
export { NAME };
|
|
116
120
|
export { CLAIM };
|
|
121
|
+
export { LOGO_LIGHT_SRC };
|
|
122
|
+
export { LOGO_DARK_SRC };
|
|
117
123
|
export { DEFAULT_TITLE };
|
|
118
124
|
export { MAX_FILENAME_LENGTH };
|
|
119
125
|
export { DEFAULT_INTERMEDIATE_FILES_STRATEGY };
|
|
@@ -44,6 +44,7 @@ import { parseKeywords } from '../utils/normalization/parseKeywords';
|
|
|
44
44
|
import { parseKeywordsFromString } from '../utils/normalization/parseKeywordsFromString';
|
|
45
45
|
import { removeDiacritics } from '../utils/normalization/removeDiacritics';
|
|
46
46
|
import { searchKeywords } from '../utils/normalization/searchKeywords';
|
|
47
|
+
import { spaceTrim } from '../utils/organization/spaceTrim';
|
|
47
48
|
import { extractParameterNames } from '../utils/parameters/extractParameterNames';
|
|
48
49
|
import { replaceParameters } from '../utils/parameters/replaceParameters';
|
|
49
50
|
import { parseNumber } from '../utils/parseNumber';
|
|
@@ -117,6 +118,7 @@ export { parseKeywords };
|
|
|
117
118
|
export { parseKeywordsFromString };
|
|
118
119
|
export { removeDiacritics };
|
|
119
120
|
export { searchKeywords };
|
|
121
|
+
export { spaceTrim };
|
|
120
122
|
export { extractParameterNames };
|
|
121
123
|
export { replaceParameters };
|
|
122
124
|
export { parseNumber };
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import type { CsvSettings } from './formats/csv/CsvSettings';
|
|
2
2
|
import type { IntermediateFilesStrategy } from './types/IntermediateFilesStrategy';
|
|
3
|
+
import type { string_url_image } from './types/typeAliases';
|
|
3
4
|
/**
|
|
4
5
|
* Warning message for the generated sections and files files
|
|
5
6
|
*
|
|
6
7
|
* @private within the repository
|
|
7
8
|
*/
|
|
8
9
|
export declare const GENERATOR_WARNING = "\u26A0\uFE0F WARNING: This code has been generated so that any manual changes will be overwritten";
|
|
10
|
+
/**
|
|
11
|
+
* Name for the Promptbook
|
|
12
|
+
*
|
|
13
|
+
* TODO: [🗽] Unite branding and make single place for it
|
|
14
|
+
*
|
|
15
|
+
* @public exported from `@promptbook/core`
|
|
16
|
+
*/
|
|
17
|
+
export declare const NAME = "Promptbook";
|
|
9
18
|
/**
|
|
10
19
|
* Claim for the Promptbook
|
|
11
20
|
*
|
|
@@ -14,6 +23,22 @@ export declare const GENERATOR_WARNING = "\u26A0\uFE0F WARNING: This code has be
|
|
|
14
23
|
* @public exported from `@promptbook/core`
|
|
15
24
|
*/
|
|
16
25
|
export declare const CLAIM = "It's time for a paradigm shift. The future of software in plain English, French or Latin";
|
|
26
|
+
/**
|
|
27
|
+
* Logo for the light theme
|
|
28
|
+
*
|
|
29
|
+
* TODO: [🗽] Unite branding and make single place for it
|
|
30
|
+
*
|
|
31
|
+
* @public exported from `@promptbook/core`
|
|
32
|
+
*/
|
|
33
|
+
export declare const LOGO_LIGHT_SRC: string_url_image;
|
|
34
|
+
/**
|
|
35
|
+
* Logo for the dark theme
|
|
36
|
+
*
|
|
37
|
+
* TODO: [🗽] Unite branding and make single place for it
|
|
38
|
+
*
|
|
39
|
+
* @public exported from `@promptbook/core`
|
|
40
|
+
*/
|
|
41
|
+
export declare const LOGO_DARK_SRC: string_url_image;
|
|
17
42
|
/**
|
|
18
43
|
* When the title is not provided, the default title is used
|
|
19
44
|
*
|
|
@@ -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
|
-
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { spaceTrim as spaceTrimReexported } from 'spacetrim';
|
|
2
|
+
/**
|
|
3
|
+
* Trims string from all 4 sides
|
|
4
|
+
*
|
|
5
|
+
* Note: This is a re-exported function from the `spacetrim` package which is
|
|
6
|
+
* Developed by same author @hejny as this package
|
|
7
|
+
*
|
|
8
|
+
* @public exported from `@promptbook/utils`
|
|
9
|
+
* @see https://github.com/hejny/spacetrim#usage
|
|
10
|
+
*/
|
|
11
|
+
export declare const spaceTrim: typeof spaceTrimReexported;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.75.
|
|
3
|
+
"version": "0.75.2",
|
|
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/node.index.d.ts",
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@promptbook/core": "0.75.
|
|
57
|
+
"@promptbook/core": "0.75.2"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
*
|
|
44
44
|
* @see https://github.com/webgptorg/promptbook
|
|
45
45
|
*/
|
|
46
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.75.
|
|
46
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.75.1';
|
|
47
47
|
/**
|
|
48
48
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
49
49
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -381,7 +381,6 @@
|
|
|
381
381
|
* TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
382
382
|
*/
|
|
383
383
|
|
|
384
|
-
// <- TODO: [🐊] Pick the best claim
|
|
385
384
|
/**
|
|
386
385
|
* When the title is not provided, the default title is used
|
|
387
386
|
*
|
|
@@ -1814,7 +1813,6 @@
|
|
|
1814
1813
|
while (unresovedTasks.length > 0) {
|
|
1815
1814
|
_loop_3();
|
|
1816
1815
|
}
|
|
1817
|
-
// TODO: !!!!!! Test that pipeline interface implements declared formfactor interface
|
|
1818
1816
|
}
|
|
1819
1817
|
/**
|
|
1820
1818
|
* TODO: !! [🧞♀️] Do not allow joker + foreach
|