MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / codex_workspace_status_from_event

Function codex_workspace_status_from_event

src/hooks/codex.rs:426–431  ·  view source on GitHub ↗
(event_json: &str)

Source from the content-addressed store, hash-verified

424}
425
426pub fn codex_workspace_status_from_event(event_json: &str) -> HookWorkspaceStatus {
427 let parsed = serde_json::from_str::<Value>(event_json).unwrap_or(Value::Null);
428 let root = codex_project_root_from_parsed_event(&parsed);
429 let cwd = event_cwd_from_parsed(&parsed);
430 codex_workspace_status(root.as_deref(), cwd.as_deref())
431}
432
433/// Extracts the project-relative paths touched by a Codex `apply_patch` command.
434pub fn codex_apply_patch_rel_paths(command: &str, cwd: &Path, project_root: &Path) -> Vec<String> {

Callers

nothing calls this directly

Calls 3

event_cwd_from_parsedFunction · 0.85
codex_workspace_statusFunction · 0.85

Tested by

no test coverage detected