MCPcopy Create free account

hub / github.com/Kuberwastaken/claurst / functions

Functions4,591 in github.com/Kuberwastaken/claurst

↓ 7 callersFunctionbuild_system_prompt
Build the system prompt from config. Delegates to `claurst_core::system_prompt::build_system_prompt` so that all default content (capabilities, safet
src-rust/crates/query/src/lib.rs:2173
↓ 7 callersFunctionbuiltin_styles
Return all built-in output styles in display order.
src-rust/crates/core/src/output_styles.rs:90
↓ 7 callersFunctiondie
(msg: str)
scripts/bump-version.py:30
↓ 7 callersMethodeffective_max_tokens
Resolve the effective max-tokens.
src-rust/crates/core/src/lib.rs:1283
↓ 7 callersMethodenabled
Only the enabled plugins.
src-rust/crates/plugins/src/registry.rs:75
↓ 7 callersFunctionestimate_chars
(s: &str)
src-rust/crates/query/src/context_analyzer.rs:83
↓ 7 callersMethodevaluate
Evaluate whether `tool_name` should be allowed to run. Evaluation order (faithful to TS behaviour): 1. BypassPermissions → always Allow. 2. Check den
src-rust/crates/core/src/lib.rs:2302
↓ 7 callersMethodinsert_char
(&mut self, c: char)
src-rust/crates/tui/src/free_mode_dialog.rs:143
↓ 7 callersMethodlen
Number of models in the registry.
src-rust/crates/api/src/model_registry.rs:823
↓ 7 callersFunctionlist_sessions
List all sessions, sorted by most-recently-updated first.
src-rust/crates/core/src/lib.rs:3087
↓ 7 callersFunctionload_plugins
Discover and load all plugins from the standard locations. Search order: 1. `~/.claurst/plugins/` (user-global) 2. `<project_dir>/.claurst/plugins/`
src-rust/crates/plugins/src/lib.rs:199
↓ 7 callersFunctionmake_plugin
(name: &str)
src-rust/crates/plugins/src/registry.rs:281
↓ 7 callersFunctionmake_temp_png
()
src-rust/crates/tui/src/image_paste.rs:397
↓ 7 callersFunctionmerge_openai_compatible_options
(body: &mut Value, provider_options: &Value)
src-rust/crates/api/src/providers/request_options.rs:27
↓ 7 callersFunctionmodels_cache_path
Default cache filename — derived from the source URL so a custom `CLAURST_MODELS_URL` doesn't stomp the canonical models.dev cache.
src-rust/crates/cli/src/main.rs:889
↓ 7 callersMethodmove_down
(&mut self)
src-rust/crates/tui/src/dialog_select.rs:92
↓ 7 callersMethodname
(&self)
src-rust/crates/query/src/agent_tool.rs:156
↓ 7 callersMethodopen
Open (or create) the goal database.
src-rust/crates/core/src/goal.rs:140
↓ 7 callersFunctionparse_args
(raw: &[&str])
src-rust/crates/commands/src/stats.rs:56
↓ 7 callersFunctionparse_extraction_response
Parse the model's response into `ExtractedMemory` entries. Expected line format: `MEMORY: <category> | <confidence 0-10> | <fact>`
src-rust/crates/query/src/session_memory.rs:392
↓ 7 callersMethodprocess_notification
Process a single notification message from the transport stream. Routes resource updates to subscribers and logs other notifications.
src-rust/crates/mcp/src/lib.rs:742
↓ 7 callersMethodproject_root
(&self)
src-rust/crates/tui/src/app.rs:2328
↓ 7 callersMethodraw_git
(&self, args: &[&str], stdin_data: Option<Vec<u8>>)
src-rust/crates/core/src/snapshot/shadow.rs:521
↓ 7 callersMethodregister_server
Register an LSP server configuration.
src-rust/crates/core/src/lsp.rs:926
↓ 7 callersFunctionrender_system_api_error
Render a system API error block (red-bordered, first 5 lines with [expand] hint, optional retry countdown).
src-rust/crates/tui/src/messages/mod.rs:1703
↓ 7 callersFunctionrender_tool_result_success
Render a tool result (success variant) — generic fallback.
src-rust/crates/tui/src/messages/mod.rs:1104
↓ 7 callersMethodresolve_api_key
Resolve the API key for the active provider.
src-rust/crates/core/src/lib.rs:1364
↓ 7 callersFunctionrun_git
(cwd: &std::path::Path, args: &[&str])
src-rust/crates/tools/src/worktree.rs:427
↓ 7 callersMethodserver_name_for_file
Find the first server name that handles `file_path` based on extension.
src-rust/crates/core/src/lsp.rs:965
↓ 7 callersMethodstart_rename
Switch to rename mode, pre-populating the input with the current title.
src-rust/crates/tui/src/session_browser.rs:110
↓ 7 callersMethodtick
Remove all expired notifications. Call this once per render frame.
src-rust/crates/tui/src/notifications.rs:76
↓ 7 callersMethoduses_bearer_auth
Returns true if the token requires Bearer-style authorization (i.e. Claude.ai subscription with `user:inference` scope).
src-rust/crates/core/src/lib.rs:3617
↓ 7 callersFunctionword_wrap
Wrap `text` to fit within `width` display columns, preferring whitespace breaks but falling back to a hard character break when a single token is long
src-rust/crates/tui/src/dialogs.rs:313
↓ 7 callersFunctionwrite_file
(dir: &Path, name: &str, content: &str)
src-rust/crates/core/src/skill_discovery.rs:283
↓ 6 callersMethodadd_message
Add a message directly (e.g. from a non-streaming source).
src-rust/crates/tui/src/app.rs:2494
↓ 6 callersMethodadd_usage
( &self, input: u64, output: u64, cache_creation: u64,
src-rust/crates/core/src/lib.rs:3354
↓ 6 callersMethodbuild_permission_request
( &self, tool_name: &str, description: &str, details: Option<String>,
src-rust/crates/tools/src/lib.rs:323
↓ 6 callersFunctioncalculate_token_warning_state
Determine token-warning state given current input token count and model. Thresholds (mirrors TypeScript autoCompact.ts): ≥ 95 % → Critical (red warni
src-rust/crates/query/src/compact.rs:505
↓ 6 callersMethodcancel
Mark a task as `Cancelled`. No-op if unknown or already terminal.
src-rust/crates/core/src/lib.rs:4043
↓ 6 callersMethodcheck_permission
(&self, request: &PermissionRequest)
src-rust/crates/core/src/lib.rs:2563
↓ 6 callersFunctioncompute_streaks
Compute (current_streak, longest_streak) in days from the aggregated stats. A streak is a consecutive run of calendar days with any activity, ending o
src-rust/crates/tui/src/stats_dialog.rs:278
↓ 6 callersFunctioncontext_window_for_model
Return the effective context-window size in tokens for the given model. These are approximate; the API enforces the real limits server-side.
src-rust/crates/query/src/compact.rs:489
↓ 6 callersMethodcreate_message_stream
Send a streaming `POST /v1/messages`. Events are dispatched to the provided `handler` in real time, and also forwarded into the returned channel so t
src-rust/crates/api/src/lib.rs:727
↓ 6 callersFunctiondetect_table
Detect if a sequence of lines forms a markdown table
src-rust/crates/tui/src/messages/markdown_enhanced.rs:82
↓ 6 callersFunctiondiscover_skills
Discover all skills from all configured sources. Returns a `HashMap` of `skill_name → DiscoveredSkill` (first match wins; duplicates from lower-prior
src-rust/crates/core/src/skill_discovery.rs:139
↓ 6 callersMethoddismiss_context_menu
Dismiss the context menu.
src-rust/crates/tui/src/app.rs:5282
↓ 6 callersMethoddismiss_error_notifications
(&mut self)
src-rust/crates/tui/src/app.rs:2298
↓ 6 callersMethodeffective_output_style
Resolve the effective output style for system-prompt assembly.
src-rust/crates/core/src/lib.rs:1298
↓ 6 callersFunctionensure_unique_profile_id
If the requested id already exists, suffix with -2, -3, … until free.
src-rust/crates/core/src/accounts.rs:233
↓ 6 callersFunctionexpand_env_vars
Expand `${VAR_NAME}` and `${VAR_NAME:-default}` patterns in `input` using the process environment. Unknown variables without a default are left as-is
src-rust/crates/mcp/src/lib.rs:45
↓ 6 callersFunctionget_compact_prompt
Build the compaction prompt, optionally with custom instructions appended.
src-rust/crates/query/src/compact.rs:422
↓ 6 callersFunctiongit_output
Run a git command in `repo_root` and return stdout as a String. Returns empty string on failure (non-zero exit, not-a-repo, etc.).
src-rust/crates/core/src/git_utils.rs:27
↓ 6 callersMethodid
(&self)
src-rust/crates/api/src/providers/free.rs:270
↓ 6 callersMethoditem_height
Get the cached height for item `idx` at `width`, computing it if needed.
src-rust/crates/tui/src/virtual_list.rs:103
↓ 6 callersFunctionload_output_styles_dir
Load user-defined output styles from a directory. Supported file formats: - `.md` — Markdown: `# Label\ndescription\n\nprompt text…` - `.json` — JS
src-rust/crates/core/src/output_styles.rs:110
↓ 6 callersFunctionmake_config
(sys: Option<&str>, append: Option<&str>)
src-rust/crates/query/src/lib.rs:2289
↓ 6 callersFunctionmake_dream
(tmp: &TempDir)
src-rust/crates/query/src/auto_dream.rs:364
↓ 6 callersFunctionmake_temp_dir
()
src-rust/crates/core/src/skill_discovery.rs:279
↓ 6 callersFunctionmodels_for_provider_from_registry
Get models for a provider from the model registry (models.dev data). Builds picker entries from the bundled / network-refreshed registry. The registr
src-rust/crates/tui/src/model_picker.rs:270
↓ 6 callersMethodname
(&self)
src-rust/crates/commands/src/lib.rs:517
↓ 6 callersFunctionopen_goal_store
()
src-rust/crates/commands/src/lib.rs:1601
↓ 6 callersFunctionparse_skill_file
Parse a skill markdown file. Expects optional YAML frontmatter delimited by `---`. Returns `None` when the file is empty after trimming.
src-rust/crates/core/src/skill_discovery.rs:39
↓ 6 callersMethodpaste
Handle a paste event.
src-rust/crates/tui/src/prompt_input.rs:1691
↓ 6 callersFunctionprint_account_list
(provider: &str, display_name: &str)
src-rust/crates/cli/src/main.rs:3945
↓ 6 callersMethodrecord_file_change
( &self, path: PathBuf, before_content: &[u8], after_content: &[u8],
src-rust/crates/tools/src/lib.rs:479
↓ 6 callersFunctionrender_collapsed_read_search
Render a collapsed read/search tool use summary. Shows: `▸ ` in yellow + `{tool_name} ` in yellow bold + first few paths comma-joined, followed by `(+
src-rust/crates/tui/src/messages/mod.rs:1916
↓ 6 callersFunctionrender_dialog_select
Render the DialogSelect overlay — OpenCode-style: dark overlay, no border, full-width highlight bar on selected item, minimal and polished.
src-rust/crates/tui/src/dialog_select.rs:191
↓ 6 callersFunctionrender_file_op_result
Render a file-edit/write tool result: `Updated file` or `Created file`.
src-rust/crates/tui/src/messages/mod.rs:1093
↓ 6 callersFunctionrender_mcp_view
(state: &McpViewState, area: Rect, buf: &mut Buffer)
src-rust/crates/tui/src/mcp_view.rs:222
↓ 6 callersFunctionrender_task_assignment
Render a transcript task assignment row using the same structured title/subtitle language.
src-rust/crates/tui/src/messages/mod.rs:1943
↓ 6 callersMethodrequest_permission_inner
( &self, request: PermissionRequest, )
src-rust/crates/tools/src/lib.rs:343
↓ 6 callersMethodresolve_anthropic_auth_async
(&self)
src-rust/crates/core/src/lib.rs:1381
↓ 6 callersMethodresolve_output_style_prompt
Resolve the prompt text for the selected output style, including user-defined styles loaded from `~/.claurst/output-styles/`.
src-rust/crates/core/src/lib.rs:1307
↓ 6 callersMethodsend_notification_inner
Send a JSON-RPC notification (fire-and-forget, no response expected).
src-rust/crates/core/src/lsp.rs:343
↓ 6 callersMethodsend_request_inner
Send a JSON-RPC request and wait for the matching response.
src-rust/crates/core/src/lsp.rs:288
↓ 6 callersMethodserver_status
Return status for a single server.
src-rust/crates/mcp/src/lib.rs:957
↓ 6 callersMethodset_turn_diff
(&mut self, files: Vec<FileDiffStats>)
src-rust/crates/tui/src/diff_viewer.rs:210
↓ 6 callersMethodshow
Show the dialog (called at startup when bypass mode is active).
src-rust/crates/tui/src/bypass_permissions_dialog.rs:36
↓ 6 callersMethodshow
Show the notification for the given memory file path. After `dismiss()` is called, re-showing is allowed (unlike the upsell banners which are session-
src-rust/crates/tui/src/memory_update_notification.rs:99
↓ 6 callersFunctionstore_session
(s: ChromeSession)
src-rust/crates/commands/src/lib.rs:5653
↓ 6 callersMethodswitch_pane
(&mut self)
src-rust/crates/tui/src/mcp_view.rs:136
↓ 6 callersFunctiontokens_with_scopes
(scopes: Vec<&str>)
src-rust/crates/core/src/voice.rs:580
↓ 5 callersMethodactivate_provider
(&mut self, provider_id: String, provider_name: String, status_prefix: &str)
src-rust/crates/tui/src/app.rs:1667
↓ 5 callersFunctionall_commands
Return all built-in slash commands.
src-rust/crates/commands/src/lib.rs:8837
↓ 5 callersFunctionall_styles
Return all styles available for `config_dir`: built-ins first, then styles from `<config_dir>/output-styles/`. `config_dir` is typically `~/.claurst`
src-rust/crates/core/src/output_styles.rs:184
↓ 5 callersFunctionall_tips
Return a reference to all registered tips.
src-rust/crates/core/src/tips.rs:168
↓ 5 callersMethodappend_output
Append a line of output to an existing task. No-op if unknown.
src-rust/crates/core/src/lib.rs:4018
↓ 5 callersMethodauth_header
(&self)
src-rust/crates/api/src/providers/openai.rs:345
↓ 5 callersFunctionbegin_modal_frame
( frame: &mut Frame, area: Rect, width: u16, height: u16, header_height: u16, fo
src-rust/crates/tui/src/overlays.rs:128
↓ 5 callersFunctioncompute_slash_suggestions
Compute typeahead suggestions for slash commands only (e.g., `/help`).
src-rust/crates/tui/src/prompt_input.rs:1085
↓ 5 callersMethodconfirm_selection
Confirm the current selection; advances to the `Confirming` step. Returns the selected message index if in the Selecting step.
src-rust/crates/tui/src/overlays.rs:1389
↓ 5 callersFunctionconnect
Connect to Chrome at the given port. Picks the first available target (tab/page).
src-rust/crates/commands/src/lib.rs:5663
↓ 5 callersFunctioncron_field_matches
(field: &str, value: u32)
src-rust/crates/tools/src/cron.rs:130
↓ 5 callersFunctioncurrent_unix_secs
()
src-rust/crates/tui/src/overlays.rs:533
↓ 5 callersFunctiondevice_fingerprint
Compute a stable device fingerprint from machine-local information. Combines hostname, login user name, and home directory path, then SHA-256 hashes
src-rust/crates/bridge/src/lib.rs:124
↓ 5 callersMethodensure_started
Spawn and initialize the server for `file_path` if it is not already running. Returns `None` when no server is configured for this file type.
src-rust/crates/core/src/lsp.rs:979
↓ 5 callersFunctionexpand_prompt
Expand a skill's prompt template, substituting `$ARGUMENTS` and `$ARGUMENTS_SUFFIX`. - `$ARGUMENTS` → replaced by `args` verbatim (or `""` whe
src-rust/crates/tools/src/bundled_skills.rs:437
↓ 5 callersFunctionextract_yaml_str
(front: &str, key: &str)
src-rust/crates/tui/src/agents_view.rs:456
↓ 5 callersMethodfilter_pop
Backspace in the filter.
src-rust/crates/tui/src/dialog_select.rs:131
↓ 5 callersFunctionformat_permission_reason
Build the explanation paragraph shown in the permission dialog. Mirrors the TS `createPermissionRequestMessage` / `permissionExplainer` output style.
src-rust/crates/core/src/lib.rs:2184
← previousnext →201–300 of 4,591, ranked by callers