@brainbase-labs/cli 0.19.0 → 0.19.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/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36008,7 +36008,7 @@ function padStart(s, n) {
|
|
|
36008
36008
|
// package.json
|
|
36009
36009
|
var package_default = {
|
|
36010
36010
|
name: "@brainbase-labs/cli",
|
|
36011
|
-
version: "0.19.
|
|
36011
|
+
version: "0.19.1",
|
|
36012
36012
|
description: "Pack, share, and install agent templates across harnesses (Claude Code, Codex, ...).",
|
|
36013
36013
|
type: "module",
|
|
36014
36014
|
bin: {
|
|
@@ -40969,6 +40969,9 @@ function writeAuthUnlocked(s) {
|
|
|
40969
40969
|
fs6.chmodSync(AUTH_FILE, 384);
|
|
40970
40970
|
} catch {}
|
|
40971
40971
|
}
|
|
40972
|
+
function writeAuth(s) {
|
|
40973
|
+
withAuthLock(() => writeAuthUnlocked(s));
|
|
40974
|
+
}
|
|
40972
40975
|
function clearAuth() {
|
|
40973
40976
|
withAuthLock(() => {
|
|
40974
40977
|
if (exists(AUTH_FILE))
|
|
@@ -61424,6 +61427,8 @@ function isInsecureWebBase(webBase) {
|
|
|
61424
61427
|
return !["127.0.0.1", "localhost", "[::1]", "::1"].includes(url.hostname);
|
|
61425
61428
|
}
|
|
61426
61429
|
function openInBrowser(url) {
|
|
61430
|
+
if (process.env.BRAINBASE_NON_INTERACTIVE)
|
|
61431
|
+
return;
|
|
61427
61432
|
const [cmd, args] = process.platform === "darwin" ? ["open", [url]] : process.platform === "win32" ? ["rundll32.exe", ["url.dll,FileProtocolHandler", url]] : ["xdg-open", [url]];
|
|
61428
61433
|
try {
|
|
61429
61434
|
const child = spawn(cmd, args, {
|
|
@@ -61522,6 +61527,7 @@ async function runLogin(_cwd, args) {
|
|
|
61522
61527
|
spinning = true;
|
|
61523
61528
|
const session = await withCancelOnInterrupt(() => awaitDeviceSession({ webBase, authorization }));
|
|
61524
61529
|
const stored = toAuthSession(session, webBase);
|
|
61530
|
+
writeAuth(stored);
|
|
61525
61531
|
spinner.stop("Authorized.");
|
|
61526
61532
|
spinning = false;
|
|
61527
61533
|
$e("Welcome to brainbase.");
|