@brainbase-labs/cli 0.41.0 → 0.41.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36059,7 +36059,7 @@ function padStart(s, n) {
36059
36059
  // package.json
36060
36060
  var package_default = {
36061
36061
  name: "@brainbase-labs/cli",
36062
- version: "0.41.0",
36062
+ version: "0.41.1",
36063
36063
  description: "Pack, share, and install agent templates across harnesses (Claude Code, Codex, ...).",
36064
36064
  type: "module",
36065
36065
  bin: {
@@ -54795,6 +54795,7 @@ function removeInstalledRecord(name, scope, cwd2) {
54795
54795
  import fs54 from "node:fs";
54796
54796
 
54797
54797
  // src/core/api-error-message.ts
54798
+ var MAX_TEXT_BODY = 500;
54798
54799
  function apiErrorMessage(body, status) {
54799
54800
  if (body && typeof body === "object") {
54800
54801
  const obj = body;
@@ -54816,7 +54817,11 @@ function apiErrorMessage(body, status) {
54816
54817
  }
54817
54818
  }
54818
54819
  } else if (typeof body === "string" && body.trim()) {
54819
- return body.trim();
54820
+ const text2 = body.trim();
54821
+ if (/^<(!doctype|html)\b/i.test(text2) || /<html[\s>]/i.test(text2.slice(0, 2000))) {
54822
+ return `HTTP ${status}: the server returned an error page instead of an answer. Try again shortly.`;
54823
+ }
54824
+ return text2.length > MAX_TEXT_BODY ? `${text2.slice(0, MAX_TEXT_BODY)}…` : text2;
54820
54825
  }
54821
54826
  return `HTTP ${status}`;
54822
54827
  }
@@ -68754,7 +68759,7 @@ harness: ${scalar(seed.harness)}
68754
68759
 
68755
68760
  # Agent-level model override. Omit it to leave the cloud value alone, or set
68756
68761
  # null to clear an override that is already set.
68757
- # default_model: openai/gpt-5.6-terra
68762
+ # default_model: gpt-5.6-terra
68758
68763
 
68759
68764
  agent:
68760
68765
  name: ${scalar(seed.name)}
@@ -81803,10 +81808,7 @@ var REASON_HINTS = {
81803
81808
  nothing_live: "Nothing is live yet, so there is nothing to roll back from.",
81804
81809
  release_already_live: "That release is already live.",
81805
81810
  audience_empty: "Nobody can open it yet. Set the audience with `brainbase interface access <id> --everyone` or `--people <ids>`.",
81806
- slug_unavailable: "Pick another address.",
81807
- harness_unsupported: "Switch the agent to a harness that supports interfaces (Kafka, Claude Code, Codex, Qwen Code or OpenCode).",
81808
- snapshot_too_old: "Update the agent to a newer version and try again.",
81809
- service_unconfigured: "Interfaces are not set up on this control plane."
81811
+ slug_unavailable: "Pick another address."
81810
81812
  };
81811
81813
  function usesPat() {
81812
81814
  if (process.env.BRAINBASE_TOKEN?.trim())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainbase-labs/cli",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "description": "Pack, share, and install agent templates across harnesses (Claude Code, Codex, ...).",
5
5
  "type": "module",
6
6
  "bin": {