Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/api/src/routes/exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,17 @@ exchangeRouter.get(
wrap(exchangeProxy(DISCOVER_TIMEOUT_MS, { requiresRetrieveFlag: false })),
);

// Both skills routes intentionally require the exchangeRetrieve flag during preview.
// These read-only discovery routes remain authenticated; they do not execute paid tools.
exchangeRouter.post(
"/skills/resolve",
authMiddleware(RateLimiterMode.Labs),
wrap(exchangeProxy(DISCOVER_TIMEOUT_MS)),
wrap(exchangeProxy(DISCOVER_TIMEOUT_MS, { requiresRetrieveFlag: false })),
);

exchangeRouter.get(
"/skills/:id/SKILL.md",
authMiddleware(RateLimiterMode.Labs),
wrap(exchangeProxy(DISCOVER_TIMEOUT_MS)),
wrap(exchangeProxy(DISCOVER_TIMEOUT_MS, { requiresRetrieveFlag: false })),
);

// Provider agreements the web app offers for acceptance; a catalogue read, never an acceptance.
Expand All @@ -187,7 +187,7 @@ exchangeRouter.post(
exchangeRouter.post(
"/provider-terms/events",
authMiddleware(RateLimiterMode.Labs),
wrap(exchangeProxy(DISCOVER_TIMEOUT_MS)),
wrap(exchangeProxy(DISCOVER_TIMEOUT_MS, { requiresRetrieveFlag: false })),
);

exchangeRouter.post(
Expand Down
Loading