@elizaos/server 1.6.1-alpha.1 → 1.6.1-alpha.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.
Files changed (2) hide show
  1. package/dist/index.js +20 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -27527,7 +27527,17 @@ function resolveEnvFile(startDir = process.cwd()) {
27527
27527
  }
27528
27528
  function createEnvironmentRouter() {
27529
27529
  const router = express29.Router();
27530
+ const isProd = false;
27530
27531
  router.get("/local", async (_req, res) => {
27532
+ if (isProd) {
27533
+ return res.status(403).json({
27534
+ success: false,
27535
+ error: {
27536
+ code: "FORBIDDEN",
27537
+ message: "Local environment inspection is disabled in production"
27538
+ }
27539
+ });
27540
+ }
27531
27541
  try {
27532
27542
  const localEnvPath = getLocalEnvPath();
27533
27543
  if (!localEnvPath) {
@@ -27557,6 +27567,15 @@ function createEnvironmentRouter() {
27557
27567
  }
27558
27568
  });
27559
27569
  router.post("/local", async (req, res) => {
27570
+ if (isProd) {
27571
+ return res.status(403).json({
27572
+ success: false,
27573
+ error: {
27574
+ code: "FORBIDDEN",
27575
+ message: "Local environment updates are disabled in production"
27576
+ }
27577
+ });
27578
+ }
27560
27579
  try {
27561
27580
  const { content } = req.body;
27562
27581
  if (!content || typeof content !== "object") {
@@ -27597,7 +27616,7 @@ import express30 from "express";
27597
27616
  // package.json
27598
27617
  var package_default = {
27599
27618
  name: "@elizaos/server",
27600
- version: "1.6.1-alpha.1",
27619
+ version: "1.6.1-alpha.2",
27601
27620
  description: "ElizaOS Server - Core server infrastructure for ElizaOS agents",
27602
27621
  publishConfig: {
27603
27622
  access: "public",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/server",
3
- "version": "1.6.1-alpha.1",
3
+ "version": "1.6.1-alpha.2",
4
4
  "description": "ElizaOS Server - Core server infrastructure for ElizaOS agents",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -44,7 +44,7 @@
44
44
  "dev": "bun run build.ts --watch"
45
45
  },
46
46
  "devDependencies": {
47
- "@elizaos/client": "1.6.1-alpha.1",
47
+ "@elizaos/client": "1.6.1-alpha.2",
48
48
  "@types/node": "^24.0.1",
49
49
  "prettier": "3.5.3",
50
50
  "tsx": "4.19.4",
@@ -52,10 +52,10 @@
52
52
  "which": "^4.0.0",
53
53
  "ws": "^8.18.0"
54
54
  },
55
- "gitHead": "d7b2569dc9bb3b51e140b20d90ac4c22a4c9400e",
55
+ "gitHead": "bc4c3def4ba6a556c86c62f24a2bbda3b8b734e4",
56
56
  "dependencies": {
57
- "@elizaos/core": "1.6.1-alpha.1",
58
- "@elizaos/plugin-sql": "1.6.1-alpha.1",
57
+ "@elizaos/core": "1.6.1-alpha.2",
58
+ "@elizaos/plugin-sql": "1.6.1-alpha.2",
59
59
  "@sentry/node": "^10.11.0",
60
60
  "@types/express": "^5.0.2",
61
61
  "@types/helmet": "^4.0.0",