fix: Address code review comment on spawn-agent.ts

Co-authored-by: blackboxprogramming <118287761+blackboxprogramming@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-24 23:20:11 +00:00
parent 077325f0c4
commit af30304038

View File

@@ -318,6 +318,8 @@ export function main(): void {
} }
// Run CLI if executed directly // Run CLI if executed directly
if (require.main === module) { // Using dynamic check that works with both CommonJS and tsx/ts-node
const isMain = typeof require !== "undefined" && require.main === module;
if (isMain) {
main(); main();
} }