Command: powershell -NoProfile -ExecutionPolicy Bypass -Command "$ErrorActionPreference='Stop';$root='C:\Users\ash\Documents\Codex\2026-08-26\LaptopBridge-DEV';$driveRoot='G:\My Drive\ChatGPT Bridge Data\dev-bridge';if(-not(Test-Path -LiteralPath $root)){throw 'DEV_ROOT_MISSING'};if(-not(Test-Path -LiteralPath $driveRoot)){throw 'DEV_DRIVE_ROOT_NOT_SYNCED'};$busy=Get-NetTCPConnection -LocalPort 8766 -State Listen -ErrorAction SilentlyContinue;if($busy){throw 'DEV_PORT_8766_ALREADY_IN_USE'};$cfg=[ordered]@{host='127.0.0.1';port=8766;data_dir='./bridge-data';workspace_roots=@('./projects');command_timeout_seconds=900;max_read_bytes=1048576;max_patch_bytes=1048576;max_command_output_bytes=2097152};$cfg|ConvertTo-Json|Set-Content -LiteralPath (Join-Path $root 'config.json') -Encoding UTF8;$bp=Join-Path $root 'bridge.py';$s=[IO.File]::ReadAllText($bp);if($s -notmatch 'REVISION = \"20260831-19-HIDDEN1\"'){throw 'DEV_REVISION_PRECONDITION_FAILED'};$s=$s.Replace('REVISION = \"20260831-19-HIDDEN1\"','REVISION = \"20260831-DEV1-HIDDEN1\"').Replace('DRIVE_LANE_REVISION = \"DL3\"','DRIVE_LANE_REVISION = \"DL3-DEV1\"');[IO.File]::WriteAllText($bp,$s,(New-Object Text.UTF8Encoding($false)));python -m py_compile $bp;if($LASTEXITCODE -ne 0){throw 'DEV_PYCOMPILE_FAILED'};$start='$ErrorActionPreference = \"Stop\"`r`n$root = Split-Path -Parent $MyInvocation.MyCommand.Path`r`n$env:CHATGPT_BRIDGE_DRIVE_ROOT = \"G:\My Drive\ChatGPT Bridge Data\dev-bridge\"`r`n$existing = Get-NetTCPConnection -LocalPort 8766 -State Listen -ErrorAction SilentlyContinue`r`nif ($existing) { Write-Output \"DEV_BRIDGE_ALREADY_RUNNING\"; exit 0 }`r`n$python = (Get-Command python.exe -ErrorAction Stop).Source`r`n$data = Join-Path $root \"bridge-data\"`r`nNew-Item -ItemType Directory -Force -Path $data | Out-Null`r`nStart-Process -FilePath $python -ArgumentList \"bridge.py\" -WorkingDirectory $root -WindowStyle Hidden -RedirectStandardOutput (Join-Path $data \"dev-bridge.stdout.log\") -RedirectStandardError (Join-Path $data \"dev-bridge.stderr.log\")`r`nWrite-Output \"DEV_BRIDGE_START_REQUESTED\"';Set-Content -LiteralPath (Join-Path $root 'start-dev-bridge.ps1') -Value $start -Encoding UTF8;& (Join-Path $root 'start-dev-bridge.ps1');Start-Sleep -Seconds 2;$resp=Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1:8766/health' -TimeoutSec 5;[pscustomobject]@{ok=($resp.StatusCode -eq 200);port=8766;health=$resp.Content.Trim();revision='20260831-DEV1-HIDDEN1';drive_lane='DL3-DEV1';drive_root=$driveRoot;production_port_8765=((Get-NetTCPConnection -LocalPort 8765 -State Listen -ErrorAction SilentlyContinue) -ne $null);dev_port_8766=((Get-NetTCPConnection -LocalPort 8766 -State Listen -ErrorAction SilentlyContinue) -ne $null)}|ConvertTo-Json -Compress"
Directory: projects
Status: FAILED
Exit code: 1
Cancel Job Rerun Command Refresh
At C:\Users\ash\Documents\Codex\2026-08-26\LaptopBridge-DEV\start-dev-bridge.ps1:1 char:32
+ $ErrorActionPreference = "Stop"`r`n$root = Split-Path -Parent $MyInvo ...
+ ~~~~~~~~~
Unexpected token '`r`n$root' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
---
+ ~~~~~~~~~
Unexpected token '`r`n$root' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
---
Unexpected token '`r`n$root' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
---At C:\Users\ash\Documents\Codex\2026-08-26\LaptopBridge-DEV\start-dev-bridge.ps1:1 char:32
+ $ErrorActionPreference = "Stop"`r`n$root = Split-Path -Parent $MyInvo ...
+ ~~~~~~~~~
Unexpected token '`r`n$root' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken