@promptbook/types 0.86.8 β†’ 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 CHANGED
@@ -431,7 +431,7 @@ See [CHANGELOG.md](./CHANGELOG.md)
431
431
 
432
432
  ## πŸ“œ License
433
433
 
434
- <p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/webgptorg/promptbook">Promptbook</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/hejny/">Pavol HejnΓ½</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY 4.0</a></p>
434
+ Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
435
435
 
436
436
  ## 🎯 Todos
437
437
 
@@ -439,7 +439,6 @@ See [TODO.md](./TODO.md)
439
439
 
440
440
 
441
441
 
442
-
443
442
  ## 🀝 Partners
444
443
 
445
444
  <div style="display: flex; align-items: center; gap: 20px;">
@@ -456,6 +455,6 @@ See [TODO.md](./TODO.md)
456
455
 
457
456
  ## πŸ–‹οΈ Contributing
458
457
 
459
- I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can [β˜• buy me a coffee](https://www.buymeacoffee.com/hejny) or [donate via cryptocurrencies](https://github.com/hejny/hejny/blob/main/documents/crypto.md).
458
+ We are open to pull requests, feedback, and suggestions.
460
459
 
461
- You can also ⭐ star the promptbook package, [follow me on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
460
+ You can also ⭐ star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
@@ -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/types",
3
- "version": "0.86.8",
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,
@@ -45,6 +45,6 @@
45
45
  "homepage": "https://ptbk.io/",
46
46
  "typings": "./esm/typings/src/_packages/types.index.d.ts",
47
47
  "peerDependencies": {
48
- "@promptbook/core": "0.86.8"
48
+ "@promptbook/core": "0.86.10"
49
49
  }
50
50
  }