korean-law-mcp 4.7.2 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,8 +73,11 @@ export async function getAnnexes(apiClient, input) {
73
73
  lawType = result3.type;
74
74
  }
75
75
  }
76
- // 4차: "규정" 타입은 licbyl과 admbyl 양쪽에 존재 가능 → admin fallback
77
- if (annexList.length === 0 && /규정/.test(normalizedLawName)) {
76
+ // 4차: 행정규칙(고시/훈령/예규) 별표 admin fallback.
77
+ // "사료 등의 기준 및 규격"처럼 제목에 '고시·훈령' 등 종류 키워드가 없는 행정규칙은
78
+ // detectLawType이 'law'로 분류해 licbyl만 조회하고 admbyl 경로를 놓친다(#58).
79
+ // 앞 단계가 모두 비면 종류 무관하게 admbyl로 재조회한다.
80
+ if (annexList.length === 0) {
78
81
  try {
79
82
  const adminText = await apiClient.fetchApi({
80
83
  endpoint: "lawSearch.do",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "korean-law-mcp",
3
- "version": "4.7.2",
3
+ "version": "4.7.3",
4
4
  "description": "법제처 42개 API → 9개 MCP 도구. 법령·판례·조례·조약 + 다단계 리서치(legal_research, 8 task) + 정밀분석(legal_analysis: 인용검증·판례생사·행위시법·영향그래프) + 시점 비교(time_travel) + 상황별 5단계 안내(action_plan) + 국세청 해석례(nts)",
5
5
  "type": "module",
6
6
  "main": "build/index.js",