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

Function executeTransfer

plugins/codex/scripts/codex-companion.mjs:625–641  ·  view source on GitHub ↗
(cwd, options = {})

Source from the content-addressed store, hash-verified

623}
624
625async function executeTransfer(cwd, options = {}) {
626 const sourcePath = resolveClaudeSessionPath(cwd, {
627 source: options.source
628 });
629 const result = await importExternalAgentSession(cwd, { sourcePath });
630 const payload = {
631 threadId: result.threadId,
632 resumeCommand: `codex resume ${result.threadId}`,
633 sourcePath,
634 sessionId: path.basename(sourcePath, ".jsonl")
635 };
636
637 return {
638 payload,
639 rendered: renderTransferResult(payload)
640 };
641}
642
643function readTaskPrompt(cwd, options, positionals) {
644 if (options["prompt-file"]) {

Callers 1

handleTransferFunction · 0.85

Calls 3

resolveClaudeSessionPathFunction · 0.90
renderTransferResultFunction · 0.85

Tested by

no test coverage detected