Skip to content

feat: hosted clients for MBTA, BART, King County Metro, CapMetro, Pace, Tri-Rail, Brightline, and bike shares - #13

Merged
gtokman merged 4 commits into
mainfrom
devin/1793676766-more-agencies
Nov 11, 2026
Merged

gtokman merged 4 commits into
mainfrom
devin/1793676766-more-agencies

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Adds SDK clients for the new mtaapi.dev agencies. They reuse the existing client classes, so this is mostly constructor wiring:

mta.mbta / mta.bart / mta.kingCountyMetro / mta.capMetro / mta.pace / mta.triRail / mta.brightline
  // CommuterRailClient on /api/v1/<slug>: stops, routes, routeStops, departures, vehicles, alerts
mta.bayWheels / mta.divvy / mta.bluebikes
  // CitiBikeClient(this, basePath): stations, station, alerts

Type changes:

  • CitiBikeClient now takes a basePath argument. citiBike still uses /api/v1/citi-bike.
  • CommuterRailMode and the bike mode/source unions are widened to include the new systems.
  • CommuterRailStop.parentStation? and CommuterRailRoute.type? (the GTFS route_type) are new.
  • StopMode is unchanged: the new agencies aren't in the cross-mode stops snapshot.

The API endpoints these call are in mta-api #107 (MBTA, with the other agencies stacked on it) and #108 (bike shares). The version isn't bumped.

Testing

  • bun test passes (25), with new exact-URL tests for mta.mbta and mta.bayWheels.
  • bun run typecheck passes.

Link to Devin session: https://app.devin.ai/sessions/8d319beac0174974a184312ce7c14932
Open in Devin Desktop: https://app.devin.ai/desktop/session/8d319beac0174974a184312ce7c14932?variant=devin
Requested by: @gtokman

gtokman and others added 3 commits November 2, 2026 19:40
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@gtokman
gtokman merged commit 426ccb7 into main Nov 11, 2026
5 of 6 checks passed
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