Repository navigation
feat: agents, scripting and plugins, and the render farm (0.14.0) - #8
Merged
Merged
Conversation
The command groups guide (the paged agent guide embedded in the engine) and link (live links from modelling tools) are reserved as empty modules chained into the catalogue, so the agents phase's builders own their files by path. cargo check -p fsh-commands passes.
The packages app.scripting (the loopback scripting channel for scripts, plugins and live links) and app.plugins (the plugin host) each give an empty router and a lifespan, included in the service, so their builders own them by path. import app.main passes.
./formshot script (setup/script and setup/script.py, also in formshot.bat) is reserved for the Python client, python/formshot is its package, and ./formshot agents sync and check now call two parts of their own, agents_guide (the guide's pages in the rendering skill) and agents_python (the Python client's command reference), which change nothing yet. ./formshot agents check stays clean.
Empty entry modules for the script console and the plugins window join the fixed module list, so their builders own them by path. tsc --noEmit passes.
A materials-only plugin: plugin.json and twelve dyed anodised aluminium presets in the library's format 1 (champagne, graphite, space grey, clear satin, midnight, cobalt, teal, lime, tangerine, ruby, copper, violet), with our own authored values: metallic base in ACEScg, edge tint lifted toward white, a thin clear coat for the sealed oxide. Copied into a user library folder the engine read all twelve with no warnings, applied one, and rendered all twelve thumbnails.
Colourways cycles the selected parts through five colour sets of library materials, each change one batch and one undo step. Render every camera writes one picture per saved camera into a folder or the agent output folder and restores the active camera. Both were run against the engine's dispatch: three parts through five sets, two cameras to two 320 by 180 PNGs.
Auto materials saves a template of globs in English, German, French, Spanish and Japanese over part names, material names and a metadata key, applies or previews it and removes it again, so one undo step and no template left. Mood grades applies seven image grades and a reset through one image.set each, with a strength slider. Both ran against the engine's dispatch: four renamed parts dressed as stainless steel, copper, glass and concrete; warm and cool grades moved the red to blue ratio the right way and reset restored the neutral picture.
plugins/README.md lists the six folders and how to install or copy one. plugins/HASHOUT_LOG.md holds the rationale for each plugin's values and choices, the assumptions about the client API, and what ran and what did not.
setup/script.py runs a file, a line of code or standard input with python/ and the script's folder on the path, in the folder the command was typed in, after checking that a FormShot service answers on the scripting channel. With none it exits 1 and says why; --service starts ./formshot serve --headless detached and waits up to 90 s for it to answer. Ran with the stand-in server: scripts, -c and stdin, no service, a stale discovery file, and --service with a stand-in launcher in a scratch copy of the tree.
./formshot agents sync now writes python/formshot/commands.md, every engine command with its Python call and its arguments (types, ranges, defaults, required), and agents check reports when it has drifted. The committed file comes from the base13 engine (263 commands); it changes once the guide and link groups land. Ran agents_python sync and check, and agents.sync in check mode, with the base13 engine: both exit 0.
python/examples holds render_every_camera.py, dress_by_part_name.py (library presets from part names, one undo step) and batch_export.py (models to several formats, with preview pictures). docs/PYTHON.md describes running scripts, connecting, commands, errors, batches, events, the guide and the live-link helpers. The setup log records the client and what ran. Ran all three examples through setup/script.py against the stand-in server and the base13 engine: two cameras rendered, three presets applied and reverted by one undo, two models exported to four formats.
A service started with FORMSHOT_HEADLESS=1 serves no window files and says headless: true in /api/health. With no window to ask, consent follows the new setting agents.headless (allow by default, or refuse, which keeps reads only). In a headless service every file an outside command reads or writes must lie in the projects folder, the agent output folder (<home>/.formshot/agent-output, 0700), the temporary folder, the material library or FORMSHOT_AGENT_PATHS, and renders and exports sent without a target land in the agent output folder. consent.outside is the one gate for outside engine commands and /api/agent uses it; a window-attached service keeps its rules. The settings agents.headless, agents.mcp_profile and scripting.enabled are validated in settings.json. Ran against the base13 release engine on port 8341: refusals for files outside, relative paths, escaping links and OpenColorIO configs, the default targets for render.still, export.model and render.queue_add, the refuse setting, and window mode unchanged including a prompt released with once.
./formshot serve --headless runs the service without the window and without a frontend build. ./formshot mcp (mcp/server.py, and setup/mcp_stdio.py through the same code) starts a headless service on its port when none answers, and stops that service again when its input ends or it gets SIGTERM, so it never holds the window's port. FORMSHOT_MCP_PROFILE travels as the x-formshot-mcp-profile header. Ran: an MCP session over the bridge's stdio with no service running opened a GLB, applied a library material and a studio preset, set the camera and rendered a picture to the agent output folder; the service was gone after the bridge ended, also after SIGTERM; the profile header arrived at a stand-in server.
docs/HEADLESS.md describes how a headless service starts, the MCP profile header, consent without a window, the folders agents may use, the default output targets, the settings and what has run.
The plugin host of contract E. backend/app/plugins/ reads and checks plugin.json (every path stays inside the plugin folder, links included), lists the user's plugins and the shipped examples, installs from a ZIP, the template or an example, and runs each enabled plugin with code as its own python3 -I process speaking JSON lines, with the scripting channel's port and token from the discovery file when it exists. Enabling code asks the person through the existing consent routes and remembers the yes for that code's hash; a materials-only plugin adds its presets to the library as user presets with no prompt. Logs keep 500 lines, crashes stay in their process, and bus events reach the plugins that asked for them. python/formshot/plugin.py is the author API (commands, events, panels, toast, log, set_panel, a client) and plugin_host.py runs one plugin. Ran against the service on 127.0.0.1:8346 with scratch plugins and a stand-in channel: lifecycle, consent deny and once, commands, panels, events, crash and restart, ZIP refusals and path refusals.
docs/PLUGINS.md gives the folder layout, the manifest and its path rule, the states and what enable, disable, restart, install and remove do, the JSON-lines protocol, the Python API with an example, and the service routes with their bus events. The backend log records why plugins run as threads-driven processes, how consent for code reuses the window's prompt, how material packs become user presets, the install checks, the Python host, and what ran against the service on 127.0.0.1:8346.
A plugin folder to copy: plugin.json with one command, one panel (text, toggle, choice, label and button fields) and one selection event, and plugin.py of 35 lines using p.client, p.toast, p.log and p.set_panel. The manifest was checked against contract E and the handlers were run against the engine's dispatch on the sample template.
docs/MCP.md describes the three profiles and how one is chosen, each formshot_* tool with the engine commands behind it and its hints, the agent output folder, consent per call and the agent.traffic event. Checked against the running service's tool lists.
python/formshot/client.py speaks the local scripting channel with the standard library only: it finds the service through explicit arguments, the plugin environment variables or the discovery file, says hello, and routes replies by id from a reader thread so several threads share one connection and a quick query is not held behind a long render. Every catalogue command is an attribute made at run time (fs.material.assign(...)), batches run as one undo step, events reach callbacks on their own thread, and fs.link gives the live-link helpers. Errors keep the engine's code, and a batch failure its index. The package exports the client from python/formshot/__init__.py. Ran against a stand-in server in scratch that speaks the channel and forwards to formshot-engine dispatch (the real channel is built in parallel): hello, catalogue, out-of-order answers, batch and its rollback, timeouts, a wrong token, a 30 MiB line, events from a second client, on Python 3.11 and 3.13.
The service now listens on 127.0.0.1 on a free port for newline-delimited JSON requests from scripts, plugins and live links (contract A of the agents phase), and writes <home>/.formshot/scripting.json (folder 0700, file 0600) with the protocol, port, a 32-byte hex token, pid, version, headless flag and start time; it removes the file at shutdown only if it is still its own. FORMSHOT_SCRIPTING=0 or scripting.enabled false turns the channel off. Ops: hello, catalogue, command, batch (one history group, abandoned on the first failure, the error carrying the index), guide (help.guide), events (selection, saved, opened, imported, render_finished, document_changed, from an observer on the engine bridge with a poller for queue, import and preview jobs), and link.hello, link.sync, link.camera, link.status forwarded to the engine. A wrong or missing token gets one error and the connection closes; requests on one connection are answered out of order; lines over 64 MiB are skipped with too_large. Changing requests publish agent.traffic and the window's change events; blocked consent refuses the channel. GET /api/scripting (window key) describes it. Ran against the service on 127.0.0.1:8342 with the base13 engine: a scratch client passed 43 of 43 checks (tokens, ops, batch undo in one step, a failing batch undone with index 1, every event kind including polled queue, import and preview jobs, traffic sources script, plugin and link, blocked consent, a 65 MiB line skipped and a 64 MiB line read). Link and guide forwarding were checked by pointing the ops at existing commands in a scratch launcher, since this engine has neither group yet.
docs/SCRIPTING.md describes the channel for any client: the discovery file, the wire, every op, the events and their data, the error codes, consent and the traffic events, the in-service helpers for the plugin host, and a heading pointing at docs/PYTHON.md for the Python client. backend/HASHOUT_LOG.md gains app/scripting in its map and a Scripting channel section with the design decisions, the two changes asked of app/engine.py, and the verification: 43 of 43 scratch client checks against the service on 127.0.0.1:8342, the off switches, FORMSHOT_HOME, file ownership at shutdown, window-made events and the forwarding of guide and link ops.
…files The /mcp endpoint now serves profiles chosen by the x-formshot-mcp-profile header or ?profile= (an agent tab keeps full; other agents get the agents.mcp_profile setting or standard; an unknown name is a -32602 error). New package backend/app/mcptools holds 25 curated formshot_* tools with closed schemas and annotations: guide, scene, nodes, materials, command_help, run, batch (one undo step, undone on the first failure), undo, redo, select, frame, look (a quick render returned as an image), library_search and library_apply (with an optional tint), studio_list and studio_apply (by id or name), camera_set (saved camera, named view, lens, framing as one step), open, import, save, save_as, render (queued, waited for, files and a downscaled image), export, queue and stop. Restricted drops caller-chosen paths, confines open and checks every batch command. Each tools/call publishes agent.traffic on the bus. Ran against the service on 127.0.0.1:8343 with the base13 engine and no window: a scratch MCP client opened a glTF model, applied two library materials, a studio preset and a camera view, looked, rendered a 480 px picture into the agent output folder and read it back, using MCP only; profile counts 88, 288 and 77 tools; restricted refusals, consent with and without a window, and the traffic events were checked.
setup/agents_guide.py, called by ./formshot agents sync and check, copies the engine's guide pages to the rendering skill's references/guide/ and removes pages that are gone. Check reports pages that differ, pages missing from help.guide's page list, and every example that does not name a catalogue command or whose arguments its input schema does not allow (types, required and unknown fields, enums, ranges, lengths, patterns, anyOf and oneOf), with the page and line. The rendering skill's SKILL.md gains one line pointing at help.guide and references/guide/; the .agents mirror carries the same line and pages, as agents sync would copy them. Ran with the catalogue of the engine built from this tree: check before sync reported the 12 pages as drift, sync wrote them (94 examples, 0 problems), check after was clean; with the 0.12.0 catalogue check named the missing help.guide; seven broken examples were each named.
Open a Hand-off gains a Keep in sync box for what it opens, and every row of its list a switch with the link's state beside it (Off, Watching, Change seen, Being written, Updating, Paused while rendering, importing or during an edit, Source removed, Not in this document, App blocked, Could not be read, Updated with the time). Files opened by path that are kept in sync, such as FormCAD's GLB and 3MF exports, are listed too. States arrive as handoff.sync events and are patched into the row in place; an update, an error and a removed source also toast. The list has a fixed height and the sources and empty note keep their space, so the dialog no longer moves when the list loads. Maps without a mesh show the switch disabled. 19 new strings in the handoff namespace. Ran tsc and vite build; in headless Chrome with the CPU throttled 4 times against the service on port 8350, every step through opening, changes, half-written and removed sources, a held edit, a render and the switch off and on showed the expected states with zero layout shift from the dialog.
The native log gains the agent guide section (why the pages live in the engine, how examples are found in the markdown, the practice bottle the examples run on, what ran) with the two new paths in its map and a contents line. The setup log gains the agent guide sync section (what sync copies, what check validates, what ran and what did not) and the script in its map.
The MCP router asked consent with permit() alone, so a headless service applied its allowed folders and default output targets to the scripting route but not to MCP. Catalogue tools now go through consent.outside (blocked, the headless path rule and default targets, then consent), and the curated tools check their path arguments with paths.refusal before asking. The curated tools' agent output folder is paths.output_dir, so both use one folder. import app.main passes.
Four sections appended by builders at the same time ran into the previous section without a blank line after the merge; each now starts after one.
help.guide is a read-only command of the guide group. Without a page it
lists the twelve pages (id, title, summary, example count) and the page
to start with; with a page it answers that page's markdown, its examples
as {name, args} commands taken from the page's fenced json blocks, and
the next page. Unknown pages and fields are refused with
invalid_arguments.
The pages are markdown files under ext/guide/ embedded with include_str:
an index, the rules for agents, a practice bottle every example runs on,
and workflow pages for opening and framing, dressing parts from the
library, studio and lights, camera and lens, render and output, shots
and the configurator, export, live links and scripting, and plugins.
Ran: cargo build -p fsh-cli; every one of the 94 examples dispatched in
order against that engine on the practice bottle (0 failed, queued
renders, the spin export and imports waited to completion); unknown
page, unknown field and a non-string page refused; cargo clippy -p
fsh-commands --all-targets -D warnings clean.
Backend and frontend HASHOUT logs gain the hand-off sync entries: how a link is found and stored, when a change is applied or held, how the nodes are found without a metadata read, the routes, the switch and its states in Open a Hand-off, and what ran against the service and in headless Chrome, with what did not run.
Nine sections of the native log, run together by the 0.12.0 merges, and the new guide section of the setup log each now start after a blank line, as the rest of the logs do.
Adds farm/ru.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Plural forms are avoided with the colon pattern (Ядер: {n}).
Adds farm/zh-CN.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names.
Adds farm/zh-TW.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Wording follows Taiwan usage (算繪, 權杖, 影格, 位址).
Adds farm/ja.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Worker, batch, job and token are katakana loanwords as in other Japanese tables.
Adds farm/ko.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Worker, batch and token are Hangul loanwords as in other Korean tables.
FormShot 0.13.0 closes the Agents phase: a headless service with its own consent and folder rules, MCP profiles with curated formshot_* tools, the agent guide inside the engine (help.guide, formshot-engine guide), a local scripting channel with a standard-library Python client, plugins run as processes with a template and five examples, live links (link.hello, link.sync, link.camera, link.status, link.forget) with a Blender add-on, Keep in sync for hand-offs, a console and Plugins window, render setups by name and a self-test in formshot-engine, translations, docs, and an independent QA pass with its fixes. CHANGELOG.md already carries its section. Version sites moved from 0.12.0 to 0.13.0: VERSION, frontend package.json and the two package-lock.json root entries, version.ts, tauri.conf.json, src-tauri Cargo.toml and its Cargo.lock entry, backend __init__.py, the eighteen native crate manifests and their native/Cargo.lock entries, fsh-py pyproject.toml, the formshot-engine usage line, the current-version lines of README (badge, status with the agents layer, Features, Today heading), CONTRIBUTING, NOTICE, SECURITY, ARCHITECTURE, the harness skill (pack version, all crates), the example export in docs/PREFERENCES.md and the HASHOUT log headers with the src-tauri map line. The README Download line now says the render farm (0.14.0) and the release pipeline (P20) come next. The Blender add-on, the plugin manifests and the docs already carried their own correct numbers. Command counts checked against the engine build: 273 entries (113 document, 38 engine, 107 group commands, 15 aliases), formshot-engine catalogue prints 269. The version line of the tool reference, python/formshot/commands.md and the mirror came from ./formshot agents sync with a 0.13.0 engine. Remaining 0.12.0 mentions are history (CHANGELOG, HASHOUT logged lines, module notes, exit-check paragraphs, the example output of an engine without a guide). Run: cargo build --locked --release -p fsh-cli, cargo clippy --locked on the workspace and on fsh-wasm for wasm32 with -D warnings, cargo metadata --locked in src-tauri, formshot-engine version (0.13.0, catalogue prints 269 and lists help.guide, the five link commands, export.model and material.import_maps), ./formshot agents sync and check (clean), python3 -m json.tool on package.json, package-lock.json, tauri.conf.json and agents/manifest.json, tsc, the app.main import with the backend venv, the harness skill validator (0 FAIL), and the em dash and emoji scan of the change.
… routes The render farm's interfaces for its builders: the fsh-farm crate with its error type, the complete message set (msg.rs), and the public signatures of the wire, token, bundle, worker and dispatch modules, whose bodies answer FarmError::Unsupported. The crate has no engine: the worker renders through a JobRunner that fsh-cli will implement. Its crypto dependencies (chacha20poly1305, x25519-dalek, hkdf, hmac, sha2, getrandom, zeroize) are declared and locked. fsh-commands takes fsh-farm natively only and chains an empty farm group; formshot-engine routes worker and farm to stub modules. Ran: cargo clippy on the workspace and on fsh-wasm for wasm32, both with -D warnings, clean; the frontend type check.
Adds farm/tr.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Token is translated as jeton, batch as toplu iş, worker as çalışan.
Adds farm/id.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Worker, batch, core, slot and Render Farm are kept as loanwords, as in the other id tables.
FARM.md was only the Bundles section. It now opens with what the farm is and a quick start, then covers the workers and the bind rule, the wire with its byte layout (hello, key derivation, confirmations, records and messages), the conversation, bundles, the engine commands and the command line, the window, security, limits and what has run. Each statement was checked against the code of fsh-farm, the farm commands and fsh-cli, and the dispatch builder's text was merged in and corrected where the code differed (the protocol check is made by both ends, the token reply carries action and exported).
The subcommand table gains worker and the farm token, workers and submit forms, and a new section says what each option does, what each exits with and how a batch behaves when a worker does not answer. FORMSHOT_HOME and FORMSHOT_FARM_CACHE_MB join the environment table. Checked against worker_cli.rs, farm_cli.rs and farm_cli/submit.rs.
The crate table gains fsh-farm (native only, no engine) and notes that fsh-cli implements its JobRunner and the worker and farm subcommands; the command groups table gains ext/farm.rs; a new section draws the data flow from the window or farm submit through the dispatcher and the sealed wire to the worker, which renders through setups::render. The port table lists 7740. The command count follows the release catalogue: 280 entries, 276 printed.
The worker may take a network address only through its --bind flag, so the list of what counts now says what a report about it covers: listening off loopback without the flag, accepting a dispatcher without the token, writing outside its cache and spool, unpacking outside the cache, and any appearance of the token. Holding the token and sending a worker projects is by design.
Features gains a render farm entry that says plainly where it has run (loopback addresses, not two separate machines), the Today cell lists the farm, the Planned cell keeps only the release pipeline (P20), the download note drops the farm from what comes next, the port table lists 7740, the docs line links FARM.md, and the command count is 280 with the farm commands named.
A page for the farm: setting up the token and workers, sending a batch from the command line and the window, what happens on the wire and in the cache, security, and the limits and what has not run. Home and the sidebar link to it.
CLAUDE.md lists the ext/farm.rs group beside the others, adds a note on fsh-farm (no engine, native only, the token never on a command line or in a log, the worker as the one socket that may take a network address) and on the window module. AGENTS.md points to FARM.md and says an agent can send a batch with farm.submit without ever seeing the token.
A release engine built from the merged tree ran the real wire, token, bundle, worker and dispatcher on two loopback addresses: 10 of 10 jobs (shots, configurations and a frame range as JPEG) came back, shared between both workers, each byte-identical to the local render of the same project, with the token in no log. Two separate machines and network namespaces stay not run.
A new sub-skill, render-farm, carries the procedure and the gates for the crate, the commands, the worker and farm subcommands and the window. The router gains the farm in its description, state paragraph, layout, subsystem map (fsh-farm, the farm group, worker_cli.rs, farm_cli.rs, ui/farm), dependency graph, the bind law and a routing row; the catalogue count is 280 entries with 276 printed. agent-substrate says how farm commands reach agents, and the evals gain one scenario and four trigger lines. The validator reports 0 FAIL.
The rendering skill gains a workflow for the farm: farm.submit sends a batch, farm.status follows it, and the agent never sees the token and leaves its creation, import, export and the worker list to the person. ./formshot agents sync rewrote the tool reference, its mirror, the manifest and python/formshot/commands.md for 276 commands, and agents check reports the kit clean.
farm.token never answers the token, but export writes it to a file an agent could then read from an allowed folder, and create or import would replace a farm's token. Outside agents, through MCP, formshot_run, formshot_batch, /api/agent and the agent tab, are now refused every action but status. The window and the scripting channel are the person and are not limited.
The farm form read the Final Render store, which refreshes only while Final Render is open, so after another project was opened it showed and would have sent the earlier project's size, samples and folder. Opening Render Farm, document changes while it is open, and Send now reload the store. Found by the P19 QA.
The token store made <home>/.formshot 0755 when it did not exist; it is now made 0700. Pictures that came back kept the spool's 0600; they are now 0644 like a local render's. Found by the P19 test plan writer.
A worker at 32 open connections closed further ones without a word; it now logs the address at most every 10 s. The connect line no longer reads 'dispatcher dispatcher'. Found by the P19 QA.
The ICU4X licence file separates its Unicode-3.0 text from its note with a line holding only U+2014, which made CI's tracked-text scan fail on the regenerated THIRD-PARTY-NOTICES.txt. The generator writes it as a hyphen; nothing else in the file changed.
FormShot 0.14.0 closes the Farm phase: the crate fsh-farm (the farm token, sealed wire records, bundles of a project and its files, the worker and the dispatcher; native only, no engine), the farm.* commands, formshot-engine worker and farm, batches of shots, configurations or frames over several machines, the Render Farm window, translations, docs, and an independent QA pass with its fixes. CHANGELOG.md already carries its section. Version sites moved from 0.13.0 to 0.14.0: VERSION, frontend package.json and the two package-lock.json root entries, version.ts, tauri.conf.json, src-tauri Cargo.toml and its Cargo.lock entry, backend __init__.py, the nineteen native crate manifests (fsh-farm is new) and their native/Cargo.lock entries, fsh-py pyproject.toml, the formshot-engine usage line, the current-version lines of README (badge, status, Features, Today heading), CONTRIBUTING, NOTICE, SECURITY, ARCHITECTURE, the harness skill (pack version, all crates), the example export in docs/PREFERENCES.md, the example replies in docs/SCRIPTING.md and the HASHOUT log headers with the src-tauri map line. The README Download line now says the render farm landed in 0.14.0 and the release pipeline (P20) comes next. The Blender add-on (0.13.0, the version it shipped with), the plugin manifests and the HASHOUT logs of the add-on and the plugins keep their own numbers. Command counts checked against the engine build: 280 entries (113 document, 38 engine, 114 group commands, 15 aliases), formshot-engine catalogue prints 276; README, ARCHITECTURE and the harness skill already said so. The version line of the tool reference, python/formshot/commands.md and the mirror came from ./formshot agents sync with a 0.14.0 engine. Remaining 0.13.0 mentions are history (CHANGELOG, HASHOUT logged lines, module notes, since-0.13.0 docs, the add-on and plugin versions, third-party crate versions). Run: cargo build --locked --release -p fsh-cli, cargo clippy --locked on the workspace and on fsh-wasm for wasm32 with -D warnings, cargo metadata --locked in src-tauri, formshot-engine version (0.14.0, catalogue prints 276 commands and 15 aliases), a two-worker farm smoke on 127.0.0.2 and 127.0.0.3 (farm submit --all-shots, four pictures, both workers used, byte-equal with formshot-engine render --all-shots), ./formshot agents sync and check (clean), python3 -m json.tool on package.json, package-lock.json, tauri.conf.json and agents/manifest.json, tsc, the app.main import with the backend venv, the harness skill validator (0 FAIL), and the em dash and emoji scan of the change.
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: agents, scripting and plugins, and the render farm (0.14.0)
Summary
./formshot serve --headless;./formshot mcpstarts one when nothing answers and stops it when the client ends). In a headless service, agents may use files only in allowed folders, and renders without a target go to~/.formshot/agent-output. MCP clients get thestandardprofile by default (25 curatedformshot_*tools that return pictures, plus read-only commands), orfullorrestricted../formshot scriptand three examples. Plugins run as their own processes: a manifest, consent (deny or once), crash isolation, the Plugins window and five example plugins. A console panel shows typed commands and the traffic of agents, scripts and plugins.link.*) and a FormShot Link add-on for Blender 4.2 and later. Keep in sync re-imports a hand-off from FormSculpt, FormCAD or FormSurface when its file changes. The engine carries an agent guide (help.guide, 12 pages, 94 checked examples). The command line renders a project's setups by name, andselftestchecks every device.formshot-engine workerrenders jobs for dispatchers on other machines, through the same code asformshot-engine render.farm.*engine commands,formshot-engine farm token|workers|submit, the Render Farm window and Render on farm in Final Render.--bindnames another address: the one socket in FormShot that may take a network address..formshotand farm pictures had the wrong file modes.Commits
Oldest first, release commits at the end of each phase. The short hashes change when
formprsigns the commits.Version
v0.14.0, release commit last;
chore(release): 0.13.0closes the agents phase in the middle of the series.Version sites bumped in each release:
__init__.py;The catalogue has 280 entries (113 document, 38 engine, 114 group commands, 15 aliases);
formshot-engine catalogueprints 276. New crates, native only in fsh-farm: chacha20poly1305, x25519-dalek, hkdf, hmac, sha2, getrandom and zeroize, with the crates they pull in (MIT, Apache-2.0 or BSD-3-Clause), listed in NOTICE.md. THIRD-PARTY-NOTICES.txt is regenerated.Checks
The P18 exit, run by the lead and again by an independent QA pass. With no window open, an MCP client on
./formshot mcpstarted a headless service and, with MCP tools only:This passed under the standard and the restricted profiles. The service stopped when the client's input ended.
The P19 exit, by an independent QA pass. Two workers, each in its own network namespace standing in for a machine, shared batches of every shot, every configuration and a frame range. One project had an outside texture and an HDRI. All 20 pictures were byte-identical to local renders of the same jobs. A worker killed mid-job had its job finished by the other worker, byte-identically.
Security.
...--bindis unreachable from another namespace.Agents and scripting.
The window. The console, the Plugins window, the Agents and Scripting page, Keep in sync and the Render Farm window ran in headless Chrome with the CPU throttled 4 times and a slow network, with no layout shift of their own.
Regressions. A plain render is byte-identical to 0.12.0. glb, obj and usdz round trips keep their parts and triangles.
Gates. These all pass:
cargo clippy --locked(workspace, and fsh-wasm for wasm32) with-D warnings;cargo metadata --lockedin src-tauri;tsc --noEmitandvite build;./formshot i18n checkand the module parity check (every new string in 25 languages);./formshot agents check;Not run:
Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.