@elizaos/server 1.2.5 → 1.2.8

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.
@@ -14,7 +14,7 @@
14
14
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
15
15
  <link rel="icon" type="image/x-icon" href="/favicon.ico" />
16
16
  <title>ElizaOS - Client</title>
17
- <script type="module" crossorigin src="/assets/index-CgZP7vAX.js"></script>
17
+ <script type="module" crossorigin src="/assets/index-CjVdRaS3.js"></script>
18
18
  <link rel="modulepreload" crossorigin href="/assets/vendor-Dp9Dttv5.js">
19
19
  <link rel="stylesheet" crossorigin href="/assets/index-CuhlDCnv.css">
20
20
  </head>
package/dist/index.js CHANGED
@@ -3817,7 +3817,7 @@ import express28 from "express";
3817
3817
  // package.json
3818
3818
  var package_default = {
3819
3819
  name: "@elizaos/server",
3820
- version: "1.2.5",
3820
+ version: "1.2.8",
3821
3821
  description: "ElizaOS Server - Core server infrastructure for ElizaOS agents",
3822
3822
  publishConfig: {
3823
3823
  access: "public",
@@ -3871,8 +3871,8 @@ var package_default = {
3871
3871
  },
3872
3872
  gitHead: "227798477b53ad38b01f147ac1a649a5d1c810a3",
3873
3873
  dependencies: {
3874
- "@elizaos/core": "1.2.5",
3875
- "@elizaos/plugin-sql": "1.2.5",
3874
+ "@elizaos/core": "1.2.8",
3875
+ "@elizaos/plugin-sql": "1.2.8",
3876
3876
  "@types/express": "^5.0.2",
3877
3877
  "@types/helmet": "^4.0.0",
3878
3878
  "@types/multer": "^1.4.13",
@@ -5993,7 +5993,6 @@ var AgentServer = class {
5993
5993
  // Global bun install: check global node_modules locations
5994
5994
  (() => {
5995
5995
  try {
5996
- const { execSync } = __require("child_process");
5997
5996
  const bunGlobalPath = path9.join(
5998
5997
  os2.homedir(),
5999
5998
  ".bun/install/global/node_modules/@elizaos/server/dist/client"
@@ -6002,10 +6001,16 @@ var AgentServer = class {
6002
6001
  return bunGlobalPath;
6003
6002
  }
6004
6003
  try {
6005
- const npmRoot = execSync("npm root -g", { encoding: "utf8" }).trim();
6006
- const globalServerPath = path9.join(npmRoot, "@elizaos/server/dist/client");
6007
- if (existsSync3(path9.join(globalServerPath, "index.html"))) {
6008
- return globalServerPath;
6004
+ const proc = Bun.spawnSync(["npm", "root", "-g"], {
6005
+ stdout: "pipe",
6006
+ stderr: "pipe"
6007
+ });
6008
+ if (proc.exitCode === 0 && proc.stdout) {
6009
+ const npmRoot = new TextDecoder().decode(proc.stdout).trim();
6010
+ const globalServerPath = path9.join(npmRoot, "@elizaos/server/dist/client");
6011
+ if (existsSync3(path9.join(globalServerPath, "index.html"))) {
6012
+ return globalServerPath;
6013
+ }
6009
6014
  }
6010
6015
  } catch {
6011
6016
  }