@jurislm/judicial-mcp 1.6.2 → 1.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jurislm/judicial-mcp",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "MCP server for accessing Taiwan Judicial Yuan open data and judgments.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -363,14 +363,14 @@ function parseArticle(html: string, url: URL, lawName: string, articleNumber: st
363
363
  if (!articleText) {
364
364
  throw new RegulationSourceError('regulation_article_not_found', url.href)
365
365
  }
366
+ const effectiveDate = dateForLabel(metadataText, ['施行日期', '生效日期'])
366
367
  const version: RegulationVersion = {
367
368
  amendment_date: dateForLabel(metadataText, ['修正日期', '修正日']),
368
369
  promulgation_date: dateForLabel(metadataText, ['公布日期', '發布日期']),
369
- effective_date: dateForLabel(metadataText, ['施行日期', '生效日期']),
370
- effective_status: /尚未生效|尚未施行|最後生效日期:未定/.test(metadataText) ? 'pending_or_mixed' : 'as_stated',
371
- }
372
- if (/最後生效日期:未定/.test(metadataText) && version.effective_date === null) {
373
- version.effective_status = 'unknown'
370
+ effective_date: effectiveDate,
371
+ effective_status: /尚未生效|尚未施行/.test(metadataText)
372
+ ? 'pending_or_mixed'
373
+ : effectiveDate === null ? 'unknown' : 'as_stated',
374
374
  }
375
375
  return { text: articleText, version }
376
376
  }