@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.
@@ -34,5 +34,5 @@ export type AvailableModel = {
34
34
  readonly modelDescription?: string_model_description;
35
35
  };
36
36
  /**
37
- * TODO: !!!!!! Put pricing information here
37
+ * TODO: (not only [🕘]) Put pricing information here
38
38
  */
@@ -10,9 +10,5 @@ export declare const createGoogleExecutionTools: ((options: GoogleExecutionTools
10
10
  className: string;
11
11
  };
12
12
  /**
13
- * TODO: [🧠][main] !!!! Make anonymous this with all LLM providers
14
- * TODO: [🧠][🧱][main] !!!! Maybe change all `new GoogleExecutionTools` -> `createGoogleExecutionTools` in manual
15
- * TODO: [🧠] Maybe auto-detect usage in browser and determine default value of `isProxied`
16
- * TODO: [🦺] Is there some way how to put `packageName` and `className` on top and function definition on bottom?
17
13
  * TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
18
14
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/cli",
3
- "version": "0.77.0-6",
3
+ "version": "0.77.0",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "--note-0": " <- [🐊]",
6
6
  "private": false,
package/umd/index.umd.js CHANGED
@@ -49,7 +49,7 @@
49
49
  *
50
50
  * @see https://github.com/webgptorg/promptbook
51
51
  */
52
- var PROMPTBOOK_ENGINE_VERSION = '0.77.0-5';
52
+ var PROMPTBOOK_ENGINE_VERSION = '0.77.0-6';
53
53
  /**
54
54
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
55
55
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1990,7 +1990,14 @@
1990
1990
  */
1991
1991
  function $registeredLlmToolsMessage() {
1992
1992
  var e_1, _a, e_2, _b;
1993
- var env = process.env;
1993
+ var env;
1994
+ if ($isRunningInNode()) {
1995
+ env = process.env;
1996
+ // <- TODO: [⚛] Some DRY way how to get to `process.env` and pass it into functions - ACRY search for `env`
1997
+ }
1998
+ else {
1999
+ env = {};
2000
+ }
1994
2001
  /**
1995
2002
  * Mixes registered LLM tools from $llmToolsMetadataRegister and $llmToolsRegister
1996
2003
  */
@@ -13594,10 +13601,7 @@
13594
13601
  packageName: '@promptbook/google',
13595
13602
  className: 'GoogleExecutionTools',
13596
13603
  options: {
13597
- apiKey: 'sk-ant-api03-',
13598
- isProxied: true,
13599
- remoteUrl: DEFAULT_REMOTE_URL,
13600
- path: DEFAULT_REMOTE_URL_PATH,
13604
+ apiKey: 'AI',
13601
13605
  },
13602
13606
  };
13603
13607
  },
@@ -13803,7 +13807,7 @@
13803
13807
  var createGoogleGenerativeAI = require('@ai-sdk/google').createGoogleGenerativeAI;
13804
13808
  var googleGeminiVercelProvider = createGoogleGenerativeAI(__assign({}, options));
13805
13809
  return createExecutionToolsFromVercelProvider(__assign({ title: 'Google', description: 'Implementation of Google models', vercelProvider: googleGeminiVercelProvider, availableModels: [
13806
- // TODO: !!!!!! Maybe list models in same way as in other providers
13810
+ // TODO: [🕘] Maybe list models in same way as in other providers - in separate file with metadata
13807
13811
  'gemini-1.5-flash',
13808
13812
  'gemini-1.5-flash-latest',
13809
13813
  'gemini-1.5-flash-001',
@@ -13825,10 +13829,6 @@
13825
13829
  className: 'GoogleExecutionTools',
13826
13830
  });
13827
13831
  /**
13828
- * TODO: [🧠][main] !!!! Make anonymous this with all LLM providers
13829
- * TODO: [🧠][🧱][main] !!!! Maybe change all `new GoogleExecutionTools` -> `createGoogleExecutionTools` in manual
13830
- * TODO: [🧠] Maybe auto-detect usage in browser and determine default value of `isProxied`
13831
- * TODO: [🦺] Is there some way how to put `packageName` and `className` on top and function definition on bottom?
13832
13832
  * TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
13833
13833
  */
13834
13834