chore(lint): remove unused vars and imports

- agents-crud: drop unused roleLevel local + inferRoleLevel import
- agents-hierarchy: prefix unused builder params with _
- company-settings: drop InboxItem import, prefix unused builder params
- worker-message-handler: drop unused WorkerServiceDependencies import
This commit is contained in:
ZacharyZhang-NY committed 2026-04-17 01:44:40 -04:00
1 parent aba3ccd275
commit 71791825ce
4 files changed
+14 -14

No files matched your search

+4 -3
View File
@@ -1,5 +1,5 @@
import type { DatabaseSync, SQLInputValue } from "node:sqlite";
import type { AgentRecord, ConnectorId } from "@shared/types";
import type { AgentRecord, AgentRoleLevel, ConnectorId } from "@shared/types";
import {
type ReadAll,
type Transaction,
@@ -7,7 +7,6 @@ import {
normalizeOptionalId,
nowIso,
} from "./helpers";
export function buildAgentCrudMethods(
getDb: () => DatabaseSync,
readAll: ReadAll,
@@ -46,6 +45,8 @@ export function buildAgentCrudMethods(
metadataJson?: string;
capabilities: string;
budgetMonthlyUsd: number;
/** Optional explicit seniority; inferred from role/title when omitted. */
roleLevel?: AgentRoleLevel;
}): string {
const id = ensureId(input.id ?? null);
const ts = nowIso();
@@ -64,7 +65,7 @@ export function buildAgentCrudMethods(
.prepare(
"SELECT name, role, title, department, capabilities, connector_id, model, budget_monthly_usd, metadata_json FROM agents WHERE id = ? AND company_id = ?",
)
.get(id, input.companyId) as Record<string, any> | undefined;
.get(id, input.companyId) as Record<string, unknown> | undefined;
getDb()
.prepare(
"update agents set name = ?, role = ?, title = ?, department = ?, status = ?, reports_to = ?, connector_id = ?, workspace_id = ?, model = ?, metadata_json = ?, capabilities = ?, budget_monthly_usd = ?, updated_at = ? where id = ? and company_id = ?",