MCPcopy
hub / github.com/openai/codex-plugin-cc / collectTouchedFiles

Function collectTouchedFiles

plugins/codex/scripts/lib/codex.mjs:126–136  ·  view source on GitHub ↗
(fileChanges)

Source from the content-addressed store, hash-verified

124}
125
126function collectTouchedFiles(fileChanges) {
127 const paths = new Set();
128 for (const fileChange of fileChanges) {
129 for (const change of fileChange.changes ?? []) {
130 if (change.path) {
131 paths.add(change.path);
132 }
133 }
134 }
135 return [...paths];
136}
137
138function normalizeReasoningText(text) {
139 return String(text ?? "").replace(/\s+/g, " ").trim();

Callers 1

runAppServerTurnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected