@brainbase-labs/cli 0.33.0 → 0.34.0
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 +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36018,7 +36018,7 @@ function padStart(s, n) {
|
|
|
36018
36018
|
// package.json
|
|
36019
36019
|
var package_default = {
|
|
36020
36020
|
name: "@brainbase-labs/cli",
|
|
36021
|
-
version: "0.
|
|
36021
|
+
version: "0.34.0",
|
|
36022
36022
|
description: "Pack, share, and install agent templates across harnesses (Claude Code, Codex, ...).",
|
|
36023
36023
|
type: "module",
|
|
36024
36024
|
bin: {
|
|
@@ -44205,8 +44205,8 @@ function normalizeMcpPayload2(payload) {
|
|
|
44205
44205
|
out.type = "stdio";
|
|
44206
44206
|
}
|
|
44207
44207
|
if (out.type === "http" || out.type === "sse") {
|
|
44208
|
-
|
|
44209
|
-
|
|
44208
|
+
delete out.command;
|
|
44209
|
+
delete out.args;
|
|
44210
44210
|
if (out.env && typeof out.env === "object" && Object.keys(out.env).length === 0) {
|
|
44211
44211
|
delete out.env;
|
|
44212
44212
|
}
|
|
@@ -64967,6 +64967,12 @@ function ensureSecretsGitignore(cwd2) {
|
|
|
64967
64967
|
}
|
|
64968
64968
|
} catch {}
|
|
64969
64969
|
}
|
|
64970
|
+
function runtimeEnvSecret(name, env3 = process.env) {
|
|
64971
|
+
if (!isBrainbaseTaskRuntime(env3))
|
|
64972
|
+
return null;
|
|
64973
|
+
const value = env3[name];
|
|
64974
|
+
return typeof value === "string" && value.length > 0 ? value : null;
|
|
64975
|
+
}
|
|
64970
64976
|
function diffSecrets(local, cloud) {
|
|
64971
64977
|
const localKeys = new Set(Object.keys(local));
|
|
64972
64978
|
const cloudKeys = new Set(Object.keys(cloud));
|
|
@@ -65614,7 +65620,7 @@ async function runAgentPull(cwd2, args) {
|
|
|
65614
65620
|
cwd: cwd2,
|
|
65615
65621
|
scope,
|
|
65616
65622
|
resolveConflict: async (_c) => "overwrite",
|
|
65617
|
-
resolveSecret: async (name) => availableSecrets[name] ??
|
|
65623
|
+
resolveSecret: async (name) => availableSecrets[name] ?? runtimeEnvSecret(name),
|
|
65618
65624
|
ownedMcpSlugs: ownedMcpSlugsForStore(lock?.components ?? [], {
|
|
65619
65625
|
harness,
|
|
65620
65626
|
cwd: cwd2,
|