@kinkai.cloud/vibecheck 0.1.1 → 0.1.2
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/dist/cli.js +6 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -14894,12 +14894,14 @@ function urlBase() {
|
|
|
14894
14894
|
function comandosAbrirBrowser(url2, platform = process.platform, env = process.env) {
|
|
14895
14895
|
if (platform === "darwin") return [["open", [url2]]];
|
|
14896
14896
|
if (platform === "win32") return [["cmd", ["/c", "start", "", url2]]];
|
|
14897
|
-
const fila = [["xdg-open", [url2]]];
|
|
14898
14897
|
const wsl = env["WSL_DISTRO_NAME"] !== void 0 || env["WSL_INTEROP"] !== void 0;
|
|
14899
14898
|
if (wsl) {
|
|
14900
|
-
|
|
14899
|
+
return [
|
|
14900
|
+
["wslview", [url2]],
|
|
14901
|
+
["cmd.exe", ["/c", "start", "", url2]]
|
|
14902
|
+
];
|
|
14901
14903
|
}
|
|
14902
|
-
return
|
|
14904
|
+
return [["xdg-open", [url2]]];
|
|
14903
14905
|
}
|
|
14904
14906
|
function tentarSpawn(cmd, args) {
|
|
14905
14907
|
return new Promise((resolve) => {
|
|
@@ -14939,7 +14941,7 @@ async function loginDevice(ci) {
|
|
|
14939
14941
|
);
|
|
14940
14942
|
}
|
|
14941
14943
|
const corpo = await aberto.json();
|
|
14942
|
-
console.warn(`No navegador, autorize com o c\xF3digo ${corpo.user_code}`);
|
|
14944
|
+
console.warn(`No navegador, entre na conta e autorize com o c\xF3digo ${corpo.user_code}`);
|
|
14943
14945
|
console.warn(corpo.verification_url);
|
|
14944
14946
|
if (!ci) await abrirBrowser(corpo.verification_url);
|
|
14945
14947
|
const intervalo = Math.max(3, corpo.interval ?? 3) * 1e3;
|