@promptbook/node 0.71.0-14 → 0.71.0-16

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
@@ -17,7 +17,7 @@ import { spawn } from 'child_process';
17
17
  /**
18
18
  * The version of the Promptbook library
19
19
  */
20
- var PROMPTBOOK_VERSION = '0.71.0-13';
20
+ var PROMPTBOOK_VERSION = '0.71.0-15';
21
21
  // TODO: [main] !!!! List here all the versions and annotate + put into script
22
22
 
23
23
  /*! *****************************************************************************
@@ -8426,7 +8426,6 @@ function $provideLlmToolsFromEnv(options) {
8426
8426
  * TODO: [🥃] Allow `ptbk make` without llm tools
8427
8427
  * TODO: This should be maybe not under `_common` but under `utils`
8428
8428
  * TODO: [®] DRY Register logic
8429
- * TODO: [🍂] Maybe make llm = $provideLlmToolsFromEnv() without problem with bundle contaminated by only `@promptbook/node` and `@promptbook/cli` stuff
8430
8429
  */
8431
8430
 
8432
8431
  /**
@@ -8964,7 +8963,7 @@ var JavascriptExecutionTools = JavascriptEvalExecutionTools;
8964
8963
  */
8965
8964
  function $provideExecutionToolsForNode(options) {
8966
8965
  return __awaiter(this, void 0, void 0, function () {
8967
- var llm, tools;
8966
+ var fs, llm, tools;
8968
8967
  var _a;
8969
8968
  return __generator(this, function (_b) {
8970
8969
  switch (_b.label) {
@@ -8972,12 +8971,13 @@ function $provideExecutionToolsForNode(options) {
8972
8971
  if (!$isRunningInNode()) {
8973
8972
  throw new EnvironmentMismatchError('Function `$getExecutionToolsForNode` works only in Node.js environment');
8974
8973
  }
8974
+ fs = $provideFilesystemForNode();
8975
8975
  llm = $provideLlmToolsFromEnv(options);
8976
8976
  _a = {
8977
8977
  llm: llm,
8978
- fs: $provideFilesystemForNode()
8978
+ fs: fs
8979
8979
  };
8980
- return [4 /*yield*/, $provideScrapersForNode({ llm: llm }, options)];
8980
+ return [4 /*yield*/, $provideScrapersForNode({ fs: fs, llm: llm }, options)];
8981
8981
  case 1:
8982
8982
  tools = (_a.scrapers = _b.sent(),
8983
8983
  _a.script = [new JavascriptExecutionTools(options)],