brepjs-cad 0.177.0 → 0.178.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.178.1](https://github.com/andymai/brepjs/compare/brepjs-cad-v0.178.0...brepjs-cad-v0.178.1) (2026-09-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** accept occt-wasm v5 in the peer range ([#2304](https://github.com/andymai/brepjs/issues/2304)) ([6fd4c50](https://github.com/andymai/brepjs/commit/6fd4c509aaef7e5af2811a8cf388feebdbd60106))
9
+
10
+ ## [0.178.0](https://github.com/andymai/brepjs/compare/brepjs-cad-v0.177.0...brepjs-cad-v0.178.0) (2026-08-29)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **brepjs-cad:** ship the Z-up preview camera in the bundled viewer ([#2265](https://github.com/andymai/brepjs/issues/2265)) ([9993376](https://github.com/andymai/brepjs/commit/9993376b323ff47ee67583a57d88f82f0d343fc2)), closes [#2264](https://github.com/andymai/brepjs/issues/2264)
16
+
3
17
  ## [0.177.0](https://github.com/andymai/brepjs/compare/brepjs-cad-v0.176.0...brepjs-cad-v0.177.0) (2026-08-26)
4
18
 
5
19
 
package/README.md CHANGED
@@ -53,7 +53,7 @@ npx -y -p brepjs-cad brep part.brep.ts --serve # p
53
53
  npx -y -p brepjs-cad brep part.brep.ts --serve --no-open # preview server; just print the URL (no browser)
54
54
  ```
55
55
 
56
- `--snapshot`/`--serve` use the bundled viewer (shipped under `viewer/dist`, including the OCCT WASM). The `--serve` link is interactive: a toolbar offers view presets + fit, solid/wireframe/x-ray modes, edge/grid toggles, a turntable, click-to-inspect face picking, a section/clipping plane, a measurements panel, and an in-browser PNG screenshot. `--snapshot` loads the same page with `ui=0` to suppress the toolbar, and burns the bounding-box size into each PNG (`dims=1`) so the agent can read scale from the image.
56
+ `--snapshot`/`--serve` use the bundled viewer (shipped under `viewer/dist`, including the OCCT WASM). It renders in brepjs's native Z-up coordinates: Z is up, the XY plane is horizontal, and models are never rotated to fit the renderer's convention. The `--serve` link is interactive: a toolbar offers view presets + fit, solid/wireframe/x-ray modes, edge/grid toggles, a turntable, click-to-inspect face picking, a section/clipping plane, a measurements panel, and an in-browser PNG screenshot. `--snapshot` loads the same page with `ui=0` to suppress the toolbar, and burns the bounding-box size into each PNG (`dims=1`) so the agent can read scale from the image.
57
57
 
58
58
  `--serve` prints the viewer URL and, in an interactive terminal, opens it in your default browser. Auto-open is skipped when it would be unwanted: when the server is reused (a tab is already open), under CI, when output is piped (non-TTY, e.g. agent runs), or on Linux with no display server. Pass `--no-open` to always suppress it.
59
59
 
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_usingCtx = require("./usingCtx-LY0tPCbQ.cjs");
3
- const require_diff = require("./diff-CBp5KDNZ.cjs");
2
+ const require_usingCtx = require("./usingCtx-De4No9jK.cjs");
3
+ const require_diff = require("./diff-D7RFNl0i.cjs");
4
4
  exports.DEFAULT_TOLERANCE_PCT = require_usingCtx.DEFAULT_TOLERANCE_PCT;
5
5
  exports.TYPECHECK_CODE = require_usingCtx.TYPECHECK_CODE;
6
6
  exports.emptyReport = require_usingCtx.emptyReport;
@@ -1,3 +1,3 @@
1
- import { c as DEFAULT_TOLERANCE_PCT, d as pctDelta, f as runChecks, g as serializeReport, i as TYPECHECK_CODE, l as evaluateExpected, p as emptyReport, r as runPart, s as typecheckPart, u as isExpectedDims } from "./usingCtx-BDYtpr4t.js";
2
- import { n as runMeasure, t as runDiff } from "./diff-DmFtXXiX.js";
1
+ import { c as DEFAULT_TOLERANCE_PCT, d as pctDelta, f as runChecks, g as serializeReport, i as TYPECHECK_CODE, l as evaluateExpected, p as emptyReport, r as runPart, s as typecheckPart, u as isExpectedDims } from "./usingCtx-CmdCNNMh.js";
2
+ import { n as runMeasure, t as runDiff } from "./diff-BWViPAX9.js";
3
3
  export { DEFAULT_TOLERANCE_PCT, TYPECHECK_CODE, emptyReport, evaluateExpected, isExpectedDims, pctDelta, runChecks, runDiff, runMeasure, runPart, serializeReport, typecheckPart };
package/dist/cli/main.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_usingCtx = require("../usingCtx-LY0tPCbQ.cjs");
4
- const require_diff = require("../diff-CBp5KDNZ.cjs");
3
+ const require_usingCtx = require("../usingCtx-De4No9jK.cjs");
4
+ const require_diff = require("../diff-D7RFNl0i.cjs");
5
5
  const require_openBrowser = require("../openBrowser-Bip99cQv.cjs");
6
6
  const require_disposeShape = require("../disposeShape-Bui9k40G.cjs");
7
7
  let node_url = require("node:url");
package/dist/cli/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { g as serializeReport, h as reportOk, m as pushError, r as runPart, v as loadBrep } from "../usingCtx-BDYtpr4t.js";
3
- import { n as runMeasure, t as runDiff } from "../diff-DmFtXXiX.js";
2
+ import { g as serializeReport, h as reportOk, m as pushError, r as runPart, v as loadBrep } from "../usingCtx-CmdCNNMh.js";
3
+ import { n as runMeasure, t as runDiff } from "../diff-BWViPAX9.js";
4
4
  import { a as isWatchRelevant, i as debounce, n as shouldAutoOpen, o as watchRootFor, r as createSerialRunner, s as watchTree, t as openBrowser } from "../openBrowser-Dg9oDOte.js";
5
5
  import { t as disposeShape } from "../disposeShape-B4lsczOO.js";
6
6
  import { fileURLToPath } from "node:url";
@@ -1,4 +1,4 @@
1
- import { r as runPart, t as _usingCtx, v as loadBrep } from "./usingCtx-BDYtpr4t.js";
1
+ import { r as runPart, t as _usingCtx, v as loadBrep } from "./usingCtx-CmdCNNMh.js";
2
2
  //#region src/verify/measure.ts
3
3
  async function runMeasure(aPath, bPath) {
4
4
  try {
@@ -1,4 +1,4 @@
1
- const require_usingCtx = require("./usingCtx-LY0tPCbQ.cjs");
1
+ const require_usingCtx = require("./usingCtx-De4No9jK.cjs");
2
2
  //#region src/verify/measure.ts
3
3
  async function runMeasure(aPath, bPath) {
4
4
  try {
@@ -1,4 +1,4 @@
1
- import { _ as initOcctWasm, a as exportsField, n as loadPart, o as packageRootOf, t as _usingCtx, v as loadBrep } from "./usingCtx-BDYtpr4t.js";
1
+ import { _ as initOcctWasm, a as exportsField, n as loadPart, o as packageRootOf, t as _usingCtx, v as loadBrep } from "./usingCtx-CmdCNNMh.js";
2
2
  import { t as disposeShape } from "./disposeShape-B4lsczOO.js";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import { createRequire } from "node:module";
@@ -11479,7 +11479,7 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11479
11479
  }));
11480
11480
  require_react();
11481
11481
  require_jsx_runtime();
11482
- new Vector3(.6, .5, .6), new Vector3(0, .3, 1), new Vector3(0, 1, -.01), new Vector3(1, .3, 0);
11482
+ new Vector3(.6, -.6, .5), new Vector3(0, -1, .3), new Vector3(0, .01, 1), new Vector3(1, 0, .3);
11483
11483
  var groupStyle = {
11484
11484
  display: "flex",
11485
11485
  flexDirection: "column",
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-y5ARvAq5.cjs");
2
- const require_usingCtx = require("./usingCtx-LY0tPCbQ.cjs");
2
+ const require_usingCtx = require("./usingCtx-De4No9jK.cjs");
3
3
  const require_disposeShape = require("./disposeShape-Bui9k40G.cjs");
4
4
  let node_url = require("node:url");
5
5
  let node_module = require("node:module");
@@ -11478,7 +11478,7 @@ var require_jsx_runtime = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
11478
11478
  }));
11479
11479
  require_react();
11480
11480
  require_jsx_runtime();
11481
- new Vector3(.6, .5, .6), new Vector3(0, .3, 1), new Vector3(0, 1, -.01), new Vector3(1, .3, 0);
11481
+ new Vector3(.6, -.6, .5), new Vector3(0, -1, .3), new Vector3(0, .01, 1), new Vector3(1, 0, .3);
11482
11482
  var groupStyle = {
11483
11483
  display: "flex",
11484
11484
  flexDirection: "column",
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../rolldown-runtime-y5ARvAq5.cjs");
3
- const require_evaluate = require("../evaluate-DDwQkzN-.cjs");
3
+ const require_evaluate = require("../evaluate-l_HV-BxG.cjs");
4
4
  let node_fs = require("node:fs");
5
5
  let node_path = require("node:path");
6
6
  let rhino3dm = require("rhino3dm");
@@ -1,4 +1,4 @@
1
- import { t as evaluateElements } from "../evaluate-TZ0h4RP0.js";
1
+ import { t as evaluateElements } from "../evaluate-CCAuI59o.js";
2
2
  import { mkdirSync, writeFileSync } from "node:fs";
3
3
  import { dirname } from "node:path";
4
4
  import rhino3dm from "rhino3dm";
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_usingCtx = require("../usingCtx-LY0tPCbQ.cjs");
2
+ const require_usingCtx = require("../usingCtx-De4No9jK.cjs");
3
3
  const require_openBrowser = require("../openBrowser-Bip99cQv.cjs");
4
4
  const require_snapshot_static = require("../snapshot/static.cjs");
5
- const require_evaluate = require("../evaluate-DDwQkzN-.cjs");
5
+ const require_evaluate = require("../evaluate-l_HV-BxG.cjs");
6
6
  let node_fs = require("node:fs");
7
7
  let node_path = require("node:path");
8
8
  let node_http = require("node:http");
@@ -1,5 +1,5 @@
1
- import { n as evaluatePreview, r as encodePreviewPayload } from "../evaluate-TZ0h4RP0.js";
2
- import { v as loadBrep } from "../usingCtx-BDYtpr4t.js";
1
+ import { n as evaluatePreview, r as encodePreviewPayload } from "../evaluate-CCAuI59o.js";
2
+ import { v as loadBrep } from "../usingCtx-CmdCNNMh.js";
3
3
  import { a as isWatchRelevant, i as debounce, n as shouldAutoOpen, o as watchRootFor, r as createSerialRunner, s as watchTree, t as openBrowser } from "../openBrowser-Dg9oDOte.js";
4
4
  import { VIEWER_DIST, safeJoin, sendFile } from "../snapshot/static.js";
5
5
  import { mkdirSync, writeFileSync } from "node:fs";
@@ -987,7 +987,7 @@ async function runPart(modulePath, opts = {}) {
987
987
  });
988
988
  }
989
989
  //#endregion
990
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/usingCtx.js
990
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/usingCtx.js
991
991
  function _usingCtx() {
992
992
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
993
993
  var n = Error();
@@ -989,7 +989,7 @@ async function runPart(modulePath, opts = {}) {
989
989
  });
990
990
  }
991
991
  //#endregion
992
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/usingCtx.js
992
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/usingCtx.js
993
993
  function _usingCtx() {
994
994
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
995
995
  var n = Error();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs-cad",
3
- "version": "0.177.0",
3
+ "version": "0.178.1",
4
4
  "description": "Brainstorm → design → author → verify → polish pipeline for parametric brepjs CAD, with the brep CLI",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -59,7 +59,7 @@
59
59
  "@modelcontextprotocol/sdk": "1.30.0",
60
60
  "brepjs": ">=18.122.0",
61
61
  "commander": "^15.0.0",
62
- "occt-wasm": "^3.0.0 || ^4.0.0",
62
+ "occt-wasm": "^3.0.0 || ^4.0.0 || ^5.0.0",
63
63
  "typescript": "^6.0.3"
64
64
  },
65
65
  "optionalDependencies": {
@@ -67,28 +67,28 @@
67
67
  "rhino3dm": "^8.32.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@anthropic-ai/sdk": "0.117.1",
71
- "@langfuse/client": "5.10.0",
72
- "@langfuse/otel": "5.10.0",
73
- "@langfuse/tracing": "5.10.0",
70
+ "@anthropic-ai/sdk": "0.122.0",
71
+ "@langfuse/client": "5.11.0",
72
+ "@langfuse/otel": "5.11.0",
73
+ "@langfuse/tracing": "5.11.0",
74
74
  "@opentelemetry/sdk-node": "0.221.0",
75
75
  "@react-three/drei": "10.7.8",
76
76
  "@react-three/fiber": "9.7.0",
77
- "@types/node": "26.2.0",
77
+ "@types/node": "26.4.0",
78
78
  "@types/react": "^19.2.15",
79
- "@types/react-dom": "19.2.4",
79
+ "@types/react-dom": "19.2.5",
80
80
  "@types/three": "0.185.4",
81
- "@vitejs/plugin-react": "6.0.5",
81
+ "@vitejs/plugin-react": "6.1.1",
82
82
  "brepjs-viewer": "*",
83
83
  "eslint": "^10.4.0",
84
84
  "jsdom": "^30.0.1",
85
85
  "react": "19.2.8",
86
86
  "react-dom": "19.2.8",
87
87
  "three": "0.185.1",
88
- "tsx": "4.23.12",
88
+ "tsx": "4.23.13",
89
89
  "vite": "^8.0.0",
90
90
  "vite-plugin-dts": "^5.0.1",
91
91
  "vitest": "^4.0.0",
92
- "zod": "4.4.3"
92
+ "zod": "4.5.4"
93
93
  }
94
94
  }