mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-17 15:34:54 +00:00
`codex-cli/` published `@hanzo/dev`, so the directory carrying our npm package was named after someone else's product. It is `npm/`. `patches/codex.json` is `patches/upstream.json` — it anchors edits against upstream, and the file should say so rather than name one of them. Deleted outright: `justfile`, whose first line was `set working-directory := "codex-rs"` for a directory this repository has never had; `announcement_tip.toml`, an example file for a TUI we do not ship; and `.codex/` and `.code/`, which held upstream's own process skills — babysit-pr, codex-bug, pushing-ci-changes — that were never ours. Three branding leaks a real run turned up, none of which the help text showed: `dev exec` announced "OpenAI Codex v0.7.0-dev.1" as its first line, the status card was missed when the session header was anchored, and both bubblewrap warnings said "Codex's Linux sandbox". README: say what ships. It claimed the agent drives a browser, which is the port that has not landed, and showed a screenshot of it doing so. Both are gone until the bridge is back. The model count is "hundreds" — `/v1/models` answers 458 today, an earlier line here said "over 500", and hanzo.ai derives its own count precisely because typed ones drift. Document the npm install beside the curl one; both give the same build.
32 lines
1.1 KiB
PowerShell
32 lines
1.1 KiB
PowerShell
<#
|
|
Helper to recover from EBUSY/EPERM during global npm upgrades on Windows.
|
|
Closes running processes and removes stale package folders.
|
|
|
|
Usage (PowerShell):
|
|
Set-ExecutionPolicy -Scope Process Bypass -Force
|
|
./codex-cli/scripts/windows-cleanup.ps1
|
|
#>
|
|
|
|
$ErrorActionPreference = 'SilentlyContinue'
|
|
|
|
Write-Host "Stopping running Hanzo Dev processes..."
|
|
taskkill /IM dev-x86_64-pc-windows-msvc.exe /F 2>$null | Out-Null
|
|
taskkill /IM dev.exe /F 2>$null | Out-Null
|
|
|
|
Write-Host "Removing old global package (if present)..."
|
|
$npmRoot = (& npm root -g).Trim()
|
|
$pkgPath = Join-Path $npmRoot "@hanzo\dev"
|
|
if (Test-Path $pkgPath) {
|
|
try { Remove-Item -LiteralPath $pkgPath -Recurse -Force -ErrorAction Stop } catch {}
|
|
}
|
|
|
|
Write-Host "Removing temp staging directories (if present)..."
|
|
Get-ChildItem -LiteralPath (Join-Path $npmRoot "@hanzo") -Force -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -like '.dev-*' } |
|
|
ForEach-Object {
|
|
try { Remove-Item -LiteralPath $_.FullName -Recurse -Force -ErrorAction Stop } catch {}
|
|
}
|
|
|
|
Write-Host "Cleanup complete. You can now run: npm install -g @hanzo/dev@latest"
|
|
|