maiass 5.9.37 → 5.9.38

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.
@@ -132,9 +132,9 @@ export function writeConfig(configPath, config, options = {}) {
132
132
  }
133
133
 
134
134
  // Quote values that contain spaces or special characters.
135
- // Written to a file only not passed to a shell. codeql[js/incomplete-sanitization]
135
+ // Escape backslashes first, then double-quotes, for .env file format.
136
136
  const needsQuotes = /[\s#"'\\]/.test(value);
137
- const quotedValue = needsQuotes ? `"${value.replace(/"/g, '\\"')}"` : value;
137
+ const quotedValue = needsQuotes ? `"${value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"` : value;
138
138
 
139
139
  lines.push(`${key}=${quotedValue}`);
140
140
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maiass",
3
3
  "type": "module",
4
- "version": "5.9.37",
4
+ "version": "5.9.38",
5
5
  "description": "MAIASS - Modular AI-Augmented Semantic Scribe - Intelligent Git workflow automation",
6
6
  "main": "maiass.mjs",
7
7
  "bin": {