MCPcopy Create free account

hub / github.com/ahtavarasmus/lightfriend / functions

Functions2,907 in github.com/ahtavarasmus/lightfriend

↓ 1 callersMethodget_active_bridge_users_prioritized
Return user_ids that currently have at least one "connected" bridge, sorted by most-recent bridge activity descending. Priority signal is `last_seen_o
backend/src/repositories/user_repository.rs:1342
↓ 1 callersMethodget_active_imap_connection_users
(&self)
backend/src/repositories/user_repository.rs:954
↓ 1 callersMethodget_active_rules
(&self, user_id: i32)
backend/src/repositories/ontology_repository.rs:2382
↓ 1 callersFunctionget_activity_cost
Calculate cost for voice events using cached pricing. Cost = Twilio phone leg (country-specific, direction-aware) + Tinfoil inference.
backend/src/utils/usage.rs:305
↓ 1 callersMethodget_alerts
Get alerts with pagination and optional severity filter
backend/src/repositories/admin_alert_repository.rs:54
↓ 1 callersMethodget_all_contacts
Fetch all contacts directly without user filtering. Safe for single-user enclave setups where only one user's contacts exist.
backend/src/repositories/whatsapp_bridge_repository.rs:253
↓ 1 callersFunctionget_all_historical_builds
Fetch ALL historical builds from the chain. Cached for 5 minutes. Returned newest-first. commit_message/pr_number are left None here — fill them per p
backend/src/handlers/trust_chain_handlers.rs:558
↓ 1 callersMethodget_all_usage_logs
(&self)
backend/src/repositories/user_repository.rs:753
↓ 1 callersMethodget_all_users
(&self)
backend/src/test_utils.rs:879
↓ 1 callersFunctionget_ask_perplexity_tool
()
backend/src/tool_call_utils/internet.rs:76
↓ 1 callersFunctionget_backend_url
()
frontend/src/config.rs:2
↓ 1 callersMethodget_calls
(&self)
backend/src/api/matrix_client.rs:536
↓ 1 callersMethodget_contacts_by_login_phone
Fetch all WhatsApp contacts synced for a user identified by their login phone (the value of `user_logins.id`). The contacts table (`whatsmeow_contact
backend/src/repositories/whatsapp_bridge_repository.rs:222
↓ 1 callersMethodget_contacts_for_matrix_user
Convenience: resolve the login phone for a Matrix user, then fetch contacts. Falls back to fetching all contacts if user lookup fails (safe in single-
backend/src/repositories/whatsapp_bridge_repository.rs:444
↓ 1 callersMethodget_cross_platform_messages
Get recent messages from a known person on OTHER platforms (cross-platform escalation). Returns messages from the given person_id on platforms != excl
backend/src/repositories/ontology_repository.rs:1726
↓ 1 callersMethodget_daily_stats
(&self, from_timestamp: i32)
backend/src/repositories/llm_usage_repository.rs:262
↓ 1 callersMethodget_disabled_types
Get all disabled alert types
backend/src/repositories/admin_alert_repository.rs:158
↓ 1 callersFunctionget_dismissed_ids
()
frontend/src/dashboard/dashboard_view.rs:895
↓ 1 callersMethodget_due_schedule_rules
Get all schedule-based rules that are due to fire.
backend/src/repositories/ontology_repository.rs:2514
↓ 1 callersFunctionget_euro_country_pricing
Get pricing for any euro plan country (local-number or notification-only). This is a unified function that works for all non-US/CA countries: - Local
backend/src/api/twilio_pricing.rs:93
↓ 1 callersMethodget_events
( &self, user_id: i32, status: Option<&str>, )
backend/src/repositories/ontology_repository.rs:2132
↓ 1 callersMethodget_events_due_for_notification
Get active events with remind_at <= now (due for reminder).
backend/src/repositories/ontology_repository.rs:2245
↓ 1 callersFunctionget_firecrawl_search_tool
()
backend/src/tool_call_utils/internet.rs:106
↓ 1 callersMethodget_last_activity
(&self)
backend/src/api/matrix_client.rs:395
↓ 1 callersMethodget_latest_incoming_per_room
"What's in my messages lately?" digest query. Returns the latest INCOMING message from each distinct conversation (partition by `platform, room_id`),
backend/src/repositories/ontology_repository.rs:1310
↓ 1 callersFunctionget_linked_entities_enum
Helper: extract linked_entities array item enum values.
backend/tests/ontology_registry_test.rs:140
↓ 1 callersMethodget_llm_provider
(&self, user_id: i32)
backend/src/repositories/user_core.rs:946
↓ 1 callersMethodget_members
(&self)
backend/src/api/matrix_client.rs:384
↓ 1 callersMethodget_nearby_charging_sites
Get nearby Tesla charging sites (Superchargers and Destination chargers) Uses detail=true to get site IDs needed for navigation_sc_request
backend/src/api/tesla.rs:521
↓ 1 callersFunctionget_nearby_towns
(location: &str)
backend/src/utils/tool_exec.rs:275
↓ 1 callersMethodget_ontology_change_rules
Get all active ontology_change rules for a given user. Caller is responsible for matching trigger_config filters against the entity data.
backend/src/repositories/ontology_repository.rs:2525
↓ 1 callersMethodget_pending_unclassified_messages
Safety net for messages where urgency classification failed or was skipped (token budget, LLM error, seen-check). These have NULL urgency and are invi
backend/src/repositories/ontology_repository.rs:1850
↓ 1 callersMethodget_per_user_detailed_stats
( &self, from_timestamp: i32, )
backend/src/repositories/llm_usage_repository.rs:204
↓ 1 callersMethodget_person_platform_count
Count distinct platforms a person contacts the user on.
backend/src/repositories/ontology_repository.rs:1623
↓ 1 callersFunctionget_pg_url
()
backend/tests/migration_test.rs:14
↓ 1 callersMethodget_phone_number
Get user's phone number (the number itself, not preferred_number).
backend/src/repositories/mock_signup_repository.rs:160
↓ 1 callersMethodget_phone_service_active
(&self, user_id: i32)
backend/src/repositories/user_core.rs:849
↓ 1 callersMethodget_plan_type
Get the user's plan type
backend/src/repositories/user_subscriptions.rs:193
↓ 1 callersMethodget_pm_handle
Resolve the most reliable handle to use with `!tg pm` for a contact. Telethon's `client.get_entity(numeric_id)` requires having the user's access_has
backend/src/repositories/telegram_bridge_repository.rs:356
↓ 1 callersMethodget_portal_mxid
Look up the Matrix room ID for a given chat on this WA login. Source of truth: mautrix-whatsapp's bridgev2 `portal` table (schema: github.com/mautrix
backend/src/repositories/whatsapp_bridge_repository.rs:363
↓ 1 callersMethodget_processed_emails
Get all processed emails for a user
backend/src/repositories/user_repository.rs:1831
↓ 1 callersFunctionget_public_key
Get the public key (used for serving via API endpoint)
backend/src/utils/tesla_keys.rs:88
↓ 1 callersMethodget_recent_changelog
Get recent changelog entries for a user.
backend/src/repositories/ontology_repository.rs:2590
↓ 1 callersMethodget_recent_high_messages_by_sender
Get recently high-classified messages from the same sender/platform. This gives urgency classification durable context about alerts the user probably
backend/src/repositories/ontology_repository.rs:1186
↓ 1 callersMethodget_recent_messages_all_platforms
Get recent messages across all platforms since a timestamp.
backend/src/repositories/ontology_repository.rs:1384
↓ 1 callersMethodget_remaining_backup_codes
Get the count of remaining (unused) backup codes
backend/src/repositories/totp_repository.rs:200
↓ 1 callersFunctionget_respond_to_email_tool
()
backend/src/tool_call_utils/email.rs:81
↓ 1 callersFunctionget_room_members
Helper to get room members
backend/tests/bridge_integration_test.rs:232
↓ 1 callersMethodget_room_members
Get room members
backend/src/test_utils/matrix_test_server.rs:293
↓ 1 callersMethodget_room_messages
Get recent messages from a room
backend/src/test_utils/matrix_test_server.rs:328
↓ 1 callersFunctionget_scan_qr_code_tool
()
backend/src/tool_call_utils/internet.rs:1
↓ 1 callersFunctionget_send_chat_message_tool
()
backend/src/tool_call_utils/bridge.rs:7
↓ 1 callersFunctionget_send_email_tool
()
backend/src/tool_call_utils/email.rs:4
↓ 1 callersMethodget_sent_messages
(&self)
backend/src/api/matrix_client.rs:633
↓ 1 callersMethodget_servers_for_user
Get all MCP servers for a user
backend/src/repositories/mcp_repository.rs:60
↓ 1 callersMethodget_stale_events
Get active events with no due_at that haven't been updated in max_age_secs.
backend/src/repositories/ontology_repository.rs:2326
↓ 1 callersMethodget_stats
(&self, from_timestamp: i32)
backend/src/repositories/llm_usage_repository.rs:115
↓ 1 callersFunctionget_store_path
Helper function to get the store path for a Matrix user
backend/src/handlers/bridge_auth_common.rs:13
↓ 1 callersFunctionget_store_path
Helper function to get the store path
backend/src/handlers/whatsapp_auth.rs:39
↓ 1 callersMethodget_stripe_payment_method_id
( &self, user_id: i32, )
backend/src/repositories/user_subscriptions.rs:123
↓ 1 callersFunctionget_template_prompt
(template: &PromptTemplate, when_mode: &WhenMode, condition: &str)
frontend/src/dashboard/rule_builder.rs:6322
↓ 1 callersFunctionget_tesla_control_tool
Tool definition for OpenAI function calling
backend/src/tool_call_utils/tesla.rs:12
↓ 1 callersMethodget_tesla_granted_scopes
Get the granted scopes for a user's Tesla connection
backend/src/repositories/user_repository.rs:1151
↓ 1 callersMethodget_tesla_key_paired_status
(&self, user_id: i32)
backend/src/repositories/user_repository.rs:1137
↓ 1 callersMethodget_total_bandwidth
(&self, from_timestamp: i32)
backend/src/repositories/bandwidth_repository.rs:103
↓ 1 callersMethodget_total_count
Get total count of alerts (optionally filtered by severity)
backend/src/repositories/admin_alert_repository.rs:197
↓ 1 callersFunctionget_track_update_prompt
()
frontend/src/dashboard/rule_builder.rs:6318
↓ 1 callersMethodget_unseen_email_messages
Get unseen email ont_messages for a user, created since the given timestamp. Used by the periodic email read-receipt sync job.
backend/src/repositories/ontology_repository.rs:1942
↓ 1 callersMethodget_upcoming_events
Get the N most upcoming active events, ordered by closest deadline first. Events with a due_at come first (sorted ascending), then events without due_
backend/src/repositories/ontology_repository.rs:2305
↓ 1 callersMethodget_usage_data
( &self, _user_id: i32, from_timestamp: i32, )
backend/src/repositories/user_repository.rs:620
↓ 1 callersMethodget_user_info
(&self, user_id: i32)
backend/src/test_utils.rs:976
↓ 1 callersFunctionget_user_subscription_ids
Helper function to get the user's subscribed channel IDs
backend/src/handlers/youtube.rs:996
↓ 1 callersMethodget_users_with_active_bridges
( &self, )
backend/src/repositories/user_repository.rs:1304
↓ 1 callersMethodget_vehicle_climate_data
Get vehicle climate data
backend/src/api/tesla.rs:343
↓ 1 callersFunctionget_voice_cost_estimate
Estimate voice call cost for pre-send credit check. Cost = Twilio phone leg (country-specific, inbound vs outbound) + Tinfoil inference.
backend/src/utils/usage.rs:198
↓ 1 callersMethodget_voice_provider
(&self, user_id: i32)
backend/src/repositories/user_core.rs:965
↓ 1 callersFunctionget_weather_tool
()
backend/src/tool_call_utils/internet.rs:29
↓ 1 callersFunctionget_whatsapp_contacts
Fetch all WhatsApp contacts for a Lightfriend user. Returns an empty Vec (logging a warning) if any of the following are true: - WHATSAPP_BRIDGE_DATA
backend/src/utils/bridge_contacts.rs:35
↓ 1 callersMethodget_youtube_scope
(&self, user_id: i32)
backend/src/repositories/user_repository.rs:890
↓ 1 callersFunctionget_youtube_tool
Tool definition for YouTube operations
backend/src/tool_call_utils/youtube.rs:9
↓ 1 callersFunctiongithub_branch_commit
(owner: str, repo: str, branch: str)
scripts/update_enclave_dependency_pins.py:160
↓ 1 callersFunctionhandle_alert_feedback_reply
( state: &Arc<AppState>, user: &User, body: &str, channel: MessageChannel, )
backend/src/api/twilio_sms/early_flow.rs:152
↓ 1 callersFunctionhandle_bridge_message
( event: OriginalSyncRoomMessageEvent, room: Room, client: MatrixClient, state: Arc<AppState>,
backend/src/utils/bridge.rs:1930
↓ 1 callersFunctionhandle_bridge_redaction
Handle a Matrix redaction event from a bridge. When a user deletes a message on the source platform (e.g. WhatsApp's "delete for everyone"), the maut
backend/src/utils/bridge.rs:1857
↓ 1 callersFunctionhandle_cancel_reply
( state: &Arc<AppState>, user: &User, body: &str, channel: MessageChannel, start_time: &st
backend/src/api/twilio_sms/early_flow.rs:163
↓ 1 callersFunctionhandle_commitment_reply
( state: &Arc<AppState>, user: &User, body: &str, channel: MessageChannel, )
backend/src/api/twilio_sms/early_flow.rs:135
↓ 1 callersMethodhandle_failure_notification
Handle sending failure notification if message delivery failed. Routing: - `CarrierNoise` codes (30007, 30008, 30033, etc.): completely silent. The r
backend/src/services/twilio_status_service.rs:188
↓ 1 callersMethodhandle_final_status
Handle final status actions: fetch price and delete message.
backend/src/services/twilio_status_service.rs:279
↓ 1 callersFunctionhandle_firecrawl_search
(query: String, limit: u32)
backend/src/utils/tool_exec.rs:11
↓ 1 callersFunctionhandle_new_commitment
( state: &Arc<AppState>, user_id: i32, entity_snapshot: &serde_json::Value, sender_name: &str,
backend/src/proactive/system_behaviors.rs:1654
↓ 1 callersFunctionhandle_openai_reader
( mut openai_rx: futures_util::stream::SplitStream<OpenAiWsStream>, send_tx: mpsc::Sender<Message>,
backend/src/api/voice_pipeline.rs:1575
↓ 1 callersFunctionhandle_openai_twilio_session
( state: Arc<AppState>, send_tx: &mpsc::Sender<Message>, ws_rx: &mut futures::stream::SplitStream<
backend/src/api/voice_pipeline.rs:1776
↓ 1 callersFunctionhandle_openai_web_ws
(state: Arc<AppState>, socket: WebSocket, user_id: i32)
backend/src/api/voice_pipeline.rs:1874
↓ 1 callersFunctionhandle_qr_scan
(image_url: Option<&str>)
backend/src/tool_call_utils/internet.rs:148
↓ 1 callersFunctionhandle_read_receipt
Handle an incoming read receipt from a bridge. When the user reads a message on the native platform (WhatsApp/Signal/Telegram), the bridge forwards th
backend/src/utils/bridge.rs:1794
↓ 1 callersFunctionhandle_respond_to_email
( state: &Arc<AppState>, user_id: i32, args: &str, user: &crate::models::user_models::User,
backend/src/tool_call_utils/email.rs:414
↓ 1 callersFunctionhandle_send_chat_message
( state: &Arc<AppState>, user_id: i32, args: &str, user: &User, image_url: Option<&str>,
backend/src/tool_call_utils/bridge.rs:461
↓ 1 callersFunctionhandle_send_email
( state: &Arc<AppState>, user_id: i32, args: &str, user: &crate::models::user_models::User,
backend/src/tool_call_utils/email.rs:192
↓ 1 callersFunctionhandle_sms_early_response
( state: &Arc<AppState>, user: &User, body: &str, channel: MessageChannel, start_time: &st
backend/src/api/twilio_sms/early_flow.rs:210
↓ 1 callersFunctionhandle_voice_ws
(state: Arc<AppState>, socket: WebSocket)
backend/src/api/voice_pipeline.rs:911
← previousnext →901–1,000 of 2,907, ranked by callers