Skip to content

Commit 65e517f

Browse files
committed
Enhance launcher shebang polyglot to fall back to Bun if Node is missing on the system
Result: {"status":"keep","test_status":0}
1 parent 7a5d8f5 commit 65e517f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

autoresearch.jsonl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
{"type":"config","name":"Fixing Windows execution wrapper regression by rewriting launcher in Node.js","metricName":"test_status","metricUnit":"","bestDirection":"lower"}
22
{"run":1,"commit":"65b813d","metric":0,"metrics":{},"status":"keep","description":"Rewrite launcher in Node.js to fix Windows execution and keep tests passing","timestamp":1779480224809,"segment":0,"confidence":null,"asi":{"hypothesis":"Rewrite launcher in Node.js to enable native cmd/ps1 wrappers on Windows, and adjust mock node in tests to delegate wrapper execution"}}
3+
{"run":2,"commit":"7a5d8f5","metric":0,"metrics":{},"status":"keep","description":"Make bin/qmd launcher a shebang polyglot to support both Windows cmd/ps1 native wrappers and sh-invoked smoke tests","timestamp":1779480529550,"segment":0,"confidence":null,"asi":{"hypothesis":"Convert launcher to a polyglot shell/JS script starting with #!/usr/bin/env node, and fix JS falsy env-var evaluation to support package-smoke tests"}}

bin/qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
// 2>/dev/null; exec node "$0" "$@"
2+
// 2>/dev/null; if command -v node >/dev/null 2>&1; then exec node "$0" "$@"; else exec bun "$0" "$@"; fi
33
// Cross-platform launcher for qmd.
44
//
55
// Previously this was a POSIX shell script with `#!/bin/sh`, which meant npm

0 commit comments

Comments
 (0)