refactor(472-4 ① X6 넘기는 칸 한 벌): 옮긴 측점 · 노선 바뀜 횡단 입력 목록 정본 = TS ROW_CARRY_KEYS 하나 · 파이썬은 그 글을 읽음

- B06_Section_Router_Design.CARRY_INPUT_KEYS = Station_Swap.ts 의 ROW_CARRY_KEYS 선언을 읽음(손 목록 걷음)
- 공유 JSON 은 안 씀 — 이 TS 를 끄는 헬퍼 로더(측점 가게 · 묶음 단계)가 JSON 가져오기를 못 풀어 넓게 깨짐
- 시험 test_472_station_user_fields X6(파이썬 목록 글 없음 · 같은 일곱) · Router_Design · Station_Swap 관련 298 통과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 09:50:34 +09:00
co-authored by Claude Opus 5.5
parent 9da5bc8cb6
commit 919cd68ba5
3 changed files with 19 additions and 10 deletions
+12 -8
View File
@@ -4,6 +4,7 @@
"""
import json
import re
from pathlib import Path
from typing import Any
@@ -112,14 +113,17 @@ STRUCTURE_ADJUST_KEYS = (
# 노선 [확인] 체인이 옛 노선에서 누가거리로 넘기는 **사용자 입력**(PLAN 74-3) — 계획고 · 면적 ·
# design_line · road_edges 같은 결과 칸과 단면 유형 · 측구 방향(새 노선 지형이 정함) · 구조물
# 조작값은 넘기지 않는다. 받는 쪽은 `compute_default_designs(carried=…)`.
CARRY_INPUT_KEYS = (
"ground_type",
"ditch_type",
"ditch_choice",
"two_stage_slope",
"rock_boundary_offset_m",
"cut_slope_ratio_user",
"berm",
# 칸 목록 정본 = TS `ROW_CARRY_KEYS`(logic/B06_Section_Station_Swap.ts) — 그 글을 읽음(472-4 ① X6).
_SWAP_TS = Path(__file__).resolve().parent / "logic" / "B06_Section_Station_Swap.ts"
CARRY_INPUT_KEYS: tuple[str, ...] = tuple(
re.findall(
r'"([a-z_0-9]+)"',
re.search(
r"export const ROW_CARRY_KEYS = \[(.*?)\] as const;",
_SWAP_TS.read_text(encoding="utf-8"),
re.S,
).group(1),
)
)