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

Function buildTurnInput

plugins/codex/scripts/lib/codex.mjs:86–88  ·  view source on GitHub ↗

@returns {UserInput[]}

(prompt)

Source from the content-addressed store, hash-verified

84
85/** @returns {UserInput[]} */
86function buildTurnInput(prompt) {
87 return [{ type: "text", text: prompt, text_elements: [] }];
88}
89
90function shorten(text, limit = 72) {
91 const normalized = String(text ?? "").trim().replace(/\s+/g, " ");

Callers 1

runAppServerTurnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected