Skip to content

Add NTES adapter#14

Open
ankitranjan7 wants to merge 2 commits into
mainfrom
add-ntes-adapter
Open

Add NTES adapter#14
ankitranjan7 wants to merge 2 commits into
mainfrom
add-ntes-adapter

Conversation

@ankitranjan7

Copy link
Copy Markdown

Summary

  • Add NTES / Indian Railways browser adapter for train status, live station, train schedule, and trains between stations.
  • Use the official NTES UI functions because direct q?opt=... replay returns the shell page or POST-only errors.
  • Add focused adapter tests and regenerate the CLI manifest.

Commands added

  • ntes status <train> --station <station> --limit <n> - live running status rows for a train from a journey station.
  • ntes station <station> --hours 2|4|8 --limit <n> - trains departing from or arriving at a station in the selected time window.
  • ntes schedule <train> --limit <n> - scheduled train stops with arrival/departure/halt/distance.
  • ntes between <from> <to> --limit <n> - trains between two stations.

Verification

  • npm run test:adapter -- clis/ntes/ntes.test.js
  • npm run build-manifest
  • npm run check:silent-column-drop
  • npm run check:typed-error-lint
  • node dist/src/main.js browser ntes-live-verify verify ntes/schedule --strict-memory --trace retain-on-failure
  • node dist/src/main.js browser ntes-live-verify verify ntes/station --strict-memory --trace retain-on-failure
  • node dist/src/main.js browser ntes-live-verify verify ntes/between --strict-memory --trace retain-on-failure
  • node dist/src/main.js browser ntes-live-verify verify ntes/status --strict-memory --trace retain-on-failure
  • npm test
  • npm run typecheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant