create-merlin-brain 3.5.8 → 3.5.9

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/bin/install.cjs CHANGED
@@ -1077,7 +1077,15 @@ async function install() {
1077
1077
  }
1078
1078
  const inputKey = await promptApiKey(!!existingApiKey);
1079
1079
  if (inputKey) {
1080
- apiKey = inputKey;
1080
+ // If user has an existing key and typed a confirmation like "y" or "yes",
1081
+ // they meant "keep existing" — don't store the literal string as the key.
1082
+ const isConfirmation = /^(y|yes|yeah|yep|sure|ok|keep)$/i.test(inputKey);
1083
+ if (isConfirmation && existingApiKey) {
1084
+ // Keep the existing key — user confirmed they want to keep it
1085
+ logSuccess('Keeping existing API key');
1086
+ } else {
1087
+ apiKey = inputKey;
1088
+ }
1081
1089
  }
1082
1090
 
1083
1091
  if (apiKey) {
@@ -1 +1 @@
1
- 3.5.8
1
+ 3.5.9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-merlin-brain",
3
- "version": "3.5.8",
3
+ "version": "3.5.9",
4
4
  "description": "Merlin - The Ultimate AI Brain for Claude Code. One install: workflows, agents, loop, and Sights MCP server.",
5
5
  "type": "module",
6
6
  "main": "./dist/server/index.js",