@lazehq/cli 0.1.137 → 0.1.138

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/laze.mjs +12 -2
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -36970,7 +36970,7 @@ function shadowedLinkLineOf({ shadow }) {
36970
36970
  }
36971
36971
 
36972
36972
  // src/rules/cli-version.rules.ts
36973
- var STAMPED = "0.1.137";
36973
+ var STAMPED = "0.1.138";
36974
36974
  function cliVersionOf({ stamped = STAMPED } = {}) {
36975
36975
  return stamped.startsWith("__") ? "dev" : stamped;
36976
36976
  }
@@ -73712,10 +73712,20 @@ function errorOf({ status: status11, body }) {
73712
73712
  const code4 = typeof nested.code === "string" ? nested.code : fallback;
73713
73713
  const message2 = typeof nested.message === "string" ? nested.message : `Laze answered ${status11}`;
73714
73714
  const meta3 = typeof nested.meta === "object" && nested.meta !== null ? nested.meta : void 0;
73715
- const error63 = new LazeApiError(status11, code4, message2);
73715
+ const reasons = reasonLines(nested);
73716
+ const said = reasons.length > 0 ? `${message2.replace(/\.$/, "")}. ${reasons.join("; ")}` : message2;
73717
+ const error63 = new LazeApiError(status11, code4, said);
73716
73718
  error63.meta = meta3;
73717
73719
  return error63;
73718
73720
  }
73721
+ function reasonLines(error63) {
73722
+ const reasons = Array.isArray(error63.reasons) ? error63.reasons : [];
73723
+ return reasons.flatMap((reason2) => {
73724
+ const meta3 = reason2?.meta;
73725
+ if (typeof meta3?.message !== "string") return [];
73726
+ return [typeof meta3.field === "string" ? `${meta3.field}: ${meta3.message}` : meta3.message];
73727
+ });
73728
+ }
73719
73729
 
73720
73730
  // src/services/machine-report.service.ts
73721
73731
  import { createHash } from "node:crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.137",
3
+ "version": "0.1.138",
4
4
  "description": "The Laze command line: sign in, read and post in chat, and connect your own Claude Code or Codex session as an agent.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",