Skip to content

v1.70.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 21:24
· 184 commits to main since this release
83903eb

Nothing is breaking in the library API or the command line, and no plan that compiled before stops compiling. One new code, hence the minor: the lint warning W_CORRIDOR_DRAWN_INSIDE (the catalogue grows from 279 to 280 codes). No new statement or keyword, no new sheet-level statement, and src/index.ts is unchanged. score --taste (and taste()) reads two more criteria, R38 entrance room and R39 bedroom hierarchy, with the advice codes A_NO_ENTRANCE_ROOM and A_BEDROOMS_EQUAL_SIZE (coverage.weight.total 12 → 14). finish stands a kitchen's hob between two worktops, and the shipped kitchens now do. Fixes: W_ROOM_OVERLAP sees rooms with the same outline, W_STAIR_NO_LANDING reads outdoor ground as floor, dims auto no longer prints a phantom size for a facade turned slightly off the axis, and a browser bundle that imports the core no longer trips on the PNG and PDF backends' font lookup. Which outputs move, and on which plans, is in each entry below. @chanmeng666/archlang-3d 0.11.0 ships alongside: breaking for this 0.x package (the contact shadows and their exports are removed), with glass glazed_sliding doors and no seam lines across one floor finish.

Fixed

  • W_ROOM_OVERLAP reports two polygon rooms with the same outline, and a rectangle room that fills one arm of an L room: every corner and edge midpoint of each lay on the other's outline and no edge crossed, so the exact polygon test read them as apart, while two identical rectangles were reported (backlog SR.26). A run of edge longer than 1 mm (for an arc-edged room, longer than its curve's sagitta) that two shapes share with their insides on the same side of it now counts as overlap; two rooms either side of a shared wall, or meeting at a corner, still do not, and neither does an outline that doubles back along the other's edge (a spike, or a leg that snaps or evaluates to zero length), which reads as the outline the compiler accepts, nor a room refused as self-intersecting: a stretch they share with their insides on opposite sides vetoes it, even one under 1 mm (a spike drawn up the other's edge in short pieces). The same test decides W_OUTDOOR_OVERLAPS_ROOM, so an outdoor surface with the same outline as a room, rectangle or polygon, or one filling an arm of an L room, now raises it. Two shapes that each pass through the other's corners are still read as apart, and a sliver thinner than 1 mm along a shared edge reads as overlapping (SR.26a). compile(), describe(), lint(), taste() and finish() are byte-identical on every tracked plan.
  • A browser bundle that imports the core no longer trips on the PNG and PDF backends' font lookup. Next.js next dev --turbopack failed every page whose client bundle reached the core with Module not found: Can't resolve '../../assets/fonts/Roboto-Regular.ttf', and plain webpack 5 failed its build with Can't resolve '../../assets/fonts' after listing the 503 KiB font as an asset to bundle. Both read the lookup's new URL(…, import.meta.url) as an asset to bundle. The lookup now builds its URLs with the URL of the lazily imported node:url, which Turbopack (Next.js 15.5), webpack 5.113 and Vite 6.4 do not read: next dev --turbopack, next build and plain webpack now build with no resolve error and no font in their output, and Vite, which was never affected, still puts no font in its output. A Vite consumer still has to mark the optional backends (clipper2-wasm, @resvg/resvg-js) external, as before. Under Node the font is still found next to the built chunk (dist/assets) and in the repository source (assets/fonts). compile(), describe() and lint() are unchanged, and the playground's bundle code is the same (some chunk names re-hash).
  • dims auto reads the overall size of a side that has no wall parallel to it from the walls as drawn, so a facade turned slightly off the axis no longer prints a phantom size (card RM9.37). Each wall segment facing that side is read on its own two drawn faces, clipped to the measured span, where its face line used to be extended past the wall's end: the card's repro (a 4 m square turned about 1°) printed 15500.32 and now prints 4272.48, a true 1° square printed 15528.87 and now 4271.67, and 0.1° printed 118613.06 and now 4206.99. Where a corner's mitre stands past the measured span, the clip trims its tip, so the figure can fall short of the drawn outline: the repro's drawn outline is 4273.47, and a 4 m square of 200 mm walls turned under 2° is up to 1.23 mm short (exact at 0° and from 2° up). A single wall leaning off an otherwise orthogonal plan is short by about half the wall's thickness times the lean's slope (2.5 mm at 100 mm in 4 m, 10 mm at 400 mm), which is the figure it printed before. How the walls are grouped into statements no longer changes the figure. Witness lines are drawn as before, so the page can still be several times the building: 16.5 m by 17 m for the repro's 4.3 m square, against 342 m by 343 m before. describe() and lint() are unchanged over the corpus; drafting-layer codes may change off it.
  • W_STAIR_NO_LANDING reads outdoor ground as floor: an exterior stair whose foot lands on paving, or whose head lands on a balcony, no longer reports "there is no floor". Every surface but water counts, and where surfaces overlap the one drawn last decides, as for what a door opens onto. Ground has no walls, so it counts only as deep as it covers the middle half of the flight's width, measured on its shape: a 600 mm strip under a 1000 mm landing reports "the floor ends 600 mm past the bottom step", and a path narrower than that band, or ground that begins some way past the step, reports "there is no floor"; for ground the hint says to extend it or move the stair. Only a landing that stands on no room's floor reads the ground, so an interior stair is judged as before however much ground lies round the building. On a plan whose stair lands on such ground, the rules that share the landing see it too: W_FURNITURE_ON_STAIR reports furniture standing on it, W_SWING_OVER_STAIR a door leaf sweeping it, finish keeps furniture off it and repair moves furniture off it, and describe(src, { facts: ["clearances"] }) gives that landing its measured clear_mm (with by: null when the ground covers it) instead of 0 with by: { kind: "no-floor" }. Found by the 2026-11 HABS probe (RM9.31). compile() is byte-identical on every plan; describe(), lint() and finish() are byte-identical on every shipped example.
  • The 1.69.0 note on ResolveCtx.evaluate overstated which wrappers are honoured. A plugin that wraps a built-in element and replaces one of the context's two evaluator members is honoured only while the other is still the compiler's own; that covers a wrapper that replaced the old eval member with a function of its own, as before 1.69.0. It does not cover a wrapper that hands the old member the compiler's evaluator from another resolve: the built-in then evaluates with evaluate, where before 1.69.0 it used the old member (in the pinning test, a column sized by a let draws this plan's 300 where it drew the other plan's 600). Nor does it cover two wrappers that each replaced a different member: the built-in uses evaluate. The language reference now says a wrapper should replace both members with the same function. Nothing in the compiler changed; compile(), describe() and lint() are byte-identical on every plan.

Added

  • score --taste (and taste()) reads a fourteenth criterion, R39 bedroom hierarchy, in the geometry subscore, with the advice code A_BEDROOMS_EQUAL_SIZE (card RM9.21). In a home of two bedrooms or more it reads the largest bedroom, by net floor area, against the others: another bedroom of the same net floor area as describe() prints it, to 0.01 m², or a rectangle drawn alike (the same width and depth, either way round, the walls round them making the net areas differ), scores 0; a largest bedroom larger than every other scores 1. Its source is the nationally described space standard (2015), 10(e), read on gov.uk: one double bedroom must be at least 2.75 m wide and every other double at least 2.55 m. ArchLang's own reading is that the standard so recognises a principal bedroom, and that the plan should draw one bedroom larger than the rest. Only equality is judged: the standard gives no ratio, and its least areas (7.5 m² for a single bedroom, 11.5 m² for a double) need the bedspaces, which a plan does not say, so no size is used and the advice never names an area to make a bedroom. A home is read from the storey as the rooms reached from one another without going outside, so the houses of a terrace are judged apart. Not judged: a plan where a bedroom's home has no living, dining or kitchen room or has two kitchens (home-unclear, a new skip reason: a bedroom wing entered from outside or by its own stair, a bedroom with no door, two flats off a common corridor drawn inside the building), except a sleeping floor: a storey with no living, dining or kitchen room whose bedrooms are one home, that a stair or lift stops inside, on a plan with a day room on another storey and at most one kitchen on the other storeys, read as the bedrooms of the house below; a home with a room that is a bedroom and a day room at once (uses bedroom living) as large as its largest bedroom (mixed-bedroom, a new skip reason: that room may be the main bedroom); a plan whose bedrooms stand on more than one storey (no-dwelling, until dwellings are declared); a plan that reads as non-residential; and a plan where no home has two bedrooms. Bedrooms that are meant to match (a house share, two main bedrooms) say so with keep equal width and keep equal depth naming them, by one statement or a chain, and holding as drawn: that home is not judged (kept-equal, a new skip reason); a broken keep, of any grade, is not read. It is advice: lint() and describe() never read it, the drawing does not change, and repair and finish move no area for it. Every report gains the R39 entry and its weight (coverage.weight.total 13 → 14). Over examples/** it reports A_BEDROOMS_EQUAL_SIZE on two plans, bungalow (two bedrooms of 3000 × 4800) and courtyard-house (two of 5500 × 3000), and validate --taste <profile>'s next (and the MCP validate tool's, given taste) now names it on both, where it named A_DOOR_OFF_CORNER.
  • score --taste (and taste()) reads a thirteenth criterion, R38 entrance room, in the circulation subscore, with the advice code A_NO_ENTRANCE_ROOM (card RM9.20). It reads the room the main entrance opens into, one door in: a living, dining or kitchen room with no entry, hall or circulation use scores 0, and a hall, foyer, entry or corridor (or any room that is not a day room) scores 1. Which doors it reads: (a) when describe().access.mainEntrance names a door on any storey (the door preview --review marks), that door alone, on the lowest storey that names one; (b) otherwise the entrance candidates, and the doors of a tie, on every storey whose access basis is not upper-storey, so a front door above a basement with no door out, or above a garage storey whose only door is a garage door, is the one read; (c) never a door onto the roof of a storey below that buildingGround().notWayIn rules out, nor a door onto an outdoor balcony; (d) when nothing is left, or a storey read in (b) is entered by a cased opening (a doorway with no leaf, which the choice never names), it is not judged (no-main-entrance). When more than one door is read (a tie, or candidates on two storeys), every one is, and doors that read differently are not judged. A room written uses living entry is a sitting room that is also the entrance room and passes, the message saying it "also serves as an entry": that is how a plan says the door opens into the living room on purpose. Any room with an entry, hall or circulation use passes whatever its size. Not judged: a plan that reads as non-residential, a plan with no living, dining or kitchen room and a studio whose one habitable room, counted over every storey, is the room entered (both too-few-items), and a landing room with no classified use (no-uses, a new skip reason beside no-main-entrance). The depth, one door in, is ArchLang's own choice: the source, Alexander's A Pattern Language pattern 130 (entrance room), read in the 1977 edition, gives no depth for the indoor part, and no foyer size is assumed for any country. It is advice: lint() and describe() never read it, and the drawing does not change. Every report gains the R38 entry and its weight (coverage.weight.total 12 → 13). Over examples/** it reports A_NO_ENTRANCE_ROOM on eight plans (accessible, attached, garden-loft, laneway-house, sheet-notes, studio, terrace-row and themed), each a front door straight into the living or living-kitchen room. Because these plans lint clean, validate --taste <profile>'s next (and the MCP validate tool's, given taste) now names A_NO_ENTRANCE_ROOM on accessible, laneway-house and studio, where it named nothing, and on garden-loft, terrace-row and themed, where it named A_DOOR_OFF_CORNER, A_DAYLIGHT_LOW and A_SINGLE_ASPECT.
  • Lint warns W_CORRIDOR_DRAWN_INSIDE when the only way in reads as the balcony because a corridor, hall or entry with no door to the outside opens only into the dwelling (card RM9.6, coverage class CV16; plan-soundness PS2.42): most often the building's common corridor is drawn as a room inside the dwelling's exterior walls, or the dwelling's own entrance has no door out drawn. It reports when every door to the outside on the storey opens onto an outdoor balcony, no stair or lift arrives on it, and a room whose every use is entry, hall or circulation, whose label names no store, utility room or place of work ("Hall Cupboard" and "Entry Closet" are not read), that holds no stair, lift or escalator (the room describe().verticals[].room names) and has no door to the outside, opens only into one other room by a door with a hinged leaf. That door reads as an inside door: describe().access.entrances lists only the balcony door, the floor area counts the corridor, and the privacy rules cannot judge the plan (the lint coverage report says balcony-only-entrance). The warning is at that door, once per door; its hints say to draw the corridor outside the walls (for example as outdoor paving) with the front door on the exterior wall, or to draw the room's door to the outside, leading with the second for an entry or hall. It reports and does not re-read the room as the way in, so describe() and every other rule are unchanged, and so is the lint coverage report outside the plans it reports on. A plan that reads as non-residential is declared (non-dwelling), not judged. It is a validity-layer warning: it fails validate --strict and lint --strict where it appears, and caps a taste() score at 0.5. Over examples/** it reports nothing.

Changed

  • archlang finish stands a kitchen's hob between two worktops where the room allows: once a room's pieces are proposed, it lays them out again as sink, counter, stove, counter (then the fridge), each abutting the next, so a cook has a landing either side (the NKBA Kitchen Planning Guidelines, guideline 17: 12 in, 305 mm, on one side and 15 in, 381 mm, on the other). The same second pass moves a bathtub out of the WC access zone, 1100 mm deep in front of the pan and 350 mm either side of its centreline (Approved Document M vol 1, Diagram 2.5); a basin or a shower may stand in it. The second layout is kept only when it holds every piece the first holds and raises no code the first does not; otherwise the room is furnished exactly as before. The W_ROOM_NO_FIXTURE and W_ROOM_MISSING_DEFINING hints quote a kitchen's hob the same way, between two counters written against <room>.<edge> offset …, and keep a quoted piece out of a WC's access zone; where neither fits they quote the set they quoted before. Over the repository's plans, compile(), describe() and lint() are byte-identical except those two codes' hint text; finish output moves on 14 test plans, none under examples/, and in each room keeps every piece it placed before.
  • The shipped kitchens give every hob a worktop to land a pan on either side (card RM9.6, coverage class CV11; NKBA Kitchen Planning Guidelines, guideline 17: 12 in, 305 mm, on one side and 15 in, 381 mm, on the other). In 17 examples/*.arch plans (20 hobs: terrace-row's four units share one), the docs/overview.md copy of laneway-house and two docs-site fences (floor-plan-with-a-coding-agent, vs-mermaid) the stove stood beside a sink, a fridge, an oven or bare floor on at least one side; in four more (courtyard-house, furnished-flat, imports, practice-office) it stood at the end of its run against a wall. Each now stands between two counters, by a counter added or moved beside it, or the stove moved along its run; the playground's "Flat with one thing to fix" sample gets the same edit and keeps its one finding. Every landing is at least 381 mm except three of 305 to 380 mm (tiny-house 350, whose 2.5 m galley also holds a sink, now a 600 mm single bowl, and a slimline fridge; courtyard-house and furnished-flat 350, beside a wall or a window). No room, wall or opening moved. In each plan lint() is unchanged apart from the byte spans after the inserted lines, compile().diagnostics likewise, describe() differs only in the furniture it lists and the furniture counts, and the drawing only in the kitchen run. The README and docs/overview.md playground links and the committed example SVGs are regenerated.
  • The archlang-brief-to-plan and archlang-edit-plan skills end with one taste review once the plan is clean, as the umbrella archlang skill already did: archlang score plan.arch --taste generic --json and archlang preview plan.arch --review (plan.review.png), run once each. The final report lists the score with the weight it judged, each A_* advice code and the review sheet, and says the advice is not an error: the agent does not iterate on it, and the user decides. In archlang-edit-plan the review also runs on a plan whose strict check fails only on warnings it carried before the edit, and the agent does not fix those just to make the check clean. Both skills note that archlang explain does not know A_* codes.
  • The archlang-brief-to-plan and archlang-export skills end their report with the way to the 3D preview: the playground link (archlang link plan.arch, or the MCP link tool) opens the plan where the user switches to 3D and can download a GLB, and from a shell with Node 20+ npx -y @chanmeng666/archlang-3d view … --replay or build … writes it with the separate @chanmeng666/archlang-3d package, which the core does not depend on. The skills call it a preview of the plan, not a design or construction file. packages/archlang-3d/test/docs-site.test.ts holds each such command to the package's own command table, required flags included. The OpenAI plugin ZIP (npm run build:openai-plugin) pins that command to the 3D package's version, as it pins the core CLI's.
  • The archlang-brief-to-plan skill checks a brief for a home against a short list before it writes the plan: an entrance with somewhere for coats, a wardrobe in each bedroom, a place for laundry, storage, and the number of bathrooms. For each item the brief does not mention, the agent writes down the assumption it takes (draw it or not, and why) or asks the user; when it cannot ask, it draws per the assumption, and the final report lists every such assumption. The skill gives no sizes for these items, an assumption never changes a number the brief states, and nothing in the compiler checks the list (no new diagnostic). The plugins' copies of the skill are regenerated.

Shipped alongside

  • @chanmeng666/archlang-3d 0.11.0 (packages/archlang-3d/CHANGELOG.md): the replay no longer draws contact shadows, and the exports contactShadows, contactFade, CONTACT_SHADOW, contactBandMm, the types ContactShadows, ShadowClass and ShadowLayer, and the replay payload's shadow fields are removed with them (breaking for this 0.x package, hence the minor); a door glazed_sliding is built in glass in a frame, as the plan draws it, where it was an opaque panel; and the 3D preview no longer draws a line across the floor where two rooms of one finish meet with no wall between them. Its core peer range stays ^1.61.0.
  • @chanmeng666/archlang-mcp 0.2.55, re-pinned to ^1.70.0. Its baked spec gains the north line's bearing in degrees, and its README no longer mentions contact shadows; the tools, their descriptions and their count are unchanged.
  • VS Code extension 0.56.4 (editors/vscode/CHANGELOG.md): rebundles this core.
  • @chanmeng666/arch-plan is unchanged at 0.1.2 (the <arch-plan> element served from archlang.uk loads this core) and @chanmeng666/archlang-font-cjk at 1.0.0.