# Graph Report - portalonsms2  (2026-07-31)

## Corpus Check
- 412 files · ~589,639 words
- Verdict: corpus is large enough that graph structure adds value.

## Summary
- 4193 nodes · 10441 edges · 229 communities (147 shown, 82 thin omitted)
- Extraction: 99% EXTRACTED · 1% INFERRED · 0% AMBIGUOUS · INFERRED: 123 edges (avg confidence: 0.77)
- Token cost: 0 input · 0 output

## Graph Freshness
- Built from commit: `31ae072a`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).

## Community Hubs (Navigation)
- Storage Interface Methods
- Database Storage Implementation
- NPM Runtime Dependencies
- Badge and Card UI
- Roles and Permissions
- Schema Status Enums
- Accordion and Dialog UI
- Account Management Page
- Button and Alert Dialog UI
- Reporting and Monitoring Types
- AI Panel and Tabs UI
- App Routing and Auth Context
- Infobip API Integration
- Build Tooling Dependencies
- Template Utilities and Form UI
- Project Memory Notes
- Sender Profile and Notices UI
- Infobip Sender Storage
- Sidebar Layout UI
- Campaign Storage Methods
- CLAUDE.md Documentation
- Multi-BM Validated Templates UI
- WABA Template Storage
- Auth Middleware and Checknumber
- HubSpot Auth and Timeline
- AI Agent Orchestration
- admin-senders.tsx
- Server Bootstrap and Blocklist
- Campaign Chat UI
- Multi-BM Dispatch Logic
- DB Cleanup and Seed Scripts
- Bug: sistema de auto-registro de webhook nunca funcionou
- User and Sender Assignment Storage
- Multi-BM Submission Storage
- Admin Logs UI
- Media Storage Utilities
- RCS API Client
- TypeScript Configuration
- Menubar UI Component
- Shadcn UI Config
- Sidebar and Branding Context
- Toast and Notice System
- Chart UI Component
- HubSpot Action Sync
- Branding Storage Methods
- Button, Calendar, Pagination UI
- Multi-BM Template Storage
- Infobip Config Storage
- WABA Message Storage
- Carousel UI Component
- Chip Provisioning Clients
- Multi-BM Health Sync
- Business Manager Storage
- HubSpot Dispatch Queue Storage
- AI Conversation Storage
- WA Filter Batch Storage
- Multi-BM Dashboard UI
- Toast UI Component
- BM Sender Storage
- Chip Activation Storage
- HubSpot Connection Storage
- RCS Sender Storage
- API Token Storage
- Multi-BM Webhook Tests
- Error Boundary Component
- utils.ts
- Context Menu UI
- Dropdown Menu UI
- Knowledge Base Storage
- Multi-BM Message Storage
- RCS Config Storage
- RCS Message Storage
- Multi-BM Template Cluster Tests
- scripts
- dispatch
- Activity Log Storage
- Breadcrumb UI Component
- Drawer UI Component
- Navigation Menu UI
- AiConversationMessage
- Account Service Balance Storage
- HubSpot Execute Diagnostics
- Blocklist Term Storage
- Status Mapping Storage
- AI Client Settings Storage
- Vendor Mask Exposure Tests
- loadtest-multibm.ts
- File Upload Hook
- Multi-BM Validated Template Storage
- vendor-mask.ts
- Template Media Storage
- AI Agent Safeguards Tests
- Multi-BM Marketing Dispatch Tests
- OTP Input UI Component
- Column Keyword Storage
- toggle-group.tsx
- AI Agent Config Storage
- HubSpot Alert Config Storage
- Multi-BM Alert Config Storage
- Multi-BM Config Storage
- multibmDispatchResume.test.ts
- vite.ts
- whatsapp-template-preview.tsx
- AI Conversation Messages
- HubSpot Timeline Template Storage
- Object Uploader Component
- multibmDispatchPerContactParams.test.ts
- HubSpot Action Registration
- Sender Stats Queries
- dispatch
- fileSignatureValidation.test.ts
- User & Service Queries
- Template Preset Storage
- Build Script Allowlist
- Credit Transactions
- freeform-send-guard.md
- segmented-control.tsx
- Infobip Template Header Rule
- mailer.ts
- Production Deploy Script
- Dev Deploy Script
- Post-Merge Hook Script
- HubspotAlertState
- multibmCampaignCreationAtomic.test.ts
- multibmPauseResumeCancel.test.ts
- AccountServiceBalance
- TemplateGeneratorConfig
- TemplatePreset
- ProvidersTab
- urlSecurity.test.ts
- multibmRateLimitSharedAcrossCampaigns.test.ts
- drawer.tsx
- ClientBusinessProfile
- multibmValidateGuard.test.ts
- multibmDailyLimitByBm.test.ts
- multibmDistributionStrategy.test.ts
- multibmHealthSyncBanDetection.test.ts
- ApiToken
- moderationDispatchGuard.test.ts
- btnUrlSuffix.ts
- scheduledDispatchWorker.test.ts
- clientCallbackRetry.test.ts
- SenderProfile
- multibmDispatchMarketing.test.ts
- Service
- multibmDispatchResume.test.ts
- CompositorConfig
- multibmDistributionStrategy.test.ts
- scheduledCampaignCreationGuard.test.ts
- quietHours.ts
- fmt
- senderProfiles.test.ts
- vendor-mask.ts
- mailer.ts
- ObjectUploader.tsx
- ClientBusinessProfile
- ClientBlacklistTrigger
- infobipDispatch.ts
- .getUserById
- .attachSubmissions
- metaCloudRoutes.ts
- blocklist.ts
- clientBusinessProfile.test.ts
- app-sidebar.tsx
- normalizeBrPhone
- fileSignatureValidation.test.ts
- multibmBalanceGuard.ts
- smsAdapter.ts
- ActivityLog
- UpdateCampaign
- multibmDailyLimitByBm.test.ts
- multibmSyncReconciliation.test.ts
- .getBusinessManagers
- .getCampaigns
- cloudTemplateSync.ts
- TemplatePreset
- btnUrlSuffix.ts
- sheet.tsx
- toast.tsx
- Service
- sheet.tsx
- multibmHideAndIgnore.test.ts
- AccountServiceBalance
- hubspotWorkflowAction.test.ts
- multibmValidateGuard.test.ts
- twoStageReport.test.ts
- scheduledDispatchWorker.test.ts
- section-status-badge.tsx
- vendor-mask.ts
- segmented-control.tsx
- templateUtils.ts
- templateAdminOnly.test.ts
- waOnsmsReceptivo.test.ts
- segmented-control.tsx
- metaSignupExchange.test.ts
- multibmPauseResumeCancel.test.ts
- brandingPublicRoutes.test.ts
- CampaignTermConfirmation
- HubspotAlertState
- wa-cloud-send-result-contract.md
- fileSignatureValidation.test.ts
- MultibmAlertState
- MetaWebhookQueueItem
- InsertMetaSignupSession
- CreditTransaction
- MultibmIgnoredWaba
- section-status-badge.tsx
- UpdateCampaign
- ClientBlacklistTrigger
- InsertCloudTemplate
- legal-publico.tsx
- multibmBalanceGuard.test.ts
- hover-card.tsx
- popover.tsx
- slider.tsx

## God Nodes (most connected - your core abstractions)
1. `DatabaseStorage` - 431 edges
2. `IStorage` - 416 edges
3. `registerRoutes()` - 185 edges
4. `useToast()` - 143 edges
5. `apiRequest()` - 120 edges
6. `cn()` - 110 edges
7. `Button` - 77 edges
8. `Badge()` - 66 edges
9. `Card` - 65 edges
10. `CardContent` - 64 edges

## Surprising Connections (you probably didn't know these)
- `registerRoutes()` --indirect_call--> `sender()`  [INFERRED]
  server/routes.ts → tests/multibmTemplateCluster.test.ts
- `registerRoutes()` --indirect_call--> `displayName()`  [INFERRED]
  server/routes.ts → client/src/lib/accountUtils.ts
- `CampaignDetail()` --references--> `jspdf`  [EXTRACTED]
  client/src/pages/campaign-detail.tsx → package.json
- `setupVite()` --references--> `express`  [EXTRACTED]
  server/vite.ts → package.json
- `registerAudienceRoutes()` --indirect_call--> `res()`  [INFERRED]
  server/revenue/audienceRoutes.ts → tests/infobipSendRetryTimeout.test.ts

## Import Cycles
- 3-file cycle: `client/src/hooks/use-auth.tsx -> client/src/lib/queryClient.ts -> client/src/lib/vendor-mask.ts -> client/src/hooks/use-auth.tsx`

## Communities (229 total, 82 thin omitted)

### Community 2 - "NPM Runtime Dependencies"
Cohesion: 0.02
Nodes (85): dependencies, archiver, bcrypt, class-variance-authority, clsx, cmdk, connect-pg-simple, date-fns (+77 more)

### Community 3 - "Badge and Card UI"
Cohesion: 0.21
Nodes (14): isSmtpConfigComplete(), parseRecipientsCsv(), sendAlertEmail(), SmtpConfig, actorKey(), clientIp(), CONFIRM_THRESHOLD, Counter (+6 more)

### Community 4 - "Roles and Permissions"
Cohesion: 0.03
Nodes (84): RFC-4180, mapInfobipButtonsToLocal(), mapInfobipTemplateToLocal(), CREATABLE_ROLES, hasPermission(), Permission, PERMISSIONS, REQUIRED_PARENT_ROLES (+76 more)

### Community 5 - "Schema Status Enums"
Cohesion: 0.02
Nodes (110): bmClientAssignments, BmQuality, bmQualityEnum, BmStatus, bmStatusEnum, CampaignStatus, campaignStatusEnum, ChipActivationStatus (+102 more)

### Community 6 - "Accordion and Dialog UI"
Cohesion: 0.03
Nodes (67): AccountServiceRow, BmAssignmentClientRow, MultibmBmFailureStat, MultibmBmMetrics, MultibmClientMetrics, MultibmMonitoring, MultibmVolumePoint, PaginatedResult (+59 more)

### Community 7 - "Account Management Page"
Cohesion: 0.10
Nodes (28): assembleTemplate(), buildComposeSystemPrompt(), buildGenerateSystemPrompt(), ComposerComposeResult, ComposerGenerateResult, ComposerMode, containsEmoji(), detectPlaceholderCount() (+20 more)

### Community 8 - "Button and Alert Dialog UI"
Cohesion: 0.13
Nodes (13): allowToken(), authInboundOwner(), contactsBody, contactSchema, hits, registerInboundRevenueRoutes(), salesBody, saleSchema (+5 more)

### Community 9 - "Reporting and Monitoring Types"
Cohesion: 0.05
Nodes (69): AdminUser, RevenueClientSelect(), RevenueScopeEmptyState(), StateCitySelect(), StateCitySelectProps, DropdownMenuContent, DropdownMenuItem, Progress (+61 more)

### Community 10 - "AI Panel and Tabs UI"
Cohesion: 0.08
Nodes (31): ACCEPTED_MIMES, profileFormSchema, ProfileFormValues, ProfileResponse, SenderProfileSheetProps, StatusBadge(), StatusBadgeProps, StatusTone (+23 more)

### Community 11 - "App Routing and Auth Context"
Cohesion: 0.20
Nodes (6): db, dispatch(), sender(), sendMock, storageHandlers, Sub

### Community 12 - "Infobip API Integration"
Cohesion: 0.07
Nodes (58): buildAuthHeaders(), buildButtonsArray(), buildCarouselCard(), buildHeaderComponent(), buildHeaders(), buildSendButtonsPayload(), buscarRelatorio(), buscarSaldo() (+50 more)

### Community 13 - "Build Tooling Dependencies"
Cohesion: 0.09
Nodes (23): devDependencies, autoprefixer, drizzle-kit, esbuild, postcss, @replit/vite-plugin-cartographer, @replit/vite-plugin-dev-banner, @replit/vite-plugin-runtime-error-modal (+15 more)

### Community 14 - "Template Utilities and Form UI"
Cohesion: 0.05
Nodes (60): BlockEditor(), Field(), ImageField(), Patch, QuizRow, TagList(), addBlock(), blankConfig() (+52 more)

### Community 15 - "Project Memory Notes"
Cohesion: 0.09
Nodes (8): The AI agent's prompt is composed from exactly two account-scoped sources, Tone of voice / extra instructions count as content on their own, Every automatic free-form send must pass the shared guard, Inbound API-service campaigns require a template, Multi-BM monitoring & alerts (Task #337), Templates Validados: validate on one BM, then rollout to the rest, Safe date formatting, SSRF guard for user-supplied URL fetches

### Community 16 - "Sender Profile and Notices UI"
Cohesion: 0.23
Nodes (19): activeRunCount(), activeRuns, dailyBudgetSnapshot(), pruneWebhookBuckets(), registerActiveRun(), registerBudgetSend(), _resetDailyBudgetForTests(), revertBudgetSend() (+11 more)

### Community 17 - "Infobip Sender Storage"
Cohesion: 0.06
Nodes (4): InfobipSender, InsertInfobipSender, InsertSenderAssignment, SenderAssignment

### Community 18 - "Sidebar Layout UI"
Cohesion: 0.07
Nodes (49): AppSidebar(), ROLE_ICON, ResizableHandle(), ResizablePanelGroup(), SheetContent, SheetContentProps, SheetDescription, SheetFooter() (+41 more)

### Community 20 - "CLAUDE.md Documentation"
Cohesion: 0.05
Nodes (36): Agendamento de Campanhas, Agente de IA (Respostas Automáticas a Mensagens Recebidas / MO), Ambiente atual (Claude Code / servidor dedicado), API Token por Serviço (API de entrada), Armazenamento de mídia, Arquitetura, Atendimento × Disparo (permissão aditiva, não papel exclusivo), Atribuição por sender (não por BM) (+28 more)

### Community 21 - "Multi-BM Validated Templates UI"
Cohesion: 0.12
Nodes (28): activationBlockReason(), enterFromEvents(), enterFromSegment(), exitExecution(), insertExecutions(), parseSteps(), parseTrigger(), processDue() (+20 more)

### Community 22 - "WABA Template Storage"
Cohesion: 0.08
Nodes (4): InsertTemplateAccountPreset, InsertWabaTemplate, TemplateAccountPreset, WabaTemplate

### Community 23 - "Auth Middleware and Checknumber"
Cohesion: 0.12
Nodes (10): buildApp(), createCalls, deleteCalls, infobipState, listCalls, sessionState, storageHandlers, storageState (+2 more)

### Community 24 - "HubSpot Auth and Timeline"
Cohesion: 0.10
Nodes (27): getHubspotOAuthConfig(), getValidAccessToken(), HubSpotAuthError, hubspotRefreshLocks, buildEventTemplateDefinition(), buildOnsmsLink(), getDeveloperConfig(), getPublicBaseUrl() (+19 more)

### Community 25 - "AI Agent Orchestration"
Cohesion: 0.05
Nodes (58): buildProfileSection(), buildSystemPrompt(), executeReplyFlush(), flushConversationReply(), handleInboundMessage(), InboundMessage, isTwoStageNegativeReply(), maybeSendTwoStagePreProgrammed() (+50 more)

### Community 26 - "admin-senders.tsx"
Cohesion: 0.04
Nodes (57): AgentConfigResponse, ApiKeyPresence, CompositorConfigResponse, GeneratorConfigResponse, messageForTestError(), PROVIDER_CARDS, ProviderKey, ProvidersTab() (+49 more)

### Community 27 - "Server Bootstrap and Blocklist"
Cohesion: 0.11
Nodes (17): pgPoolOptions, app, http, httpServer, IncomingMessage, Issue, log(), pgPool (+9 more)

### Community 28 - "Campaign Chat UI"
Cohesion: 0.07
Nodes (41): BusinessManager, countVars(), EditorForm, emptyForm, HeaderChoice, statusBadge(), ValidatedButton, ValidatedCoverage (+33 more)

### Community 29 - "Multi-BM Dispatch Logic"
Cohesion: 0.06
Nodes (42): BubbleMedia(), CardImageField(), isVideoUrl(), RcsPreview(), RcsPreviewProps, renderRcsPreviewText(), SUGGESTION_TYPE_OPTIONS, Avatar (+34 more)

### Community 30 - "DB Cleanup and Seed Scripts"
Cohesion: 0.11
Nodes (21): main(), hashPassword(), cleanupApiCampaignOrphanMedia(), CleanupReport, CleanupRow, MEDIA_DIR, safeUnlink(), defaultApiSettings (+13 more)

### Community 31 - "Bug: sistema de auto-registro de webhook nunca funcionou"
Cohesion: 0.18
Nodes (10): Achado relacionado (não bloqueante, sem ação necessária agora), Bug: sistema de auto-registro de webhook nunca funcionou, Causa raiz: endpoint e schema errados, Como retomar isso numa sessão nova, Comparação: código atual vs. API real, Contexto / como foi descoberto, Eventos disponíveis por canal, Onde o código precisa mudar (+2 more)

### Community 33 - "Multi-BM Submission Storage"
Cohesion: 0.09
Nodes (4): MultibmPhysicalSubmission, MultibmTemplateSubmissionWithBm, InsertMultibmTemplateSubmission, MultibmTemplateSubmission

### Community 34 - "Admin Logs UI"
Cohesion: 0.16
Nodes (6): ICON, NoticeBannerProps, VARIANT, useNotices(), InsertSystemNotice, SystemNotice

### Community 35 - "Media Storage Utilities"
Cohesion: 0.15
Nodes (21): assertPublicHost(), deleteMediaObject(), DownloadedMedia, downloadMediaBuffer(), downloadMediaFromUrl(), ensureMediaDir(), extFromMime(), getUploadDir() (+13 more)

### Community 36 - "RCS API Client"
Cohesion: 0.25
Nodes (11): apiGet(), getNumber(), GetNumberError, GetNumberResult, getStatus(), GetStatusResult, setStatus(), apiGet() (+3 more)

### Community 37 - "TypeScript Configuration"
Cohesion: 0.10
Nodes (19): compilerOptions, allowImportingTsExtensions, baseUrl, esModuleInterop, incremental, jsx, lib, module (+11 more)

### Community 38 - "Menubar UI Component"
Cohesion: 0.12
Nodes (11): Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut() (+3 more)

### Community 39 - "Shadcn UI Config"
Cohesion: 0.12
Nodes (16): aliases, components, hooks, lib, ui, utils, rsc, $schema (+8 more)

### Community 40 - "Sidebar and Branding Context"
Cohesion: 0.14
Nodes (26): applyBrandColors(), applyPalette(), applyVars(), BrandingConfig, BrandingContext, BrandingContextValue, BrandingProvider(), DEFAULT_BRANDING (+18 more)

### Community 41 - "Toast and Notice System"
Cohesion: 0.16
Nodes (12): ButtonProps, buttonVariants, Calendar(), CalendarProps, Pagination(), PaginationContent, PaginationEllipsis(), PaginationItem (+4 more)

### Community 42 - "Chart UI Component"
Cohesion: 0.20
Nodes (7): ChartConfig, ChartContainer, ChartContext, ChartContextProps, ChartLegendContent, ChartTooltipContent, THEMES

### Community 43 - "HubSpot Action Sync"
Cohesion: 0.19
Nodes (13): checkHubspotActionSync(), currentHash, HubspotActionSyncState, HubspotActionSyncStatus, state, buildExpectedCanonicalShape(), CanonicalActionShape, CanonicalDependency (+5 more)

### Community 45 - "Button, Calendar, Pagination UI"
Cohesion: 0.08
Nodes (31): xlsx, requireAdminOrOperator(), requireModerationAccess(), requireUserManager(), verifyPassword(), buildOnsmsSubscriptionId(), getWebhookEnvSuffix(), normalizeWebhookStatus() (+23 more)

### Community 46 - "Multi-BM Template Storage"
Cohesion: 0.19
Nodes (3): MultibmTemplateWithSubmissions, InsertMultibmTemplate, MultibmTemplate

### Community 49 - "Carousel UI Component"
Cohesion: 0.10
Nodes (19): Carousel, CarouselApi, CarouselContent, CarouselContext, CarouselContextProps, CarouselItem, CarouselNext, CarouselOptions (+11 more)

### Community 50 - "Chip Provisioning Clients"
Cohesion: 0.23
Nodes (14): ALLOWED_RESULT_HOSTS, CheckNumberStatusResponse, CheckNumberTaskResponse, downloadWaFilterResults(), extractFileFromZip(), getWaFilterStatus(), parseCsv(), submitWaFilter() (+6 more)

### Community 51 - "Multi-BM Health Sync"
Cohesion: 0.17
Nodes (16): InfobipSenderFromApi, diagnoseMultibmForService(), effectiveBmDailyLimit(), mapConnectionStatusToBanRestriction(), MultibmDiagnosticItem, MultibmDiagnosticKind, MultibmDiagnosticsResult, MultibmHealthSyncResult (+8 more)

### Community 52 - "Business Manager Storage"
Cohesion: 0.19
Nodes (3): BusinessManagerWithStats, BusinessManager, InsertBusinessManager

### Community 53 - "HubSpot Dispatch Queue Storage"
Cohesion: 0.05
Nodes (44): EndpointCard(), EndpointCardProps, Badge(), BadgeProps, badgeVariants, TabsContent, TabsList, TabsTrigger (+36 more)

### Community 56 - "Multi-BM Dashboard UI"
Cohesion: 0.06
Nodes (41): ProtectedRoute(), ErrorBoundaryProps, ErrorBoundaryState, ThemeToggle(), AuthContext, AuthContextType, AuthProvider(), AuthUser (+33 more)

### Community 62 - "API Token Storage"
Cohesion: 0.17
Nodes (5): aiState, buildApp(), forwardCalls, storageHandlers, storageState

### Community 63 - "Multi-BM Webhook Tests"
Cohesion: 0.19
Nodes (12): FilterPill(), FilterPillProps, Account, accountLabel(), buildDateRange(), CommittedParams, fmt(), PeriodPreset (+4 more)

### Community 65 - "utils.ts"
Cohesion: 0.23
Nodes (10): ByTemplate, CrmDispatchesResponse, CrmDispatchItem, DedupEvent, DedupStats, EnviosCrm(), formatDateTime(), formatPhone() (+2 more)

### Community 66 - "Context Menu UI"
Cohesion: 0.20
Nodes (9): ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut(), ContextMenuSubContent (+1 more)

### Community 67 - "Dropdown Menu UI"
Cohesion: 0.25
Nodes (7): DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut(), DropdownMenuSubContent, DropdownMenuSubTrigger

### Community 69 - "Multi-BM Message Storage"
Cohesion: 0.10
Nodes (22): AccountUpdateValue, drainMetaWebhookQueue(), extractInboundText(), handleAccountUpdate(), handleInboundMessages(), handlePhoneQuality(), handleStatuses(), handleTemplateUpdate() (+14 more)

### Community 72 - "Multi-BM Template Cluster Tests"
Cohesion: 0.18
Nodes (11): Como retomar isto numa sessão nova, ⚠️ CONFLITOS/LACUNAS mapeados no código atual (resolver na implementação), Contexto e decisão do dono (redesenho — substitui uma proposta anterior de, Guardrails, Modelo definido pelo dono, Multi-BM sidebar (CANCELADA) + HubSpot compatibility (pendente), Ordem recomendada de execução, PARTE A — UX: Multi-BM na barra lateral com sub-itens (+3 more)

### Community 73 - "scripts"
Cohesion: 0.06
Nodes (49): decryptSecret(), encryptSecret(), getKey(), runAllTotvsSyncs(), createSchema, fetchMetaSpend(), spendByPlatform(), SpendRow (+41 more)

### Community 74 - "dispatch"
Cohesion: 0.20
Nodes (5): TermsCurrentResponse, TermsCurrentResponse, TermsCurrentResponse, InsertTermsDocument, TermsDocument

### Community 75 - "Activity Log Storage"
Cohesion: 0.20
Nodes (6): groupDailyLimit(), limitGroupKey(), db, dispatch(), enviarMensagemTemplateMock, storageHandlers

### Community 76 - "Breadcrumb UI Component"
Cohesion: 0.28
Nodes (3): EnrichedAcceptance, InsertTermsAcceptance, TermsAcceptance

### Community 77 - "Drawer UI Component"
Cohesion: 0.25
Nodes (7): Breadcrumb, BreadcrumbEllipsis(), BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator()

### Community 78 - "Navigation Menu UI"
Cohesion: 0.25
Nodes (7): NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle, NavigationMenuViewport

### Community 80 - "Account Service Balance Storage"
Cohesion: 0.18
Nodes (10): Achados da análise (já verificados no código — corrigir nesta ordem), ALTO, Como retomar isto numa sessão nova, Contexto, CRÍTICO, Entregável, Guardrails, MÉDIO (+2 more)

### Community 84 - "AI Client Settings Storage"
Cohesion: 0.13
Nodes (5): AdminUpsertAiClientSettingsInput, AiAgentConfig, AiClientSettings, AiMonthlyUsage, UpsertAiAgentConfigInput

### Community 85 - "Vendor Mask Exposure Tests"
Cohesion: 0.22
Nodes (5): buildApp(), EnviarFn, fetchCalls, HubSpotAuthError, storageState

### Community 87 - "File Upload Hook"
Cohesion: 0.38
Nodes (6): IMPORTANT: This function receives the UppyFile object from Uppy., IMPORTANT: Send JSON metadata, NOT the file itself., UploadMetadata, UploadResponse, useUpload(), UseUploadOptions

### Community 88 - "Multi-BM Validated Template Storage"
Cohesion: 0.29
Nodes (6): AI inbound (MO) attribution depends on dispatch-time ownership, MO attribution must cover BOTH dispatch tracks (WA OFICIAL + Multi-BM), MO dedupe must be DB-atomic, and empty ids must be null, Per-dispatch reply cap: conversation lookup must include LIMIT_REACHED, Persist the inbound BEFORE any no-send gate; exclude it from prompt history by row id, Window is measured from the DISPATCH (REVERSED 2026-07-14 — post-billing model)

### Community 90 - "Template Media Storage"
Cohesion: 0.08
Nodes (36): check(), main(), novoUser(), db, pool, poolMax, describeNetworkError(), fetchInvoicesPage() (+28 more)

### Community 91 - "AI Agent Safeguards Tests"
Cohesion: 0.24
Nodes (6): calls, optOutCalls, setupCta(), setupHappyPath(), setupTwoStage(), st

### Community 93 - "OTP Input UI Component"
Cohesion: 0.33
Nodes (5): InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, input-otp

### Community 95 - "toggle-group.tsx"
Cohesion: 0.33
Nodes (3): ProfileResponse, ClientBusinessProfile, UpsertClientBusinessProfileInput

### Community 102 - "whatsapp-template-preview.tsx"
Cohesion: 0.05
Nodes (44): requireAdmin(), BackfillReport, isBackfillRunning(), runBackfill(), sleep(), attributeSchema, registerRevenueContactRoutes(), upsertSchema (+36 more)

### Community 103 - "AI Conversation Messages"
Cohesion: 0.10
Nodes (6): UserWithServices, BmClientAssignment, InsertService, InsertUser, Service, User

### Community 105 - "Object Uploader Component"
Cohesion: 0.35
Nodes (13): ClusterSignature, computeSignature(), countQuickReplies(), countTemplateVars(), extractButtonUrlPrefix(), extractUrlButtonDynamic(), findUrlButton(), normalizeHeaderMarker() (+5 more)

### Community 106 - "multibmDispatchPerContactParams.test.ts"
Cohesion: 0.25
Nodes (5): db, dispatch(), enviarMensagemTemplateMock, SendCall, storageHandlers

### Community 107 - "HubSpot Action Registration"
Cohesion: 0.50
Nodes (3): baseTrimmed, definition, isUpdate

### Community 108 - "Sender Stats Queries"
Cohesion: 0.07
Nodes (59): ConfigResponse, MonthlyUsageResponse, ConfigResponse, AiProviderValue, ApiKeyPresence, IMAGE_MODELS, IMAGE_PROVIDERS, ProviderModelPicker() (+51 more)

### Community 109 - "dispatch"
Cohesion: 0.40
Nodes (4): A regra (comprovada ao vivo, 2026-07-14), Armadilha conhecida (custou uma tarde), Infobip: uma assinatura só — produção encaminha pro dev, O modelo vigente

### Community 111 - "User & Service Queries"
Cohesion: 0.40
Nodes (4): Multi-BM template fallback (T09) & per-second throttle (T01), Per-second throttle, Retry is intentionally absent, Template fallback resolution

### Community 112 - "Template Preset Storage"
Cohesion: 0.50
Nodes (3): Do NOT migrate to `exceljs` as a drop-in replacement, Remediating the `xlsx` (SheetJS) npm advisory, The fix

### Community 114 - "Credit Transactions"
Cohesion: 0.08
Nodes (27): balanceCache, BalanceCacheEntry, BalanceCheck, checkMultibmBalance(), getMinBalanceFloor(), invalidateBalanceCache(), notifyAdminsLowBalance(), bmNextSlotAt (+19 more)

### Community 115 - "freeform-send-guard.md"
Cohesion: 0.07
Nodes (52): express, express-session, requireAuth(), SessionData, ALLOWED_ROLES, effectiveOwnerId(), forward(), forwardText() (+44 more)

### Community 116 - "segmented-control.tsx"
Cohesion: 0.22
Nodes (12): buildMappedContacts(), BuildMappedContactsResult, ColumnMapping, ContactMappingError, MappedContact, BTN_URL_SUFFIX_ERROR_LABELS, BtnUrlSuffixResult, canonicalizeForCompare() (+4 more)

### Community 118 - "mailer.ts"
Cohesion: 0.06
Nodes (90): ConfigResponse, EMPTY_TERM_FORM, PERSONA_FIELDS, TermFormState, BulkImportDialog(), BulkImportDialogProps, BulkImportResult, CampaignChatProps (+82 more)

### Community 122 - "HubspotAlertState"
Cohesion: 0.20
Nodes (8): Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut()

### Community 123 - "multibmCampaignCreationAtomic.test.ts"
Cohesion: 0.06
Nodes (94): Router(), AgentTab(), ClientsTab(), ServicesTab(), CompositorTab(), GeneratorTab(), TwoStageTab(), SenderProfileSheet() (+86 more)

### Community 124 - "multibmPauseResumeCancel.test.ts"
Cohesion: 0.11
Nodes (25): ClientCallbackContact, ClientCallbackPayload, sendClientCallback(), dispatchHubspotMessageStandalone(), DispatchStandaloneResult, InfobipSendResult, ordenarSenders(), parseRetryAfterMs() (+17 more)

### Community 130 - "AccountServiceBalance"
Cohesion: 0.10
Nodes (20): 1. Fluxograma do ciclo de vida, 2. Âncoras de código por etapa, 3. Walkthrough do exemplo: lote de 1.000 números · 1 BM · 10 senders · 100/dia cada, 4. Achados da auditoria, 5. Simulação executável (12/07/2026) — `tests/multibmDispatchSimulation.test.ts`, 6. Confirmação em dados reais (banco dev, 12/07/2026, somente SELECT), 7. Barragens — tabela consolidada e priorização, 8. Reforma implementada (12/07/2026) — R1/R2/R3 (+12 more)

### Community 132 - "TemplatePreset"
Cohesion: 0.18
Nodes (7): db, enviarMensagemTemplateMock, loadDispatch(), Msg, seedWabas(), storageHandlers, submissionFor()

### Community 135 - "multibmRateLimitSharedAcrossCampaigns.test.ts"
Cohesion: 0.25
Nodes (4): callTimestamps, db, enviarMensagemTemplateMock, storageHandlers

### Community 136 - "drawer.tsx"
Cohesion: 0.25
Nodes (6): DrawerContent, DrawerDescription, DrawerFooter(), DrawerHeader(), DrawerOverlay, DrawerTitle

### Community 138 - "multibmValidateGuard.test.ts"
Cohesion: 0.25
Nodes (8): buildCampaignPreview(), CampaignPreviewLinks, CampaignPreviewPayload, CampaignPreviewRcs, CampaignPreviewStage, CampaignPreviewTwoStage, ParamsSource, parseParams()

### Community 139 - "multibmDailyLimitByBm.test.ts"
Cohesion: 0.29
Nodes (4): sessionState, state, storageHandlers, templates

### Community 140 - "multibmDistributionStrategy.test.ts"
Cohesion: 0.07
Nodes (46): AiChatTurn, AiProvider, AiProviderError, apiKeyFor(), classifyGoogleImageError(), fetchWithTimeout(), generateAiReply(), generateAnthropic() (+38 more)

### Community 141 - "multibmHealthSyncBanDetection.test.ts"
Cohesion: 0.40
Nodes (3): db, listarSendersFromApiMock, storageHandlers

### Community 143 - "moderationDispatchGuard.test.ts"
Cohesion: 0.40
Nodes (3): db, enviarMensagemTemplateMock, storageHandlers

### Community 148 - "multibmDispatchMarketing.test.ts"
Cohesion: 0.29
Nodes (4): db, dispatch(), storageHandlers, Sub

### Community 150 - "multibmDispatchResume.test.ts"
Cohesion: 0.29
Nodes (4): db, dispatch(), enviarMensagemTemplateMock, storageHandlers

### Community 152 - "multibmDistributionStrategy.test.ts"
Cohesion: 0.10
Nodes (31): isOptOutMessage(), normalizeOptOutText(), registrarOptOutSeGatilho(), isInControlGroup(), registerRevenueDashboardRoutes(), getGlobalContactByPhone(), canSendTo(), capCache (+23 more)

### Community 153 - "scheduledCampaignCreationGuard.test.ts"
Cohesion: 0.11
Nodes (21): COMBINING_MARKS_RE, DEFAULT_PROHIBITED_TERMS, escapeRegex(), findProhibitedTermsInParams(), findTermsInText(), invalidateProhibitedTermsCache(), normalizeForTermMatch(), termMatches() (+13 more)

### Community 154 - "quietHours.ts"
Cohesion: 0.21
Nodes (13): computeQuietHour(), currentHourSaoPaulo(), isQuietNow(), isQuietNowCachedSync(), lastVerdict, loadConfig(), parseHour(), QuietConfig (+5 more)

### Community 155 - "fmt"
Cohesion: 0.12
Nodes (18): AdminLogs(), fmt(), HubspotRow, HubspotTab(), InfobipRow, InfobipTab(), KIND_LABEL, LogSource (+10 more)

### Community 156 - "senderProfiles.test.ts"
Cohesion: 0.40
Nodes (3): sessionState, state, storageHandlers

### Community 158 - "mailer.ts"
Cohesion: 0.06
Nodes (47): buildRcsBatchBody(), mapCard(), mapMessage(), mapSuggestions(), RcsBatchResult, RcsMailingParams, RcsOutBase, RcsOutMessage (+39 more)

### Community 159 - "ObjectUploader.tsx"
Cohesion: 0.05
Nodes (64): requireTermsAccepted(), resolveAccountRootId(), buildSendComponents(), CloudDispatchResult, cloudIntervalMs(), computeCloudFinalizationResults(), connectionNextSlotAt, dispatchCloudCampaign() (+56 more)

### Community 160 - "ClientBusinessProfile"
Cohesion: 0.11
Nodes (17): @esbuild-kit/esm-loader, license, name, optionalDependencies, bufferutil, overrides, drizzle-kit, scripts (+9 more)

### Community 163 - ".getUserById"
Cohesion: 0.50
Nodes (3): baseBody, ENC_KEY, state

### Community 164 - ".attachSubmissions"
Cohesion: 0.22
Nodes (3): InsertCampaign, InsertTwoStageConfig, TwoStageConfig

### Community 166 - "blocklist.ts"
Cohesion: 0.31
Nodes (8): applyBlocklist(), applySync(), CachedTerm, escapeRegex(), refreshCacheIfNeeded(), shouldSkipKey(), SKIP_KEYS, syncCache

### Community 169 - "app-sidebar.tsx"
Cohesion: 0.21
Nodes (9): buttonKind(), defaultLabel(), normalizeButtons(), NormalizeButtonsOptions, PreviewButton, PreviewHeader, RawButton, WhatsappMessagePreview() (+1 more)

### Community 173 - "smsAdapter.ts"
Cohesion: 0.29
Nodes (4): db, dispatch(), enviarMensagemTemplateMock, storageHandlers

### Community 174 - "ActivityLog"
Cohesion: 0.28
Nodes (4): inferActivityLogOrigin(), ActivityLog, ActivityLogOrigin, InsertActivityLog

### Community 175 - "UpdateCampaign"
Cohesion: 0.33
Nodes (6): buildApp(), get(), sessionState, statusNasDuasRotas(), storageHandlers, users

### Community 176 - "multibmDailyLimitByBm.test.ts"
Cohesion: 0.29
Nodes (4): db, dispatch(), enviarMensagemTemplateMock, storageHandlers

### Community 177 - "multibmSyncReconciliation.test.ts"
Cohesion: 0.20
Nodes (7): buildApp(), criarTemplateMock, listarSendersFromApiMock, listarTemplatesPorWabaMock, sessionState, state, storageHandlers

### Community 178 - ".getBusinessManagers"
Cohesion: 0.12
Nodes (29): classifyPhoneCell(), COLUMN_ALIASES, CPF_HEADERS, cpfChecksumOk(), CsvParseResult, findColumns(), norm(), parseDate() (+21 more)

### Community 179 - ".getCampaigns"
Cohesion: 0.20
Nodes (7): buildApp(), db, infobipState, sessionState, storageHandlers, Sub, Tpl

### Community 184 - "toast.tsx"
Cohesion: 0.24
Nodes (10): Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastTitle, toastVariants (+2 more)

### Community 186 - "Service"
Cohesion: 0.40
Nodes (3): vite, setupVite(), viteLogger

### Community 187 - "sheet.tsx"
Cohesion: 0.22
Nodes (7): buildApp(), criarCalls, handlers, infobipState, sessionState, St, validBody

### Community 190 - "hubspotWorkflowAction.test.ts"
Cohesion: 0.29
Nodes (4): buildApp(), enviarCalls, EnviarMensagemArgs, storageState

### Community 191 - "multibmValidateGuard.test.ts"
Cohesion: 0.29
Nodes (5): buildApp(), criarTemplateMock, sessionState, state, storageHandlers

### Community 192 - "twoStageReport.test.ts"
Cohesion: 0.50
Nodes (4): baixarCsv(), CONTACTS, get(), storageHandlers

### Community 193 - "scheduledDispatchWorker.test.ts"
Cohesion: 0.40
Nodes (3): sessionState, state, storageHandlers

### Community 196 - "vendor-mask.ts"
Cohesion: 0.29
Nodes (4): atomicState, buildApp(), sessionState, storageHandlers

### Community 198 - "segmented-control.tsx"
Cohesion: 0.29
Nodes (4): buildApp(), dispatchInfobipCampaignMock, sessionState, storageHandlers

### Community 200 - "templateUtils.ts"
Cohesion: 0.33
Nodes (4): buildApp(), sessionState, state, storageHandlers

### Community 203 - "waOnsmsReceptivo.test.ts"
Cohesion: 0.33
Nodes (4): BUTTONS, db, enviarMock, storageHandlers

### Community 205 - "metaSignupExchange.test.ts"
Cohesion: 0.50
Nodes (3): ENC_KEY, EXCHANGE_BODY, state

### Community 207 - "multibmPauseResumeCancel.test.ts"
Cohesion: 0.29
Nodes (5): buildApp(), enviarMensagemTemplateMockRef, sessionState, state, storageHandlers

### Community 208 - "brandingPublicRoutes.test.ts"
Cohesion: 0.33
Nodes (4): adminBranding, buildApp(), revendaBranding, storageHandlers

### Community 213 - "fileSignatureValidation.test.ts"
Cohesion: 0.33
Nodes (4): detectFileSignature(), buildApp(), sessionState, storageHandlers

### Community 220 - "section-status-badge.tsx"
Cohesion: 0.07
Nodes (31): CampaignComposer(), composerErrorMessage(), columnTargetLabel(), ContactFilePreviewTable(), VariableMappingPanel(), RcsContentEditor(), RcsContentEditorProps, RcsContentType (+23 more)

### Community 232 - "popover.tsx"
Cohesion: 0.10
Nodes (22): ScrollArea, ScrollBar, formatDateTimeSeconds(), ActivityLogs(), ORIGIN_META, ORIGIN_OPTIONS, OriginFilter, PERIOD_OPTIONS (+14 more)

## Knowledge Gaps
- **1272 isolated node(s):** `ObjectUploaderProps`, `ConfigResponse`, `MonthlyUsageResponse`, `ConfigResponse`, `PERSONA_FIELDS` (+1267 more)
  These have ≤1 connection - possible missing edges or undocumented components.
- **82 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.

## Suggested Questions
_Questions this graph is uniquely positioned to answer:_

- **Why does `DatabaseStorage` connect `Database Storage Implementation` to `Storage Interface Methods`, `TemplateGeneratorConfig`, `Accordion and Dialog UI`, `ClientBusinessProfile`, `MultibmAlertState`, `ApiToken`, `TemplatePreset`, `Infobip Sender Storage`, `scheduledDispatchWorker.test.ts`, `Campaign Storage Methods`, `SenderProfile`, `Service`, `WABA Template Storage`, `CompositorConfig`, `multibmDistributionStrategy.test.ts`, `User and Sender Assignment Storage`, `Multi-BM Submission Storage`, `infobipDispatch.ts`, `Admin Logs UI`, `.attachSubmissions`, `HubspotAlertState`, `vendor-mask.ts`, `normalizeBrPhone`, `fileSignatureValidation.test.ts`, `Branding Storage Methods`, `Multi-BM Template Storage`, `ActivityLog`, `Infobip Config Storage`, `WABA Message Storage`, `cloudTemplateSync.ts`, `Business Manager Storage`, `AI Conversation Storage`, `WA Filter Batch Storage`, `btnUrlSuffix.ts`, `Toast UI Component`, `BM Sender Storage`, `Chip Activation Storage`, `HubSpot Connection Storage`, `AccountServiceBalance`, `RCS Sender Storage`, `.getUserById`, `UpdateCampaign`, `Knowledge Base Storage`, `RCS Config Storage`, `RCS Message Storage`, `dispatch`, `Breadcrumb UI Component`, `AiConversationMessage`, `.listAllSendersWithStats`, `HubSpot Execute Diagnostics`, `Blocklist Term Storage`, `CampaignTermConfirmation`, `Status Mapping Storage`, `AI Client Settings Storage`, `MetaWebhookQueueItem`, `InsertMetaSignupSession`, `vendor-mask.ts`, `.getCampaignWithContacts`, `CreditTransaction`, `Multi-BM Marketing Dispatch Tests`, `MultibmIgnoredWaba`, `ClientBlacklistTrigger`, `Column Keyword Storage`, `AI Agent Config Storage`, `.getMultibmMonitoring`, `.getCampaigns`, `toggle-group.tsx`, `HubSpot Alert Config Storage`, `Multi-BM Alert Config Storage`, `Multi-BM Config Storage`, `AI Conversation Messages`, `HubSpot Timeline Template Storage`, `.getServices`, `InsertCloudTemplate`, `fileSignatureValidation.test.ts`?**
  _High betweenness centrality (0.104) - this node is a cross-community bridge._
- **Why does `registerRoutes()` connect `Button, Calendar, Pagination UI` to `Badge and Card UI`, `Roles and Permissions`, `Schema Status Enums`, `Account Management Page`, `Button and Alert Dialog UI`, `multibmValidateGuard.test.ts`, `App Routing and Auth Context`, `multibmDistributionStrategy.test.ts`, `Infobip API Integration`, `Sender Profile and Notices UI`, `Multi-BM Validated Templates UI`, `HubSpot Auth and Timeline`, `AI Agent Orchestration`, `scheduledCampaignCreationGuard.test.ts`, `Server Bootstrap and Blocklist`, `multibmDistributionStrategy.test.ts`, `DB Cleanup and Seed Scripts`, `ObjectUploader.tsx`, `mailer.ts`, `Media Storage Utilities`, `RCS API Client`, `blocklist.ts`, `Sidebar and Branding Context`, `HubSpot Action Sync`, `Chip Provisioning Clients`, `Multi-BM Health Sync`, `.getBusinessManagers`, `scripts`, `fileSignatureValidation.test.ts`, `Template Media Storage`, `whatsapp-template-preview.tsx`, `Object Uploader Component`, `Credit Transactions`, `freeform-send-guard.md`, `segmented-control.tsx`, `multibmCampaignCreationAtomic.test.ts`, `multibmPauseResumeCancel.test.ts`?**
  _High betweenness centrality (0.080) - this node is a cross-community bridge._
- **Why does `IStorage` connect `Storage Interface Methods` to `Database Storage Implementation`, `TemplateGeneratorConfig`, `Accordion and Dialog UI`, `ClientBusinessProfile`, `ApiToken`, `Infobip Sender Storage`, `scheduledDispatchWorker.test.ts`, `Campaign Storage Methods`, `SenderProfile`, `Service`, `WABA Template Storage`, `CompositorConfig`, `User and Sender Assignment Storage`, `Multi-BM Submission Storage`, `infobipDispatch.ts`, `Admin Logs UI`, `.attachSubmissions`, `normalizeBrPhone`, `fileSignatureValidation.test.ts`, `Branding Storage Methods`, `ActivityLog`, `Infobip Config Storage`, `Multi-BM Template Storage`, `WABA Message Storage`, `Business Manager Storage`, `TemplatePreset`, `AI Conversation Storage`, `WA Filter Batch Storage`, `btnUrlSuffix.ts`, `Toast UI Component`, `BM Sender Storage`, `Chip Activation Storage`, `HubSpot Connection Storage`, `RCS Sender Storage`, `AccountServiceBalance`, `Knowledge Base Storage`, `RCS Config Storage`, `RCS Message Storage`, `dispatch`, `Breadcrumb UI Component`, `AiConversationMessage`, `HubSpot Execute Diagnostics`, `Blocklist Term Storage`, `CampaignTermConfirmation`, `Status Mapping Storage`, `AI Client Settings Storage`, `HubspotAlertState`, `MetaWebhookQueueItem`, `InsertMetaSignupSession`, `vendor-mask.ts`, `CreditTransaction`, `MultibmIgnoredWaba`, `Multi-BM Marketing Dispatch Tests`, `MultibmAlertState`, `ClientBlacklistTrigger`, `Column Keyword Storage`, `AI Agent Config Storage`, `toggle-group.tsx`, `HubSpot Alert Config Storage`, `Multi-BM Alert Config Storage`, `Multi-BM Config Storage`, `UpdateCampaign`, `InsertCloudTemplate`, `AI Conversation Messages`, `HubSpot Timeline Template Storage`, `fileSignatureValidation.test.ts`?**
  _High betweenness centrality (0.074) - this node is a cross-community bridge._
- **Are the 14 inferred relationships involving `registerRoutes()` (e.g. with `displayName()` and `requireAdmin()`) actually correct?**
  _`registerRoutes()` has 14 INFERRED edges - model-reasoned connections that need verification._
- **What connects `ObjectUploaderProps`, `IMPORTANT: This receives the file object - use file.name, file.size, file.type`, `ConfigResponse` to the rest of the system?**
  _1276 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `Storage Interface Methods` be split into smaller, more focused modules?**
  _Cohesion score 0.012738853503184714 - nodes in this community are weakly interconnected._
- **Should `Database Storage Implementation` be split into smaller, more focused modules?**
  _Cohesion score 0.015267175572519083 - nodes in this community are weakly interconnected._