Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ahtavarasmus/lightfriend
/ functions
Functions
2,907 in github.com/ahtavarasmus/lightfriend
⨍
Functions
2,907
◇
Types & classes
857
↓ 1 callers
Method
mock_create_room
Mock room creation
backend/tests/matrix_mock_test.rs:89
↓ 1 callers
Method
mock_login
Mock login endpoint
backend/tests/matrix_mock_test.rs:145
↓ 1 callers
Method
mock_login_failure
Mock login failure
backend/tests/matrix_mock_test.rs:159
↓ 1 callers
Method
mock_register_failure
Mock registration failure (e.g., user already exists)
backend/tests/matrix_mock_test.rs:53
↓ 1 callers
Method
mock_register_success
Mock successful user registration
backend/tests/matrix_mock_test.rs:39
↓ 1 callers
Method
mock_send_message
Mock send message
backend/tests/matrix_mock_test.rs:121
↓ 1 callers
Method
mock_sync_empty
Mock sync endpoint (empty response)
backend/tests/matrix_mock_test.rs:131
↓ 1 callers
Method
mock_whoami
Mock whoami endpoint
backend/tests/matrix_mock_test.rs:65
↓ 1 callers
Method
mock_whoami_failure
Mock whoami failure (invalid token)
backend/tests/matrix_mock_test.rs:77
↓ 1 callers
Function
monitor_signal_connection
Poll `!signal list-logins` until a CONNECTED login appears, then mark the bridge connected and start sync. Same approach as the WhatsApp monitor: we t
backend/src/handlers/signal_auth.rs:548
↓ 1 callers
Function
monitor_telegram_connection
( client: &MatrixClient, room_id: &OwnedRoomId, bridge_bot: &str, user_id: i32, state: Arc
backend/src/handlers/telegram_auth.rs:1236
↓ 1 callers
Function
mulaw_decode
ITU-T G.711 mu-law decode table (256 entries)
backend/src/api/voice_pipeline.rs:22
↓ 1 callers
Function
next_utc_midnight
(now: i32)
backend/src/handlers/webhook_sms_handlers.rs:506
↓ 1 callers
Function
next_utc_midnight
Next UTC midnight after `now`. Used as the daily-cap reset boundary so users see predictable "X requests remaining today" semantics regardless of when
backend/src/repositories/webhook_tokens_repository.rs:327
↓ 1 callers
Function
normalize_base_url
(target: &str)
tools/attestation-verifier/src/main.rs:57
↓ 1 callers
Function
normalize_email_sender_key
(email: &str)
backend/src/handlers/imap_handlers.rs:587
↓ 1 callers
Function
normalize_openai_realtime_voice
(voice: &str)
backend/src/handlers/profile_handlers.rs:49
↓ 1 callers
Function
not_found
(msg: &str)
backend/src/handlers/webhook_sms_handlers.rs:526
↓ 1 callers
Function
notification_meta_from_snapshot
(snap: &serde_json::Value)
backend/src/proactive/utils.rs:86
↓ 1 callers
Function
now_unix
()
backend/src/handlers/webhook_sms_handlers.rs:499
↓ 1 callers
Function
openai_greeting_response
(greeting: &str)
backend/src/api/voice_pipeline.rs:1424
↓ 1 callers
Function
openai_safety_identifier
(user_id: i32)
backend/src/api/voice_pipeline.rs:1292
↓ 1 callers
Function
openai_session_update
( init: &OpenAiRealtimeInit, mode: OpenAiRealtimeAudioMode, )
backend/src/api/voice_pipeline.rs:1363
↓ 1 callers
Function
param_str_array
(params: &serde_json::Value, key: &str)
backend/src/tools/ontology.rs:365
↓ 1 callers
Function
parse_bytes32
(value: &str)
tools/attestation-verifier/src/main.rs:81
↓ 1 callers
Function
parse_commit_response
(v: &serde_json::Value)
backend/src/handlers/trust_chain_handlers.rs:777
↓ 1 callers
Function
parse_frontmatter
(content: &str)
backend/src/blog/content.rs:52
↓ 1 callers
Function
parse_image
(image: str)
scripts/update_enclave_dependency_pins.py:94
↓ 1 callers
Function
parse_iso_duration
Parse ISO 8601 duration (e.g., PT1H2M3S) to human readable format
backend/src/handlers/youtube.rs:955
↓ 1 callers
Function
parse_log_for_wakes
Extract IDLE wake log lines after a given UTC timestamp.
scripts/imap_idle_stress.py:122
↓ 1 callers
Function
parse_pattern_into
( pattern: &str, freq: &UseStateHandle<RecurringFreq>, time: &UseStateHandle<String>, day: &Us
frontend/src/dashboard/rule_builder.rs:6138
↓ 1 callers
Function
parse_reply
(body: &str)
backend/src/proactive/alert_feedback.rs:97
↓ 1 callers
Function
parse_reply
Strict parser: leading whitespace tolerated, but the body must be exactly "1", "2", "3", or "4" otherwise we don't treat it as a commitment reply. Thi
backend/src/proactive/commitment_replies.rs:78
↓ 1 callers
Method
parse_sse_response
Parse Server-Sent Events response
backend/src/services/mcp_client.rs:303
↓ 1 callers
Function
parse_user_datetime_to_utc
Parse a datetime string in the user's timezone to UTC. Tries RFC3339 first (backward compat if LLM sends offset), then falls back to naive `YYYY-MM-DD
backend/src/tool_call_utils/utils.rs:137
↓ 1 callers
Function
pass_headline
(label: &str, val: &serde_json::Value)
frontend/src/dashboard/activity_feed.rs:834
↓ 1 callers
Function
persist_assistant_history
(state: &Arc<AppState>, user_id: i32, history_for_storage: &str)
backend/src/api/twilio_sms/delivery.rs:44
↓ 1 callers
Function
persist_incoming_message
(state: &Arc<AppState>, user: &User, payload: &TwilioWebhookPayload)
backend/src/api/twilio_sms/assembly.rs:64
↓ 1 callers
Function
person
(id: i32, name: &str)
backend/tests/sender_match_test.rs:19
↓ 1 callers
Method
person_has_custom_settings
Check if user has custom notification settings for a person.
backend/src/repositories/ontology_repository.rs:1636
↓ 1 callers
Method
phone_number_exists
(&self, search_phone: &str)
backend/src/repositories/user_core.rs:694
↓ 1 callers
Method
pick_channel_for
Legacy single-channel accessor. Returns the first channel from `pick_channels_for`. Kept for callers that only want the primary (e.g. accountability n
backend/src/channels/router.rs:279
↓ 1 callers
Function
place_us_fallback_voice_call
Place a fallback voice call when SMS delivery is unavailable. Uses the same AI voice pipeline as a normal notification call, just with a dedicated vo
backend/src/api/voice_pipeline.rs:588
↓ 1 callers
Function
preflight_homeserver_reachability
Pre-flight network connectivity check. Issues a plain HTTPS GET to `{homeserver}/_matrix/client/versions` with a short timeout so we can tell apart "t
backend/src/handlers/telegram_auth.rs:236
↓ 1 callers
Function
prepare_passkey_auth_options
Prepare passkey authentication options for sensitive change verification
backend/src/handlers/profile_handlers.rs:1093
↓ 1 callers
Function
probe_bridge_login_health
Probe the bridge bot and classify the live login health. For bridgev2 bridges (whatsapp, signal) the signal we rely on is the `list-logins` response
backend/src/jobs/scheduler.rs:244
↓ 1 callers
Function
product_kind_from_subscription
( subscription: &Subscription, )
backend/src/handlers/stripe_handlers.rs:118
↓ 1 callers
Method
provider_attempts
( &self, preferred_provider: AiProvider, sticky_provider: Option<AiProvider>,
backend/src/ai_config.rs:263
↓ 1 callers
Method
provider_for_user_with_preference
Always returns Tinfoil. The preference parameter is accepted for backward compatibility but ignored.
backend/src/ai_config.rs:145
↓ 1 callers
Function
provider_from_env
Resolve the embedding provider from env. Falls back to Tinfoil.
backend/src/utils/embedding_service.rs:34
↓ 1 callers
Method
purge_old_messages
Purge messages older than max_age_secs.
backend/src/repositories/ontology_repository.rs:1746
↓ 1 callers
Method
purge_old_rules
Delete completed/expired rules older than max_age_secs.
backend/src/repositories/ontology_repository.rs:1424
↓ 1 callers
Function
purge_user_data
Run the full data-purge flow for `user_id`, reporting live progress via the shared `state_handle` so the frontend can poll and display each step as it
backend/src/services/data_purge.rs:131
↓ 1 callers
Function
pwc
(id: i32, name: &str, email_handle: &str)
backend/tests/sender_match_test.rs:44
↓ 1 callers
Function
query_event
( params: &serde_json::Value, state: &Arc<AppState>, user_id: i32, )
backend/src/tools/ontology.rs:285
↓ 1 callers
Function
query_message
( params: &serde_json::Value, state: &Arc<AppState>, user_id: i32, )
backend/src/tools/ontology.rs:114
↓ 1 callers
Function
query_person
( params: &serde_json::Value, state: &Arc<AppState>, user_id: i32, )
backend/src/tools/ontology.rs:28
↓ 1 callers
Function
recalculate_credits_for_country_change
Recalculate credits_left when user changes phone country. With unified credit budget (25.0 for all countries), credits survive country changes unchang
backend/src/handlers/profile_handlers.rs:1033
↓ 1 callers
Method
record_attempt
(&self, event_id: &str, attempt: u8)
backend/src/repositories/tuwunel_cleanup_repository.rs:72
↓ 1 callers
Function
record_cleanup_attempt
(state: &Arc<AppState>, job: &EventCleanupJob)
backend/src/utils/tuwunel_event_cleanup.rs:183
↓ 1 callers
Function
record_cleanup_commands_submitted
(state: &Arc<AppState>, job: &EventCleanupJob)
backend/src/utils/tuwunel_event_cleanup.rs:267
↓ 1 callers
Function
record_cleanup_exhausted
(state: &Arc<AppState>, job: &EventCleanupJob, error: &str)
backend/src/utils/tuwunel_event_cleanup.rs:247
↓ 1 callers
Function
record_cleanup_partial_commands_submitted
( state: &Arc<AppState>, job: &EventCleanupJob, error: &str, )
backend/src/utils/tuwunel_event_cleanup.rs:285
↓ 1 callers
Function
record_cleanup_retrying
(state: &Arc<AppState>, job: &EventCleanupJob, error: &str)
backend/src/utils/tuwunel_event_cleanup.rs:227
↓ 1 callers
Method
record_command_accepted
( &self, event_id: &str, command_kind: &str, admin_room_id: &str, admi
backend/src/repositories/tuwunel_cleanup_repository.rs:90
↓ 1 callers
Method
record_commands_submitted
(&self, event_id: &str)
backend/src/repositories/tuwunel_cleanup_repository.rs:127
↓ 1 callers
Method
record_enqueued
( &self, user_id: i32, ontology_message_id: i64, service: &str, room_i
backend/src/repositories/tuwunel_cleanup_repository.rs:31
↓ 1 callers
Method
record_exhausted
(&self, event_id: &str, attempt: u8, error: &str)
backend/src/repositories/tuwunel_cleanup_repository.rs:123
↓ 1 callers
Method
record_partial_commands_submitted
(&self, event_id: &str, error: &str)
backend/src/repositories/tuwunel_cleanup_repository.rs:145
↓ 1 callers
Method
record_provider_failure
(&self, provider: AiProvider, failure_category: &str)
backend/src/ai_config.rs:243
↓ 1 callers
Method
record_provider_success
(&self, provider: AiProvider)
backend/src/ai_config.rs:233
↓ 1 callers
Method
record_retrying
(&self, event_id: &str, attempt: u8, error: &str)
backend/src/repositories/tuwunel_cleanup_repository.rs:119
↓ 1 callers
Method
record_telnyx_delivery_fallback_success
( &self, message_sid: &str, fallback_message_sid: &str, )
backend/src/repositories/twilio_status_repository_impl.rs:83
↓ 1 callers
Method
refresh_public_key_cache
(&self, partner_token: &str, domain: &str)
backend/src/api/tesla.rs:247
↓ 1 callers
Function
register_handlers
Register the bridge-message and read-receipt event handlers on `client`. Call this exactly once per freshly-built client instance; the SDK appends han
backend/src/utils/matrix_auth.rs:696
↓ 1 callers
Method
register_in_region
Register the app in the current region (required by Tesla) This requires a partner authentication token, not a user token
backend/src/api/tesla.rs:191
↓ 1 callers
Function
register_user
Register a new Matrix user, auto-detecting which method to use: - If MATRIX_REGISTRATION_TOKEN is set: uses standard UIAA token flow (Tuwunel/Docker)
backend/src/utils/matrix_auth.rs:199
↓ 1 callers
Method
register_user
Register a new test user via admin API
backend/src/test_utils/matrix_test_server.rs:123
↓ 1 callers
Function
register_user_synapse
Register a new Matrix user via Synapse admin API (HMAC-SHA1 nonce flow). Used on the VPS where Synapse is the homeserver.
backend/src/utils/matrix_auth.rs:20
↓ 1 callers
Function
register_user_token
Register a new Matrix user using the standard UIAA registration_token flow. Works with Tuwunel and any spec-compliant homeserver.
backend/src/utils/matrix_auth.rs:97
↓ 1 callers
Function
registry_bearer_token
(www_authenticate: str)
scripts/update_enclave_dependency_pins.py:74
↓ 1 callers
Method
remote_start
Remote start drive
backend/src/api/tesla.rs:411
↓ 1 callers
Function
remove_matrix_store
(matrix_username: &str)
backend/src/services/data_purge.rs:524
↓ 1 callers
Method
rename_credential
Rename a credential
backend/src/repositories/webauthn_repository.rs:137
↓ 1 callers
Function
render_batch
( batch: &[&ActivityFeedEntry], batch_id: &str, now_secs: i32, is_batch_expanded: bool, ex
frontend/src/dashboard/activity_feed.rs:449
↓ 1 callers
Function
render_blog_index
( slugs: &[String], posts: &HashMap<String, BlogPost>, clusters: &HashMap<String, Vec<String>>, )
backend/src/blog/templates.rs:316
↓ 1 callers
Function
render_blog_post
(post: &BlogPost, related: &[BlogPost])
backend/src/blog/templates.rs:207
↓ 1 callers
Function
render_context_html
Render the error context as HTML for inclusion in email bodies. Returns an empty string if the code is unknown.
backend/src/utils/twilio_error_codes.rs:206
↓ 1 callers
Function
render_entry
( entry: &ActivityFeedEntry, now_secs: i32, is_expanded: bool, expanded_handle: &UseStateHandl
frontend/src/dashboard/activity_feed.rs:528
↓ 1 callers
Function
render_faq_section
(post: &BlogPost)
backend/src/blog/linking.rs:45
↓ 1 callers
Function
render_high_signal_section
Render a high-signal section (Critical / Important): per-item lines with short teasers, capped at HIGH_SIGNAL_CAP. Anything beyond is summarized with
backend/src/jobs/scheduler.rs:1366
↓ 1 callers
Function
render_hub_link
(post: &BlogPost)
backend/src/blog/linking.rs:33
↓ 1 callers
Function
render_markdown
(md: &str)
backend/src/blog/content.rs:67
↓ 1 callers
Function
render_related_section
(related: &[BlogPost])
backend/src/blog/linking.rs:3
↓ 1 callers
Function
replace_arg
(contents: str, name: str, value: str)
scripts/update_enclave_dependency_pins.py:177
↓ 1 callers
Function
require_any_env
(vars: &[&str], label: &str)
backend/src/main.rs:108
↓ 1 callers
Function
requires_subscription
Helper function to check if a tool is accessible based on user's status Only tier 2 (hosted) subscribers get full access to all tools
backend/src/tool_call_utils/utils.rs:124
↓ 1 callers
Function
requires_subscription
Helper function to check if a tool requires subscription Only tier 2 (hosted) subscribers get full access to all tools
backend/src/handlers/auth_middleware.rs:29
↓ 1 callers
Function
reset_sequences
(pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:1374
↓ 1 callers
Function
resolve_admin_command_target
( state: &Arc<AppState>, config: &EventCleanupConfig, job: &EventCleanupJob, )
backend/src/utils/tuwunel_event_cleanup.rs:502
← previous
next →
1,101–1,200 of 2,907, ranked by callers