MCPcopy Create free account

hub / github.com/Kuberwastaken/claurst / functions

Functions4,591 in github.com/Kuberwastaken/claurst

↓ 2 callersMethoddisplay_default_model_for_provider
(&self, provider_id: &str)
src-rust/crates/tui/src/app.rs:1621
↓ 2 callersMethoddownload
Download remote settings and memory files. Returns `Ok(None)` when the server has no data for this user (404). Fails open — callers should treat erro
src-rust/crates/core/src/settings_sync.rs:148
↓ 2 callersFunctiondummy_request
(model: &str)
src-rust/crates/api/src/providers/free.rs:522
↓ 2 callersFunctionempty_block_line
(width: u16)
src-rust/crates/tui/src/messages/mod.rs:189
↓ 2 callersMethodendpoint
(&self)
src-rust/crates/core/src/settings_sync.rs:128
↓ 2 callersMethodendpoint_url
(&self, deployment: &str)
src-rust/crates/api/src/providers/azure.rs:72
↓ 2 callersMethodensure_visible
Ensure the selected item is within the scrolling viewport.
src-rust/crates/tui/src/tasks_overlay.rs:166
↓ 2 callersMethoderror
(content: impl Into<String>)
src-rust/crates/tools/src/lib.rs:135
↓ 2 callersFunctionestimate_tokens
Estimate token count from text using simple heuristic.
src-rust/crates/core/src/context_collapse.rs:37
↓ 2 callersFunctionestimate_tokens
Rough token count heuristic (chars / 4 + JSON overhead). Mirrors the TS `countTokens` approximation.
src-rust/crates/core/src/message_utils.rs:13
↓ 2 callersMethodexecute_context_menu_item
Execute the currently selected context menu item.
src-rust/crates/tui/src/app.rs:5312
↓ 2 callersFunctionexecute_tool
Execute a single tool invocation.
src-rust/crates/query/src/lib.rs:2124
↓ 2 callersFunctionexpand_includes
Expand @include directives in content. Circular references are detected via `visited` set.
src-rust/crates/core/src/claudemd.rs:119
↓ 2 callersMethodextract
Extract key memories from a conversation. Calls the API with a structured extraction prompt and parses the response into `ExtractedMemory` entries.
src-rust/crates/query/src/session_memory.rs:213
↓ 2 callersFunctionextract_account_id_from_jwt
Extract chatgpt-account-id from the JWT access token. The account_id is in the middle segment (payload) under https://api.openai.com/auth.account_id
src-rust/crates/cli/src/codex_oauth_flow.rs:236
↓ 2 callersFunctionextract_file_segments
Split text that may contain `<file path="...">...</file>` injection blocks into alternating Plain and FileBlock segments.
src-rust/crates/tui/src/messages/mod.rs:312
↓ 2 callersFunctionextract_goal_objective_from_args
Pulls the objective text out of the `args` portion of a `/goal …` slash command. Returns `None` for empty args or for the subcommand forms (`status`,
src-rust/crates/tui/src/messages/mod.rs:1794
↓ 2 callersFunctionextract_goal_slash_objective
Recognizes a raw `/goal <objective>` user message. Returns the objective string when the first line is `/goal …` with actual objective text; returns `
src-rust/crates/tui/src/messages/mod.rs:1769
↓ 2 callersFunctionextract_label_flag
(args: &[String])
src-rust/crates/cli/src/main.rs:3932
↓ 2 callersFunctionextract_locations
Extract a list of `"path:line"` strings from an LSP `Location | Location[]` result.
src-rust/crates/core/src/lsp.rs:747
↓ 2 callersFunctionextract_tool_summary
(tool_name: &str, input: &serde_json::Value)
src-rust/crates/tui/src/messages/mod.rs:946
↓ 2 callersFunctionextract_yaml_str
(front: &str, key: &str)
src-rust/crates/query/src/skill_prefetch.rs:164
↓ 2 callersFunctionextract_yaml_str
(content: &str, key: &str)
src-rust/crates/plugins/src/marketplace.rs:278
↓ 2 callersFunctioneye_bg_style
Eye-row style: pink text on black background.
src-rust/crates/tui/src/rustle.rs:37
↓ 2 callersFunctioneyeball_style
Eyeball highlight style: white on black.
src-rust/crates/tui/src/rustle.rs:45
↓ 2 callersFunctionfallback_oauth_metadata
(server_url: &str)
src-rust/crates/mcp/src/oauth.rs:118
↓ 2 callersMethodfeed_line
Feed one line (without the trailing newline). Returns `Some(frame)` when a blank line signals the end of an event.
src-rust/crates/api/src/lib.rs:358
↓ 2 callersFunctionfetch_oauth_metadata
(server_url: &str)
src-rust/crates/mcp/src/oauth.rs:140
↓ 2 callersFunctionfetch_response
(status_line: &str, content_type: &str, body: &str)
src-rust/crates/mcp/src/rmcp_backend.rs:892
↓ 2 callersFunctionfilter_tools_for_agent
Filter the tool list based on the agent's access level. - "full" → all tools allowed (no filtering) - "read-only" → only ReadOnly/None permis
src-rust/crates/cli/src/main.rs:1270
↓ 2 callersMethodfind_matches
Find indices of items matching `query` (case-insensitive substring).
src-rust/crates/tui/src/virtual_list.rs:276
↓ 2 callersFunctionfind_named_command
Look up a named command by its primary name (case-insensitive).
src-rust/crates/commands/src/named_commands.rs:1121
↓ 2 callersFunctionfireworks
Fireworks AI — fast inference. Reads `FIREWORKS_API_KEY`.
src-rust/crates/api/src/providers/openai_compat_providers.rs:479
↓ 2 callersFunctionflatten_line_text
(line: &Line<'_>)
src-rust/crates/tui/src/render.rs:368
↓ 2 callersMethodflush_streamed_assistant_message
(&mut self)
src-rust/crates/tui/src/app.rs:1586
↓ 2 callersFunctionformat_memory_manifest
Format memory headers as a text manifest: one entry per file with `[type] filename (iso-timestamp): description`. Mirrors `formatMemoryManifest` in `
src-rust/crates/core/src/memdir.rs:206
↓ 2 callersFunctionformat_outcome
(outcome: QueryOutcome)
src-rust/crates/query/src/agent_tool.rs:520
↓ 2 callersFunctionformat_plugin_list
Build the text output for `/plugin list`.
src-rust/crates/plugins/src/lib.rs:303
↓ 2 callersFunctionfriendli
Friendli — serverless inference. Reads `FRIENDLI_TOKEN`.
src-rust/crates/api/src/providers/openai_compat_providers.rs:450
↓ 2 callersFunctiongenerate_code_verifier
Generate a cryptographically random code verifier (43–128 chars of Base64url characters, as required by RFC 7636). Uses `getrandom` via the `rand` cr
src-rust/crates/core/src/oauth_config.rs:263
↓ 2 callersMethodget
Get an entry by `"provider_id/model_id"` key.
src-rust/crates/api/src/model_registry.rs:623
↓ 2 callersFunctionget_cache_dir
Get the cache directory for web_fetch content.
src-rust/crates/tools/src/web_fetch.rs:32
↓ 2 callersMethodget_diagnostics
Get cached diagnostics for `file_path`.
src-rust/crates/core/src/lsp.rs:580
↓ 2 callersMethodget_diagnostics_for_file
Get cached diagnostics for `file_path` across all running servers.
src-rust/crates/core/src/lsp.rs:1192
↓ 2 callersMethodget_file_history
Return all recorded modifications for `path`, in chronological order.
src-rust/crates/core/src/file_history.rs:99
↓ 2 callersFunctionget_ide_context
Get IDE context from the lockfile (if an IDE is connected). Returns a formatted string like: `IDE: VS Code, workspace: /path/to/project, selection: L
src-rust/crates/core/src/attachments.rs:87
↓ 2 callersFunctionget_oauth_config
Return the OAuth config appropriate for the current environment. Free-code always uses production OAuth. The `USER_TYPE=ant` gate and staging variant
src-rust/crates/core/src/oauth_config.rs:244
↓ 2 callersMethodget_thinking_blocks
Return references to all `Thinking` blocks in this message.
src-rust/crates/core/src/lib.rs:437
↓ 2 callersFunctionget_valid_mcp_access_token
( server_name: &str, server_url: &str, )
src-rust/crates/mcp/src/oauth.rs:344
↓ 2 callersMethodglyph
(&self)
src-rust/crates/buddy/src/lib.rs:176
↓ 2 callersFunctiongoal_system_prompt_addendum
Build the text appended to the dynamic section of the system prompt when a goal is active. This is NOT cached (it changes per session).
src-rust/crates/core/src/goal.rs:362
↓ 2 callersFunctiongoals_enabled
Returns true when the /goal feature is enabled. Disabled only if CLAURST_GOALS=0 is set explicitly.
src-rust/crates/core/src/goal.rs:319
↓ 2 callersMethodhandle_context_menu_action
Handle a context menu action.
src-rust/crates/tui/src/app.rs:5325
↓ 2 callersMethodhandle_exit_key_confirmation
(&mut self, mut key_char: char)
src-rust/crates/tui/src/app.rs:4640
↓ 2 callersMethodhandle_global_search_key
(&mut self, key: KeyEvent)
src-rust/crates/tui/src/app.rs:4613
↓ 2 callersMethodhandle_voice_ptt_stop
Stop PTT recording: flip the AtomicBool inside VoiceRecorder so the capture thread exits, then fire a "Transcribing…" notice. The transcript text arr
src-rust/crates/tui/src/app.rs:2727
↓ 2 callersMethodhas_no_key
Returns `true` when the provider has no usable API key.
src-rust/crates/api/src/providers/openai_compat.rs:165
↓ 2 callersMethodhealth_check
(&self)
src-rust/crates/api/src/providers/free.rs:395
↓ 2 callersMethodhidden
(&self)
src-rust/crates/commands/src/lib.rs:7066
↓ 2 callersFunctionhuggingface
Hugging Face Inference API. Reads `HF_TOKEN`.
src-rust/crates/api/src/providers/openai_compat_providers.rs:316
↓ 2 callersMethodincrement_prs
(&self)
src-rust/crates/core/src/analytics.rs:72
↓ 2 callersMethodincrement_tool_use
(&self)
src-rust/crates/core/src/analytics.rs:76
↓ 2 callersMethodinitialize
Perform the LSP `initialize` / `initialized` handshake.
src-rust/crates/core/src/lsp.rs:363
↓ 2 callersMethodinput_schema
(&self)
src-rust/crates/tools/src/monitor_tool.rs:49
↓ 2 callersMethodintercept_slash_command
(&mut self, cmd: &str)
src-rust/crates/tui/src/app.rs:1960
↓ 2 callersMethodintercept_slash_command_with_args
Handle slash commands that should open UI screens rather than execute as normal commands. Returns `true` if the command was intercepted.
src-rust/crates/tui/src/app.rs:1953
↓ 2 callersFunctionis_auto_memory_enabled
Whether the auto-memory system is enabled for this session. Priority chain (mirrors `isAutoMemoryEnabled` in `paths.ts`): 1. `CLAURST_DISABLE_AUTO_ME
src-rust/crates/core/src/memdir.rs:383
↓ 2 callersFunctionis_codex_provider
Whether `provider_id` refers to the OpenAI Codex provider under either of its two id spellings: the canonical `"codex"` (used by `CodexProvider`, the
src-rust/crates/tui/src/model_picker.rs:380
↓ 2 callersFunctionis_context_overflow
Returns `true` if `message` matches any known context-overflow pattern. The comparison is case-insensitive. Patterns are matched as substrings (not
src-rust/crates/api/src/error_handling.rs:64
↓ 2 callersMethodis_enabled
Whether a plugin is enabled.
src-rust/crates/plugins/src/registry.rs:88
↓ 2 callersFunctionis_env_truthy
Return `true` when `val` is a truthy env-var value. Truthy: `"1"`, `"true"`, `"yes"`, `"on"` (case-insensitive). `None` (variable unset) is falsy.
src-rust/crates/core/src/feature_gates.rs:96
↓ 2 callersMethodis_expired
Returns `true` if the token is expired or will expire within `grace_secs`.
src-rust/crates/mcp/src/oauth.rs:27
↓ 2 callersFunctionis_gpt5_reasoning_model
Whether `id` is a GPT-5 reasoning model (`gpt-5*`), excluding the non-reasoning chat / pro snapshots that ignore `reasoning_effort`.
src-rust/crates/tui/src/model_picker.rs:115
↓ 2 callersFunctionis_leap_year
(year: u32)
src-rust/crates/tui/src/stats_dialog.rs:132
↓ 2 callersFunctionis_newer
Compare two semver strings. Returns `true` when `latest` > `current`.
src-rust/crates/core/src/update_check.rs:115
↓ 2 callersMethodis_visible
Whether this state represents an active/visible connection that occupies horizontal space in the status bar (i.e. not Disconnected).
src-rust/crates/tui/src/bridge_state.rs:93
↓ 2 callersMethodis_visible
Return `true` if this banner should be shown.
src-rust/crates/tui/src/plugin_views.rs:36
↓ 2 callersMethodjson_value
Returns a JSON-compatible value for this field's current state.
src-rust/crates/tui/src/elicitation_dialog.rs:113
↓ 2 callersMethodjump_to_bottom
Scroll to the very bottom.
src-rust/crates/tui/src/virtual_list.rs:135
↓ 2 callersMethodkill_line_backward
Ctrl+U: Cut from line start to cursor and save to kill ring.
src-rust/crates/tui/src/prompt_input.rs:1719
↓ 2 callersMethodkill_word_backward
Ctrl+W: Cut previous word and save to kill ring.
src-rust/crates/tui/src/prompt_input.rs:1734
↓ 2 callersMethodlist_all
List every entry in the registry.
src-rust/crates/api/src/model_registry.rs:818
↓ 2 callersFunctionlist_installed
List all installed plugins.
src-rust/crates/plugins/src/marketplace.rs:210
↓ 2 callersMethodload_cached_flags
Load cached flags from disk
src-rust/crates/core/src/feature_flags.rs:184
↓ 2 callersFunctionload_cached_model_registry
()
src-rust/crates/cli/src/main.rs:1086
↓ 2 callersFunctionload_companion_soul
Load a companion soul from `{config_dir}/companion.json`. Returns `None` if the file does not exist or cannot be parsed.
src-rust/crates/buddy/src/lib.rs:955
↓ 2 callersMethodload_mcp_servers
(&self)
src-rust/crates/tui/src/app.rs:2341
↓ 2 callersFunctionload_memory_file
Load a single AGENTS.md file (respects MAX_FILE_SIZE, expands @includes).
src-rust/crates/core/src/claudemd.rs:183
↓ 2 callersFunctionload_memory_index
Load and truncate the `MEMORY.md` index from `memory_dir`. Returns `None` when the file does not exist or is empty. Mirrors the entrypoint-reading pa
src-rust/crates/core/src/memdir.rs:486
↓ 2 callersFunctionload_skill_from_file
Parse a skill Markdown file into a `SkillDefinition`. Expected format: ```text --- name: my-skill description: Does something useful tags: [tag1, tag
src-rust/crates/query/src/skill_prefetch.rs:134
↓ 2 callersMethodload_state
Load persisted state; returns `Default` on any error (missing file, parse failure).
src-rust/crates/query/src/auto_dream.rs:225
↓ 2 callersFunctionlowercase_region
Convert text region to lowercase.
src-rust/crates/tui/src/prompt_input.rs:355
↓ 2 callersFunctionmake_req
(tool_name: &str, is_read_only: bool)
src-rust/crates/core/src/lib.rs:4392
↓ 2 callersFunctionmake_state_with_models
(entries: &[(&str, u64, u64, f64)])
src-rust/crates/tui/src/stats_dialog.rs:753
↓ 2 callersFunctionmake_user
(text: &str)
src-rust/crates/query/src/session_memory.rs:433
↓ 2 callersMethodmap_http_error
(&self, status: u16, body: &str)
src-rust/crates/api/src/providers/bedrock.rs:413
↓ 2 callersMethodmap_http_error
(&self, status: u16, body: &str)
src-rust/crates/api/src/providers/azure.rs:79
↓ 2 callersMethodmap_http_error
Map an HTTP error response to a typed ProviderError.
src-rust/crates/api/src/providers/cohere.rs:85
↓ 2 callersFunctionmatch_session_mode_from_agent_mode
Typed variant of `match_session_mode` — accepts an `AgentMode` directly. Returns a warning string when the environment was changed, `None` otherwise.
src-rust/crates/query/src/coordinator.rs:220
↓ 2 callersMethodmaybe_record_bash_prefix
If the active permission dialog's selected option is the prefix-allow option ('P') for a Bash dialog, extract the suggested prefix and add it to `bash
src-rust/crates/tui/src/app.rs:5118
← previousnext →801–900 of 4,591, ranked by callers