@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 CHANGED
@@ -24,10 +24,6 @@
24
24
 
25
25
 
26
26
 
27
- <blockquote style="color: #ff8811">
28
- <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
29
- </blockquote>
30
-
31
27
  ## 📦 Package `@promptbook/core`
32
28
 
33
29
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
package/esm/index.es.js CHANGED
@@ -25,7 +25,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- var PROMPTBOOK_ENGINE_VERSION = '0.84.0-20';
28
+ var PROMPTBOOK_ENGINE_VERSION = '0.84.0-21';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -10514,6 +10514,9 @@ var $llmToolsRegister = new $Register('llm_execution_tools_constructors');
10514
10514
  * @public exported from `@promptbook/utils`
10515
10515
  */
10516
10516
  var $isRunningInNode = new Function("\n try {\n return this === global;\n } catch (e) {\n return false;\n }\n");
10517
+ /**
10518
+ * TODO: [☑]
10519
+ */
10517
10520
 
10518
10521
  /**
10519
10522
  * Creates a message with all registered LLM tools
@@ -10593,10 +10596,11 @@ function $registeredLlmToolsMessage() {
10593
10596
  // <- Note: [🗨]
10594
10597
  return __assign(__assign({}, metadata), { isMetadataAviailable: isMetadataAviailable, isInstalled: isInstalled, isFullyConfigured: isFullyConfigured, isPartiallyConfigured: isPartiallyConfigured });
10595
10598
  });
10599
+ var usedEnvMessage = "Unknown `.env` file" ;
10596
10600
  if (metadata.length === 0) {
10597
- return "No LLM providers are available.";
10601
+ return spaceTrim(function (block) { return "\n No LLM providers are available.\n\n ".concat(block(usedEnvMessage), "\n "); });
10598
10602
  }
10599
- return spaceTrim(function (block) { return "\n Relevant environment variables:\n ".concat(block(Object.keys(env)
10603
+ return spaceTrim(function (block) { return "\n\n ".concat(block(usedEnvMessage), "\n\n Relevant environment variables:\n ").concat(block(Object.keys(env)
10600
10604
  .filter(function (envVariableName) {
10601
10605
  return metadata.some(function (_a) {
10602
10606
  var envVariables = _a.envVariables;
@@ -11044,6 +11048,9 @@ var _AzureOpenAiMetadataRegistration = $llmToolsMetadataRegister.register({
11044
11048
  * @public exported from `@promptbook/utils`
11045
11049
  */
11046
11050
  var $isRunningInJest = new Function("\n try {\n return process.env.JEST_WORKER_ID !== undefined;\n } catch (e) {\n return false;\n }\n");
11051
+ /**
11052
+ * TODO: [☑]
11053
+ */
11047
11054
 
11048
11055
  /**
11049
11056
  * Registration of LLM provider metadata