Skip to content

Commit fcf446a

Browse files
msukkariclaude
andcommitted
fix: use type-only imports and update import source in inject-audit-data-v2
Convert Script, PrismaClient, and Prisma imports to type-only imports since they are only used in type positions. Update PrismaClient/Prisma import source from "../../dist" to "@sourcebot/db" to match the pattern in scriptRunner.ts. Also fix broken API reference link in sizing guide docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 592019a commit fcf446a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/docs/deployment/sizing-guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Audit logging is an enterprise feature and is only available with an [enterprise
5656
**Estimated storage per audit event: ~350 bytes** (including row data and indexes).
5757

5858
<Info>
59-
The table below assumes 50 events per user per day. The actual number depends on usage patterns — each user action (code search, file view, navigation, Ask chat, etc.) creates one audit event. Users who interact via [MCP](/docs/features/mcp-server) or the [API](/docs/api-reference/search) tend to generate significantly more events than web-only users, so your real usage may vary.
59+
The table below assumes 50 events per user per day. The actual number depends on usage patterns — each user action (code search, file view, navigation, Ask chat, etc.) creates one audit event. Users who interact via [MCP](/docs/features/mcp-server) or the API tend to generate significantly more events than web-only users, so your real usage may vary.
6060
</Info>
6161

6262
| Team size | Avg events / user / day | Daily events | Monthly storage | 6-month storage |

packages/db/tools/scripts/inject-audit-data-v2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Script } from "../scriptRunner";
2-
import { PrismaClient, Prisma } from "../../dist";
1+
import type { Script } from "../scriptRunner";
2+
import type { PrismaClient, Prisma } from "@sourcebot/db";
33
import { confirmAction } from "../utils";
44

55
// User profile: defines how a user interacts with Sourcebot

0 commit comments

Comments
 (0)