@hanhnd/agent-kit 1.0.13 → 1.0.15

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.
@@ -21324,7 +21324,8 @@ function parseIni(content) {
21324
21324
  const eqIdx = line.indexOf("=");
21325
21325
  if (eqIdx === -1) continue;
21326
21326
  const key = line.slice(0, eqIdx).trim();
21327
- const value = line.slice(eqIdx + 1).trim();
21327
+ const rawValue = line.slice(eqIdx + 1).trim();
21328
+ const value = rawValue.replace(/^(['"])(.*)\1$/, "$2");
21328
21329
  if (!result[currentSection]) result[currentSection] = {};
21329
21330
  result[currentSection][key] = value;
21330
21331
  }
@@ -21360,7 +21361,9 @@ function loadCredentials() {
21360
21361
  return cachedCredentials;
21361
21362
  }
21362
21363
  function getCredential(key) {
21363
- if (process.env[key] !== void 0) return process.env[key];
21364
+ if (process.env[key]) {
21365
+ return process.env[key];
21366
+ }
21364
21367
  return loadCredentials()[key];
21365
21368
  }
21366
21369
 
@@ -38,7 +38,8 @@ function parseIni(content) {
38
38
  if (eqIdx === -1)
39
39
  continue;
40
40
  const key = line.slice(0, eqIdx).trim();
41
- const value = line.slice(eqIdx + 1).trim();
41
+ const rawValue = line.slice(eqIdx + 1).trim();
42
+ const value = rawValue.replace(/^(['"])(.*)\1$/, '$2');
42
43
  if (!result[currentSection])
43
44
  result[currentSection] = {};
44
45
  result[currentSection][key] = value;
@@ -81,7 +82,8 @@ function loadCredentials() {
81
82
  * process.env.KEY → ~/.claude/credentials [profile] → undefined
82
83
  */
83
84
  export function getCredential(key) {
84
- if (process.env[key] !== undefined)
85
+ if (process.env[key]) {
85
86
  return process.env[key];
87
+ }
86
88
  return loadCredentials()[key];
87
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanhnd/agent-kit",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Super Engineer - Team of AI Agents for software development (Claude Code Plugin)",
5
5
  "type": "module",
6
6
  "main": "dist/kit-server.js",