30 lines
704 B
PowerShell
30 lines
704 B
PowerShell
param(
|
|
[switch]$SkipPipInstall,
|
|
[switch]$InstallGitHooks
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$repoRoot = (Resolve-Path (Join-Path $PSScriptRoot "..")).Path
|
|
Set-Location $repoRoot
|
|
|
|
if (-not $SkipPipInstall) {
|
|
py -m pip install --user graphifyy
|
|
}
|
|
|
|
py -m graphify install --platform codex
|
|
py -m graphify codex install
|
|
py scripts/patch_graphify_hotfix.py
|
|
|
|
if ($InstallGitHooks) {
|
|
py -m graphify hook install
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host "Graphify configured for Codex in $repoRoot"
|
|
Write-Host "Use these commands inside Codex:"
|
|
Write-Host " `$graphify ."
|
|
Write-Host " `$graphify . --update"
|
|
Write-Host ""
|
|
Write-Host "Applied local graphify hotfix (fast collect_files + UTF-8 report write)."
|