mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-28 19:02:49 +03:00
chore(db): allowlist accessTokens in check:db-rules (Rule #2 direct-import)
The new src/lib/db/accessTokens.ts is consumed by direct "@/lib/db/accessTokens" imports (4 /api/cli/* routes + server/authz/accessTokenAuth.ts), never barrel-imported from localDb.ts (Hard Rule #2). Add it to INTENTIONALLY_INTERNAL so the db-rules gate (Fast Quality Gates) passes without re-exporting it (which would incentivize the forbidden barrel-import anti-pattern).
This commit is contained in:
@@ -39,6 +39,7 @@ const HANDLERS_DIR = path.join(cwd, "open-sse/handlers");
|
||||
// sem investigação — pode ser reserva de schema ou F2 pendente
|
||||
export const INTENTIONALLY_INTERNAL = new Set([
|
||||
"_rowTypes", // type-only: 5 importers internos em db/ (AgentBridge/Inspector row types)
|
||||
"accessTokens", // intentionally-internal: 4 rotas /api/cli/* (connect, whoami, tokens, tokens/[id]) + server/authz/accessTokenAuth.ts via import direto "@/lib/db/accessTokens" (Rule #2)
|
||||
"cleanup", // intentionally-internal: 3 API routes (purge-quota-snapshots, purge-call-logs, purge-detailed-logs)
|
||||
"cliToolState", // intentionally-internal: 14+ API routes em /api/cli-tools/*-settings
|
||||
"comboForecast", // intentionally-internal: src/lib/usage/comboForecast.ts
|
||||
|
||||
Reference in New Issue
Block a user