@jojonax/codex-copilot 1.6.0 → 1.6.1

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": "@jojonax/codex-copilot",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "PRD-driven automated development orchestrator — works with any AI coding tool",
5
5
  "bin": {
6
6
  "codex-copilot": "./bin/cli.js"
package/src/utils/git.js CHANGED
@@ -219,7 +219,12 @@ export function commitAll(cwd, message) {
219
219
  }
220
220
 
221
221
  function shellEscape(str) {
222
- return `'${str.replace(/'/g, "'\\''")}'`
222
+ if (process.platform === 'win32') {
223
+ // Windows cmd.exe uses double quotes; escape internal double quotes
224
+ return `"${str.replace(/"/g, '\\"')}"`;
225
+ }
226
+ // Unix: single quotes, escape embedded single quotes
227
+ return `'${str.replace(/'/g, "'\\''")}'`;
223
228
  }
224
229
 
225
230
  /**
@@ -41,7 +41,10 @@ function ghJSONSafe(cmd, cwd) {
41
41
  }
42
42
 
43
43
  function shellEscape(str) {
44
- return `'${str.replace(/'/g, "'\\''")}'`
44
+ if (process.platform === 'win32') {
45
+ return `"${str.replace(/"/g, '\\"')}"`;
46
+ }
47
+ return `'${str.replace(/'/g, "'\\''")}'`;
45
48
  }
46
49
 
47
50
  /**
@@ -423,6 +423,9 @@ function copyToClipboard(text) {
423
423
  }
424
424
 
425
425
  function shellEscape(str) {
426
+ if (process.platform === 'win32') {
427
+ return `"${str.replace(/"/g, '\\"')}"`;
428
+ }
426
429
  return `'${str.replace(/'/g, "'\\''")}'`;
427
430
  }
428
431