MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / readHookInput

Function readHookInput

plugins/codex/scripts/session-lifecycle-hook.mjs:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21const PLUGIN_DATA_ENV = "CLAUDE_PLUGIN_DATA";
22
23function readHookInput() {
24 const raw = fs.readFileSync(0, "utf8").trim();
25 if (!raw) {
26 return {};
27 }
28 return JSON.parse(raw);
29}
30
31function shellEscape(value) {
32 return `'${String(value).replace(/'/g, `'\"'\"'`)}'`;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected