Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amrit110/oli
/ functions
Functions
299 in github.com/amrit110/oli
⨍
Functions
299
◇
Types & classes
116
↓ 150 callers
Method
clone
(&self)
src/communication/rpc.rs:120
↓ 42 callers
Method
as_str
Get a string representation of the log level
src/app/logger.rs:37
↓ 16 callers
Method
log
(&mut self, _message: &str)
src/app/core.rs:1110
↓ 14 callers
Method
determine_relevant_files
Determine which files to parse based on user query # Arguments - `query` - User query string # Returns - `Vec<String>` - List of glob patterns for r
src/tools/code/parser.rs:1677
↓ 14 callers
Function
setup_test_directory
()
tests/tools/fs/test_search.rs:8
↓ 10 callers
Function
create_test_file
Helper function to create a test file with content
tests/tools/fs/test_file_ops.rs:8
↓ 10 callers
Method
extract_search_terms
Extract search terms from a query for grep search # Arguments - `query` - User query string # Returns - `Vec<String>` - Extracted search terms
src/tools/code/parser.rs:1370
↓ 9 callers
Method
clear
Clear all messages in the session
src/apis/api_client.rs:112
↓ 9 callers
Function
createMessages
( messages: Array<{ role: MessageRole; content: string }>, )
ui/src/utils/messageUtils.ts:41
↓ 9 callers
Method
register_method
Register a method handler
src/communication/rpc.rs:172
↓ 9 callers
Method
send_notification
Send a notification event - will send to all subscribers of this event type
src/communication/rpc.rs:191
↓ 8 callers
Method
call
( method: string, params: Record<string, unknown> = {}, )
ui/src/services/backend.ts:94
↓ 8 callers
Function
get_global_rpc_server
()
src/communication/rpc.rs:136
↓ 8 callers
Method
update_dimensions
Update the content and viewport sizes
src/app/utils.rs:28
↓ 8 callers
Function
write_file
(path: P, content: &str)
tests/tools/fs/test_search.rs:145
↓ 6 callers
Method
add_assistant_message
Add an assistant message to the conversation
src/apis/api_client.rs:77
↓ 6 callers
Method
add_user_message
(&mut self, content: String)
src/agent/executor.rs:112
↓ 6 callers
Method
current_task_mut
Get the current task as mutable if any
src/app/core.rs:903
↓ 6 callers
Method
scroll_up
Scroll up by the specified amount
src/app/utils.rs:72
↓ 5 callers
Method
complete
Mark task as completed
src/app/core.rs:74
↓ 5 callers
Method
parse_file
Parses a single file using tree-sitter and generates an AST # Arguments - `path` - Path to the file to parse # Returns - `Result<CodeAST>` - The abs
src/tools/code/parser.rs:528
↓ 5 callers
Method
with_system_message
Add a system message that will be prepended to the conversation
src/apis/api_client.rs:66
↓ 4 callers
Method
add_message
Add a message to the conversation
src/apis/api_client.rs:82
↓ 4 callers
Method
max_scroll
Get the maximum valid scroll position
src/app/utils.rs:42
↓ 4 callers
Method
scroll_down
Scroll down by the specified amount
src/app/utils.rs:55
↓ 3 callers
Method
complete_with_tools
( &self, messages: Vec<Message>, options: CompletionOptions, tool_results: Opt
src/apis/api_client.rs:210
↓ 3 callers
Method
event_sender
Get event sender for emitting events
src/communication/rpc.rs:186
↓ 3 callers
Function
format_log_with_color
Format a log message with color for terminal display
src/app/logger.rs:66
↓ 3 callers
Method
from
(err: std::io::Error)
src/errors.rs:48
↓ 3 callers
Function
get_available_models
()
src/models.rs:21
↓ 3 callers
Function
isCommand
(text: string)
ui/src/utils/commandUtils.ts:62
↓ 3 callers
Method
page_up
Page up (scroll up by viewport height)
src/app/utils.rs:94
↓ 3 callers
Method
parse_codebase
Parse an entire codebase and generate ASTs for selected files # Arguments - `root_dir` - Root directory of the codebase - `query` - User query to det
src/tools/code/parser.rs:1430
↓ 3 callers
Method
scroll_to_bottom
Scroll to the bottom of the content
src/app/utils.rs:87
↓ 2 callers
Method
add_metadata
Add metadata to the tool execution
src/app/core.rs:202
↓ 2 callers
Method
add_system_message
(&mut self, content: String)
src/agent/executor.rs:108
↓ 2 callers
Method
complete_current_task
Complete the current task
src/app/core.rs:927
↓ 2 callers
Method
convert_messages
(&self, messages: Vec<Message>)
src/apis/anthropic.rs:231
↓ 2 callers
Method
convert_messages
(&self, messages: Vec<Message>)
src/apis/openai.rs:125
↓ 2 callers
Method
convert_messages
(&self, messages: Vec<Message>)
src/apis/ollama.rs:205
↓ 2 callers
Function
create_mock_client_enum
Helper function to create a mock ApiClientEnum for testing
tests/apis/test_api_client_enum.rs:13
↓ 2 callers
Function
create_mock_openai_enum
Test helper to create a mock OpenAI client enum
tests/apis/test_api_client_enum.rs:26
↓ 2 callers
Method
create_simplified_ast
Create a simplified AST directly from the source code This is a fallback method when tree-sitter parsing doesn't work # Arguments - `path` - Path to
src/tools/code/parser.rs:1069
↓ 2 callers
Method
emitEvent
(event: string, data: Record<string, unknown> = {})
ui/src/services/backend.ts:121
↓ 2 callers
Method
execute
(&self, query: &str)
src/agent/core.rs:137
↓ 2 callers
Method
extract_node_name
Extracts a name from a node based on common patterns # Arguments - `node` - Node to extract name from - `source` - Source code # Returns - `Option<S
src/tools/code/parser.rs:888
↓ 2 callers
Method
extract_system_message
(&self, messages: &[Message])
src/apis/anthropic.rs:224
↓ 2 callers
Method
fail
Mark task as failed
src/app/core.rs:96
↓ 2 callers
Method
fail_current_task
Mark the current task as failed
src/app/core.rs:935
↓ 2 callers
Method
generate_llm_friendly_ast
Generate a structured AST optimized for LLM consumption # Arguments - `root_dir` - Root directory of the codebase or path to a single file - `query`
src/tools/code/parser.rs:1464
↓ 2 callers
Method
get_language
Gets a tree-sitter language for parsing # Arguments - `language_name` - Name of the language to retrieve # Returns - `Option<Language>` - The tree-s
src/tools/code/parser.rs:467
↓ 2 callers
Method
get_messages_for_api
Get all messages for the API call, including the system message if present
src/apis/api_client.rs:97
↓ 2 callers
Function
handleSubmit
(value: string)
ui/src/components/ChatInterface.tsx:440
↓ 2 callers
Function
processUserMessage
( input: string, state: AppState, setState: React.Dispatch<React.SetStateAction<AppState>>, backend: B
ui/src/utils/commandHandlers.ts:193
↓ 2 callers
Method
replace_with_summary
Replace all messages with a single summary message
src/apis/api_client.rs:88
↓ 2 callers
Method
send_request_with_retry
Helper function to send a request with retry logic for overload errors
src/apis/anthropic.rs:110
↓ 2 callers
Method
toggle_log_view
(&mut self)
tests/app/test_logger.rs:30
↓ 2 callers
Method
with_progress_sender
(mut self, sender: mpsc::Sender<String>)
src/agent/core.rs:64
↓ 1 callers
Method
add_tool_use
Increment tool count
src/app/core.rs:105
↓ 1 callers
Method
add_user_message
Add a user message to the conversation
src/apis/api_client.rs:72
↓ 1 callers
Method
clamp_position
Ensure scroll position is within valid bounds
src/app/utils.rs:47
↓ 1 callers
Method
clear_history
(&mut self)
src/agent/core.rs:69
↓ 1 callers
Method
conversation_char_count
(&self)
src/app/history.rs:162
↓ 1 callers
Method
convert_tool_definitions
( &self, tools: Vec<crate::apis::api_client::ToolDefinition>, )
src/apis/anthropic.rs:242
↓ 1 callers
Method
convert_tool_definitions
(&self, tools: Vec<ToolDefinition>)
src/apis/openai.rs:140
↓ 1 callers
Method
convert_tool_definitions
(&self, tools: Vec<ToolDefinition>)
src/apis/ollama.rs:220
↓ 1 callers
Function
copyDirSync
(src, dest)
scripts/install.js:113
↓ 1 callers
Function
createMessage
( role: MessageRole, content: string, taskId?: string, tool?: string, )
ui/src/utils/messageUtils.ts:20
↓ 1 callers
Function
createMessageId
(role: MessageRole)
ui/src/utils/messageUtils.ts:8
↓ 1 callers
Method
create_task
Create a new task and set it as current
src/app/core.rs:885
↓ 1 callers
Method
detect_language
Determines the programming language from a file extension # Arguments - `path` - Path to the file # Returns - `Option<String>` - Language name if de
src/tools/code/parser.rs:501
↓ 1 callers
Method
display_to_session_messages
(&self, display_messages: &[String])
src/app/history.rs:190
↓ 1 callers
Function
executeCommand
( command: string, state: AppState, setState: React.Dispatch<React.SetStateAction<AppState>>, backend:
ui/src/utils/commandHandlers.ts:165
↓ 1 callers
Method
extract_important_nodes
Extract important nodes from a tree-sitter syntax tree using generic traversal # Arguments - `node` - Root node to traverse - `source` - Source code
src/tools/code/parser.rs:986
↓ 1 callers
Method
extract_nested_structures
Extracts nested structures from a node to build a hierarchical AST # Arguments - `source_code` - Source code of the file - `node` - Current node to p
src/tools/code/parser.rs:801
↓ 1 callers
Method
find_relevant_files
Use search tools to find relevant files for a query # Arguments - `root_dir` - Root directory to search in - `query` - User query to determine releva
src/tools/code/parser.rs:1238
↓ 1 callers
Function
formatMessage
(message: Message)
ui/src/components/ChatInterface.tsx:486
↓ 1 callers
Function
format_log
Format a log message with level, timestamp, and message
src/app/logger.rs:58
↓ 1 callers
Method
generate_summary_with_agent
Internal method to generate a summary with the agent
src/app/history.rs:252
↓ 1 callers
Function
getHelpMessage
(version: string)
ui/src/utils/commandUtils.ts:30
↓ 1 callers
Function
getMessageStyle
(role: string)
ui/src/components/ChatInterface.tsx:470
↓ 1 callers
Function
get_available_commands
Get available commands
src/app/commands.rs:20
↓ 1 callers
Function
get_available_ollama_models
()
src/models.rs:71
↓ 1 callers
Method
get_conversation_history
(&self)
src/agent/executor.rs:42
↓ 1 callers
Method
get_query
Gets a tree-sitter query for a language # Arguments - `language_name` - Name of the language to get a query for # Returns - `Option<Query>` - A tree
src/tools/code/parser.rs:480
↓ 1 callers
Function
get_tool_definitions
()
src/agent/tools.rs:323
↓ 1 callers
Function
handleCommandSelect
(command: string)
ui/src/components/ChatInterface.tsx:414
↓ 1 callers
Method
has_agent_support
(&self)
src/models.rs:13
↓ 1 callers
Method
has_subscribers
(&self, event_type: &str)
src/communication/rpc.rs:89
↓ 1 callers
Method
initialize_with_api_key
(&mut self, api_key: String)
src/agent/core.rs:102
↓ 1 callers
Function
install
()
scripts/install.js:15
↓ 1 callers
Method
is_in_progress
Check if this task is still in progress
src/app/state.rs:107
↓ 1 callers
Method
is_in_progress
Check if this task is still in progress
src/app/core.rs:123
↓ 1 callers
Method
kill
()
ui/src/services/backend.ts:116
↓ 1 callers
Method
list_models
(&self)
src/apis/ollama.rs:234
↓ 1 callers
Method
message_count
Get the current number of messages
src/apis/api_client.rs:117
↓ 1 callers
Method
might_need_codebase_parsing
Analyze conversation to determine if code parsing might be needed Uses the LLM directly to make this determination rather than keyword matching
src/agent/executor.rs:48
↓ 1 callers
Method
page_down
Page down (scroll down by viewport height)
src/app/utils.rs:99
↓ 1 callers
Function
parse_tool_call
(name: &str, args: &Value)
src/agent/executor.rs:763
↓ 1 callers
Method
process_important_node
Process an individual node that has been identified as important # Arguments - `node` - Node to process - `source` - Source code text - `language` -
src/tools/code/parser.rs:1020
next →
1–100 of 299, ranked by callers