@elizaos/server 1.1.1 → 1.1.2

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/index.js CHANGED
@@ -3810,7 +3810,7 @@ import express28 from "express";
3810
3810
  // package.json
3811
3811
  var package_default = {
3812
3812
  name: "@elizaos/server",
3813
- version: "1.1.1",
3813
+ version: "1.1.2",
3814
3814
  description: "ElizaOS Server - Core server infrastructure for ElizaOS agents",
3815
3815
  publishConfig: {
3816
3816
  access: "public",
@@ -3862,10 +3862,10 @@ var package_default = {
3862
3862
  which: "^4.0.0",
3863
3863
  ws: "^8.18.0"
3864
3864
  },
3865
- gitHead: "d5bd5c43bfebeb7ac02f9e029f924cb6cd5c2ec7",
3865
+ gitHead: "fc0714c773d1bb917ffafab7ad8db6eab116d642",
3866
3866
  dependencies: {
3867
- "@elizaos/core": "workspace:*",
3868
- "@elizaos/plugin-sql": "workspace:*",
3867
+ "@elizaos/core": "1.1.2",
3868
+ "@elizaos/plugin-sql": "1.1.2",
3869
3869
  "@types/express": "^5.0.2",
3870
3870
  "@types/helmet": "^4.0.0",
3871
3871
  "@types/multer": "^1.4.13",
@@ -5904,6 +5904,8 @@ var AgentServer = class {
5904
5904
  const staticOptions = {
5905
5905
  etag: true,
5906
5906
  lastModified: true,
5907
+ fallthrough: true,
5908
+ // Allow non-existent files to pass through to the catch-all route
5907
5909
  setHeaders: (res, filePath) => {
5908
5910
  const ext = extname(filePath).toLowerCase();
5909
5911
  if (ext === ".css") {
@@ -5968,7 +5970,12 @@ var AgentServer = class {
5968
5970
  return res.status(404).send(`// JavaScript module not found: ${req.path}`);
5969
5971
  }
5970
5972
  const cliDistPath = path9.resolve(__dirname2, "../../cli/dist");
5971
- res.sendFile(path9.join(cliDistPath, "index.html"));
5973
+ res.sendFile(path9.join(cliDistPath, "index.html"), (err) => {
5974
+ if (err) {
5975
+ logger29.warn(`[STATIC] Failed to serve index.html: ${err.message}`);
5976
+ res.status(404).send("Client application not found");
5977
+ }
5978
+ });
5972
5979
  });
5973
5980
  } else {
5974
5981
  this.app.use((_req, res) => {