@promptbook/cli 0.77.0-6 → 0.77.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
@@ -23,10 +23,6 @@
23
23
 
24
24
 
25
25
 
26
- <blockquote style="color: #ff8811">
27
- <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>.
28
- </blockquote>
29
-
30
26
  ## 📦 Package `@promptbook/cli`
31
27
 
32
28
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
package/esm/index.es.js CHANGED
@@ -37,7 +37,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
37
37
  *
38
38
  * @see https://github.com/webgptorg/promptbook
39
39
  */
40
- var PROMPTBOOK_ENGINE_VERSION = '0.77.0-5';
40
+ var PROMPTBOOK_ENGINE_VERSION = '0.77.0-6';
41
41
  /**
42
42
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
43
43
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1978,7 +1978,14 @@ var $llmToolsRegister = new $Register('llm_execution_tools_constructors');
1978
1978
  */
1979
1979
  function $registeredLlmToolsMessage() {
1980
1980
  var e_1, _a, e_2, _b;
1981
- var env = process.env;
1981
+ var env;
1982
+ if ($isRunningInNode()) {
1983
+ env = process.env;
1984
+ // <- TODO: [⚛] Some DRY way how to get to `process.env` and pass it into functions - ACRY search for `env`
1985
+ }
1986
+ else {
1987
+ env = {};
1988
+ }
1982
1989
  /**
1983
1990
  * Mixes registered LLM tools from $llmToolsMetadataRegister and $llmToolsRegister
1984
1991
  */
@@ -13582,10 +13589,7 @@ var _GoogleMetadataRegistration = $llmToolsMetadataRegister.register({
13582
13589
  packageName: '@promptbook/google',
13583
13590
  className: 'GoogleExecutionTools',
13584
13591
  options: {
13585
- apiKey: 'sk-ant-api03-',
13586
- isProxied: true,
13587
- remoteUrl: DEFAULT_REMOTE_URL,
13588
- path: DEFAULT_REMOTE_URL_PATH,
13592
+ apiKey: 'AI',
13589
13593
  },
13590
13594
  };
13591
13595
  },
@@ -13791,7 +13795,7 @@ var createGoogleExecutionTools = Object.assign(function (options) {
13791
13795
  var createGoogleGenerativeAI = require('@ai-sdk/google').createGoogleGenerativeAI;
13792
13796
  var googleGeminiVercelProvider = createGoogleGenerativeAI(__assign({}, options));
13793
13797
  return createExecutionToolsFromVercelProvider(__assign({ title: 'Google', description: 'Implementation of Google models', vercelProvider: googleGeminiVercelProvider, availableModels: [
13794
- // TODO: !!!!!! Maybe list models in same way as in other providers
13798
+ // TODO: [🕘] Maybe list models in same way as in other providers - in separate file with metadata
13795
13799
  'gemini-1.5-flash',
13796
13800
  'gemini-1.5-flash-latest',
13797
13801
  'gemini-1.5-flash-001',
@@ -13813,10 +13817,6 @@ var createGoogleExecutionTools = Object.assign(function (options) {
13813
13817
  className: 'GoogleExecutionTools',
13814
13818
  });
13815
13819
  /**
13816
- * TODO: [🧠][main] !!!! Make anonymous this with all LLM providers
13817
- * TODO: [🧠][🧱][main] !!!! Maybe change all `new GoogleExecutionTools` -> `createGoogleExecutionTools` in manual
13818
- * TODO: [🧠] Maybe auto-detect usage in browser and determine default value of `isProxied`
13819
- * TODO: [🦺] Is there some way how to put `packageName` and `className` on top and function definition on bottom?
13820
13820
  * TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
13821
13821
  */
13822
13822