diff --git a/gitnexus-web/src/config/supported-languages.ts b/gitnexus-web/src/config/supported-languages.ts index 9282f16ed1..4c51b56abc 100644 --- a/gitnexus-web/src/config/supported-languages.ts +++ b/gitnexus-web/src/config/supported-languages.ts @@ -10,5 +10,6 @@ export enum SupportedLanguages { Rust = 'rust', PHP = 'php', Ruby = 'ruby', + Kotlin = 'kotlin', Swift = 'swift', } \ No newline at end of file diff --git a/gitnexus-web/src/core/ingestion/call-routing.ts b/gitnexus-web/src/core/ingestion/call-routing.ts index 96a9d54fd8..5a112aca15 100644 --- a/gitnexus-web/src/core/ingestion/call-routing.ts +++ b/gitnexus-web/src/core/ingestion/call-routing.ts @@ -27,7 +27,7 @@ export type CallRouter = ( const noRouting: CallRouter = () => null; /** Per-language call routing. noRouting = no special routing (normal call processing) */ -export const callRouters: Record = { +export const callRouters = { [SupportedLanguages.JavaScript]: noRouting, [SupportedLanguages.TypeScript]: noRouting, [SupportedLanguages.Python]: noRouting, @@ -40,7 +40,8 @@ export const callRouters: Record = { [SupportedLanguages.CPlusPlus]: noRouting, [SupportedLanguages.C]: noRouting, [SupportedLanguages.Ruby]: routeRubyCall, -}; + [SupportedLanguages.Kotlin]: noRouting, +} satisfies Record; // ── Result types ──────────────────────────────────────────────────────────── diff --git a/gitnexus/src/core/ingestion/call-routing.ts b/gitnexus/src/core/ingestion/call-routing.ts index 50a91d29bb..8916d2a114 100644 --- a/gitnexus/src/core/ingestion/call-routing.ts +++ b/gitnexus/src/core/ingestion/call-routing.ts @@ -27,7 +27,7 @@ export type CallRouter = ( const noRouting: CallRouter = () => null; /** Per-language call routing. noRouting = no special routing (normal call processing) */ -export const callRouters: Record = { +export const callRouters = { [SupportedLanguages.JavaScript]: noRouting, [SupportedLanguages.TypeScript]: noRouting, [SupportedLanguages.Python]: noRouting, @@ -41,7 +41,7 @@ export const callRouters: Record = { [SupportedLanguages.CPlusPlus]: noRouting, [SupportedLanguages.C]: noRouting, [SupportedLanguages.Ruby]: routeRubyCall, -}; +} satisfies Record; // ── Result types ────────────────────────────────────────────────────────────