Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akitaonrails/FrankClaw
/ functions
Functions
2,115 in github.com/akitaonrails/FrankClaw
⨍
Functions
2,115
◇
Types & classes
423
↓ 7 callers
Function
build_router
( state: Arc<GatewayState>, rate_limiter: Arc<AuthRateLimiter>, )
crates/frankclaw-gateway/src/server.rs:84
↓ 7 callers
Method
check_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 callers
Function
chunk_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 callers
Function
classify_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 callers
Function
compute_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 callers
Method
drain
(&self)
crates/frankclaw-gateway/src/server.rs:1842
↓ 7 callers
Function
execute_command
Execute a shell command with timeout and output capture.
crates/frankclaw-tools/src/bash.rs:273
↓ 7 callers
Method
finish
(&mut self)
crates/frankclaw-models/src/sse.rs:53
↓ 7 callers
Method
get
(&self, key: &SessionKey)
crates/frankclaw-sessions/src/store.rs:194
↓ 7 callers
Method
on
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 callers
Function
parse_webhook_payload
(payload: &serde_json::Value)
crates/frankclaw-channels/src/whatsapp.rs:231
↓ 7 callers
Function
process_inbound_message
( state: Arc<GatewayState>, inbound: InboundMessage, )
crates/frankclaw-gateway/src/server.rs:1021
↓ 7 callers
Function
repair_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 callers
Function
resolve_channel_secret
( account: &Value, inline_keys: &[&str], env_keys: &[&str], default_env: &str, channel: &s
crates/frankclaw-channels/src/lib.rs:387
↓ 7 callers
Function
resolve_secret
(provider: &ProviderConfig, default_env: &str)
crates/frankclaw-runtime/src/lib.rs:2039
↓ 7 callers
Method
send
(&self, msg: OutboundMessage)
crates/frankclaw-channels/src/web.rs:77
↓ 7 callers
Method
send_command
( &self, socket: &mut tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tok
crates/frankclaw-tools/src/lib.rs:954
↓ 7 callers
Function
snapshot_result
(snapshot: BrowserSnapshot, include_html: bool, max_chars: usize)
crates/frankclaw-tools/src/lib.rs:1756
↓ 7 callers
Function
test_model
(context_window: u32)
crates/frankclaw-runtime/src/context.rs:204
↓ 7 callers
Function
validate_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 callers
Method
api_url
(&self, method: &str)
crates/frankclaw-channels/src/telegram.rs:177
↓ 6 callers
Function
attachment_bytes
( channel: &ChannelId, attachment: &OutboundAttachment, )
crates/frankclaw-channels/src/outbound_media.rs:52
↓ 6 callers
Function
available_input_budget
Calculate the available token budget for input context given a model definition.
crates/frankclaw-runtime/src/context.rs:57
↓ 6 callers
Method
clear
Remove all handlers for a given event key.
crates/frankclaw-core/src/hooks.rs:197
↓ 6 callers
Function
first_account
(channel_id: &ChannelId, channel_config: &'a ChannelConfig)
crates/frankclaw-channels/src/lib.rs:379
↓ 6 callers
Function
last_reply_from_metadata
(metadata: &serde_json::Value)
crates/frankclaw-gateway/src/delivery.rs:356
↓ 6 callers
Method
mark_failure
Mark the most recently used key as having failed. Applies exponential backoff cooldown.
crates/frankclaw-core/src/api_keys.rs:124
↓ 6 callers
Function
parse_event_message
(event: &serde_json::Value, bot_user_id: Option<&str>)
crates/frankclaw-channels/src/slack.rs:499
↓ 6 callers
Function
parse_request
Parse a single NDJSON line into a `JsonRpcRequest`.
crates/frankclaw-gateway/src/acp_transport.rs:76
↓ 6 callers
Function
parse_target_thread
(thread_id: Option<&str>, fallback_to: &str)
crates/frankclaw-channels/src/telegram.rs:752
↓ 6 callers
Method
patch
(&self, canvas_id: &str, patch: CanvasPatch)
crates/frankclaw-gateway/src/canvas.rs:155
↓ 6 callers
Function
pop_style
Pop a specific style from the stack (not necessarily the top, for robustness).
crates/frankclaw-runtime/src/markdown.rs:226
↓ 6 callers
Function
prompt_line
(question: &str)
crates/frankclaw-cli/src/main.rs:1769
↓ 6 callers
Function
require_http_auth
( state: &AppState, addr: SocketAddr, headers: &HeaderMap, query: Option<&AuthQuery>, )
crates/frankclaw-gateway/src/server.rs:924
↓ 6 callers
Method
security_policy
(&self)
crates/frankclaw-core/src/config.rs:352
↓ 6 callers
Method
snapshot_session
(&self, session: &BrowserSession)
crates/frankclaw-tools/src/lib.rs:837
↓ 5 callers
Method
add
(&self, job: CronJob)
crates/frankclaw-cron/src/service.rs:195
↓ 5 callers
Method
approves
(&self, risk: ToolRiskLevel)
crates/frankclaw-tools/src/lib.rs:114
↓ 5 callers
Function
attachment_filename
(attachment: &OutboundAttachment)
crates/frankclaw-channels/src/outbound_media.rs:44
↓ 5 callers
Method
auth_header
(&self)
crates/frankclaw-channels/src/discord.rs:47
↓ 5 callers
Function
build_channel_http_client
Build the standard HTTP client used by channel adapters.
crates/frankclaw-channels/src/lib.rs:31
↓ 5 callers
Function
build_media_send_request
( msg: &OutboundMessage, include_parse_mode: bool, )
crates/frankclaw-channels/src/telegram.rs:546
↓ 5 callers
Function
build_send_body
(msg: &OutboundMessage)
crates/frankclaw-channels/src/discord.rs:516
↓ 5 callers
Function
build_send_body
(msg: &OutboundMessage)
crates/frankclaw-channels/src/telegram.rs:517
↓ 5 callers
Function
canvas_id_from_params
(params: &serde_json::Value)
crates/frankclaw-gateway/src/methods.rs:642
↓ 5 callers
Method
channels
(&self)
crates/frankclaw-channels/src/lib.rs:55
↓ 5 callers
Function
chunk_discord_text
Split text into chunks of at most `limit` characters, preferring newline boundaries.
crates/frankclaw-channels/src/discord.rs:605
↓ 5 callers
Method
complete
Complete a run and notify the parent.
crates/frankclaw-runtime/src/subagent.rs:238
↓ 5 callers
Method
complete
( &self, request: CompletionRequest, _stream_tx: Option<tokio::sync::mpsc:
crates/frankclaw-runtime/src/lib.rs:2183
↓ 5 callers
Function
content_hash
(content: &str)
crates/frankclaw-memory/src/sync.rs:185
↓ 5 callers
Function
create_test_plugin
(dir: &Path, id: &str)
crates/frankclaw-plugin-sdk/src/discovery.rs:117
↓ 5 callers
Function
derive_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 callers
Function
discover_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 callers
Function
estimate_tokens
Estimate the token count for a string using a chars/token heuristic.
crates/frankclaw-runtime/src/context.rs:40
↓ 5 callers
Method
evaluate_string
( &self, socket: &mut tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tok
crates/frankclaw-tools/src/lib.rs:911
↓ 5 callers
Function
extract_credential
Extract auth credential from HTTP headers.
crates/frankclaw-gateway/src/server.rs:201
↓ 5 callers
Function
extract_url_from_line
Extract a URL from a line of text, starting from the given prefix.
crates/frankclaw-gateway/src/tunnel.rs:325
↓ 5 callers
Function
extract_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 callers
Method
fire_hook
Fire a hook event asynchronously (fire-and-forget).
crates/frankclaw-runtime/src/lib.rs:242
↓ 5 callers
Method
from
(tier: Tier)
crates/frankclaw-models/src/routing.rs:57
↓ 5 callers
Function
is_process_alive
(pid: u32)
crates/frankclaw-cli/src/main.rs:1718
↓ 5 callers
Function
load_master_key_from_env
()
crates/frankclaw-cli/src/main.rs:4328
↓ 5 callers
Function
lookup
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 callers
Function
make_test_channel
(allowed_senders: Vec<String>)
crates/frankclaw-channels/src/email.rs:496
↓ 5 callers
Function
metadata_path_for
(path: &std::path::Path)
crates/frankclaw-media/src/store.rs:279
↓ 5 callers
Method
parse_message
(&self, msg: &serde_json::Value)
crates/frankclaw-channels/src/telegram.rs:233
↓ 5 callers
Function
parse_message_create
( payload: &serde_json::Value, bot_user_id: Option<&str>, )
crates/frankclaw-channels/src/discord.rs:455
↓ 5 callers
Function
parse_session_key_param
( request: &RequestFrame, )
crates/frankclaw-gateway/src/methods.rs:885
↓ 5 callers
Function
process_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 callers
Function
read_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 callers
Method
record
Record a tool call. Returns an error if the repeat threshold is exceeded.
crates/frankclaw-runtime/src/lib.rs:1592
↓ 5 callers
Method
record_failure
Record a failed authentication attempt.
crates/frankclaw-gateway/src/rate_limit.rs:46
↓ 5 callers
Method
record_success
Record a successful call.
crates/frankclaw-models/src/circuit_breaker.rs:94
↓ 5 callers
Method
require_workspace
Returns the workspace path, or an error if no workspace is configured.
crates/frankclaw-tools/src/lib.rs:64
↓ 5 callers
Method
resolve_agent
(&self, requested: Option<&AgentId>)
crates/frankclaw-runtime/src/lib.rs:1293
↓ 5 callers
Function
retry_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 callers
Method
send_with_retries
( &self, msg: OutboundMessage, state: SendRetryState, )
crates/frankclaw-channels/src/telegram.rs:72
↓ 5 callers
Method
session_key_for_inbound
( &self, inbound: &InboundMessage, )
crates/frankclaw-runtime/src/lib.rs:292
↓ 5 callers
Function
set_last_reply_in_metadata
( metadata: &mut serde_json::Value, reply: &StoredReplyMetadata, )
crates/frankclaw-gateway/src/delivery.rs:360
↓ 5 callers
Function
strip_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 callers
Method
to_toml_string
Serialize this config to a pretty-printed TOML string.
crates/frankclaw-core/src/config.rs:63
↓ 4 callers
Method
add_tokens
Record token usage.
crates/frankclaw-cron/src/job.rs:222
↓ 4 callers
Function
audit_auth
( config: &frankclaw_core::config::FrankClawConfig, findings: &mut Vec<Finding>, )
crates/frankclaw-cli/src/main.rs:2622
↓ 4 callers
Function
build_send_attachment_payload
( msg: &OutboundMessage, )
crates/frankclaw-channels/src/discord.rs:557
↓ 4 callers
Function
build_send_attachment_request
( msg: &OutboundMessage, account: Option<&str>, )
crates/frankclaw-channels/src/signal.rs:527
↓ 4 callers
Function
build_send_body
(msg: &OutboundMessage)
crates/frankclaw-channels/src/whatsapp.rs:358
↓ 4 callers
Function
build_send_body
(msg: &OutboundMessage)
crates/frankclaw-channels/src/slack.rs:558
↓ 4 callers
Function
cache_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 callers
Function
canvas_id_from_args
(args: &serde_json::Value, ctx: &ToolContext)
crates/frankclaw-tools/src/lib.rs:1182
↓ 4 callers
Function
canvas_service
(ctx: &ToolContext)
crates/frankclaw-tools/src/lib.rs:1174
↓ 4 callers
Function
check_file_permissions
(path: &std::path::Path, label: &str)
crates/frankclaw-cli/src/main.rs:2319
↓ 4 callers
Function
colored
Wrap `text` in SGR escape sequences for the given color code.
crates/frankclaw-cli/src/terminal.rs:31
↓ 4 callers
Method
complete
( &self, line: &str, pos: usize, _ctx: &rustyline::Context<'_>, )
crates/frankclaw-cli/src/repl.rs:265
↓ 4 callers
Function
dispatch_method
Dispatch an RPC method to the appropriate handler.
crates/frankclaw-gateway/src/ws.rs:134
↓ 4 callers
Method
drain_outbound
Retrieve pending outbound messages for one web recipient.
crates/frankclaw-channels/src/web.rs:26
↓ 4 callers
Method
embed_batch
(&self, texts: &[&str])
crates/frankclaw-memory/src/embedding.rs:58
↓ 4 callers
Method
endpoint
(&self, path: &str)
crates/frankclaw-channels/src/signal.rs:38
↓ 4 callers
Function
enrich
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 callers
Method
evaluate_bool
( &self, socket: &mut tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tok
crates/frankclaw-tools/src/lib.rs:924
↓ 4 callers
Method
extension
(&self)
crates/frankclaw-gateway/src/canvas.rs:79
← previous
next →
101–200 of 2,115, ranked by callers