sync: SHANGHAI-U9 2026-09-03

This commit is contained in:
bowei
2026-09-03 05:12:51 +08:00
parent 48a4c5601f
commit 24b9c271e1
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 # 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. # 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" $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))) [IO.File]::WriteAllText($triageStaged, $triageText, (New-Object System.Text.UTF8Encoding($false)))
$triageArgs = @("--container", $container, "--docker", $dockerBin, "--fix") $triageArgs = @("--container", $container, "--docker", $dockerBin, "--fix")
+3 -3
View File
@@ -1,6 +1,6 @@
# tools-sync: mechanical sync of skills between Claude Code and Codex. # 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 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 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 # 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 # one physical copy and can never drift. Codex auto-registers any dir there
# containing SKILL.md (new sessions only). # 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) $target = ($item.Target | Select-Object -First 1)
if ($target -and $target.StartsWith($ClaudeSkills) -and -not (Test-Path $target)) { if ($target -and $target.StartsWith($ClaudeSkills) -and -not (Test-Path $target)) {
if ($DryRun) { Write-Host "(dry-run) would remove stale junction: $($item.Name)"; continue } 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() $item.Delete()
Write-Host "removed stale junction: $($item.Name)" Write-Host "removed stale junction: $($item.Name)"
} }