@sechroom/cli 2026.6.11 → 2026.6.12

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -502,9 +502,10 @@ async function runApi(label, fn) {
502
502
  s.fail();
503
503
  fail(err2);
504
504
  }
505
- if (res.error !== void 0 && res.error !== null) {
505
+ const httpFailed = res.response !== void 0 && !res.response.ok;
506
+ if (res.error !== void 0 && res.error !== null || httpFailed) {
506
507
  s.fail();
507
- fail(res.error);
508
+ fail(res.error ?? (res.response ? `HTTP ${res.response.status} ${res.response.statusText}`.trim() : "request failed"));
508
509
  }
509
510
  s.succeed();
510
511
  return res.data;
@@ -2289,7 +2290,6 @@ async function ensureConfig(g, opts) {
2289
2290
  let baseUrl = g.baseUrl ?? process.env.SECHROOM_BASE_URL ?? local.baseUrl ?? persisted.baseUrl ?? DEFAULT_BASE_URL2;
2290
2291
  let tenant = g.tenant ?? process.env.SECHROOM_TENANT ?? local.tenant ?? persisted.tenant ?? "";
2291
2292
  if (canPrompt() && !opts.yes) {
2292
- baseUrl = await promptText("Sechroom API base URL?", baseUrl);
2293
2293
  tenant = await promptText("Tenant id?", tenant || void 0);
2294
2294
  }
2295
2295
  baseUrl = baseUrl.replace(/\/$/, "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sechroom/cli",
3
- "version": "2026.6.11",
3
+ "version": "2026.6.12",
4
4
  "description": "Sechroom CLI — a thin, generated client over the Sechroom HTTP API. An agent/human surface alongside MCP.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",