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 +9 -1
- package/files/merlin/VERSION +1 -1
- package/package.json +1 -1
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
|
-
|
|
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) {
|
package/files/merlin/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.5.
|
|
1
|
+
3.5.9
|
package/package.json
CHANGED