feat(commands): multi-select ordered command pipeline with step reordering and single-pass composition (AI-05, AI-07)

This commit is contained in:
Yun Chan 2026-10-31 02:54:54 +09:00
parent f49acf0105
commit 10af20a0ad
157 changed files with 29455 additions and 913 deletions

View file

@ -40,7 +40,30 @@ jobs:
run: |
$releaseVersion = node -p "require('./release/product-version.json').version"
$url = "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/$releaseVersion/latest.yml"
try { Invoke-WebRequest -Uri $url -Method Get -UseBasicParsing | Out-Null; $published = 'true' } catch { $published = 'false' }
$filesApiUrl = "https://git.chanpaca.net/api/v1/packages/yunchan/generic/d3ro-voice/$releaseVersion/files"
$published = 'false'
# 로컬 `npm run release` 는 annotated 태그를 먼저 푸시한 직후 설치본과 latest.yml 을 게시한다(GAP-REL-14).
# 이미 올라왔거나 업로드 진행 중이면 완료될 때까지 대기해 CI 가 중복 빌드/충돌하지 않게 한다.
for ($attempt = 0; $attempt -lt 10; $attempt++) {
try {
Invoke-WebRequest -Uri $url -Method Get -UseBasicParsing | Out-Null
$published = 'true'
break
} catch {}
if ($attempt -lt 9) {
$inProgress = $false
try {
$files = Invoke-RestMethod -Uri $filesApiUrl -Method Get
if ($files -and $files.Count -gt 0) { $inProgress = $true }
} catch {}
if ($attempt -lt 3 -or $inProgress) {
Write-Host "로컬 릴리스 게시 확인 대기 중... ($($attempt + 1)/10)"
Start-Sleep -Seconds 10
continue
}
}
break
}
"published=$published" >> $env:GITHUB_OUTPUT
if ($published -eq 'true') { Write-Host "$releaseVersion 는 이미 피드에 있습니다 — 건너뜁니다." }
@ -61,4 +84,12 @@ jobs:
FORGEJO_TOKEN: "${{ secrets.FORGEJO_TOKEN }}"
D3RO_UPDATE_SIGNING_KEY: "${{ secrets.D3RO_UPDATE_SIGNING_KEY }}"
FORGEJO_REPO: "${{ github.server_url }}/${{ github.repository }}"
run: node scripts/ci/publish-forgejo-release.mjs
run: |
$releaseVersion = node -p "require('./release/product-version.json').version"
$url = "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/$releaseVersion/latest.yml"
try {
Invoke-WebRequest -Uri $url -Method Get -UseBasicParsing | Out-Null
Write-Host "$releaseVersion 는 빌드 도중 로컬 릴리스에서 이미 게시됐습니다 — 게시 단계를 건너뜁니다."
exit 0
} catch {}
node scripts/ci/publish-forgejo-release.mjs