@chanmeng666/archlang-3d 0.1.0 → 0.1.2

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
@@ -2,6 +2,23 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.1.2] - 2026-11-02
6
+
7
+ ### Fixed
8
+
9
+ - A `door glazed_sliding` from the core no longer fails the scene check. It builds the closed panel a
10
+ `sliding` door builds, so it is not glass in the model, and `door_kind` on the node names it.
11
+
12
+ ## [0.1.1] - 2026-10-31
13
+
14
+ The first version published through the release workflow, with provenance.
15
+
16
+ ### Fixed
17
+
18
+ - `archlang3d view --replay` no longer needs a browser for the HTML, as the README always said. In 0.1.0
19
+ it wrote the file and then exited 1 where Chromium was missing. It now exits 0 and says the key frames
20
+ were not measured; `--json` reports `rendered: false`. `--video` still needs Chromium and `ffmpeg`.
21
+
5
22
  ## [0.1.0] - 2026-10-31
6
23
 
7
24
  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 installed.
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/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ReplayPayload } from './replay.js';
2
2
  export { PREVIEW_LABEL, ReplayNode, ReplayOptions, replayPayload, viewBoxOf } from './replay.js';
3
- import { S as StripItem } from './strip-BMxWrvYD.js';
4
- export { R as ReplayFacts, s as stripAt } from './strip-BMxWrvYD.js';
3
+ import { S as StripItem } from './strip-DElA8ZbJ.js';
4
+ export { R as ReplayFacts, s as stripAt } from './strip-DElA8ZbJ.js';
5
5
 
6
6
  interface ReplayHandle {
7
7
  /** Render the frame at replay time `t` (clamped to [0, 1]) into the canvas, synchronously. */
@@ -5,7 +5,7 @@ import {
5
5
  mixedHeightJoints,
6
6
  t0Parts,
7
7
  wallOwnership
8
- } from "./chunk-IQJQDQSC.js";
8
+ } from "./chunk-PJMKP2ML.js";
9
9
 
10
10
  // src/adapter/adapt.ts
11
11
  import * as core from "@chanmeng666/archlang";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ARCHLANG_3D_VERSION,
3
3
  validateScene3D
4
- } from "./chunk-IQJQDQSC.js";
4
+ } from "./chunk-PJMKP2ML.js";
5
5
  import {
6
6
  PREVIEW_LABEL,
7
7
  replayPayload
@@ -431,7 +431,7 @@ function floorLifts(floors, overlaps) {
431
431
  }
432
432
 
433
433
  // package.json
434
- var version = "0.1.0";
434
+ var version = "0.1.2";
435
435
 
436
436
  // src/scene3d/build.ts
437
437
  import {
@@ -817,7 +817,7 @@ var LEVEL_COLLECTIONS = {
817
817
  head: integer
818
818
  },
819
819
  {
820
- doorKind: oneOf("hinged", "sliding", "barn", "bifold", "pocket", "garage", "double"),
820
+ doorKind: oneOf("hinged", "sliding", "barn", "bifold", "pocket", "garage", "double", "glazed_sliding"),
821
821
  leaves: array(array(pt, 2, 3)),
822
822
  hinge: oneOf("left", "right"),
823
823
  swing: oneOf("in", "out"),
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  DOOR_POSES,
4
4
  adaptPlan,
5
5
  buildMesh
6
- } from "./chunk-NADV4D3M.js";
6
+ } from "./chunk-DLZMYNAR.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-2WKSS3IA.js";
16
+ } from "./chunk-KIRWFAD6.js";
17
17
  import {
18
18
  ARCHLANG_3D_VERSION,
19
19
  replayFacts
20
- } from "./chunk-IQJQDQSC.js";
20
+ } from "./chunk-PJMKP2ML.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
- say2(`archlang3d: rendering failed (Chromium through Playwright, ffmpeg): ${e.message}`);
650
- return 1;
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,
@@ -1,5 +1,5 @@
1
1
  import { World } from '@chanmeng666/archlang';
2
- import { p as ReplayView, R as ReplayFacts } from './strip-BMxWrvYD.js';
2
+ import { p as ReplayView, R as ReplayFacts } from './strip-DElA8ZbJ.js';
3
3
 
4
4
  /**
5
5
  * The metrics strip's numbers (card G4), read from the core's public `describe()` and `lint()` for
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ResolvedPlan, RWall, Point, JoinedCut, loopsToPolygons, World, Diagnostic } from '@chanmeng666/archlang';
2
2
  export { Point } from '@chanmeng666/archlang';
3
- import { a as Scene3D, F as Floor, P as Polygon, M as Mesh3D, b as Pt, c as Shell, d as Ring3, A as Assumption, e as Furniture, f as ReplayEvent, g as ReplayState } from './strip-BMxWrvYD.js';
4
- export { D as DoorKind, E as EXPLODE_GAP_MM, h as FIXTURE_FAMILIES, i as Fence, L as Level, j as MeshNode, k as Meta, N as NodeKind, l as NodeState, O as Opening, m as Outdoor, n as PHASE, o as Provenance, R as ReplayFacts, p as ReplayView, q as Roof, r as STOP_LEAD, t as Source, u as Stage, v as Stair, S as StripItem, U as Um, W as Wall, w as authoringOrder, x as ease, y as explodeLifts, z as keyFrames, B as stateAt, C as storeysOf, s as stripAt, G as timeline, H as viewLabel, I as viewMesh } from './strip-BMxWrvYD.js';
5
- export { F as FactsOptions, r as replayFacts } from './facts-DMBpeo-q.js';
3
+ import { a as Scene3D, F as Floor, P as Polygon, M as Mesh3D, b as Pt, c as Shell, d as Ring3, A as Assumption, e as Furniture, f as ReplayEvent, g as ReplayState } from './strip-DElA8ZbJ.js';
4
+ export { D as DoorKind, E as EXPLODE_GAP_MM, h as FIXTURE_FAMILIES, i as Fence, L as Level, j as MeshNode, k as Meta, N as NodeKind, l as NodeState, O as Opening, m as Outdoor, n as PHASE, o as Provenance, R as ReplayFacts, p as ReplayView, q as Roof, r as STOP_LEAD, t as Source, u as Stage, v as Stair, S as StripItem, U as Um, W as Wall, w as authoringOrder, x as ease, y as explodeLifts, z as keyFrames, B as stateAt, C as storeysOf, s as stripAt, G as timeline, H as viewLabel, I as viewMesh } from './strip-DElA8ZbJ.js';
5
+ export { F as FactsOptions, r as replayFacts } from './facts-fLIb8sZ2.js';
6
6
 
7
7
  /** The package's own version, stamped into `meta.tool`. */
8
8
  declare const ARCHLANG_3D_VERSION: string;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  sectorBand,
14
14
  slab2d,
15
15
  slabRegion
16
- } from "./chunk-NADV4D3M.js";
16
+ } from "./chunk-DLZMYNAR.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-IQJQDQSC.js";
37
+ } from "./chunk-PJMKP2ML.js";
38
38
  import {
39
39
  END_AZIMUTH,
40
40
  END_FOV,
package/dist/node.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { World } from '@chanmeng666/archlang';
2
- import { M as Mesh3D, f as ReplayEvent, j as MeshNode, a as Scene3D, c as Shell } from './strip-BMxWrvYD.js';
3
- export { R as ReplayFacts, S as StripItem, s as stripAt } from './strip-BMxWrvYD.js';
2
+ import { M as Mesh3D, f as ReplayEvent, j as MeshNode, a as Scene3D, c as Shell } from './strip-DElA8ZbJ.js';
3
+ export { R as ReplayFacts, S as StripItem, s as stripAt } from './strip-DElA8ZbJ.js';
4
4
  import { ReplayOptions } from './replay.js';
5
5
  export { PREVIEW_LABEL, replayPayload, viewBoxOf } from './replay.js';
6
- export { F as FactsOptions, r as replayFacts } from './facts-DMBpeo-q.js';
6
+ export { F as FactsOptions, r as replayFacts } from './facts-fLIb8sZ2.js';
7
7
 
8
8
  /** The viewer and the parts of three.js it uses, as one minified browser script (read once). */
9
9
  declare function viewerScript(): Promise<string>;
package/dist/node.js CHANGED
@@ -19,10 +19,10 @@ import {
19
19
  signedVolume,
20
20
  viewerScript,
21
21
  writeGlb
22
- } from "./chunk-2WKSS3IA.js";
22
+ } from "./chunk-KIRWFAD6.js";
23
23
  import {
24
24
  replayFacts
25
- } from "./chunk-IQJQDQSC.js";
25
+ } from "./chunk-PJMKP2ML.js";
26
26
  import {
27
27
  PREVIEW_LABEL,
28
28
  replayPayload,
package/dist/replay.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { R as ReplayFacts, f as ReplayEvent, M as Mesh3D } from './strip-BMxWrvYD.js';
1
+ import { R as ReplayFacts, f as ReplayEvent, M as Mesh3D } from './strip-DElA8ZbJ.js';
2
2
 
3
3
  /**
4
4
  * The replay's data (card A3), browser-safe: `replayPayload(mesh, opts)` is what a replay carries
@@ -358,7 +358,7 @@
358
358
  "enum": ["door", "window", "opening"]
359
359
  },
360
360
  "doorKind": {
361
- "enum": ["hinged", "sliding", "barn", "bifold", "pocket", "garage", "double"]
361
+ "enum": ["hinged", "sliding", "barn", "bifold", "pocket", "garage", "double", "glazed_sliding"]
362
362
  },
363
363
  "host": {
364
364
  "type": "string"
@@ -71,7 +71,7 @@ interface Wall {
71
71
  /** Ids of the openings whose cut is hosted by this wall. */
72
72
  cuts: string[];
73
73
  }
74
- type DoorKind = "hinged" | "sliding" | "barn" | "bifold" | "pocket" | "garage" | "double";
74
+ type DoorKind = "hinged" | "sliding" | "barn" | "bifold" | "pocket" | "garage" | "double" | "glazed_sliding";
75
75
  interface Opening {
76
76
  id: string;
77
77
  source: Source;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chanmeng666/archlang-3d",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "3D preview of an ArchLang floor plan: a separate package that reads the same .arch source and is checked against the plan.",
5
5
  "keywords": [
6
6
  "archlang",