MCPcopy Create free account

hub / github.com/ChrisFeldmeier/OpenCodeRust / functions

Functions3,221 in github.com/ChrisFeldmeier/OpenCodeRust

↓ 2 callersFunctioncolor_to_rgb
(color: Color)
crates/opencode-tui/src/components/toast.rs:185
↓ 2 callersFunctioncolor_to_rgb
(color: Color)
crates/opencode-tui/src/components/spinner.rs:388
↓ 2 callersFunctioncompute_cost
Compute cost from stream usage using model-specific pricing rates. Falls back to Claude-like pricing ($3/$15 per million) if no rates provided.
crates/opencode-session/src/llm.rs:1200
↓ 2 callersFunctioncompute_diff
Compute diffs from message step snapshots. Scans messages for step-start and step-finish parts to find the earliest "from" snapshot and the latest "t
crates/opencode-session/src/summary.rs:137
↓ 2 callersMethodconfirm
(&mut self)
crates/opencode-tui/src/components/question.rs:140
↓ 2 callersMethodconnect_http
( &self, url: String, headers: Option<HashMap<String, String>>, )
crates/opencode-mcp/src/client.rs:246
↓ 2 callersMethodconnect_sse
( &self, url: String, headers: Option<HashMap<String, String>>, )
crates/opencode-mcp/src/client.rs:301
↓ 2 callersMethodconnect_stdio
(&self, config: McpServerConfig)
crates/opencode-mcp/src/client.rs:222
↓ 2 callersFunctioncontains_point
(area: Option<Rect>, col: u16, row: u16)
crates/opencode-tui/src/components/sidebar.rs:602
↓ 2 callersMethodcontent_to_parts
(&self, content: &Content)
crates/opencode-provider/src/vertex.rs:180
↓ 2 callersMethodconvert_request
(&self, request: ChatRequest)
crates/opencode-provider/src/anthropic.rs:100
↓ 2 callersMethodconvert_request
(&self, request: ChatRequest)
crates/opencode-provider/src/bedrock.rs:150
↓ 2 callersMethodconvert_request
(&self, request: ChatRequest)
crates/opencode-provider/src/gitlab.rs:86
↓ 2 callersMethodconvert_request
(&self, request: ChatRequest)
crates/opencode-provider/src/google.rs:100
↓ 2 callersMethodconvert_request
(&self, request: ChatRequest)
crates/opencode-provider/src/vertex.rs:116
↓ 2 callersMethodconvert_request
(&self, request: ChatRequest)
crates/opencode-provider/src/github_copilot.rs:151
↓ 2 callersMethodconvert_request
(&self, request: ChatRequest)
crates/opencode-provider/src/vercel.rs:54
↓ 2 callersMethodcopy_prompt_to_clipboard
(&mut self)
crates/opencode-tui/src/app/app.rs:1791
↓ 2 callersFunctioncors_layer
()
crates/opencode-server/src/server.rs:470
↓ 2 callersFunctioncreateNoopClientProxy
(path: string[] = [])
crates/opencode-plugin/host/plugin-host.ts:242
↓ 2 callersMethodcreate_child
Create a child session
crates/opencode-session/src/session.rs:860
↓ 2 callersFunctioncreate_diff
(filepath: &str, old_content: &str, new_content: &str)
crates/opencode-tool/src/edit/tool.rs:400
↓ 2 callersMethodcreate_optimistic_session
(&mut self)
crates/opencode-tui/src/app/app.rs:2916
↓ 2 callersFunctioncreate_registry_from_bootstrap_config
Create a ProviderRegistry using the given bootstrap config and auth store. This is the primary entry point when you have a loaded application config w
crates/opencode-provider/src/bootstrap.rs:2569
↓ 2 callersMethodcreate_session
(&mut self, title: Option<String>)
crates/opencode-tui/src/context/session_context.rs:156
↓ 2 callersFunctioncreate_user_message_with_part
Create a user message and a synthetic text part via the ToolContext callbacks, matching the TS `Session.updateMessage()` + `Session.updatePart()` patt
crates/opencode-tool/src/plan.rs:21
↓ 2 callersMethodcurrent_model_string
(&self)
crates/opencode-agent/src/executor.rs:501
↓ 2 callersMethodcurrent_token
(&self)
crates/opencode-tui/src/components/prompt.rs:953
↓ 2 callersMethodcut_prompt_to_clipboard
(&mut self)
crates/opencode-tui/src/app/app.rs:1803
↓ 2 callersMethodcycle_agent
(&mut self, direction: i8)
crates/opencode-tui/src/app/app.rs:2536
↓ 2 callersMethodcycle_model_variant
(&mut self)
crates/opencode-tui/src/app/app.rs:2828
↓ 2 callersFunctiondedup_sort
(mut items: Vec<String>)
crates/opencode-tui/src/components/prompt.rs:1142
↓ 2 callersMethoddeep_merge
(&mut self, other: Self)
crates/opencode-config/src/schema.rs:777
↓ 2 callersFunctiondelay
Calculate the retry delay in milliseconds. Priority: 1. `retry-after-ms` header (milliseconds) 2. `retry-after` header (seconds as float, or HTTP-dat
crates/opencode-provider/src/retry.rs:85
↓ 2 callersFunctiondelay
(attempt: u32, error: Option<&ApiErrorInfo>)
crates/opencode-session/src/retry.rs:23
↓ 2 callersFunctionderive_inactive_color
(base: Color, factor: f64)
crates/opencode-tui/src/components/spinner.rs:365
↓ 2 callersFunctionderive_name_from_path
Derive a name from a file path relative to the base directory.
crates/opencode-config/src/loader.rs:1118
↓ 2 callersFunctionderive_trail_colors
(base: Color, steps: usize)
crates/opencode-tui/src/components/spinner.rs:351
↓ 2 callersMethoddesired_height
(&self, width: u16)
crates/opencode-tui/src/components/toast.rs:101
↓ 2 callersFunctiondetect_worktree_stop
(start: &Path)
crates/opencode-config/src/loader.rs:489
↓ 2 callersMethoddiff
Compute diff summary from messages
crates/opencode-session/src/session.rs:557
↓ 2 callersMethoddisconnect
(&self, server_name: &str)
crates/opencode-server/src/mcp_oauth.rs:282
↓ 2 callersMethoddo_create_subsession
( &self, agent: String, title: Option<String>, model: Option<String>,
crates/opencode-tool/src/tool.rs:439
↓ 2 callersMethoddo_file_time_assert
(&self, file_path: String)
crates/opencode-tool/src/tool.rs:489
↓ 2 callersMethoddo_prompt_subsession
( &self, session_id: String, prompt: String, )
crates/opencode-tool/src/tool.rs:464
↓ 2 callersMethoddo_switch_agent
( &self, agent: String, model: Option<String>, )
crates/opencode-tool/src/tool.rs:416
↓ 2 callersFunctionenv_truthy
(name: &str)
crates/opencode-session/src/instruction.rs:39
↓ 2 callersMethodexecute
(&mut self, user_message: impl Into<String>)
crates/opencode-agent/src/executor.rs:135
↓ 2 callersMethodexecute
Execute a command and return the rendered template
crates/opencode-command/src/lib.rs:173
↓ 2 callersMethodexecute
( &self, args: serde_json::Value, ctx: ToolContext, )
crates/opencode-tool/src/task.rs:80
↓ 2 callersMethodexecute_inline
( &self, provider: Arc<dyn Provider>, tool_registry: &opencode_tool::ToolRegistry,
crates/opencode-session/src/prompt.rs:2784
↓ 2 callersMethodexecute_shell
( &self, session_id: &str, command: String, workdir: Option<String>, )
crates/opencode-tui/src/api.rs:415
↓ 2 callersMethodexecute_streaming
( &mut self, user_message: String, )
crates/opencode-agent/src/executor.rs:266
↓ 2 callersFunctionexponential_backoff
(attempt: u32, initial: u64, factor: u64, max: u64)
crates/opencode-provider/src/retry.rs:132
↓ 2 callersMethodfetch
(&self)
crates/opencode-provider/src/models.rs:136
↓ 2 callersMethodfetch_proxy
Proxy an HTTP request through the plugin's custom fetch. Only valid when `has_custom_fetch()` is true (after a successful `load()`).
crates/opencode-plugin/src/subprocess/auth.rs:148
↓ 2 callersMethodfilter
(&mut self)
crates/opencode-tui/src/components/dialogs/model_select.rs:158
↓ 2 callersFunctionfind_instruction_file
(dir: &Path)
crates/opencode-tool/src/read.rs:536
↓ 2 callersMethodfind_model
(&self, model_id: &str)
crates/opencode-provider/src/provider.rs:343
↓ 2 callersFunctionformat_todos_from_data
(todos: &[TodoItemData])
crates/opencode-tool/src/todo.rs:206
↓ 2 callersFunctionforward_server_event
(data_lines: &[String], event_tx: &Sender<Event>)
crates/opencode-tui/src/app/app.rs:3682
↓ 2 callersMethodfrecency_score
(&self, key: &str)
crates/opencode-tui/src/components/prompt.rs:727
↓ 2 callersFunctionfrom_models_dev_model
Transform a models.dev model into a runtime ProviderModel.
crates/opencode-provider/src/bootstrap.rs:978
↓ 2 callersFunctionfuzzy_match
Simple fuzzy string matching: returns up to `max` candidates from `options` that share a common substring with `query`, sorted by edit-distance-like s
crates/opencode-provider/src/bootstrap.rs:2082
↓ 2 callersFunctiongenerate_continue_message
()
crates/opencode-session/src/compaction.rs:827
↓ 2 callersFunctiongenerate_title_from_messages
(messages: &[String])
crates/opencode-session/src/summary.rs:499
↓ 2 callersMethodget
(&self, session_id: &str)
crates/opencode-session/src/session.rs:215
↓ 2 callersMethodget
Get the status for a session. Returns Idle if not tracked. Matches TS `SessionStatus.get(sessionID)`.
crates/opencode-session/src/status.rs:70
↓ 2 callersMethodget_api_url
(&self)
crates/opencode-provider/src/gitlab.rs:78
↓ 2 callersMethodget_args
(&self, options: &GenerateOptions)
crates/opencode-provider/src/responses.rs:1050
↓ 2 callersFunctionget_cached
(url: &str)
crates/opencode-config/src/wellknown.rs:140
↓ 2 callersFunctionget_custom_loader
Get the custom loader for a provider ID.
crates/opencode-provider/src/bootstrap.rs:949
↓ 2 callersMethodget_endpoint
(&self)
crates/opencode-provider/src/bedrock.rs:143
↓ 2 callersFunctionget_lsp_diagnostics_with_meta
( path: &Path, ctx: &ToolContext, )
crates/opencode-tool/src/edit/tool.rs:304
↓ 2 callersFunctionget_model_context_limit
(model_id: &str)
crates/opencode-provider/src/models.rs:208
↓ 2 callersFunctionget_model_variant_lookup
()
crates/opencode-server/src/routes.rs:2251
↓ 2 callersFunctionget_parent_directory
(target: &str, kind: ExternalDirectoryKind)
crates/opencode-tool/src/external_directory.rs:79
↓ 2 callersMethodget_token
Return a valid access token, refreshing if necessary. Returns `None` if no tokens are stored (the caller should initiate the auth flow).
crates/opencode-mcp/src/oauth.rs:289
↓ 2 callersMethodget_usage
Aggregate usage across all assistant messages in the session
crates/opencode-session/src/session.rs:527
↓ 2 callersFunctiongit_add_all
(directory: &Path, git_dir: &Path)
crates/opencode-session/src/snapshot.rs:251
↓ 2 callersFunctiongithub_action_context_lines
()
crates/opencode-cli/src/main.rs:4271
↓ 2 callersFunctiongithub_checkout_new_branch
(prefix: &str, issue_number: Option<u64>)
crates/opencode-cli/src/main.rs:4923
↓ 2 callersFunctiongithub_create_pr
( owner: &str, repo: &str, base: &str, head: &str, title: &str, body: &str, token:
crates/opencode-cli/src/main.rs:5008
↓ 2 callersFunctiongithub_default_branch
(owner: &str, repo: &str, token: Option<&str>)
crates/opencode-cli/src/main.rs:4862
↓ 2 callersFunctiongithub_is_comment_event
(event_name: &str)
crates/opencode-cli/src/main.rs:4160
↓ 2 callersFunctiongithub_push_current_branch
()
crates/opencode-cli/src/main.rs:4980
↓ 2 callersFunctiongithub_push_new_branch
(branch: &str)
crates/opencode-cli/src/main.rs:4976
↓ 2 callersFunctiongithub_remove_reaction
(reaction: &GithubReactionHandle, token: Option<&str>)
crates/opencode-cli/src/main.rs:4794
↓ 2 callersFunctionglob_match
(pattern: &str, path: &Path)
crates/opencode-grep/src/search.rs:273
↓ 2 callersFunctionglob_up
Walk up from `start` to `stop`, expanding a glob pattern at each level.
crates/opencode-session/src/instruction.rs:143
↓ 2 callersFunctionglobal
Get the global plugin system, creating a default one if not initialized.
crates/opencode-plugin/src/lib.rs:296
↓ 2 callersMethodhas_custom_fetch
Whether the plugin provides a custom fetch that must proxy LLM requests.
crates/opencode-plugin/src/subprocess/auth.rs:72
↓ 2 callersMethodhas_open_dialog_layer
(&self)
crates/opencode-tui/src/app/app.rs:758
↓ 2 callersMethodhighlight_line
(&self, line: &str, theme: &CodeTheme)
crates/opencode-tui/src/components/markdown/code_block.rs:38
↓ 2 callersFunctionhighlight_lines
Apply semantic highlighting to rendered lines. Recognizes: shell commands, file paths, error keywords, numeric stats.
crates/opencode-tui/src/components/semantic_highlight.rs:10
↓ 2 callersMethodhint_line
(&self, theme: &Theme)
crates/opencode-tui/src/components/prompt.rs:1074
↓ 2 callersMethodhistory_next
(&mut self)
crates/opencode-tui/src/components/prompt.rs:667
↓ 2 callersMethodhistory_previous
(&mut self)
crates/opencode-tui/src/components/prompt.rs:644
↓ 2 callersFunctionhook_payload_object
( payload: &serde_json::Value, )
crates/opencode-session/src/prompt.rs:2836
↓ 2 callersMethodhook_system
(&self)
crates/opencode-plugin/src/lib.rs:262
← previousnext →501–600 of 3,221, ranked by callers