@promptbook/types 0.63.0-4 → 0.63.0-6
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 +1 -1
- package/esm/index.es.js +2 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/cli/cli-commands/make.d.ts +2 -0
- package/esm/typings/src/cli/cli-commands/prettify.d.ts +1 -0
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -0
- package/esm/typings/src/config.d.ts +7 -1
- package/esm/typings/src/utils/files/isDirectoryExisting.d.ts +13 -0
- package/esm/typings/src/utils/files/isDirectoryExisting.test.d.ts +1 -0
- package/esm/typings/src/utils/files/isFileExisting.d.ts +12 -0
- package/esm/typings/src/utils/files/isFileExisting.test.d.ts +1 -0
- package/esm/typings/src/utils/files/listAllFiles.d.ts +1 -0
- package/esm/typings/src/utils/files/listAllFiles.test.d.ts +1 -0
- package/package.json +2 -2
- package/umd/index.umd.js +2 -1
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- ⚠️ WARNING: This
|
|
1
|
+
<!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten -->
|
|
2
2
|
|
|
3
3
|
#  Promptbook
|
|
4
4
|
|
package/esm/index.es.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
// ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
|
|
1
2
|
/**
|
|
2
3
|
* The version of the Promptbook library
|
|
3
4
|
*/
|
|
4
|
-
var PROMPTBOOK_VERSION = '0.63.0-
|
|
5
|
+
var PROMPTBOOK_VERSION = '0.63.0-5';
|
|
5
6
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
6
7
|
|
|
7
8
|
export { PROMPTBOOK_VERSION };
|
package/esm/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../src/version.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../src/version.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAIA;;;IAGa,kBAAkB,GAA8B,WAAW;AAGxE;;;;"}
|
|
@@ -6,5 +6,7 @@ import type { Command as Program } from 'commander';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function initializeMakeCommand(program: Program): void;
|
|
8
8
|
/**
|
|
9
|
+
* TODO: [0] DRY Javascript and typescript - Maybe make ONLY typescript and for javascript just remove types
|
|
9
10
|
* Note: [🟡] This code should never be published outside of `@promptbook/cli`
|
|
11
|
+
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
10
12
|
*/
|
|
@@ -7,4 +7,5 @@ import type { Command as Program } from 'commander';
|
|
|
7
7
|
export declare function initializePrettifyCommand(program: Program): void;
|
|
8
8
|
/**
|
|
9
9
|
* Note: [🟡] This code should never be published outside of `@promptbook/cli`
|
|
10
|
+
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
10
11
|
*/
|
|
@@ -45,4 +45,5 @@ export declare function createCollectionFromDirectory(path: string_folder_path,
|
|
|
45
45
|
export {};
|
|
46
46
|
/**
|
|
47
47
|
* Note: [🟢] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli`
|
|
48
|
+
* TODO: [🖇] What about symlinks? Maybe option isSymlinksFollowed
|
|
48
49
|
*/
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @private within the repository
|
|
5
5
|
*/
|
|
6
|
-
export declare const GENERATOR_WARNING = "\u26A0\uFE0F WARNING: This
|
|
6
|
+
export declare const GENERATOR_WARNING = "\u26A0\uFE0F WARNING: This code has been generated so that any manual changes will be overwritten";
|
|
7
|
+
/**
|
|
8
|
+
* Warning message for the generated sections and files files
|
|
9
|
+
*
|
|
10
|
+
* @private within the repository
|
|
11
|
+
*/
|
|
12
|
+
export declare const GENERATOR_WARNING_BY_PROMPTBOOK_CLI = "\u26A0\uFE0F WARNING: This code has been generated by `@promptbook/cli` so that any manual changes will be overwritten";
|
|
7
13
|
/**
|
|
8
14
|
* The maximum number of iterations for a loops
|
|
9
15
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { string_folder_path } from '../../types/typeAliases';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the directory exists
|
|
4
|
+
*
|
|
5
|
+
* @private within the repository
|
|
6
|
+
*/
|
|
7
|
+
export declare function isDirectoryExisting(directoryPath: string_folder_path): Promise<boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Note: [🟢] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli`
|
|
10
|
+
* TODO: [🐠] This can be a validator - with variants that return true/false and variants that throw errors with meaningless messages
|
|
11
|
+
* TODO: [🧠][📂] "directory" vs "folder"
|
|
12
|
+
* TODO: [🖇] What about symlinks?
|
|
13
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { string_file_path } from '../../types/typeAliases';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the file exists
|
|
4
|
+
*
|
|
5
|
+
* @private within the repository
|
|
6
|
+
*/
|
|
7
|
+
export declare function isFileExisting(filePath: string_file_path): Promise<boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Note: [🟢] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli`
|
|
10
|
+
* TODO: [🐠] This can be a validator - with variants that return true/false and variants that throw errors with meaningless messages
|
|
11
|
+
* TODO: [🖇] What about symlinks?
|
|
12
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,4 +11,5 @@ import type { string_folder_path } from '../../types/typeAliases';
|
|
|
11
11
|
export declare function listAllFiles(path: string_folder_path, isRecursive: boolean): Promise<Array<string_file_path>>;
|
|
12
12
|
/**
|
|
13
13
|
* Note: [🟢] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli`
|
|
14
|
+
* TODO: [🖇] What about symlinks?
|
|
14
15
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/types",
|
|
3
|
-
"version": "0.63.0-
|
|
3
|
+
"version": "0.63.0-6",
|
|
4
4
|
"description": "Supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,6 +47,6 @@
|
|
|
47
47
|
"module": "./esm/index.es.js",
|
|
48
48
|
"typings": "./esm/typings/src/_packages/types.index.d.ts",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@promptbook/core": "0.63.0-
|
|
50
|
+
"@promptbook/core": "0.63.0-6"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/umd/index.umd.js
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-types"] = {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
+
// ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
|
|
7
8
|
/**
|
|
8
9
|
* The version of the Promptbook library
|
|
9
10
|
*/
|
|
10
|
-
var PROMPTBOOK_VERSION = '0.63.0-
|
|
11
|
+
var PROMPTBOOK_VERSION = '0.63.0-5';
|
|
11
12
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
12
13
|
|
|
13
14
|
exports.PROMPTBOOK_VERSION = PROMPTBOOK_VERSION;
|
package/umd/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../../../../src/version.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../../../../src/version.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;CAAA;CAIA;;;KAGa,kBAAkB,GAA8B,WAAW;CAGxE;;;;;;;;;;"}
|