@promptbook/remote-server 0.86.6 → 0.86.10
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 +3 -4
- package/esm/index.es.js +1 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/conversion/archive/loadArchive.d.ts +16 -0
- package/esm/typings/src/conversion/archive/saveArchive.d.ts +18 -0
- package/esm/typings/src/conversion/validation/_importPipeline.d.ts +3 -10
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/utils/editable/utils/stringifyPipelineJson.test.d.ts +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
|
|
2
|
+
import type { string_filename } from '../../types/typeAliases';
|
|
3
|
+
import type { FilesystemTools } from '../../execution/FilesystemTools';
|
|
4
|
+
/**
|
|
5
|
+
* Loads the books from the archive file with `.bookc` extension
|
|
6
|
+
*
|
|
7
|
+
* @param filePath Path to the archive file with `.bookc` extension
|
|
8
|
+
* @param fs Filesystem tools
|
|
9
|
+
* @returns Pipelines loaded from the archive
|
|
10
|
+
*
|
|
11
|
+
* @private utility of Prompbook
|
|
12
|
+
*/
|
|
13
|
+
export declare function loadArchive(filePath: string_filename, fs: FilesystemTools): Promise<Array<PipelineJson>>;
|
|
14
|
+
/**
|
|
15
|
+
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
16
|
+
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
|
|
2
|
+
import type { string_filename } from '../../types/typeAliases';
|
|
3
|
+
import type { FilesystemTools } from '../../execution/FilesystemTools';
|
|
4
|
+
/**
|
|
5
|
+
* Saves the given books into an archive file with `.bookc` extension
|
|
6
|
+
*
|
|
7
|
+
* @param filePath Path to the archive file with `.bookc` extension
|
|
8
|
+
* @param books Pipelines to be saved in the archive
|
|
9
|
+
* @param fs Filesystem tools
|
|
10
|
+
*
|
|
11
|
+
* @private utility of Prompbook
|
|
12
|
+
*/
|
|
13
|
+
export declare function saveArchive(filePath: string_filename, collectionJson: ReadonlyArray<PipelineJson>, fs: FilesystemTools): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* TODO: Add metadata to zip
|
|
16
|
+
* TODO: Compression level and other zip options from config
|
|
17
|
+
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
18
|
+
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
|
|
2
2
|
import type { PipelineString } from '../../pipeline/PipelineString';
|
|
3
|
-
import type { string_json } from '../../types/typeAliases';
|
|
4
3
|
/**
|
|
5
4
|
* Import the pipeline.book or pipeline.bookc file
|
|
6
5
|
*
|
|
@@ -10,20 +9,14 @@ import type { string_json } from '../../types/typeAliases';
|
|
|
10
9
|
* @param path - The path to the file relative to examples/pipelines directory
|
|
11
10
|
* @private internal function of tests
|
|
12
11
|
*/
|
|
13
|
-
export declare function importPipelineWithoutPreparation(path: `${string}.book`): PipelineString
|
|
14
|
-
export declare function importPipelineWithoutPreparation(path: `${string}.bookc`): PipelineJson
|
|
12
|
+
export declare function importPipelineWithoutPreparation(path: `${string}.book`): Promise<PipelineString>;
|
|
13
|
+
export declare function importPipelineWithoutPreparation(path: `${string}.bookc`): Promise<PipelineJson>;
|
|
15
14
|
/**
|
|
16
15
|
* Import the pipeline.bookc file as parsed JSON
|
|
17
16
|
*
|
|
18
17
|
* @private internal function of tests
|
|
19
18
|
*/
|
|
20
|
-
export declare function importPipelineJson(path: `${string}.bookc`): PipelineJson
|
|
21
|
-
/**
|
|
22
|
-
* Import the pipeline.bookc file as string
|
|
23
|
-
*
|
|
24
|
-
* @private internal function of tests
|
|
25
|
-
*/
|
|
26
|
-
export declare function importPipelineJsonAsString(path: `${string}.bookc`): string_json<PipelineJson>;
|
|
19
|
+
export declare function importPipelineJson(path: `${string}.bookc`): Promise<PipelineJson>;
|
|
27
20
|
/**
|
|
28
21
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
29
22
|
* Note: [⚫] Code in this file should never be published in any package
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-server",
|
|
3
|
-
"version": "0.86.
|
|
3
|
+
"version": "0.86.10",
|
|
4
4
|
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"module": "./esm/index.es.js",
|
|
48
48
|
"typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@promptbook/core": "0.86.
|
|
50
|
+
"@promptbook/core": "0.86.10"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.86.
|
|
31
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.86.10';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|