brepjs-cad 0.126.0 → 0.128.0
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 +86 -0
- package/dist/brepjs-cad.cjs +1 -1
- package/dist/brepjs-cad.js +1 -1
- package/dist/cli/main.cjs +15 -11
- package/dist/cli/main.js +15 -11
- package/dist/{diff-BRhSDLYg.js → diff-CRu6Pqyr.js} +3 -2
- package/dist/{diff-D0s19E4y.cjs → diff-DDu3OLyd.cjs} +4 -3
- package/dist/mcp/server.cjs +3 -2
- package/dist/mcp/server.js +3 -2
- package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
- package/dist/snapshot/registry.cjs +1 -1
- package/dist/snapshot/registry.js +1 -1
- package/dist/snapshot/shoot.cjs +1 -1
- package/dist/snapshot/static.cjs +2 -1
- package/dist/snapshot/static.js +2 -1
- package/package.json +9 -9
- package/viewer/dist/assets/brepjs-C44_sy1S.js +60 -0
- package/viewer/dist/assets/index-C89QbEyi.js +4208 -0
- package/viewer/dist/assets/{kernelWorker-jWyUBVH1.js → kernelWorker-DSjJc4fh.js} +1 -1
- package/viewer/dist/index.html +1 -1
- package/viewer/dist/assets/brepjs-D2sNsisq.js +0 -60
- package/viewer/dist/assets/index-C8TqEQPa.js +0 -4208
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,91 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.128.0](https://github.com/andymai/brepjs/compare/brepjs-cad-v0.127.1...brepjs-cad-v0.128.0) (2026-08-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **brepjs-cad:** add airfoils.md feature recipe (swept fans/props/impellers) ([#1566](https://github.com/andymai/brepjs/issues/1566)) ([8c786db](https://github.com/andymai/brepjs/commit/8c786db69ead59edcdc9d0f8525e43324552e4db))
|
|
9
|
+
* **brepjs-cad:** aimed section cut for the design judge (Phase 3) ([#1543](https://github.com/andymai/brepjs/issues/1543)) ([40e5acd](https://github.com/andymai/brepjs/commit/40e5acd54318d768dc5a620403d17d43e358e698))
|
|
10
|
+
* **brepjs-cad:** decomposed, cross-checked design-judge rubric (Phase 1.5) ([#1539](https://github.com/andymai/brepjs/issues/1539)) ([8059b6d](https://github.com/andymai/brepjs/commit/8059b6d701ae5980e6bb11f51695aa102fe2bb43))
|
|
11
|
+
* **brepjs-cad:** deterministic body/interference metrics for the design judge (Phase 1) ([#1531](https://github.com/andymai/brepjs/issues/1531)) ([d296b54](https://github.com/andymai/brepjs/commit/d296b545f2d7084b861683d61b626ace4747a371))
|
|
12
|
+
* **brepjs-cad:** grade judge quality against a reference exemplar ([#1731](https://github.com/andymai/brepjs/issues/1731)) ([9d4aaeb](https://github.com/andymai/brepjs/commit/9d4aaeb8e4830c6be78668854730367194b6a9e5))
|
|
13
|
+
* **brepjs-cad:** kernel-anchored Set-of-Marks for the design judge ([#1545](https://github.com/andymai/brepjs/issues/1545)) ([2b6f5b4](https://github.com/andymai/brepjs/commit/2b6f5b436f2a73c96747cc71f83afc8715765cd0))
|
|
14
|
+
* **brepjs-cad:** reliable internal-bore detection for the design judge (keystone) ([#1542](https://github.com/andymai/brepjs/issues/1542)) ([0d780c3](https://github.com/andymai/brepjs/commit/0d780c3b73c2551dab2f04a6ff31bf9ec8cae2ab))
|
|
15
|
+
* **brepjs-cad:** surface fragmentation in verify --check (the [#1](https://github.com/andymai/brepjs/issues/1) design defect) ([#1560](https://github.com/andymai/brepjs/issues/1560)) ([45a4f6e](https://github.com/andymai/brepjs/commit/45a4f6e268331b7816cd9957fbdab4c0893b2000))
|
|
16
|
+
* **brepjs-cad:** xray internal-reveal shot for the design judge (Phase 2a) ([#1540](https://github.com/andymai/brepjs/issues/1540)) ([eca5bc9](https://github.com/andymai/brepjs/commit/eca5bc9ad20fc7947132d647952245cfe466a7f4))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **brepjs-cad:** add a triangular-gusset recipe to the implement skill (bracket/enclosure eval) ([#1571](https://github.com/andymai/brepjs/issues/1571)) ([346d042](https://github.com/andymai/brepjs/commit/346d0423fefa3bd163f4075f69bf96d478543bf5))
|
|
22
|
+
* **brepjs-cad:** add the "realize the designed object" bar to the implement skill ([#1563](https://github.com/andymai/brepjs/issues/1563)) ([e150357](https://github.com/andymai/brepjs/commit/e1503570aaf271ebef1e39d48be9c70a5ffe8f03))
|
|
23
|
+
* **brepjs-cad:** bore detector misses full-cylinder through-holes ([#1551](https://github.com/andymai/brepjs/issues/1551)) ([#1586](https://github.com/andymai/brepjs/issues/1586)) ([b6d61eb](https://github.com/andymai/brepjs/commit/b6d61eb6d88e2e4a3aa1c55b78dc2e76315ebc02))
|
|
24
|
+
* **brepjs-cad:** close gear-teeth edge cases found by /eval-skill (ring, worm tip relief, GT2) ([#1548](https://github.com/andymai/brepjs/issues/1548)) ([4bd0494](https://github.com/andymai/brepjs/commit/4bd049401f3affcc3f38e3a31bb9520653a3e89c))
|
|
25
|
+
* **brepjs-cad:** code + hint the degenerate-edge (duplicate-vertex) verify failure ([#1550](https://github.com/andymai/brepjs/issues/1550)) ([502dffc](https://github.com/andymai/brepjs/commit/502dffc4a2ae495ae5c98b0c7966721abe0d5f48))
|
|
26
|
+
* **brepjs-cad:** correct spur-gear example flanks + add root fillet ([#1528](https://github.com/andymai/brepjs/issues/1528)) ([6971c6b](https://github.com/andymai/brepjs/commit/6971c6befa1fea36a8c2f3ee89c4aa20946020c7))
|
|
27
|
+
* **brepjs-cad:** exploded-joint legibility + disjoint-compound caveat (basics eval) ([#1565](https://github.com/andymai/brepjs/issues/1565)) ([9d06121](https://github.com/andymai/brepjs/commit/9d0612111a595e57fcfca6fd191ed9169fc2c062))
|
|
28
|
+
* **brepjs-cad:** handle brepjs/playground refs + summarize body relations in the digest ([#1547](https://github.com/andymai/brepjs/issues/1547)) ([b0acef0](https://github.com/andymai/brepjs/commit/b0acef0ad80cdd61f0d2683f1e6d0ece0cae028e))
|
|
29
|
+
* **brepjs-cad:** heal 6 implement-skill findings from the full-flywheel re-run ([#1568](https://github.com/andymai/brepjs/issues/1568)) ([f63bf3d](https://github.com/andymai/brepjs/commit/f63bf3d5a0aa638d06e11dd7e2c27e84dbf74746))
|
|
30
|
+
* **brepjs-cad:** heal implement + polish skills from clean-room eval ([#1526](https://github.com/andymai/brepjs/issues/1526)) ([0645e16](https://github.com/andymai/brepjs/commit/0645e163e1d8759c95406d0f9526d0aa3b5dd480))
|
|
31
|
+
* **brepjs-cad:** heal implement skill — deep-stack bounds extremes aren't datums ([#1529](https://github.com/andymai/brepjs/issues/1529)) ([5ed366f](https://github.com/andymai/brepjs/commit/5ed366f266b3e6e50ae4b54d5779aa05453e894a))
|
|
32
|
+
* **brepjs-cad:** heal implement skill from the eval flywheel (3 findings) ([#1552](https://github.com/andymai/brepjs/issues/1552)) ([51def82](https://github.com/andymai/brepjs/commit/51def82db4e0600e85f45e4dd828cc9caee58d15))
|
|
33
|
+
* **brepjs-cad:** heal implement skill from the full-corpus eval flywheel (4 findings) ([#1554](https://github.com/andymai/brepjs/issues/1554)) ([3cfc28e](https://github.com/andymai/brepjs/commit/3cfc28ed8b82c46330f1d75f1e98c13fd4d65a06))
|
|
34
|
+
* **brepjs-cad:** make blind-judge reference adaptation render multi-body parts at scale ([#1530](https://github.com/andymai/brepjs/issues/1530)) ([18d4523](https://github.com/andymai/brepjs/commit/18d4523c85e1b22496bb5c0b8fb382a1146429c6))
|
|
35
|
+
* **brepjs-cad:** polish skill — bosses on shells must fuse, or they float (eval finding) ([#1553](https://github.com/andymai/brepjs/issues/1553)) ([07cbf93](https://github.com/andymai/brepjs/commit/07cbf93e47fbf880df53bc2a1cee05bf0d17e2d5))
|
|
36
|
+
* **brepjs-cad:** teach worm-wheel and rack tooth recipes; fix gear-build contradiction ([#1544](https://github.com/andymai/brepjs/issues/1544)) ([b0da85f](https://github.com/andymai/brepjs/commit/b0da85f218d463e0f1ef0ca8760cec54b4814b02))
|
|
37
|
+
* **core:** bump occt-wasm to 3.7.0 with borrowed adjacency handles ([#1821](https://github.com/andymai/brepjs/issues/1821)) ([4b76974](https://github.com/andymai/brepjs/commit/4b76974833f2d9900740fffcec2dd589de952ff9))
|
|
38
|
+
* **deps:** clear all remaining OSV findings to get main green ([#1917](https://github.com/andymai/brepjs/issues/1917)) ([2456ef4](https://github.com/andymai/brepjs/commit/2456ef40860129a59027d055978c002004104925))
|
|
39
|
+
* **release:** unbreak Vercel — repin brepjs-cad to brepjs >=18.0.0 ([#1711](https://github.com/andymai/brepjs/issues/1711)) ([78c780a](https://github.com/andymai/brepjs/commit/78c780a3ab2fcc78f26b32029df72795582e145c))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Reverts
|
|
43
|
+
|
|
44
|
+
* restore brepjs-cad brepjs dep floor — "*" did not fix the release churn ([#1854](https://github.com/andymai/brepjs/issues/1854)) ([194caba](https://github.com/andymai/brepjs/commit/194cabaa6c7196ee38a3b3ddaa68a881909ae263))
|
|
45
|
+
|
|
46
|
+
## [0.127.0](https://github.com/andymai/brepjs/compare/brepjs-cad-v0.126.0...brepjs-cad-v0.127.0) (2026-08-09)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Features
|
|
50
|
+
|
|
51
|
+
* **brepjs-cad:** add airfoils.md feature recipe (swept fans/props/impellers) ([#1566](https://github.com/andymai/brepjs/issues/1566)) ([8c786db](https://github.com/andymai/brepjs/commit/8c786db69ead59edcdc9d0f8525e43324552e4db))
|
|
52
|
+
* **brepjs-cad:** aimed section cut for the design judge (Phase 3) ([#1543](https://github.com/andymai/brepjs/issues/1543)) ([40e5acd](https://github.com/andymai/brepjs/commit/40e5acd54318d768dc5a620403d17d43e358e698))
|
|
53
|
+
* **brepjs-cad:** decomposed, cross-checked design-judge rubric (Phase 1.5) ([#1539](https://github.com/andymai/brepjs/issues/1539)) ([8059b6d](https://github.com/andymai/brepjs/commit/8059b6d701ae5980e6bb11f51695aa102fe2bb43))
|
|
54
|
+
* **brepjs-cad:** deterministic body/interference metrics for the design judge (Phase 1) ([#1531](https://github.com/andymai/brepjs/issues/1531)) ([d296b54](https://github.com/andymai/brepjs/commit/d296b545f2d7084b861683d61b626ace4747a371))
|
|
55
|
+
* **brepjs-cad:** grade judge quality against a reference exemplar ([#1731](https://github.com/andymai/brepjs/issues/1731)) ([9d4aaeb](https://github.com/andymai/brepjs/commit/9d4aaeb8e4830c6be78668854730367194b6a9e5))
|
|
56
|
+
* **brepjs-cad:** kernel-anchored Set-of-Marks for the design judge ([#1545](https://github.com/andymai/brepjs/issues/1545)) ([2b6f5b4](https://github.com/andymai/brepjs/commit/2b6f5b436f2a73c96747cc71f83afc8715765cd0))
|
|
57
|
+
* **brepjs-cad:** reliable internal-bore detection for the design judge (keystone) ([#1542](https://github.com/andymai/brepjs/issues/1542)) ([0d780c3](https://github.com/andymai/brepjs/commit/0d780c3b73c2551dab2f04a6ff31bf9ec8cae2ab))
|
|
58
|
+
* **brepjs-cad:** surface fragmentation in verify --check (the [#1](https://github.com/andymai/brepjs/issues/1) design defect) ([#1560](https://github.com/andymai/brepjs/issues/1560)) ([45a4f6e](https://github.com/andymai/brepjs/commit/45a4f6e268331b7816cd9957fbdab4c0893b2000))
|
|
59
|
+
* **brepjs-cad:** xray internal-reveal shot for the design judge (Phase 2a) ([#1540](https://github.com/andymai/brepjs/issues/1540)) ([eca5bc9](https://github.com/andymai/brepjs/commit/eca5bc9ad20fc7947132d647952245cfe466a7f4))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
* **brepjs-cad:** add a triangular-gusset recipe to the implement skill (bracket/enclosure eval) ([#1571](https://github.com/andymai/brepjs/issues/1571)) ([346d042](https://github.com/andymai/brepjs/commit/346d0423fefa3bd163f4075f69bf96d478543bf5))
|
|
65
|
+
* **brepjs-cad:** add the "realize the designed object" bar to the implement skill ([#1563](https://github.com/andymai/brepjs/issues/1563)) ([e150357](https://github.com/andymai/brepjs/commit/e1503570aaf271ebef1e39d48be9c70a5ffe8f03))
|
|
66
|
+
* **brepjs-cad:** bore detector misses full-cylinder through-holes ([#1551](https://github.com/andymai/brepjs/issues/1551)) ([#1586](https://github.com/andymai/brepjs/issues/1586)) ([b6d61eb](https://github.com/andymai/brepjs/commit/b6d61eb6d88e2e4a3aa1c55b78dc2e76315ebc02))
|
|
67
|
+
* **brepjs-cad:** close gear-teeth edge cases found by /eval-skill (ring, worm tip relief, GT2) ([#1548](https://github.com/andymai/brepjs/issues/1548)) ([4bd0494](https://github.com/andymai/brepjs/commit/4bd049401f3affcc3f38e3a31bb9520653a3e89c))
|
|
68
|
+
* **brepjs-cad:** code + hint the degenerate-edge (duplicate-vertex) verify failure ([#1550](https://github.com/andymai/brepjs/issues/1550)) ([502dffc](https://github.com/andymai/brepjs/commit/502dffc4a2ae495ae5c98b0c7966721abe0d5f48))
|
|
69
|
+
* **brepjs-cad:** correct spur-gear example flanks + add root fillet ([#1528](https://github.com/andymai/brepjs/issues/1528)) ([6971c6b](https://github.com/andymai/brepjs/commit/6971c6befa1fea36a8c2f3ee89c4aa20946020c7))
|
|
70
|
+
* **brepjs-cad:** exploded-joint legibility + disjoint-compound caveat (basics eval) ([#1565](https://github.com/andymai/brepjs/issues/1565)) ([9d06121](https://github.com/andymai/brepjs/commit/9d0612111a595e57fcfca6fd191ed9169fc2c062))
|
|
71
|
+
* **brepjs-cad:** handle brepjs/playground refs + summarize body relations in the digest ([#1547](https://github.com/andymai/brepjs/issues/1547)) ([b0acef0](https://github.com/andymai/brepjs/commit/b0acef0ad80cdd61f0d2683f1e6d0ece0cae028e))
|
|
72
|
+
* **brepjs-cad:** heal 6 implement-skill findings from the full-flywheel re-run ([#1568](https://github.com/andymai/brepjs/issues/1568)) ([f63bf3d](https://github.com/andymai/brepjs/commit/f63bf3d5a0aa638d06e11dd7e2c27e84dbf74746))
|
|
73
|
+
* **brepjs-cad:** heal implement + polish skills from clean-room eval ([#1526](https://github.com/andymai/brepjs/issues/1526)) ([0645e16](https://github.com/andymai/brepjs/commit/0645e163e1d8759c95406d0f9526d0aa3b5dd480))
|
|
74
|
+
* **brepjs-cad:** heal implement skill — deep-stack bounds extremes aren't datums ([#1529](https://github.com/andymai/brepjs/issues/1529)) ([5ed366f](https://github.com/andymai/brepjs/commit/5ed366f266b3e6e50ae4b54d5779aa05453e894a))
|
|
75
|
+
* **brepjs-cad:** heal implement skill from the eval flywheel (3 findings) ([#1552](https://github.com/andymai/brepjs/issues/1552)) ([51def82](https://github.com/andymai/brepjs/commit/51def82db4e0600e85f45e4dd828cc9caee58d15))
|
|
76
|
+
* **brepjs-cad:** heal implement skill from the full-corpus eval flywheel (4 findings) ([#1554](https://github.com/andymai/brepjs/issues/1554)) ([3cfc28e](https://github.com/andymai/brepjs/commit/3cfc28ed8b82c46330f1d75f1e98c13fd4d65a06))
|
|
77
|
+
* **brepjs-cad:** make blind-judge reference adaptation render multi-body parts at scale ([#1530](https://github.com/andymai/brepjs/issues/1530)) ([18d4523](https://github.com/andymai/brepjs/commit/18d4523c85e1b22496bb5c0b8fb382a1146429c6))
|
|
78
|
+
* **brepjs-cad:** polish skill — bosses on shells must fuse, or they float (eval finding) ([#1553](https://github.com/andymai/brepjs/issues/1553)) ([07cbf93](https://github.com/andymai/brepjs/commit/07cbf93e47fbf880df53bc2a1cee05bf0d17e2d5))
|
|
79
|
+
* **brepjs-cad:** teach worm-wheel and rack tooth recipes; fix gear-build contradiction ([#1544](https://github.com/andymai/brepjs/issues/1544)) ([b0da85f](https://github.com/andymai/brepjs/commit/b0da85f218d463e0f1ef0ca8760cec54b4814b02))
|
|
80
|
+
* **core:** bump occt-wasm to 3.7.0 with borrowed adjacency handles ([#1821](https://github.com/andymai/brepjs/issues/1821)) ([4b76974](https://github.com/andymai/brepjs/commit/4b76974833f2d9900740fffcec2dd589de952ff9))
|
|
81
|
+
* **deps:** clear all remaining OSV findings to get main green ([#1917](https://github.com/andymai/brepjs/issues/1917)) ([2456ef4](https://github.com/andymai/brepjs/commit/2456ef40860129a59027d055978c002004104925))
|
|
82
|
+
* **release:** unbreak Vercel — repin brepjs-cad to brepjs >=18.0.0 ([#1711](https://github.com/andymai/brepjs/issues/1711)) ([78c780a](https://github.com/andymai/brepjs/commit/78c780a3ab2fcc78f26b32029df72795582e145c))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Reverts
|
|
86
|
+
|
|
87
|
+
* restore brepjs-cad brepjs dep floor — "*" did not fix the release churn ([#1854](https://github.com/andymai/brepjs/issues/1854)) ([194caba](https://github.com/andymai/brepjs/commit/194cabaa6c7196ee38a3b3ddaa68a881909ae263))
|
|
88
|
+
|
|
3
89
|
## [0.126.0](https://github.com/andymai/brepjs/compare/brepjs-cad-v0.125.1...brepjs-cad-v0.126.0) (2026-08-09)
|
|
4
90
|
|
|
5
91
|
|
package/dist/brepjs-cad.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_diff = require("./diff-
|
|
2
|
+
const require_diff = require("./diff-DDu3OLyd.cjs");
|
|
3
3
|
exports.DEFAULT_TOLERANCE_PCT = require_diff.DEFAULT_TOLERANCE_PCT;
|
|
4
4
|
exports.TYPECHECK_CODE = require_diff.TYPECHECK_CODE;
|
|
5
5
|
exports.emptyReport = require_diff.emptyReport;
|
package/dist/brepjs-cad.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as typecheckPart, c as isExpectedDims, d as emptyReport, i as TYPECHECK_CODE, l as pctDelta, m as serializeReport, n as runMeasure, o as DEFAULT_TOLERANCE_PCT, r as runPart, s as evaluateExpected, t as runDiff, u as runChecks } from "./diff-
|
|
1
|
+
import { a as typecheckPart, c as isExpectedDims, d as emptyReport, i as TYPECHECK_CODE, l as pctDelta, m as serializeReport, n as runMeasure, o as DEFAULT_TOLERANCE_PCT, r as runPart, s as evaluateExpected, t as runDiff, u as runChecks } from "./diff-CRu6Pqyr.js";
|
|
2
2
|
export { DEFAULT_TOLERANCE_PCT, TYPECHECK_CODE, emptyReport, evaluateExpected, isExpectedDims, pctDelta, runChecks, runDiff, runMeasure, runPart, serializeReport, typecheckPart };
|
package/dist/cli/main.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_diff = require("../diff-
|
|
3
|
+
const require_diff = require("../diff-DDu3OLyd.cjs");
|
|
4
4
|
let node_url = require("node:url");
|
|
5
5
|
let node_fs = require("node:fs");
|
|
6
6
|
let node_path = require("node:path");
|
|
@@ -148,16 +148,20 @@ async function exportPart(modulePath, formats, outDir) {
|
|
|
148
148
|
try {
|
|
149
149
|
if (!(0, node_fs.existsSync)(outDir)) (0, node_fs.mkdirSync)(outDir, { recursive: true });
|
|
150
150
|
const base = stem(modulePath);
|
|
151
|
-
if (formats.step)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
151
|
+
if (formats.step) {
|
|
152
|
+
if (step) {
|
|
153
|
+
const p = (0, node_path.join)(outDir, `${base}.step`);
|
|
154
|
+
(0, node_fs.writeFileSync)(p, Buffer.from(step));
|
|
155
|
+
written.push(p);
|
|
156
|
+
} else errors.push("STEP export produced no data");
|
|
157
|
+
}
|
|
158
|
+
if (formats.glb) {
|
|
159
|
+
if (glb) {
|
|
160
|
+
const p = (0, node_path.join)(outDir, `${base}.glb`);
|
|
161
|
+
(0, node_fs.writeFileSync)(p, Buffer.from(glb));
|
|
162
|
+
written.push(p);
|
|
163
|
+
} else errors.push("GLB export produced no data");
|
|
164
|
+
}
|
|
161
165
|
if (formats.stl) {
|
|
162
166
|
const { exportSTL, isOk } = await require_diff.loadBrep();
|
|
163
167
|
const r = exportSTL(shape);
|
package/dist/cli/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { f as pushError, h as loadBrep, m as serializeReport, n as runMeasure, p as reportOk, r as runPart, t as runDiff } from "../diff-
|
|
2
|
+
import { f as pushError, h as loadBrep, m as serializeReport, n as runMeasure, p as reportOk, r as runPart, t as runDiff } from "../diff-CRu6Pqyr.js";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { existsSync, globSync, mkdirSync, realpathSync, watch, writeFileSync } from "node:fs";
|
|
5
5
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -147,16 +147,20 @@ async function exportPart(modulePath, formats, outDir) {
|
|
|
147
147
|
try {
|
|
148
148
|
if (!existsSync(outDir)) mkdirSync(outDir, { recursive: true });
|
|
149
149
|
const base = stem(modulePath);
|
|
150
|
-
if (formats.step)
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
150
|
+
if (formats.step) {
|
|
151
|
+
if (step) {
|
|
152
|
+
const p = join(outDir, `${base}.step`);
|
|
153
|
+
writeFileSync(p, Buffer.from(step));
|
|
154
|
+
written.push(p);
|
|
155
|
+
} else errors.push("STEP export produced no data");
|
|
156
|
+
}
|
|
157
|
+
if (formats.glb) {
|
|
158
|
+
if (glb) {
|
|
159
|
+
const p = join(outDir, `${base}.glb`);
|
|
160
|
+
writeFileSync(p, Buffer.from(glb));
|
|
161
|
+
written.push(p);
|
|
162
|
+
} else errors.push("GLB export produced no data");
|
|
163
|
+
}
|
|
160
164
|
if (formats.stl) {
|
|
161
165
|
const { exportSTL, isOk } = await loadBrep();
|
|
162
166
|
const r = exportSTL(shape);
|
|
@@ -720,7 +720,8 @@ function nodeTypesRoot(partPath, toolDir) {
|
|
|
720
720
|
for (const from of froms) {
|
|
721
721
|
if (!from) continue;
|
|
722
722
|
try {
|
|
723
|
-
|
|
723
|
+
const pkgJson = createRequire(from).resolve("@types/node/package.json");
|
|
724
|
+
return dirname(dirname(pkgJson));
|
|
724
725
|
} catch {}
|
|
725
726
|
}
|
|
726
727
|
}
|
|
@@ -943,7 +944,7 @@ async function runPart(modulePath, opts = {}) {
|
|
|
943
944
|
});
|
|
944
945
|
}
|
|
945
946
|
//#endregion
|
|
946
|
-
//#region \0@oxc-project+runtime@0.
|
|
947
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/usingCtx.js
|
|
947
948
|
function _usingCtx() {
|
|
948
949
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
949
950
|
var n = Error();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
2
2
|
let node_url = require("node:url");
|
|
3
3
|
let node_module = require("node:module");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
@@ -722,7 +722,8 @@ function nodeTypesRoot(partPath, toolDir) {
|
|
|
722
722
|
for (const from of froms) {
|
|
723
723
|
if (!from) continue;
|
|
724
724
|
try {
|
|
725
|
-
|
|
725
|
+
const pkgJson = (0, node_module.createRequire)(from).resolve("@types/node/package.json");
|
|
726
|
+
return (0, node_path.dirname)((0, node_path.dirname)(pkgJson));
|
|
726
727
|
} catch {}
|
|
727
728
|
}
|
|
728
729
|
}
|
|
@@ -945,7 +946,7 @@ async function runPart(modulePath, opts = {}) {
|
|
|
945
946
|
});
|
|
946
947
|
}
|
|
947
948
|
//#endregion
|
|
948
|
-
//#region \0@oxc-project+runtime@0.
|
|
949
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/usingCtx.js
|
|
949
950
|
function _usingCtx() {
|
|
950
951
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
951
952
|
var n = Error();
|
package/dist/mcp/server.cjs
CHANGED
|
@@ -21,7 +21,7 @@ let node_crypto = require("node:crypto");
|
|
|
21
21
|
*/
|
|
22
22
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
23
23
|
var DEFAULT_MAX_MEMORY_MB = 2048;
|
|
24
|
-
var MAX_OUTPUT_BYTES =
|
|
24
|
+
var MAX_OUTPUT_BYTES = 8388608;
|
|
25
25
|
/**
|
|
26
26
|
* In-flight sandbox process *groups*, keyed by group-leader pid. Tracked so a dying host can reap
|
|
27
27
|
* its runs (see installSandboxShutdownHandlers) — the per-run timeout can't, since its timer dies
|
|
@@ -501,9 +501,10 @@ async function exportPartTool(args) {
|
|
|
501
501
|
*/
|
|
502
502
|
installSandboxShutdownHandlers();
|
|
503
503
|
var pkgPath = (0, node_path.join)((0, node_path.dirname)((0, node_url.fileURLToPath)({}.url)), "..", "..", "package.json");
|
|
504
|
+
var pkg = JSON.parse((0, node_fs.readFileSync)(pkgPath, "utf8"));
|
|
504
505
|
var server = new _modelcontextprotocol_sdk_server_index_js.Server({
|
|
505
506
|
name: "brepjs-cad",
|
|
506
|
-
version:
|
|
507
|
+
version: pkg.version
|
|
507
508
|
}, { capabilities: { tools: {} } });
|
|
508
509
|
server.setRequestHandler(_modelcontextprotocol_sdk_types_js.ListToolsRequestSchema, () => ({ tools: [{
|
|
509
510
|
name: "run_program",
|
package/dist/mcp/server.js
CHANGED
|
@@ -21,7 +21,7 @@ import { createHash } from "node:crypto";
|
|
|
21
21
|
*/
|
|
22
22
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
23
23
|
var DEFAULT_MAX_MEMORY_MB = 2048;
|
|
24
|
-
var MAX_OUTPUT_BYTES =
|
|
24
|
+
var MAX_OUTPUT_BYTES = 8388608;
|
|
25
25
|
/**
|
|
26
26
|
* In-flight sandbox process *groups*, keyed by group-leader pid. Tracked so a dying host can reap
|
|
27
27
|
* its runs (see installSandboxShutdownHandlers) — the per-run timeout can't, since its timer dies
|
|
@@ -501,9 +501,10 @@ async function exportPartTool(args) {
|
|
|
501
501
|
*/
|
|
502
502
|
installSandboxShutdownHandlers();
|
|
503
503
|
var pkgPath = join(dirname(fileURLToPath(import.meta.url)), "..", "..", "package.json");
|
|
504
|
+
var pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
|
|
504
505
|
var server = new Server({
|
|
505
506
|
name: "brepjs-cad",
|
|
506
|
-
version:
|
|
507
|
+
version: pkg.version
|
|
507
508
|
}, { capabilities: { tools: {} } });
|
|
508
509
|
server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: [{
|
|
509
510
|
name: "run_program",
|
|
@@ -15,7 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
19
19
|
value: mod,
|
|
20
20
|
enumerable: true
|
|
21
21
|
}) : target, mod));
|
|
@@ -3,7 +3,7 @@ const require_snapshot_static = require("./static.cjs");
|
|
|
3
3
|
//#region src/snapshot/registry.ts
|
|
4
4
|
var DEFAULT_PORT = 7373;
|
|
5
5
|
var PROBE_SPAN = 8;
|
|
6
|
-
var DEFAULT_SHUTDOWN_AFTER_MS =
|
|
6
|
+
var DEFAULT_SHUTDOWN_AFTER_MS = 432e5;
|
|
7
7
|
async function probe(port) {
|
|
8
8
|
const ctrl = new AbortController();
|
|
9
9
|
const timer = setTimeout(() => ctrl.abort(), 400);
|
|
@@ -2,7 +2,7 @@ import { startStaticServer } from "./static.js";
|
|
|
2
2
|
//#region src/snapshot/registry.ts
|
|
3
3
|
var DEFAULT_PORT = 7373;
|
|
4
4
|
var PROBE_SPAN = 8;
|
|
5
|
-
var DEFAULT_SHUTDOWN_AFTER_MS =
|
|
5
|
+
var DEFAULT_SHUTDOWN_AFTER_MS = 432e5;
|
|
6
6
|
async function probe(port) {
|
|
7
7
|
const ctrl = new AbortController();
|
|
8
8
|
const timer = setTimeout(() => ctrl.abort(), 400);
|
package/dist/snapshot/shoot.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("../rolldown-runtime-
|
|
2
|
+
const require_rolldown_runtime = require("../rolldown-runtime-VH7oDXx4.cjs");
|
|
3
3
|
const require_snapshot_registry = require("./registry.cjs");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
package/dist/snapshot/static.cjs
CHANGED
|
@@ -6,7 +6,8 @@ let node_http = require("node:http");
|
|
|
6
6
|
let node_fs_promises = require("node:fs/promises");
|
|
7
7
|
//#region src/snapshot/static.ts
|
|
8
8
|
var SERVER_API_VERSION = 1;
|
|
9
|
-
var
|
|
9
|
+
var moduleDir = (0, node_path.dirname)((0, node_url.fileURLToPath)({}.url));
|
|
10
|
+
var VIEWER_DIST = (0, node_path.resolve)(moduleDir, "../../viewer/dist");
|
|
10
11
|
var MIME = {
|
|
11
12
|
".html": "text/html; charset=utf-8",
|
|
12
13
|
".js": "text/javascript; charset=utf-8",
|
package/dist/snapshot/static.js
CHANGED
|
@@ -5,7 +5,8 @@ import { createServer } from "node:http";
|
|
|
5
5
|
import { stat } from "node:fs/promises";
|
|
6
6
|
//#region src/snapshot/static.ts
|
|
7
7
|
var SERVER_API_VERSION = 1;
|
|
8
|
-
var
|
|
8
|
+
var moduleDir = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
var VIEWER_DIST = resolve(moduleDir, "../../viewer/dist");
|
|
9
10
|
var MIME = {
|
|
10
11
|
".html": "text/html; charset=utf-8",
|
|
11
12
|
".js": "text/javascript; charset=utf-8",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs-cad",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.128.0",
|
|
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",
|
|
@@ -67,23 +67,23 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@anthropic-ai/sdk": "0.115.0",
|
|
70
|
-
"@langfuse/client": "5.
|
|
71
|
-
"@langfuse/otel": "5.
|
|
72
|
-
"@langfuse/tracing": "5.
|
|
70
|
+
"@langfuse/client": "5.10.0",
|
|
71
|
+
"@langfuse/otel": "5.10.0",
|
|
72
|
+
"@langfuse/tracing": "5.10.0",
|
|
73
73
|
"@opentelemetry/sdk-node": "0.221.0",
|
|
74
74
|
"@react-three/drei": "^10.7.7",
|
|
75
|
-
"@react-three/fiber": "
|
|
75
|
+
"@react-three/fiber": "9.7.0",
|
|
76
76
|
"@types/node": "26.1.2",
|
|
77
77
|
"@types/react": "^19.2.15",
|
|
78
|
-
"@types/react-dom": "
|
|
79
|
-
"@types/three": "0.185.
|
|
80
|
-
"@vitejs/plugin-react": "6.0.
|
|
78
|
+
"@types/react-dom": "19.2.4",
|
|
79
|
+
"@types/three": "0.185.3",
|
|
80
|
+
"@vitejs/plugin-react": "6.0.5",
|
|
81
81
|
"brepjs-viewer": "*",
|
|
82
82
|
"eslint": "^10.4.0",
|
|
83
83
|
"react": "19.2.8",
|
|
84
84
|
"react-dom": "19.2.8",
|
|
85
85
|
"three": "0.185.1",
|
|
86
|
-
"tsx": "4.23.
|
|
86
|
+
"tsx": "4.23.4",
|
|
87
87
|
"vite": "^8.0.0",
|
|
88
88
|
"vite-plugin-dts": "^5.0.1",
|
|
89
89
|
"vitest": "^4.0.0",
|