- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환 - Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용 - pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관) - worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md) - D:\Rhino-MCP 경로 참조를 새 위치로 치환 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
17 lines
1.1 KiB
PowerShell
17 lines
1.1 KiB
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$tokens = $null
|
|
$errors = $null
|
|
$ast = [System.Management.Automation.Language.Parser]::ParseFile(
|
|
(Join-Path $PSScriptRoot 'configure-caddy.ps1'), [ref]$tokens, [ref]$errors)
|
|
if ($errors.Count) { throw ($errors | Out-String) }
|
|
$fn = $ast.Find({param($n) $n -is [System.Management.Automation.Language.FunctionDefinitionAst]}, $true)
|
|
Invoke-Expression $fn.Extent.Text
|
|
$good = '{"handle":[{"handler":"subroute","routes":[{"match":[{"path":["/"]}],"handle":[{"handler":"static_response"}]},{"handle":[{"handler":"static_response"}]}]}]}' | ConvertFrom-Json
|
|
if (-not (Test-StaticFallback @($good))) { throw 'Static fallback rejected' }
|
|
$good.handle[0].routes[1].handle[0].handler = 'authentication'
|
|
if (Test-StaticFallback @($good)) { throw 'Authentication fallback accepted' }
|
|
$good.handle[0].routes[1].handle[0].handler = 'reverse_proxy'
|
|
if (Test-StaticFallback @($good)) { throw 'Proxy fallback accepted' }
|
|
if (Test-StaticFallback @()) { throw 'Empty fallback accepted' }
|
|
Write-Output 'PASS: syntax, nested static fallback, authentication/proxy/empty guards'
|