MCPcopy Create free account

hub / github.com/Stanford-Trinity/ARTEMIS / functions

Functions2,111 in github.com/Stanford-Trinity/ARTEMIS

↓ 2 callersFunctionderive_new_contents_from_chunks
Return *only* the new file contents (joined into a single `String`) after applying the chunks to the file at `path`.
codex-rs/apply-patch/src/lib.rs:485
↓ 2 callersFunctiondiscover_project_doc_paths
Discover the list of AGENTS.md files using the same search rules as `read_project_docs`, but return the file paths instead of concatenated contents. T
codex-rs/core/src/project_doc.rs:109
↓ 2 callersMethoddrain_commit_ready
Drain the oldest rows that exceed `max_keep` display rows (including the current partial line, if any). Returns the drained rows in order.
codex-rs/tui/src/live_wrap.rs:108
↓ 2 callersFunctiondrop_leading_thinking
Normalize: drop a leading 'thinking' line if present in either side to avoid coupling to whether the reasoning header is rendered in history.
codex-rs/tui/src/chatwidget/tests.rs:657
↓ 2 callersMethodeffective_scroll
Calculate the scroll offset that should be used to satisfy the invariants given the current area size and wrapped lines. - Cursor is always on screen
codex-rs/tui/src/bottom_pane/textarea.rs:868
↓ 2 callersMethodemit_header_if_needed
(&mut self, out_lines: &mut Lines)
codex-rs/tui/src/streaming/controller.rs:69
↓ 2 callersMethodend_of_current_line
(&self)
codex-rs/tui/src/bottom_pane/textarea.rs:201
↓ 2 callersMethodend_of_line
(&self, pos: usize)
codex-rs/tui/src/bottom_pane/textarea.rs:195
↓ 2 callersMethodenqueue_request
(&mut self, req: ApprovalRequest)
codex-rs/tui/src/bottom_pane/approval_modal_view.rs:30
↓ 2 callersFunctionensure_absolute_path
(path: &str, cwd: &Option<OsString>)
codex-rs/execpolicy/src/execv_checker.rs:100
↓ 2 callersFunctionensure_oss_ready
Prepare the local OSS environment when `--oss` is selected. - Ensures a local Ollama server is reachable. - Checks if the model exists locally and pu
codex-rs/ollama/src/lib.rs:20
↓ 2 callersFunctionescape_command
(command: &[String])
codex-rs/tui/src/exec_command.rs:6
↓ 2 callersMethodevent_stream
(&self)
codex-rs/tui/src/tui.rs:293
↓ 2 callersFunctionexec_command_lines
( command: &[String], parsed: &[ParsedCommand], output: Option<&CommandOutput>, start_time: Op
codex-rs/tui/src/history_cell.rs:339
↓ 2 callersFunctionextract_monotonic_numbers
(s: &str)
codex-rs/core/src/exec_command/session_manager.rs:579
↓ 2 callersMethodfetch_models
Return the list of model names known to the local Ollama instance.
codex-rs/ollama/src/client.rs:102
↓ 2 callersMethodfiltered
Compute fuzzy-filtered matches paired with optional highlight indices and score. Sorted by ascending score, then by command name for stability.
codex-rs/tui/src/bottom_pane/command_popup.rs:67
↓ 2 callersMethodfinalize_spawn
( &self, codex: Codex, conversation_id: Uuid, )
codex-rs/core/src/conversation_manager.rs:70
↓ 2 callersMethodfinalize_turn_with_error_message
Finalize any active exec as failed, push an error message into history, and stop/clear running UI state.
codex-rs/tui/src/chatwidget.rs:248
↓ 2 callersMethodfind_git_root_cached
Find the git worktree root for a file/directory by walking up to the first ancestor containing a `.git` entry. Uses a simple cache of known roots and
codex-rs/core/src/turn_diff_tracker.rs:143
↓ 2 callersMethodflush_active_exec_cell
(&mut self)
codex-rs/tui/src/chatwidget.rs:853
↓ 2 callersMethodflush_current_line
(&mut self, explicit_break: bool)
codex-rs/tui/src/live_wrap.rs:122
↓ 2 callersFunctionformat_duration
Convert a [`std::time::Duration`] into a human-readable, compact string. Formatting rules: < 1 s -> "{milli}ms" < 60 s -> "{sec:.2}s" (two decimal
codex-rs/common/src/elapsed.rs:16
↓ 2 callersFunctionformat_exec_output
Exec output is a pre-serialized JSON payload
codex-rs/core/src/codex.rs:2758
↓ 2 callersMethodformat_initial_context
Format the initial task context for the supervisor.
supervisor/prompts/supervisor_prompt.py:183
↓ 2 callersFunctionformat_reset_duration
(total_secs: u64)
codex-rs/core/src/error.rs:165
↓ 2 callersMethodgenerate_todos_from_config
Generate hierarchical TODOs from penetration testing configuration.
supervisor/todo_generator.py:39
↓ 2 callersFunctiongenerate_ts
(out_dir: &Path, prettier: Option<&Path>)
codex-rs/protocol-ts/src/lib.rs:15
↓ 2 callersMethodget_auth_manager
(&self)
codex-rs/core/src/client.rs:392
↓ 2 callersMethodget_confirmation_prompt_height
(&self, width: u16)
codex-rs/tui/src/user_approval_widget.rs:195
↓ 2 callersMethodget_current_auth_json
(&self)
codex-rs/login/src/lib.rs:169
↓ 2 callersFunctionget_default_system_prompt
Get the default system prompt (generalist)
codex-rs/exec/src/lib.rs:55
↓ 2 callersFunctionget_error_message_ui
(e: &CodexErr)
codex-rs/core/src/error.rs:224
↓ 2 callersMethodget_formatted_input
(&self)
codex-rs/core/src/client_common.rs:93
↓ 2 callersMethodget_model_context_window
(&self)
codex-rs/core/src/client.rs:97
↓ 2 callersMethodget_path_for_internal
(&self, internal: &str)
codex-rs/core/src/turn_diff_tracker.rs:130
↓ 2 callersFunctionget_session_vulnerability_storage
Get the vulnerability storage instance for a specific session.
supervisor/vulnerability_storage.py:166
↓ 2 callersMethodget_status_info
Get current working hours status information.
supervisor/working_hours.py:182
↓ 2 callersMethodget_step_state
(&self)
codex-rs/tui/src/onboarding/onboarding_screen.rs:270
↓ 2 callersFunctionget_summarization_prompt
Generate the summarization prompt used for both rolling context and continuation summaries.
supervisor/prompts/summarization_prompt.py:4
↓ 2 callersMethodget_system_prompt
Get the main supervisor system prompt.
supervisor/prompts/supervisor_prompt.py:11
↓ 2 callersMethodget_token_data
(&self)
codex-rs/login/src/lib.rs:103
↓ 2 callersMethodgit_blob_oid_for_path
Ask git to compute the blob SHA-1 for the file at `path` within its repository. Returns None if no repository is found or git invocation fails.
codex-rs/core/src/turn_diff_tracker.rs:203
↓ 2 callersMethodhandle_apply_patch_approval_now
( &mut self, id: String, ev: ApplyPatchApprovalRequestEvent, )
codex-rs/tui/src/chatwidget.rs:506
↓ 2 callersMethodhandle_dont_trust
(&mut self)
codex-rs/tui/src/onboarding/trust_directory.rs:158
↓ 2 callersMethodhandle_exec_approval_now
(&mut self, id: String, ev: ExecApprovalRequestEvent)
codex-rs/tui/src/chatwidget.rs:494
↓ 2 callersMethodhandle_exec_begin_now
(&mut self, ev: ExecCommandBeginEvent)
codex-rs/tui/src/chatwidget.rs:526
↓ 2 callersMethodhandle_exec_command_request
Processes the request and is required to send a response via `outgoing`.
codex-rs/core/src/exec_command/session_manager.rs:84
↓ 2 callersMethodhandle_exec_end_now
(&mut self, ev: ExecCommandEndEvent)
codex-rs/tui/src/chatwidget.rs:448
↓ 2 callersMethodhandle_if_stream_finished
(&mut self, finished: bool)
codex-rs/tui/src/chatwidget.rs:427
↓ 2 callersMethodhandle_key_event
(&mut self, tui: &mut tui::Tui, key_event: KeyEvent)
codex-rs/tui/src/pager_overlay.rs:198
↓ 2 callersMethodhandle_key_event
Process a `KeyEvent` coming from crossterm. Always consumes the event while the modal is visible. Process a key event originating from crossterm. As t
codex-rs/tui/src/user_approval_widget.rs:205
↓ 2 callersMethodhandle_key_event_without_popup
Handle key event when no popup is visible.
codex-rs/tui/src/bottom_pane/chat_composer.rs:690
↓ 2 callersFunctionhandle_last_message
(last_agent_message: Option<&str>, output_file: &Path)
codex-rs/exec/src/event_processor.rs:20
↓ 2 callersMethodhandle_mcp_begin_now
(&mut self, ev: McpToolCallBeginEvent)
codex-rs/tui/src/chatwidget.rs:554
↓ 2 callersMethodhandle_mcp_end_now
(&mut self, ev: McpToolCallEndEvent)
codex-rs/tui/src/chatwidget.rs:558
↓ 2 callersMethodhandle_patch_apply_end_now
( &mut self, event: codex_core::protocol::PatchApplyEndEvent, )
codex-rs/tui/src/chatwidget.rs:483
↓ 2 callersMethodhandle_tool_call
Handle a supervisor tool call.
supervisor/tools.py:433
↓ 2 callersMethodhandle_trust
(&mut self)
codex-rs/tui/src/onboarding/trust_directory.rs:147
↓ 2 callersMethodhandle_write_stdin_request
Write characters to a session's stdin and collect combined output for up to `yield_time_ms`.
codex-rs/core/src/exec_command/session_manager.rs:179
↓ 2 callersMethodhas_full_disk_write_access
(&self)
codex-rs/protocol/src/protocol.rs:285
↓ 2 callersFunctioninit
Initialize the terminal (inline viewport; history stays in normal scrollback)
codex-rs/tui/src/tui.rs:125
↓ 2 callersFunctioninit_chatgpt_token_from_auth
Initialize the ChatGPT token from auth.json file
codex-rs/chatgpt/src/chatgpt_token.rs:22
↓ 2 callersMethodinitialize
Negotiates the initialization with the MCP server. Sends an `initialize` request with the specified `initialize_params` and then the `notifications/in
codex-rs/mcp-client/src/mcp_client.rs:318
↓ 2 callersFunctioninject_template_variables
(template: &str, config_yaml: &str, context: &str)
codex-rs/cli/src/main.rs:1439
↓ 2 callersMethodinsert_history
(&self, lines: Vec<Line<'static>>)
codex-rs/tui/src/streaming/controller.rs:18
↓ 2 callersMethodinsert_lines
(&mut self, lines: Vec<Line<'static>>)
codex-rs/tui/src/pager_overlay.rs:361
↓ 2 callersMethodinsert_selected_path
Replace the active `@token` (the one under the cursor) with `path`. The algorithm mirrors `current_at_token` so replacement works no matter where the
codex-rs/tui/src/bottom_pane/chat_composer.rs:653
↓ 2 callersMethodinsert_str
(&mut self, text: &str)
codex-rs/tui/src/chatwidget.rs:1171
↓ 2 callersFunctionis_inside_unclosed_fence
Returns true if the provided text contains an unclosed fenced code block (opened by ``` or ~~~, closed by a matching fence on its own line).
codex-rs/tui/src/render/markdown_utils.rs:3
↓ 2 callersFunctionis_openai_compatible_base_url
Identify whether a base_url points at an OpenAI-compatible root (".../v1").
codex-rs/ollama/src/url.rs:2
↓ 2 callersFunctionis_safe_to_call_with_exec
(command: &[String])
codex-rs/core/src/is_safe_command.rs:31
↓ 2 callersFunctionis_valid_sed_n_arg
Validates that this is a `sed -n 123,123p` command.
codex-rs/core/src/parse_command.rs:1255
↓ 2 callersMethodis_write_cycle_active
(&self)
codex-rs/tui/src/chatwidget.rs:400
↓ 2 callersMethodis_zero
(&self)
codex-rs/protocol/src/protocol.rs:510
↓ 2 callersFunctionjson_to_toml
Convert a `serde_json::Value` into a semantically equivalent `toml::Value`.
codex-rs/mcp-server/src/json_to_toml.rs:5
↓ 2 callersMethodlayout
(&self, area: Rect)
codex-rs/tui/src/bottom_pane/mod.rs:118
↓ 2 callersMethodlayout_areas
(&self, area: Rect)
codex-rs/tui/src/chatwidget.rs:572
↓ 2 callersMethodlist_all_tools
Returns a single map that contains **all** tools. Each key is the fully-qualified name for the tool.
codex-rs/core/src/mcp_connection_manager.rs:196
↓ 2 callersMethodlist_tools
Convenience wrapper around `tools/list`.
codex-rs/mcp-client/src/mcp_client.rs:333
↓ 2 callersMethodload_all_vulnerabilities
Load all vulnerabilities from storage.
supervisor/vulnerability_storage.py:77
↓ 2 callersFunctionload_dotenv
Load env vars from ~/.codex/.env and `$(pwd)/.env`. Security: Do not allow `.env` files to create or modify any variables with names starting with `C
codex-rs/arg0/src/lib.rs:113
↓ 2 callersFunctionload_sse_fixture_with_id_from_str
(raw: &str, id: &str)
codex-rs/core/tests/common/lib.rs:50
↓ 2 callersFunctionlog_dir
Returns the path to the folder where Codex logs are stored. Does not verify that the directory exists.
codex-rs/core/src/config.rs:890
↓ 2 callersFunctionmake_exec_request
()
codex-rs/tui/src/bottom_pane/approval_modal_view.rs:80
↓ 2 callersFunctionmaybe_parse_apply_patch_verified
cwd must be an absolute path so that we can resolve relative paths in the patch.
codex-rs/apply-patch/src/lib.rs:202
↓ 2 callersMethodmaybe_send_next_queued_input
If idle and there are queued inputs, submit exactly one to start the next turn.
codex-rs/tui/src/chatwidget.rs:995
↓ 2 callersMethodmight_write_file
(&self)
codex-rs/execpolicy/src/arg_type.rs:72
↓ 2 callersFunctionmock_get_task_with_fixture
()
codex-rs/chatgpt/tests/suite/apply_command_e2e.rs:70
↓ 2 callersMethodmove_down
Move the selection cursor one step down.
codex-rs/tui/src/bottom_pane/command_popup.rs:101
↓ 2 callersMethodmove_up
Move the selection cursor one step up.
codex-rs/tui/src/bottom_pane/command_popup.rs:93
↓ 2 callersFunctionnew_patch_event
Create a new `PendingPatch` cell that lists the file‑level summary of a proposed patch. The summary lines should already be formatted (e.g. "A path/to
codex-rs/tui/src/history_cell.rs:1021
↓ 2 callersMethodnext_atomic_boundary
(&self, pos: usize)
codex-rs/tui/src/bottom_pane/textarea.rs:761
↓ 2 callersFunctionnormalise
(s: &str)
codex-rs/apply-patch/src/seek_sequence.rs:76
↓ 2 callersMethodnotify_approval
(&self, sub_id: &str, decision: ReviewDecision)
codex-rs/core/src/codex.rs:655
↓ 2 callersMethodnotify_background_event
Helper that emits a BackgroundEvent with the given message. This keeps the call‑sites terse so adding more diagnostics does not clutter the core agent
codex-rs/core/src/codex.rs:851
↓ 2 callersFunctionnotify_mcp_tool_call_event
(sess: &Session, sub_id: &str, event: EventMsg)
codex-rs/core/src/mcp_tool_call.rs:76
↓ 2 callersMethodnotify_stream_error
(&self, sub_id: &str, message: impl Into<String>)
codex-rs/core/src/codex.rs:861
↓ 2 callersFunctionnth_last_user_text
Extract the text content of the Nth last user message. The message body is considered to be the lines following the "user" header until the first blan
codex-rs/tui/src/backtrack_helpers.rs:63
↓ 2 callersMethodon_error
(&mut self, message: String)
codex-rs/tui/src/chatwidget.rs:259
← previousnext →401–500 of 2,111, ranked by callers