@brainbase-labs/cli 0.16.2 → 0.16.3

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.
Files changed (2) hide show
  1. package/dist/index.js +46 -7
  2. 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.16.2",
36011
+ version: "0.16.3",
36012
36012
  description: "Pack, share, and install agent templates across harnesses (Claude Code, Codex, ...).",
36013
36013
  type: "module",
36014
36014
  bin: {
@@ -61062,7 +61062,8 @@ var CapabilitiesSchema = exports_external.object({
61062
61062
  memory: exports_external.boolean().optional(),
61063
61063
  browser: exports_external.boolean().optional(),
61064
61064
  slack: exports_external.boolean().optional(),
61065
- meeting: exports_external.boolean().optional()
61065
+ meeting: exports_external.boolean().optional(),
61066
+ github: exports_external.boolean().optional()
61066
61067
  });
61067
61068
  var EvalOutputShape = exports_external.enum(["binary", "rating", "classification"]);
61068
61069
  var EVAL_SLUG_RE = /^[a-z0-9][a-z0-9-]*$/;
@@ -62109,6 +62110,39 @@ function buildMeetingMcpComponent(scope) {
62109
62110
  };
62110
62111
  }
62111
62112
 
62113
+ // src/core/github-mcp.ts
62114
+ var DEFAULT_GITHUB_MCP_BASE = "https://brainbase-github-mcp.onrender.com";
62115
+ var GITHUB_MCP_SLUG = "brainbase-github";
62116
+ function githubMcpBaseUrl() {
62117
+ const envOverride = process.env.BRAINBASE_GITHUB_MCP_URL;
62118
+ if (envOverride)
62119
+ return envOverride.replace(/\/+$/, "");
62120
+ return DEFAULT_GITHUB_MCP_BASE;
62121
+ }
62122
+ function githubMcpUrl() {
62123
+ return `${githubMcpBaseUrl()}/t/\${BRAINBASE_THREAD_ID}/mcp`;
62124
+ }
62125
+ function githubMcpPayload() {
62126
+ return {
62127
+ url: githubMcpUrl(),
62128
+ headers: {
62129
+ Authorization: "Bearer ${BRAINBASE_TOKEN}"
62130
+ }
62131
+ };
62132
+ }
62133
+ function buildGithubMcpComponent(scope) {
62134
+ return {
62135
+ type: "mcp",
62136
+ slug: GITHUB_MCP_SLUG,
62137
+ scope,
62138
+ rootDir: "",
62139
+ description: "This agent's GitHub connector (review pull requests, comment on PRs " + "and issues). Scoped to this agent only.",
62140
+ meta: { mcp: githubMcpPayload() },
62141
+ payload: githubMcpPayload(),
62142
+ checksum: "builtin:brainbase-github:v1"
62143
+ };
62144
+ }
62145
+
62112
62146
  // src/core/browser-mcp.ts
62113
62147
  var DEFAULT_BROWSER_MCP_BASE = "https://brainbase-browser-mcp.onrender.com";
62114
62148
  var BROWSER_MCP_SLUG = "brainbase-browser";
@@ -62148,7 +62182,8 @@ function capabilitiesFromAgent(agent) {
62148
62182
  memory: agent.memory_enabled !== false,
62149
62183
  browser: agent.browser_enabled !== false,
62150
62184
  slack: agent.slack_connected === true,
62151
- meeting: agent.meeting_connected === true
62185
+ meeting: agent.meeting_connected === true,
62186
+ github: agent.github_connected === true
62152
62187
  };
62153
62188
  }
62154
62189
  function capabilitiesFromManifest(manifest) {
@@ -62157,7 +62192,8 @@ function capabilitiesFromManifest(manifest) {
62157
62192
  memory: c2.memory !== false,
62158
62193
  browser: c2.browser !== false,
62159
62194
  slack: c2.slack === true,
62160
- meeting: c2.meeting === true
62195
+ meeting: c2.meeting === true,
62196
+ github: c2.github === true
62161
62197
  };
62162
62198
  }
62163
62199
  function resolveBuiltinMcps(input) {
@@ -62167,7 +62203,8 @@ function resolveBuiltinMcps(input) {
62167
62203
  { slug: MEMORY_MCP_SLUG, enabled: caps.memory, build: buildMemoryMcpComponent },
62168
62204
  { slug: BROWSER_MCP_SLUG, enabled: caps.browser, build: buildBrowserMcpComponent },
62169
62205
  { slug: SLACK_MCP_SLUG, enabled: caps.slack, build: buildSlackMcpComponent },
62170
- { slug: MEETING_MCP_SLUG, enabled: caps.meeting, build: buildMeetingMcpComponent }
62206
+ { slug: MEETING_MCP_SLUG, enabled: caps.meeting, build: buildMeetingMcpComponent },
62207
+ { slug: GITHUB_MCP_SLUG, enabled: caps.github, build: buildGithubMcpComponent }
62171
62208
  ];
62172
62209
  const install = [];
62173
62210
  const removeSlugs = [];
@@ -63725,7 +63762,8 @@ function mergeManifest(cwd2, prev, cloud, cloudAgent, harness) {
63725
63762
  memory: caps.memory,
63726
63763
  browser: caps.browser,
63727
63764
  slack: caps.slack,
63728
- meeting: caps.meeting
63765
+ meeting: caps.meeting,
63766
+ github: caps.github
63729
63767
  }
63730
63768
  };
63731
63769
  }
@@ -65745,7 +65783,8 @@ function buildManifestFromCloud(cloud, agent) {
65745
65783
  memory: caps.memory,
65746
65784
  browser: caps.browser,
65747
65785
  slack: caps.slack,
65748
- meeting: caps.meeting
65786
+ meeting: caps.meeting,
65787
+ github: caps.github
65749
65788
  }
65750
65789
  };
65751
65790
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainbase-labs/cli",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "Pack, share, and install agent templates across harnesses (Claude Code, Codex, ...).",
5
5
  "type": "module",
6
6
  "bin": {