@promptbook/cli 0.71.0-14 → 0.71.0-15

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 CHANGED
@@ -26,7 +26,7 @@ import { Converter } from 'showdown';
26
26
  /**
27
27
  * The version of the Promptbook library
28
28
  */
29
- var PROMPTBOOK_VERSION = '0.71.0-13';
29
+ var PROMPTBOOK_VERSION = '0.71.0-14';
30
30
  // TODO: [main] !!!! List here all the versions and annotate + put into script
31
31
 
32
32
  /*! *****************************************************************************
@@ -8581,7 +8581,6 @@ function $provideLlmToolsFromEnv(options) {
8581
8581
  * TODO: [🥃] Allow `ptbk make` without llm tools
8582
8582
  * TODO: This should be maybe not under `_common` but under `utils`
8583
8583
  * TODO: [®] DRY Register logic
8584
- * TODO: [🍂] Maybe make llm = $provideLlmToolsFromEnv() without problem with bundle contaminated by only `@promptbook/node` and `@promptbook/cli` stuff
8585
8584
  */
8586
8585
 
8587
8586
  /**
@@ -9119,7 +9118,7 @@ var JavascriptExecutionTools = JavascriptEvalExecutionTools;
9119
9118
  */
9120
9119
  function $provideExecutionToolsForNode(options) {
9121
9120
  return __awaiter(this, void 0, void 0, function () {
9122
- var llm, tools;
9121
+ var fs, llm, tools;
9123
9122
  var _a;
9124
9123
  return __generator(this, function (_b) {
9125
9124
  switch (_b.label) {
@@ -9127,12 +9126,13 @@ function $provideExecutionToolsForNode(options) {
9127
9126
  if (!$isRunningInNode()) {
9128
9127
  throw new EnvironmentMismatchError('Function `$getExecutionToolsForNode` works only in Node.js environment');
9129
9128
  }
9129
+ fs = $provideFilesystemForNode();
9130
9130
  llm = $provideLlmToolsFromEnv(options);
9131
9131
  _a = {
9132
9132
  llm: llm,
9133
- fs: $provideFilesystemForNode()
9133
+ fs: fs
9134
9134
  };
9135
- return [4 /*yield*/, $provideScrapersForNode({ llm: llm }, options)];
9135
+ return [4 /*yield*/, $provideScrapersForNode({ fs: fs, llm: llm }, options)];
9136
9136
  case 1:
9137
9137
  tools = (_a.scrapers = _b.sent(),
9138
9138
  _a.script = [new JavascriptExecutionTools(options)],