mirror of
https://github.com/NomaDamas/k-skill.git
synced 2026-06-24 02:04:11 +00:00
Issue #98 was approved as a conservative implementation: structure the official LOST112 and 서울교통공사 workflows instead of pretending a stable public API exists. The new helper builds the documented search payload, the docs explain the v1 hybrid scope, and regression coverage locks the helper plus repo docs into the shipped flow. Constraint: Public subway lost-property APIs remain unconfirmed, so v1 must stay guidance-first Rejected: Full automated scraping of live result tables | unstable without confirmed API/session guarantees Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep this skill on official HTTPS entry points until a stable public API is verified end-to-end Tested: python3 -m unittest scripts.test_subway_lost_property; python3 scripts/subway_lost_property.py --station 강남역 --item 지갑 --days 14 --verify-live; npm run ci Not-tested: Browser-only user journey through LOST112 search submission beyond payload generation
18 lines
506 B
Python
Executable file
18 lines
506 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
_BUNDLED_HELPER = (
|
|
Path(__file__).resolve().parent.parent
|
|
/ "subway-lost-property"
|
|
/ "scripts"
|
|
/ "subway_lost_property.py"
|
|
)
|
|
|
|
if not _BUNDLED_HELPER.exists(): # pragma: no cover - defensive import guard
|
|
raise FileNotFoundError(f"Bundled subway lost-property helper not found: {_BUNDLED_HELPER}")
|
|
|
|
exec(compile(_BUNDLED_HELPER.read_text(encoding="utf-8"), str(_BUNDLED_HELPER), "exec"), globals())
|