maiass 5.9.38 → 5.9.40

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.
@@ -55,10 +55,16 @@ export function readConfig(configPath) {
55
55
  if (key && valueParts.length > 0) {
56
56
  let value = valueParts.join('=').trim();
57
57
 
58
- // Remove surrounding quotes if present
59
- if ((value.startsWith('"') && value.endsWith('"')) ||
60
- (value.startsWith("'") && value.endsWith("'"))) {
61
- value = value.slice(1, -1);
58
+ // Strip surrounding quotes, following dotenv conventions:
59
+ // - Double-quoted: unescape \\ → \ and \" " after stripping (standard escape sequences)
60
+ // - Single-quoted: strip only, no unescaping (everything is literal)
61
+ // - Unquoted: use as-is (important for Windows paths like C:\Users\name)
62
+ if (value.length >= 2 && value.startsWith('"') && value.endsWith('"')) {
63
+ value = value.slice(1, -1)
64
+ .replace(/\\"/g, '"') // unescape \" → "
65
+ .replace(/\\\\/g, '\\'); // unescape \\ → \
66
+ } else if (value.length >= 2 && value.startsWith("'") && value.endsWith("'")) {
67
+ value = value.slice(1, -1); // single-quoted: literal, no unescaping
62
68
  }
63
69
 
64
70
  config[key.trim()] = value;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maiass",
3
3
  "type": "module",
4
- "version": "5.9.38",
4
+ "version": "5.9.40",
5
5
  "description": "MAIASS - Modular AI-Augmented Semantic Scribe - Intelligent Git workflow automation",
6
6
  "main": "maiass.mjs",
7
7
  "bin": {
@@ -10,6 +10,14 @@
10
10
  },
11
11
  "author": "Velvary Pty Ltd",
12
12
  "license": "GPL-3.0-only",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/vsmash/nodemaiass.git"
16
+ },
17
+ "homepage": "https://github.com/vsmash/nodemaiass#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/vsmash/nodemaiass/issues"
20
+ },
13
21
  "files": [
14
22
  "lib/",
15
23
  "maiass.mjs",