@promptbook/cli 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.
@@ -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;
@@ -15,4 +15,4 @@ export type string_promptbook_version = string_semantic_version;
15
15
  /**
16
16
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
17
17
  * Note: [💞] Ignore a discrepancy between file name and entity name
18
- */
18
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/cli",
3
- "version": "0.75.0-4",
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,
package/umd/index.umd.js CHANGED
@@ -49,7 +49,7 @@
49
49
  *
50
50
  * @see https://github.com/webgptorg/promptbook
51
51
  */
52
- var PROMPTBOOK_ENGINE_VERSION = '0.75.0-3';
52
+ var PROMPTBOOK_ENGINE_VERSION = '0.75.1';
53
53
  /**
54
54
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
55
55
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -401,7 +401,6 @@
401
401
  * @public exported from `@promptbook/core`
402
402
  */
403
403
  var CLAIM = "It's time for a paradigm shift. The future of software in plain English, French or Latin";
404
- // <- TODO: [🐊] Pick the best claim
405
404
  /**
406
405
  * When the title is not provided, the default title is used
407
406
  *
@@ -427,7 +426,7 @@
427
426
  * @private within the repository - too low-level in comparison with other `MAX_...`
428
427
  */
429
428
  var CONNECTION_TIMEOUT_MS = 7 * 1000;
430
- // <- TODO: [⏳] Standartize timeouts, Make DEFAULT_TIMEOUT_MS as global constant
429
+ // <- TODO: [⏳] Standardize timeouts, Make DEFAULT_TIMEOUT_MS as global constant
431
430
  /**
432
431
  * How many times to retry the connections
433
432
  *
@@ -2015,7 +2014,6 @@
2015
2014
  while (unresovedTasks.length > 0) {
2016
2015
  _loop_3();
2017
2016
  }
2018
- // TODO: !!!!!! Test that pipeline interface implements declared formfactor interface
2019
2017
  }
2020
2018
  /**
2021
2019
  * TODO: !! [🧞‍♀️] Do not allow joker + foreach