# Graph Report - portalonsms2  (2026-08-20)

## Corpus Check
- 588 files · ~841,229 words
- Verdict: corpus is large enough that graph structure adds value.

## Summary
- 5696 nodes · 13380 edges · 343 communities (225 shown, 118 thin omitted)
- Extraction: 99% EXTRACTED · 1% INFERRED · 0% AMBIGUOUS · INFERRED: 180 edges (avg confidence: 0.76)
- Token cost: 0 input · 0 output

## Graph Freshness
- Built from commit: `9c2ea3f6`
- 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
- waCloudUsinaRoutes.ts
- rcsApi.ts
- WA Filter Batch Storage
- Multi-BM Dashboard UI
- Toast UI Component
- BM Sender Storage
- Chip Activation Storage
- HubSpot Connection Storage
- use-atendimento-stream.ts
- API Token Storage
- scripts
- Error Boundary Component
- webhookTokenTimingSafe.test.ts
- Context Menu UI
- Dropdown Menu UI
- enviarMensagemCtaUrl
- Multi-BM Message Storage
- mediaLimits.ts
- dispatchParity.test.ts
- Multi-BM Template Cluster Tests
- registerRoutes
- ContactFilePreviewTable
- Activity Log Storage
- templateGenerator.ts
- Drawer UI Component
- Navigation Menu UI
- RcsContentEditor
- Account Service Balance Storage
- signals.ts
- dashboard.tsx
- cloudTemplateSync.ts
- AI Client Settings Storage
- Vendor Mask Exposure Tests
- loadtest-multibm.ts
- File Upload Hook
- Multi-BM Validated Template Storage
- usina-multibm-dashboard.tsx
- Template Media Storage
- AI Agent Safeguards Tests
- clientBusinessProfile.test.ts
- OTP Input UI Component
- waOnsmsReceptivo.test.ts
- vendor-mask.ts
- prohibitedTerms.ts
- 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
- cloudHealthSync.ts
- User & Service Queries
- Template Preset Storage
- Build Script Allowlist
- Credit Transactions
- freeform-send-guard.md
- messageGuard.ts
- Infobip Template Header Rule
- mailer.ts
- Production Deploy Script
- Dev Deploy Script
- Post-Merge Hook Script
- HubspotAlertState
- multibmCampaignCreationAtomic.test.ts
- permissions.ts
- AccountServiceBalance
- TemplateGeneratorConfig
- TemplatePreset
- ProvidersTab
- urlSecurity.test.ts
- multibmRateLimitSharedAcrossCampaigns.test.ts
- drawer.tsx
- multibmPoolTruth.test.ts
- BmSender
- multibmDailyLimitByBm.test.ts
- usina-multibm-dashboard.tsx
- multibmHealthSyncBanDetection.test.ts
- fileSignatureValidation.test.ts
- moderationDispatchGuard.test.ts
- btnUrlSuffix.ts
- scheduledDispatchWorker.test.ts
- clientCallbackRetry.test.ts
- whatsapp-message-preview.tsx
- multibmSharedTierByMetaBm.test.ts
- section-status-badge.tsx
- RcsSender
- CompositorConfig
- multibmDistributionStrategy.test.ts
- scripts
- .attachSubmissions
- prohibitedTerms.ts
- senderProfiles.test.ts
- vendor-mask.ts
- mediaLimits.ts
- pages.ts
- ClientBusinessProfile
- messageGuard.ts
- Service
- .getUserById
- onboardingMotor.test.ts
- waOnsmsReceptivo.test.ts
- aiMonthlyCap.ts
- sheet.tsx
- leadAdsWebhook.ts
- app-sidebar.tsx
- bmNotices.ts
- MultibmMessage
- multibmBalanceGuard.ts
- smsAdapter.ts
- verify-coexistence-subscribe.ts
- UpdateCampaign
- AccountServiceBalance
- campaignPreview.ts
- waOnsmsReceptivo.test.ts
- brPhoneMatchCandidates
- leadsOrigensEmptyState.test.ts
- TemplatePreset
- onboardingFila.test.ts
- sheet.tsx
- toast.tsx
- multibmCampaignCreationAtomic.test.ts
- use-atendimento-stream.ts
- ClientBlacklistTrigger
- multibmHideAndIgnore.test.ts
- ObjectUploader.tsx
- hubspotWorkflowAction.test.ts
- WabaMessage
- twoStageReport.test.ts
- scheduledDispatchWorker.test.ts
- section-status-badge.tsx
- BusinessManager
- cloudDispatch.test.ts
- MultibmMessage
- segmented-control.tsx
- templateUtils.ts
- templateAdminOnly.test.ts
- usina-multibm-dashboard.tsx
- waCloudFrota.test.ts
- segmented-control.tsx
- metaSignupExchange.test.ts
- sendMultibmSampleMessage
- SmsConfig
- brandingPublicRoutes.test.ts
- SmsMessage
- bmNotices.ts
- templateMediaStorage.ts
- wa-cloud-send-result-contract.md
- deliveryStatsTiles.test.ts
- migrar-config-sinais.ts
- publicRoutes.ts
- CloudValidatedTemplate
- BmSender
- relatorioEstadoFinal.test.ts
- ChipActivation
- fmt
- pages.ts
- HubspotConnection
- scheduledDispatchWorker.test.ts
- TermsDocument
- PageEditor
- blockedLinks.ts
- legal-publico.tsx
- rcsApi.ts
- multibmBalanceGuard.test.ts
- acesso-publico.tsx
- popover.tsx
- onboardingLembretes.test.ts
- whatsapp-message-preview.tsx
- ClientBusinessProfile
- optOutBlacklist.ts
- use-notices.ts
- multibmBalanceGuard.ts
- metaWebhookWorker.test.ts
- toggle-group.tsx
- Análise do App (Meta) — roteiro dos vídeos e da submissão
- multibmDistributionStrategy.test.ts
- use-atendimento-stream.ts
- multibmTemplateVerdictSync.ts
- ColumnKeyword
- WaFilterServiceBatch
- multibmSyncReconciliation.test.ts
- waOnsmsReceptivo.test.ts
- outboundWebhooks.ts
- multibmTemplateSync.test.ts
- SecurityEvent
- Central de Atendimento — regras de negócio e arquitetura
- sanitizeOutput.ts
- video1-enviar-hello.sh
- video2-criar-template.sh
- SmsReply
- templateMediaStorage.ts
- ClientBlacklistTrigger
- templateRequestWorker.ts
- cloudDispatch.test.ts
- AiConversationMessage
- waOnsmsReceptivo.test.ts
- verify-coexistence-echo.ts
- centralAtendimentoRoutes.test.ts
- templateRequestAsync.test.ts
- CloudConnectionAuthorization
- moderationSampleFallback.test.ts
- multibmDistributionStrategy.test.ts
- leadAds.test.ts
- segmented-control.tsx
- workerWake.test.ts
- multibmDispatchMarketing.test.ts
- webhookTokenTimingSafe.test.ts
- verify-coexistence-echo.ts
- sanitizeOutput.ts
- hover-card.tsx
- messageGuard.ts
- optOutBlacklist.ts
- multibmDispatchPerContactParams.test.ts
- templateUsosMax.test.ts
- use-atendimento-stream.ts
- ColumnKeyword
- RcsReply
- SmsReply
- ClientBlacklistContact
- templateRequestWorker.ts
- templateRequestCloud.test.ts
- inbox-panel.tsx
- Contact
- cloudTemplateSync.ts
- HubspotPendingDispatch
- WaFilterServiceBatch
- chatFormRoutes.test.ts
- linkDoLote.test.ts
- audio-message.tsx
- .getUserById
- envios-crm.tsx
- cloudHealthSync.ts
- ApiToken
- InsertCampaign
- CloudTemplateRequest
- clientBusinessProfile.test.ts
- ActivityLog
- waCloudCoexistence.test.ts
- scripts
- onboardingSugestoes.ts
- AccountServiceBalance
- MultibmValidatedTemplate
- SenderProfile
- campanhaCloudLinkModes.test.ts
- waOnsmsReceptivo.test.ts
- SecurityEvent
- templatesPageChannels.test.ts
- AiAgentConfig
- moderationSampleFallback.test.ts
- CampaignTermConfirmation
- CannedResponse
- AiMonthlyUsage
- HubspotAlertState
- MultibmAlertState
- onboardingAcrescentarCanal.test.ts
- TemplatePreset
- templateUtils.ts
- verify-coexistence-echo.ts
- MetaWebhookQueueItem
- leadsGetFormBySlug.test.ts
- InsertMetaSignupSession
- CreditTransaction
- MultibmIgnoredWaba
- UpdateCampaign
- InsertCloudTemplate
- slider.tsx

## God Nodes (most connected - your core abstractions)
1. `DatabaseStorage` - 499 edges
2. `IStorage` - 472 edges
3. `useToast()` - 166 edges
4. `apiRequest()` - 150 edges
5. `cn()` - 108 edges
6. `Button` - 85 edges
7. `Badge()` - 74 edges
8. `storage` - 73 edges
9. `Card` - 73 edges
10. `CardContent` - 71 edges

## Surprising Connections (you probably didn't know these)
- `registerRoutes()` --indirect_call--> `payload()`  [INFERRED]
  server/routes.ts → tests/campanhaCloudLinkModes.test.ts
- `AtendimentoKanban()` --indirect_call--> `msg()`  [INFERRED]
  client/src/pages/atendimento-kanban.tsx → tests/atendimentoBus.test.ts
- `Branding()` --indirect_call--> `msg()`  [INFERRED]
  client/src/pages/branding.tsx → tests/atendimentoBus.test.ts
- `CampaignDetail()` --references--> `jspdf`  [EXTRACTED]
  client/src/pages/campaign-detail.tsx → package.json
- `Campaigns()` --indirect_call--> `msg()`  [INFERRED]
  client/src/pages/campaigns.tsx → tests/atendimentoBus.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 (343 total, 118 thin omitted)

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

### Community 3 - "Badge and Card UI"
Cohesion: 0.19
Nodes (17): assertPublicHost(), deleteMediaObject(), DownloadedMedia, downloadMediaBuffer(), downloadMediaFromUrl(), ensureMediaDir(), extFromMime(), getUploadDir() (+9 more)

### Community 4 - "Roles and Permissions"
Cohesion: 0.04
Nodes (50): RFC-4180, allRoles, brandingDir, brandingUpload, composerRateLimiter, contactsParseUpload, contactWithParamsSchema, createAccountSchema (+42 more)

### Community 5 - "Schema Status Enums"
Cohesion: 0.02
Nodes (132): AccessInvite, AdPlatformConnection, bmClientAssignments, BmQuality, bmQualityEnum, BmStatus, bmStatusEnum, CampaignStatus (+124 more)

### Community 6 - "Accordion and Dialog UI"
Cohesion: 0.14
Nodes (24): requireTermsAccepted(), resolveAccountRootId(), authorizeDispatchSchema, effectiveOwnerId(), ExchangeOpts, ExchangeResultado, exchangeSchema, metaWebhookRateLimiter (+16 more)

### Community 7 - "Account Management Page"
Cohesion: 0.05
Nodes (54): main(), decryptSecret(), encryptSecret(), getKey(), describeNetworkError(), fetchInvoicesPage(), getToken(), mapInvoice() (+46 more)

### Community 8 - "Button and Alert Dialog UI"
Cohesion: 0.08
Nodes (4): MultibmPhysicalSubmission, MultibmTemplateSubmissionWithBm, InsertMultibmTemplateSubmission, MultibmTemplateSubmission

### Community 9 - "Reporting and Monitoring Types"
Cohesion: 0.04
Nodes (51): AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarFallback, AvatarImage, MultibmSender, MySendersMultibm() (+43 more)

### Community 10 - "AI Panel and Tabs UI"
Cohesion: 0.06
Nodes (74): express, escolher(), fechou(), main(), sorteioRespostas(), TOTAL, VERDADE, aplicarPesos() (+66 more)

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

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

### Community 13 - "Build Tooling Dependencies"
Cohesion: 0.08
Nodes (49): buscarSaldo(), balanceCache, BalanceCacheEntry, BalanceCheck, checkMultibmBalance(), getMinBalanceFloor(), invalidateBalanceCache(), notifyAdminsLowBalance() (+41 more)

### Community 14 - "Template Utilities and Form UI"
Cohesion: 0.08
Nodes (40): addBlock(), blankConfig(), BLOCK_LABEL, BlockType, clone(), draftFromPage(), draftFromTemplate(), draftProblems() (+32 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.05
Nodes (55): BaseLiberacao, BusinessManager, countVars(), EditorForm, emptyForm, HeaderChoice, statusBadge(), ValidatedButton (+47 more)

### Community 17 - "Infobip Sender Storage"
Cohesion: 0.05
Nodes (55): BulkImportDialogProps, BulkImportResult, Resultado, ACENTOS, CalResp, CamposForm, idDe(), LeadsFormEditor() (+47 more)

### Community 18 - "Sidebar Layout UI"
Cohesion: 0.12
Nodes (32): ROLE_ICON, ResizableHandle(), ResizablePanelGroup(), SheetHeader(), Sidebar(), SidebarContent(), SidebarContext, SidebarContextProps (+24 more)

### Community 19 - "Campaign Storage Methods"
Cohesion: 0.06
Nodes (4): InfobipSender, InsertInfobipSender, InsertSenderAssignment, SenderAssignment

### Community 20 - "CLAUDE.md Documentation"
Cohesion: 0.05
Nodes (37): 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) (+29 more)

### Community 21 - "Multi-BM Validated Templates UI"
Cohesion: 0.08
Nodes (44): isInControlGroup(), registerRevenueDashboardRoutes(), activationBlockReason(), enterFromEvents(), enterFromSegment(), exitExecution(), insertExecutions(), parseSteps() (+36 more)

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

### Community 23 - "Auth Middleware and Checknumber"
Cohesion: 0.31
Nodes (11): assinar(), Blocklist, DISPOSABLE_DOMAINS, dominioDeEmail(), ehDescartavel(), emitirFormToken(), estaBloqueado(), normalizarBlocklist() (+3 more)

### Community 24 - "HubSpot Auth and Timeline"
Cohesion: 0.08
Nodes (47): carregarBlocklist(), assumirPorOperador(), CANCEL_WORDS, cancelar(), casUpdate(), concluir(), expirar(), getActiveSession() (+39 more)

### Community 25 - "AI Agent Orchestration"
Cohesion: 0.12
Nodes (32): aplicarEventosDoSetup(), EVENTO_PARA_ESTADOS, exchangePublicoSchema, montarPrefill(), naoEncontrado(), PODE_CONECTAR, registerOnboardingConectarRoutes(), resolverServicoWaCloud() (+24 more)

### Community 26 - "admin-senders.tsx"
Cohesion: 0.17
Nodes (20): main(), main(), maybeSendTwoStagePreProgrammed(), bus, CentralConversationEvent, CentralEvent, centralListenerCount(), CentralMessageEvent (+12 more)

### Community 27 - "Server Bootstrap and Blocklist"
Cohesion: 0.11
Nodes (15): isFacebookOrigin(), dataLonga(), EmFila, EsConfig, FbResposta, PassoConectar(), Situacao, CanalPublico (+7 more)

### Community 28 - "Campaign Chat UI"
Cohesion: 0.23
Nodes (11): AppSidebar(), useBranding(), AppMode, emit(), listeners, read(), readAppMode(), subscribe() (+3 more)

### Community 30 - "DB Cleanup and Seed Scripts"
Cohesion: 0.15
Nodes (11): sanitizeComposerInput(), ButtonLike, containsProhibitedMetaContent(), findProhibitedContentInParams(), IMAGE_EXTENSIONS, META_LIMITS, PROHIBITED_META_CONTENT_GLOBAL_RE, stripProhibitedMetaContent() (+3 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 32 - "User and Sender Assignment Storage"
Cohesion: 0.10
Nodes (25): Action, ActionType, actionTypes, addToRemoveQueue(), dispatch(), genId(), listeners, memoryState (+17 more)

### Community 33 - "Multi-BM Submission Storage"
Cohesion: 0.14
Nodes (10): CAMPOS, chamar(), condicoes(), dbFalso, engine(), filtrar(), Linha, snakeParaCamel() (+2 more)

### Community 34 - "Admin Logs UI"
Cohesion: 0.23
Nodes (14): ALLOWED_RESULT_HOSTS, CheckNumberStatusResponse, CheckNumberTaskResponse, downloadWaFilterResults(), extractFileFromZip(), getWaFilterStatus(), parseCsv(), submitWaFilter() (+6 more)

### Community 35 - "Media Storage Utilities"
Cohesion: 0.12
Nodes (26): salvarConfigMotor(), detectarLembretes(), fecharLembrete(), LembreteVisivel, listarLembretes(), listarLembretesDoPedido(), montarTextoLembrete(), Regra (+18 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.27
Nodes (7): buttonKind(), defaultLabel(), normalizeButtons(), NormalizeButtonsOptions, PreviewButton, RawButton, WhatsappMessagePreviewProps

### Community 42 - "Chart UI Component"
Cohesion: 0.03
Nodes (73): AccountServiceRow, BmAssignmentClientRow, MultibmBmFailureStat, MultibmBmMetrics, MultibmClientMetrics, MultibmMonitoring, MultibmVolumePoint, PaginatedResult (+65 more)

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

### Community 44 - "Branding Storage Methods"
Cohesion: 0.11
Nodes (28): classifyPhoneCell(), COLUMN_ALIASES, CPF_HEADERS, cpfChecksumOk(), CsvParseResult, findColumns(), norm(), parseDate() (+20 more)

### Community 45 - "Button, Calendar, Pagination UI"
Cohesion: 0.07
Nodes (32): main(), InfobipSenderFromApi, BmParaCapability, cache, fetchLiveCapabilityForBm(), fetchWabaCapabilityFromMeta(), findPhoneNumberId(), LiveCapabilityResult (+24 more)

### Community 46 - "Multi-BM Template Storage"
Cohesion: 0.10
Nodes (36): appSecretProof(), buildGraphButtons(), buildTemplateComponents(), BUSINESS_ERROR_CODES, classifyGraphSendError(), CloudSendResult, CreateCloudTemplateInput, exchangeCodeForBusinessToken() (+28 more)

### Community 49 - "Carousel UI Component"
Cohesion: 0.15
Nodes (12): Carousel, CarouselApi, CarouselContent, CarouselContext, CarouselContextProps, CarouselItem, CarouselNext, CarouselOptions (+4 more)

### Community 50 - "Chip Provisioning Clients"
Cohesion: 0.12
Nodes (28): AiProvider, ComposerComposeInput, ComposerGenerateInput, InfobipTemplateCreate, getProhibitedTerms(), bodyStartsOrEndsWithVariable(), validateBodyExamples(), validateFooterLength() (+20 more)

### Community 51 - "Multi-BM Health Sync"
Cohesion: 0.28
Nodes (7): BACKOFF_MINUTES, drainOutboundBatch(), drainOutboundWebhookQueue(), enqueueOutboundWebhook(), OutboundEventType, outboundWebhookConfigs, outboundWebhookQueue

### Community 53 - "waCloudUsinaRoutes.ts"
Cohesion: 0.18
Nodes (15): DELIVERY_ERROR_LABELS, friendlyDeliveryError(), scrubVendor(), dispatchSmsCampaign(), dispatchSmsCampaignInner(), finalizarCampanhaSms(), inFlightCampaigns, SmsDispatchOptions (+7 more)

### Community 54 - "rcsApi.ts"
Cohesion: 0.16
Nodes (18): cnpjValido(), emailOk(), foneOk(), FormConfig, FormularioPublico(), lerCookie(), lerRastros(), mascararCnpj() (+10 more)

### Community 55 - "WA Filter Batch Storage"
Cohesion: 0.11
Nodes (22): assembleTemplate(), buildComposeSystemPrompt(), buildGenerateSystemPrompt(), ComposerComposeResult, ComposerGenerateResult, ComposerMode, containsEmoji(), EMOJI_RE (+14 more)

### Community 56 - "Multi-BM Dashboard UI"
Cohesion: 0.25
Nodes (9): emitirOtp(), FALHA_LEGIVEL, FalhaOtp, gerarCodigo(), hashCodigo(), otpLigado(), ResultadoEmissao, validarOtp() (+1 more)

### Community 57 - "Toast UI Component"
Cohesion: 0.14
Nodes (21): clampDays(), engineKeyOk(), registerAdPerformanceRoutes(), withSpend(), fetchMetaSpend(), spendByPlatform(), SpendRow, syncAllAdSpend() (+13 more)

### Community 58 - "BM Sender Storage"
Cohesion: 0.38
Nodes (5): BmParaReplicacao, planejarReplicacaoDeToken(), ReplicacaoPlano, ReplicacaoRecusa, ORIGEM

### Community 59 - "Chip Activation Storage"
Cohesion: 0.20
Nodes (9): @esbuild-kit/esm-loader, license, name, optionalDependencies, bufferutil, overrides, drizzle-kit, type (+1 more)

### Community 60 - "HubSpot Connection Storage"
Cohesion: 0.28
Nodes (3): EnrichedAcceptance, InsertTermsAcceptance, TermsAcceptance

### Community 61 - "use-atendimento-stream.ts"
Cohesion: 0.06
Nodes (33): dispatchHubspotMessageStandalone(), DispatchStandaloneResult, ordenarSenders(), isOptOutMessage(), normalizeOptOutText(), registrarOptOutSeGatilho(), getGlobalContactByPhone(), isSuppressed() (+25 more)

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

### Community 63 - "scripts"
Cohesion: 0.08
Nodes (41): handleInboundMessage(), vincularContatoGlobal(), ContactOrigin, hashEmail(), PREFERENCE_KEYS, PURCHASE_KEYS, resolveOrCreateByPhone(), setAttribute() (+33 more)

### Community 64 - "Error Boundary Component"
Cohesion: 0.04
Nodes (62): ProtectedRoute(), CentralHeader(), Props, AdminUser, RevenueClientSelect(), RevenueScopeEmptyState(), ThemeToggle(), RadioGroup (+54 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.06
Nodes (39): banirLinksDoTemplate(), blockLinks(), canonicalizeLink(), gateBlockedLinks(), getBlockedSet(), invalidateBlockedLinksCache(), unblockLink(), alertAdmins() (+31 more)

### Community 68 - "enviarMensagemCtaUrl"
Cohesion: 0.10
Nodes (40): buscarLeadDoSinal(), carregarConfigSinais(), CONFIG_PADRAO, drenarAgora(), drenarSinais(), enfileirarSinais(), enviarPara(), Estagio (+32 more)

### Community 69 - "Multi-BM Message Storage"
Cohesion: 0.08
Nodes (32): AccountAlertValue, AccountUpdateValue, BusinessCapabilityValue, drainMetaBatch(), drainMetaWebhookQueue(), EchoChangeValue, extractInboundText(), extractReplyId() (+24 more)

### Community 70 - "mediaLimits.ts"
Cohesion: 0.04
Nodes (84): columnTargetLabel(), ContactFilePreviewTable(), FilterPill(), FilterPillProps, StateCitySelect(), StateCitySelectProps, StatusBadge(), StatusBadgeProps (+76 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 - "registerRoutes"
Cohesion: 0.29
Nodes (4): db, dispatch(), enviarMensagemTemplateMock, storageHandlers

### Community 75 - "Activity Log Storage"
Cohesion: 0.12
Nodes (24): getHubspotOAuthConfig(), getValidAccessToken(), HubSpotAuthError, hubspotRefreshLocks, buildEventTemplateDefinition(), buildOnsmsLink(), getDeveloperConfig(), getPublicBaseUrl() (+16 more)

### Community 76 - "templateGenerator.ts"
Cohesion: 0.11
Nodes (12): buildOnsmsSubscriptionId(), getWebhookEnvSuffix(), buildApp(), createCalls, deleteCalls, infobipState, listCalls, sessionState (+4 more)

### 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 79 - "RcsContentEditor"
Cohesion: 0.12
Nodes (13): useCarousel(), ChartConfig, ChartContainer, ChartContext, ChartContextProps, ChartLegendContent, ChartTooltipContent, THEMES (+5 more)

### 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 81 - "signals.ts"
Cohesion: 0.20
Nodes (13): CampaignClickStats, DeactivateCampaignLinksParams, deleteStaticCampaignLink(), fetchCampaignClickStats(), generateCampaignLinks(), GenerateCampaignLinksParams, generateSingleCampaignLink(), generateStaticCampaignLink() (+5 more)

### Community 82 - "dashboard.tsx"
Cohesion: 0.22
Nodes (12): applySmsReplyEvent(), applySmsStatusEvent(), drainRcsBatch(), drainRcsEventQueue(), normalizeRcsStatus(), processRcsEvent(), processRcsReplyEvent(), processRcsStatusEvent() (+4 more)

### Community 83 - "cloudTemplateSync.ts"
Cohesion: 0.06
Nodes (39): Props, Service, SolicitarTemplateButton(), ehCandidatoChamariz(), HeaderMode, mapModeloFromApi(), ModeloApiCru, ModeloBotao (+31 more)

### 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 89 - "usina-multibm-dashboard.tsx"
Cohesion: 0.07
Nodes (43): criarContaCliente(), DadosNovaConta, gerarSenhaTemporaria(), gerarUsername(), hashPassword(), converterSchema, conviteValido(), criarConviteAcesso() (+35 more)

### Community 90 - "Template Media Storage"
Cohesion: 0.12
Nodes (18): main(), cleanupApiCampaignOrphanMedia(), CleanupReport, CleanupRow, MEDIA_DIR, safeUnlink(), defaultApiSettings, defaultColumnKeywords (+10 more)

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

### Community 92 - "clientBusinessProfile.test.ts"
Cohesion: 0.05
Nodes (57): ACCEPTED_MIMES, profileFormSchema, ProfileFormValues, ProfileResponse, SenderProfileSheetProps, CampaignComposer(), CampaignComposerProps, composerErrorMessage() (+49 more)

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

### Community 94 - "waOnsmsReceptivo.test.ts"
Cohesion: 0.19
Nodes (3): BusinessManagerWithStats, BusinessManager, InsertBusinessManager

### Community 95 - "vendor-mask.ts"
Cohesion: 0.04
Nodes (115): Router(), AgentTab(), ClientsTab(), ServicesTab(), CompositorTab(), GeneratorTab(), TwoStageTab(), SenderProfileSheet() (+107 more)

### Community 96 - "prohibitedTerms.ts"
Cohesion: 0.14
Nodes (20): buildRcsBatchBody(), mapCard(), mapMessage(), mapSuggestions(), RcsBatchResult, RcsOutBase, slugPostback(), RCS_ALIGNMENTS (+12 more)

### Community 102 - "whatsapp-template-preview.tsx"
Cohesion: 0.18
Nodes (7): db, enviarMensagemTemplateMock, loadDispatch(), Msg, seedWabas(), storageHandlers, submissionFor()

### Community 103 - "AI Conversation Messages"
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 105 - "Object Uploader Component"
Cohesion: 0.25
Nodes (8): buildCampaignPreview(), CampaignPreviewLinks, CampaignPreviewPayload, CampaignPreviewRcs, CampaignPreviewStage, CampaignPreviewTwoStage, ParamsSource, parseParams()

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

### Community 108 - "Sender Stats Queries"
Cohesion: 0.10
Nodes (26): buildProfileSection(), buildSystemPrompt(), cloudQuarantineMinutes(), executeReplyFlush(), flushConversationReply(), InboundMessage, isTwoStageNegativeReply(), normalizeForMatch() (+18 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.33
Nodes (10): graph(), loadConnection(), main(), proof(), readState(), retratoDestino(), State, STATE_FILE (+2 more)

### Community 115 - "freeform-send-guard.md"
Cohesion: 0.20
Nodes (9): 1. A pergunta que abriu a análise, 2. O meio-termo pedido já é o estado atual, 3. Como o histórico chegaria (se fosse pedido), 4. Os cinco bloqueios do nosso lado, 5. O que fizemos em vez disso, 6. Se um dia for reaberto, 7. "E se o cliente conectar um número cheio de conversas?" — a IA responde algo antigo?, 8. Nota para auditoria (+1 more)

### Community 116 - "messageGuard.ts"
Cohesion: 0.31
Nodes (10): ALLOWED_ROLES, effectiveOwnerId(), forward(), forwardText(), mediaUpload, parseIdParam(), registerPagesRoutes(), requireAdmin() (+2 more)

### Community 118 - "mailer.ts"
Cohesion: 0.08
Nodes (25): pgPoolOptions, app, http, httpServer, IncomingMessage, Issue, log(), pgPool (+17 more)

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

### Community 123 - "multibmCampaignCreationAtomic.test.ts"
Cohesion: 0.22
Nodes (7): buildApp(), criarCalls, handlers, infobipState, sessionState, St, validBody

### 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.23
Nodes (15): AiProviderError, apiKeyFor(), classifyGoogleImageError(), fetchWithTimeout(), generateAiReply(), generateAnthropic(), GeneratedImage, generateGemini() (+7 more)

### 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 139 - "multibmDailyLimitByBm.test.ts"
Cohesion: 0.29
Nodes (4): sessionState, state, storageHandlers, templates

### Community 140 - "usina-multibm-dashboard.tsx"
Cohesion: 0.20
Nodes (18): requireAdminOrOperator(), CloudTemplateButtonInput, createCloudTemplate(), containsPlaceholder(), isHttpUrl(), validateButtons(), validateHeaderExampleUrl(), applyClosingVariant() (+10 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 147 - "whatsapp-message-preview.tsx"
Cohesion: 0.29
Nodes (6): Limites honestos, O caminho das pedras — por que uma BM não sobe de tier, O que foi instrumentado (17/08/2026), O veredito, Os campos confirmados (doc oficial, 17/08/2026 — não é achismo), Receita legítima de maturação

### Community 149 - "section-status-badge.tsx"
Cohesion: 0.50
Nodes (3): SectionStatus, SectionStatusBadge(), SectionStatusBadgeProps

### Community 150 - "RcsSender"
Cohesion: 0.40
Nodes (5): baixarCsv(), CONTACTS, get(), state, storageHandlers

### Community 152 - "multibmDistributionStrategy.test.ts"
Cohesion: 0.13
Nodes (23): buildSendComponents(), cancelPausedCloudCampaign(), CloudDispatchResult, cloudIntervalMs(), computeCloudFinalizationResults(), connectionNextSlotAt, dispatchCloudCampaign(), finalizarCampanhaCloud() (+15 more)

### Community 153 - "scripts"
Cohesion: 0.16
Nodes (12): ButtonProps, buttonVariants, Calendar(), CalendarProps, Pagination(), PaginationContent, PaginationEllipsis(), PaginationItem (+4 more)

### Community 154 - ".attachSubmissions"
Cohesion: 0.16
Nodes (20): RcsMailingParams, RcsOutMessage, sendRcsBatch(), ContactRenderCtx, dispatchRcsCampaignInner(), finalizarCampanhaRcs(), inFlightCampaigns, parseContactParams() (+12 more)

### Community 155 - "prohibitedTerms.ts"
Cohesion: 0.20
Nodes (5): TermsCurrentResponse, TermsCurrentResponse, TermsCurrentResponse, InsertTermsDocument, TermsDocument

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

### Community 158 - "mediaLimits.ts"
Cohesion: 0.29
Nodes (5): buildApp(), enviarMensagemTemplateMockRef, sessionState, state, storageHandlers

### Community 159 - "pages.ts"
Cohesion: 0.13
Nodes (12): AdminServices(), EMPTY_FORM, MultibmWebhookStatus, RCS_SUBTYPE_LABELS, RcsConfigSummary, REGRA_LABELS, Service, ServiceFormState (+4 more)

### Community 160 - "ClientBusinessProfile"
Cohesion: 0.29
Nodes (5): buildApp(), criarTemplateMock, sessionState, state, storageHandlers

### Community 161 - "messageGuard.ts"
Cohesion: 0.25
Nodes (7): SheetContent, SheetContentProps, SheetDescription, SheetFooter(), SheetOverlay, SheetTitle, sheetVariants

### Community 162 - "Service"
Cohesion: 0.05
Nodes (49): AGUARDANDO, corSemaforo(), dataCurta(), ESPERAM_ALGUEM, FORNECEDORES_RCS, LeadsOnboarding(), Lembrete, MotorResposta (+41 more)

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

### Community 164 - "onboardingMotor.test.ts"
Cohesion: 0.16
Nodes (8): onboardingEvents, condicoes(), corrente, dbFalso, filtrar(), Linha, snakeParaCamel(), tabelas

### Community 165 - "waOnsmsReceptivo.test.ts"
Cohesion: 0.07
Nodes (25): aplicarPrefixoData(), deriveRolloutTemplateName(), hojeAAAAMMDD(), rolloutNameCandidates(), rolloutNameWithDigits(), onMobile, principal, velLingerie (+17 more)

### Community 167 - "sheet.tsx"
Cohesion: 0.19
Nodes (15): MultibmTemplateWithSubmissions, ConteudoTemplateResolvido, derivarStatusExibicao(), handleListRequests(), handleTemplateRequest(), HeaderResolvido, ImagemFonte, isHttpUrl() (+7 more)

### Community 168 - "leadAdsWebhook.ts"
Cohesion: 0.15
Nodes (15): bloco(), Dict, linhasMeta(), montarDossie(), STATE_LABEL, adaptadorDe(), AdaptadorFornecedor, Dict (+7 more)

### Community 170 - "bmNotices.ts"
Cohesion: 0.29
Nodes (4): buildApp(), enviarCalls, EnviarMensagemArgs, storageState

### Community 174 - "verify-coexistence-subscribe.ts"
Cohesion: 0.10
Nodes (7): ContaCriada, UserWithServices, BmClientAssignment, InsertService, InsertUser, Service, User

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

### Community 176 - "AccountServiceBalance"
Cohesion: 0.33
Nodes (3): buildApp(), sessionState, st

### Community 177 - "campaignPreview.ts"
Cohesion: 0.06
Nodes (21): check(), main(), novoUser(), estado(), main(), db, pool, poolMax (+13 more)

### Community 178 - "waOnsmsReceptivo.test.ts"
Cohesion: 0.11
Nodes (25): InfobipSendResult, dispatchInfobipCampaign(), dispatchInfobipCampaignInner(), DispatchOptions, DispatchResult, finalizarCampanhaInfobip(), inFlightCampaigns, isTerminalWabaStatus() (+17 more)

### Community 179 - "brPhoneMatchCandidates"
Cohesion: 0.06
Nodes (55): chamarHub(), registerAgentesRoutes(), semChave(), express-session, requireAdmin(), requireAuth(), SessionData, createSchema (+47 more)

### Community 182 - "onboardingFila.test.ts"
Cohesion: 0.50
Nodes (3): cenario, pedidoValidado, settings

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

### Community 185 - "multibmCampaignCreationAtomic.test.ts"
Cohesion: 0.29
Nodes (4): atomicState, buildApp(), sessionState, storageHandlers

### Community 190 - "hubspotWorkflowAction.test.ts"
Cohesion: 0.35
Nodes (13): ClusterSignature, computeSignature(), countQuickReplies(), countTemplateVars(), extractButtonUrlPrefix(), extractUrlButtonDynamic(), findUrlButton(), normalizeHeaderMarker() (+5 more)

### 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 197 - "MultibmMessage"
Cohesion: 0.13
Nodes (11): detectSeparator(), extractNamedColumnMap(), isHeaderLine(), isNamedColumnHeader(), OBS_HEADER_KEYWORDS, parseReportContent(), PHONE_HEADER_KEYWORDS, STATUS_HEADER_KEYWORDS (+3 more)

### 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 205 - "metaSignupExchange.test.ts"
Cohesion: 0.40
Nodes (3): ENC_KEY, EXCHANGE_BODY, state

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

### Community 210 - "bmNotices.ts"
Cohesion: 0.22
Nodes (12): buildMappedContacts(), BuildMappedContactsResult, ColumnMapping, ContactMappingError, MappedContact, BTN_URL_SUFFIX_ERROR_LABELS, BtnUrlSuffixResult, canonicalizeForCompare() (+4 more)

### Community 211 - "templateMediaStorage.ts"
Cohesion: 0.17
Nodes (10): activeConfig(), buildSmsBatchBody(), initMkomSmsAdapter(), mkomSmsAdapter, sendSmsBatch(), SmsBatchResult, registerSmsAdapter(), SmsNormalizedEvent (+2 more)

### Community 214 - "migrar-config-sinais.ts"
Cohesion: 0.48
Nodes (6): APLICAR, cifrar(), decifrar(), impressao(), lerEnv(), main()

### Community 215 - "publicRoutes.ts"
Cohesion: 0.20
Nodes (3): ErrorBoundary, ErrorBoundaryProps, ErrorBoundaryState

### Community 216 - "CloudValidatedTemplate"
Cohesion: 0.15
Nodes (17): ClientCallbackContact, ClientCallbackPayload, sendClientCallback(), buscarStatusTemplate(), fetchWithRetry(), parseRetryAfterMs(), sleep(), CATEGORIAS_VALIDAS (+9 more)

### Community 217 - "BmSender"
Cohesion: 0.15
Nodes (9): BM_A, criarTemplateMock, handleGenerateAssetsMock, handleGenerateExamplesMock, sessionState, sourceBaseNu, sourceChamariz, state (+1 more)

### Community 218 - "relatorioEstadoFinal.test.ts"
Cohesion: 0.32
Nodes (7): CAMPAIGN_FINAL_STATUSES, isCampaignFinalStatus(), baixar(), CONTACTS, get(), sess, state

### Community 220 - "fmt"
Cohesion: 0.12
Nodes (18): buildObservation(), buildZipForCampaign(), campaignRequiresModeration(), computeMissingMedia(), decodeBuffer(), gateWhatsappRevrSuffixes(), getEffectiveUserServices(), mbHasDynamicUrlButton() (+10 more)

### Community 225 - "PageEditor"
Cohesion: 0.13
Nodes (19): assertTransition(), BADGE_STATES, Canal, canTransition(), edgesOf(), InvalidTransitionError, isValidState(), META_EDGES (+11 more)

### Community 226 - "blockedLinks.ts"
Cohesion: 0.15
Nodes (12): Campos, ChatForm, EditorChatForm(), FormulariosChat(), Funil, idDe(), Lead, limiteDoRotulo() (+4 more)

### Community 227 - "legal-publico.tsx"
Cohesion: 0.40
Nodes (5): LegalPublico(), LegalSlug, parseSections(), PublicLegalDocument, Section

### Community 228 - "rcsApi.ts"
Cohesion: 0.05
Nodes (75): ConfigResponse, MonthlyUsageResponse, ConfigResponse, AiProviderValue, ApiKeyPresence, IMAGE_MODELS, IMAGE_PROVIDERS, ProviderModelPicker() (+67 more)

### Community 232 - "popover.tsx"
Cohesion: 0.22
Nodes (6): BM_COM_TOKEN, BM_SEM_TOKEN, CREDS, infobipMock, st, SUB

### Community 234 - "whatsapp-message-preview.tsx"
Cohesion: 0.14
Nodes (14): aviso, destino, placeholders, publicar(), q(), raiz, destino, publicar() (+6 more)

### Community 235 - "ClientBusinessProfile"
Cohesion: 0.33
Nodes (3): ProfileResponse, ClientBusinessProfile, UpsertClientBusinessProfileInput

### Community 236 - "optOutBlacklist.ts"
Cohesion: 0.26
Nodes (9): COMBINING_MARKS_RE, DEFAULT_PROHIBITED_TERMS, escapeRegex(), findProhibitedTermsInParams(), findTermsInText(), normalizeForTermMatch(), termMatches(), ContactWithParams (+1 more)

### Community 238 - "multibmBalanceGuard.ts"
Cohesion: 0.33
Nodes (3): AGORA, numeroOk, st

### Community 239 - "metaWebhookWorker.test.ts"
Cohesion: 0.17
Nodes (9): BM_A, criarTemplateMock, deleteStaticCampaignLinkMock, generateStaticCampaignLinkMock, handleGenerateExamplesMock, sessionState, sourceBase, state (+1 more)

### Community 240 - "toggle-group.tsx"
Cohesion: 0.33
Nodes (5): ToggleGroup, ToggleGroupContext, ToggleGroupItem, Toggle, toggleVariants

### Community 241 - "Análise do App (Meta) — roteiro dos vídeos e da submissão"
Cohesion: 0.29
Nodes (6): Antes de tudo: gerar o token temporário (24h), Análise do App (Meta) — roteiro dos vídeos e da submissão, Descrição escrita do serviço (colar na submissão), Submissão, Vídeo 1 — `whatsapp_business_messaging` (envio de mensagem), Vídeo 2 — `whatsapp_business_management` (criação de template)

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

### Community 243 - "use-atendimento-stream.ts"
Cohesion: 0.18
Nodes (9): baseDeCliente, baseEtiquetado, baseSemEtiqueta, BM_A, criarTemplateMock, handleGenerateExamplesMock, sessionState, state (+1 more)

### Community 244 - "multibmTemplateVerdictSync.ts"
Cohesion: 0.22
Nodes (4): ButtonRef, CHAMARIZ_QRS, normalizarParaComparar(), removerRodapeDuplicadoDoCorpo()

### Community 245 - "ColumnKeyword"
Cohesion: 0.39
Nodes (6): SmsEncoding, smsEncodingOf(), smsLengthOf(), smsPartsInfo, smsPartsOf(), root

### Community 246 - "WaFilterServiceBatch"
Cohesion: 0.25
Nodes (3): BmNoticeTipo, MultibmBmNotice, multibmBmNotices

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

### Community 249 - "outboundWebhooks.ts"
Cohesion: 0.08
Nodes (73): ConfigResponse, EMPTY_TERM_FORM, PERSONA_FIELDS, TermFormState, Marco(), quandoCurto(), ENGAJAMENTO, BulkImportDialog() (+65 more)

### Community 250 - "multibmTemplateSync.test.ts"
Cohesion: 0.20
Nodes (7): buildApp(), db, infobipState, sessionState, storageHandlers, Sub, Tpl

### Community 251 - "SecurityEvent"
Cohesion: 0.38
Nodes (9): compartilhaToken(), DisplayNameResult, dominioDe(), GENERICOS, normalizar(), RESERVADAS, STOPWORDS, tokens() (+1 more)

### Community 252 - "Central de Atendimento — regras de negócio e arquitetura"
Cohesion: 0.15
Nodes (12): 0. Por que este módulo existe, 1. Estado da conversa (derivado, não persistido), 2. Transições bot ↔ humano, 3. Colaboração e anti-colisão, 4. Envio de mensagem (gates, na ordem), 4b. Black-list (opt-out) no atendimento — **[DONO, 2026-08-06]**, 5. Escopo por papel, 6. Tempo real (SSE) (+4 more)

### Community 256 - "SmsReply"
Cohesion: 0.33
Nodes (6): CREATABLE_ROLES, hasPermission(), Permission, PERMISSIONS, REQUIRED_PARENT_ROLES, requirePermission()

### Community 257 - "templateMediaStorage.ts"
Cohesion: 0.15
Nodes (12): 1. Black-list de links (`server/blockedLinks.ts`, migration 079), 2. Template recategorizado some da criação, 3. Avisos da Meta por BM (`server/bmNotices.ts`, migration 080), 4. Link novo a cada lote + template a pedido do cliente, Como funciona agora, Fontes de verdade (plugável), Gerar o token Meta (System User) — passo a passo por BM, Guard de categoria de template (Multi-BM) (+4 more)

### Community 259 - "templateRequestWorker.ts"
Cohesion: 0.33
Nodes (4): NormalizedStatus, normalizeStatus(), STATUS_MAPPING_VALUES, semMapa

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

### Community 262 - "waOnsmsReceptivo.test.ts"
Cohesion: 0.21
Nodes (9): buildImagePrompt(), handleGenerateAssets(), nearestImagenAspectRatio(), resizeAndCapJpeg(), extFromMime(), getTemplateMediaDir(), PUBLIC_BASE_URL, templateMediaExists() (+1 more)

### Community 263 - "verify-coexistence-echo.ts"
Cohesion: 0.12
Nodes (29): gerarSugestao(), camposObrigatoriosRcs(), completarRcsComTronco(), EDITAVEIS, empresaSchema, lerDimensoes(), LIMITES_RCS, marcaSchema (+21 more)

### Community 265 - "templateRequestAsync.test.ts"
Cohesion: 0.18
Nodes (11): BM_A, criarEnviado(), criarTemplateMock, handleGenerateAssetsMock, handleGenerateExamplesMock, pedido(), rodarWorker(), sessionState (+3 more)

### Community 267 - "moderationSampleFallback.test.ts"
Cohesion: 0.22
Nodes (5): db, infobipState, sessionState, storageHandlers, Sub

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

### Community 270 - "segmented-control.tsx"
Cohesion: 0.50
Nodes (3): SegmentedControl(), SegmentedControlProps, SegmentedOption

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

### Community 274 - "verify-coexistence-echo.ts"
Cohesion: 0.12
Nodes (18): AdminLogs(), fmt(), HubspotRow, HubspotTab(), InfobipRow, InfobipTab(), KIND_LABEL, LogSource (+10 more)

### Community 277 - "messageGuard.ts"
Cohesion: 0.19
Nodes (14): avaliarProntidao(), BLOQUEIOS, CNAE_ATENCAO_PREFIXOS, cnaeDeAtencao(), CodigoBloqueio, CodigoPenalidade, DadosProntidao, definirRota() (+6 more)

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

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

### Community 281 - "use-atendimento-stream.ts"
Cohesion: 0.12
Nodes (20): AiPanel(), ContactPanel(), moeda(), Handlers, StreamConversationEvent, StreamMessageEvent, StreamTypingEvent, useAtendimentoStream() (+12 more)

### Community 286 - "templateRequestWorker.ts"
Cohesion: 0.29
Nodes (9): executarSolicitacaoTemplate(), executarSolicitacaoTemplateCloud(), mensagemDaIA(), resolverConteudoTemplate(), validateSequentialVars(), processarSolicitacoesTemplate(), TemplateRequestWorkerResult, enviar() (+1 more)

### Community 287 - "templateRequestCloud.test.ts"
Cohesion: 0.13
Nodes (12): CONN_A, CONN_B, createCloudTemplateMock, deleteStaticCampaignLinkMock, generateStaticCampaignLinkMock, handleGenerateExamplesMock, sessionState, sourceBase (+4 more)

### Community 288 - "inbox-panel.tsx"
Cohesion: 0.23
Nodes (12): CHANNEL_DOT, espera(), horaCurta(), InboxPanel(), iniciais(), Props, CentralFilters, InboxConversation (+4 more)

### Community 290 - "cloudTemplateSync.ts"
Cohesion: 0.27
Nodes (9): flagConnectionFromError(), flagConnectionFromSendResult(), PAYMENT_ERROR_CODES, countTemplateVars(), MetaComponent, normalizeMetaTemplate(), syncCloudTemplates(), extractGraphErrorCode() (+1 more)

### Community 293 - "chatFormRoutes.test.ts"
Cohesion: 0.18
Nodes (8): CAMPOS_VALIDOS, condicoes(), Linha, semearForm(), snakeParaCamel(), st, tabelas, uuidFake()

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

### Community 295 - "audio-message.tsx"
Cohesion: 0.21
Nodes (13): Props, AudioMessage(), mmss(), VELOCIDADES, ChatPanel(), diaLegivel(), hora(), MessageBubble() (+5 more)

### Community 297 - "envios-crm.tsx"
Cohesion: 0.23
Nodes (10): ByTemplate, CrmDispatchesResponse, CrmDispatchItem, DedupEvent, DedupStats, EnviosCrm(), formatDateTime(), formatPhone() (+2 more)

### Community 298 - "cloudHealthSync.ts"
Cohesion: 0.33
Nodes (9): main(), proof(), CloudHealthResult, daysUntil(), syncAllCloudConnectionsHealth(), syncCloudConnectionHealth(), debugToken(), fetchPhoneNumbers() (+1 more)

### Community 300 - "InsertCampaign"
Cohesion: 0.22
Nodes (3): InsertCampaign, InsertTwoStageConfig, TwoStageConfig

### Community 302 - "clientBusinessProfile.test.ts"
Cohesion: 0.20
Nodes (6): buildApp(), handlers, profiles, sessionState, UserRow, users

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

### Community 304 - "waCloudCoexistence.test.ts"
Cohesion: 0.22
Nodes (5): drain(), inboundCalls, numeroCoex, setup(), st

### Community 305 - "scripts"
Cohesion: 0.25
Nodes (8): scripts, build, check, db:push, dev, start, test, test:watch

### Community 306 - "onboardingSugestoes.ts"
Cohesion: 0.25
Nodes (7): EXPLICACOES, PorTipo, RESERVA, SugestaoCampo, SUGESTOES, TipoNegocio, TIPOS_NEGOCIO

### Community 310 - "campanhaCloudLinkModes.test.ts"
Cohesion: 0.25
Nodes (6): cloudTemplates, connection, payload(), sessionState, state, storageHandlers

### Community 311 - "waOnsmsReceptivo.test.ts"
Cohesion: 0.29
Nodes (4): calls, handoffCalls, handoffState, st

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

## Knowledge Gaps
- **1726 isolated node(s):** `Service`, `Props`, `ModeloBotao`, `ModoBotoes`, `HeaderMode` (+1721 more)
  These have ≤1 connection - possible missing edges or undocumented components.
- **118 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`, `Button and Alert Dialog UI`, `Campaign Storage Methods`, `WABA Template Storage`, `Chart UI Component`, `Infobip Config Storage`, `WABA Message Storage`, `Business Manager Storage`, `HubSpot Connection Storage`, `webhookTokenTimingSafe.test.ts`, `AI Client Settings Storage`, `waOnsmsReceptivo.test.ts`, `HubSpot Alert Config Storage`, `Multi-BM Alert Config Storage`, `Multi-BM Config Storage`, `HubSpot Timeline Template Storage`, `multibmDispatchPerContactParams.test.ts`, `permissions.ts`, `TemplateGeneratorConfig`, `BmSender`, `fileSignatureValidation.test.ts`, `scheduledDispatchWorker.test.ts`, `multibmSharedTierByMetaBm.test.ts`, `CompositorConfig`, `prohibitedTerms.ts`, `MultibmMessage`, `smsAdapter.ts`, `verify-coexistence-subscribe.ts`, `use-atendimento-stream.ts`, `WabaMessage`, `BusinessManager`, `cloudDispatch.test.ts`, `MultibmMessage`, `sendMultibmSampleMessage`, `SmsConfig`, `SmsMessage`, `ChipActivation`, `pages.ts`, `HubspotConnection`, `scheduledDispatchWorker.test.ts`, `TermsDocument`, `ClientBusinessProfile`, `use-notices.ts`, `waOnsmsReceptivo.test.ts`, `ClientBlacklistTrigger`, `AiConversationMessage`, `CloudConnectionAuthorization`, `optOutBlacklist.ts`, `ColumnKeyword`, `RcsReply`, `SmsReply`, `ClientBlacklistContact`, `Contact`, `HubspotPendingDispatch`, `WaFilterServiceBatch`, `.getUserById`, `ApiToken`, `InsertCampaign`, `CloudTemplateRequest`, `ActivityLog`, `AccountServiceBalance`, `MultibmValidatedTemplate`, `SenderProfile`, `SecurityEvent`, `AiAgentConfig`, `.getUserById`, `.attachSubmissions`, `.listAllSendersWithStats`, `CampaignTermConfirmation`, `CannedResponse`, `AiMonthlyUsage`, `HubspotAlertState`, `MultibmAlertState`, `TemplatePreset`, `.listCentralInbox`, `MetaWebhookQueueItem`, `InsertMetaSignupSession`, `.getCampaignWithContacts`, `CreditTransaction`, `.getDefaultAccountTemplatePreset`, `MultibmIgnoredWaba`, `UpdateCampaign`, `InsertCloudTemplate`, `.getBusinessManagers`, `.getCampaigns`, `.getServices`, `.getSenderProfile`?**
  _High betweenness centrality (0.090) - this node is a cross-community bridge._
- **Why does `IStorage` connect `Storage Interface Methods` to `Database Storage Implementation`, `ClientBlacklistTrigger`, `TemplateGeneratorConfig`, `AiConversationMessage`, `Button and Alert Dialog UI`, `BmSender`, `CloudConnectionAuthorization`, `fileSignatureValidation.test.ts`, `scheduledDispatchWorker.test.ts`, `Campaign Storage Methods`, `multibmSharedTierByMetaBm.test.ts`, `WABA Template Storage`, `optOutBlacklist.ts`, `CompositorConfig`, `ColumnKeyword`, `RcsReply`, `SmsReply`, `ClientBlacklistContact`, `prohibitedTerms.ts`, `Contact`, `HubspotPendingDispatch`, `WaFilterServiceBatch`, `.getUserById`, `Chart UI Component`, `ApiToken`, `InsertCampaign`, `CloudTemplateRequest`, `MultibmMessage`, `ActivityLog`, `WABA Message Storage`, `Infobip Config Storage`, `smsAdapter.ts`, `verify-coexistence-subscribe.ts`, `Business Manager Storage`, `SenderProfile`, `AccountServiceBalance`, `SecurityEvent`, `use-atendimento-stream.ts`, `AiAgentConfig`, `HubSpot Connection Storage`, `CampaignTermConfirmation`, `WabaMessage`, `webhookTokenTimingSafe.test.ts`, `HubspotAlertState`, `BusinessManager`, `cloudDispatch.test.ts`, `MultibmMessage`, `MultibmAlertState`, `TemplatePreset`, `MetaWebhookQueueItem`, `InsertMetaSignupSession`, `CreditTransaction`, `sendMultibmSampleMessage`, `SmsConfig`, `MultibmIgnoredWaba`, `SmsMessage`, `UpdateCampaign`, `InsertCloudTemplate`, `AI Client Settings Storage`, `ChipActivation`, `pages.ts`, `waOnsmsReceptivo.test.ts`, `scheduledDispatchWorker.test.ts`, `HubspotConnection`, `TermsDocument`, `HubSpot Alert Config Storage`, `Multi-BM Alert Config Storage`, `Multi-BM Config Storage`, `HubSpot Timeline Template Storage`, `multibmDispatchPerContactParams.test.ts`, `ClientBusinessProfile`, `use-notices.ts`, `waOnsmsReceptivo.test.ts`, `permissions.ts`?**
  _High betweenness centrality (0.081) - this node is a cross-community bridge._
- **Why does `dependencies` connect `NPM Runtime Dependencies` to `AI Panel and Tabs UI`, `Chip Activation Storage`, `OTP Input UI Component`, `RcsContentEditor`?**
  _High betweenness centrality (0.036) - this node is a cross-community bridge._
- **What connects `Service`, `Props`, `ModeloBotao` to the rest of the system?**
  _1730 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `Storage Interface Methods` be split into smaller, more focused modules?**
  _Cohesion score 0.0111731843575419 - nodes in this community are weakly interconnected._
- **Should `Database Storage Implementation` be split into smaller, more focused modules?**
  _Cohesion score 0.01282051282051282 - nodes in this community are weakly interconnected._
- **Should `NPM Runtime Dependencies` be split into smaller, more focused modules?**
  _Cohesion score 0.023255813953488372 - nodes in this community are weakly interconnected._