added
This commit is contained in:
1 parent
aca6452f20
commit
6524457c7c
65 files changed
+2381
-192
No files matched your search
@@ -5,7 +5,7 @@ param(
|
||||
$ErrorActionPreference = "Stop"
|
||||
$scriptDirectory = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$insightsHubRoot = (Resolve-Path (Join-Path $scriptDirectory "..")).Path
|
||||
$pipeline = Join-Path $scriptDirectory "future_map_pipeline.py"
|
||||
$copyScript = Join-Path $scriptDirectory "copy_future_map_tagged_files.py"
|
||||
$runtimeDirectory = Join-Path $insightsHubRoot "runtime"
|
||||
$logDirectory = Join-Path $runtimeDirectory "logs"
|
||||
$logFile = Join-Path $logDirectory ("future-map-insights-hub-" + (Get-Date -Format "yyyy-MM-dd") + ".log")
|
||||
@@ -18,16 +18,15 @@ if (-not $PythonExecutable) {
|
||||
New-Item -ItemType Directory -Path $logDirectory -Force | Out-Null
|
||||
|
||||
$started = Get-Date -Format "yyyy-MM-dd HH:mm:ss zzz"
|
||||
"[$started] Starting deterministic Future Map Insights Hub preparation." | Set-Content -LiteralPath $logFile -Encoding utf8
|
||||
"[$started] Starting exact-tag Future Map intake copy." | Set-Content -LiteralPath $logFile -Encoding utf8
|
||||
|
||||
$pipelineOutput = & $PythonExecutable $pipeline sync 2>&1
|
||||
$pipelineOutput = & $PythonExecutable $copyScript 2>&1
|
||||
$exitCode = $LASTEXITCODE
|
||||
$pipelineOutput | Add-Content -LiteralPath $logFile -Encoding utf8
|
||||
|
||||
$finished = Get-Date -Format "yyyy-MM-dd HH:mm:ss zzz"
|
||||
"[$finished] Finished with exit code $exitCode. AI reasoning remains a separate skill-driven step." | Add-Content -LiteralPath $logFile -Encoding utf8
|
||||
"[$finished] Finished exact-tag intake copy with exit code $exitCode. Public transformation and AI reasoning remain separate steps." | Add-Content -LiteralPath $logFile -Encoding utf8
|
||||
|
||||
if ($exitCode -ne 0) {
|
||||
throw "Future Map Insights Hub preparation failed with exit code $exitCode. See $logFile"
|
||||
throw "Future Map exact-tag intake copy failed with exit code $exitCode. See $logFile"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user