Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArnasDon/wacrm
/ functions
Functions
1,053 in github.com/ArnasDon/wacrm
⨍
Functions
1,053
◇
Types & classes
317
↓ 2 callers
Function
loadStepsTree
(automationId: string)
src/lib/automations/steps-tree.ts:128
↓ 2 callers
Function
lookupInternalIdByMetaId
* Resolve a Meta-side message_id into the matching internal UUID, scoped * to one conversation. Returns null when we never received the parent * (e.
src/app/api/whatsapp/webhook/route.ts:484
↓ 2 callers
Function
makeSupabaseMock
()
src/app/api/whatsapp/send/route.test.ts:31
↓ 2 callers
Function
mergeConsecutive
(messages: ChatMessage[])
src/lib/ai/providers/shared.ts:74
↓ 2 callers
Function
noDb
()
src/lib/whatsapp/send-message.test.ts:12
↓ 2 callers
Function
openDetail
(contactId: string)
src/app/(dashboard)/contacts/page.tsx:240
↓ 2 callers
Function
openEdit
(template: MessageTemplate)
src/components/settings/template-manager.tsx:234
↓ 2 callers
Function
parse
(s: string)
src/lib/automations/engine.ts:633
↓ 2 callers
Function
removeFromBranches
( branches: BuilderStep["branches"], path: StepPath, )
src/components/automations/automation-builder.tsx:1500
↓ 2 callers
Function
requireUser
* GET /api/flows — list the caller's flows. * POST /api/flows — create a new (draft) flow. * * Available to every authenticated user. The previous
src/app/api/flows/route.ts:16
↓ 2 callers
Function
resolveConversationId
* Pick the conversation a send-type step should use. Prefer the id the * webhook handed us (it's the one that just got the inbound message); * fall
src/lib/automations/engine.ts:566
↓ 2 callers
Function
resolveImportTagIds
( supabase: SupabaseClient, params: { accountId: string; userId: string; tagNames: string[];
src/lib/contacts/resolve-import-tags.ts:21
↓ 2 callers
Function
rpcErrorToResponse
(err: PostgrestError)
src/app/api/account/members/[userId]/route.ts:31
↓ 2 callers
Function
run
(args)
public/opus/encoderWorker.min.js:1
↓ 2 callers
Function
save
()
src/components/settings/ai-knowledge.tsx:93
↓ 2 callers
Function
selectResult
()
src/app/api/whatsapp/send/route.test.ts:35
↓ 2 callers
Function
sendButtonsAndSuspend
( db: AdminClient, run: FlowRunRow, node: FlowNodeRow, )
src/lib/flows/engine.ts:355
↓ 2 callers
Function
sendInteractiveViaMeta
( input: SendInput, )
src/lib/flows/meta-send.ts:318
↓ 2 callers
Function
sendListAndSuspend
( db: AdminClient, run: FlowRunRow, node: FlowNodeRow, )
src/lib/flows/engine.ts:391
↓ 2 callers
Function
sendViaMeta
(input: SendInput)
src/lib/automations/meta-send.ts:60
↓ 2 callers
Function
setContactTags
( db: SupabaseClient, accountId: string, auditUserId: string, contactId: string, tagNames: string[]
src/lib/api/v1/contacts.ts:159
↓ 2 callers
Function
startPolling
()
src/app/(dashboard)/broadcasts/page.tsx:96
↓ 2 callers
Function
summarizeNode
(node: BuilderNode)
src/components/flows/shared.tsx:308
↓ 2 callers
Function
thisMonth
(d: Deal)
src/components/pipelines/pipeline-analytics.tsx:73
↓ 2 callers
Function
toggleTagFilter
(tagId: string)
src/app/(dashboard)/contacts/page.tsx:326
↓ 2 callers
Function
touchLastUsed
(id: string)
src/lib/api-keys/store.ts:81
↓ 2 callers
Function
unauthorized
(message = 'Missing or invalid API key')
src/lib/api/v1/respond.ts:54
↓ 2 callers
Function
updateStep
()
src/lib/automations/engine.test.ts:238
↓ 2 callers
Function
upsertTemplateRow
( supabase: SupabaseClient, row: ReturnType<typeof buildUpsertRow>, )
src/app/api/whatsapp/templates/submit/route.ts:59
↓ 2 callers
Function
usePresence
(enabled = true)
src/hooks/use-presence.ts:45
↓ 2 callers
Function
useUserTags
* Shared loader for both `condition` (subject=tag) and `set_tag`. * Falls back to raw UUID input if the endpoint is absent on older * deployments —
src/components/flows/forms/node-config-form.tsx:830
↓ 2 callers
Function
validateAiCredentials
(config: AiConfig)
src/lib/ai/validate.ts:12
↓ 2 callers
Function
validateInteractiveBody
(bodyText: string)
src/lib/whatsapp/meta-api.ts:960
↓ 2 callers
Function
validateInteractiveHeaderFooter
( headerText: string | undefined, footerText: string | undefined, )
src/lib/whatsapp/meta-api.ts:969
↓ 2 callers
Function
walkBranches
( branches: BuilderStep["branches"], path: StepPath, updater: (s: BuilderStep) => BuilderStep, )
src/components/automations/automation-builder.tsx:1456
↓ 1 callers
Function
ChartLegend
( { payload }: any, categoryColors: Map<string, AvailableChartColorsKeys>, setLegendHeight: React.Dispat
src/components/tremor/bar-chart.tsx:389
↓ 1 callers
Function
UTF8ToString
(ptr,maxBytesToRead)
public/opus/encoderWorker.min.js:1
↓ 1 callers
Function
abortOnCannotGrowMemory
(requestedSize)
public/opus/encoderWorker.min.js:1
↓ 1 callers
Function
addOnInit
(cb)
public/opus/encoderWorker.min.js:1
↓ 1 callers
Function
addOnPostRun
(cb)
public/opus/encoderWorker.min.js:1
↓ 1 callers
Function
addOnPreRun
(cb)
public/opus/encoderWorker.min.js:1
↓ 1 callers
Function
addRow
(sIdx: number)
src/components/flows/forms/node-config-form.tsx:421
↓ 1 callers
Function
addRunDependency
(id)
public/opus/encoderWorker.min.js:1
↓ 1 callers
Function
aiContextMessageLimit
()
src/lib/ai/defaults.ts:40
↓ 1 callers
Function
applyRow
(row: { user_id: string; status: StoredPresence; last_seen_at: string; })
src/hooks/use-presence.ts:64
↓ 1 callers
Function
arcPath
(cx: number, cy: number, r: number, startRad: number, endRad: number)
src/components/dashboard/pipeline-donut.tsx:134
↓ 1 callers
Function
assertContiguous
* Meta requires contiguous, 1-indexed variables. `{{1}} {{3}}` is * invalid — it must be `{{1}} {{2}}`.
src/lib/whatsapp/template-validators.ts:78
↓ 1 callers
Function
assignImportedContactTags
( supabase: SupabaseClient, assignments: ContactTagAssignment[], tagIdByKey: Map<string, string> )
src/lib/contacts/resolve-import-tags.ts:107
↓ 1 callers
Function
attempt
(phone: string)
src/lib/whatsapp/send-message.ts:304
↓ 1 callers
Function
attempt
(phone: string)
src/lib/automations/meta-send.ts:97
↓ 1 callers
Function
blankConfig
(type: AutomationStepType)
src/components/automations/automation-builder.tsx:141
↓ 1 callers
Function
buildBody
()
src/components/settings/ai-config.tsx:128
↓ 1 callers
Function
buildBodyComponent
(payload: TemplatePayload)
src/lib/whatsapp/template-components.ts:69
↓ 1 callers
Function
buildBodyComponent
( template: MessageTemplate, params: SendTimeParams, )
src/lib/whatsapp/template-send-builder.ts:126
↓ 1 callers
Function
buildButtonComponent
( button: TemplateButton, index: number, override: string | undefined, )
src/lib/whatsapp/template-send-builder.ts:165
↓ 1 callers
Function
buildButtonsComponent
(payload: TemplatePayload)
src/lib/whatsapp/template-components.ts:109
↓ 1 callers
Function
buildFooterComponent
(payload: TemplatePayload)
src/lib/whatsapp/template-components.ts:84
↓ 1 callers
Function
buildHeaderComponent
(payload: TemplatePayload)
src/lib/whatsapp/template-components.ts:37
↓ 1 callers
Function
buildHeaderComponent
( template: MessageTemplate, params: SendTimeParams, )
src/lib/whatsapp/template-send-builder.ts:72
↓ 1 callers
Function
buildSubmitPayload
()
src/components/settings/template-manager.tsx:206
↓ 1 callers
Function
builder
(table: string)
src/lib/automations/engine.test.ts:56
↓ 1 callers
Function
builder
(table: string)
src/app/api/whatsapp/send/route.test.ts:32
↓ 1 callers
Function
buttonNeedsSendParam
( button: TemplateButton, override: string | undefined, )
src/lib/whatsapp/template-send-builder.ts:147
↓ 1 callers
Function
calculateHeight
(height: number | undefined)
src/components/tremor/bar-chart.tsx:402
↓ 1 callers
Function
calculateReach
()
src/components/broadcasts/step4-schedule-send.tsx:53
↓ 1 callers
Function
cancelEdit
()
src/components/settings/ai-knowledge.tsx:87
↓ 1 callers
Function
cap
(s: string)
src/components/settings/settings-overview.tsx:148
↓ 1 callers
Function
changeButtonType
(index: number, type: TemplateButton['type'])
src/components/settings/template-manager.tsx:425
↓ 1 callers
Function
checkConnection
()
src/app/(dashboard)/inbox/page.tsx:164
↓ 1 callers
Function
commit
()
src/components/automations/automation-builder.tsx:862
↓ 1 callers
Function
commit
()
src/components/flows/flow-builder.tsx:229
↓ 1 callers
Function
computeStageProbability
* Weighted pipeline value: value × per-stage probability. * First stage ≈ 10%, stages interpolate up to 90% before the final stage, * final stage (W
src/components/pipelines/pipeline-analytics.tsx:33
↓ 1 callers
Function
confirm
()
src/components/inbox/template-picker.tsx:161
↓ 1 callers
Function
confirmDelete
(tag: Tag)
src/components/settings/tag-manager.tsx:122
↓ 1 callers
Function
confirmDelete
(contact: Contact)
src/app/(dashboard)/contacts/page.tsx:245
↓ 1 callers
Function
constructCategoryColors
( categories: string[], colors: AvailableChartColorsKeys[], )
src/components/tremor/chart-colors.ts:83
↓ 1 callers
Function
countButtonsByType
( buttons: TemplateButton[], )
src/lib/whatsapp/template-validators.ts:169
↓ 1 callers
Function
createAndSendBroadcast
(payload: BroadcastPayload)
src/hooks/use-broadcast-sending.ts:323
↓ 1 callers
Function
createWasm
()
public/opus/encoderWorker.min.js:1
↓ 1 callers
Function
currentStatus
()
src/components/presence/presence-heartbeat.tsx:45
↓ 1 callers
Function
deleteNote
(noteId: string)
src/components/contacts/contact-detail-view.tsx:284
↓ 1 callers
Function
deliverBroadcast
( db: SupabaseClient, plan: BroadcastPlan )
src/lib/whatsapp/broadcast-core.ts:262
↓ 1 callers
Function
deliverOne
( db: SupabaseClient, row: EndpointRow, event: WebhookEvent, payload: string, tsSeconds: number )
src/lib/webhooks/deliver.ts:86
↓ 1 callers
Function
describeTrigger
(flow: FlowRow)
src/app/(dashboard)/flows/page.tsx:425
↓ 1 callers
Function
dispatchInboundToFlows
( input: DispatchInboundInput & { isFirstInboundMessage: boolean }, )
src/lib/flows/engine.ts:829
↓ 1 callers
Function
downloadBlob
(filename: string, content: string)
src/app/(dashboard)/broadcasts/[id]/page.tsx:132
↓ 1 callers
Function
downloadMedia
( args: DownloadMediaArgs )
src/lib/whatsapp/meta-api.ts:1022
↓ 1 callers
Function
duplicate
(a: Automation)
src/app/(dashboard)/automations/page.tsx:108
↓ 1 callers
Function
embeddingsKeyPayload
()
src/components/settings/ai-config.tsx:125
↓ 1 callers
Function
engineSendInteractiveButtons
( args: SendInteractiveButtonsEngineArgs, )
src/lib/flows/meta-send.ts:298
↓ 1 callers
Function
engineSendInteractiveList
( args: SendInteractiveListEngineArgs, )
src/lib/flows/meta-send.ts:308
↓ 1 callers
Function
engineSendMedia
( args: SendMediaEngineArgs, )
src/lib/flows/meta-send.ts:169
↓ 1 callers
Function
engineSendTemplate
( args: SendTemplateArgs, )
src/lib/automations/meta-send.ts:50
↓ 1 callers
Function
errResponse
(status: number, json: unknown)
src/lib/ai/generate.test.ts:27
↓ 1 callers
Function
evaluateCondition
(cfg: ConditionStepConfig, args: ExecuteArgs)
src/lib/automations/engine.ts:594
↓ 1 callers
Function
evaluateConditionNode
* Resolve a condition node's subject value from DB / run state, then * call the pure `evaluateConditionPredicate`. Splits out so the * predicate its
src/lib/flows/engine.ts:469
↓ 1 callers
Function
executeAutomation
(automation: Automation, input: DispatchInput)
src/lib/automations/engine.ts:166
↓ 1 callers
Function
executeHandoff
( db: AdminClient, run: FlowRunRow, node: FlowNodeRow, )
src/lib/flows/engine.ts:433
↓ 1 callers
Function
expandFromSeeds
Template seeds are flat with parent_index references. Expand into the * builder's nested tree, preserving order within each scope.
src/app/(dashboard)/automations/new/page.tsx:71
↓ 1 callers
Function
extractKey
* Extract the bearer token from the `Authorization` header. * Tolerates the `Bearer ` prefix being absent (some clients send the * bare key) but req
src/lib/auth/api-context.ts:59
← previous
next →
301–400 of 1,053, ranked by callers