MCPcopy Create free account

hub / github.com/ahtavarasmus/lightfriend / functions

Functions2,907 in github.com/ahtavarasmus/lightfriend

↓ 5 callersFunctionget_room_messages
Helper to get recent messages from a room
backend/tests/bridge_integration_test.rs:271
↓ 5 callersMethodget_secret
Get the decrypted TOTP secret for a user
backend/src/repositories/totp_repository.rs:58
↓ 5 callersFunctionget_total_credits
Get total credits for a user (credits + credits_left)
backend/src/test_utils.rs:708
↓ 5 callersMethodget_vehicles
Get list of vehicles
backend/src/api/tesla.rs:292
↓ 5 callersMethodhas_active_bridges
(&self, user_id: i32)
backend/src/repositories/user_repository.rs:1293
↓ 5 callersMethodinto_inner
(self)
backend/src/channels/traits.rs:57
↓ 5 callersFunctionis_webauthn_supported
Check if WebAuthn is supported in this browser
frontend/src/utils/webauthn.rs:17
↓ 5 callersFunctionlogout_all_bridgev2_logins
Log out every CONNECTED login in a bridgev2 management room. Empirical finding: mautrix-whatsapp and mautrix-signal v26.04 both REQUIRE the login_id
backend/src/utils/bridge.rs:3390
↓ 5 callersFunctionmake_preview
(uid: &str, from_email: &str, subject: &str)
backend/tests/imap_idle_test.rs:16
↓ 5 callersFunctionnew_msg
(user_id: i32, content: &str, matrix_event_id: Option<&str>)
backend/tests/bridge_redaction_test.rs:16
↓ 5 callersFunctionnow_epoch
()
backend/src/repositories/pending_reply_watches_repository.rs:140
↓ 5 callersFunctionparse_iso_to_timestamp
Parse an ISO datetime string to a unix timestamp (seconds). `tz_offset_secs`: the user's timezone offset in seconds (e.g. 10800 for UTC+3). Naive dat
backend/src/proactive/utils.rs:41
↓ 5 callersFunctionplan_type_for_product
( product_kind: ProductKind, subscription_age: SubscriptionAge, )
backend/stripe_webhook_logic/src/lib.rs:31
↓ 5 callersMethodput
Create a PUT request with automatic credentials and backend URL
frontend/src/utils/api.rs:213
↓ 5 callersFunctionrequest_json
(url: str, headers: dict[str, str] | None = None)
scripts/update_enclave_dependency_pins.py:30
↓ 5 callersMethodrevoke
Mark a token as revoked. Truly idempotent: a second revoke of an already-revoked token still returns `Ok(true)` so client retries (double-click, netwo
backend/src/repositories/webhook_tokens_repository.rs:89
↓ 5 callersFunctionsearch_best_match
(bridge_rooms: &[BridgeRoom], search_term: &str)
backend/src/utils/bridge.rs:636
↓ 5 callersFunctionsend_bridge_message_trait
Send a bridge message using the trait interface (testable version)
backend/src/utils/bridge.rs:508
↓ 5 callersMethodsend_command
Generic command sender
backend/src/api/tesla.rs:615
↓ 5 callersFunctionsend_message
Helper to send a message to a room
backend/tests/bridge_integration_test.rs:190
↓ 5 callersFunctionsend_tts_response
( session: &mut CallSession, text: &str, send_tx: &mpsc::Sender<Message>, )
backend/src/api/voice_pipeline.rs:2254
↓ 5 callersMethodset_preferred_number_for_country
Set preferred number based on user's country code Returns the phone number that was set, or None if country doesn't have a dedicated number
backend/src/repositories/user_core.rs:1011
↓ 5 callersMethodstart_climate
Start climate preconditioning
backend/src/api/tesla.rs:391
↓ 5 callersFunctionstripe_product_kind
(product_id: &str)
backend/src/utils/country.rs:78
↓ 5 callersMethodupdate_event
( &self, user_id: i32, event_id: i32, append_description: Option<&str>,
backend/src/repositories/ontology_repository.rs:2175
↓ 5 callersMethodupdate_plan_type
Update the user's plan type ("autopilot", legacy "assistant", or None)
backend/src/repositories/user_subscriptions.rs:180
↓ 5 callersFunctionuser_with
(phone: &str, preferred: Option<&str>)
backend/tests/channels_router_test.rs:54
↓ 5 callersMethodwake_up
Wake up vehicle (if needed before sending commands)
backend/src/api/tesla.rs:815
↓ 5 callersMethodwith_user_context
Fetch user settings, info, timezone, contacts.
backend/src/context.rs:183
↓ 5 callersFunctionwrap_email_body
Generate branded email HTML wrapper with header and footer
backend/src/utils/email.rs:9
↓ 4 callersMethodadd_channel
Add a channel to an existing Person.
backend/src/repositories/ontology_repository.rs:373
↓ 4 callersFunctionany_connected
Convenience: does any parsed login show CONNECTED?
backend/src/utils/bridge_responses.rs:271
↓ 4 callersMethodapi_key
Get the API key for a provider
backend/src/ai_config.rs:159
↓ 4 callersFunctionbuild_greeting
(state: &Arc<AppState>, user_id: i32)
backend/src/api/voice_pipeline.rs:2040
↓ 4 callersFunctioncategory_score
Score a message's category for in-section ordering. Higher = more important. Spam returns a very negative value so callers can drop those messages out
backend/src/jobs/scheduler.rs:1238
↓ 4 callersFunctionclaim_or_log_duplicate
Try to atomically claim the prompt for the given reply label. Returns `true` when the caller is the first to resolve it - only then should side effect
backend/src/proactive/commitment_replies.rs:99
↓ 4 callersFunctionclassify_telegram_ping
Strict classifier for `!tg ping` responses. Returns: - `Some(LoggedIn { username })` if body starts with the verified prefix and a non-empty username
backend/src/utils/bridge_responses.rs:124
↓ 4 callersFunctionclear_user_store
Helper function to clear the user's Matrix store (reusable for login/logout)
backend/src/handlers/whatsapp_auth.rs:46
↓ 4 callersFunctioncompact_email_notification
(message: &str, snap: &serde_json::Value)
backend/src/proactive/utils.rs:105
↓ 4 callersMethodconfigure_webhook
( &self, credentials: &TwilioCredentials, phone_number: &str, sms_url: &str,
backend/src/api/twilio_client.rs:463
↓ 4 callersMethodcreate_challenge
Create a new challenge for registration or authentication
backend/src/repositories/webauthn_repository.rs:183
↓ 4 callersFunctioncreate_new_customer
Helper function to create a new Stripe customer
backend/src/handlers/stripe_handlers.rs:1228
↓ 4 callersFunctioncurrent_included_usage_window
( now: i32, current_start: Option<i32>, current_end: Option<i32>, )
backend/src/utils/usage.rs:15
↓ 4 callersFunctiondeduct_user_credits
Deducts credits from a user's account for voice/web events. SMS events are now deducted at Twilio status callback via deduct_from_twilio_price(). Thi
backend/src/utils/usage.rs:242
↓ 4 callersMethoddelete_challenges_by_type
Delete all challenges for a user of a specific type
backend/src/repositories/webauthn_repository.rs:247
↓ 4 callersFunctiondetect_imap_config
Detect IMAP server configuration from email address. Returns ImapConfig with server details, or None if unknown provider. This is an alternative to de
backend/src/handlers/imap_auth.rs:69
↓ 4 callersFunctionextract_media_url
Extract URL from MediaSource enum
backend/src/api/matrix_client.rs:415
↓ 4 callersFunctionfetch_event_logs
( client: &Client, rpc_url: &str, contract: &str, topic: &str, image_id_topic: Option<&str
backend/src/handlers/trust_chain_handlers.rs:296
↓ 4 callersMethodfind_by_email
(&self, email: &str)
backend/src/test_utils.rs:846
↓ 4 callersFunctionfirst_connected
Return the first entry whose status is exactly `CONNECTED`. This is the only positive signal we emit from `list-logins` today.
backend/src/utils/bridge_responses.rs:197
↓ 4 callersFunctionget_best_matches
(bridge_rooms: &[BridgeRoom], search_term: &str)
backend/src/utils/bridge.rs:681
↓ 4 callersFunctionget_country_capability
Get country capability from cache or fetch from Twilio and cache it
backend/src/api/twilio_availability.rs:153
↓ 4 callersMethodget_decrypted_auth_token
Get decrypted auth token for a server (if present)
backend/src/repositories/mcp_repository.rs:178
↓ 4 callersMethodget_decrypted_public_key
Get decrypted public key for a credential
backend/src/repositories/webauthn_repository.rs:84
↓ 4 callersMethodget_decrypted_url
Get decrypted URL for a server
backend/src/repositories/mcp_repository.rs:173
↓ 4 callersFunctionget_enum_values
Helper: extract enum values from a tool's property.
backend/tests/ontology_registry_test.rs:25
↓ 4 callersMethodget_imap_connection_by_id
Look up a specific IMAP connection by its primary key, returning `(user_id, ImapConnectionInfo, status)`. Used by the IDLE task loop to re-fetch crede
backend/src/repositories/user_repository.rs:325
↓ 4 callersMethodget_imap_credentials_by_email
Get IMAP credentials for a specific email address
backend/src/repositories/user_repository.rs:426
↓ 4 callersMethodget_passkey_count
Get count of passkeys for a user
backend/src/repositories/webauthn_repository.rs:170
↓ 4 callersMethodget_pending_digest_messages
Get pending digest items: medium/low-urgency messages not yet delivered and not yet seen by the user on the native platform.
backend/src/repositories/ontology_repository.rs:1796
↓ 4 callersMethodget_recent_messages_filtered
Get recent messages with optional platform filter and limit.
backend/src/repositories/ontology_repository.rs:1270
↓ 4 callersMethodget_recently_completed_events
( &self, user_id: i32, since_ts: i32, )
backend/src/repositories/ontology_repository.rs:2114
↓ 4 callersMethodget_user_tgid
Resolve the Matrix user's bridge-side Telegram user ID. Returns Ok(None) when the user has no row (never logged in) or the row exists but `tgid` is NU
backend/src/repositories/telegram_bridge_repository.rs:130
↓ 4 callersMethodget_valid_challenge
Get a valid (non-expired) challenge for a user
backend/src/repositories/webauthn_repository.rs:225
↓ 4 callersFunctionhumanize_tesla_cmd
(cmd: &str)
frontend/src/dashboard/rule_builder.rs:6669
↓ 4 callersFunctioninsert_classified_message_ext
( state: &std::sync::Arc<backend::AppState>, user_id: i32, room_id: &str, sender: &str, co
backend/tests/digest_layout_test.rs:581
↓ 4 callersMethodinto_inner
(self)
backend/src/api/twilio_sms/finalize.rs:247
↓ 4 callersFunctionis_error_message
Check if a message contains error content that should be skipped
backend/src/api/matrix_client.rs:757
↓ 4 callersFunctionis_group_room
(service: &str, member_localparts: &[String])
backend/src/utils/bridge.rs:190
↓ 4 callersFunctionis_one_time_key_conflict
Helper function to detect the one-time key conflict error
backend/src/handlers/whatsapp_auth.rs:30
↓ 4 callersFunctionlocal_minute_of_day
Helper: compute the local minute-of-day that a scheduler tick would see given the UTC minute-of-day and the user's offset in minutes.
backend/tests/digest_delivery_test.rs:15
↓ 4 callersFunctionown
(emails: &[&str])
backend/tests/sender_match_test.rs:52
↓ 4 callersFunctionrelative_time
(timestamp: i32, now_secs: i32)
frontend/src/dashboard/activity_feed.rs:899
↓ 4 callersFunctionresample
Resample audio using rubato's FftFixedInOut. `from_rate` and `to_rate` must be valid integer ratios.
backend/src/api/voice_pipeline.rs:118
↓ 4 callersMethodsearch_persons
Search persons by name (partial, case-insensitive). Checks both base name and nickname edits.
backend/src/repositories/ontology_repository.rs:835
↓ 4 callersFunctionsend_bridge_message
( service: &str, state: &Arc<AppState>, user_id: i32, chat_name: &str, message: &str,
backend/src/utils/bridge.rs:1513
↓ 4 callersMethodsends_sms
(self)
backend/src/api/twilio_sms.rs:254
↓ 4 callersMethodset_stripe_customer_id
( &self, user_id: i32, customer_id: &str, )
backend/src/repositories/user_subscriptions.rs:111
↓ 4 callersMethodset_subscription_tier
( &self, user_id: i32, tier: Option<&str>, )
backend/src/repositories/user_subscriptions.rs:19
↓ 4 callersFunctiontruncate_digest_piece
(text: &str, cap: usize)
backend/src/jobs/scheduler.rs:1350
↓ 4 callersFunctionunauthorized
()
backend/src/handlers/webhook_sms_handlers.rs:511
↓ 4 callersMethodupdate_message_status
( &self, message_sid: &str, update: &StatusUpdate, )
backend/src/repositories/mock_twilio_status_repository.rs:79
↓ 4 callersMethodurl
(&self)
backend/tests/matrix_mock_test.rs:23
↓ 4 callersFunctionuser
()
backend/tests/channels_sinch_test.rs:8
↓ 4 callersFunctionuser
()
backend/tests/channels_telnyx_test.rs:8
↓ 4 callersFunctionuses_hosted_credits
Does this plan use hosted messaging credits? (not BYOT which pays Twilio directly)
backend/src/utils/plan_features.rs:14
↓ 4 callersFunctionverify_telnyx_signature
Pure function: verify an Ed25519 signature on a Telnyx-style payload. The signed message is `<timestamp>|<body>` (UTF-8 bytes). `public_key` must be
backend/src/api/telnyx_utils.rs:37
↓ 4 callersFunctionvoice_provider_for_user
(state: &Arc<AppState>, user_id: i32)
backend/src/api/voice_pipeline.rs:326
↓ 3 callersFunctionassert_no_content_leak
Assert no user content leaked in response
backend/src/test_utils.rs:696
↓ 3 callersFunctionbucket_by_hour
Bucket timestamps into 24 hourly bins in the given timezone.
backend/src/repositories/ontology_repository.rs:68
↓ 3 callersFunctionbuild_system_prompt
Build the full system prompt from an already-assembled `AgentContext`. The core prompt (date, user info, contacts, tool rules, date/time rules) is sh
backend/src/agent_core.rs:33
↓ 3 callersFunctionbuild_tools
Load all tool definitions for a user: static registry + ontology + optional MCP.
backend/src/agent_core.rs:153
↓ 3 callersMethodchat_completion_with_attempts
( &self, provider: AiProvider, request: &openai_api_rs::v1::chat_completion::ChatCompl
backend/src/ai_config.rs:497
↓ 3 callersMethodcheck_phone_numbers_available
( &self, credentials: &TwilioCredentials, country_code: &str, )
backend/src/api/twilio_client.rs:534
↓ 3 callersMethodclear_included_usage_window
(&self, user_id: i32)
backend/src/repositories/user_subscriptions.rs:71
↓ 3 callersFunctioncompute_image_id
(pcr0: &str, pcr1: &str, pcr2: &str)
backend/src/handlers/trust_chain_handlers.rs:158
↓ 3 callersFunctioncompute_next_fire_at
Compute the next fire timestamp (UTC) for a recurring schedule pattern. Pattern formats: "daily HH:MM", "weekdays HH:MM", "weekly DAY HH:MM", "hourly"
backend/src/proactive/rules.rs:1197
↓ 3 callersMethodcompute_user_baseline
Compute sender signals from message history for importance evaluation. Returns empty signals on any error - never fails. Compute user baseline respons
backend/src/repositories/ontology_repository.rs:1440
↓ 3 callersMethodcreate_client
Create an OpenAI-compatible client for a specific provider
backend/src/ai_config.rs:190
↓ 3 callersFunctioncreate_test_vehicle_with_data
( vin: &str, name: &str, state: &str, battery_level: i32, inside_temp: f64, )
backend/src/api/tesla_client.rs:609
← previousnext →201–300 of 2,907, ranked by callers