Repository navigation
feat(build): turning by the pointer, clips and hinges, and a quiet overlap check (0.5.0) - #5
Merged
Merged
Conversation
…thout it fails (0.5.0)
The frozen engine's --selfcheck printed {"python": ..., "fastapi": ..., "uvicorn": ..., "pydantic": ..., "ptyprocess": "0.7.0", ... "data_files": "ok"} with no word about numpy: nothing it imports reaches app/mesh, the only numpy user, so a freeze that lost numpy passed. numpy is now imported and reported, and a missing one fails the check and the freeze. Checked: ./formblocks freeze, whose last step printed "numpy": "2.5.4"; the frozen engine's cli part-mesh 3001 on the scratch library gave 700 triangles; no LDraw file is in src-tauri/engine.
The status note and the agents paragraph each ran past 1000 characters on one line; each now breaks at a sentence. No wording changed. Checked with a line-length count over every markdown file the lane owns.
…haracters (0.5.0) The driving description line was 1005 characters and the harness one 1037, over the limit for a markdown line. Each lost a few phrases that the sub-skill table below repeats; both still pass validate_skill.py with no failure and no warning.
… dial, the angle step and the engine's lift and overlap rule (0.5.0) SPEC.md 5.2 gains a decided-in-0.5.0 block: one flat ring about the up axis by default and three with the pivot tool, the pivot answered by the engine (box centre, or a hinge's axis), steps of the angle step with Shift for whole degrees, the turn previewed in place and sent as one part.rotate, Esc putting it back, a turn never ending below the ground, and overlaps refused as for a move. Not run: a document change.
…turns and settled to six places otherwise (0.5.0) turn_by takes a quarter turn's cosine and sine from a table so its entries are exactly 0, 1 and -1; settle takes the nearest rotation and rounds to six places; settle_place rounds a position to three. Checked in process: four quarter turns about Y gave the identity exactly, two 45 degree turns gave the quarter turn exactly, 360 one degree turns drifted 1.6e-5.
…and correct the icons note (0.5.0) Checked against the family's two release guides: the release commit is last and moves every version site, merges are merge commits, nobody creates a compile branch by hand, and the notes use the guide's headings and leave the file table to the tool. The note that the icons did not exist was stale; they are in src-tauri/icons. No private name was added. Not run: a release.
…drawn (0.5.0) The icons exist in src-tauri/icons and assets/app-icon. Read against the tree.
… one server is asked for (0.5.0) The table named 0.1.x, which never was the latest. The network section said nothing at all while the README and the library card say the app asks library.ldraw.org when the person asks; both now say the same thing. Read against README and spec/LDRAW.md.
…, as the person's setting (0.5.0) SPEC.md 5.2 (decided in 0.5.0) makes the angle step one setting, 90 at the first start, kept like the grid step. Checked in process: 22.5 and 45.0 were taken (45 as 45), 30 refused with the list, a fresh data folder answered 90.
…model.info (0.5.0) model.info answers counts.colours, counts.overlaps through overlap.check, missingParts, and leaves the parts list out with table false; GET /api/doc/info runs the command. Checked on an engine at 9240 with the sample car against a count by hand of placements, colours and steps, and with a model holding a part the library lacks.
…tab as the right_column setting (0.5.0) The window stored the divider heights in local storage only. right_column holds the colour palette's and details panel's heights, the folded sections and the tab shown, checked for shape by the engine. Checked on an engine at 9240 with PUT /api/settings: a good value kept, a bad height refused.
…, folding headers, bounded palette (0.5.0) SPEC.md 1.2 now says which section grows, the least and greatest heights from tokens, folding to headers, what happens when the column is too short, and that the layout is kept in the engine's settings and restored before first paint. Written before the window work; not run.
…ift off the ground and refuse an overlap, and answer the pivot (0.5.0) part.rotate takes angle and axis_vector beside quarter_turns and axis, defaults to the centre of the placements' box, and runs placing.turn: lift by real triangles, overlap through the overlap check's own function. part.pivot (read) answers the point and axes in both axes; angle.step (view) sets the setting; placing.hinge_of is the hinge hook. Checked in process with the 2026-10 library: four quarter turns exact, a grounded 3001 tipped and lifted 6 LDU, a turn into a neighbour refused.
…server is asked (0.5.0) Read on a first start with no library, in headless Chrome: the card says 147 MB at the last check before Ask the server is pressed, not unknown. Every other line of the first-start section matched the card.
…say what it shows (0.5.0) SPEC.md 13.1: where the panel lives and why, the editable name, description and author with their commands, the read-only file, format and library updates, the counts including colours, missing parts by number and overlaps, and that the engine counts every value. Written before the window work; not run.
…odel.set_info (0.5.0) SPEC.md 13.5's table had none yet for both and named set_info's parameters as they were planned; it now names the built ones and model.info's table switch. Not run.
…gions (0.5.0) SPEC.md 1.1 still said the middle panel had two tabs; it has Model, Steps, Parts and, from this version, Info. Not run.
…dividers (0.5.0) NAMES.md named an About tab that was never built and would be confused with the About FormBlocks dialog; the model information is the Info tab. The right column's sections, folding and dividers get names for the 0.5.0 layout. Not run.
…it at POST /api/place/turn (0.5.0) The window's pivot dial asks it once per step reached while dragging; it runs the same placing.turn that part.rotate runs on release. Checked on 9230 with the 2026-10 library: a grounded 3001 tipped about X answered lifted 6, a 58 byte request and a 336 byte answer.
…at, and that quarter turns are never rounded (0.5.0) LDRAW.md gave no precision for type 1 lines. Positions after a turn are held to three places, as FormBlocks' own lines are; matrices of other turns to six, since three would bend a long part; quarter turns are exact. Checked on 9230: four quarter turns about Y of three parts (one at 22.5 degrees) and four about X of the same parts in the air each saved byte for byte the same file.
…ep, 90 degrees first (0.5.0) Follows the 5.2 decision of 0.5.0: one setting for the dial's step and Alt with R, T and Y. Not run: a document change.
…rning by it in the key map (0.5.0) Section 18.2 follows the 5.2 decision of 0.5.0. Not run: a document change.
Section 18.3 follows the 5.2 decision of 0.5.0. Not run: a document change.
…eatest heights and a header height (0.5.0) The palette 232 px (196 to 440), the details panel 204 px (148 to 204, its whole content), the tab section at least 300 px, a section header 28 px; the two split minimums go, the layout module reads these instead. Values chosen from the palette's and details panel's measured parts at 1440 by 900; checked with the window in the following commits.
…lance (0.5.0) Section 21.2 lists every catalogue id; angle.step is new in 0.5.0. Not run: a document change.
…ere the command interpreter reads it (0.5.0) Failure: a Claude Code tab opened with a first message ran cmd.exe /c claude.cmd ... -- <message> when the program found is a .cmd file, so & | < > ^ and %NAME% in the message were read by the command interpreter and a line break ended the command (the fault FormAnything recorded for 0.4.0). Through the interpreter the message is now typed into the tab once the program has printed and gone quiet; elsewhere it stays an argument after --. start_words refuses a .cmd or .bat start whose arguments hold a character the interpreter acts on, and Chat goes through the same check. Checked on Linux with a recording stand-in and a hostile message in a folder named 'odd & 50% folder', both paths. Not run on Windows: no Windows here.
…nce (0.5.0) Section 21.2: part.pivot answers what the pivot dial turns about. Not run: a document change.
…the pivot (0.5.0) Our own words for the 5.2 decision of 0.5.0; none taken from another product. Not run: a document change.
….5.0) Words for the section headers, their fold and open buttons, and the note on a section folded for lack of height; the tab section's region label names information too. Used by the layout module in the next commits; checked with the type check there.
…hree with the pivot tool (0.5.0) Follows the 5.2 decision of 0.5.0. Not run: a document change.
…ng, hinges and model information (0.5.0) The driving pack's evals stopped at the approval case. The new cases cover a 45 degree turn, opening a click hinge, and reading and setting model information, each with what a correct answer does, taken from the runs behind the three new sub-skills. evals.json parses (11 evaluations, 21 trigger tests) and the pack still validates with no failure and no warning.
…ESSAGE or an owner-only file, and starts the program on windows as the dock does (0.5.0) Failure: ./formblocks claude "-p ..." passed a dash-led message as an option, and on Windows a message could only travel on a command line cmd.exe reads. The message now has its own sources and is placed where each program reads a first prompt (-- for Claude Code and Codex, agent -- for Cursor's agent, --prompt-interactive= for Antigravity); on Windows the command comes from windows_start.py, refusing before anything is written. Checked on Linux with recording stand-ins for all four and a hostile message, a 0666 message file refused, and the Windows path taken on Linux with npm and pnpm shims. Not run on Windows: no Windows here.
…e engine without call, and the arms keep the caller's folder (0.5.0) Reasoned, not run (no .bat can run here): setlocal alone inherits delayed expansion when the registry turns it on, which drops a ! and what follows from a message; mcp still went through call with %2 to %9; and setup/claude run directly started the program in the repository, not the person's folder. Every arm and engine batch file now uses setlocal EnableExtensions DisableDelayedExpansion, the launcher runs mcp with %* directly, and the arm twins and shell scripts set FORMBLOCKS_CALLER_DIR when unset. Checked: setup/claude --print-config from a scratch folder named that folder; bash -n on the four scripts.
…engine.py mcp as the server, which node programs can start (0.5.0) Reasoned, not run (no Windows here): the arms and agents install named formblocks.bat mcp, and Node refuses to spawn a .bat without a shell (EINVAL), so Claude Code, Codex and Cursor's agent could not start FormBlocks' server on Windows. The Windows command is now backend\venv\Scripts\python.exe with backend\formblocks_engine.py mcp; macOS and Linux are unchanged. Checked on Linux: the engine started that way from another folder answered initialize and listed 72 tools.
…ow windows starts them (0.5.0) Two lines in the 0.5.0 run: the first message's three sources and each program's placement, checked with recording stand-ins; the Windows start through npm and pnpm shims and the engine's Python as the MCP server, exercised only by making the code take its Windows path on Linux.
… hinges as future work (0.5.0) Clips, bars and the hinge families are built, so the trigger description names only what is still to add. The harness pack validates.
…indow showed (0.5.0) cargo check clean in 5 min 32 s; install --lite, install-desktop and desktop build --config as formcompiler runs them, unsigned, deb and appimage: 26 min 15 s to compile, deb 50.0 MB (58.4 before the freeze fix), AppImage 121.5 MB. Under Xvfb the unpacked deb started its frozen engine, drew the window and the WebGL viewport through Mesa's software renderer, opened the sample car, and closing it ended every process. macOS and Windows not run.
…t showed (0.5.0) Taken from the shell's log of the build, which names the sizes, the virtual display and that macOS and Windows were not run.
….5.0) Same facts as the README, with what was not run named.
….5.0) The not-proven list said no desktop build had been made. One has, on Linux, unsigned; macOS, Windows, signing and the updater have not.
…eeze must carry (0.5.0) The sub-skill said no Tauri build runs on the check machines. One did; it now says where the record is, what the self-check imports and what stays unrun.
Two harness sub-skills, the README status paragraph and one manual paragraph each held a line over 1000 characters. Only line breaks changed.
… with the packs (0.5.0) Written by ./formblocks agents sync after the new turning-parts, clips-and-hinges and model-information sub-skills and the 0.5.0 command catalogue. agents check passes.
…(0.5.0) The joined test measured connector to connector, so a clip seated away from the bar's end point was never joined and the overlap check listed the pair as nested. It now measures to the bar's segment for kinds that span. SPEC.md 8.2 names a joined pair fitted and says what nested then means. Checked on an engine with the 2026-10 library: clip plate on Bar 3L went from 1 nested pair to 0; sample car still 0 overlaps and 19 nested, pyramid 0 and 0.
…ot nested (0.5.0) Follows the overlap check's fix: a pair joined by a seated connector is never listed, so checking-a-model and clips-and-hinges no longer give a clip on a bar or two hinge halves as nested examples. Mirrors written by agents sync; agents check clean.
…n with (0.5.0) After Save As to .fblk, model.info kept the library update read at open until the file was reopened. Writing a project file now records the update it wrote in the document's file report, which model.info prefers. Checked on an engine: car.ldr none, after Save As .fblk 2026-10, after .ldr export still 2026-10, reopened 2026-10, model.new none.
…, as specification 5.2 asks (0.5.0) T and Y turned about LDraw's X and Z whatever the camera's direction. The viewport now gives its right and forward directions and the keys take the nearer of X and Z with the sign facing the screen; from the front nothing changes. Type check clean; in headless Chrome a 1 x 2 brick tipped and rolled about the expected axis from the front, right, back and left views.
…, as specification 5.3 asks (0.5.0) Left, Right, Up and Down moved along LDraw's X and Z from every view. They now take the axis nearest the screen's right and the other one into the screen, as T and Y do; the roll and into-screen sign comes from the camera's forward plus up, so the top view keeps a direction. Type check clean; in headless Chrome Right and Up moved a brick by the expected axis from six views, and T and Y turned as before from the four side views.
…the crate's version (0.5.0) The 2.11.4 command line set STATIC_VCRUNTIME, which tauri-build 2.7.4 warns about on every build; the 2.12.5 binary no longer names it, and tauri-build's own default links the C runtime statically on Windows as before. @tauri-apps/api moves from 2.12.4 to 2.12.5 with it. Lock file written by npm install; NOTICE rows updated. Checked with npx tauri info and the type check; no full desktop build or Windows build was run.
…the others (0.5.0) data_files covered stud.json, overrides.json and categories.json only; clip.json and hinge.json, new in 0.5.0, now count too. Checked with ./formblocks freeze and the frozen binary's --selfcheck: data_files ok, modules ok, all five files in the bundle.
…e the overlap check is on (0.5.0) Specification 8.1's mark was unbuilt. The window asks overlap.check (real overlaps only) when the switch turns on and after each change, and the viewport washes those parts' faces toward the background with warning-coloured edges, patching only the instances that change. SPEC.md 8.1 says how it is drawn. Type check clean; in headless Chrome two overlapping bricks were marked and a third was not, and O off cleared the mark.
…ted clips and hinges joined (0.5.0) Follows the window's warning-colour mark and the overlap check's fitted pairs: the manual no longer gives hinge halves as a nested example and says how overlapping parts are drawn while the check is on. Both behaviours were seen in headless Chrome and through the engine before this was written.
… an overlap (0.5.0) A clip plate could seat on a plate's handle with its own plate inside the other, and the overlap check skipped it as joined even when on. Joined pairs are now measured by their real solids and reported when they share more than 1 LDU, never as nested; without solids they are skipped as before. Checked on an engine: no joined pair overlaps in the car, the pyramid, 33 cars or a 2,000 part stack (counts unchanged); the bad 6019 seat is blocked at 8 LDU, the turned one seats.
… of a work lane (0.5.0) The hashout entry of the previous fix named the models by the lane that made them, which means nothing in the repository; it now says what they are.
…c reach the held part (0.5.0) Enter in the parts search held the part but left the cursor in the field, so the turn keys typed letters into the search. Choosing a part now leaves a text field inside the palette. Type check clean; in headless Chrome R turned a 1 x 2 brick held from the search and the search kept its text.
…he kit's clause 6.18 reads them (0.5.0) One for loop tested the first word against the four programs; the validator reads arms as "%CMD%"=="name" lines and reported none. The first word goes into CMD first and six lines test it; the second argument is still set only after the arms and cli. formapp.py validate: 0 MUST failed, 0 SHOULD not held, 83 clauses. The .bat was not run: nothing here runs one.
A real picture of the window at 1440 by 900 in headless Chrome with the official library: the sample car open, the right column in its three sections and the Info tab showing 61 placements, 7 colours, 8 steps and 0 overlaps. The old picture showed 0.3.0. Nothing in it is edited.
Version 0.5.0 at every site: src-tauri/tauri.conf.json, Cargo.toml and Cargo.lock, frontend/package.json and both fields of package-lock.json, frontend/src/version.ts, backend/app/__init__.py, the README badge, the wiki's Home page, the manual's two mentions, both packs' pack-version with their mirrors written by agents sync, and the 0.5.0 section of CHANGELOG.md. Ran after the bump: ./formblocks version (0.5.0), agents sync then agents check (clean), the Form App Contract checker (0 MUST failed, 0 SHOULD not held, 83 clauses checked), the type check, the window build, cargo metadata --locked, and a boot on scratch ports with the sample car open and the status bar reading 0.5.0. Not run: any .bat, Windows, macOS, a desktop build after the bump.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(build): turning by the pointer, clips and hinges, and a quiet overlap check (0.5.0)
Summary
part.rotatetakes an angle and an axis;part.pivotandangle.stepare new. Four quarter turns leave a saved file byte for byte as it was.model.info..batwas run.part.connectors), numpy's libraries were packed twice, the package had the template's description. The Tauri packages now match the crates (2.12.5).Commits
Oldest first, release commit last. Hashes are left out because signing changes them.
Version
v0.5.0 (the release commit is last). Sites bumped by hand:
src-tauri/tauri.conf.json,src-tauri/Cargo.toml,src-tauri/Cargo.lock,frontend/package.json, both fields offrontend/package-lock.json,frontend/src/version.ts,backend/app/__init__.py, the README badge, the wiki's Home page, the manual's two mentions, both packs'pack-version(mirrors written byagents sync), andCHANGELOG.md.Checks
Run on Linux after the last commit:
./formblocks version(0.5.0);./formblocks agents check(clean); FormAnything'sformapp.py validateon this repository (0 MUST failed, 0 SHOULD not held, 83 clauses checked); the type check and the window build;cargo metadata --locked; the registry's eight checks on a throwaway submission naming the release commit, read with--sourceand formcompiler, formadaptor and formportal checkouts (all eight pass). With the bump in place: a boot on scratch ports with the official LDraw library (fetched into scratch, never committed) and a headless Chrome walk at 1440 by 900 under a 4x slower processor and a slow network: the sample car opened, the Info tab reading 61 placements, 7 colours, 8 steps and 0 overlaps, layout shift 0, no console error. By the lanes and the reviewer: a brick turned by each step about each axis, a clip plate seated on a bar, a hinge half folded with the pivot dial, a brick turned 45 degrees into another and reported, the right column dragged and folded, the Info tab edited, saved and reopened, at 1440 by 900 and 1280 by 720 with the dock closed, at the bottom and at the right; layout shift 0 on a hard reload and without recent input (with input, where a person folds a section, up to 0.093);./formblocks freezeand the frozen engine's self-check; the Linux desktop build (deb 50.0 MB, AppImage 121.5 MB) and a start under Xvfb. Claude Code 2.1.332, Codex 0.172.0, Cursor 2026.11.22 and Antigravity 1.5.18 were real programs, none signed in. Commit audit: 169 commits, author and committernodemode-ai <mackin@nodemode.ai>, no attribution line, no merge commit, the dock module untouched.Not run: any
.batscript, Windows, macOS, a signed-in agent turn, an rpm, a desktop build after the Tauri packages moved to 2.12.5, the workflow on GitHub, a frame time on a real graphics card. No tests were written; the sidecar'sTEST_PLAN.mdhas a section for 0.5.0.Known: 169 commits is under the norm of about 200 (every commit is one real change; none was padded); two commit subjects break the form (
docs: break four lines of 1000 characters or more, with no scope, anddocs(wiki): Building says ..., with a capital letter) and were not rewritten; a plate with a clip, a handle or a hinge finger does not seat on studs from above; at 1280 by 720 the palette's solid colours sit below the fold.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.