@promptbook/core 0.84.0-21 → 0.84.0
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 +0 -4
- package/esm/index.es.js +10 -3
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/cli/cli-commands/about.d.ts +1 -0
- package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +9 -0
- package/esm/typings/src/utils/environment/$isRunningInBrowser.d.ts +3 -0
- package/esm/typings/src/utils/environment/$isRunningInJest.d.ts +3 -0
- package/esm/typings/src/utils/environment/$isRunningInNode.d.ts +3 -0
- package/esm/typings/src/utils/environment/$isRunningInWebWorker.d.ts +3 -0
- package/package.json +2 -2
- package/umd/index.umd.js +10 -3
- package/umd/index.umd.js.map +1 -1
|
@@ -8,6 +8,7 @@ import type { Command as Program } from 'commander';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function $initializeAboutCommand(program: Program): void;
|
|
10
10
|
/**
|
|
11
|
+
* TODO: !!! Test this in `deno`
|
|
11
12
|
* TODO: [🗽] Unite branding and make single place for it
|
|
12
13
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
13
14
|
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import type { string_filename } from '../../../types/typeAliases';
|
|
1
2
|
import type { string_markdown } from '../../../types/typeAliases';
|
|
3
|
+
/**
|
|
4
|
+
* Pass the `.env` file which was used to configure LLM tools
|
|
5
|
+
*
|
|
6
|
+
* Note: `$` is used to indicate that this variable is making side effect
|
|
7
|
+
*
|
|
8
|
+
* @private internal log of `$provideLlmToolsConfigurationFromEnv` and `$registeredLlmToolsMessage`
|
|
9
|
+
*/
|
|
10
|
+
export declare function $setUsedEnvFilename(filepath: string_filename): void;
|
|
2
11
|
/**
|
|
3
12
|
* Creates a message with all registered LLM tools
|
|
4
13
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/core",
|
|
3
|
-
"version": "0.84.0
|
|
3
|
+
"version": "0.84.0",
|
|
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,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"anthropic",
|
|
39
39
|
"LLMOps"
|
|
40
40
|
],
|
|
41
|
-
"license": "
|
|
41
|
+
"license": "BUSL-1.1",
|
|
42
42
|
"bugs": {
|
|
43
43
|
"url": "https://github.com/webgptorg/promptbook/issues"
|
|
44
44
|
},
|
package/umd/index.umd.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-
|
|
30
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-21';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -10516,6 +10516,9 @@
|
|
|
10516
10516
|
* @public exported from `@promptbook/utils`
|
|
10517
10517
|
*/
|
|
10518
10518
|
var $isRunningInNode = new Function("\n try {\n return this === global;\n } catch (e) {\n return false;\n }\n");
|
|
10519
|
+
/**
|
|
10520
|
+
* TODO: [☑]
|
|
10521
|
+
*/
|
|
10519
10522
|
|
|
10520
10523
|
/**
|
|
10521
10524
|
* Creates a message with all registered LLM tools
|
|
@@ -10595,10 +10598,11 @@
|
|
|
10595
10598
|
// <- Note: [🗨]
|
|
10596
10599
|
return __assign(__assign({}, metadata), { isMetadataAviailable: isMetadataAviailable, isInstalled: isInstalled, isFullyConfigured: isFullyConfigured, isPartiallyConfigured: isPartiallyConfigured });
|
|
10597
10600
|
});
|
|
10601
|
+
var usedEnvMessage = "Unknown `.env` file" ;
|
|
10598
10602
|
if (metadata.length === 0) {
|
|
10599
|
-
return "No LLM providers are available.";
|
|
10603
|
+
return spaceTrim__default["default"](function (block) { return "\n No LLM providers are available.\n\n ".concat(block(usedEnvMessage), "\n "); });
|
|
10600
10604
|
}
|
|
10601
|
-
return spaceTrim__default["default"](function (block) { return "\n Relevant environment variables:\n ".concat(block(Object.keys(env)
|
|
10605
|
+
return spaceTrim__default["default"](function (block) { return "\n\n ".concat(block(usedEnvMessage), "\n\n Relevant environment variables:\n ").concat(block(Object.keys(env)
|
|
10602
10606
|
.filter(function (envVariableName) {
|
|
10603
10607
|
return metadata.some(function (_a) {
|
|
10604
10608
|
var envVariables = _a.envVariables;
|
|
@@ -11046,6 +11050,9 @@
|
|
|
11046
11050
|
* @public exported from `@promptbook/utils`
|
|
11047
11051
|
*/
|
|
11048
11052
|
var $isRunningInJest = new Function("\n try {\n return process.env.JEST_WORKER_ID !== undefined;\n } catch (e) {\n return false;\n }\n");
|
|
11053
|
+
/**
|
|
11054
|
+
* TODO: [☑]
|
|
11055
|
+
*/
|
|
11049
11056
|
|
|
11050
11057
|
/**
|
|
11051
11058
|
* Registration of LLM provider metadata
|