@camstack/agent 1.1.3 → 1.1.5

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/dist/cli.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __cr } from 'node:module'; const require = globalThis.require ?? __cr(import.meta.url);
3
3
  import {
4
4
  startAgent
5
- } from "./chunk-EMAD7O4T.mjs";
5
+ } from "./chunk-HG3YVMRA.mjs";
6
6
 
7
7
  // src/cli.ts
8
8
  import { existsSync } from "fs";
package/dist/index.js CHANGED
@@ -1556,10 +1556,10 @@ async function loadDeployedAddons(broker, addonsDir, dataDir, loadedAddons, stor
1556
1556
  }
1557
1557
  }
1558
1558
  async function loadInProcessDeployedAddons(broker, dirs, dataDir, loadedAddons, storageProvider, loggerFactory, capabilityRegistry) {
1559
- const modelsDir = storageProvider ? await storageProvider.resolve({ location: "models", relativePath: "" }).catch(() => void 0) : void 0;
1559
+ const modelsDir = path6.join(process.env["CAMSTACK_DATA"] ?? dataDir, "models");
1560
1560
  const contextOptions = {
1561
1561
  storageProvider,
1562
- addonConfig: modelsDir ? { modelsDir } : {},
1562
+ addonConfig: { modelsDir },
1563
1563
  createLogger: loggerFactory,
1564
1564
  capabilityRegistry
1565
1565
  };