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

Function codex_additional_context_json

src/hooks/codex.rs:203–211  ·  view source on GitHub ↗

Builds a Codex hook stdout payload with `additionalContext`.

(event_name: &str, additional_context: &str)

Source from the content-addressed store, hash-verified

201
202/// Builds a Codex hook stdout payload with `additionalContext`.
203pub fn codex_additional_context_json(event_name: &str, additional_context: &str) -> String {
204 serde_json::json!({
205 "hookSpecificOutput": {
206 "hookEventName": event_name,
207 "additionalContext": additional_context,
208 }
209 })
210 .to_string()
211}
212
213/// Pure decision logic for Codex `SubagentStart` events.
214pub fn evaluate_codex_subagent_start(event_json: &str) -> Option<String> {

Calls

no outgoing calls