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

Function handleResult

plugins/codex/scripts/codex-companion.mjs:910–926  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

908}
909
910function handleResult(argv) {
911 const { options, positionals } = parseCommandInput(argv, {
912 valueOptions: ["cwd"],
913 booleanOptions: ["json"]
914 });
915
916 const cwd = resolveCommandCwd(options);
917 const reference = positionals[0] ?? "";
918 const { workspaceRoot, job } = resolveResultJob(cwd, reference);
919 const storedJob = readStoredJob(workspaceRoot, job.id);
920 const payload = {
921 job,
922 storedJob
923 };
924
925 outputCommandResult(payload, renderStoredJobResult(job, storedJob), options.json);
926}
927
928function handleTaskResumeCandidate(argv) {
929 const { options } = parseCommandInput(argv, {

Callers 1

mainFunction · 0.85

Calls 6

resolveResultJobFunction · 0.90
readStoredJobFunction · 0.90
renderStoredJobResultFunction · 0.90
parseCommandInputFunction · 0.85
resolveCommandCwdFunction · 0.85
outputCommandResultFunction · 0.85

Tested by

no test coverage detected