(user: User)
| 4 | import { StaffRequestRefusal } from '@kilocode/web-shared/routers/organizations/utils'; |
| 5 | import type { User } from '@kilocode/db/schema'; |
| 6 | import type { TRPCContext } from '@kilocode/web-shared/lib/trpc/init'; |
| 7 | import { sql } from 'drizzle-orm'; |
| 8 | |
| 9 | const manuallyEnabledUsers = new Set( |
| 10 | CODE_INDEXING_ENABLED_USER_IDS.split(',') |
| 11 | .map(userId => userId.trim()) |
| 12 | .filter(userId => userId.length > 0) |
| 13 | ); |
| 14 | |
| 15 | /** Whether the configured list enables the personal code index for this account. */ |
| 16 | export function isManuallyEnabledForUser(userId: string): boolean { |
no test coverage detected