@promptbook/types 0.63.0-5 → 0.63.0-7
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/esm/index.es.js +2 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/cli/cli-commands/about.d.ts +11 -0
- package/esm/typings/src/cli/cli-commands/make.d.ts +3 -0
- package/esm/typings/src/cli/cli-commands/prettify.d.ts +1 -0
- package/esm/typings/src/cli/test/ptbk.d.ts +2 -0
- package/esm/typings/src/cli/test/ptbk.test.d.ts +1 -0
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -0
- package/esm/typings/src/config.d.ts +8 -0
- package/esm/typings/src/conversion/validation/_importPipeline.d.ts +3 -0
- 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/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-6';
|
|
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,6 +6,7 @@ import { createCollectionFromUrl } from '../collection/constructors/createCollec
|
|
|
6
6
|
import { createSubcollection } from '../collection/constructors/createSubcollection';
|
|
7
7
|
import type { BlockType } from '../commands/BLOCK/BlockTypes';
|
|
8
8
|
import { BlockTypes } from '../commands/BLOCK/BlockTypes';
|
|
9
|
+
import { CLAIM } from '../config';
|
|
9
10
|
import { MAX_PARALLEL_COUNT } from '../config';
|
|
10
11
|
import { MAX_EXECUTION_ATTEMPTS } from '../config';
|
|
11
12
|
import { MAX_FILENAME_LENGTH } from '../config';
|
|
@@ -66,6 +67,7 @@ export { createCollectionFromUrl };
|
|
|
66
67
|
export { createSubcollection };
|
|
67
68
|
export type { BlockType };
|
|
68
69
|
export { BlockTypes };
|
|
70
|
+
export { CLAIM };
|
|
69
71
|
export { MAX_PARALLEL_COUNT };
|
|
70
72
|
export { MAX_EXECUTION_ATTEMPTS };
|
|
71
73
|
export { MAX_FILENAME_LENGTH };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* Initializes `about` command for Promptbook CLI utilities
|
|
4
|
+
*
|
|
5
|
+
* @private internal function of `promptbookCli`
|
|
6
|
+
*/
|
|
7
|
+
export declare function initializeAboutCommand(program: Program): void;
|
|
8
|
+
/**
|
|
9
|
+
* TODO: [🗽] Unite branding and make single place for it
|
|
10
|
+
* Note: [🟡] This code should never be published outside of `@promptbook/cli`
|
|
11
|
+
*/
|
|
@@ -6,5 +6,8 @@ import type { Command as Program } from 'commander';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function initializeMakeCommand(program: Program): void;
|
|
8
8
|
/**
|
|
9
|
+
* TODO: Maybe remove this command - "about" command should be enough?
|
|
10
|
+
* TODO: [0] DRY Javascript and typescript - Maybe make ONLY typescript and for javascript just remove types
|
|
9
11
|
* Note: [🟡] This code should never be published outside of `@promptbook/cli`
|
|
12
|
+
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
10
13
|
*/
|
|
@@ -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
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
*/
|
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
* @private within the repository
|
|
5
5
|
*/
|
|
6
6
|
export declare const GENERATOR_WARNING = "\u26A0\uFE0F WARNING: This code has been generated so that any manual changes will be overwritten";
|
|
7
|
+
/**
|
|
8
|
+
* Claim for the Promptbook
|
|
9
|
+
*
|
|
10
|
+
* TODO: [🗽] Unite branding and make single place for it
|
|
11
|
+
*
|
|
12
|
+
* @public exported from `@promptbook/core`
|
|
13
|
+
*/
|
|
14
|
+
export declare const CLAIM = "Supercharge LLM models with Promptbook";
|
|
7
15
|
/**
|
|
8
16
|
* Warning message for the generated sections and files files
|
|
9
17
|
*
|
|
@@ -24,3 +24,6 @@ export declare function importPipelineJson(path: `${string}.ptbk.json`): Pipelin
|
|
|
24
24
|
* @private internal function of tests
|
|
25
25
|
*/
|
|
26
26
|
export declare function importPipelineJsonAsString(path: `${string}.ptbk.json`): string_json<PipelineJson>;
|
|
27
|
+
/**
|
|
28
|
+
* TODO: [🥯] This should be part of scripting + testing utilities set which are not builded into packages
|
|
29
|
+
*/
|
|
@@ -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-7",
|
|
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-7"
|
|
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-6';
|
|
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;;;;;;;;;;"}
|