Lightweight file hosting platform built on top of S3-compatible storage
This report presents the forensic synthetic code analysis of saltbo/zpan, a TypeScript project with 2,064 GitHub stars. SynthScan v2.0 examined 231,275 lines of code across 1036 source files, recording 715 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 5.9 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 715 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | wrangler.toml | 75 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wrangler.toml | 80 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 11 | // ─── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 79 | // ─── Setup ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 86 | // ─── App-host passthrough tests ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 140 | // ─── Unverified custom domain ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 161 | // ─── Custom domain redirect ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 434 | // ─── Referer allowlist tests ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 476 | // ─── Cross-org isolation ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 514 | // ─── accessCount atomicity ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/middleware/image-hosting-domain.cf-test.ts | 62 | // ─── CF custom domain tests ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 38 | // ─── Helpers ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 65 | // ─── createShare ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 179 | // ─── resolveShareByToken ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 256 | // ─── verifyPassword ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 299 | // ─── isAccessibleByUser ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 319 | // ─── listForApi ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 340 | // ─── listReceivedForApi ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 373 | // ─── incrementViews ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 391 | // ─── incrementDownloadsAtomic ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 468 | // ─── revokeShareByToken ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 499 | // ─── listShareRecipientUserIds ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 535 | // ─── revokeByMatter ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …dapters/repos/matter-name-conflict.integration.test.ts | 75 | // ─── findActiveConflict ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …dapters/repos/matter-name-conflict.integration.test.ts | 148 | // ─── applyConflictResolution ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …dapters/repos/matter-name-conflict.integration.test.ts | 366 | // ─── planConflictResolution ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …dapters/repos/matter-name-conflict.integration.test.ts | 419 | // ─── commitConflictPlan ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.cf-test.ts | 45 | // ─── Atomic counter race tests on D1 ───────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.cf-test.ts | 103 | // ─── revokeByMatter on D1 ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 93 | // ─── createMatter ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 242 | // ─── confirmUpload ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 282 | // ─── updateMatter (rename / move) ───────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 355 | // ─── move ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 393 | // ─── copyMatter ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 456 | // ─── restoreMatter ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 514 | // ─── case-insensitive conflict across service calls ─────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 546 | // ─── confirmUpload quota-then-replace atomicity ─────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 586 | // ─── restoreMatter rename-before-activate ordering ─────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/matter.integration.test.ts | 105 | // ─── storage usage reservations ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/matter.integration.test.ts | 321 | // ─── confirmUpload ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/matter.integration.test.ts | 470 | // ─── updateMatter — folder-into-itself error ────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/matter.integration.test.ts | 505 | // ─── listTrashedRoots ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 57 | // ─── Public invite-link info ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 80 | // ─── POST /:teamId/invite-links ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 129 | // ─── GET /:teamId/invitations ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 167 | // ─── POST /:teamId/members ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 229 | // ─── Activity feed tests (from master) ──────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 277 | // ─── Auth guard ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 287 | // ─── Access control ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 368 | // ─── Happy path ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 461 | // ─── Pagination ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 542 | // ─── Ordering ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 562 | // ─── Metadata ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 597 | // ─── Multiple events across orgs ────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 671 | // ─── Org logo (PUT/DELETE /:teamId/logo) ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | server/http/teams.integration.test.ts | 871 | // ─── Admin Teams API (/api/teams admin-console resources) ───────────────────── | COMMENT |
| MEDIUM | server/http/shares.integration.test.ts | 14 | // ─── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/shares.integration.test.ts | 126 | // ─── POST /api/shares auth guard ───────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/shares.integration.test.ts | 140 | // ─── POST /api/shares ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/shares.integration.test.ts | 418 | // ─── PUT /api/shares/:token/privacy ────────────────────────────────────────── | COMMENT |
| 234 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/entry-node.ts | 106 | function reportNodeInstanceTelemetry(): void { | CODE |
| LOW | server/app.ts | 436 | function shouldReportInitialTelemetry(requestUrl: string): boolean { | CODE |
| LOW | server/auth.integration.test.ts | 36 | async function configureRequiredEmailVerification(ctx: TestCtx) { | CODE |
| LOW | server/openapi.integration.test.ts | 967 | function resolveLocalOpenApiReference(document: unknown, reference: string): unknown { | CODE |
| LOW | server/auth.ts | 124 | function isExternalResourceClientRegistration(body: Record<string, unknown>): boolean { | CODE |
| LOW | server/auth.ts | 139 | async function dynamicRegistrationOrigins(request: Request): Promise<string[]> { | CODE |
| LOW | server/auth.ts | 160 | export function officialWorkersPreviewOrigin( | CODE |
| LOW | server/auth.ts | 225 | export function toBetterAuthCaptchaOptions(config: CaptchaConfig): CaptchaOptions { | CODE |
| LOW | server/auth.ts | 261 | function usesEmailVerificationPolicy(request: Request): boolean { | CODE |
| LOW | server/auth.ts | 291 | async function recordOrganizationAuthAudit( | CODE |
| LOW | server/auth.ts | 347 | async function ensureUserRegistrationAudit(db: Database, userId: string, firstAccountId?: string): Promise<void> { | CODE |
| LOW | server/auth.ts | 403 | function buildVerificationEmailHtml(url: string): string { | CODE |
| LOW | server/auth.ts | 415 | function buildResetPasswordEmailHtml(url: string): string { | CODE |
| LOW | server/auth.ts | 1083 | async function findPersonalOrgFromExistingSession(db: Database, userId: string): Promise<string | null> { | CODE |
| LOW | server/auth.ts | 1119 | async function createFreePlanEntitlementValues( | CODE |
| LOW | server/auth.ts | 1203 | async function getDefaultOrgTrafficQuota(db: Database): Promise<number> { | CODE |
| LOW | …er/middleware/image-hosting-domain.integration.test.ts | 30 | async function setTrafficPlanEntitlement(db: TestDb, orgId: string, bytes: number) { | CODE |
| LOW | server/middleware/authz.ts | 134 | async function currentAuthorizationContext( | CODE |
| LOW | server/middleware/image-hosting-domain.ts | 139 | function recordImageDownloadFailure( | CODE |
| LOW | server/middleware/image-hosting-domain.ts | 168 | export async function handleImageHostingDomainRequest({ | CODE |
| LOW | server/middleware/auth.integration.test.ts | 25 | async function authedHeadersWithFreshSession( | CODE |
| LOW | server/middleware/audit-routes.ts | 283 | function responseDownloadTaskTarget(): AuditTarget { | CODE |
| LOW | server/middleware/audit-transfers.ts | 146 | async function resolveCreatedImageUpload(context: AuditRouteContext): Promise<TransferAuditTarget | null> { | CODE |
| LOW | server/middleware/auth.ts | 247 | export function mapOauthVerificationError(error: unknown, resource: string): AppError { | CODE |
| LOW | server/test/storage-usage-consistency.ts | 41 | export async function calculateExpectedStorageUsage(db: Database, orgId: string): Promise<StorageUsageBreakdown[]> { | CODE |
| LOW | server/test/storage-usage-consistency.ts | 72 | export async function expectStorageUsageConsistent(db: Database, orgId: string, context: string): Promise<void> { | CODE |
| LOW | server/auth/oauth-par.ts | 13 | export function oauthPushedAuthorizationRequests(options: OAuthProviderOptions): BetterAuthPlugin { | CODE |
| LOW | server/auth/oauth-par.ts | 69 | export async function resolvePushedAuthorizationRequest(input: { | CODE |
| LOW | server/auth/oauth-par.ts | 103 | async function validatePushedAuthorizationRequest( | CODE |
| LOW | server/auth/oauth-provider.ts | 33 | export function createOAuthProviderOptions(input: { | CODE |
| LOW | server/auth/oauth-provider.ts | 126 | function oauthStandardsMetadataExtension(): OAuthProviderExtension { | CODE |
| LOW | server/auth/oauth-provider.ts | 135 | function externalResourceGrantExtension(resourceAudience: string): OAuthProviderExtension { | CODE |
| LOW⚡ | server/auth/oauth-provider.ts | 215 | function parseWorkspaceAuthorizationDetail(detail: AuthorizationDetail) { | CODE |
| LOW⚡ | server/auth/oauth-provider.ts | 221 | function assertUniqueWorkspaceIdentifiers(details: Array<{ identifier?: string }>) { | CODE |
| LOW⚡ | server/auth/oauth-provider.ts | 228 | function workspaceAuthorizationDetailsCovered( | CODE |
| LOW | server/auth/oauth-provider.ts | 240 | function parseTokenExchangeAuthorizationDetails(body: unknown): AuthorizationDetail[] { | CODE |
| LOW | server/auth/oauth-client-registration-management.ts | 141 | export function addOAuthClientRegistrationManagementOpenApi(document: { paths: Record<string, unknown> }): void { | CODE |
| LOW | server/auth/oauth-client-registration-management.ts | 224 | export async function handleOAuthClientRegistrationManagement( | CODE |
| LOW | server/auth/oauth-client-registration-management.ts | 273 | async function augmentRegistrationResponse( | CODE |
| LOW | server/auth/oauth-client-registration-management.ts | 408 | function isSecureOrLocalDevelopmentUrl(value: string, serverUrl: URL): boolean { | CODE |
| LOW | server/auth/oauth-client-registration-management.ts | 504 | async function matchesStoredClientSecret(candidate: string, stored: string | null): Promise<boolean> { | CODE |
| LOW | server/adapters/repos/archive-target-folder.ts | 32 | export function createArchiveTargetFolderRepo(db: Database): ArchiveTargetFolderRepo { | CODE |
| LOW | server/adapters/repos/admin-stats-counter-query.ts | 194 | export function buildAdminStatsCounterRowsSqlStatements(range: AdminStatsCounterQueryRange): string[] { | CODE |
| LOW | server/adapters/repos/admin-stats-counter-query.ts | 211 | export function buildAdminStatsCounterRollupInsertSqlStatements(range: AdminStatsCounterQueryRange): string[] { | CODE |
| LOW | server/adapters/repos/admin-stats-counter-query.ts | 243 | function buildCounterSqlStatements(range: AdminStatsCounterQueryRange, statement: string): string[] { | CODE |
| LOW | server/adapters/repos/webdav-state.ts | 327 | function lockConflictsWithResource(lock: DavLock, resourcePath: string): boolean { | CODE |
| LOW | server/adapters/repos/oauth-client-registration.ts | 10 | export async function insertOAuthClientRegistration(db: Database, clientId: string, tokenHash: string): Promise<void> { | CODE |
| LOW | server/adapters/repos/oauth-client-registration.ts | 46 | export async function replaceManagedOAuthClient( | CODE |
| LOW | server/adapters/repos/oauth-client-registration.ts | 66 | export async function listManagedOAuthClientResources(db: Database, clientId: string): Promise<string[]> { | CODE |
| LOW | server/adapters/repos/oauth.ts | 188 | function workspaceIdsFromAuthorizationDetails(value: unknown): string[] { | CODE |
| LOW | server/adapters/repos/admin-stats-rollup.ts | 184 | export async function captureAdminStatsSnapshot( | CODE |
| LOW | server/adapters/repos/matter.ts | 64 | function descendantParentCondition(folderPath: string): SQL { | CODE |
| LOW | server/adapters/repos/image-hosting-config.ts | 6 | export function createImageHostingConfigRepo(db: Database): ImageHostingConfigRepo { | CODE |
| LOW | server/adapters/repos/license-binding.ts | 75 | async function updateLicenseBindingAfterRefresh(db: Database, input: UpdateLicenseBindingInput): Promise<void> { | CODE |
| LOW | server/adapters/repos/user-admin.ts | 25 | async function findActiveUserIdByUsername(db: Database, username: string): Promise<string | null> { | CODE |
| LOW | server/adapters/repos/user-admin.ts | 40 | async function listUserPersonalEntitlements( | CODE |
| LOW | server/adapters/repos/user-admin.ts | 49 | async function grantUserPersonalEntitlement( | CODE |
| LOW | server/adapters/repos/user-admin.ts | 65 | async function updateUserPersonalEntitlement( | CODE |
| LOW | server/adapters/repos/user-admin.ts | 81 | async function revokeUserPersonalEntitlement( | CODE |
| LOW | server/adapters/repos/downloader-bootstrap.ts | 11 | export function createDownloaderBootstrapCredentialRepo( | CODE |
| 274 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/auth.integration.test.ts | 386 | const res = await signUp(ctx, 'user@example.com') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 55 | await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 63 | await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 73 | const headers = await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 80 | const headers = await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 88 | const headers = await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW | server/middleware/auth.integration.test.ts | 99 | const headers = await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW | server/test/setup.ts | 903 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/test/setup.ts | 908 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 75 | { key: 'email_smtp_user', value: 'user@example.com' }, | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 85 | expect(config.smtp.user).toBe('user@example.com') | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 191 | await gatewayFor(db).send(bareplatform(db), { to: 'user@example.com', subject: 'Hello', html: '<p>Hi</p>' }) | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 194 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 219 | await gatewayFor(db).send(bareplatform(db), { to: 'user@example.com', subject: 'Hello', html: '<p>Hi</p>' }) | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 229 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 274 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 280 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 310 | gatewayFor(db).send(bareplatform(db), { to: 'user@example.com', subject: 'Hi', html: '<p>Hi</p>' }), | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 369 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 376 | to: 'user@example.com', | CODE |
| LOW⚡ | server/http/teams.integration.test.ts | 875 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW⚡ | server/http/teams.integration.test.ts | 879 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/teams.integration.test.ts | 926 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/teams.integration.test.ts | 941 | const adminId = await userId(db, 'admin@example.com') | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 12 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 16 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 33 | expect(body.users.map((u) => u.email)).toEqual(expect.arrayContaining(['admin@example.com', 'member@example.com'])) | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 38 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 52 | const adminRows = await db.all<{ id: string }>(sql`SELECT id FROM user WHERE email = 'admin@example.com'`) | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 119 | const adminRows = await db.all<{ id: string }>(sql`SELECT id FROM user WHERE email = 'admin@example.com'`) | CODE |
| LOW | server/http/webdav.integration.test.ts | 189 | headers: basicHeaders('user@example.com', 'secret'), | CODE |
| LOW | server/http/users.integration.test.ts | 7 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/users.integration.test.ts | 12 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/quotas.integration.test.ts | 7 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/quotas.integration.test.ts | 12 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/quotas.integration.test.ts | 26 | await authedHeaders(app, 'admin@example.com') | CODE |
| LOW⚡ | server/http/auth/auth.integration.test.ts | 209 | body: JSON.stringify({ name: 'Admin User', email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW⚡ | server/http/auth/auth.integration.test.ts | 211 | const users = await db.select().from(authSchema.user).where(eq(authSchema.user.email, 'admin@example.com')) | CODE |
| LOW⚡ | server/http/auth/auth.integration.test.ts | 220 | body: JSON.stringify({ name: 'Admin User', email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/site/audit.integration.test.ts | 15 | const headers = await authedHeaders(app, 'user@example.com') | CODE |
| LOW | server/http/site/audit.integration.test.ts | 531 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/site/branding.integration.test.ts | 122 | const headers = await authedHeaders(app, 'user@example.com') | CODE |
| LOW | server/http/site/email-config.integration.test.ts | 13 | { key: 'email_smtp_user', value: 'user@example.com' }, | CODE |
| LOW | server/http/site/email-config.integration.test.ts | 46 | await authedHeaders(app, 'admin@example.com') | CODE |
| LOW | server/http/site/email-config.integration.test.ts | 117 | expect(smtp.user).toBe('user@example.com') | CODE |
| LOW | server/http/site/email-config.integration.test.ts | 179 | user: 'user@example.com', | CODE |
| LOW | server/http/site/licensing.integration.test.ts | 28 | cloudAccountEmail: 'user@example.com', | CODE |
| LOW | server/http/site/licensing.integration.test.ts | 40 | expect(body.account_email).toBe('user@example.com') | CODE |
| LOW | server/http/site/invitations.integration.test.ts | 321 | .where(eq(authSchema.user.email, 'admin@example.com')) | CODE |
| LOW | server/http/site/storages.integration.test.ts | 36 | await authedHeaders(app, 'admin@example.com') | CODE |
| LOW | server/http/site/announcements.integration.test.ts | 35 | const headers = await authedHeaders(app, 'user@example.com') | CODE |
| LOW | server/http/site/audit-events.integration.test.ts | 477 | const users = await db.all<{ id: string }>(sql`SELECT id FROM user WHERE email = 'admin@example.com' LIMIT 1`) | CODE |
| LOW | server/http/site/licensing-admin.integration.test.ts | 84 | await authedHeaders(app, 'admin@example.com') | CODE |
| LOW | server/usecases/webdav.test.ts | 210 | username: 'user@example.com', | CODE |
| LOW | server/usecases/webdav.test.ts | 236 | expect(findActiveUserIdByUsername).toHaveBeenCalledWith('user@example.com') | CODE |
| LOW | server/usecases/site/email-config.test.ts | 21 | smtp: { host: 'smtp.example.com', port: 587, user: 'user@example.com', pass: 'supersecret', secure: true }, | CODE |
| LOW | server/usecases/site/email-config.test.ts | 97 | user: 'user@example.com', | CODE |
| LOW | server/usecases/site/signup-mode.integration.test.ts | 21 | await signUp(ctx, 'admin@example.com') | CODE |
| LOW⚡ | server/usecases/site/signup-mode.integration.test.ts | 149 | await signUp(ctx, 'admin@example.com') | CODE |
| LOW⚡ | server/usecases/site/signup-mode.integration.test.ts | 153 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/http/events.ts | 61 | // event: resync → retention gap; refetch active queries | COMMENT |
| LOW | server/domain/license-keys.ts | 1 | // Cloud public keys for verifying PASETO v4 entitlement certificates. | COMMENT |
| LOW | server/usecases/team.ts | 1 | // The team resource usecase. Owns every business decision behind both team | COMMENT |
| LOW | server/usecases/background-job.ts | 1 | // The background-jobs resource usecase (/api/background-jobs). Owns every | COMMENT |
| LOW | server/usecases/object.ts | 1 | // The objects resource usecase. Owns every business decision behind the | COMMENT |
| LOW | server/usecases/user.ts | 1 | // The users resource usecase. Owns the front-of-house business decisions behind | COMMENT |
| LOW | server/usecases/webdav.ts | 1 | // The WebDAV resource usecase. WebDAV is special: the http handler owns the | COMMENT |
| LOW | server/usecases/image-hosting/images.ts | 1 | // The image-hosting (ihost) resource usecase. Owns every business decision behind | COMMENT |
| LOW | server/usecases/ports/archive-target-folder.ts | 1 | // Validates that an explicit archive target folder exists and is a folder (not a | COMMENT |
| LOW | server/usecases/store/store.ts | 1 | // The cloud store resource usecase. Owns every business decision behind the | COMMENT |
| LOW | shared/schemas/errors.ts | 1 | import { z } from '@hono/zod-openapi' | COMMENT |
| LOW | .github/workflows/deploy.yml | 1 | name: Deploy | COMMENT |
| LOW | src/components/files/files-toolbar.test.ts | 1 | import { describe, expect, it } from 'vitest' | COMMENT |
| LOW | src/routes/(auth)/sign-up.test.ts | 1 | import { SignupMode } from '@shared/constants' | COMMENT |
| LOW | src/routes/(auth)/sign-in.test.ts | 1 | import { SignupMode } from '@shared/constants' | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/design/agent-file-management-regression.md | 90 | ### Debug round 1 — plugin approval orchestration | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deploy/docker-compose.downloader.yml | 2 | # Usage: | COMMENT |