MCPcopy Index your code

hub / github.com/openclaw/wacli / functions

Functions1,829 in github.com/openclaw/wacli

↓ 577 callersMethodErrorf
(msg string, args ...interface{})
internal/wa/logger.go:46
↓ 174 callersMethodClose
()
internal/app/app.go:26
↓ 111 callersMethodUpsertChat
(jid, kind, name string, lastTS time.Time)
cmd/wacli/channels.go:291
↓ 105 callersMethodDB
()
cmd/wacli/send.go:197
↓ 97 callersFunctionWriteJSON
(w io.Writer, data interface{})
internal/out/out.go:15
↓ 95 callersFunctionnewTestApp
(t *testing.T)
internal/app/app_test.go:240
↓ 88 callersFunctionnewFakeWA
()
internal/app/fake_wa_test.go:118
↓ 83 callersMethodUpsertMessage
(p UpsertMessageParams)
internal/store/messages.go:55
↓ 83 callersMethodWA
()
cmd/wacli/send.go:196
↓ 78 callersFunctionopenTestDB
(t *testing.T)
internal/store/store_test.go:9
↓ 74 callersFunctioncloseApp
(a *app.App, lk *lock.Lock)
cmd/wacli/root.go:195
↓ 69 callersMethodGetMessage
(chatJID, msgID string)
internal/store/messages.go:297
↓ 67 callersFunctionnewApp
(ctx context.Context, flags *rootFlags, needLock bool, allowUnauthed bool)
cmd/wacli/root.go:95
↓ 64 callersFunctionwithTimeout
(ctx context.Context, flags *rootFlags)
cmd/wacli/root.go:188
↓ 62 callersFunctionsanitize
(s string)
cmd/wacli/helpers.go:35
↓ 62 callersFunctionstoreCtx
()
internal/store/types.go:230
↓ 56 callersMethodrequireWritable
()
cmd/wacli/root.go:181
↓ 49 callersMethodErr
()
internal/app/sync_limits.go:36
↓ 49 callersMethodIsConnected
()
internal/app/app.go:28
↓ 45 callersMethodemitWarning
(code, message string, data map[string]any)
internal/app/events.go:42
↓ 41 callersMethodEnsureAuthed
()
internal/app/app.go:187
↓ 41 callersMethodExecContext
(context.Context, string, ...interface{})
internal/store/storedb/db.go:13
↓ 39 callersMethodConnect
(ctx context.Context, opts wa.ConnectOptions)
internal/app/app.go:30
↓ 39 callersMethodSync
(ctx context.Context, opts SyncOptions)
internal/app/sync.go:64
↓ 37 callersFunctiontableCell
(s string, max int, full bool)
cmd/wacli/table.go:12
↓ 35 callersMethodGetChat
(jid string)
internal/store/chats.go:102
↓ 34 callersFunctioncanonicalJIDString
(jid types.JID)
internal/app/jid.go:16
↓ 30 callersFunctionParseLiveMessage
(evt *events.Message)
internal/wa/messages.go:90
↓ 30 callersFunctionnullString
(s string)
internal/store/types.go:183
↓ 28 callersFunctionfromUnix
(sec int64)
internal/store/types.go:154
↓ 27 callersFunctionOpen
(path string)
internal/store/db.go:23
↓ 27 callersFunctionnullIfEmpty
(s string)
internal/store/types.go:175
↓ 27 callersFunctionunix
(t time.Time)
internal/store/types.go:147
↓ 26 callersMethodStoreDir
()
internal/app/app.go:237
↓ 26 callersMethodcanonicalStoreJID
(ctx context.Context, jid types.JID)
internal/app/jid.go:20
↓ 25 callersMethodUpsertPoll
UpsertPoll inserts or replaces a poll row keyed on (chat_jid, msg_id).
internal/store/polls.go:45
↓ 25 callersMethodWrite
(p []byte)
internal/wa/media.go:317
↓ 25 callersFunctioncountRows
(t *testing.T, db *sql.DB, q string, args ...any)
internal/store/store_test.go:21
↓ 25 callersMethodhandleLiveSyncMessage
(ctx context.Context, opts SyncOptions, v *events.Message, messagesStored *atomic.Int64, enqueueMedia func(str
internal/app/sync_events.go:358
↓ 24 callersFunctionwaitForPostSendRetryReceipts
(ctx context.Context, d time.Duration)
cmd/wacli/send_helpers.go:100
↓ 23 callersMethodUpsertGroup
(jid, name, ownerJID string, created time.Time)
internal/store/groups.go:12
↓ 23 callersFunctionopenSendTestDB
(t *testing.T)
cmd/wacli/send_test.go:15
↓ 23 callersFunctionresolveRecipient
(a recipientResolverApp, input string, opts recipientOptions)
cmd/wacli/recipient.go:26
↓ 23 callersFunctionrunSendOperation
( ctx context.Context, reconnect func(context.Context) error, op func(context.Context) (T, error), )
cmd/wacli/send_helpers.go:24
↓ 23 callersFunctionwarnRapidSendIfNeeded
(storeDir string, now time.Time, stderr io.Writer)
cmd/wacli/send_helpers.go:112
↓ 22 callersFunctionNew
(opts Options)
internal/app/app.go:124
↓ 22 callersFunctionreconnectForSend
(a interface { WA() app.WAClient Connect(context.Context, bool, func(string)) error })
cmd/wacli/send_helpers.go:90
↓ 21 callersMethodSet
(message string)
internal/app/sync_status.go:89
↓ 19 callersMethodGetPoll
GetPoll fetches a single poll by (chat_jid, msg_id). Returns sql.ErrNoRows if not found.
internal/store/polls.go:85
↓ 19 callersFunctionParseUserOrJID
(s string)
internal/wa/jid.go:10
↓ 19 callersMethodQueryRowContext
(context.Context, string, ...interface{})
internal/store/storedb/db.go:16
↓ 19 callersFunctionescapeHtml
(value)
scripts/docs-site-render.mjs:177
↓ 18 callersMethodUpsertPollVote
UpsertPollVote replaces the vote row for (chat, poll, voter).
internal/store/polls.go:216
↓ 18 callersMethodtableHasColumn
(table, column string)
internal/store/migrations.go:598
↓ 17 callersMethodListPollVotes
ListPollVotes returns the per-voter votes for a poll, ordered by ts ASC.
internal/store/polls.go:272
↓ 17 callersMethodemitOrPrint
(event string, data map[string]any, format string, args ...any)
internal/app/events.go:19
↓ 17 callersFunctionmessageIDs
(msgs []Message)
internal/store/messages_test.go:654
↓ 16 callersFunctionDefaultConfigPath
()
internal/config/config.go:70
↓ 16 callersMethodGetContact
(ctx context.Context, jid types.JID)
internal/app/app.go:41
↓ 16 callersMethodListGroups
(query string, limit int)
internal/resolve/resolve.go:36
↓ 16 callersMethodListMessages
(p ListMessagesParams)
internal/store/messages.go:219
↓ 16 callersMethodUpsertContact
(jid, phone, pushName, fullName, firstName, businessName string)
internal/store/contacts.go:118
↓ 16 callersMethodemit
(evt interface{})
internal/app/fake_wa_test.go:131
↓ 16 callersFunctionexecute
(args []string)
cmd/wacli/root.go:33
↓ 15 callersFunctionclone
(b []byte)
internal/wa/messages.go:382
↓ 15 callersFunctionwarmupRecipient
(ctx context.Context, wa userInfoResolver, jid types.JID, stderr io.Writer)
cmd/wacli/send_helpers.go:151
↓ 14 callersFunctionWritePrivateFile
(path string, data []byte)
internal/fsutil/write.go:10
↓ 14 callersFunctioncaptureStderr
captureStderr swaps os.Stderr for the duration of fn and returns everything written to it. This lets tests observe the panic-recovery log emitted by t
internal/app/sync_panic_test.go:18
↓ 14 callersFunctioncleanCallValue
(s string)
internal/wa/calls.go:310
↓ 13 callersMethodListCallEvents
(p ListCallEventsParams)
internal/store/calls.go:182
↓ 13 callersMethodName
()
internal/syscontacts/syscontacts.go:18
↓ 13 callersMethodOpenWA
()
internal/app/app.go:150
↓ 13 callersMethodRelease
()
internal/lock/lock.go:121
↓ 13 callersMethodSearchMessages
(p SearchMessagesParams)
internal/store/search.go:23
↓ 13 callersFunctioncaptureRootStdout
(t *testing.T, fn func())
cmd/wacli/root_test.go:38
↓ 13 callersFunctionnewTableWriter
(dst io.Writer)
cmd/wacli/table.go:8
↓ 12 callersMethodHasFTS
()
internal/store/types.go:234
↓ 12 callersFunctionSanitizeSegment
(seg string)
internal/pathutil/sanitize.go:33
↓ 12 callersMethodSetStarred
(p SetStarredParams)
internal/store/starred.go:29
↓ 12 callersMethodhandleHistorySync
(ctx context.Context, opts SyncOptions, v *events.HistorySync, messagesStored, lastEvent *atomic.Int64, enqueu
internal/app/sync_events.go:413
↓ 11 callersFunctionAcquire
(storeDir string)
internal/lock/lock.go:22
↓ 11 callersFunctionNewEventWriter
(w io.Writer, enabled bool)
internal/out/events.go:23
↓ 11 callersMethodResolveChatName
(context.Context, types.JID, string)
cmd/wacli/chats.go:152
↓ 11 callersFunctionfullTableOutput
(forceFull bool)
cmd/wacli/helpers.go:58
↓ 11 callersFunctiontryDelegateSend
(ctx context.Context, flags *rootFlags, lockErr error, req sendDelegateRequest)
cmd/wacli/send_ipc.go:111
↓ 10 callersFunctionBestContactName
(info types.ContactInfo)
internal/wa/client.go:772
↓ 10 callersMethodCountMessages
()
internal/store/messages.go:305
↓ 10 callersMethodEmit
(event string, data map[string]any)
internal/out/events.go:35
↓ 10 callersMethodLocalResolver
()
internal/app/app.go:212
↓ 10 callersMethodMarkGroupLeft
(jid string, leftAt time.Time)
internal/store/groups.go:38
↓ 10 callersMethodQueryContext
(context.Context, string, ...interface{})
internal/store/storedb/db.go:15
↓ 10 callersFunctionboolToInt64
(b bool)
internal/store/types.go:168
↓ 10 callersFunctionparseTime
(s string)
cmd/wacli/helpers.go:21
↓ 10 callersFunctiontableColumns
(db *sql.DB, table string)
internal/store/schema_test.go:447
↓ 10 callersFunctionvalidatePollOptions
validatePollOptions trims, deduplicates, and bounds-checks user-supplied poll options. Returns the cleaned, ordered option list.
cmd/wacli/send_poll_cmd.go:132
↓ 9 callersMethodLinkedJID
()
internal/app/app.go:94
↓ 9 callersMethodListHistoryCoverage
(p ListHistoryCoverageParams)
internal/store/history.go:35
↓ 9 callersFunctionMediaTypeFromString
(mediaType string)
internal/wa/media.go:42
↓ 9 callersFunctionParseHistoryMessage
(chatJID string, hist *waProto.WebMessageInfo)
internal/wa/messages.go:109
↓ 9 callersMethodRemoveEventHandler
(id uint32)
internal/app/app.go:33
next →1–100 of 1,829, ranked by callers