(name, fallback = null)
| 6 | const { ingestCodexReview } = require('../core/codex/native-integrations'); |
| 7 | |
| 8 | function arg(name, fallback = null) { |
| 9 | const prefix = `${name}=`; |
| 10 | const inline = process.argv.find((value) => value.startsWith(prefix)); |
| 11 | if (inline) return inline.slice(prefix.length); |
| 12 | const idx = process.argv.indexOf(name); |
| 13 | return idx >= 0 ? process.argv[idx + 1] : fallback; |
| 14 | } |
| 15 | |
| 16 | function readStdin() { |
| 17 | try { |
no outgoing calls
no test coverage detected