@elizaos/core 2.0.0-alpha.155 → 2.0.0-alpha.156

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.
@@ -196907,6 +196907,10 @@ function getMemoryText(memory2, defaultValue = "") {
196907
196907
  init_logger();
196908
196908
  init_environment();
196909
196909
  var attemptedInstalls = new Set;
196910
+ function getBunRuntime() {
196911
+ const bunRuntime = globalThis.Bun;
196912
+ return bunRuntime && typeof bunRuntime.spawn === "function" ? bunRuntime : null;
196913
+ }
196910
196914
  function isAutoInstallAllowed() {
196911
196915
  if (process.env.ELIZA_NO_AUTO_INSTALL === "true")
196912
196916
  return false;
@@ -196931,12 +196935,13 @@ async function tryInstallPlugin(pluginName) {
196931
196935
  return false;
196932
196936
  }
196933
196937
  attemptedInstalls.add(pluginName);
196934
- if (typeof Bun === "undefined" || typeof Bun.spawn !== "function") {
196938
+ const bunRuntime = getBunRuntime();
196939
+ if (!bunRuntime) {
196935
196940
  logger.warn({ src: "core:plugin", pluginName }, "Bun runtime not available, cannot auto-install");
196936
196941
  return false;
196937
196942
  }
196938
196943
  try {
196939
- const check2 = Bun.spawn(["bun", "--version"], {
196944
+ const check2 = bunRuntime.spawn(["bun", "--version"], {
196940
196945
  stdout: "pipe",
196941
196946
  stderr: "pipe"
196942
196947
  });
@@ -196950,7 +196955,7 @@ async function tryInstallPlugin(pluginName) {
196950
196955
  return false;
196951
196956
  }
196952
196957
  logger.info({ src: "core:plugin", pluginName }, "Auto-installing missing plugin");
196953
- const install = Bun.spawn(["bun", "add", pluginName], {
196958
+ const install = bunRuntime.spawn(["bun", "add", pluginName], {
196954
196959
  cwd: process.cwd(),
196955
196960
  env: process.env,
196956
196961
  stdout: "inherit",
@@ -240752,5 +240757,5 @@ export {
240752
240757
  ADD_CONTACT_TEMPLATE
240753
240758
  };
240754
240759
 
240755
- //# debugId=5335F10DF03650C064756E2164756E21
240760
+ //# debugId=6A832A15CCA460CC64756E2164756E21
240756
240761
  //# sourceMappingURL=index.edge.js.map