ellm-proxy 0.0.8 → 0.0.9

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/cli.js +15 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -20856,7 +20856,20 @@ import { copyFileSync, existsSync, mkdirSync, readFileSync } from "node:fs";
20856
20856
  import { homedir } from "node:os";
20857
20857
  import { dirname, join, resolve } from "node:path";
20858
20858
  import { fileURLToPath } from "node:url";
20859
- var pkgRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..", "..");
20859
+ var HERE_DIR = dirname(fileURLToPath(import.meta.url));
20860
+ var pkgRoot = (() => {
20861
+ let dir = HERE_DIR;
20862
+ for (let i2 = 0; i2 < 5; i2++) {
20863
+ try {
20864
+ if (JSON.parse(readFileSync(join(dir, "package.json"), "utf-8")).name === "ellm-proxy") {
20865
+ return dir;
20866
+ }
20867
+ } catch {
20868
+ }
20869
+ dir = dirname(dir);
20870
+ }
20871
+ return resolve(HERE_DIR, "..");
20872
+ })();
20860
20873
  var defaultAppDir = join(homedir(), ".ellm-proxy");
20861
20874
  function pkgVersion() {
20862
20875
  try {
@@ -20881,7 +20894,7 @@ function ensureConfig(override, appDir = defaultAppDir) {
20881
20894
  if (existsSync(config)) return config;
20882
20895
  const candidates = [
20883
20896
  join(pkgRoot, "ellm.config.example.json"),
20884
- resolve(pkgRoot, "backend", "ellm.config.example.json")
20897
+ resolve(pkgRoot, "server", "ellm.config.example.json")
20885
20898
  ];
20886
20899
  const example = candidates.find((p) => existsSync(p));
20887
20900
  if (!example) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ellm-proxy",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Self-hosted LLM gateway with admin web UI (single process, built-in process management)",
5
5
  "license": "MIT",
6
6
  "type": "module",