spec-and-loop 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-and-loop",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "OpenSpec + Ralph Loop integration for iterative development with opencode",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -715,7 +715,10 @@ Tasks completed:
715
715
  {{context}}
716
716
  EOF
717
717
 
718
- sed -i "s|{{change_dir}}|$abs_change_dir|g" "$template_file"
718
+ # Use a portable inplace replace: write to temp file then move into place
719
+ local _tmpfile
720
+ _tmpfile=$(mktemp 2>/dev/null || mktemp -t ralph-template)
721
+ sed "s|{{change_dir}}|$abs_change_dir|g" "$template_file" > "$_tmpfile" && mv "$_tmpfile" "$template_file"
719
722
 
720
723
  log_verbose "Prompt template created: $template_file"
721
724
  }