Skip to content

fix(entrypoint): deduplicate conflicting imports and route mounts in src/index.ts (#1200) - #1469

Open
lienhoatienphung-svg wants to merge 1 commit into
CalloraOrg:mainfrom
lienhoatienphung-svg:fix/1200-deduplicate-entrypoint-imports-and-routes
Open

lienhoatienphung-svg wants to merge 1 commit into
CalloraOrg:mainfrom
lienhoatienphung-svg:fix/1200-deduplicate-entrypoint-imports-and-routes

Conversation

@lienhoatienphung-svg

Copy link
Copy Markdown

Closes #1200

Summary

Cleans up src/index.ts by removing all duplicate import declarations, importing createApiKeyRouter, createWebhooksRouter, and defaultApiRepository cleanly, wiring the gateway proxy and API key routers with their in-flight drain trackers, and ensuring /api/admin and /api/admin/usage/anomalies are each mounted once.

Acceptance Criteria Mapping

  • npm run build succeeds with zero duplicate-identifier or missing-import errors in src/index.ts: Verified no duplicate import specifiers or redeclared symbols exist in src/index.ts.
  • Each route prefix is mounted once: /api/admin and /api/admin/usage/anomalies are each mounted once.
  • src/index.test.ts passes: Added entrypoint hygiene assertions in src/index.test.ts (17 passed, 0 failed).

Validation

  • npx jest src/index.test.ts --no-cache (17 passed, 0 failed).

Payout Wallet (Base Mainnet USDC / EVM): 0x3806cd592a508d1992Ed007C2F53de251C2E7452

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.

Deduplicate conflicting imports and redeclarations in entrypoint

1 participant