Commit a035190
fix: dedupe rename-collapsed ELIZA_ env-var fallbacks across runtime + tests
The 2f1b81f milady→eliza rename collapsed every backward-compat
fallback chain like `MILADY_X || ELIZA_X` into `ELIZA_X || ELIZA_X`,
plus a few self-referential const declarations and duplicate window-
global type entries. None of the dups were caught by typecheck on the
original push because turbo had cached the affected packages.
Source/runtime fixes (51 files):
- resolveStateDir(), resolveConfigWritePath(), defaultRepoRoot(),
stateDirBase(): collapse duplicate `process.env.X || process.env.X`
- paths.ts STATE_DIR_OVERRIDE_KEYS / CONFIG_PATH_OVERRIDE_KEYS:
`["X", "X"]` → `["X"]`
- workspace.ts EXPLICIT_*_DIR_KEYS: same array dedupe
- eliza-globals.ts: removed duplicate `__ELIZA_API_BASE__` /
`__ELIZA_API_TOKEN__` window type entries (TS2300 blocker)
- character-catalog.ts: removed self-referential
`export const DEFAULT_ELIZA_CHARACTER_ASSET = DEFAULT_ELIZA_CHARACTER_ASSET`
- server.ts: unified two identical `ELIZA_CONFIG_PATH` const reads
- dozens of `X ?? X`, `X || X`, `(X ?? X) !== "0"`, `X === "1" || X === "1"`,
`hasValue(X) || hasValue(X)`, and duplicate `process.env.X = ...` writes
across agent/api, agent/runtime, agent/services, agent/providers,
app-core/platforms/electrobun, app-core/api, app-core/services,
app-core/runtime, app-core/cli, app-core/benchmark, app-core/scripts,
app-lifeops/lifeops, app-steward, scenario-runner, vault, confidant,
typescript, vite/vitest configs
Test fixes (3 files):
- packages/app-core/test/app/memory-relationships.real.e2e.test.ts
- packages/app-core/test/app/qa-checklist.real.e2e.test.ts
- packages/skills/test/provenance.test.ts
Each had a duplicate `let prevElizaState: string | undefined;` plus a
set+delete sequence that clobbered the just-set env var, leaving tests
effectively running without any state-dir override (root cause of the
curated-skills 404s on CI).
What this does NOT fix (separate concerns):
- drizzle-orm dual-resolution typecheck error in
packages/app-core/src/services/auth-store.ts (pre-existing, two
bun copies @0.45.2+5ca896fe6dab5078 vs +618017aa13271bc5 from
different peer-dep contexts; not a rebrand regression)
- electrobun lint warnings in src/preload.js + a few test files
(pre-existing, exposed only because the rebrand busted turbo cache)
- submodules cloud, plugin-local-ai (uncommitted local content
unrelated to this work)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f9ff66e commit a035190
51 files changed
Lines changed: 56 additions & 195 deletions
File tree
- apps
- app-lifeops/src
- activity-profile
- lifeops
- app-steward/src
- actions
- api
- packages
- agent/src
- api
- config
- providers
- runtime
- services
- app-core
- platforms/electrobun
- src
- native
- scripts
- src
- api
- benchmark
- cli/program
- runtime
- services
- local-inference
- utils
- test/app
- app
- confidant/src
- scenario-runner/src
- skills/test
- typescript/src
- features/plugin-manager/actions
- utils
- vault/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 67 | + | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
| 293 | + | |
296 | 294 | | |
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | 298 | | |
301 | | - | |
302 | | - | |
303 | | - | |
| 299 | + | |
304 | 300 | | |
305 | 301 | | |
306 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 95 | + | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 44 | + | |
49 | 45 | | |
50 | 46 | | |
51 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | 412 | | |
414 | 413 | | |
415 | 414 | | |
| |||
0 commit comments