MCPcopy Create free account

hub / github.com/akitaonrails/FrankClaw / functions

Functions2,115 in github.com/akitaonrails/FrankClaw

↓ 340 callersMethodas_str
(&self)
crates/frankclaw-core/src/types.rs:25
↓ 334 callersMethodis_empty
Whether the cache is empty.
crates/frankclaw-models/src/cache.rs:151
↓ 195 callersMethodlen
Number of entries currently in the cache.
crates/frankclaw-models/src/cache.rs:146
↓ 186 callersMethodpush
(&mut self, chunk: &[u8])
crates/frankclaw-models/src/sse.rs:15
↓ 135 callersMethodpush
(&mut self, chunk: &str)
crates/frankclaw-channels/src/signal.rs:218
↓ 111 callersMethodget
(&self, id: &ChannelId)
crates/frankclaw-channels/src/lib.rs:59
↓ 98 callersMethodget
(&self, _key: &SessionKey)
crates/frankclaw-tools/src/lib.rs:293
↓ 95 callersMethodget
(&self, canvas_id: &str)
crates/frankclaw-gateway/src/canvas.rs:139
↓ 86 callersMethodok
(id: RequestId, result: serde_json::Value)
crates/frankclaw-core/src/protocol.rs:179
↓ 82 callersMethodchannel_err
Build a channel error for this adapter.
crates/frankclaw-core/src/channel.rs:172
↓ 69 callersFunctiontemp_dir
()
crates/frankclaw-gateway/src/methods.rs:948
↓ 57 callersMethodsend
Broadcast a JSON-serialized event to all subscribers. Returns the number of receivers that got the message.
crates/frankclaw-gateway/src/broadcast.rs:20
↓ 47 callersMethodregister
(&mut self, tool: Arc<dyn Tool>)
crates/frankclaw-tools/src/lib.rs:191
↓ 45 callersFunctiondefault_agent
()
crates/frankclaw-core/src/types.rs:137
↓ 34 callersMethodpath
(&self)
crates/frankclaw-gateway/src/test_fixtures.rs:18
↓ 31 callersMethodtext
Create a simple text message (no tool calls).
crates/frankclaw-core/src/model.rs:88
↓ 30 callersMethodremove
(&self, id: &str)
crates/frankclaw-cron/src/service.rs:220
↓ 26 callersMethodas_bytes
Access the raw key bytes. Use sparingly — prefer `derive_subkey`.
crates/frankclaw-crypto/src/keys.rs:49
↓ 26 callersMethodchat
(&self, request: ChatRequest)
crates/frankclaw-runtime/src/lib.rs:310
↓ 25 callersMethodinvoke_allowed
( &self, allowed_tools: &[String], name: &str, args: serde_json::Value,
crates/frankclaw-tools/src/lib.rs:215
↓ 24 callersMethodcount
Number of plugins.
crates/frankclaw-plugin-sdk/src/lifecycle.rs:110
↓ 24 callersFunctionscore_complexity
Score a prompt's complexity across 13 dimensions using default config.
crates/frankclaw-models/src/routing.rs:301
↓ 23 callersFunctionlog_failure
(action: &str, details: Value)
crates/frankclaw-gateway/src/audit.rs:13
↓ 23 callersMethodparse
Parse back into components. Returns None if format is invalid.
crates/frankclaw-core/src/types.rs:74
↓ 23 callersMethodwith
Add a context value.
crates/frankclaw-core/src/hooks.rs:63
↓ 21 callersMethodget_transcript
(&self, _key: &SessionKey, _limit: usize, _before: Option<u64>)
crates/frankclaw-tools/src/lib.rs:298
↓ 20 callersMethodtransition_to
Transition to a new state, recording the transition with an optional reason. Returns `Err` if the transition is invalid.
crates/frankclaw-cron/src/job.rs:145
↓ 19 callersMethodupsert
(&self, entry: &SessionEntry)
crates/frankclaw-sessions/src/store.rs:239
↓ 18 callersFunctionload_config
( path: Option<&std::path::Path>, state_dir: &std::path::Path, )
crates/frankclaw-cli/src/main.rs:1188
↓ 18 callersMethodregister_spawn
Attempt to register a new subagent run. Returns `SpawnResult::Accepted` with run details if the spawn is allowed, or `SpawnResult::Rejected` if limit
crates/frankclaw-runtime/src/subagent.rs:160
↓ 18 callersMethodstore
Store a response in the cache. Skips storage if the request has tool definitions.
crates/frankclaw-models/src/cache.rs:107
↓ 18 callersMethodvalidate
(&self)
crates/frankclaw-core/src/auth.rs:39
↓ 17 callersMethodcomplete
Try each provider in order with circuit breaker + retry. Providers that don't list the requested model are skipped to avoid unnecessary 404s (e.g. se
crates/frankclaw-models/src/failover.rs:76
↓ 17 callersMethodcurrent_config
Get current config snapshot (cheap Arc clone).
crates/frankclaw-gateway/src/state.rs:141
↓ 17 callersFunctionspawn_request
(parent_depth: u32)
crates/frankclaw-runtime/src/subagent.rs:387
↓ 16 callersMethodrecord_failure
Record a transient failure. Non-transient errors should NOT be recorded (e.g., auth failures, context length exceeded, model not found).
crates/frankclaw-models/src/circuit_breaker.rs:115
↓ 16 callersFunctionscan_for_leaks
Scan text for credential leaks. Returns a `LeakScanResult` with all matches found. If any match has `LeakAction::Block`, `should_block` is `true`. If
crates/frankclaw-runtime/src/leak_detector.rs:61
↓ 16 callersFunctionsimple_request
Builds a minimal [`CompletionRequest`] with a single user message.
crates/frankclaw-models/tests/common/mod.rs:58
↓ 15 callersFunctionbuild_test_state
( temp_dir: &Path, )
crates/frankclaw-gateway/src/methods.rs:1071
↓ 15 callersFunctionload_from_config
(config: &FrankClawConfig)
crates/frankclaw-channels/src/lib.rs:130
↓ 15 callersFunctionnormalize_outbound_text
( text: &str, flavor: OutboundTextFlavor, )
crates/frankclaw-channels/src/outbound_text.rs:7
↓ 15 callersMethodread
( &self, id: &MediaId, )
crates/frankclaw-media/src/store.rs:216
↓ 15 callersMethodstatus_code
HTTP-like status code for protocol responses.
crates/frankclaw-core/src/error.rs:125
↓ 14 callersFunctionapply_stream_event
Process a single SSE data payload and return any stream deltas.
crates/frankclaw-models/src/openai_compat.rs:223
↓ 14 callersFunctionopen_sessions
( state_dir: &std::path::Path, )
crates/frankclaw-cli/src/main.rs:1659
↓ 14 callersFunctionparse_markdown
Parse a markdown string into a `MarkdownIR`.
crates/frankclaw-runtime/src/markdown.rs:54
↓ 14 callersMethodrecord_llm_call
Record a completed LLM call. Call this AFTER the LLM call completes.
crates/frankclaw-models/src/cost_guard.rs:142
↓ 14 callersMethodselect
Select the best available key using round-robin. Returns `None` if all keys are in cooldown.
crates/frankclaw-core/src/api_keys.rs:84
↓ 13 callersFunctionopenai_base_url
Returns the OpenAI-compatible base URL. If `OPENAI_API_KEY` looks like an OpenRouter key (`sk-or-*`), use the OpenRouter endpoint automatically.
crates/frankclaw-models/tests/common/mod.rs:19
↓ 12 callersFunctioncount_matches
(re: &Regex, text: &str)
crates/frankclaw-models/src/routing.rs:285
↓ 12 callersFunctionopenai_key
Returns the OpenAI API key from `OPENAI_API_KEY`, if set and non-empty.
crates/frankclaw-models/tests/common/mod.rs:10
↓ 12 callersFunctionrender
Replace `{key}` placeholders in a template with provided values. ``` use frankclaw_runtime::prompts::render; let result = render("Hello {name}, you a
crates/frankclaw-runtime/src/prompts.rs:39
↓ 12 callersFunctiontest_session
(key: &str)
crates/frankclaw-sessions/src/store.rs:862
↓ 12 callersMethodupsert
(&self, _entry: &SessionEntry)
crates/frankclaw-tools/src/lib.rs:294
↓ 11 callersMethodappend_transcript
(&self, key: &SessionKey, entry: &TranscriptEntry)
crates/frankclaw-sessions/src/store.rs:347
↓ 11 callersFunctiongenerate_token
Generate a cryptographically secure random token (256 bits, base64url encoded). Suitable for: gateway auth tokens, webhook secrets, pairing codes.
crates/frankclaw-crypto/src/token.rs:7
↓ 11 callersFunctionlog_event
(action: &str, outcome: &str, details: Value)
crates/frankclaw-gateway/src/audit.rs:3
↓ 11 callersFunctionopenai_model
Pick a model that works with the detected endpoint.
crates/frankclaw-models/tests/common/mod.rs:30
↓ 11 callersMethodsend
(&self, msg: OutboundMessage)
crates/frankclaw-channels/src/slack.rs:349
↓ 11 callersMethodstore
Store bytes as a media file, scanning for malware first if a scanner is configured. Returns metadata on success, or `MalwareDetected` if the file is f
crates/frankclaw-media/src/store.rs:73
↓ 10 callersFunctionbuild_request_body
Build an OpenAI-compatible chat completions request body.
crates/frankclaw-models/src/openai_compat.rs:8
↓ 10 callersFunctionbuild_test_state
( temp_dir: &Path, mut config: FrankClawConfig, channels: Arc<ChannelSet>, )
crates/frankclaw-gateway/src/server.rs:2102
↓ 10 callersFunctionextract_links
Extract unique HTTP(S) URLs from a message. - Strips markdown link syntax first (so `[click](url)` is ignored). - Deduplicates URLs. - Filters out SS
crates/frankclaw-core/src/links.rs:114
↓ 10 callersMethodget_transcript
( &self, key: &SessionKey, limit: usize, before_seq: Option<u64>, )
crates/frankclaw-sessions/src/store.rs:388
↓ 10 callersFunctionmake_keys
(n: usize)
crates/frankclaw-core/src/api_keys.rs:241
↓ 10 callersFunctionmodel_cost
Per-model cost lookup table for multi-provider LLM support. Returns (input_cost_per_token, output_cost_per_token) as f64 pairs. Ollama and other loca
crates/frankclaw-models/src/costs.rs:11
↓ 10 callersFunctionprint_section
(title: &str, checks: &[CheckResult])
crates/frankclaw-cli/src/main.rs:2074
↓ 10 callersMethodresolve_session_id
(&self, requested: Option<&str>, ctx: &ToolContext)
crates/frankclaw-tools/src/lib.rs:443
↓ 10 callersFunctionsanitize_for_prompt
Strip Unicode control characters that could be used for prompt injection. Removes: - Unicode category Cc (control chars) except \t, \n, \r (which are
crates/frankclaw-core/src/sanitize.rs:21
↓ 9 callersFunctionanthropic_key
Returns the Anthropic API key from `ANTHROPIC_API_KEY`, if set and non-empty.
crates/frankclaw-models/tests/common/mod.rs:41
↓ 9 callersMethodappend_transcript_entry
( &self, session_key: &SessionKey, seq: u64, role: Role, content: Stri
crates/frankclaw-runtime/src/lib.rs:1514
↓ 9 callersFunctionapply_stream_event
( state: &mut AnthropicStreamState, event_type: Option<&str>, data: &str, )
crates/frankclaw-models/src/anthropic.rs:384
↓ 9 callersFunctionbuild_runtime
( config: &frankclaw_core::config::FrankClawConfig, state_dir: &std::path::Path, sessions: std::sy
crates/frankclaw-cli/src/main.rs:4282
↓ 9 callersMethodconnect_page_socket
( &self, ws_url: &str, )
crates/frankclaw-tools/src/lib.rs:867
↓ 9 callersMethodget_conn
(&self)
crates/frankclaw-sessions/src/store.rs:137
↓ 9 callersMethodlist
(&self)
crates/frankclaw-cron/src/service.rs:226
↓ 9 callersFunctionmake_request
(method: Method, params: serde_json::Value)
crates/frankclaw-gateway/src/methods.rs:925
↓ 9 callersMethodmark_stuck
Mark the job as stuck with a reason.
crates/frankclaw-cron/src/job.rs:190
↓ 9 callersFunctionresolve_channel_value
( account: &Value, inline_keys: &[&str], env_keys: &[&str], default_env: Option<&str>, cha
crates/frankclaw-channels/src/lib.rs:404
↓ 9 callersMethodsend
Send a JSON-RPC request and receive the response.
crates/frankclaw-tools/src/mcp/mod.rs:171
↓ 9 callersFunctiontemp_store
Helper to create a temp store for tests.
crates/frankclaw-sessions/src/store.rs:851
↓ 8 callersMethodattempt_recovery
Attempt recovery from stuck state. Returns `Err` if the job is not stuck or has exceeded max repair attempts.
crates/frankclaw-cron/src/job.rs:197
↓ 8 callersFunctionbuild_request_body
(request: &CompletionRequest)
crates/frankclaw-models/src/anthropic.rs:163
↓ 8 callersFunctionbuild_role_snapshot
Build a compact ARIA tree snapshot from CDP `Accessibility.getFullAXTree` nodes. Returns the indented tree text and a map of element references.
crates/frankclaw-tools/src/aria.rs:184
↓ 8 callersFunctiondeliver_outbound_message
( channel: Arc<dyn ChannelPlugin>, outbound: OutboundMessage, media: Option<&MediaStore>, )
crates/frankclaw-gateway/src/delivery.rs:66
↓ 8 callersFunctiondetect_command
Check if a message starts with a known command.
crates/frankclaw-runtime/src/commands.rs:157
↓ 8 callersFunctionencrypt
Encrypt plaintext with a 256-bit key using ChaCha20-Poly1305. Each call generates a fresh random nonce. The nonce is stored alongside the ciphertext
crates/frankclaw-crypto/src/encryption.rs:24
↓ 8 callersFunctionestimate_messages_tokens
Estimate total tokens for a slice of messages.
crates/frankclaw-runtime/src/context.rs:46
↓ 8 callersMethodfire
Fire an event, running all matching handlers. Handlers for both the general type and specific type:action pair are run. Execution is fire-and-forget:
crates/frankclaw-core/src/hooks.rs:136
↓ 8 callersFunctionoptimize_context
Optimize a message list to fit within the model's context window. Strategy: 1. If messages fit within budget, return as-is. 2. Otherwise, drop oldest
crates/frankclaw-runtime/src/context.rs:77
↓ 8 callersFunctionparse_receive_event
( event: &SignalSseEvent, configured_account: Option<&str>, )
crates/frankclaw-channels/src/signal.rs:360
↓ 8 callersMethodsend
(&self, msg: OutboundMessage)
crates/frankclaw-channels/src/discord.rs:285
↓ 8 callersMethodsend
(&self, msg: OutboundMessage)
crates/frankclaw-channels/src/telegram.rs:404
↓ 8 callersMethodsend
( &self, msg: OutboundMessage, )
crates/frankclaw-gateway/src/server.rs:2091
↓ 8 callersFunctionvalidate_channel_account_value_source
( channel: &ChannelConfig, channel_name: &str, inline_keys: &[&str], env_keys: &[&str], la
crates/frankclaw-core/src/config.rs:500
↓ 8 callersFunctionvalidate_navigation_url
Validate that a browser navigation URL is not targeting private/internal IPs. Uses the same SSRF blocklist as media fetches.
crates/frankclaw-tools/src/lib.rs:1820
↓ 8 callersMethodwait_for_ready
( &self, socket: &mut tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tok
crates/frankclaw-tools/src/lib.rs:894
↓ 7 callersFunctionassess_exposure
(config: &frankclaw_core::config::FrankClawConfig)
crates/frankclaw-gateway/src/auth.rs:150
↓ 7 callersMethodbot_auth_header
(&self)
crates/frankclaw-channels/src/slack.rs:54
↓ 7 callersFunctionbuild_media_group_items
( channel: &ChannelId, attachments: &[OutboundAttachment], text: &str, include_parse_mode: boo
crates/frankclaw-channels/src/telegram.rs:646
next →1–100 of 2,115, ranked by callers