MCPcopy Create free account

hub / github.com/ahtavarasmus/lightfriend / functions

Functions2,907 in github.com/ahtavarasmus/lightfriend

↓ 3 callersMethodcreate_user
(&self, new_user: NewUser)
backend/src/repositories/mock_signup_repository.rs:225
↓ 3 callersMethodcreate_user
( &self, new_user: crate::handlers::auth_dtos::NewUser, )
backend/src/repositories/user_core.rs:274
↓ 3 callersFunctiondate_group_label
(timestamp: i32, now_secs: i32)
frontend/src/dashboard/activity_feed.rs:873
↓ 3 callersMethoddefinition
(&self)
backend/src/tools/email.rs:20
↓ 3 callersMethoddelete_message_media
Delete media attached to a message.
backend/src/services/twilio_message_service.rs:538
↓ 3 callersFunctiondispatch_tool
( state: &Arc<AppState>, user: &User, name: &str, arguments: &str, tool_call_id: &str,
backend/src/agent_core.rs:229
↓ 3 callersFunctionemit_ontology_change
Called after every ontology mutation. Finds matching rules and evaluates them.
backend/src/proactive/rules.rs:1410
↓ 3 callersFunctionemit_status
( status_tx: Option<&tokio::sync::mpsc::Sender<ChatStatus>>, status: ChatStatus, )
backend/src/api/twilio_sms/status.rs:3
↓ 3 callersFunctionenv_product_matches
(env_key: &str, product_id: &str)
backend/src/utils/country.rs:47
↓ 3 callersFunctionfetch_emails_imap
( state: &AppState, user_id: i32, limit: Option<u32>, unprocessed: bool, unread_only: bool
backend/src/handlers/imap_handlers.rs:1183
↓ 3 callersMethodfind_by_email
(&self, email: &str)
backend/src/repositories/mock_signup_repository.rs:195
↓ 3 callersMethodfind_by_hash
Find a token row by its SHA-256 hash. Returns None when no row matches; callers must not distinguish "no such hash" from "revoked" in responses to kee
backend/src/repositories/webhook_tokens_repository.rs:117
↓ 3 callersFunctionformat_battery_status
Format battery status message
backend/src/api/tesla_client.rs:216
↓ 3 callersFunctiongenerate_faq_schema
(post: &BlogPost)
backend/src/blog/schema.rs:57
↓ 3 callersMethodget_active_events
(&self, user_id: i32)
backend/src/repositories/ontology_repository.rs:2070
↓ 3 callersMethodget_conversation_history
( &self, user_id: i32, )
backend/src/repositories/user_repository.rs:77
↓ 3 callersMethodget_distinct_senders
Get distinct senders from ont_messages (for rule builder autocomplete).
backend/src/repositories/ontology_repository.rs:2562
↓ 3 callersMethodget_event
(&self, user_id: i32, event_id: i32)
backend/src/repositories/ontology_repository.rs:2062
↓ 3 callersMethodget_events_due_on_local_day
Tracked events with `due_at` falling inside the user's local current day. Caller passes the day boundaries as UTC unix timestamps (compute from `now +
backend/src/repositories/ontology_repository.rs:1872
↓ 3 callersMethodget_imap_credentials
( &self, user_id: i32, )
backend/src/repositories/user_repository.rs:256
↓ 3 callersMethodget_matrix_credentials
( &self, user_id: i32, )
backend/src/repositories/user_repository.rs:1542
↓ 3 callersMethodget_message_user_info
( &self, message_sid: &str, )
backend/src/repositories/mock_twilio_status_repository.rs:125
↓ 3 callersMethodget_messages_for_event
Get all messages linked to an event, ordered by message timestamp ASC.
backend/src/repositories/ontology_repository.rs:1216
↓ 3 callersMethodget_messaging_pricing
( &self, credentials: &TwilioCredentials, country_code: &str, )
backend/src/api/twilio_client.rs:574
↓ 3 callersMethodget_per_user_stats
( &self, from_timestamp: i32, )
backend/src/repositories/bandwidth_repository.rs:56
↓ 3 callersMethodget_rule
(&self, user_id: i32, rule_id: i32)
backend/src/repositories/ontology_repository.rs:2390
↓ 3 callersMethodget_selected_vehicle_info
( &self, user_id: i32, )
backend/src/repositories/user_repository.rs:1101
↓ 3 callersMethodget_selected_vehicle_vin
(&self, user_id: i32)
backend/src/repositories/user_repository.rs:1067
↓ 3 callersMethodget_voice_pricing
( &self, credentials: &TwilioCredentials, country_code: &str, use_v2: bool,
backend/src/api/twilio_client.rs:619
↓ 3 callersFunctionhandle_tesla_command
Handle Tesla tool call from AI assistant skip_notification: If true, don't send SMS notification when car wakes up (for dashboard calls)
backend/src/tool_call_utils/tesla.rs:67
↓ 3 callersFunctionhandle_youtube_search
Search YouTube videos
backend/src/tool_call_utils/youtube.rs:84
↓ 3 callersFunctionhash_magic_token
Hash a magic token with SHA-256 so that only the digest is stored in the database, not the raw token that appears in the email link.
backend/src/repositories/user_core.rs:22
↓ 3 callersMethodid
(&self)
backend/src/channels/sinch_channel.rs:68
↓ 3 callersMethodincrease_credits
(&self, user_id: i32, amount: f32)
backend/src/repositories/user_subscriptions.rs:84
↓ 3 callersMethodis_email_processed
Check if an email is processed
backend/src/repositories/user_repository.rs:1805
↓ 3 callersMethodlist_tools
List available tools from an MCP server
backend/src/services/mcp_client.rs:101
↓ 3 callersMethodlock_vehicle
Lock vehicle
backend/src/api/tesla.rs:371
↓ 3 callersFunctionlog_hex_field_u64
(log: &serde_json::Value, field: &str)
backend/src/handlers/trust_chain_handlers.rs:401
↓ 3 callersFunctionlog_tool_error
( user_id: i32, tool_name: &str, category: &str, error_type: &str, error_msg: &str, )
backend/src/api/twilio_sms/agent_loop.rs:368
↓ 3 callersMethodmark_digest_delivered
Mark digest messages as delivered.
backend/src/repositories/ontology_repository.rs:1890
↓ 3 callersMethodmark_friend_notified
( &self, user_id: i32, event_id: i32, at: i32, )
backend/src/repositories/ontology_repository.rs:2282
↓ 3 callersMethodmock_registration_nonce
Mock the registration nonce endpoint
backend/tests/matrix_mock_test.rs:28
↓ 3 callersMethodmock_room_messages
Mock room messages endpoint
backend/tests/matrix_mock_test.rs:200
↓ 3 callersFunctionmock_set_reminder_tool_call
()
backend/tests/sms_e2e.rs:30
↓ 3 callersMethodmodel
Get the model name for a provider and purpose
backend/src/ai_config.rs:177
↓ 3 callersMethodmonitor_climate_ready
Monitor climate until ready to drive
backend/src/api/tesla.rs:902
↓ 3 callersFunctionnext_utc_midnight
(now: i32)
backend/tests/webhook_sms_test.rs:22
↓ 3 callersFunctionnormalize_openai_realtime_voice
(voice: &str)
frontend/src/profile/settings.rs:38
↓ 3 callersFunctionnormalize_phone
Normalize a phone number to E.164 with `+` prefix. Telnyx already sends `+`-prefixed E.164 in practice, but be defensive.
backend/src/handlers/telnyx_handlers.rs:86
↓ 3 callersMethodnow
()
backend/src/repositories/ontology_repository.rs:171
↓ 3 callersFunctionnow_secs
Unix timestamp in seconds. Used for the sync heartbeat.
backend/src/utils/matrix_auth.rs:784
↓ 3 callersFunctionnow_unix
()
backend/src/repositories/webhook_tokens_repository.rs:317
↓ 3 callersFunctionnow_unix
()
backend/tests/webhook_sms_test.rs:15
↓ 3 callersFunctionparse_broadcast_excluded_emails
( input: &str, subject_filter: Option<&str>, )
backend/src/handlers/admin_handlers.rs:34
↓ 3 callersFunctionparse_error_body
(resp: gloo_net::http::Response)
frontend/src/dashboard/webhooks_panel.rs:423
↓ 3 callersFunctionparse_hhmm
(s: &str)
backend/src/proactive/rules.rs:1283
↓ 3 callersFunctionparse_pcr
(value: &str)
tools/attestation-verifier/src/main.rs:66
↓ 3 callersFunctionparse_pcr_bytes
(hex_str: &str)
backend/src/handlers/trust_chain_handlers.rs:153
↓ 3 callersFunctionperform_profile_update_email
Helper function to perform email update
frontend/src/profile/settings.rs:123
↓ 3 callersFunctionperform_profile_update_phone
Helper function to perform phone update
frontend/src/profile/settings.rs:192
↓ 3 callersMethodprovider_configured
(&self, provider: AiProvider)
backend/src/ai_config.rs:208
↓ 3 callersFunctionpush_to_notify_server
POST the alert to the out-of-band Hetzner notify-server. The server decides based on severity whether to SMS-push (Critical) or log only. Skipped sile
backend/src/utils/notification_utils.rs:303
↓ 3 callersFunctionquery_pg
Run a SQL query via psql and return rows as lists of string cells.
scripts/imap_idle_stress.py:158
↓ 3 callersFunctionreconcile_matrix_users
Idempotent reconciler for Matrix client lifecycle. Called once at boot (in a background task) and then on a 60s cron. Does three things under a single
backend/src/jobs/scheduler.rs:52
↓ 3 callersFunctionresolve_image_digest
(image: str)
scripts/update_enclave_dependency_pins.py:114
↓ 3 callersFunctionseed_label_embedding
Fetch the original message content and store an embedding tagged with `label_type`. Best-effort: any failure (no message, embedding service disabled o
backend/src/proactive/commitment_replies.rs:332
↓ 3 callersFunctionsend_email
( State(state): State<Arc<AppState>>, auth_user: AuthUser, Json(request): Json<SendEmailRequest>,
backend/src/handlers/imap_handlers.rs:1616
↓ 3 callersFunctionsend_notification_with_context
( state: &Arc<AppState>, user_id: i32, notification: &str, content_type: String, first_mes
backend/src/proactive/utils.rs:228
↓ 3 callersMethodsend_request
Send a JSON-RPC request to the MCP server
backend/src/services/mcp_client.rs:256
↓ 3 callersFunctionsender_loop
Sender task: forwards messages from mpsc channel to WebSocket sink.
backend/src/api/voice_pipeline.rs:1225
↓ 3 callersMethodset_matrix_credentials
Store or update Matrix credentials in PG `user_secrets` table. Upserts matrix_username, encrypted_matrix_access_token, matrix_device_id, and encrypted
backend/src/repositories/user_repository.rs:1404
↓ 3 callersMethodset_price_response
Set a specific price response for a message SID.
backend/src/api/twilio_client.rs:863
↓ 3 callersMethodset_seat_heater
Set seat heater
backend/src/api/tesla.rs:433
↓ 3 callersFunctionsign
Sign `<timestamp>|<body>` with the given key, return base64-encoded sig.
backend/tests/telnyx_handlers_test.rs:202
↓ 3 callersMethodto_user
(&self)
backend/src/repositories/mock_signup_repository.rs:28
↓ 3 callersFunctiontruncate_for_log
Truncate a string to `max_chars` characters for log output, replacing newlines with spaces so the log stays on a single line. This is used to dump bot
backend/src/handlers/telegram_auth.rs:30
↓ 3 callersFunctiontruncate_nicely
(text: &str, max_chars: usize)
backend/src/api/twilio_sms/finalize.rs:252
↓ 3 callersFunctiontry_bootstrap_cross_signing
Attempts to bootstrap cross-signing, handling authentication if needed
backend/src/utils/matrix_auth.rs:344
↓ 3 callersFunctiontwiml_say
(message: &str)
backend/src/api/voice_pipeline.rs:471
↓ 3 callersFunctionu256_to_usize
(bytes: &[u8; 32])
backend/src/handlers/trust_chain_handlers.rs:456
↓ 3 callersMethodupdate_bridge_data
Update bridge data field (e.g., connected account/phone number)
backend/src/repositories/user_repository.rs:1207
↓ 3 callersMethodupdate_counter
Update the signature counter for a credential
backend/src/repositories/webauthn_repository.rs:97
↓ 3 callersMethodupdate_own_twilio_enabled
(&self, user_id: i32, enabled: bool)
backend/src/repositories/user_core.rs:1464
↓ 3 callersMethodupdate_password
(&self, user_id: i32, password_hash: &str)
backend/src/repositories/user_core.rs:413
↓ 3 callersMethodupdate_sub_country
(&self, user_id: i32, country: Option<&str>)
backend/src/repositories/user_core.rs:719
↓ 3 callersMethodupdate_twilio_credentials
Update Twilio credentials in PG `user_secrets` table.
backend/src/repositories/user_repository.rs:1627
↓ 3 callersMethodupdate_usage_log_credits
Update the credits field on a usage log entry matched by SID. Called when the Twilio status callback provides the actual message cost.
backend/src/repositories/user_repository.rs:704
↓ 3 callersFunctionuser_tz_offset_secs
(state: &AppState, user_id: i32)
backend/src/handlers/person_handlers.rs:407
↓ 3 callersMethodverify_backup_code
Verify a backup code and mark it as used if valid Returns true if the code was valid and unused
backend/src/repositories/totp_repository.rs:172
↓ 3 callersMethodwake_up_deduplicated
Wake up vehicle with deduplication - prevents parallel wake attempts for the same vehicle. If another request is already waking this vehicle, this wil
backend/src/api/tesla.rs:761
↓ 3 callersMethodwith_muted
(mut self, muted: bool)
backend/src/api/matrix_client.rs:618
↓ 3 callersFunctionwrite_outgoing_error_history
Write error history for outgoing tools that fail.
backend/src/tools/registry.rs:180
↓ 3 callersFunctionwrite_outgoing_history
Write history entries for outgoing tools (send_email, send_chat_message, etc.) that return early with a response.
backend/src/tools/registry.rs:136
↓ 2 callersFunctionactive_hour_range
Find active hours (top hours covering ~80% of activity) for context string.
backend/src/repositories/ontology_repository.rs:86
↓ 2 callersFunctionany_product_kind
()
backend/stripe_webhook_logic/src/lib.rs:172
↓ 2 callersFunctionany_subscription_age
()
backend/stripe_webhook_logic/src/lib.rs:181
↓ 2 callersFunctionapply_provider_result
( active_provider: &mut AiProvider, sticky_provider: &mut Option<AiProvider>, result: &crate::AiCh
backend/src/api/twilio_sms/agent_loop.rs:357
↓ 2 callersMethodarm_email
Arm an email watch. `contact_identifier` should be the normalized recipient email (matches the `sender_key` produced by IMAP ingest).
backend/src/repositories/pending_reply_watches_repository.rs:62
↓ 2 callersFunctionask_perplexity
Ask Perplexity - always uses OpenRouter since Perplexity models are only on OpenRouter
backend/src/utils/tool_exec.rs:216
↓ 2 callersFunctionassert_not_charged
Assert user was NOT charged (credits unchanged)
backend/src/test_utils.rs:686
← previousnext →301–400 of 2,907, ranked by callers