feat: one relay platforms — discover relay-capable platforms#124
Merged
feat: one relay platforms — discover relay-capable platforms#124
Conversation
sync/index.ts constructed `new OneApi(apiKey)` without the apiBase argument, so sync always hit prod even when the CLI was configured for dev. This caused "Invalid or expired API key" errors on sync commands (test, run) despite the config being valid. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a new subcommand to discover which platforms support webhook
relay and how many event types each offers. Previously users had to
guess a platform and try `relay event-types <platform>` to find out.
Calls GET /webhooks/relay/platforms (no auth) and renders:
- agent mode: {"platforms": [{"platform", "eventTypeCount"}, ...]}
- human mode: two-column table with event type counts
Updates README, `one guide relay`, and the agent-facing skill doc
(skills/one/references/relay.md) to surface the new discovery path.
Version bumped to 1.42.0 per release checklist.
Closes #123
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
moekatib
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
one relay platformssubcommand that lists every platform supporting webhook relay, with the number of event types each exposes. Previously users had to guess a platform and tryrelay event-types <platform>to find out whether relay was supported at all.Also includes a small pre-existing fix:
sync/index.tswas constructingnew OneApi(apiKey)without passingapiBase, causing sync to always hit prod even when the CLI was configured for dev.Closes #123
Changes
New command
Calls
GET /webhooks/relay/platforms(no auth required).Files changed
src/lib/api.ts— addedlistRelayPlatforms()src/commands/relay.ts— addedrelayPlatformsCommandwith agent + human outputsrc/index.ts— registeredone relay platformsand added it to the top-level help textsrc/lib/guide-content.ts— surfaced in overview + relay topicskills/one/references/relay.md— added to Step 1 discovery flow + new "Discovery Commands" sectionREADME.md— added aone relaysection (was previously undocumented)src/lib/sync/index.ts— passgetApiBase()to sync'sOneApiinstancepackage.json— 1.41.0 → 1.42.0Test plan
npx tsupbuilds cleanlyone relay platforms --agentreturns the platforms arrayone relay platformsrenders the table in human modeone relay event-types airtablestill works (no regression)one relay --helplists the newplatformssubcommand🤖 Generated with Claude Code