Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
52d9280
build(apps): the entry asks for an uncompressed rpm, as formcad and f…
nodemode-ai Nov 27, 2026
32d9f4d
fix(view): ctrl+z during a drag or a held part cancels it instead of …
nodemode-ai Nov 27, 2026
7b75b18
docs(spec): find a side-featured part's anti-studs on the body its st…
nodemode-ai Nov 27, 2026
36f2ce3
fix(engine): nudges and typed positions are refused when the overlap …
nodemode-ai Nov 27, 2026
bca3f6b
feat(connect): give a plate with a clip, handle or hinge finger the a…
nodemode-ai Nov 27, 2026
4c491ae
docs(connect): break the body rule's log entry into lines under the r…
nodemode-ai Nov 27, 2026
5e3b399
docs(spec): the grid fallback rounds a side-featured part by its body…
nodemode-ai Nov 27, 2026
69df89b
fix(connect): the grid puts a side-featured part's studs on the stud …
nodemode-ai Nov 27, 2026
e461520
docs(spec): recompute worked example 5, the 1 x 1 plate with a vertic…
nodemode-ai Nov 27, 2026
f6dd531
docs(spec): recompute worked example 6, the plate with a handle gains…
nodemode-ai Nov 27, 2026
c653971
docs(spec): the hinge plates of examples 7 and 8 have anti-studs unde…
nodemode-ai Nov 27, 2026
38f3768
docs(spec): recompute the clip and hinge worked snaps that the new an…
nodemode-ai Nov 27, 2026
e172afd
docs(connect): log worked examples 5 to 8 and the worked snaps before…
nodemode-ai Nov 27, 2026
b33de50
docs(spec): a bar's ref is the side its own part is on (0.6.0)
nodemode-ai Nov 27, 2026
20b3d5b
docs(spec): a clip mates on a bar only with its body turned away from…
nodemode-ai Nov 27, 2026
d28ed19
docs(spec): say how snapping never turns a part reads for a clip held…
nodemode-ai Nov 27, 2026
7db0e71
feat(engine): the switches flip in the engine with snap.toggle, overl…
nodemode-ai Nov 27, 2026
9c2ac6c
fix(window): the angle step key asks the engine to flip it and older …
nodemode-ai Nov 27, 2026
7ee1d20
fix(connect): a clip seats on a bar only with its body turned away fr…
nodemode-ai Nov 27, 2026
950be18
docs(spec): example 6 gives the handle's bars the side of their plate…
nodemode-ai Nov 27, 2026
68c0699
docs(spec): work the 6019 clip plate on the 2540 handle, the case 0.5…
nodemode-ai Nov 27, 2026
583f92b
docs(spec): 8.2 says a clip turned into its bar's part is not a seat,…
nodemode-ai Nov 27, 2026
8432e0d
fix(engine): a start that cannot go on names the folder, the copy or …
nodemode-ai Nov 27, 2026
cf942ea
feat(engine): copy, cut and paste parts as LDraw lines, with paste at…
nodemode-ai Nov 27, 2026
c512a42
feat(strings): words for copy, cut, paste, selecting by kind, pick mo…
nodemode-ai Nov 27, 2026
d593e10
docs(spec): specify pins, pin holes, axles and axle holes, their deri…
nodemode-ai Nov 27, 2026
d5dcec6
feat(connect): derive pins from the pin primitives and pin holes from…
nodemode-ai Nov 27, 2026
89244b1
feat(connect): derive cross axles and axle holes and slide an axle th…
nodemode-ai Nov 27, 2026
8942909
feat(window): ctrl+c, ctrl+x and ctrl+v copy parts as LDraw lines and…
nodemode-ai Nov 27, 2026
62d4e2b
feat(engine): select.by_part_colour and select.attached, from given p…
nodemode-ai Nov 27, 2026
5ccd84e
docs(spec): say where rule G on the body will still be wrong (0.6.0)
nodemode-ai Nov 27, 2026
847a28c
docs(spec): say where a bar's side and a clip's clearance will be wro…
nodemode-ai Nov 27, 2026
a0a8f1c
fix(window): the colour palette and details show whole rows and fit a…
nodemode-ai Nov 27, 2026
2d99f06
fix(window): the model tree and parts list end on a whole row and an …
nodemode-ai Nov 27, 2026
212cf0c
feat(engine): selecting by colour, part, part and colour or attached …
nodemode-ai Nov 27, 2026
e31231e
docs(spec): the right column's sections move in whole rows and the ta…
nodemode-ai Nov 27, 2026
9038c7a
feat(window): the select menu selects by colour, part, both or attach…
nodemode-ai Nov 27, 2026
5e62117
feat(window): the info tab says when the model inside a file is named…
nodemode-ai Nov 27, 2026
4f25173
docs(spec): a body as wide as the outline is not tried again (0.6.0)
nodemode-ai Nov 27, 2026
61f8529
feat(engine): colours.favourite stars or unstars a colour as the pers…
nodemode-ai Nov 27, 2026
2c52c75
feat(window): typing an angle on the pivot dial turns the selection b…
nodemode-ai Nov 27, 2026
2d8b63e
feat(view): a part dragged from the palette into the viewport is plac…
nodemode-ai Nov 27, 2026
5f5bbf7
feat(window): the colour palette's first row shows recent, used or st…
nodemode-ai Nov 27, 2026
04a6b74
docs(spec): recent, used and favourite colours share one row of the c…
nodemode-ai Nov 27, 2026
c8f4926
feat(view): a double click on empty space leaves the submodel, and ct…
nodemode-ai Nov 27, 2026
6d4d6be
feat(strings): words for the projection switch and the colour sampler…
nodemode-ai Nov 27, 2026
1dd2c3a
feat(window): the model tree's rows pack, rename, make independent, u…
nodemode-ai Nov 27, 2026
2aca978
docs(manual): say how to start the app, that the launcher opens no br…
nodemode-ai Nov 27, 2026
789c32b
feat(view): p switches the view between perspective and orthographic …
nodemode-ai Nov 27, 2026
6447755
docs(manual): add a first model, a little car, walked from the empty …
nodemode-ai Nov 27, 2026
39259e3
feat(engine): step.reorder moves a whole step and step.move_to_new pu…
nodemode-ai Nov 27, 2026
8f5b6f6
docs(manual): say the library spells grey with an e and to check a co…
nodemode-ai Nov 27, 2026
ba86580
docs(manual): say what the Save As box starts with (0.6.0)
nodemode-ai Nov 27, 2026
ca7fe1d
feat(window): i is the colour sampler, which takes the clicked part's…
nodemode-ai Nov 27, 2026
f23c0cb
feat(strings): words for the stamp tool (0.6.0)
nodemode-ai Nov 27, 2026
a2ad84d
docs(manual): say what the Save Picture file box starts with (0.6.0)
nodemode-ai Nov 27, 2026
e914e5a
feat(window): c is the stamp tool, holding copies of the selection or…
nodemode-ai Nov 27, 2026
1e2e5f0
perf(connect): skip rule G on a body as wide as the outline before sc…
nodemode-ai Nov 27, 2026
8d397cb
docs(spec): the kinds in the cache key are one set, so any kind's ver…
nodemode-ai Nov 27, 2026
8e741e5
docs(connect): log that the cache key already changes with any kind's…
nodemode-ai Nov 27, 2026
2f124e1
docs(connect): log ten well-known parts' connectors read by eye again…
nodemode-ai Nov 27, 2026
4f75a49
docs(connect): correct what the ten-part entry says about 3062b's rec…
nodemode-ai Nov 27, 2026
858963d
fix(skills): the placing sub-skill no longer says clips and hinges do…
nodemode-ai Nov 27, 2026
67a8950
fix(connect): a part joined on hinges or pins on two different lines …
nodemode-ai Nov 27, 2026
92690ac
ci(desktop): install, freeze and type check the shell on macos and wi…
nodemode-ai Nov 27, 2026
0dcd91f
feat(window): steps and parts move in the steps tab by dragging or al…
nodemode-ai Nov 27, 2026
9cc77e2
docs(connect): part.connectors names the pin and axle kinds its kind …
nodemode-ai Nov 27, 2026
daa5b39
docs(spec): steps can be put in another order and moved to a new step…
nodemode-ai Nov 27, 2026
94cf8a2
docs(manual): add the mouse's back and forward buttons as a way to wa…
nodemode-ai Nov 27, 2026
9fabb04
fix(engine): the self-check names the pin and axle kinds' data files …
nodemode-ai Nov 27, 2026
affbf15
docs(notice): the shell's crates are listed with the versions the loc…
nodemode-ai Nov 27, 2026
4b72117
fix(window): a parts list sorted by colour is saved and copied groupe…
nodemode-ai Nov 27, 2026
f6976e5
docs(readme): say that the launcher opens no browser and list what th…
nodemode-ai Nov 27, 2026
30d3494
docs(wiki): say on the Building page that the launcher opens no brows…
nodemode-ai Nov 27, 2026
589b082
docs(contributing): spell out the commit subject form (0.6.0)
nodemode-ai Nov 27, 2026
8064be8
docs(shell): the macos and windows build read against formcompiler an…
nodemode-ai Nov 27, 2026
51f306b
feat(window): preferences gain a building page with the angle step an…
nodemode-ai Nov 27, 2026
82bfc52
docs(connect): log the side-featured plates seated on a brick from ab…
nodemode-ai Nov 27, 2026
f42ea2e
docs(spec): typing an angle on the pivot dial is decided and built (0…
nodemode-ai Nov 27, 2026
1ee495f
docs(spec): how copy and paste work is decided (0.6.0)
nodemode-ai Nov 27, 2026
c5e3418
docs(spec): the switches flip in the engine (0.6.0)
nodemode-ai Nov 27, 2026
ebb6792
fix(window): the status bar's selection and step words are no longer …
nodemode-ai Nov 27, 2026
b872c7b
docs(spec): count what the 2026-10 library gains of pins, holes and a…
nodemode-ai Nov 27, 2026
ff75690
docs(connect): log the pin and axle kinds' derivation time, the cache…
nodemode-ai Nov 27, 2026
376f4d6
docs(provenance): record the Technic sections of the primitives refer…
nodemode-ai Nov 27, 2026
b2146a0
docs(provenance): map the pin and axle section's source keys PRIM-T a…
nodemode-ai Nov 27, 2026
e52922f
docs(dock): what the dock did in the first desktop build of this vers…
nodemode-ai Nov 27, 2026
5d2bd1f
feat(strings): words for the brush and the select tool key (0.6.0)
nodemode-ai Nov 27, 2026
86c36cc
feat(window): b is the brush, recolouring each clicked part, and v re…
nodemode-ai Nov 27, 2026
c262ece
fix(engine): a paste by offset is refused when its parts would overla…
nodemode-ai Nov 27, 2026
ac7d05f
docs(view): record what orbiting, dragging, turning and a selection b…
nodemode-ai Nov 27, 2026
befcb04
fix(window): the parts list's total is no longer cut in its foot (0.6.0)
nodemode-ai Nov 27, 2026
11530ff
fix(apps): the portal row names what formblocks is offered instead of…
nodemode-ai Nov 27, 2026
0565e2c
feat(strings): words for the move handles (0.6.0)
nodemode-ai Nov 27, 2026
a1fe3fa
docs(spec): break the clip clearance and turning paragraphs into line…
nodemode-ai Nov 27, 2026
747d948
feat(view): m shows move handles that move the selection along one ax…
nodemode-ai Nov 27, 2026
66510d0
docs(spec): a part dragged from the palette is placed at the drop, wi…
nodemode-ai Nov 27, 2026
a65b529
docs(connect): the overlap threshold stays thicker than 1 lldu becaus…
nodemode-ai Nov 27, 2026
d66d16f
docs(spec): a pin or an axle seated in its hole is a fitted pair, no …
nodemode-ai Nov 27, 2026
f3e9975
feat(view): a drag with the brush recolours every part it crosses as …
nodemode-ai Nov 27, 2026
9364390
fix(window): the right column's dividers come in the tab order where …
nodemode-ai Nov 27, 2026
3f7345f
fix(window): the colour hues and the thumbnail sizes are one tab stop…
nodemode-ai Nov 27, 2026
801a18c
fix(window): the step chips are one tab stop and the arrow keys walk …
nodemode-ai Nov 27, 2026
1bd92b4
docs(readme): keep the first paragraph to three sentences, say who it…
nodemode-ai Nov 27, 2026
b841e36
feat(view): a move handle under the pointer is drawn wider and gives …
nodemode-ai Nov 27, 2026
6723f83
feat(window): a step row is named with f2 and deleted with delete fro…
nodemode-ai Nov 27, 2026
3c9b7d5
fix(window): preferences pages are one tab stop moved with the arrow …
nodemode-ai Nov 27, 2026
711ff71
fix(window): the status bar switches flip on the engine's side so a q…
nodemode-ai Nov 27, 2026
04c018a
docs(manual): describe typing an angle on the pivot dial (0.6.0)
nodemode-ai Nov 27, 2026
84d64cf
docs(spec): a pin hole of one face is as deep as its bore's wall is d…
nodemode-ai Nov 27, 2026
ae36c57
docs(manual): add copy, cut and paste to copying, deleting and undoin…
nodemode-ai Nov 27, 2026
4f4c817
feat(connect): measure a one-face pin hole's depth by probing for its…
nodemode-ai Nov 27, 2026
527cf9c
docs(manual): add selecting by kind, pick modes, the brush, sampler, …
nodemode-ai Nov 27, 2026
2e614c3
feat(connect): the connectors table adds ref and length columns for a…
nodemode-ai Nov 27, 2026
5400bb1
docs(manual): name the Building page of Preferences (0.6.0)
nodemode-ai Nov 27, 2026
8c34793
docs(manual): describe putting steps in order and the Info tab's note…
nodemode-ai Nov 27, 2026
d4c0420
docs(connect): log the pin, beam, axle and dial run in the window and…
nodemode-ai Nov 27, 2026
e1b4222
docs(manual): add the tree row menu and the pack and unpack keys to s…
nodemode-ai Nov 27, 2026
3487248
docs(manual): describe the colour palette's recent, in-this-model and…
nodemode-ai Nov 27, 2026
47cd355
docs(manual): say the parts list is saved and copied in the order the…
nodemode-ai Nov 27, 2026
e444ca3
docs(manual): add the new keys to the key table (0.6.0)
nodemode-ai Nov 27, 2026
6170f2e
docs(manual): warn that Ctrl+A inside a text field selects the parts …
nodemode-ai Nov 27, 2026
6b64a69
docs(manual): say nudges and typed places obey the overlap check and …
nodemode-ai Nov 27, 2026
9f6629b
feat(skills): add a clipboard sub-skill to the driving pack (0.6.0)
nodemode-ai Nov 27, 2026
1cbeb50
docs(skills): add select.by_part_colour, select.attached and add to t…
nodemode-ai Nov 27, 2026
e92d30b
docs(skills): add step.reorder and step.move_to_new to the steps sub-…
nodemode-ai Nov 27, 2026
4e53972
feat(skills): add a pins-and-axles sub-skill to the driving pack (0.6.0)
nodemode-ai Nov 27, 2026
bb00b6b
docs(skills): point the clips and placing sub-skills at pins and axle…
nodemode-ai Nov 27, 2026
ba88ad9
docs(skills): name pins and axles as built in the add-connector-kind …
nodemode-ai Nov 27, 2026
8026b74
docs(spec): the compatibility table lists the pin, friction pin, pin …
nodemode-ai Nov 27, 2026
4dffc22
docs(manual): add a Pins and axles section and trim the not-built lis…
nodemode-ai Nov 27, 2026
8e65b2d
docs(spec): left for later no longer lists pins and axles, and names …
nodemode-ai Nov 27, 2026
b47cf5f
docs(readme): say pins, axles, the typed angle and the tools are in, …
nodemode-ai Nov 27, 2026
8e7d51e
docs(wiki): add pins and axles and the typed angle to the Window page…
nodemode-ai Nov 27, 2026
67036ac
feat(connect): give 3709b its three pin holes by override, deep enoug…
nodemode-ai Nov 27, 2026
71d7f47
docs(connect): confirm lane B2's one-line rule for hinge axes in held…
nodemode-ai Nov 27, 2026
bee635b
docs(skills): add colours.favourite to the colours sub-skill (0.6.0)
nodemode-ai Nov 27, 2026
0cb1050
docs(skills): name the toggle and next commands for the three setting…
nodemode-ai Nov 27, 2026
81dbb47
docs(connect): log the whole-library survey of anti-studs, grid place…
nodemode-ai Nov 27, 2026
4ccf677
docs(manual): say plates with a clip, handle or hinge finger seat on …
nodemode-ai Nov 27, 2026
02308d1
docs(skills): add the plate-with-a-side-piece seat and the bar and cl…
nodemode-ai Nov 27, 2026
dc032c9
docs(skills): say the clip turn trial in the third person (0.6.0)
nodemode-ai Nov 27, 2026
a6d702f
docs(log): break the lines over 1000 characters in backend/HASHOUT_LO…
nodemode-ai Nov 27, 2026
4f1e38f
docs(log): break the lines over 1000 characters in backend/app/connec…
nodemode-ai Nov 27, 2026
964b3d6
docs(log): break the lines over 1000 characters in backend/app/ldraw/…
nodemode-ai Nov 27, 2026
5a77be1
docs(log): break the lines over 1000 characters in backend/app/librar…
nodemode-ai Nov 27, 2026
5ee9bfb
docs(log): break the lines over 1000 characters in backend/app/mesh/H…
nodemode-ai Nov 27, 2026
d7caf60
docs(log): break the lines over 1000 characters in frontend/HASHOUT_L…
nodemode-ai Nov 27, 2026
6a7d06e
docs(log): break the lines over 1000 characters in frontend/src/ui/pa…
nodemode-ai Nov 27, 2026
2469ef8
docs(log): break the lines over 1000 characters in frontend/src/view/…
nodemode-ai Nov 27, 2026
4bc3710
docs(manual): split the submodel paragraph that ran past 1000 charact…
nodemode-ai Nov 27, 2026
56fe39b
fix(spec): the 3709b override example gives its holes the depth of 12…
nodemode-ai Nov 27, 2026
e15dec1
fix(shell): a failed start shows the engine's own reason and never ha…
nodemode-ai Nov 27, 2026
65444c0
build(shell): the installers carry license and notice.md and name the…
nodemode-ai Nov 27, 2026
36c34d6
docs(release): say what has been built on each system and that the li…
nodemode-ai Nov 27, 2026
1b993c8
fix(build): build_app finds its bundles in a moved cargo folder and i…
nodemode-ai Nov 27, 2026
d48dd68
docs(shell): log the linux build made as formcompiler makes it, after…
nodemode-ai Nov 27, 2026
ce62b6b
fix(setup): serve and backend say a port is taken before uvicorn star…
nodemode-ai Nov 27, 2026
c0d14fb
docs(apps): keep this version's new lines in the entry and the logs u…
nodemode-ai Nov 27, 2026
d0f889e
docs(manual): add When FormBlocks will not start, with the engine's o…
nodemode-ai Nov 27, 2026
2489b80
docs(readme): name the rpm, say a failed start shows its reason, and …
nodemode-ai Nov 27, 2026
f0ab7f1
docs(manual): the not-proven list names the rpm and the start-failure…
nodemode-ai Nov 27, 2026
2878e8c
docs(wiki): the Building page names the rpm and the start-failure rea…
nodemode-ai Nov 27, 2026
db9c2e4
docs(log): break the lines over 1000 characters in setup/HASHOUT_LOG.…
nodemode-ai Nov 27, 2026
9204a0f
docs(log): break the lines over 1000 characters in src-tauri/HASHOUT_…
nodemode-ai Nov 27, 2026
2b5c5e9
docs(readme): break the status paragraph that ran past 1000 character…
nodemode-ai Nov 27, 2026
5e7e7ba
docs(manual): break the start-failure paragraph that ran past 1000 ch…
nodemode-ai Nov 27, 2026
6157b5a
docs(manual): the manual and the wiki Home say 0.6.0 (0.6.0)
nodemode-ai Nov 27, 2026
844b3c7
chore(skills): both packs say pack-version 0.6.0 (0.6.0)
nodemode-ai Nov 27, 2026
9f0e754
chore(agents): sync the mirrors, the manifest and the command referen…
nodemode-ai Nov 27, 2026
3550c2a
fix(window): ctrl+a, ctrl+x and the other text keys stay with a focus…
nodemode-ai Nov 27, 2026
f265f3e
fix(window): the viewport says it needs webgl 2 when the browser give…
nodemode-ai Nov 27, 2026
a6384b1
docs(connect): the car's eight nested pairs overlap by exactly 1 ldu,…
nodemode-ai Nov 27, 2026
aa23a16
docs(spec): break the three specification lines over 1000 characters,…
nodemode-ai Nov 27, 2026
7bb8091
docs(spec): the connections scope names the pin and axle modules of 0…
nodemode-ai Nov 27, 2026
48b62d6
docs(connect): say beams with holes, pins and axles in our own words,…
nodemode-ai Nov 27, 2026
5f3f324
chore(agents): mirror the driving pack's new pins and axles wording (…
nodemode-ai Nov 27, 2026
44a4407
docs(setup): name formanything's setup wording commit by its subject,…
nodemode-ai Nov 27, 2026
c3decbf
refactor(window): drop the unused next grid step rule the engine now …
nodemode-ai Nov 27, 2026
70188fc
docs(skills): add-connector-kind shows pins and axles: faces joined i…
nodemode-ai Nov 27, 2026
21520af
chore(agents): mirror the harness pack's add-connector-kind page (0.6.0)
nodemode-ai Nov 27, 2026
2cca3dc
docs(manual): what does not work yet names every open row of the edit…
nodemode-ai Nov 27, 2026
bce661f
docs(manual): a double click on a use enters the submodel, as the spe…
nodemode-ai Nov 27, 2026
84e8d0b
fix(window): a palette title shared with an engine command runs the w…
nodemode-ai Nov 27, 2026
5cec33e
fix(window): ctrl+enter and ctrl+shift+enter work while a list row ha…
nodemode-ai Nov 27, 2026
db6a9fa
docs(spec): a divider's up and down keys move one row of the section,…
nodemode-ai Nov 27, 2026
497ed2a
docs(manual): the colour section's divider moves in whole rows from 2…
nodemode-ai Nov 27, 2026
81761e9
fix(window): a status bar notice cut short shows its whole text as a …
nodemode-ai Nov 27, 2026
cfb14bc
docs(assets): retake the screenshot from this version's window (0.6.0)
nodemode-ai Nov 27, 2026
5988e08
chore(release): version 0.6.0 (0.6.0)
nodemode-ai Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .agents/skills/formblocks-driving/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: formblocks-driving
description: "Use when asked to build, stack, change, check, picture or save a brick model in FormBlocks through its MCP tools or ./formblocks cli: a wall, a tower, a house, a table, any LDraw model. Finds parts and colours in the LDraw parts library, places and seats bricks, clips and hinge halves on placements or the ground, builds walls in overlapping courses with plates, tiles and slopes, moves, turns, duplicates and recolours parts, uses the selection and submodels, splits a model into steps and walks them, counts parts and saves the parts list as CSV, saves PNG pictures and reads them back to check a build, checks overlaps, and opens, saves and exports .fblk, .ldr and .mpd files. Covers Claude Code, Codex, Cursor and Antigravity in the agent dock or outside it, and the person's approval, which an agent never gives itself. Includes worked examples, coordinates, error codes and scripts. Not for changing FormBlocks' source code or installing it (formblocks-harness)."
description: "Use when asked to build, stack, change, check, picture or save a brick model in FormBlocks through its MCP tools or ./formblocks cli: a wall, a tower, a house, a table, any LDraw model. Finds parts and colours in the LDraw parts library, places and seats bricks, clips and hinge halves on placements or the ground, builds walls in overlapping courses with plates, tiles and slopes, moves, turns, duplicates, copies, pastes and recolours parts, uses the selection and submodels, splits a model into steps and walks them, counts parts and saves the parts list as CSV, saves PNG pictures and reads them back to check a build, checks overlaps, and opens, saves and exports .fblk, .ldr and .mpd files. Covers Claude Code, Codex, Cursor and Antigravity in the agent dock or outside it, and the person's approval, which an agent never gives itself. Includes worked examples, coordinates, error codes and scripts. Not for changing FormBlocks' source code or installing it (formblocks-harness)."
license: Apache-2.0
metadata:
product: FormBlocks
pack-version: "0.5.0"
pack-version: "0.6.0"
audience: operating agent
---

Expand All @@ -23,6 +23,8 @@ FormBlocks keeps one open model in its engine: submodels holding placements of L
| Clips on bars, hinge halves, hinge plates and bricks, swivel plates, sliding a clip, folding a hinge, part.connectors kinds | `sub-skills/clips-and-hinges/SUB-SKILL.md` |
| Planning a build, walls in overlapping courses, corners, openings, plates and tiles, roofs of slopes | `sub-skills/building-in-order/SUB-SKILL.md` |
| Moving, turning, duplicating, recolouring, hiding, showing and deleting placements, undo and redo | `sub-skills/changing-parts/SUB-SKILL.md` |
| Beams with holes, pins, friction pins, axles, bushes, a brick with a hole, joining beams, turning a beam on a pin | `sub-skills/pins-and-axles/SUB-SKILL.md` |
| Copying, cutting and pasting parts as LDraw lines, repeating a group at an offset, clipboard.copy, clipboard.cut, clipboard.paste | `sub-skills/clipboard/SUB-SKILL.md` |
| Turning parts by any angle, about a point, an axis or a hinge's axis, part.pivot, the angle step, a turn lifted or refused | `sub-skills/turning-parts/SUB-SKILL.md` |
| Moving or copying parts along a pointer ray as the window drags them, part.pick, the scene's axes, resting across a gap, what the person's drags and Ctrl+D do | `sub-skills/moving-parts/SUB-SKILL.md` |
| Reading and setting the selection, selecting by colour or part, showing the person which parts | `sub-skills/selection/SUB-SKILL.md` |
Expand Down
42 changes: 34 additions & 8 deletions .agents/skills/formblocks-driving/references/command-catalogue.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: clipboard
description: Copies, cuts and pastes parts in a FormBlocks model as LDraw part lines with clipboard.copy, clipboard.cut and clipboard.paste. Use when asked to repeat a group of parts somewhere else, move a built unit by a fixed offset, paste parts given as LDraw text, or take parts out of one place to put them down in another, and when a paste is refused or lands on top of the original.
---

# Clipboard

The clipboard holds LDraw part lines: one line per placement, `1 colour x y z a b c d e f g h i part.dat`, in LDraw's axes with -Y up. It is the same text the window puts on the system clipboard with Ctrl+C, so parts copied here paste into other LDraw programs and the other way round. The engine keeps the last copy too, so a paste with no `text` uses it.

## The three commands

| Command | Kind | What it does |
| --- | --- | --- |
| `clipboard.copy` | read | Answers `{text, count}` for the placements in `ids` (the selection when left out). Changes nothing. |
| `clipboard.cut` | change | The same answer, and removes the placements: one undo step. |
| `clipboard.paste` | change | Adds the parts of the lines in `text` (or the engine's last copy) to the step shown of the submodel being edited, keeping colours and the places of the parts relative to each other, and selects them. |

`paste` takes one placing rule:

- `delta` `[x, y, z]`: the whole group moves by that offset in LDU. `delta [0, 0, 0]` puts the copies exactly on the originals, which is almost never what you want; with the overlap check on it is refused: "delta: the copies would overlap p1 by 24.0 LDU with the overlap check on, so nothing was pasted."
- `origin` and `direction` (a pointer ray in the scene's axes), with `held`, `rotation` and `snap`: seat the group the way the window seats copies held under the pointer. Use this to let snapping find the studs; use `delta` when you know the place.

```bash
./formblocks cli run clipboard.copy 'ids=["p1","p2"]'
./formblocks cli run clipboard.paste 'delta=[100,0,0]'
./formblocks cli run clipboard.paste text=nonsense
```

The copy answered `count` 2 and the text of two lines; the paste with `delta [100, 0, 0]` answered two placements 100 LDU along X, in the step shown, with new ids; `text=nonsense` was refused with "text: there is no LDraw part line (a line starting with 1) to paste." and changed nothing.

## Traps

- New ids: the pasted parts are new placements (`p3`, `p4`), never the originals. Read their ids from the answer.
- Paste goes into the step shown and the submodel being edited. Give nothing for them: set the step first with `step.goto`, or move the parts afterwards with `step.move_parts`.
- A paste copies parts, never a part file's own lines, and lines that do not start with `1` are ignored.
- A pasted group is not checked against the parts below unless the person's overlap check is on; read the answer, then `overlap.check`.
- Repeating a unit many times is better done by packing it into a submodel (`sub-skills/submodels/SUB-SKILL.md`) than by pasting copies, because a change then shows in every use.
- From outside the window `cut` and `paste` wait for the person's answer there; `copy` never does.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ The clip's centre is put on the bar's line, and it slides along the bar in grid

A floating bar is put exactly with `part.set_transform`, because `part.place` rounds an unseated part to the grid (the first line answered position `[4, -76, 4]` and `seated` false). With `on`, the clip took the first free stretch of the bar, its centre at y = -70. With a position, a clip whose centre was at y = -41 seated at -50, the nearest place at the Stud step. The clip of `4085c` is at `[0, 4, -20]` in the part's own axes (`part.connectors part=4085c`), so its origin ends up 4 above the clip's centre and 20 behind the bar's line. Always read `seated`, `joined` and `marks` in the answer.

## Plates that carry a clip, handle or hinge finger

From 0.6.0 such a plate seats on studs from above: `part.fit` of `4085c` and of `2540` over a `3001` at `[3, -12, 2]` answered `seated` true at `[10, -8, -10]` and `[0, -8, -10]`, each joined to the brick's studs. A bar's `ref` (read it with `part.connectors part=2540`: `[0, 0, 1]`, the side its own plate is on) and a clip's `ref` (`[0, 0, -1]` for `4085c`) now decide the turn: a clip mates only with its body turned away from the bar's part, and snapping never turns it, so turn the clip first. The second rule is read from the specification; a clip held near a bar high in the air did not seat in either turn when tried, so treat it as not shown working here and check `seated`.

## Seating hinge halves

Snapping never turns a part. Turn the half first so its pivot line runs the way its partner's does, then place it near: it moves so the two lines meet.
Expand Down Expand Up @@ -63,4 +67,4 @@ Two halves joined by a seated hinge answered `count` 0. A clip seated on a bar,

## Not found, not built

A hinge or clip drawn without the library's own pieces is found only where the engine's list of corrections names it (the 1 x 2 hinge brick, the swivel plates, the 1 x 1 tile with a clip); other parts do not snap, so place them by position and say so. Pins, axles, ball joints, a bar into a hole, hinge turning limits, click positions and flexible parts are not built: do not promise them.
A hinge or clip drawn without the library's own pieces is found only where the engine's list of corrections names it (the 1 x 2 hinge brick, the swivel plates, the 1 x 1 tile with a clip); other parts do not snap, so place them by position and say so. Pins and axles are in their own sub-skill (`sub-skills/pins-and-axles/SUB-SKILL.md`). Ball joints, a bar into a hole, hinge turning limits, click positions and flexible parts are not built: do not promise them.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Read the table again when in doubt; a library update can add colours, and the pe
- Recolouring a use of a submodel in colour 16 passes the new colour to the parts inside that are in 16; parts with their own colour keep it.
- `select.by_colour` selects every visible placement in a colour, then `part.recolour` without `ids` acts on that selection.
- `colours.used` (read) lists the colours the model uses, most used first, each with `code`, `name`, `value`, `count` and `known` (false for a code the library does not define): the quickest way to check a build's colours.
- `colours.favourite` (view) with `colour` stars a colour in the person's palette (Starred); `on` true or false sets it, and left out it turns the star the other way. It answered `{colour: 4, on: true, favourite_colours: [4]}` and, run again, `on` false and an empty list. `colours.list` rows carry `favourite`, true for a starred colour. It is the person's setting and changes no part.
- `colours.current` (view) chooses the colour the person's next part from the palette gets. It is the person's setting and recolours nothing; an agent passes `colour` on each `part.place` instead and leaves it alone.

## Choosing colours for a build
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
name: pins-and-axles
description: Seats pins and axles in beams, bushes and bricks with a hole in FormBlocks with part.fit, part.place, part.connectors and part.rotate about the pin. Use when asked to build with beams with holes, pins, friction pins, axles, bushes, or a brick with a hole, to join two beams with a pin, to put an axle through a beam, to turn a beam on its pin, or when a pin or axle will not seat or reads as a different kind than expected.
---

# Pins and axles

Added in 0.6.0. The engine finds pins, axles and the holes they go into from a part's own shape, and snaps them with the same rule as studs and clips: `part.place`, `part.fit` and the window's drags all use it. Read what a part has with `part.connectors` (read; pass `kind` to list one kind).

## The kinds

| Kind | What it is | Pairs with |
| --- | --- | --- |
| `pin` | A round shaft that turns freely in a hole, 20 LDU long for a full pin, 10 for a half pin. | `pin_hole` |
| `pin_friction` | The same shaft with friction ribs. The engine treats it as a pin; it does not hold an angle. | `pin_hole` |
| `pin_hole` | A round bore, 20 deep in a beam. Takes a pin from either face, or an axle. | `pin`, `pin_friction`, `axle` |
| `axle` | A cross-shaped shaft, 80 LDU for an Axle 4. | `axle_hole`, `pin_hole` |
| `axle_hole` | A cross-shaped bore, as in a bush. | `axle` |

A pin does not go into an axle hole, and neither pins nor axles go into studs or anti-studs. A pin hole takes an axle and lets it turn. Parts whose pins or holes are drawn without the library's own pieces are not found: place those by position and say so.

## Joining two beams with a pin

A pin joined to a beam is seated by its end. Turn the pin first, since snapping never turns a part: `3673` Technic Pin 1/2 has a pin at each end, and with the matrix `0 1 0 / -1 0 0 / 0 0 1` its first end points down.

```bash
./formblocks cli run part.place part=32524 colour=7 'position=[0,0,0]'
./formblocks cli run part.set_transform id=p1 'position=[0,0,0]'
./formblocks cli run part.place part=3673 colour=4 'position=[1,-13,2]' 'rotation=[0,1,0,-1,0,0,0,0,1]'
./formblocks cli run part.place part=32524 colour=7 'position=[2,-24,-41]'
```

Run here: the pin answered `seated` true at `[0, -10, 0]` with one joined pair and a mark at `[0, 10, 0]`, and the second beam seated at `[0, -20, -40]`, joined to the pin. The first line rounded the beam to `[9, -2, 9]` (an unseated part goes to the grid), hence the `part.set_transform`. `overlap.check` answered `count` 0 and `nested_count` 0: a pin fitted in a hole is joined, not an overlap.

## Turning a beam on its pin

`part.pivot` on the second beam answers kind `hinge`, about `[0, -20, 0]` along the pin; give both to `part.rotate`.

```bash
./formblocks cli run part.pivot 'ids=["p3"]'
./formblocks cli run part.rotate 'ids=["p3"]' 'axis_vector=[0,1,0]' 'about=[0,-20,0]' angle=45
```

The beam turned 45 degrees to `[-28.284, -20, -28.284]` and `overlap.check` still answered `count` 0. A beam turns all the way round on a pin; turning limits are not built.

## An axle through a beam

An axle is seated on a hole's line and slides along it in grid steps from its middle.

```bash
./formblocks cli run part.fit part=3705 'position=[1,-7,2]' 'rotation=[0,1,0,-1,0,0,0,0,1]'
```

Run here against the same lone beam: `3705` Axle 4, turned upright, answered `seated` true at `[0, 0, 0]` (the beam's middle hole), mark at `[0, -40, 0]`. Unturned, the same call answered `seated` false: the axle must run along the hole. A bush turned to take it was fitted at `[1, -48, 2]` and answered false in this run, with no axle there; seating a bush on an axle is described in the specification (`spec/CONNECTIONS.md`, example 11) and not run here.

## Reading and failures

- `part.connectors part=32524` lists seven `pin_hole` entries, each `length` 20.
- `part.connectors part=3705` lists one `axle`, `length` 80.
- When a pin or axle does not seat, check the turn first (axis along the hole), then the distance (within the snap reach of the hole), then that the hole is not already taken.

## Not built

Ball joints and sockets, gears meshing, flexible parts, other scales' pins (the Scala pin), turning limits, friction as a held angle, and click positions on axles. Do not promise them.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Read `references/coordinates-and-units.md` first if positions in LDU with -Y up
- A stud is the round knob on top of a part, 4 LDU high, on a 20 LDU grid.
- An anti-stud is a place on a part's underside that takes one stud: the gaps between the walls and tubes of a brick, or the inside of a tube.
- A part is seated when its anti-studs sit on another part's studs (or its studs in another part's anti-studs). Seating is how real bricks hold together, so a model built of seated parts is one that could be built.
- FormBlocks finds these connectors from each part's own geometry; `part.connectors` lists them for any part. Only ordinary studs and anti-studs exist in this version: pins, axles, clips and hinges do not seat.
- FormBlocks finds these connectors from each part's own geometry; `part.connectors` lists them for any part. Studs and anti-studs are the ordinary joins; clips on bars and hinge halves seat too (`sub-skills/clips-and-hinges/SUB-SKILL.md`). Pins and axles seat in holes (`sub-skills/pins-and-axles/SUB-SKILL.md`); ball joints do not seat yet.

## The ground

Expand Down Expand Up @@ -41,7 +41,7 @@ With snapping off (`snap: false`), the part goes exactly to the position, seated

Snapping never turns a part. To seat crosswise, give the turned `rotation`.

Snapping, the grid step and the overlap check are the person's settings: `snap.set` (`on`), `grid.step` (`stud`, `plate` or `fine`) and `overlap.set` (`on`) change them for every later placement, in the window too. Pass `snap` on one call instead, and change a setting only when the person asks.
Snapping, the grid step and the overlap check are the person's settings: `snap.set` (`on`), `grid.step` (`stud`, `plate` or `fine`) and `overlap.set` (`on`) change them for every later placement, in the window too. `snap.toggle`, `overlap.toggle` and `grid.next` flip or step the same settings from the engine's own state, which is what the window's keys use, so two quick presses end where they began; prefer the `set` forms, which say the end state. Pass `snap` on one call instead, and change a setting only when the person asks.

A fourth way to say where is a pointer ray, as the window drops the ghost: `part.place_at_ray`, in the scene's axes. It also rests a part on what lies under its whole footprint, so a plate dropped over an open gap lies across the parts either side. `sub-skills/moving-parts/SUB-SKILL.md` covers it.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Selection commands are `view` commands: they change what is shown, never the mod
| `select.invert` | none | Every visible placement that was not selected, letting go of the rest. |
| `select.by_colour` | `colour` | Every visible placement in that colour, or in the colours of the selection when left out. |
| `select.by_part` | `part` | Every visible placement of that part, or of the parts of the selection when left out. A printed part counts as a different part. |
| `select.by_part_colour` | `ids` | Every visible placement that matches one of the given placements, or of the selection, in both its part and its colour. |
| `select.attached` | `ids` | The given placements, or the selection, and every visible placement joined to them through seated connectors, however far the chain goes; a use of a submodel joins nothing. |

`select.by_colour`, `select.by_part`, `select.by_part_colour` and `select.attached` also take `add` (true): the matches are added to the selection instead of replacing it. In a model of two stacked red and blue 2 x 4 bricks, a red 2 x 2 plate on its own and a red 2 x 4 brick elsewhere, `select.attached` for the lower brick answered both stacked bricks and nothing else, and `select.by_colour` for red answered the three red parts.

## Rules

Expand All @@ -45,6 +49,7 @@ So you can follow what they tell you (`spec/SPEC.md` 6.1):
- A click selects one part; a click on empty space or the ground clears the selection. Shift+click adds a part; Ctrl+click (Cmd on macOS) adds it or takes it away.
- A drag that starts on empty space draws a selection box. Left to right selects the parts wholly inside it, right to left every part it touches. Shift with the box adds; Ctrl adds the parts not yet selected or, when all are, takes them away. Esc while drawing drops the box.
- A drag that starts on a part moves it, or the selection it belongs to (`sub-skills/moving-parts/SUB-SKILL.md`).
- Q goes through the pick modes a click uses (one part, same colour, same part, same part and colour, attached), and the Select menu has the same four kinds; each reaches the engine as the matching `select.*` command.
- Ctrl+A selects all, Ctrl+I inverts, Esc clears. Rows of the Model, Steps and Parts tabs select their parts too.

The box needs the view, so it has no command: an agent selects by ids or by kind. Every selection the person makes reaches the engine as `select.*` commands, so `select.get` always answers what the window shows.
Loading
Loading