MCPcopy Create free account

hub / github.com/ahtavarasmus/lightfriend / functions

Functions2,907 in github.com/ahtavarasmus/lightfriend

↓ 1 callersFunctionresolve_sms_user
(state: &Arc<AppState>, from: &str)
backend/src/api/twilio_sms/early_flow.rs:8
↓ 1 callersFunctionresolve_updates
()
scripts/update_enclave_dependency_pins.py:193
↓ 1 callersFunctionrespond_to_email
this is not used yet since it didn't work and not my priority rn
backend/src/handlers/imap_handlers.rs:831
↓ 1 callersFunctionretrieve_price_currency
(client: &Client, price_id: &str)
backend/src/handlers/stripe_handlers.rs:100
↓ 1 callersFunctionretry_delay
(attempt: u8)
backend/src/utils/tuwunel_event_cleanup.rs:731
↓ 1 callersFunctionrun_agent_loop
( mut input: AgentLoopInput<'_>, )
backend/src/api/twilio_sms/agent_loop.rs:36
↓ 1 callersFunctionrun_cli
()
backend/src/cli.rs:14
↓ 1 callersFunctionrun_commitment_detection
Detect and extract commitments from an incoming message. Runs immediately on every message (no delay, no seen-check). Independent of urgency classific
backend/src/proactive/system_behaviors.rs:885
↓ 1 callersFunctionrun_idle_loop
Outer reconnect loop: refresh creds, open a session, run the inner IDLE loop, and reconnect with exponential backoff on any error.
backend/src/utils/imap_idle.rs:104
↓ 1 callersFunctionsanitize_label
Strip control characters from the label so it can't break out of the `[label]` prefix on display. Already length-bounded at creation; we only need to
backend/src/handlers/webhook_sms_handlers.rs:533
↓ 1 callersFunctionscan_qr_code
(image_url: &str)
backend/src/tool_call_utils/internet.rs:178
↓ 1 callersFunctionselector
(signature: &str)
tools/attestation-verifier/src/main.rs:100
↓ 1 callersFunctionsend_alert_with_context
Send an admin alert with full context. Called by the macro's spawned task.
backend/src/utils/notification_utils.rs:126
↓ 1 callersFunctionsend_cancel_reply_in_background
( state: &Arc<AppState>, user: &User, response_msg: &str, start_time: std::time::Instant, )
backend/src/api/twilio_sms/early_flow.rs:74
↓ 1 callersFunctionsend_cleanup_commands
( state: &Arc<AppState>, config: &EventCleanupConfig, job: &EventCleanupJob, )
backend/src/utils/tuwunel_event_cleanup.rs:440
↓ 1 callersMethodsend_image
(&self, mxc_uri: &str, caption: &str, size: u64)
backend/src/api/matrix_client.rs:339
↓ 1 callersMethodsend_notification
Send a notification (no response expected)
backend/src/services/mcp_client.rs:331
↓ 1 callersFunctionsend_sms_failure_admin_email
Send an admin notification email for SMS delivery failures Uses Resend API for reliable email delivery. If Resend is not configured, logs a warning a
backend/src/utils/email.rs:348
↓ 1 callersFunctionsend_sms_failure_digest_email
Send the 6h carrier-noise digest email. Subject line includes the affected (masked) numbers so the inbox preview already tells the story; body lists p
backend/src/utils/email.rs:477
↓ 1 callersFunctionsend_sms_to_external_phone
Send SMS to an arbitrary phone (not necessarily a Lightfriend user). Credits are deducted from `from_user`. Used for the accountability-friend nudge,
backend/src/proactive/utils.rs:460
↓ 1 callersFunctionsend_subscription_activated_email
Send a subscription activated email to an existing user who subscribed via guest checkout Uses Resend API for reliable email delivery. If Resend is n
backend/src/utils/email.rs:229
↓ 1 callersFunctionserialize_assertion_response
Serialize assertion response (from authentication) for sending to backend
frontend/src/utils/webauthn.rs:418
↓ 1 callersFunctionserialize_attestation_response
Serialize attestation response (from registration) for sending to backend
frontend/src/utils/webauthn.rs:386
↓ 1 callersMethodset_fail_on_create
Configure to fail on next create_user call.
backend/src/repositories/mock_signup_repository.rs:99
↓ 1 callersMethodset_fail_on_find_email
Configure to fail on find_by_email calls.
backend/src/repositories/mock_signup_repository.rs:104
↓ 1 callersMethodset_magic_token
(&self, user_id: i32, token: &str)
backend/src/repositories/user_core.rs:343
↓ 1 callersMethodset_matrix_device_id_and_access_token
Update Matrix device_id and access_token in PG `user_secrets` table.
backend/src/repositories/user_repository.rs:1449
↓ 1 callersMethodset_matrix_secret_storage_recovery_key
Set the Matrix secret storage recovery key in PG `user_secrets` table.
backend/src/repositories/user_repository.rs:1505
↓ 1 callersMethodset_max_defrost
Set max defrost mode
backend/src/api/tesla.rs:421
↓ 1 callersFunctionset_plan_type
Set the plan_type for a user.
backend/src/test_utils.rs:638
↓ 1 callersFunctionset_preferred_number
Set the preferred_number for a user
backend/src/test_utils.rs:650
↓ 1 callersMethodset_prompt_sms_sid
Backfill the channel SID on a freshly-created prompt row. The row is inserted before the outbound send so the unique partial index can reject racing d
backend/src/repositories/commitment_repository.rs:275
↓ 1 callersMethodset_refresh_token_hash
(&self, user_id: i32, token_hash: &str)
backend/src/repositories/user_core.rs:434
↓ 1 callersMethodset_steering_wheel_heater
Set steering wheel heater
backend/src/api/tesla.rs:451
↓ 1 callersMethodset_stripe_checkout_session_id
( &self, user_id: i32, session_id: &str, )
backend/src/repositories/user_subscriptions.rs:159
↓ 1 callersMethodset_stripe_customer_id
( &self, user_id: i32, customer_id: &str, )
backend/src/repositories/mock_signup_repository.rs:265
↓ 1 callersMethodset_stripe_payment_method_id
( &self, user_id: i32, payment_method_id: &str, )
backend/src/repositories/user_subscriptions.rs:135
↓ 1 callersFunctionsetup_backups
Sets up encryption backups for a Matrix client
backend/src/utils/matrix_auth.rs:262
↓ 1 callersFunctionsetup_cross_signing
Sets up cross-signing for a Matrix client
backend/src/utils/matrix_auth.rs:295
↓ 1 callersFunctionshould_attempt_telnyx_delivery_fallback
(status: &str, error_code: Option<&str>)
backend/src/handlers/twilio_handlers.rs:210
↓ 1 callersFunctionshould_process_message
Determine if a message should be processed based on its age
backend/src/api/matrix_client.rs:707
↓ 1 callersFunctionshutdown_background_tasks
( state: &Arc<AppState>, user_id: i32, imap_connection_ids: &[i32], )
backend/src/services/data_purge.rs:482
↓ 1 callersFunctionsinch_price_usd_per_message
Read the configured per-message Sinch price in USD, used to deduct credits on final status. Defaults to $0.0079 if `SINCH_USD_PER_MESSAGE` is unset —
backend/src/handlers/sinch_handlers.rs:104
↓ 1 callersFunctionskip_step
( handle: &Arc<Mutex<PurgeState>>, id: &'static str, label: &'static str, detail: &str, )
backend/src/services/data_purge.rs:248
↓ 1 callersFunctionsort_users_by_id_desc
(mut users: Vec<UserInfo>)
frontend/src/admin/dashboard.rs:265
↓ 1 callersFunctionspawn_climate_monitoring
Helper to spawn climate monitoring (for synchronous path) Note: This function is only called when user explicitly requested notification via notify_wh
backend/src/tool_call_utils/tesla.rs:446
↓ 1 callersFunctionspawn_reasoning_bridge
( status_tx: Option<&tokio::sync::mpsc::Sender<ChatStatus>>, )
backend/src/api/twilio_sms/status.rs:12
↓ 1 callersFunctionspawn_sync_loop
Spawn a sync loop for `client` with exponential backoff on error (1s to 5min). Returns the JoinHandle so the caller can track liveness and abort on te
backend/src/utils/matrix_auth.rs:750
↓ 1 callersFunctionsplit_trailing_punctuation
(url: &str)
backend/src/utils/sms_sanitizer.rs:142
↓ 1 callersMethodstart
()
backend/tests/matrix_mock_test.rs:18
↓ 1 callersFunctionstart_chat_telegram
Send `!tg pm <tgid>` to the Telegram bridge management room, then poll the bridge DB for the newly materialized portal mxid. mautrix-telegram v0.15.3
backend/src/utils/bridge.rs:1361
↓ 1 callersFunctionstart_chat_whatsapp
Send `!wa start-chat +<phone>` to the WhatsApp bridge management room and return the Matrix room ID of the (possibly newly created) portal. Usage: ca
backend/src/utils/bridge.rs:3475
↓ 1 callersFunctionstart_scheduler
(state: Arc<AppState>)
backend/src/jobs/scheduler.rs:490
↓ 1 callersMethodstore_label_embedding
( &self, embedding: &NewCommitmentLabelEmbedding, )
backend/src/repositories/commitment_repository.rs:312
↓ 1 callersFunctionstress_test
( email_addr: str, password: str, count: int, backend_log: str, pg_url: str, imap_host
scripts/imap_idle_stress.py:247
↓ 1 callersFunctionstrip_forget_prefix
(body: &str)
backend/src/api/twilio_sms/assembly.rs:110
↓ 1 callersFunctionstrip_urls
Strip URLs and trailing connector phrases from a notification string. SMS chars are expensive and tracking links balloon length, so we drop any whites
backend/src/proactive/system_behaviors.rs:33
↓ 1 callersFunctionsync_email_read_receipts
Sync email read receipts: check IMAP \Seen flags for recent unseen email ont_messages and mark them as seen if the user read them in their mail client
backend/src/jobs/scheduler.rs:1964
↓ 1 callersFunctionsync_email_receipts_for_user
( state: &Arc<AppState>, user_id: i32, creds: &[crate::repositories::user_repository::ImapConnecti
backend/src/jobs/scheduler.rs:2028
↓ 1 callersFunctiontelnyx_delivery_fallback_body
(body: &str)
backend/src/handlers/twilio_handlers.rs:218
↓ 1 callersFunctiontelnyx_price_usd_per_message
Read configured per-message Telnyx price in USD. Defaults to $0.004 (rough US Telnyx SMS list price). Operators override via env when their actual con
backend/src/handlers/telnyx_handlers.rs:116
↓ 1 callersFunctiontinfoil_voice_enabled
()
backend/src/api/voice_pipeline.rs:315
↓ 1 callersFunctionto_completion_messages
( chat_messages: Vec<ChatMessage>, )
backend/src/api/twilio_sms/assembly.rs:231
↓ 1 callersMethodtoggle_server
Toggle server enabled/disabled status
backend/src/repositories/mcp_repository.rs:114
↓ 1 callersFunctiontool_answer_from_dispatch
(result: crate::agent_core::ToolDispatchResult)
backend/src/api/voice_pipeline.rs:1492
↓ 1 callersMethodtranscribe
Transcribe audio via Whisper.
backend/src/api/tinfoil_client.rs:130
↓ 1 callersMethodtry_claim_rule
Atomically claim a rule for execution: sets status to "completed" only if the rule is currently "active". Returns true if this caller won the claim (i
backend/src/repositories/ontology_repository.rs:2472
↓ 1 callersFunctiontry_send_commitment_prompt
( state: &Arc<AppState>, user_id: i32, message_id: Option<i64>, platform: &str, sender_key
backend/src/proactive/system_behaviors.rs:1904
↓ 1 callersFunctiontwiml_reject
()
backend/src/api/voice_pipeline.rs:487
↓ 1 callersFunctionunix_now
()
backend/src/api/twilio_sms/agent_loop.rs:385
↓ 1 callersMethodupdate_accountability_enabled
(&self, user_id: i32, value: bool)
backend/src/repositories/user_core.rs:787
↓ 1 callersMethodupdate_accountability_friend_name
( &self, _user_id: i32, _value: Option<&str>, )
backend/src/test_utils.rs:944
↓ 1 callersMethodupdate_accountability_friend_name
( &self, user_id: i32, value: Option<&str>, )
backend/src/repositories/user_core.rs:775
↓ 1 callersMethodupdate_accountability_friend_phone
( &self, user_id: i32, value: Option<&str>, )
backend/src/repositories/user_core.rs:763
↓ 1 callersMethodupdate_action_on_critical_message
( &self, user_id: i32, action: Option<String>, )
backend/src/repositories/user_core.rs:1227
↓ 1 callersMethodupdate_auto_confirm_tracked_items
( &self, user_id: i32, value: bool, )
backend/src/repositories/user_core.rs:924
↓ 1 callersMethodupdate_auto_create_items
(&self, user_id: i32, value: bool)
backend/src/repositories/user_core.rs:859
↓ 1 callersMethodupdate_auto_topup
Update user's auto top-up settings
backend/src/repositories/user_core.rs:1170
↓ 1 callersMethodupdate_auto_track_items_system
(&self, user_id: i32, value: bool)
backend/src/repositories/user_core.rs:915
↓ 1 callersMethodupdate_bridge_status
Update bridge status (e.g., "connected", "connecting", "cleaning_up")
backend/src/repositories/user_repository.rs:1224
↓ 1 callersMethodupdate_call_notify
(&self, user_id: i32, call_notify: bool)
backend/src/repositories/user_core.rs:1292
↓ 1 callersMethodupdate_channel_notification
Update channel notification settings.
backend/src/repositories/ontology_repository.rs:680
↓ 1 callersMethodupdate_critical_enabled
( &self, user_id: i32, enabled: Option<String>, )
backend/src/repositories/user_core.rs:1211
↓ 1 callersMethodupdate_digest_enabled
(&self, user_id: i32, value: bool)
backend/src/repositories/user_core.rs:897
↓ 1 callersMethodupdate_digest_time
(&self, user_id: i32, value: Option<&str>)
backend/src/repositories/user_core.rs:906
↓ 1 callersMethodupdate_info
(&self, user_id: i32, info: &str)
backend/src/repositories/user_core.rs:795
↓ 1 callersMethodupdate_last_credit_pack_purchase
( &self, user_id: i32, amount: f32, timestamp: i32, )
backend/src/repositories/user_subscriptions.rs:271
↓ 1 callersMethodupdate_last_credits_notification
( &self, user_id: i32, timestamp: i32, )
backend/src/repositories/user_core.rs:1189
↓ 1 callersMethodupdate_location
(&self, _user_id: i32, _location: &str)
backend/src/test_utils.rs:990
↓ 1 callersMethodupdate_location
(&self, user_id: i32, location: &str)
backend/src/repositories/user_core.rs:804
↓ 1 callersMethodupdate_message_price
( &self, message_sid: &str, price: f32, price_unit: &str, )
backend/src/repositories/mock_twilio_status_repository.rs:105
↓ 1 callersMethodupdate_nearby_places
(&self, user_id: i32, nearby_places: &str)
backend/src/repositories/user_core.rs:822
↓ 1 callersMethodupdate_nickname
Individual field update methods for inline editing
backend/src/repositories/user_core.rs:755
↓ 1 callersMethodupdate_notification_type
( &self, user_id: i32, notification_type: Option<&str>, )
backend/src/repositories/user_core.rs:984
↓ 1 callersMethodupdate_openai_realtime_voice
(&self, user_id: i32, voice: &str)
backend/src/repositories/user_core.rs:975
↓ 1 callersMethodupdate_own_twilio_enabled
( &self, user_id: i32, enabled: bool, )
backend/src/test_utils.rs:1304
↓ 1 callersMethodupdate_person_name
Update Person's base name.
backend/src/repositories/ontology_repository.rs:915
↓ 1 callersMethodupdate_phone_number
(&self, user_id: i32, phone: &str)
backend/src/repositories/user_core.rs:458
↓ 1 callersMethodupdate_phone_service_active
( &self, _user_id: i32, _active: bool, )
backend/src/test_utils.rs:1091
↓ 1 callersMethodupdate_phone_service_active
(&self, user_id: i32, active: bool)
backend/src/repositories/user_core.rs:840
← previousnext →1,201–1,300 of 2,907, ranked by callers