Repository navigation
feat(agents): formats, export, clipboard, desktop fixes and agent tools (0.8.0) - #4
Merged
Merged
Conversation
…ted text (0.7.0) Copy As and paste need one place that asks the engine for SMILES, CXSMILES, molfile, InChI, SMARTS, CDXML and reaction text, and that recognises pasted native data, reactions, SMARTS and every text format the parser reads. It prefers the new export route and falls back to the older per-format routes.
Clean-up, normalise, salt and solvent removal, largest fragment, reionise, neutralise, canonical tautomer, isotopes, stereo and explicit H run in one fixed order and each step reports what it changed, for the CLI and the Standardize dialog alike.
…orm fallbacks (0.7.0) Copy puts native data, HTML, text and pictures on the clipboard at once; the asynchronous Clipboard API is used where it is allowed and a copy event carries the text flavours where it is not, so the desktop webviews still get native data.
…e through the export modules (0.7.0) Copy as PNG and SVG and paste of pictures reuse the offscreen picture renderer and the embedded-source reader of the export work; the adapter finds them at build time so the clipboard builds before they land.
…transaction (0.7.0) The selected fragments are standardised together so a drawn Na+ next to a benzoate counts as a salt; atoms keep their ids and places, changed ring systems get fresh Kekule bonds, hydrogens are pinned only where the drawing would read them wrong, and emptied structures leave the page.
…n (0.7.0) POST /api/analysis/standardise takes a drawing and its fragments (or one fragment) plus the steps and answers the step report, the SMILES before and after and the transaction, applied when asked, like the other 0.6.0 analysis edits; GET lists the steps with their methods.
… work (0.7.0) SD, SMILES, CXSMILES and InChI stream in chunks straight to RDKit molecules with a reason for every record that fails, and the other formats go through the existing readers, behind one iter_records name so the 0.7.0 format readers can replace it in one line.
…l style (0.7.0) Batch rendering runs without a window, so RDKit's SVG and Cairo drawers are set to 14.4 pt bonds, 0.6 pt lines, 18 percent double bond spacing and Arimo labels at 10 pt; SVG is sized in points and PNG is 300 dpi with its resolution recorded.
…s a fragment (0.7.0) Descriptors for thousands of file records must not rebuild a drawing per record, so the 0.6.0 property code is split into measure (a molecule) and compute (a fragment), with the window's answers unchanged.
…anvas (0.7.0) The canvas answers the copy, cut and paste events and the Edit commands: copy writes every flavour, paste picks the richest one that parses and lands at the pointer or the view centre, selected, as one undo step, and Paste Special lists what the clipboard holds.
The dialog lists each way to paste with its detail on one row and marks the chosen one with the accent tint.
…0.7.0) The Edit commands were text-field only with 0.7.0 placeholders for Copy As; they now act on the drawing when no field has focus, carry their usual shortcuts for the menus, and the placeholders give way to the real Copy As commands.
…0.7.0) Copy As now lists SMILES, CXSMILES, molfile, InChI, InChIKey, SMARTS, SVG, PNG and CDXML in one place, so Copy as SMARTS moves there from the end of the Edit menu.
…groups and reactions (0.7.0) Duplicate copied atoms and bonds into bare fragments, dropping stereo groups, R-group definitions, styles and the reaction steps bound to the copies; it now shares the remapping paste uses.
…d report (0.7.0) convert_file and batch stream records through the optional standardise steps into the target format, spread large files and folders over worker processes, and log every failed record with its number, name and RDKit's own reason instead of stopping.
…an image folder (0.7.0) Both reuse the record stream, the worker pool and the report of conversion: descriptors take the 0.6.0 property set with SMILES, name, InChI and rule counts as columns, and rendering writes one SVG or 300 dpi PNG per record named by its number and title.
…mmand line (0.7.0) python -m app.cli runs the engine's chemistry in-process with no server: it resolves paths from the caller's folder, prints one summary line with the timing, lists failed records or writes them to --errors, and exits 1 only when nothing was written and 2 on bad arguments.
A conversion that wrote nothing used to leave a zero-byte file that a later batch run would read as an empty input.
With 10 pt labels on 14.4 pt bonds a bond between two labelled atoms, such as S-S, all but vanished; half the padding keeps it visible and closer to the window's 1.6 pt margin.
Both start the engine's command line in the backend venv from the caller's folder, so relative input and output paths mean what the person typed.
…m (0.7.0) The four commands go straight to the engine's command line in the venv, and the usage text says what each takes, how failures are reported and when the exit code is non-zero.
….7.0) The engine refuses commands by the enabled state the window last mirrored, which lags behind pastes and keyboard edits, so an agent could not copy a page it had just filled; an empty page now answers with a short note instead.
The Windows twin hands its whole command line to convert.bat, so comma lists such as --props mw,clogp and --standardise=all reach the engine intact instead of being split by cmd.
…pt (0.7.0) Edit Paste and Paste Special read the clipboard through the Clipboard API; WebKitGTK refuses script clipboard access and WebView2 asks on every read unless the webview enables it, which wry only does when asked (macOS WKWebView always allows it behind a user gesture).
A module of its own beside analysis-api keeps the shared client untouched while other 0.7.0 work edits it; it reads the step list once and the step report, SMILES and transaction of each run.
…ies nothing (0.7.0) WebKitGTK hands the paste event an empty DataTransfer when the clipboard holds a picture, while the Clipboard API reads it as image/png, so a keyboard paste of a picture in the Linux desktop app did nothing.
… preview (0.7.0) Each change of the checklist asks the engine again, so the dialog shows per step what it would change and the SMILES before and after without touching the drawing; Apply returns the steps, which are remembered for next time.
Steps sit in a three-column grid with their outcome in the ok or danger ink, the SMILES preview keeps its height while the engine answers, and the status line reserves its space so nothing jumps.
…(0.7.0) Without steps it opens the dialog; with steps (from an agent or ./formchem cli) it runs at once; either way the engine's transaction is committed as one undo step after checking the drawing did not change meanwhile.
…7.0) Two one-line edits in shared files: the registration beside the other chemistry commands and Standardize... after Check Structure.
Adds part10 and part11 for de so the agent activity and tool result texts appear in German.
Adds part10 and part11 for it so the agent activity and tool result texts appear in Italian.
Adds part10 and part11 for nl so the agent activity and tool result texts appear in Dutch.
Adds part10 and part11 for da so the agent activity and tool result texts appear in Danish.
Adds part10 and part11 for fi so the agent activity and tool result texts appear in Finnish.
Adds part10 and part11 for nb.
Adds part10 and part11 for sv.
Adds part10 and part11 for ru.
Adds part10 and part11 for pl.
Adds part10 and part11 for cs.
…DE.md and AGENTS.md (0.8.0)
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): formats, export, clipboard, desktop fixes and agent tools (0.8.0)
Summary
./formchem convert,batch,descriptorsandrender(10,000 SD records to SMILES in about 1 s with per-record reasons), Structure > Standardise, File > Import into the open drawing. The engine's mirror of enabled commands updates right after edits; Cut, Copy, Paste and Select All are system menu items on macOS../formchem agents token, written byagents install; stdio sends it itself).Commits
Oldest first, release commits last in each phase. Short hashes are left out because they change when formpr signs.
Version
v0.8.0 (release commit is last; v0.7.0 is the release commit at the end of phase 7). Version sites bumped: frontend/package.json, both fields of frontend/package-lock.json, frontend/src/version.ts, backend/app/init.py, src-tauri/Cargo.toml, the formchem entry of src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the Flatpak metainfo release line, the README badge.
Checks
npx tsc --noEmit,./formchem build, compileall andformchem_engine.py --selfcheck(formchem 0.8.0, rdkit 2025.09.3, indigo 1.49.0),cargo check --lockedin src-tauri (Linux with WebKitGTK 2.52): pass../formchem i18n check(26 languages),setup/agents.py sync --check,setup/notices.py --check(fontTools 4.69.1 MIT added), bash -n on the shell scripts, no em dash in markdown, no emoji in changed files: pass. god-tier-skill-creatorvalidate_skill.pyon both packs and both mirrors: PASS.--selfcheck; one-folder start to address 0.55 s against 1.5 s one-file.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.