sync: SHANGHAI-U9 2026-09-03
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
@@ -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)"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user