pub fn encode_updated_input_wrapper(
kind: HookKind,
updated: &Value,
) -> Option<Value>Expand description
Encode a replace_input forge_sdk::HookDecision into a
hookSpecificOutput wrapper for the given hook kind.
Returns None when the hook kind has no wire field for an input
override (anything other than PreToolUse / UserPromptSubmit) or
when the supplied value doesn’t match the wrapper’s expected shape
(e.g. a non-string payload for UserPromptSubmit, whose wire struct
only carries additionalContext: str). Emits a tracing::warn! in
every drop path so misuse is visible rather than silent.