MCPcopy Create free account

hub / github.com/ahtavarasmus/lightfriend / functions

Functions2,907 in github.com/ahtavarasmus/lightfriend

↓ 1 callersMethoddelete_tesla_connection
(&self, user_id: i32)
backend/src/repositories/user_repository.rs:1000
↓ 1 callersMethoddelete_user
(&self, user_id: i32)
backend/src/repositories/user_core.rs:374
↓ 1 callersMethoddelete_youtube_connection
(&self, user_id: i32)
backend/src/repositories/user_repository.rs:913
↓ 1 callersFunctiondeliver_real_sms
(input: DeliverSmsResponseInput<'_>)
backend/src/api/twilio_sms/delivery.rs:92
↓ 1 callersFunctiondeliver_smart_digests
Deliver smart digests: check which users have pending unhandled messages and deliver a sectioned recap at the user's local digest window.
backend/src/jobs/scheduler.rs:1794
↓ 1 callersFunctiondeliver_sms_response
(input: DeliverSmsResponseInput<'_>)
backend/src/api/twilio_sms/delivery.rs:26
↓ 1 callersFunctiondescribe_action
(action_type: &str, action_config: &str)
frontend/src/dashboard/rules_section.rs:644
↓ 1 callersFunctiondescribe_node_summary
ELSE part - recursively describe all nesting levels
frontend/src/dashboard/rule_builder.rs:5992
↓ 1 callersFunctiondescribe_trigger
(trigger_type: &str, trigger_config: &str, next_fire_at: Option<i32>)
frontend/src/dashboard/rules_section.rs:586
↓ 1 callersMethoddescription
(&self)
frontend/src/dashboard/rule_builder.rs:897
↓ 1 callersFunctiondetect_imap_server
Detects the IMAP server based on email domain. Returns (server, port) tuple.
backend/src/handlers/imap_auth.rs:132
↓ 1 callersFunctiondetect_platform
Detect platform from a URL
frontend/src/dashboard/media_panel.rs:48
↓ 1 callersFunctiondetect_provider_from_domain
(domain: &str)
backend/src/handlers/imap_auth.rs:215
↓ 1 callersFunctiondetect_provider_from_mx
Look up MX records for a domain and try to match against known providers.
backend/src/handlers/imap_auth.rs:295
↓ 1 callersFunctiondetect_user_waiting
Detect if the user sent a message that hasn't been replied to yet.
backend/src/proactive/system_behaviors.rs:723
↓ 1 callersFunctiondigest_test_message
( id: i64, sender: &str, room: &str, summary: &str, created_at: i32, )
backend/tests/digest_layout_test.rs:128
↓ 1 callersFunctiondir_size
(path: &Path)
backend/src/bin/tuwunel_restore.rs:123
↓ 1 callersMethoddisable_alert_type
Disable an alert type
backend/src/repositories/admin_alert_repository.rs:122
↓ 1 callersMethoddisable_totp
Disable TOTP for a user
backend/src/repositories/totp_repository.rs:106
↓ 1 callersMethoddismiss_event
(&self, user_id: i32, event_id: i32)
backend/src/repositories/ontology_repository.rs:2171
↓ 1 callersFunctiondispatch_realtime_tool_call
( init: &OpenAiRealtimeInit, state: &Arc<AppState>, name: &str, arguments: &str, call_id:
backend/src/api/voice_pipeline.rs:1503
↓ 1 callersFunctiondisplay_platform
(p: &str)
frontend/src/dashboard/people_list.rs:390
↓ 1 callersFunctiondockerhub_token
(repository: str)
scripts/update_enclave_dependency_pins.py:66
↓ 1 callersMethodeffective_notification_mode
Get the effective notification mode for a specific channel. Channel 'default' -> Person edit -> user_settings default (caller provides fallback).
backend/src/models/ontology_models.rs:434
↓ 1 callersMethodemail_exists
Basic validation methods
backend/src/repositories/user_core.rs:685
↓ 1 callersFunctionemail_ref_annotation_from_snapshot
(snap: &serde_json::Value)
backend/src/proactive/utils.rs:157
↓ 1 callersMethodembed_url
Get the embed URL for this media item
frontend/src/dashboard/media_panel.rs:31
↓ 1 callersMethodenable_alert_type
Enable an alert type (remove from disabled list)
backend/src/repositories/admin_alert_repository.rs:146
↓ 1 callersMethodenable_totp
Enable TOTP for a user (called after successful verification)
backend/src/repositories/totp_repository.rs:95
↓ 1 callersFunctionencode_bool_call
(signature: &str, bytes32_arg_hex: &str)
tools/attestation-verifier/src/main.rs:107
↓ 1 callersFunctionencode_verify_call
(image_id_hex: &str)
backend/src/handlers/trust_chain_handlers.rs:183
↓ 1 callersFunctionencode_wav_16bit_mono
Encode raw PCM samples as a WAV file (16-bit mono).
backend/src/api/voice_pipeline.rs:69
↓ 1 callersFunctionenqueue_processed_bridge_event
( state: &Arc<AppState>, user_id: i32, service: &str, room_id: &str, event_id: &str, o
backend/src/utils/tuwunel_event_cleanup.rs:43
↓ 1 callersFunctionenrich_commit_info
Enrich a slice of builds with commit_message/pr_number in parallel.
backend/src/handlers/trust_chain_handlers.rs:803
↓ 1 callersMethodensure_user_info_exists
(&self, _user_id: i32)
backend/src/test_utils.rs:972
↓ 1 callersFunctionenv_has_value
(var: &str)
backend/src/main.rs:102
↓ 1 callersFunctionevaluate_flow
Walk the flow tree recursively. `prev_message` carries the LLM-generated message from a parent condition so that downstream action nodes can use it. `
backend/src/proactive/rules.rs:491
↓ 1 callersFunctionevent_cleanup_worker
( mut rx: mpsc::Receiver<EventCleanupJob>, tx: mpsc::Sender<EventCleanupJob>, state: Arc<AppState>
backend/src/utils/tuwunel_event_cleanup.rs:308
↓ 1 callersFunctionexecute_flow_action
( state: &Arc<AppState>, rule: &OntRule, trigger_snapshot: Option<&serde_json::Value>, action_
backend/src/proactive/rules.rs:1054
↓ 1 callersFunctionexecute_tesla_command
( tesla_client: &crate::api::tesla::TeslaClient, access_token: &str, vehicle_vin: &str, vehicl
backend/src/tool_call_utils/tesla.rs:264
↓ 1 callersMethodexpire_old_rules
Expire rules past their expires_at timestamp.
backend/src/repositories/ontology_repository.rs:2606
↓ 1 callersMethodexpire_prompt
Mark a prompt resolved without a user reply (e.g. expired by TTL job).
backend/src/repositories/commitment_repository.rs:287
↓ 1 callersMethodexpire_stale_ongoing_calls
Expire stale "ongoing" call records older than the given cutoff timestamp. These are calls that never received a webhook callback.
backend/src/repositories/user_repository.rs:737
↓ 1 callersFunctionextract_bearer
(headers: &HeaderMap)
backend/src/handlers/webhook_sms_handlers.rs:415
↓ 1 callersFunctionextract_domain
(url: &str)
backend/src/utils/sms_sanitizer.rs:148
↓ 1 callersFunctionextract_idempotency_key
Pull and validate an optional `Idempotency-Key` header. - Missing header → Ok(None) (idempotency disabled for this request) - Present but malformed →
backend/src/handlers/webhook_sms_handlers.rs:434
↓ 1 callersFunctionextract_login_url
Helper function to extract login url more efficiently
backend/src/handlers/telegram_auth.rs:888
↓ 1 callersFunctionextract_media_results_tag
(tool_answers: &HashMap<String, String>)
backend/src/api/twilio_sms/finalize.rs:78
↓ 1 callersFunctionextract_media_sids
(response: &str)
backend/src/api/twilio_sms/delivery.rs:145
↓ 1 callersFunctionextract_pairing_code
Extract pairing code from bot message. The mautrix-whatsapp bridge returns something like "Your pairing code: ABCD-EFGH" or just the code. Pairing cod
backend/src/handlers/whatsapp_auth.rs:415
↓ 1 callersFunctionextract_phone_from_jid
Extract the user-part of a WhatsApp JID. For "5218117978256@s.whatsapp.net" this returns "5218117978256". Returns None for non-individual JIDs.
backend/src/repositories/whatsapp_bridge_repository.rs:515
↓ 1 callersFunctionextract_schema_fields
Extract required field names from a JSON Schema input_schema. Returns all property names (required first, then optional).
frontend/src/dashboard/rule_builder.rs:6360
↓ 1 callersFunctionextract_video_id
Extracts a YouTube video ID from various URL formats or returns the input if it's already an ID
backend/src/handlers/youtube.rs:717
↓ 1 callersFunctionextract_youtube_video_id
Extract video ID from a YouTube URL
frontend/src/dashboard/media_panel.rs:58
↓ 1 callersFunctionfetch_attestation
( client: &Client, metadata: &LiveMetadata, challenge_hex: &str, )
tools/attestation-verifier/src/main.rs:120
↓ 1 callersFunctionfetch_block_timestamp
(client: &Client, rpc_url: &str, block_hex: &str)
backend/src/handlers/trust_chain_handlers.rs:365
↓ 1 callersFunctionfetch_bridge_contacts
Fetch contacts directly from the bridge bot via management room commands. Sends `!<service> list contacts` and parses the response. Returns (all_conta
backend/src/utils/bridge.rs:2835
↓ 1 callersFunctionfetch_bridge_room_messages
( service: &str, state: &Arc<AppState>, user_id: i32, chat_name: &str, limit: Option<u64>,
backend/src/utils/bridge.rs:985
↓ 1 callersFunctionfetch_build_metadata
(client: &Client, url: &str)
backend/src/handlers/trust_chain_handlers.rs:196
↓ 1 callersFunctionfetch_commit_info
Look up (and populate the cache for) commit info for a single SHA.
backend/src/handlers/trust_chain_handlers.rs:718
↓ 1 callersFunctionfetch_current_blockchain_info
Fetch blockchain info for ONLY the current image. Fast path for /api/trust-chain. Uses topic-filtered eth_getLogs so the RPC only returns 0-1 matching
backend/src/handlers/trust_chain_handlers.rs:485
↓ 1 callersFunctionfetch_directory_contacts
Fetch contacts via Matrix user directory search API. Returns (total_users_returned, matched_results).
backend/src/utils/bridge.rs:2734
↓ 1 callersFunctionfetch_emails_imap_for_account
( state: &AppState, user_id: i32, email: &str, password: &str, imap_server: Option<&str>,
backend/src/handlers/imap_handlers.rs:1258
↓ 1 callersFunctionfetch_imap_connection_ids
(state: &Arc<AppState>, user_id: i32)
backend/src/services/data_purge.rs:349
↓ 1 callersFunctionfetch_matrix_username
(state: &Arc<AppState>, user_id: i32)
backend/src/services/data_purge.rs:334
↓ 1 callersMethodfetch_messages
( &self, limit: u64, filter_prefix: Option<&str>, )
backend/src/api/matrix_client.rs:243
↓ 1 callersFunctionfetch_provision_contacts
Fetch contacts via mautrix bridge provisioning API (v3). Returns (total_contacts, matched_results). Requires WHATSAPP_BRIDGE_URL / SIGNAL_BRIDGE_URL /
backend/src/utils/bridge.rs:2649
↓ 1 callersFunctionfetch_single_email_from_account
( state: &AppState, user_id: i32, email_id: &str, email: &str, password: &str, imap_se
backend/src/handlers/imap_handlers.rs:1410
↓ 1 callersFunctionfetch_single_email_imap
( state: &AppState, user_id: i32, email_id: &str, )
backend/src/handlers/imap_handlers.rs:1366
↓ 1 callersFunctionfetch_single_imap_email
( State(state): State<Arc<AppState>>, auth_user: AuthUser, axum::extract::Path(email_id): axum::ex
backend/src/handlers/imap_handlers.rs:1083
↓ 1 callersFunctionfetch_user_bridges
(state: &Arc<AppState>, user_id: i32)
backend/src/services/data_purge.rs:362
↓ 1 callersFunctionfinalize_sms_response
( mut input: FinalizeSmsResponseInput<'_>, )
backend/src/api/twilio_sms/finalize.rs:27
↓ 1 callersMethodfind_active_bridge
Find an active (non-expired) bridge watch for this (user, room).
backend/src/repositories/pending_reply_watches_repository.rs:83
↓ 1 callersMethodfind_active_email
Find an active email watch for (user, account, sender). `sender_key` is the already-normalized sender email produced by IMAP ingest.
backend/src/repositories/pending_reply_watches_repository.rs:102
↓ 1 callersMethodfind_by_phone_number
(&self, phone: &str)
backend/src/test_utils.rs:855
↓ 1 callersMethodfind_by_stripe_customer_id
( &self, customer_id: &str, )
backend/src/repositories/mock_signup_repository.rs:178
↓ 1 callersMethodfind_channels_by_room_ids
Find channels by room_ids. Returns map of room_id -> person display name. Used by search_chats to show which rooms are already assigned.
backend/src/repositories/ontology_repository.rs:794
↓ 1 callersFunctionfind_duplicate_email_room_ids
Global duplicate check across all email-sourced rows. Dedup is a cross-user invariant, so we don't need to scope by user here — `room_id` is `
scripts/imap_idle_stress.py:197
↓ 1 callersMethodfind_latest_unresolved_for_user
Most recently-sent unresolved prompt for a user *within the reply window*. Anything older than `REPLY_MATCH_WINDOW_SECS` is excluded so a bare `1/2/3/
backend/src/repositories/commitment_repository.rs:199
↓ 1 callersMethodfind_person_by_room_id
Find a Person by room_id on any of their channels.
backend/src/repositories/ontology_repository.rs:571
↓ 1 callersFunctionfind_person_room
Fuzzy search the ontology for a matching Person on the given platform. Returns everything we know about the channel (handle + room_id), not just the r
backend/src/tool_call_utils/bridge.rs:99
↓ 1 callersMethodfind_primary_sender_name_in_room
Find the most recent non-"You" sender_name seen in a given room. Used to probe signals for debug views when we only know a person + room, not the exac
backend/src/repositories/ontology_repository.rs:1169
↓ 1 callersFunctionfind_room_id_for_chat
Resolve a chat name to a room_id. Checks ontology channels and stored messages first, then uses Matrix room list for name-to-room-id resolution (not f
backend/src/utils/bridge.rs:1026
↓ 1 callersMethodfind_unresolved_for_sender
Live prompt for a (user, platform, sender_key) - used to dedup further detections from the same sender while the first prompt is unresolved.
backend/src/repositories/commitment_repository.rs:216
↓ 1 callersFunctionformat_age
(seconds: i32)
backend/src/proactive/system_behaviors.rs:692
↓ 1 callersFunctionformat_comment_time
(published_at: &str)
frontend/src/dashboard/media_panel.rs:140
↓ 1 callersFunctionformat_digest_group
Collapse adjacent messages from the same (sender, room) into a single digest line. Within a group, summaries are joined chronologically with "; " so t
backend/src/jobs/scheduler.rs:1394
↓ 1 callersFunctionformat_digest_message
Format a single high-signal message line: "- Sender: short teaser". Drops platform name (redundant), strips sender re-statement from the summary, and
backend/src/jobs/scheduler.rs:1323
↓ 1 callersFunctionformat_duration_secs
(secs: f64)
frontend/src/dashboard/people_list.rs:363
↓ 1 callersMethodformat_for_prompt
(&self, sender_name: &str)
backend/src/models/ontology_models.rs:329
↓ 1 callersFunctionformat_pattern
(pattern: &str)
frontend/src/dashboard/rules_section.rs:726
↓ 1 callersFunctionformat_snapshot_message
Build a short, readable notification from a trigger snapshot so the user doesn't receive raw JSON. Falls back to a generic line if the snapshot doesn'
backend/src/proactive/rules.rs:161
↓ 1 callersFunctionformat_timestamp_date
(ts: i32)
frontend/src/profile/billing_credits.rs:47
↓ 1 callersFunctionformat_view_count
Format view count to human readable (e.g., 1.2M, 45K)
backend/src/handlers/youtube.rs:985
↓ 1 callersFunctiongenerate_article_schema
(post: &BlogPost)
backend/src/blog/schema.rs:19
↓ 1 callersFunctiongenerate_howto_schema
(post: &BlogPost)
backend/src/blog/schema.rs:95
↓ 1 callersMethodgenerate_magic_token
Generate a 64-character alphanumeric magic token.
backend/src/services/signup_service.rs:243
↓ 1 callersFunctiongenerate_schema
(post: &BlogPost)
backend/src/blog/schema.rs:3
↓ 1 callersFunctiongenerate_token
()
backend/src/handlers/webhook_sms_handlers.rs:487
↓ 1 callersFunctiongeocode_location
Geocode a location name to lat/lon using Geoapify API
backend/src/handlers/profile_handlers.rs:8
← previousnext →801–900 of 2,907, ranked by callers