diff --git a/.claude/agent-depth.lock b/.claude/agent-depth.lock deleted file mode 100644 index 56a6051..0000000 --- a/.claude/agent-depth.lock +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/.claude/agent-depth.lock.flock b/.claude/agent-depth.lock.flock deleted file mode 100644 index e69de29..0000000 diff --git a/.claude/learn/failures.jsonl b/.claude/learn/failures.jsonl deleted file mode 100644 index dc3b0de..0000000 --- a/.claude/learn/failures.jsonl +++ /dev/null @@ -1 +0,0 @@ -{"type":"tool_failure","tool":"Read","error":"File does not exist. Note: your current working directory is /mnt/code/Booster-role.","id":"tool_failure-1780680948157-w915py","timestamp":"2026-06-05T17:35:48.157Z","resolved":false} diff --git a/.claude/session-20260606.log b/.claude/session-20260606.log deleted file mode 100644 index 1cbb557..0000000 --- a/.claude/session-20260606.log +++ /dev/null @@ -1,13 +0,0 @@ -[17:34:23] PROMPT: fix bug "Bun v1.3.4 (Linux x64 baseline) -{"guildId":"1206212469148749834","level":"info","message":"Registering guild commands","timestamp": -[17:34:32] PROMPT: fix bug "Bun v1.3.4 (Linux x64 baseline) -{"guildId":"1206212469148749834","level":"info","message":"Registering guild commands","timestamp": -[17:34:46] TASK+: unknown -[17:34:46] TASK+: unknown -[17:34:46] TASK+: unknown -[17:34:57] AGENT START: -[17:35:04] AGENT SPAWN: coder-workflow:codebase-qa-agent -[17:35:47] FAIL [Read]: File does not exist. Note: your current working directory is /mnt/code/Booster-role. -[17:38:37] TASK done: -[17:38:39] PROMPT: Write a 1-line conventional commit message summarizing these staged changes. Output ONLY the raw commit message, no markdown. -diff --git a/. diff --git a/.claude/stop-block.count b/.claude/stop-block.count deleted file mode 100644 index 573541a..0000000 --- a/.claude/stop-block.count +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/.codegraph/graph.db b/.codegraph/graph.db deleted file mode 100644 index 1ee1cd9..0000000 Binary files a/.codegraph/graph.db and /dev/null differ diff --git a/.gitignore b/.gitignore index 5563af0..e00b84b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules/ .env -data/ \ No newline at end of file +data/ +.codegraph/ +.claude/ \ No newline at end of file diff --git a/src/db/schema.ts b/src/db/schema.ts index fa81497..018c1e7 100644 --- a/src/db/schema.ts +++ b/src/db/schema.ts @@ -8,6 +8,7 @@ export const boosterRoles = pgTable( roleId: text("role_id").notNull(), name: text("name").notNull(), color: text("color"), + color2: text("color2"), icon: text("icon"), createdAt: bigint("created_at", { mode: "number" }).notNull(), updatedAt: bigint("updated_at", { mode: "number" }).notNull() diff --git a/src/domain/roleGuards.ts b/src/domain/roleGuards.ts index 9593f8b..4fb3f78 100644 --- a/src/domain/roleGuards.ts +++ b/src/domain/roleGuards.ts @@ -75,6 +75,10 @@ export function normalizeHexColor(color: string): `#${string}` { return normalizedColor as `#${string}`; } +export function normalizeOptionalHexColor(color: string | null): `#${string}` | null { + return color ? normalizeHexColor(color) : null; +} + function normalizeName(name: string): string { return name.trim().toLowerCase(); }