@elizaos/server 1.5.8-alpha.13 → 1.5.8-alpha.15

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.
@@ -1 +1 @@
1
- {"version":3,"file":"panels.d.ts","sourceRoot":"","sources":["../../../src/api/agents/panels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CAyCxF"}
1
+ {"version":3,"file":"panels.d.ts","sourceRoot":"","sources":["../../../src/api/agents/panels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CAwCxF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAkB5C;;;;GAIG;AAIH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,cAAc,CAkBhB;AAyCD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,cAAc,CAgOjG;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAuEhB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAkB5C;;;;GAIG;AAIH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,cAAc,CAkBhB;AAyCD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,cAAc,CA6NjG;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAuEhB"}
package/dist/index.js CHANGED
@@ -1731,9 +1731,9 @@ function createAgentPanelsRouter(agents) {
1731
1731
  return sendError(res, 404, "NOT_FOUND", "Agent not found");
1732
1732
  }
1733
1733
  try {
1734
- const publicPanels = runtime.plugins.flatMap((plugin) => plugin.routes || []).filter((route) => route.public === true && route.type === "GET" && route.name).map((route) => ({
1734
+ const publicPanels = runtime.routes.filter((route) => route.public === true && route.type === "GET" && route.name).map((route) => ({
1735
1735
  name: route.name,
1736
- path: `/api${route.path.startsWith("/") ? route.path : `/${route.path}`}?agentId=${agentId}`
1736
+ path: `/api/agents/${agentId}/plugins${route.path.startsWith("/") ? route.path : `/${route.path}`}?agentId=${agentId}`
1737
1737
  }));
1738
1738
  sendSuccess(res, publicPanels);
1739
1739
  } catch (error) {
@@ -5826,7 +5826,7 @@ import express29 from "express";
5826
5826
  // package.json
5827
5827
  var package_default = {
5828
5828
  name: "@elizaos/server",
5829
- version: "1.5.8-alpha.13",
5829
+ version: "1.5.8-alpha.15",
5830
5830
  description: "ElizaOS Server - Core server infrastructure for ElizaOS agents",
5831
5831
  publishConfig: {
5832
5832
  access: "public",
@@ -6356,6 +6356,9 @@ function createPluginRouteHandler(agents) {
6356
6356
  for (const route of runtime.routes) {
6357
6357
  if (handled)
6358
6358
  break;
6359
+ const methodMatches = req.method.toLowerCase() === route.type.toLowerCase();
6360
+ if (!methodMatches)
6361
+ continue;
6359
6362
  const routePath = route.path;
6360
6363
  if (routePath.endsWith("/*")) {
6361
6364
  const baseRoute = routePath.slice(0, -1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/server",
3
- "version": "1.5.8-alpha.13",
3
+ "version": "1.5.8-alpha.15",
4
4
  "description": "ElizaOS Server - Core server infrastructure for ElizaOS agents",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -51,10 +51,10 @@
51
51
  "which": "^4.0.0",
52
52
  "ws": "^8.18.0"
53
53
  },
54
- "gitHead": "af94cbb41adda91dde3d38002a79d3f608cf677b",
54
+ "gitHead": "31d829ca7b420310a92d694c0f9cf1b888c8cd33",
55
55
  "dependencies": {
56
- "@elizaos/core": "1.5.8-alpha.13",
57
- "@elizaos/plugin-sql": "1.5.8-alpha.13",
56
+ "@elizaos/core": "1.5.8-alpha.15",
57
+ "@elizaos/plugin-sql": "1.5.8-alpha.15",
58
58
  "@types/express": "^5.0.2",
59
59
  "@types/helmet": "^4.0.0",
60
60
  "@types/multer": "^1.4.13",