From 24b9c271e1ef4b40a8303bb3cd6c3579a8312970 Mon Sep 17 00:00:00 2001 From: bowei Date: Thu, 3 Sep 2026 05:12:51 +0800 Subject: [PATCH] sync: SHANGHAI-U9 2026-09-03 --- tools-sync/scripts/gitea_doctor.ps1 | 2 +- tools-sync/scripts/sync_repos.ps1 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools-sync/scripts/gitea_doctor.ps1 b/tools-sync/scripts/gitea_doctor.ps1 index ba492f0..138ff5b 100644 --- a/tools-sync/scripts/gitea_doctor.ps1 +++ b/tools-sync/scripts/gitea_doctor.ps1 @@ -128,7 +128,7 @@ if (-not (Test-Path $triage)) { Fail "gitea_triage.sh missing next to this scrip # Normalise to LF and no BOM before shipping it: a CRLF or BOM on the shebang line makes # sh fail with a "No such file or directory" that names the interpreter, not the cause. $triageStaged = Join-Path ([IO.Path]::GetTempPath()) "tools-sync-triage-$PID.sh" -$triageText = ((Get-Content $triage -Raw) -replace "`r`n", "`n") -replace "^", "" +$triageText = ((Get-Content $triage -Raw) -replace "`r`n", "`n") -replace "^$([char]0xFEFF)", "" [IO.File]::WriteAllText($triageStaged, $triageText, (New-Object System.Text.UTF8Encoding($false))) $triageArgs = @("--container", $container, "--docker", $dockerBin, "--fix") diff --git a/tools-sync/scripts/sync_repos.ps1 b/tools-sync/scripts/sync_repos.ps1 index 547a8bc..41eb472 100644 --- a/tools-sync/scripts/sync_repos.ps1 +++ b/tools-sync/scripts/sync_repos.ps1 @@ -1,6 +1,6 @@ # tools-sync: mechanical sync of skills between Claude Code and Codex. -# Phase 1 — git sync of the primary checkout (~\.claude\skills): commit -> pull --rebase -> push. -# Phase 2 — junction reconciliation: every top-level skill dir in the primary gets a +# Phase 1 -- git sync of the primary checkout (~\.claude\skills): commit -> pull --rebase -> push. +# Phase 2 -- junction reconciliation: every top-level skill dir in the primary gets a # directory junction of the same name in ~\.codex\skills, so both tools share # one physical copy and can never drift. Codex auto-registers any dir there # containing SKILL.md (new sessions only). @@ -200,7 +200,7 @@ foreach ($item in Get-ChildItem $CodexSkills -Directory | Where-Object { $_.Link $target = ($item.Target | Select-Object -First 1) if ($target -and $target.StartsWith($ClaudeSkills) -and -not (Test-Path $target)) { if ($DryRun) { Write-Host "(dry-run) would remove stale junction: $($item.Name)"; continue } - # A junction is just a link — removing it never touches target content. + # A junction is just a link -- removing it never touches target content. $item.Delete() Write-Host "removed stale junction: $($item.Name)" }