Skip to content

Commit 2c5e451

Browse files
yasinBursaliclaude
andcommitted
refactor(windows): trim dead fields from New-DreamEnv return hash
$envResult returned a 4-field hashtable (EnvPath, SearxngSecret, OpenclawToken, DashboardKey) but phase 06 only reads SearxngSecret and OpenclawToken. EnvPath and DashboardKey have zero runtime readers; the dry-run stub and three header comments advertised fields that were never consumed. Drops EnvPath and DashboardKey from the return and from the dry-run stub. DASHBOARD_API_KEY continues to be generated and written to .env by the function body - only the return-hash surface was trimmed. Pure code hygiene; no runtime behavior change on Windows. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d5154c3 commit 2c5e451

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

dream-server/installers/windows/install-windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Write-DreamBanner
165165
# Phase 03 → $enableVoice, $enableWorkflows, $enableRag, $enableOpenClaw, $openClawConfig
166166
# Phase 04 → $requirementsMet
167167
# Phase 05 → $dockerComposeCmd
168-
# Phase 06 → $envResult (EnvPath, SearxngSecret, OpenclawToken, DashboardKey)
168+
# Phase 06 → $envResult (SearxngSecret, OpenclawToken)
169169
# Phase 07 → (no output -- tools installed to $env:USERPROFILE)
170170

171171
. (Join-Path $PhasesDir "01-preflight.ps1")

dream-server/installers/windows/lib/env-generator.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,8 @@ LANGFUSE_INIT_USER_PASSWORD=$langfuseInitUserPassword
354354
}
355355

356356
return @{
357-
EnvPath = $envPath
358357
SearxngSecret = $searxngSecret
359358
OpenclawToken = $openclawToken
360-
DashboardKey = $dashboardApiKey
361359
}
362360
}
363361

dream-server/installers/windows/phases/06-directories.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# $openClawConfig -- from phase 03
1717
#
1818
# Writes:
19-
# $envResult -- hashtable: EnvPath, SearxngSecret, OpenclawToken, DashboardKey
19+
# $envResult -- hashtable: SearxngSecret, OpenclawToken
2020
#
2121
# Modder notes:
2222
# Add new directories to $_dirs array below.
@@ -38,10 +38,8 @@ if ($dryRun) {
3838
}
3939
# Signal to later phases: no envResult in dry-run mode
4040
$envResult = @{
41-
EnvPath = Join-Path $installDir ".env"
4241
SearxngSecret = "(dry-run-placeholder)"
4342
OpenclawToken = "(dry-run-placeholder)"
44-
DashboardKey = "(dry-run-placeholder)"
4543
}
4644
return
4745
}

dream-server/installers/windows/phases/07-devtools.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# $dryRun, $cloudMode -- from orchestrator context
1111
# $installDir -- from orchestrator context
1212
# $tierConfig -- from phase 02 (LlmModel, MaxContext, GgufFile)
13-
# $envResult -- from phase 06 (OpenclawToken, DashboardKey)
13+
# $envResult -- from phase 06 (OpenclawToken)
1414
# $script:OPENCODE_* -- from lib/constants.ps1
1515
#
1616
# Writes:

0 commit comments

Comments
 (0)