(cwd, options = {})
| 623 | } |
| 624 | |
| 625 | async 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 | |
| 643 | function readTaskPrompt(cwd, options, positionals) { |
| 644 | if (options["prompt-file"]) { |
no test coverage detected