MCPcopy Create free account

hub / github.com/akitaonrails/FrankClaw / functions

Functions2,115 in github.com/akitaonrails/FrankClaw

↓ 7 callersFunctionbuild_router
( state: Arc<GatewayState>, rate_limiter: Arc<AuthRateLimiter>, )
crates/frankclaw-gateway/src/server.rs:84
↓ 7 callersMethodcheck_allowed
Check whether the next action is allowed under the configured limits. Call this BEFORE making an LLM call.
crates/frankclaw-models/src/cost_guard.rs:97
↓ 7 callersFunctionchunk_text
Split text into chunks by paragraph boundaries, merging small paragraphs to stay near `target_size` characters per chunk. Tracks line numbers.
crates/frankclaw-memory/src/chunking.rs:3
↓ 7 callersFunctionclassify_provider_error
Classify HTTP errors from model providers into actionable error messages. Detects context overflow, billing issues, rate limits, and auth failures.
crates/frankclaw-models/src/anthropic.rs:513
↓ 7 callersFunctioncompute_cooldown
Compute cooldown duration using exponential backoff. Auth/billing errors use longer base cooldowns than transient errors.
crates/frankclaw-core/src/api_keys.rs:167
↓ 7 callersMethoddrain
(&self)
crates/frankclaw-gateway/src/server.rs:1842
↓ 7 callersFunctionexecute_command
Execute a shell command with timeout and output capture.
crates/frankclaw-tools/src/bash.rs:273
↓ 7 callersMethodfinish
(&mut self)
crates/frankclaw-models/src/sse.rs:53
↓ 7 callersMethodget
(&self, key: &SessionKey)
crates/frankclaw-sessions/src/store.rs:194
↓ 7 callersMethodon
Register a handler for a general event type. The handler will fire for all events of this type regardless of action.
crates/frankclaw-core/src/hooks.rs:106
↓ 7 callersFunctionparse_webhook_payload
(payload: &serde_json::Value)
crates/frankclaw-channels/src/whatsapp.rs:231
↓ 7 callersFunctionprocess_inbound_message
( state: Arc<GatewayState>, inbound: InboundMessage, )
crates/frankclaw-gateway/src/server.rs:1021
↓ 7 callersFunctionrepair_tool_pairing
Repair tool_use / tool_result pairing after message pruning. If an Assistant message contains `[tool_call:...]` markers but the corresponding Tool re
crates/frankclaw-runtime/src/context.rs:146
↓ 7 callersFunctionresolve_channel_secret
( account: &Value, inline_keys: &[&str], env_keys: &[&str], default_env: &str, channel: &s
crates/frankclaw-channels/src/lib.rs:387
↓ 7 callersFunctionresolve_secret
(provider: &ProviderConfig, default_env: &str)
crates/frankclaw-runtime/src/lib.rs:2039
↓ 7 callersMethodsend
(&self, msg: OutboundMessage)
crates/frankclaw-channels/src/web.rs:77
↓ 7 callersMethodsend_command
( &self, socket: &mut tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tok
crates/frankclaw-tools/src/lib.rs:954
↓ 7 callersFunctionsnapshot_result
(snapshot: BrowserSnapshot, include_html: bool, max_chars: usize)
crates/frankclaw-tools/src/lib.rs:1756
↓ 7 callersFunctiontest_model
(context_window: u32)
crates/frankclaw-runtime/src/context.rs:204
↓ 7 callersFunctionvalidate_workspace_path
Validate and resolve a requested path within the workspace. - Rejects absolute paths - Rejects `..` components - Resolves to an absolute path inside
crates/frankclaw-tools/src/file.rs:24
↓ 6 callersMethodapi_url
(&self, method: &str)
crates/frankclaw-channels/src/telegram.rs:177
↓ 6 callersFunctionattachment_bytes
( channel: &ChannelId, attachment: &OutboundAttachment, )
crates/frankclaw-channels/src/outbound_media.rs:52
↓ 6 callersFunctionavailable_input_budget
Calculate the available token budget for input context given a model definition.
crates/frankclaw-runtime/src/context.rs:57
↓ 6 callersMethodclear
Remove all handlers for a given event key.
crates/frankclaw-core/src/hooks.rs:197
↓ 6 callersFunctionfirst_account
(channel_id: &ChannelId, channel_config: &'a ChannelConfig)
crates/frankclaw-channels/src/lib.rs:379
↓ 6 callersFunctionlast_reply_from_metadata
(metadata: &serde_json::Value)
crates/frankclaw-gateway/src/delivery.rs:356
↓ 6 callersMethodmark_failure
Mark the most recently used key as having failed. Applies exponential backoff cooldown.
crates/frankclaw-core/src/api_keys.rs:124
↓ 6 callersFunctionparse_event_message
(event: &serde_json::Value, bot_user_id: Option<&str>)
crates/frankclaw-channels/src/slack.rs:499
↓ 6 callersFunctionparse_request
Parse a single NDJSON line into a `JsonRpcRequest`.
crates/frankclaw-gateway/src/acp_transport.rs:76
↓ 6 callersFunctionparse_target_thread
(thread_id: Option<&str>, fallback_to: &str)
crates/frankclaw-channels/src/telegram.rs:752
↓ 6 callersMethodpatch
(&self, canvas_id: &str, patch: CanvasPatch)
crates/frankclaw-gateway/src/canvas.rs:155
↓ 6 callersFunctionpop_style
Pop a specific style from the stack (not necessarily the top, for robustness).
crates/frankclaw-runtime/src/markdown.rs:226
↓ 6 callersFunctionprompt_line
(question: &str)
crates/frankclaw-cli/src/main.rs:1769
↓ 6 callersFunctionrequire_http_auth
( state: &AppState, addr: SocketAddr, headers: &HeaderMap, query: Option<&AuthQuery>, )
crates/frankclaw-gateway/src/server.rs:924
↓ 6 callersMethodsecurity_policy
(&self)
crates/frankclaw-core/src/config.rs:352
↓ 6 callersMethodsnapshot_session
(&self, session: &BrowserSession)
crates/frankclaw-tools/src/lib.rs:837
↓ 5 callersMethodadd
(&self, job: CronJob)
crates/frankclaw-cron/src/service.rs:195
↓ 5 callersMethodapproves
(&self, risk: ToolRiskLevel)
crates/frankclaw-tools/src/lib.rs:114
↓ 5 callersFunctionattachment_filename
(attachment: &OutboundAttachment)
crates/frankclaw-channels/src/outbound_media.rs:44
↓ 5 callersMethodauth_header
(&self)
crates/frankclaw-channels/src/discord.rs:47
↓ 5 callersFunctionbuild_channel_http_client
Build the standard HTTP client used by channel adapters.
crates/frankclaw-channels/src/lib.rs:31
↓ 5 callersFunctionbuild_media_send_request
( msg: &OutboundMessage, include_parse_mode: bool, )
crates/frankclaw-channels/src/telegram.rs:546
↓ 5 callersFunctionbuild_send_body
(msg: &OutboundMessage)
crates/frankclaw-channels/src/discord.rs:516
↓ 5 callersFunctionbuild_send_body
(msg: &OutboundMessage)
crates/frankclaw-channels/src/telegram.rs:517
↓ 5 callersFunctioncanvas_id_from_params
(params: &serde_json::Value)
crates/frankclaw-gateway/src/methods.rs:642
↓ 5 callersMethodchannels
(&self)
crates/frankclaw-channels/src/lib.rs:55
↓ 5 callersFunctionchunk_discord_text
Split text into chunks of at most `limit` characters, preferring newline boundaries.
crates/frankclaw-channels/src/discord.rs:605
↓ 5 callersMethodcomplete
Complete a run and notify the parent.
crates/frankclaw-runtime/src/subagent.rs:238
↓ 5 callersMethodcomplete
( &self, request: CompletionRequest, _stream_tx: Option<tokio::sync::mpsc:
crates/frankclaw-runtime/src/lib.rs:2183
↓ 5 callersFunctioncontent_hash
(content: &str)
crates/frankclaw-memory/src/sync.rs:185
↓ 5 callersFunctioncreate_test_plugin
(dir: &Path, id: &str)
crates/frankclaw-plugin-sdk/src/discovery.rs:117
↓ 5 callersFunctionderive_subkey
Derive a context-specific subkey using HMAC-SHA256. Each context string (e.g., "session", "config", "media") produces a unique 256-bit subkey from th
crates/frankclaw-crypto/src/keys.rs:62
↓ 5 callersFunctiondiscover_plugins
Scan plugin directories for `plugin.json` manifests. Directories are scanned in order; first match for a given plugin id wins. Each entry in `dirs` i
crates/frankclaw-plugin-sdk/src/discovery.rs:31
↓ 5 callersFunctionestimate_tokens
Estimate the token count for a string using a chars/token heuristic.
crates/frankclaw-runtime/src/context.rs:40
↓ 5 callersMethodevaluate_string
( &self, socket: &mut tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tok
crates/frankclaw-tools/src/lib.rs:911
↓ 5 callersFunctionextract_credential
Extract auth credential from HTTP headers.
crates/frankclaw-gateway/src/server.rs:201
↓ 5 callersFunctionextract_url_from_line
Extract a URL from a line of text, starting from the given prefix.
crates/frankclaw-gateway/src/tunnel.rs:325
↓ 5 callersFunctionextract_url_from_stream
Scan an async reader for a line containing a URL-like prefix. Returns the extracted URL (from the prefix to the next whitespace).
crates/frankclaw-gateway/src/tunnel.rs:294
↓ 5 callersMethodfire_hook
Fire a hook event asynchronously (fire-and-forget).
crates/frankclaw-runtime/src/lib.rs:242
↓ 5 callersMethodfrom
(tier: Tier)
crates/frankclaw-models/src/routing.rs:57
↓ 5 callersFunctionis_process_alive
(pid: u32)
crates/frankclaw-cli/src/main.rs:1718
↓ 5 callersFunctionload_master_key_from_env
()
crates/frankclaw-cli/src/main.rs:4328
↓ 5 callersFunctionlookup
Look up a model by ID and return its known metadata. Returns `None` for unknown models (caller should use defaults).
crates/frankclaw-models/src/catalog.rs:15
↓ 5 callersFunctionmake_test_channel
(allowed_senders: Vec<String>)
crates/frankclaw-channels/src/email.rs:496
↓ 5 callersFunctionmetadata_path_for
(path: &std::path::Path)
crates/frankclaw-media/src/store.rs:279
↓ 5 callersMethodparse_message
(&self, msg: &serde_json::Value)
crates/frankclaw-channels/src/telegram.rs:233
↓ 5 callersFunctionparse_message_create
( payload: &serde_json::Value, bot_user_id: Option<&str>, )
crates/frankclaw-channels/src/discord.rs:455
↓ 5 callersFunctionparse_session_key_param
( request: &RequestFrame, )
crates/frankclaw-gateway/src/methods.rs:885
↓ 5 callersFunctionprocess_attachments
Process a batch of media attachments through available providers. Returns understanding outputs for each attachment that has a matching provider. Att
crates/frankclaw-media/src/understanding.rs:87
↓ 5 callersFunctionread_workspace_bootstrap_files
Read recognized workspace bootstrap files and return them as a combined string. Files that don't exist are silently skipped. Content is sanitized befo
crates/frankclaw-runtime/src/lib.rs:1654
↓ 5 callersMethodrecord
Record a tool call. Returns an error if the repeat threshold is exceeded.
crates/frankclaw-runtime/src/lib.rs:1592
↓ 5 callersMethodrecord_failure
Record a failed authentication attempt.
crates/frankclaw-gateway/src/rate_limit.rs:46
↓ 5 callersMethodrecord_success
Record a successful call.
crates/frankclaw-models/src/circuit_breaker.rs:94
↓ 5 callersMethodrequire_workspace
Returns the workspace path, or an error if no workspace is configured.
crates/frankclaw-tools/src/lib.rs:64
↓ 5 callersMethodresolve_agent
(&self, requested: Option<&AgentId>)
crates/frankclaw-runtime/src/lib.rs:1293
↓ 5 callersFunctionretry_backoff_delay
Compute the backoff delay for a given attempt number. Uses exponential backoff (1s → 2s → 4s → 8s …) with ±25% jitter. Minimum delay is 100ms. - Att
crates/frankclaw-models/src/retry.rs:34
↓ 5 callersMethodsend_with_retries
( &self, msg: OutboundMessage, state: SendRetryState, )
crates/frankclaw-channels/src/telegram.rs:72
↓ 5 callersMethodsession_key_for_inbound
( &self, inbound: &InboundMessage, )
crates/frankclaw-runtime/src/lib.rs:292
↓ 5 callersFunctionset_last_reply_in_metadata
( metadata: &mut serde_json::Value, reply: &StoredReplyMetadata, )
crates/frankclaw-gateway/src/delivery.rs:360
↓ 5 callersFunctionstrip_top_level_nulls
Remove top-level keys with null values from a JSON object. LLMs often emit `null` for optional parameters, but many MCP servers reject explicit nulls
crates/frankclaw-tools/src/mcp/mod.rs:491
↓ 5 callersMethodto_toml_string
Serialize this config to a pretty-printed TOML string.
crates/frankclaw-core/src/config.rs:63
↓ 4 callersMethodadd_tokens
Record token usage.
crates/frankclaw-cron/src/job.rs:222
↓ 4 callersFunctionaudit_auth
( config: &frankclaw_core::config::FrankClawConfig, findings: &mut Vec<Finding>, )
crates/frankclaw-cli/src/main.rs:2622
↓ 4 callersFunctionbuild_send_attachment_payload
( msg: &OutboundMessage, )
crates/frankclaw-channels/src/discord.rs:557
↓ 4 callersFunctionbuild_send_attachment_request
( msg: &OutboundMessage, account: Option<&str>, )
crates/frankclaw-channels/src/signal.rs:527
↓ 4 callersFunctionbuild_send_body
(msg: &OutboundMessage)
crates/frankclaw-channels/src/whatsapp.rs:358
↓ 4 callersFunctionbuild_send_body
(msg: &OutboundMessage)
crates/frankclaw-channels/src/slack.rs:558
↓ 4 callersFunctioncache_key
Build a deterministic cache key from a completion request. Hashes the model, messages, max_tokens, temperature, and system prompt via SHA-256. Two re
crates/frankclaw-models/src/cache.rs:186
↓ 4 callersFunctioncanvas_id_from_args
(args: &serde_json::Value, ctx: &ToolContext)
crates/frankclaw-tools/src/lib.rs:1182
↓ 4 callersFunctioncanvas_service
(ctx: &ToolContext)
crates/frankclaw-tools/src/lib.rs:1174
↓ 4 callersFunctioncheck_file_permissions
(path: &std::path::Path, label: &str)
crates/frankclaw-cli/src/main.rs:2319
↓ 4 callersFunctioncolored
Wrap `text` in SGR escape sequences for the given color code.
crates/frankclaw-cli/src/terminal.rs:31
↓ 4 callersMethodcomplete
( &self, line: &str, pos: usize, _ctx: &rustyline::Context<'_>, )
crates/frankclaw-cli/src/repl.rs:265
↓ 4 callersFunctiondispatch_method
Dispatch an RPC method to the appropriate handler.
crates/frankclaw-gateway/src/ws.rs:134
↓ 4 callersMethoddrain_outbound
Retrieve pending outbound messages for one web recipient.
crates/frankclaw-channels/src/web.rs:26
↓ 4 callersMethodembed_batch
(&self, texts: &[&str])
crates/frankclaw-memory/src/embedding.rs:58
↓ 4 callersMethodendpoint
(&self, path: &str)
crates/frankclaw-channels/src/signal.rs:38
↓ 4 callersFunctionenrich
Enrich a model definition with catalog metadata if available. Preserves the original ID but fills in context window, costs, etc.
crates/frankclaw-models/src/catalog.rs:26
↓ 4 callersMethodevaluate_bool
( &self, socket: &mut tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tok
crates/frankclaw-tools/src/lib.rs:924
↓ 4 callersMethodextension
(&self)
crates/frankclaw-gateway/src/canvas.rs:79
← previousnext →101–200 of 2,115, ranked by callers