Repository navigation
feat(korean-law-search): 신・구조문대비표 작성(amendment_table) 추가 - #751
Merged
Merged
Conversation
개정 후 조문 전문만 받아 현행 조문을 k-skill-proxy(/v1/korean-law/search·detail)로 가져와 밑줄·----·(생 략)·<신 설> 표기의 대비표 초안을 만들고 --output 이면 한글(.hwpx)로 저장한다. 엔진은 chrisryugj/korean-law-mcp(MIT, dcb866b)에서 이식했고, 현행 조회는 proxy 호출로 바꿨다. 법령명은 정확히 같은 현행 법령만 받는다(부분 일치로 민법→난민법을 고르지 않음). jszip 없이 node:zlib ZIP 작성기 사용.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇을 하나
korean-law-search스킬에 신・구조문대비표 작성을 추가한다. 개정 후 조문 전문만 주면 현행 조문을 가져와 대조한 대비표 초안을 만들고,--output이면 한글(.hwpx)로 저장한다.----, 안 바뀐 항(생 략)/(현행과 같음),<신 설>·<삭 제>·<단서 신설>npx -y @nomadamas/k-skill@0 exec korean-law-search scripts/amendment_table.js -- --input amendment.json --output ~/Desktop/x.hwpx구현
korean-law-search/scripts/amendment/):chrisryugj/korean-law-mcp(MIT,dcb866b)의amendment_table이식. 라이선스 전문은scripts/amendment/LICENSE-korean-law-mcp,docs/sources.md에 출처 기록./v1/korean-law/search·/detail만 사용 → 새 proxy route·사용자LAW_OC불필요.[NOT_FOUND]+ 후보 표시.jszip의존성 없이node:zlib로 ZIP 작성(mimetype첫 항목·무압축).enableAmendmentFileOutput) 제거 — 로컬 CLI 전용이므로.lookup유지(docs/runtime-action-audit.md가 스킬당 모드 1개를 강제).검증
scripts/test_korean_law_amendment_table.js50개 (upstream 대비표 엔진 36개 이식 + 신규: ZIP 독립 리더로 CRC/순서/압축 검증, proxy 클라이언트(가짜 proxy 서버), CLI 종단 실행, 입력 검증, 정확일치 가드).npm run ci통과 (노드 테스트 274, 스냅샷 갱신 포함)..hwpx), 민법 제750조(현행과 동일 →[NO_CHANGE], 난민법 미선택), 건축법 시행령 신설 조, 도로교통법 가지번호 조(제5조의2), 존재하지 않는 법령명([NOT_FOUND], exit 1). 패키지된k-skill exec경로로도 실행 확인..hwpx를kordoc으로 파싱(성공,<u>밑줄 유지)하고rhwp export-svg로 렌더링해 표 머리행·2열·밑줄·줄표 확인. 한컴 뷰어 GUI 에서의 열림은 확인하지 못함.한계
확인할 점에 경고).