rechrome 1.11.0 → 1.11.1
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/package.json +1 -1
- package/rech.js +4 -3
- package/rech.ts +4 -3
package/package.json
CHANGED
package/rech.js
CHANGED
|
@@ -661,10 +661,11 @@ async function setup(opts: { profile?: string } = {}): Promise<void> {
|
|
|
661
661
|
(info.user_name ?? "").toLowerCase().includes(opts.profile!.toLowerCase())
|
|
662
662
|
) ?? null;
|
|
663
663
|
}
|
|
664
|
-
if (
|
|
665
|
-
console.log(
|
|
666
|
-
return available[0]
|
|
664
|
+
if (available.length === 1) {
|
|
665
|
+
console.log(` Only one profile available — selecting: ${available[0][1].user_name || available[0][0]}`);
|
|
666
|
+
return available[0];
|
|
667
667
|
}
|
|
668
|
+
if (!isTTY) console.log(" [agent] Provide profile number on next stdin line, or rerun with --profile <num|email>");
|
|
668
669
|
const answer = await ask("\n Profile number: ");
|
|
669
670
|
const idx = parseInt(answer.trim()) - 1;
|
|
670
671
|
if (isNaN(idx) || idx < 0 || idx >= available.length) return null;
|
package/rech.ts
CHANGED
|
@@ -661,10 +661,11 @@ async function setup(opts: { profile?: string } = {}): Promise<void> {
|
|
|
661
661
|
(info.user_name ?? "").toLowerCase().includes(opts.profile!.toLowerCase())
|
|
662
662
|
) ?? null;
|
|
663
663
|
}
|
|
664
|
-
if (
|
|
665
|
-
console.log(
|
|
666
|
-
return available[0]
|
|
664
|
+
if (available.length === 1) {
|
|
665
|
+
console.log(` Only one profile available — selecting: ${available[0][1].user_name || available[0][0]}`);
|
|
666
|
+
return available[0];
|
|
667
667
|
}
|
|
668
|
+
if (!isTTY) console.log(" [agent] Provide profile number on next stdin line, or rerun with --profile <num|email>");
|
|
668
669
|
const answer = await ask("\n Profile number: ");
|
|
669
670
|
const idx = parseInt(answer.trim()) - 1;
|
|
670
671
|
if (isNaN(idx) || idx < 0 || idx >= available.length) return null;
|