@chanmeng666/archlang-3d 0.1.0 → 0.1.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 +10 -0
- package/README.md +2 -1
- package/dist/{chunk-NADV4D3M.js → chunk-4SDXG6GW.js} +1 -1
- package/dist/{chunk-IQJQDQSC.js → chunk-CIC5LCVH.js} +1 -1
- package/dist/{chunk-2WKSS3IA.js → chunk-YCMINRJA.js} +1 -1
- package/dist/cli.js +26 -7
- package/dist/index.js +2 -2
- package/dist/node.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.1.1] - 2026-10-31
|
|
6
|
+
|
|
7
|
+
The first version published through the release workflow, with provenance.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- `archlang3d view --replay` no longer needs a browser for the HTML, as the README always said. In 0.1.0
|
|
12
|
+
it wrote the file and then exited 1 where Chromium was missing. It now exits 0 and says the key frames
|
|
13
|
+
were not measured; `--json` reports `rendered: false`. `--video` still needs Chromium and `ffmpeg`.
|
|
14
|
+
|
|
5
15
|
## [0.1.0] - 2026-10-31
|
|
6
16
|
|
|
7
17
|
The first version on npm, published by hand. Versions from 0.1.1 on go through the release workflow
|
package/README.md
CHANGED
|
@@ -39,7 +39,8 @@ npx archlang3d view plan.arch --replay -o plan.html --video plan.mp4
|
|
|
39
39
|
Playwright keeps its browsers in a cache shared by every project on the machine, and this install
|
|
40
40
|
can remove browser versions it considers unused.
|
|
41
41
|
|
|
42
|
-
`npx archlang3d doctor` reports what is
|
|
42
|
+
Without a browser, `view` still writes `plan.html` and exits 0. `npx archlang3d doctor` reports what is
|
|
43
|
+
installed.
|
|
43
44
|
|
|
44
45
|
## GLB
|
|
45
46
|
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DOOR_POSES,
|
|
4
4
|
adaptPlan,
|
|
5
5
|
buildMesh
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4SDXG6GW.js";
|
|
7
7
|
import {
|
|
8
8
|
SWIFTSHADER_ARGS,
|
|
9
9
|
checkGlb,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
renderReplay,
|
|
14
14
|
replayHtml,
|
|
15
15
|
writeGlb
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YCMINRJA.js";
|
|
17
17
|
import {
|
|
18
18
|
ARCHLANG_3D_VERSION,
|
|
19
19
|
replayFacts
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CIC5LCVH.js";
|
|
21
21
|
import "./chunk-54YVSAVZ.js";
|
|
22
22
|
import {
|
|
23
23
|
storeysOf,
|
|
@@ -104,7 +104,7 @@ var COMMANDS = [
|
|
|
104
104
|
JSON_FLAG
|
|
105
105
|
],
|
|
106
106
|
input: "<plan.arch|->",
|
|
107
|
-
output: "an HTML file (and an MP4 with --video)",
|
|
107
|
+
output: "an HTML file (and an MP4 with --video). With no browser that starts and no --video, the HTML is still written, the exit is 0 and --json reports rendered: false without the frame fields",
|
|
108
108
|
examples: [
|
|
109
109
|
{ cmd: "archlang3d view plan.arch --replay -o plan.html --json", note: "the replay and its key-frame hashes" },
|
|
110
110
|
{
|
|
@@ -156,7 +156,7 @@ function buildManifest() {
|
|
|
156
156
|
description: "archlang-3d: 3D preview of an ArchLang plan, a separate package that reads the same .arch source. Builds a checked GLB and a replay from a .arch plan. ArchLang itself draws plans.",
|
|
157
157
|
exitCodes: {
|
|
158
158
|
"0": "ok",
|
|
159
|
-
"1": "internal / IO / environment error (a missing Chromium or ffmpeg, a file that cannot be written)",
|
|
159
|
+
"1": "internal / IO / environment error (a missing Chromium or ffmpeg with view --video, a file that cannot be written)",
|
|
160
160
|
"2": "the plan is refused, a check failed, or build --strict met a warning (E3D_STRICT); nothing is written (deterministic: fix it, don't blindly retry)",
|
|
161
161
|
"3": "bad usage"
|
|
162
162
|
},
|
|
@@ -646,8 +646,27 @@ ${VIEW_USAGE}
|
|
|
646
646
|
views.push({ view: viewLabel(view2), keyFrames: keys });
|
|
647
647
|
}
|
|
648
648
|
} catch (e) {
|
|
649
|
-
|
|
650
|
-
|
|
649
|
+
const why = e.message;
|
|
650
|
+
if (args.video || !why.includes("browserType.launch")) {
|
|
651
|
+
say2(`archlang3d: rendering failed (Chromium through Playwright, ffmpeg): ${why}`);
|
|
652
|
+
return 1;
|
|
653
|
+
}
|
|
654
|
+
say2(`archlang3d: wrote ${args.out}; its key frames were not measured: ${why.split(/\r?\n/)[0]}`);
|
|
655
|
+
if (args.json) {
|
|
656
|
+
const report2 = {
|
|
657
|
+
ok: true,
|
|
658
|
+
html: args.out,
|
|
659
|
+
rendered: false,
|
|
660
|
+
view: viewLabel(args.storey),
|
|
661
|
+
doors: args.doors,
|
|
662
|
+
storeys: storeys.length,
|
|
663
|
+
warnings: r.warnings.map((w) => ({ code: w.code, level: w.level, message: w.message })),
|
|
664
|
+
assumptions: mesh.assumptions.length
|
|
665
|
+
};
|
|
666
|
+
process.stdout.write(`${JSON.stringify(report2, null, 2)}
|
|
667
|
+
`);
|
|
668
|
+
}
|
|
669
|
+
return 0;
|
|
651
670
|
}
|
|
652
671
|
const report = {
|
|
653
672
|
ok: true,
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
sectorBand,
|
|
14
14
|
slab2d,
|
|
15
15
|
slabRegion
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4SDXG6GW.js";
|
|
17
17
|
import {
|
|
18
18
|
ARCHLANG_3D_VERSION,
|
|
19
19
|
FLOOR_LIFT_UM,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
umPoint,
|
|
35
35
|
validateScene3D,
|
|
36
36
|
wallOwnership
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CIC5LCVH.js";
|
|
38
38
|
import {
|
|
39
39
|
END_AZIMUTH,
|
|
40
40
|
END_FOV,
|
package/dist/node.js
CHANGED
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
signedVolume,
|
|
20
20
|
viewerScript,
|
|
21
21
|
writeGlb
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YCMINRJA.js";
|
|
23
23
|
import {
|
|
24
24
|
replayFacts
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CIC5LCVH.js";
|
|
26
26
|
import {
|
|
27
27
|
PREVIEW_LABEL,
|
|
28
28
|
replayPayload,
|
package/package.json
CHANGED