[Bug] generate:system-prompts exits with code 1 and prints nothing
Description
pnpm generate:system-prompts exits with code 1 and prints nothing useful. The script in scripts/generate-system-prompts.ts has drifted from the source (scripts/ isn't type-checked): it still calls registry.getNativeToolsWithoutExecute() (removed), lists a scheduler mode that is no longer a DevelopmentMode, and has no top-level error handling so failures are silent.
Environment
- OS: Linux
- Node version: 22.23.4
- Nanocoder version: main at
ac5de8ad(before the fix) - Provider: n/a (dev script)
- Model: n/a
Steps to Reproduce
- Check out
mainwithout the fix - Run
pnpm run generate:system-prompts
Expected Behavior
The script generates system prompt variants and exits 0, or prints a clear error and exits 1.
Actual Behavior
Generating 24 system prompt variants...
[ELIFECYCLE] Command failed with exit code 1.
No error message is printed.
Additional Context
- [x] I have searched existing issues to ensure this is not a duplicate
- [x] I can reproduce this issue consistently
- [x] This issue occurs with the latest version of nanocoder
Filed so #1954 can close it here (the original report was mistakenly filed in prompt-scrubber).
Hi @minutechreview, I’m assigning this one to you. I’ll review your PR this time. Going forward, please comment on the issue first and wait until you’re assigned before you start working on it. That way we avoid duplicate work and keep things fair for everyone. Thanks for contributing!