- 백엔드 vessels 라우터/서비스/스케줄러 추가 (1분 주기 한국 해역 폴링) - 공통 useVesselSignals 훅 + vesselApi/vesselSignalClient 서비스 추가 - MapView에 VesselLayer/VesselInteraction/MapBoundsTracker 통합 (호버·팝업·상세 모달) - OilSpill/HNS/Rescue/Incidents 뷰에 선박 신호 연동 - vesselMockData 정리, aerial IMAGE_API_URL 기본값 변경
18 lines
685 B
PowerShell
18 lines
685 B
PowerShell
# Records run_in_terminal and appmod-* tool calls as JSONL for the extension to process.
|
|
|
|
$raw = [Console]::In.ReadToEnd()
|
|
|
|
if ($raw -notmatch '"tool_name"\s*:\s*"([^"]+)"') { exit 0 }
|
|
$toolName = $Matches[1]
|
|
|
|
if ($toolName -ne 'run_in_terminal' -and $toolName -notlike 'appmod-*') { exit 0 }
|
|
|
|
if ($raw -notmatch '"session_id"\s*:\s*"([^"]+)"') { exit 0 }
|
|
$sessionId = $Matches[1]
|
|
|
|
$hooksDir = '.github\java-upgrade\hooks'
|
|
if (-not (Test-Path $hooksDir)) { New-Item -ItemType Directory -Path $hooksDir -Force | Out-Null }
|
|
|
|
$line = ($raw -replace '[\r\n]+', ' ').Trim() + "`n"
|
|
[System.IO.File]::AppendAllText("$hooksDir\$sessionId.json", $line, [System.Text.UTF8Encoding]::new($false))
|