Repository navigation
feat(window): mouse dragging, the parts list, pictures and the agent dock for four programs (0.4.0) - #4
Merged
Conversation
….4.0) The menu's notes took the min-content width of a PATH with no space and the menu was taller than a bottom dock, so both were cut by the dock's own overflow. The app's dock stylesheet bounds the menu's height, scrolls it inside itself and lets notes and install lines wrap anywhere. Checked headless at 1400 by 860 with the dock at the bottom and at the right: every row now ends inside the menu and the menu inside the dock.
…ng it, moved parts under their target (0.4.0) The parts list module gains span for the four scopes (whole model, submodel, up to the step, this step), tally with the holders of each pair and an option to count a submodel use as one row, rows that merge moved-to pointers and keep missing parts marked, and table_text, a CSV with a byte order mark, CR LF ends and spreadsheet-safe cells. Checked against the engine on 8343 with the official car and a two-file MPD.
…d text, and save the safe CSV (0.4.0) parts.list takes scope this_step, submodels expand or row, and text; each row has a key, movedFrom, submodel and ids, and the answer says whether its ids are selectable. parts.list_save writes the CSV of partslist.table_text. Checked against the engine on 8343 with the car and a two-file MPD.
…tead of the finder's record (0.4.0) The note in the More agents menu was the whole search record, the engine's PATH included. It is now one sentence naming the kinds of place looked in and the override variable; the record stays in said and looked. Checked: report(fresh) in-process for the four programs, Claude Code real and the other three missing.
…icture asked of the window (0.4.0)
POST /api/picture/file writes PNG bytes drawn by the window to a full .png path; POST /api/picture/answer/{id} takes the window's answer to a picture the engine asked for over the live channel, and GET /api/picture/window says whether a window is connected. Sizes 16 to 8192 pixels are checked from the PNG header. Run: curl on an engine at 8344 with a 20 by 20 PNG, a 4 by 4 PNG, a .jpg path, a relative path, no key, and an unknown answer id.
One line in ROUTERS mounts app.routers.picture at /api/picture. Run: the engine on 8344 answered /api/picture/window.
…d skill, never in the repository (0.4.0) The cursor tab wrote its MCP entry into the terminal folder's .cursor/mcp.json: a tracked file from source, the person's global Cursor list in the desktop build. Cursor and Antigravity now work in agent-tabs/<kind> under the data folder (0700), which also gets AGENTS.md, the formblocks-driving pack under .agents/skills and, for Cursor, .cursor/rules/formblocks.mdc. Checked with stand-ins on an engine at 8341: token by environment for Cursor and by the 0600 file for Antigravity, formblocks_status answered, 401 after close, entry removed.
…its outline (0.4.0) Mesh.body_slabs cuts the body's triangles into 4 LDU slabs from the bottom plane and keeps each slab's x and z extent, merging equal neighbours, so a brick stays one box and a slope gets a staircase under its face. PartShape carries the slabs and the connectors cache moves to version 2 so older records are derived again. Checked on the 2026-10 library: 3001, 3023 and 3068b one slab each, 3039 five, 3823 ten, and a cache record reads back equal.
…window and written by the engine (0.4.0) Both are file commands that check path, size, scale, step and view, ask the window through the picture broker with the document lock released, and write the PNG. With no window open they refuse in one sentence. Run: the five refusals through /api/commands/run on 8344. agents sync was not run (skills/ belongs to another lane).
…y child's environment (0.4.0) An engine started inside a dock tab handed that tab's FORMBLOCKS_TAB_TOKEN to every shell it opened. Both tab variables are now among the secrets base_env removes. Checked in-process with the variables set: only the data folder, engine address and terminal mark remain.
…nts ask the engine (0.4.0) A middleware inside the guard watches POST /mcp and writes each tools/call from an outside agent (not a tab's own token) into a terminal session of kind agent, then its outcome: done, refused with the engine's sentence, or failed. The session is made at the first call and announced on the live channel as terminals. Checked with curl against an engine at 8341 and the tab's replay over its stream.
One line in create_app adds AgentFeed inside the guard, so it sees the caller the guard sets. Checked with an engine at 8341: outside calls reached the agent tab, the routes answered as before.
… overlap check (0.4.0) Two parts whose body boxes meet are now tested slab against slab, so the air over a slope's face and a leaning side no longer count as solid. CONNECTIONS.md says so in The overlap check, with the counts. Run with overlap.check on the 2026-10 library: sample car 21 pairs before, 20 after (4079 over 3021 gone, the wheel in the windscreen 13.7 to 7.5 LDU); the driving pack's house 0 and 0; a 1 x 1 plate over a 3039's face 7 LDU before, none after, while one cutting into the face is still found.
…s (0.4.0) SPEC.md 8.2 and 8.3 named the single box only; they now say a part is also stood in for by slabs that follow its outline, and that hollows and round parts are what can still be refused. Not run: wording only.
part.connectors already answers the slabs in its shape; the printed table now lists them bottom first when a part has more than one, so an author can see what the overlap check compares. Checked: 3039 prints its five slabs under the body box; 3001 prints none.
…e from 16 to 8192 pixels (0.4.0) picture.ts renders the scene into a multisampled target tile by tile, with the scene's, a white or a transparent background, the ground on or off, a step or the whole model, from the person's camera or a named view; extras.ts exposes it with the fade choice, fit to parts and counts; model-scene.ts gains a look that can be set and restored. index.ts binds the extras in one call. Run: tsc, and four pictures of the car written through /api/picture/file in headless Chrome and looked at.
…n the tree is scrolled (0.4.0) A windowed row scroller with row snapping replaces the tree's full list; selection reveals the least scroll, and the list moves by keyboard. Checked headless with 2,000 placements: 15 nodes, one frame per wheel step, the top row at offset 0 after every scroll and key.
…nd post them back (0.4.0) picture-agent.ts answers the live channel's picture requests: it waits until the window has the revision the engine had, sizes the picture from the view times the scale when no size is given, draws it and posts the PNG or the reason it could not. picture-core.ts holds the size and the two posts for the agent and the dialog. Run: tsc; picture.save twice and picture.steps over the pyramid's four steps through the engine with a headless window open, every PNG looked at; and the refusal after the window closed.
…4.0) One import in features.ts. Run: tsc and the engine's picture.save answered by the window.
…atches what the view shows (0.4.0) picture.save sent the number of the step shown, which at the last step faded earlier steps although the view shows the whole model plainly there. It now sends shown and the window uses its own look. Run: picture.save without a step on the pyramid, answered with step shown.
…ne and shade (0.4.0) Four tokens: --view-axis-x and --view-axis-z for the ground's axes, --view-frame and --view-frame-shade for the outline of a picture's frame over the view. Run: tsc (no code reads them yet in this commit).
The tab's name and every label, note, tooltip and command title of the parts list, in one block beside the tabs. Checked with npm run typecheck.
…t (0.4.0) When the seat worked out at the pointer cuts into another part, fit tries the slab tops under the part's footprint from the lowest up and takes the first clear seat, keeping the first answer, the ground included, as the fallback; a plate over the open top of a house now rests on the walls. The rule is a new section of CONNECTIONS.md. Run on the 2026-10 library against the driving pack's house walls: 4 by 6 and 6 by 6 plates aimed at the floor seat on the wall tops, a 2 by 4 brick still stands on the floor, and seven ordinary fits on a lone brick answer as before.
…n (0.4.0) The tab bar and panels are made from one list of three; Left, Right, Home and End move between them and the choice is kept. Checked with npm run typecheck.
… column (0.4.0) Three tokens for the Parts tab: a 40 pixel row that holds two lines, a 32 pixel picture and a 40 pixel count column. Nothing reads them before the parts list lands.
…id (0.4.0) The ground shader adds two lines in the axis tokens, so grid and axes are one switch in the view and in pictures with no extra draw call. Run: tsc and a headless screenshot of the pyramid.
…it selection (0.4.0) Two new blocks, picture and walk, read by the picture panel, the step strip and the view keys. Run: tsc.
A camera outline for Save Picture and two squares, the earlier one dashed, for dimming earlier steps; inline currentColor SVG like the others. Run: tsc.
…ows its newest output (0.4.0) A hidden tab's host was display none, so the terminal emulator kept a stale view of output that arrived while it was hidden. The app's dock stylesheet keeps hidden terminals laid out, invisible and unclickable, over the stage. Checked headless: a background seq 1 30 showed its end and prompt when chosen, and the outside agents tab showed a call made while it was in front.
…rrow the offered tabs by the engine's contract (0.4.0) The adapter calls dock.sync on the live terminals event and when the live channel reopens, and reads /api/terminal/contract at mount to offer only Chat without a PTY library, no Antigravity before 2.2 and the 2.0 set from an engine without the route. Checked: npx tsc --noEmit; headless against an engine at 8341, an outside call added the tab and its lines.
…ad caveat to install and boot (0.4.0) install-and-boot's table now names the four agent program arms and agents sync, check, status and install from ./formblocks help, and says that the reloading engine of ./formblocks backend restarts on other lanes' edits, so a shared tree's check starts formblocks_engine.py, as this lane had to after its window lost the key.
…0.4.0) packages now names doc/partslist.py, cmd/placing.py and every module in services/ as the tree has them (picking, warmer, model_info, agent_lookup, agent_feed, chat). Checked with ls and grep in backend/app; the one upward import found, cmd/commands/picture.py from routers/picture.py, is reported to the lead rather than written into the pack as a rule.
The harness description now names the dock wiring, looking at the window under throttling with layout shift, adding an agent program, the picture round trip and the parts list's rows (it was cut to stay under 1024 characters); pack-version is 0.4.0; the hard stops add the window origin and the non-reloading engine for a shared tree, the shared dock module, and the two consents. The skill creator's validator passes the pack.
…parts list, and widen the harness trigger surface (0.4.0) The harness evals gain three cases with observable behaviour (a new dock program checked with a stand-in, the picture call that waits for consent with no window, a flickering Parts tab measured before and after) and one should-trigger phrase. The skill creator's description auditor gave 6 of 9 phrases covered after the front page change; the description now names boot and ports, flicker and what packages may import, and covers 9 of 9 at 1022 of 1024 characters, score 12 of 14.
…ks and the server (0.4.0) CLAUDE.md named the two mirrors only. It now says, per program, which skills folder, MCP file and instruction file of the checkout it reads, where agents install puts the driving pack for the person (from setup/agents.py user_skills), agents status and the four launcher arms, and how a dock tab and an outside agent reach the engine, with the rule that no agent answers the person's question. Checked with ./formblocks agents status on this machine.
…parts list (0.4.0) Two 0.4.0 facts an agent changing the code must not get wrong: the engine has no renderer, so pictures go through the window and the picture commands need it open; and the parts list is counted in the engine and patched in place by row key in the window. Read from backend/app/routers/picture.py, doc/partslist.py and frontend/src/ui/parts-list.ts, and run on the engine on 8345 with the window on 5345.
… what the driving pack now covers (0.4.0) AGENTS.md gains a table of where Claude Code, Codex, Cursor and Antigravity find the skill packs in the checkout and after agents install (from setup/agents.py user_skills and where_skills, and agents status on this machine), the 0.4.0 contents of the driving pack (pointer moves, walking steps, the parts list, pictures that need the window), and how a dock tab differs from an outside agent, with the rule that no agent answers the person's question. ./formblocks agents check, which requires this file to name CLAUDE.md, ./formblocks mcp and the driving pack, answered clean.
…er asks every time, and what the question shows (0.4.0) Lane B7 added picture.save and picture.steps to the writes that ask outside the model's folder and made the question name the command and its path (c6024e1). Run on a restarted engine on 8345 with the window on 5345: with the model saved in /tmp/b5/m, the first picture there asked and was answered Always allow, the second there did not ask, and one in /tmp/b5 asked again; the question read It asked to run Save Picture, writing to the path.
…outside the model's folder (0.4.0) working-with-the-person named model.save_as and parts.list_save; since c6024e1 picture.save and picture.steps ask every time outside the model's folder too, and the question names the command and its path. Seen on the engine on 8345 with the window: a picture outside the folder asked again after Always allow.
…command and path (0.4.0) Since c6024e1 the question an outside agent causes says which command it asked to run and the file it would write; agent-dock now quotes it as the window on 5345 showed it during this lane's check.
… write always ask (0.4.0) Lane B7 replaced the two names inside Server.writes_outside with the WRITES table (command to path parameter) and made the question carry the title and path; add-command now names the table, read in backend/app/automation/mcp.py.
…nd the parts list rows (0.4.0) selection now says what the person does in the window as spec/SPEC.md 6.1 stands after lanes B2 and B7 (click, Shift and Ctrl, the selection box in both directions with Shift and Ctrl, Esc, a drag on a part moving it), that the box has no command because it needs the view and reaches the engine as select.set, select.add and select.remove (frontend/src/ui/model-view.ts), and that a parts list row's ids may be selected when selectable is true. The select commands and their refusals were run again on the engine on 8345; the catalogue's select area is unchanged.
… part keeps its colour (0.4.0) A one pixel outline covers most of a 32 pixel plate; drawing at twice the size and showing the image at its CSS size halves the lines' weight. Checked headless: the black Plate 6 x 8 in the Parts tab went from an average of 66, 71, 75 to 55, 62, 68.
…tus bar when they end (0.4.0) noticeOver takes a notice back only while that text is still shown; placing takes back what it said when a hold or drag ends. Checked headless: Esc after holding a part left the bar empty, Esc during a drag brought back the hover line; the type check passes.
…it moves to another step (0.4.0) The changes answer for step.move_parts holds the submodel's step lists only; the store and the scene now take each placement's step from them. Checked headless: Shift+, then Shift+. on a brick in step 3 of 3 read 2 then 3 in the Details panel and the engine, with no new step; the type check passes.
…l opens, not only after a walk (0.4.0) SPEC.md 11.2 fades earlier steps at every step; the strip waited for a step change before dimming at the last one, so a model changed look a moment after opening. The switch beside New Step still turns it off. Checked headless: the three-step house opened with its walls dimmed under a bright roof.
…until the server is asked (0.4.0) The card and the consent read about an unknown size; they now say 147 MB at the last check (146,853,687 bytes) and show the server's figure once it answers. The manual's rough edge for it is taken out. Checked in process with no size and with a server size.
…d in this version (0.4.0) The status bar now lets go of Holding and Moving at Esc (4f13458) and a step move shows its new step at once (4bf487a).
… model tree (0.4.0) The Submodels share had no floor and showed half a row at 900 pixels; it now keeps three tree rows. The manual's rough edge for it is taken out. Looked at headless at 1440 by 900: the whole note shows, no layout shift on load.
…r on its tree row, and stop asking the library for a use's name (0.4.0) The view had no double-click and the tree's Enter only selected; both now enter a use. A repeated plain click no longer resends select.set, which was refused after the enter, and the status bar names a use by its submodel instead of requesting /api/parts/base.ldr. The manual's last rough edge is taken out. Checked headless with a packed submodel: hover, double-click, Enter on the row, no failed request; the type check passes.
… Ctrl+J on the Keys page (0.4.0) The Library and agents page had no agent setting and the Keys page left out the dock's chord. Checked headless: the Keys page's first row is the dock's Ctrl+J, the new Open button shows the Outside agents dialog in place of Preferences, no layout shift; the type check passes.
…ice so the command no longer imports a route module (0.4.0) services/picture.py holds what the command and the routes share; the live hub is reached through doc/events' new windows() and to_windows(). Checked on 8347: an outside agent's picture.save through the window, the file route with a 20 by 20 PNG, the window route; ruff's F rules pass.
…wer before asking the person (0.4.0) Parameters are cleaned and a command's registered precheck runs before the question; the picture, parts list and save as commands register theirs, and a question with no window connected is refused at once. Checked on 8347 with no window: eight calls with good and bad arguments each answered within 0.06 seconds instead of after the 120 second wait.
…ery other ray, and say the axes in its summary (0.4.0) part.fit read origin and direction in LDraw axes while part.pick and the at_ray commands take scene axes. Its ray is now turned with mesh.from_scene; position and rotation stay LDraw. The driving pack's moving-parts and coordinates pages say the one rule, and agents sync wrote the mirrors and the command reference. Checked in process: a scene ray straight down fitted a 3001 seated on another; agents check exits 0.
… part.fit's ray is in the scene's axes (0.4.0) 21.2 still named picture.save among the commands not yet in the catalogue; it now has a picture row and only picture.copy stays unbuilt. The pointer ray note at the top records the 0.4.0 decision for part.fit (4dad8fb).
…=1 or --reload asks for it (0.4.0) Every edit under backend/ restarted an engine started by boot_backend, losing the open model's live state and writing a new window key. Both boot script pairs now pass reload only when asked; the harness pack says how to ask and agents sync wrote its mirrors. Checked on 8349: plain, with the variable and with the flag, the engine answered and only the last two watched for changes; the .bat twins were not run.
…del as the app's screenshot (0.4.0) FormAnything's Submit step looks for an image named with screenshot in docs/, assets/, spec/ or the root, PNG, JPEG or WebP of at most 5 MiB, and found none. assets/screenshot.png is a 773 KB PNG taken headless at 1440 by 900 at the end of the 0.4.0 walk: a red house with a door gap and a black roof plate, three yellow bricks, the palette and the Model tab. NOTICE.md gives the parts drawn in it their attribution.
Version 0.4.0 at every site (the README's badge, the window's package and lock file, version.ts, the engine, the desktop shell's Cargo files and tauri.conf.json) and the changelog section. Checked after the change: the launcher prints 0.4.0, the type check and the window build pass, agents check is clean and the contract check reports 0 MUST and 0 SHOULD.
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(window): mouse dragging, the parts list, pictures and the agent dock for four programs (0.4.0)
Summary
model.info.picture.saveandpicture.stepsfor agents, with the window drawing and the engine writing.step.gotofirst, previous, next and last../formblocks claude|codex|cursor|antigravity,agents status, anddocs/AGENT_DOCK.mdwith what was proven per program and how.docs/MANUAL.md, a wiki,assets/screenshot.png, and both skill packs brought up to date through the skill creator's gates.Commits
Oldest first, release commit last. Hashes are left out because signing changes them.
Version
v0.4.0 (the release commit is last). It moves the version sites the 0.3.0 release commit moved and adds the changelog section.
Checks
Run on Linux against the official library in a scratch folder:
./formblocks doctor, the type check, the window build, the engine's self-check,./formblocks agents check(clean), the Form App Contract checker (0 MUST, 0 SHOULD) and the registry's eight checks on a throwaway submission naming the release commit (all eight pass). The window in a headless browser with real pointer events: a house built with the mouse only (three courses, a door gap, a plate landing on 16 studs across the open top), a brick dragged, three box-selected and moved, each undone in one step; the Parts tab sorted and saved, nine hand counts from the library's models matching the CSV; pictures up to 8192 by 8192 read back, the transparent one's alpha checked; the sample car opened and drawn (61 parts in 32 rows); the dock at both sides with a shell tab and the four programs' rows. Layout shift 0 under a 4x slower processor and a slow network across all of it. Claude Code 2.1.332 and Codex 0.172.0 were the real programs, not signed in; Cursor and Antigravity were stand-in scripts.Seen wrong and left for 0.5.0: the overlap check still reports 20 pairs in the library's sample car, mostly hollow parts that sit inside one another by design; at 900 pixels of height the Parts tab shows three rows between the colour palette and Details; in a narrow right-hand dock the shared dock module's tabs are crowded.
Not run: a signed-in agent turn in any program; the real Cursor and Antigravity; any Tauri build; a real graphics card (frame times here are a software renderer's); any
.batscript; macOS and Windows;ci.ymlon GitHub. No tests were written;TEST_PLAN.mdin the planning sidecar says what should be tested.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.