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

## Corpus Check
- 250 files · ~372,072 words
- Verdict: corpus is large enough that graph structure adds value.

## Summary
- 2785 nodes · 6542 edges · 159 communities (104 shown, 55 thin omitted)
- Extraction: 100% EXTRACTED · 0% INFERRED · 0% AMBIGUOUS · INFERRED: 21 edges (avg confidence: 0.79)
- Token cost: 0 input · 0 output

## Graph Freshness
- Built from commit: `e3618db3`
- 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
- Background Dispatch Workers
- 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
- blocklist.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
- Multi-BM Template Sync Tests
- dispatch
- Activity Log Storage
- Breadcrumb UI Component
- Drawer UI Component
- Navigation Menu UI
- Sheet UI Component
- Account Service Balance Storage
- HubSpot Execute Diagnostics
- Blocklist Term Storage
- Status Mapping Storage
- AI Client Settings Storage
- Vendor Mask Exposure Tests
- Toggle UI Components
- File Upload Hook
- Multi-BM Validated Template Storage
- API Settings Storage
- 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
- HubSpot Workflow Action Tests
- Toast Notification State
- Email Alert Mailer
- AI Conversation Messages
- HubSpot Timeline Template Storage
- Object Uploader Component
- Avatar UI Component
- HubSpot Action Registration
- Sender Stats Queries
- HubSpot Alert State
- TemplatePreset
- User & Service Queries
- Template Preset Storage
- Build Script Allowlist
- Credit Transactions
- freeform-send-guard.md
- Output Sanitization
- Infobip Template Header Rule
- mailer.ts
- Production Deploy Script
- Dev Deploy Script
- Post-Merge Hook Script
- HubspotAlertState
- multibmSignature.ts
- vite.ts
- AccountServiceBalance
- TemplateGeneratorConfig
- multibmSignature.ts
- multibmTemplateCluster.test.ts
- urlSecurity.test.ts
- multibmRateLimitSharedAcrossCampaigns.test.ts
- drawer.tsx
- ClientBusinessProfile
- fileSignatureValidation.test.ts
- vendor-mask.ts
- multibmDistributionStrategy.test.ts
- multibmHealthSyncBanDetection.test.ts
- moderationDispatchGuard.test.ts
- btnUrlSuffix.ts
- scheduledDispatchWorker.test.ts
- clientCallbackRetry.test.ts
- multibmDailyLimitByBm.test.ts
- multibmDispatchMarketing.test.ts
- multibmDispatchResume.test.ts
- multibmDistributionStrategy.test.ts
- CompositorConfig
- Service
- scheduledDispatchWorker.test.ts
- webhookTokenTimingSafe.test.ts
- hover-card.tsx
- slider.tsx
- ClientBusinessProfile
- mailer.ts
- hover-card.tsx

## God Nodes (most connected - your core abstractions)
1. `DatabaseStorage` - 344 edges
2. `IStorage` - 332 edges
3. `registerRoutes()` - 125 edges
4. `cn()` - 106 edges
5. `useToast()` - 102 edges
6. `apiRequest()` - 87 edges
7. `Button` - 53 edges
8. `useAuth()` - 51 edges
9. `scrubCurrentUserError()` - 49 edges
10. `Badge()` - 47 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
- `TermsCurrentResponse` --references--> `TermsDocument`  [EXTRACTED]
  client/src/components/terms-gate-modal.tsx → shared/schema.ts
- `useCarousel()` --references--> `react`  [EXTRACTED]
  client/src/components/ui/carousel.tsx → package.json

## 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 (159 total, 55 thin omitted)

### Community 1 - "Database Storage Implementation"
Cohesion: 0.02
Nodes (5): DatabaseStorage, HubspotAlertState, InsertMultibmValidatedTemplate, MultibmAlertState, MultibmValidatedTemplate

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

### Community 3 - "Badge and Card UI"
Cohesion: 0.10
Nodes (23): ICON, NoticeBanner(), NoticeBannerProps, VARIANT, Alert, AlertDescription, AlertTitle, alertVariants (+15 more)

### Community 4 - "Roles and Permissions"
Cohesion: 0.03
Nodes (71): RFC-4180, InfobipSubscriptionEvent, InfobipSubscriptionRecord, mapInfobipButtonsToLocal(), CREATABLE_ROLES, hasPermission(), Permission, PERMISSIONS (+63 more)

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

### Community 6 - "Accordion and Dialog UI"
Cohesion: 0.10
Nodes (48): ConfigResponse, EMPTY_TERM_FORM, PERSONA_FIELDS, TermFormState, columnTargetLabel(), ContactFilePreviewTable(), PageHeader(), PageHeaderProps (+40 more)

### Community 7 - "Account Management Page"
Cohesion: 0.08
Nodes (69): ClientsTab(), ServicesTab(), CompositorTab(), GeneratorTab(), SenderProfileSheet(), TermsGateModal(), canDoOperational(), canManageCredits() (+61 more)

### Community 8 - "Button and Alert Dialog UI"
Cohesion: 0.08
Nodes (35): BusinessManager, countVars(), EditorForm, emptyForm, HeaderChoice, statusBadge(), ValidatedButton, ValidatedTemplate (+27 more)

### Community 9 - "Reporting and Monitoring Types"
Cohesion: 0.04
Nodes (55): AccountServiceRow, BmAssignmentClientRow, MultibmBmFailureStat, MultibmBmMetrics, MultibmClientMetrics, MultibmMonitoring, MultibmVolumePoint, PaginatedResult (+47 more)

### Community 10 - "AI Panel and Tabs UI"
Cohesion: 0.13
Nodes (21): express, requireAuth(), ALLOWED_RESULT_HOSTS, CheckNumberStatusResponse, CheckNumberTaskResponse, downloadWaFilterResults(), extractFileFromZip(), getWaFilterStatus() (+13 more)

### Community 11 - "App Routing and Auth Context"
Cohesion: 0.11
Nodes (24): ClientCallbackContact, ClientCallbackPayload, sendClientCallback(), dispatchHubspotMessageStandalone(), DispatchStandaloneResult, buildSendButtonsPayload(), enviarMensagemTemplate(), fetchWithRetry() (+16 more)

### Community 12 - "Infobip API Integration"
Cohesion: 0.11
Nodes (44): buildAuthHeaders(), buildButtonsArray(), buildCarouselCard(), buildHeaderComponent(), buildHeaders(), buscarRelatorio(), buscarSaldo(), buscarStatusTemplate() (+36 more)

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

### Community 14 - "Template Utilities and Form UI"
Cohesion: 0.06
Nodes (56): CampaignChatProps, ConversationPane(), ConversationRow, MessageBubble(), STATUS_LABEL, Badge(), BadgeProps, badgeVariants (+48 more)

### Community 15 - "Project Memory Notes"
Cohesion: 0.10
Nodes (7): The AI agent's prompt is composed from exactly two account-scoped sources, Tone of voice / extra instructions count as content on their own, 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 18 - "Sidebar Layout UI"
Cohesion: 0.09
Nodes (38): ResizableHandle(), ResizablePanelGroup(), SheetContent, SheetContentProps, SheetDescription, SheetFooter(), SheetHeader(), SheetOverlay (+30 more)

### Community 19 - "Campaign Storage Methods"
Cohesion: 0.05
Nodes (7): Campaign, Contact, InsertCampaign, InsertContact, InsertTwoStageConfig, TwoStageConfig, UpdateCampaign

### Community 20 - "CLAUDE.md Documentation"
Cohesion: 0.06
Nodes (33): 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, Atribuição por sender (não por BM), Comandos úteis (+25 more)

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

### Community 23 - "Auth Middleware and Checknumber"
Cohesion: 0.24
Nodes (3): UserWithServices, InsertService, Service

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

### Community 25 - "AI Agent Orchestration"
Cohesion: 0.08
Nodes (33): buildProfileSection(), buildSystemPrompt(), handleInboundMessage(), InboundMessage, normalizeForMatch(), selectKnowledge(), AiChatTurn, AiProviderError (+25 more)

### Community 26 - "Background Dispatch Workers"
Cohesion: 0.27
Nodes (11): apiGet(), getNumber(), GetNumberError, GetNumberResult, getStatus(), GetStatusResult, setStatus(), apiGet() (+3 more)

### Community 27 - "Server Bootstrap and Blocklist"
Cohesion: 0.09
Nodes (21): app, http, httpServer, IncomingMessage, Issue, pgPool, PgStore, applyBlocklist() (+13 more)

### Community 28 - "Campaign Chat UI"
Cohesion: 0.06
Nodes (31): VariableMappingPanel(), SectionStatus, SectionStatusBadge(), SectionStatusBadgeProps, AccordionContent, AccordionItem, AccordionTrigger, AnyTemplateButton (+23 more)

### Community 29 - "Multi-BM Dispatch Logic"
Cohesion: 0.14
Nodes (21): cancelPausedMultibmCampaign(), clearMultibmPauseRequest(), computeMultibmFinalizationResults(), countBodyPlaceholders(), deriveTemplate(), dispatchMultibmCampaign(), finalizarCampanhaMultibm(), inFlightCampaigns (+13 more)

### Community 30 - "DB Cleanup and Seed Scripts"
Cohesion: 0.11
Nodes (21): main(), cleanupApiCampaignOrphanMedia(), CleanupReport, CleanupRow, MEDIA_DIR, safeUnlink(), db, pool (+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 32 - "User and Sender Assignment Storage"
Cohesion: 0.10
Nodes (5): BmClientAssignment, InsertSenderAssignment, InsertUser, SenderAssignment, User

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

### Community 34 - "Admin Logs UI"
Cohesion: 0.15
Nodes (14): fmt(), HubspotRow, HubspotTab(), InfobipRow, InfobipTab(), LogSource, ORIGIN_COLORS, OUTCOME_COLORS (+6 more)

### 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.14
Nodes (17): buildPayload(), mapSuggestions(), RcsCard, RcsSendBasicParams, RcsSendParams, RcsSendResult, RcsSendSingleCardParams, RcsSendSingleMediaParams (+9 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.20
Nodes (13): AppSidebar(), ROLE_ICON, applyPrimaryColor(), BrandingConfig, BrandingContext, BrandingContextValue, BrandingProvider(), DEFAULT_BRANDING (+5 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.12
Nodes (13): useCarousel(), ChartConfig, ChartContainer, ChartContext, ChartContextProps, ChartLegendContent, ChartTooltipContent, THEMES (+5 more)

### 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.20
Nodes (8): Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut()

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

### 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.40
Nodes (4): StatusBadge(), StatusBadgeProps, StatusTone, TONE_CLASSES

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

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

### Community 53 - "HubSpot Dispatch Queue Storage"
Cohesion: 0.06
Nodes (34): ProtectedRoute(), Router(), ThemeToggle(), ScrollArea, ScrollBar, AuthContext, AuthContextType, AuthProvider() (+26 more)

### Community 56 - "Multi-BM Dashboard UI"
Cohesion: 0.19
Nodes (10): CampaignComposer(), CampaignComposerProps, composerErrorMessage(), ComposeResponse, DEFAULT_PERSONAS, GenerateResponse, Persona, PersonaOption (+2 more)

### Community 57 - "Toast UI Component"
Cohesion: 0.24
Nodes (10): Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastTitle, toastVariants (+2 more)

### Community 63 - "Multi-BM Webhook Tests"
Cohesion: 0.18
Nodes (8): buildApp(), createCalls, deleteCalls, infobipState, listCalls, sessionState, storageHandlers, storageState

### Community 65 - "blocklist.ts"
Cohesion: 0.13
Nodes (24): ACCEPTED_MIMES, profileFormSchema, ProfileFormValues, ProfileResponse, SenderProfileSheetProps, FormControl, FormDescription, FormField() (+16 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.20
Nodes (9): DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut(), DropdownMenuSubContent (+1 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 - "Multi-BM Template Sync Tests"
Cohesion: 0.29
Nodes (4): atomicState, buildApp(), sessionState, storageHandlers

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

### Community 75 - "Activity Log Storage"
Cohesion: 0.28
Nodes (4): inferActivityLogOrigin(), ActivityLog, ActivityLogOrigin, InsertActivityLog

### 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 85 - "Vendor Mask Exposure Tests"
Cohesion: 0.25
Nodes (5): buildApp(), EnviarFn, fetchCalls, HubSpotAuthError, storageState

### Community 86 - "Toggle UI Components"
Cohesion: 0.50
Nodes (5): addToRemoveQueue(), dispatch(), genId(), reducer(), Toast

### 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.15
Nodes (8): drizzle-kit push hangs on new tables, 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, Reply-window is measured from the latest inbound USER message, not the dispatch, Multi-BM Template Cluster (fill variables once for all BMs)

### Community 89 - "API Settings Storage"
Cohesion: 0.05
Nodes (57): AiProviderValue, ApiKeyPresence, IMAGE_MODELS, IMAGE_PROVIDERS, ProviderModelPicker(), ProviderModelPickerProps, TEXT_MODELS, TEXT_PROVIDERS (+49 more)

### Community 90 - "Template Media Storage"
Cohesion: 0.06
Nodes (59): AiProvider, buildComposeSystemPrompt(), buildGenerateSystemPrompt(), ComposerComposeInput, ComposerComposeResult, ComposerGenerateInput, ComposerGenerateResult, detectPlaceholderCount() (+51 more)

### 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 (5): ToggleGroup, ToggleGroupContext, ToggleGroupItem, Toggle, toggleVariants

### Community 100 - "HubSpot Workflow Action Tests"
Cohesion: 0.29
Nodes (4): buildApp(), dispatchInfobipCampaignMock, sessionState, storageHandlers

### Community 101 - "Toast Notification State"
Cohesion: 0.20
Nodes (7): buildApp(), criarTemplateMock, listarSendersFromApiMock, listarTemplatesPorWabaMock, sessionState, state, storageHandlers

### Community 102 - "Email Alert Mailer"
Cohesion: 0.29
Nodes (5): buildApp(), enviarMensagemTemplateMockRef, sessionState, state, storageHandlers

### Community 103 - "AI Conversation Messages"
Cohesion: 0.50
Nodes (3): Avatar, AvatarFallback, AvatarImage

### Community 105 - "Object Uploader Component"
Cohesion: 0.20
Nodes (7): buildApp(), db, infobipState, sessionState, storageHandlers, Sub, Tpl

### Community 106 - "Avatar UI Component"
Cohesion: 0.29
Nodes (5): buildApp(), criarTemplateMock, sessionState, state, storageHandlers

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

### Community 110 - "TemplatePreset"
Cohesion: 0.33
Nodes (4): buildApp(), enviarCalls, EnviarMensagemArgs, storageState

### 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 116 - "Output Sanitization"
Cohesion: 0.33
Nodes (4): buildApp(), sessionState, state, storageHandlers

### Community 118 - "mailer.ts"
Cohesion: 0.06
Nodes (54): ConfigResponse, AgentConfigResponse, ApiKeyPresence, CompositorConfigResponse, GeneratorConfigResponse, PROVIDER_CARDS, ProviderKey, TestResult (+46 more)

### Community 122 - "HubspotAlertState"
Cohesion: 0.22
Nodes (7): buildApp(), criarCalls, handlers, infobipState, sessionState, St, validBody

### Community 123 - "multibmSignature.ts"
Cohesion: 0.06
Nodes (36): AgentTab(), ConfigResponse, TabsContent, TabsList, TabsTrigger, Action, ActionType, actionTypes (+28 more)

### Community 132 - "multibmSignature.ts"
Cohesion: 0.39
Nodes (10): ClusterSignature, computeSignature(), countTemplateVars(), extractButtonUrlPrefix(), normalizeHeaderMarker(), normalizePrefix(), resolveSignature(), SignatureButton (+2 more)

### Community 133 - "multibmTemplateCluster.test.ts"
Cohesion: 0.20
Nodes (6): db, dispatch(), sender(), sendMock, storageHandlers, Sub

### 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 - "vendor-mask.ts"
Cohesion: 0.83
Nodes (3): RESTRICTED_ROLES, scrubVendor(), scrubVendorForRole()

### 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 144 - "btnUrlSuffix.ts"
Cohesion: 0.22
Nodes (12): buildMappedContacts(), BuildMappedContactsResult, ColumnMapping, ContactMappingError, MappedContact, BTN_URL_SUFFIX_ERROR_LABELS, BtnUrlSuffixResult, canonicalizeForCompare() (+4 more)

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

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

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

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

### Community 152 - "Service"
Cohesion: 0.29
Nodes (4): db, dispatch(), enviarMensagemTemplateMock, storageHandlers

### Community 156 - "scheduledDispatchWorker.test.ts"
Cohesion: 0.50
Nodes (3): dispatchDueCampaigns(), dispatchInfobipCampaignMock, dispatchMultibmCampaignMock

### Community 158 - "hover-card.tsx"
Cohesion: 0.10
Nodes (24): xlsx, express-session, hashPassword(), requireAdmin(), requireAdminOrOperator(), requireModerationAccess(), requireTermsAccepted(), requireUserManager() (+16 more)

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

## Knowledge Gaps
- **913 isolated node(s):** `ObjectUploaderProps`, `ConfigResponse`, `ConfigResponse`, `PERSONA_FIELDS`, `TermFormState` (+908 more)
  These have ≤1 connection - possible missing edges or undocumented components.
- **55 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 `dependencies` connect `NPM Runtime Dependencies` to `AI Panel and Tabs UI`, `Chart UI Component`, `Build Tooling Dependencies`, `OTP Input UI Component`, `hover-card.tsx`?**
  _High betweenness centrality (0.131) - this node is a cross-community bridge._
- **Why does `registerRoutes()` connect `hover-card.tsx` to `Roles and Permissions`, `multibmSignature.ts`, `Schema Status Enums`, `Account Management Page`, `multibmTemplateCluster.test.ts`, `AI Panel and Tabs UI`, `App Routing and Auth Context`, `Infobip API Integration`, `btnUrlSuffix.ts`, `HubSpot Auth and Timeline`, `AI Agent Orchestration`, `Background Dispatch Workers`, `Server Bootstrap and Blocklist`, `Multi-BM Dispatch Logic`, `DB Cleanup and Seed Scripts`, `mailer.ts`, `Media Storage Utilities`, `RCS API Client`, `HubSpot Action Sync`, `Multi-BM Health Sync`, `Template Media Storage`?**
  _High betweenness centrality (0.129) - this node is a cross-community bridge._
- **Why does `IStorage` connect `Storage Interface Methods` to `Database Storage Implementation`, `AccountServiceBalance`, `TemplateGeneratorConfig`, `Reporting and Monitoring Types`, `ClientBusinessProfile`, `Sender Profile and Notices UI`, `Infobip Sender Storage`, `scheduledDispatchWorker.test.ts`, `Campaign Storage Methods`, `Multi-BM Validated Templates UI`, `WABA Template Storage`, `Auth Middleware and Checknumber`, `CompositorConfig`, `User and Sender Assignment Storage`, `ClientBusinessProfile`, `Multi-BM Submission Storage`, `Branding Storage Methods`, `Multi-BM Template Storage`, `Infobip Config Storage`, `WABA Message Storage`, `Business Manager Storage`, `AI Conversation Storage`, `WA Filter Batch Storage`, `BM Sender Storage`, `Chip Activation Storage`, `HubSpot Connection Storage`, `RCS Sender Storage`, `API Token Storage`, `Knowledge Base Storage`, `Multi-BM Message Storage`, `RCS Config Storage`, `RCS Message Storage`, `dispatch`, `Activity Log Storage`, `Breadcrumb UI Component`, `Sheet UI Component`, `HubSpot Execute Diagnostics`, `Blocklist Term Storage`, `Status Mapping Storage`, `AI Client Settings Storage`, `Multi-BM Marketing Dispatch Tests`, `Column Keyword Storage`, `AI Agent Config Storage`, `HubSpot Alert Config Storage`, `Multi-BM Alert Config Storage`, `Multi-BM Config Storage`, `HubSpot Timeline Template Storage`, `Sender Stats Queries`, `Credit Transactions`, `vite.ts`?**
  _High betweenness centrality (0.104) - this node is a cross-community bridge._
- **Are the 8 inferred relationships involving `registerRoutes()` (e.g. with `displayName()` and `requireAdmin()`) actually correct?**
  _`registerRoutes()` has 8 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?**
  _917 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `Storage Interface Methods` be split into smaller, more focused modules?**
  _Cohesion score 0.017699115044247787 - nodes in this community are weakly interconnected._
- **Should `Database Storage Implementation` be split into smaller, more focused modules?**
  _Cohesion score 0.018666666666666668 - nodes in this community are weakly interconnected._