gut(agents): remove dead Vercel AI Gateway model catalog file#2483
Merged
alexey-pelykh merged 1 commit intomainfrom Apr 22, 2026
Merged
gut(agents): remove dead Vercel AI Gateway model catalog file#2483alexey-pelykh merged 1 commit intomainfrom
alexey-pelykh merged 1 commit intomainfrom
Conversation
`src/agents/vercel-ai-gateway.ts` exposed a static model catalog (`getStaticVercelAiGatewayModelCatalog`) and an HTTP discovery helper (`discoverVercelAiGatewayModels`) with static-catalog fallback. Neither had any external caller — all exports were referenced only within the file. Pre-fork embedded-execution debt. RemoteClaw delegates LLM invocation to CLI agents (Claude Code, Gemini, Codex, OpenCode), which own their own provider catalogs. No middleware-side catalog is needed. MODULE_ATTESTATIONS entries removed atomically with the file. Preserved (unrelated `"vercel-ai-gateway"` provider-string references, not this file): - src/auth/provider-auth.ts:276 — env-var lookup - src/agents/provider-utils.ts:152 — model-ID formatting - src/agents/model-auth-env-vars.ts:34 — env-var mapping - src/plugins/bundled-plugin-metadata.generated.ts — metadata for the external `@remoteclaw/vercel-ai-gateway-provider` npm plugin - src/gateway/session-utils.test.ts — provider-string test fixtures AC verification: - `rg "getStaticVercelAiGatewayModelCatalog|discoverVercelAiGatewayModels" src/` → 0 hits - `rg 'from.*["'"'"']\..*vercel-ai-gateway' src/` → 0 hits - `pnpm tsgo` → PASS - `pnpm test:fast` → 7296 passed / 3 skipped (baseline preserved) - All fork-integrity gates (attestation, zombie-import, obsolescence, throwing-stub-callers, stub-debt, rebrand) → PASS Closes #2477. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Closes #2477.
Summary
src/agents/vercel-ai-gateway.tsexposed a static model catalog(
getStaticVercelAiGatewayModelCatalog) and an HTTP discovery helper(
discoverVercelAiGatewayModels) with static-catalog fallback. Neither hadany external caller — all exports were referenced only within the file
itself, so removal has zero API surface impact.
Why it's dead
RemoteClaw delegates LLM invocation to CLI agents (Claude Code, Gemini, Codex,
OpenCode), which own their own provider catalogs. A middleware-side catalog is
Pi-era embedded-execution debt from OpenClaw — no current consumer.
What stays
Unrelated
"vercel-ai-gateway"provider-string references (pointing at theexternal
@remoteclaw/vercel-ai-gateway-providernpm plugin, not this file)are preserved unchanged:
src/auth/provider-auth.ts:276AI_GATEWAY_API_KEY) lookupsrc/agents/provider-utils.ts:152vercel-ai-gateway/<model>stringssrc/agents/model-auth-env-vars.ts:34src/plugins/bundled-plugin-metadata.generated.tssrc/gateway/session-utils.test.tsWhat's removed
getStaticVercelAiGatewayModelCatalog,discoverVercelAiGatewayModelsVERCEL_AI_GATEWAY_PROVIDER_ID,_BASE_URL,_DEFAULT_MODEL_ID,_DEFAULT_MODEL_REF,_DEFAULT_CONTEXT_WINDOW,_DEFAULT_MAX_TOKENS,_DEFAULT_COSTMODULE_ATTESTATIONSrecord (2 entries, removed atomically with the file)Net:
1 file changed, 208 deletions(-).Verification
Against
origin/main:Fork-integrity gates:
scripts/check-attestations.mjs— PASS (91 modules / 313 attestations — 2 entries removed atomically with the file)scripts/check-no-zombie-imports.mjs— PASS (straight delete, not a tombstone)scripts/check-obsolescence-audit.mjs— PASS (baseline 49 unchanged)scripts/check-throwing-stub-callers.mjs— PASS (0 violations)scripts/check-stub-debt.mjs— PASS (fork-boundary-mock baseline 132 unchanged)scripts/ci/check-rebrand-leakage.sh— PASSTest plan
"vercel-ai-gateway"provider-string code paths — covered by existingsession-utils.test.tsfixtures🤖 Generated with Claude Code