Skip to content

refactor(ai-gateway): extract reusable package foundation#2809

Draft
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
session/agent_bbcd6d03-3a2d-4473-adf3-d3f32a4dd5ac
Draft

refactor(ai-gateway): extract reusable package foundation#2809
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
session/agent_bbcd6d03-3a2d-4473-adf3-d3f32a4dd5ac

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot Bot commented Apr 24, 2026

Summary

  • Add a new @kilocode/ai-gateway workspace package as the first framework-neutral extraction point for reusable gateway helpers.
  • Move pure gateway config, model ID normalization, kilolog hashing, HTTP response helpers, scheduler/cache adapter types, and no-op observability contracts into the package.
  • Rewire web app imports for the extracted helpers while keeping compatibility re-export files under apps/web/src/lib/ai-gateway.

Verification

N/A

Visual Changes

N/A

Reviewer Notes

  • This is intentionally a foundation PR, not a full gateway extraction; Next, DB, Redis, usage billing, BYOK, and app-specific orchestration remain in apps/web.
  • Automated checks run locally: pnpm --filter @kilocode/ai-gateway typecheck, pnpm --filter @kilocode/ai-gateway lint, pnpm --filter web typecheck, and pnpm format.
  • Local commands reported the repo's existing Node engine warning because this environment uses Node v20.20.2 while the repo expects Node >=24 <25.

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