Repository navigation
feat(database): structure databases, lab notebook, live structures, accessibility, HELM and xtb (0.12.0) - #7
Merged
Merged
Conversation
…(0.12.0) The Library folder under the data folder holds library.json and the item files, written atomically with the index last, with the 50-item recent cap and items without kinds removed. Checked with py_compile.
…ders (0.12.0) FormChem never ships these LGPL programs, so the engine looks for them where the person put them, reads --version and says where to get them when missing. Checked with an empty PATH (not found, 14 places looked) and stand-in programs on a temporary PATH (6.7.1 and 3.0.2 parsed).
…he source inside (0.12.0) Items carry SMILES, InChIKey, formula and average mass from the existing perception and mass services, and the molfile or RXN; agents without a window get RDKit pictures with the drawing embedded. Checked on aspirin: C9H8O4, 180.159, the SVG and PNG sources read back.
Reads xtbopt.xyz and its energy comment, the total energy, gradient norm, HOMO-LUMO gap and convergence lines of the xtb log, crest_conformers.xyz and crest.energies. Checked on files written by hand from the documented formats under /tmp/xtb/fixtures: energy -11.391205632147 Eh, gap 12.8457 eV, converged after 2 cycles, two CREST conformers 0.304 kcal/mol apart.
Starring or templating a structure already in the library adds the kind to the existing item instead of a copy; live items are always their own. Checked with a scratch script: 55 recent adds keep the newest 50, emptying kinds deletes the item and its files.
…(0.12.0) Jobs start from the stored conformers (or a fresh ETKDGv3+MMFF94 build) with every hydrogen in the order the 3D services label them, so results map back by index. Checked for ethanol, methoxide and ethyl radical: charge, unpaired electrons and the parity message come out right.
A live drawing is an ordinary open drawing linked to a library item; saving it rewrites the item's files, raises rev and broadcasts live-structure, and an object from another computer is adopted with its id and the higher rev. Checked with a scratch script: phenol edited to thiophenol saved as rev 2, an object at rev 7 adopted.
…ime limit (0.12.0) LGPL programs run only as separate processes: each job gets its own process group, a log read line by line for progress and the last lines, and is stopped on cancel, on its time limit or when the engine exits. Checked with a stand-in script: success, exit code 1, timeout after 1.6 s and cancel after 1.0 s, with no process left behind.
formchem edit-live takes a library id, a live structure object file or an items/[id].svg path and asks the running engine to open it, authenticated with the agent token. Checked with py_compile; run against the engine later in this branch.
The loader refuses a monomer whose capped attachment SMILES differs from its written capped form, and indexes monomers by symbol and by capped structure for reading drawn residues. Loaded all 55 monomers in the engine venv.
Reads simple polymers, RNA branches, whole repeat counts, inline SMILES monomers, connections and the empty group and annotation sections; mixtures, BLOBs and hydrogen-bond pairs are refused with the character where reading stopped. Parsed eleven sample strings, good and bad, in the engine venv.
…12.0) Results go through the same molecule.record and stereo check as the 0.10.0 3D services, with energy in kcal/mol, method xtb and a program label naming the program, version, method and solvent. Checked on butan-2-ol: two results ranked with populations, a mirror image dropped with stereo_dropped, a reordered result refused.
… (0.12.0) Once a second the engine compares each open drawing's file size and time and broadcasts file-changed when the file moved; FormChem's own saves are recognised by the modified time inside document.json. Checked with py_compile; the round trip is checked with the routes.
…2.0) Reload applies the file on disk as one undoable transaction, the way Restore Version does, and marks the drawing saved; Keep Mine marks it unsaved so the next save writes over the outside change. Checked with py_compile.
… (0.12.0) The routes of docs/LIVE_STRUCTURES.md plus the open live drawings and the item pictures for tiles, each accepting the window key or the agent token. Checked with py_compile; exercised with curl once wired.
Monomers are joined by zipping paired attachment points, which keeps every stereocentre, and unused points take their leaving group. PEPTIDE1{G.G} gave glycylglycine's InChIKey and the oxytocin HELM gave oxytocin's key in the engine venv.
The window asks which drawings have outside changes and answers Reload or Keep Mine; any call starts the poller if main.py has not. Checked with py_compile.
The window's spoken summary reads it with the drawn fragments, a SMILES or an open drawing id. Checked with a TestClient: 403 without the key, ethanol from a fragment gives C2H6O and its name, an empty list gives 422.
Screen readers need one polite and one assertive region the whole window speaks through; repeating a text clears it for a frame so it is spoken again. Compiled with tsc --noEmit.
…ject tools (0.12.0) Agent tools over the same library service, as definitions in the _tool shape plus one call function for mcp.py. Checked with a scratch script: phenol added from SMILES as C6H6O 94.113, listed, and its object returned.
Runs optimisations, single points and CREST searches one at a time in their own temporary folder, follows cycles and the last lines, and hands the conformers to one write-back call at the end. Checked with the stand-in programs: optimise, single point, CREST cut to keep 2, not converged, exit code 1 (folder kept), timeout at 1.5 s and cancel at 0.5 s.
…g links (0.12.0) Typed client for the structure routes, the map of open live drawings kept from live-open and the links route, opening by id, object or formai://formchem/edit deep link. Checked with tsc --noEmit.
The announcer says Carbon or Oxygen rather than a symbol a screen reader would spell out; all 118 names plus any atom and R-group, each through t(), cached per language.
Thin routes over the xtb services: status and settings for the two paths and threads, optimise, single point and CREST jobs on a structure, job status and cancel; every route needs the window key and the write-back is one transaction through the 3D commit helper. Checked with curl-style calls against the engine on port 8239 and the stand-ins: 403 without the key, jobs done with 1, 3 and 3 conformers, 422 parity and solvent, 424 for a bad path.
The selection or page goes to the library with the live and recent kinds, pictured by the export path with the drawing embedded, and the clipboard gets the live object, SVG, PNG, the HTML img with data-formai-structure, SMILES and the molfile through the existing clipboard writer. Checked with tsc --noEmit.
…(0.12.0) Cuts amide, disulfide, phosphodiester and glycosidic bonds, matches each capped piece to the monomer data, assigns attachment points and walks the backbone, so cyclic and disulfide-bridged peptides come back with their connections; anything unmatched is refused with its formula. Eleven HELM strings round-tripped to the same InChIKey.
Both add the selection or drawing to the shared library with its pictures; a structure already there gains the kind. Checked with tsc --noEmit.
Spec C 9.4 asks the screen reader to give the atom, its charge, hydrogens, isotope, neighbours by element and bond order, ring size and CIP label; each part is one whole sentence through t(). tsc --noEmit is clean.
Arrows pick the bonded neighbour nearest the arrow's direction, bond steps continue from the far end, and atoms are walked fragment by fragment in reading order. Pure functions over the document; tsc --noEmit is clean.
…a check (0.12.0) One entry point gives molfile, SMILES, InChIKey, formula, masses, the layout used and the methods with versions; structure to HELM is offered only when the HELM reads back to the same molecule. Oxytocin read and laid out in 0.12 s and a 20-mer in 0.53 s.
…nd xtb (0.12.0) Notes at 0.12.0, evals 32 to 36 (a live object field, the agent token's write path, a HELM monomer, an xtb option, a palette flash) and 6 trigger queries (4 should, 2 should not): 36 evals, 65 triggers.
… strings into French (0.12.0)
…(0.12.0) audit_description.py warned that 'add a query term to the formchem database search' shared 33 percent of its keywords; the singular 'database' brings coverage to 14 of 14 at 1019 characters.
… strings into German (0.12.0)
… strings into Ukrainian (0.12.0)
… strings into Norwegian Bokmal (0.12.0)
… strings into Portuguese Brazil (0.12.0)
… strings into French Canada (0.12.0)
… strings into Chinese Simplified (0.12.0)
… strings into Indonesian (0.12.0)
… strings into Chinese Traditional (0.12.0)
… strings into Turkish (0.12.0)
… strings into Polish (0.12.0)
… strings into Vietnamese (0.12.0)
… strings into Italian (0.12.0)
… strings into Dutch (0.12.0)
… strings into Spanish (0.12.0)
… strings into Hungarian (0.12.0)
… strings into Czech (0.12.0)
… strings into Japanese (0.12.0)
… strings into Thai (0.12.0)
… strings into Russian (0.12.0)
… strings into Finnish (0.12.0)
… strings into Swedish (0.12.0)
…77 are listed (0.12.0) The AST reader stopped on the 0.12.0 modules (dict unpacking, a starred enum, f-strings over imported limits, TOOLS = [TOOL]); each module's finished TOOLS now comes from importing it with the backend venv's Python. references/tools.md and agents/manifest.json list 77 tools; agents sync --check is in step; both packs and mirrors validate with 0 FAIL, 0 WARN.
…ls (0.12.0) The generator reads every agent module now; the changelog says so and names the i18n pattern ranking fix.
Moves the nine version sites to 0.12.0: live structures and the shared library, accessibility, HELM, and xtb and CREST by path (phase 12). Checked: tsc, build, compileall, bash -n, selfcheck (formchem 0.12.0), i18n check and scan, agents sync --check, notices --check, and a served smoke test (version shown, the database workspace opens, 77 MCP tools, no console errors).
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(database): structure databases, lab notebook, live structures, accessibility, HELM and xtb (0.12.0)
Summary
.fcdbfile per database with plain-English tables, written to the contract indocs/DATABASE.md. It holds records with your own and computed fields, registration with duplicate checks and batches, attachments, forms, a lock file with read-only mode for a second FormChem, and./formchem db..fchemas a cancellable job, with preview, merge on structure or a field, and a report naming every bad record. Export to SD (V2000 or V3000), SMILES and CSV. 10,000 SD records with 3 bad imported in 34.4 s from the window: 9,997 added, records 1500, 5000 and 8500 reported..fcdbfile: a scheme with its stoichiometry, procedure, observations, products linked to records, attachments, SHA-256 signing with "Modified after signing" and the signed version kept, HTML and JSON export, text and substructure search.AGENT_MODULEStuple inmcp.py.assets/icon_src/masters, regenerated desktop icons, and a redrawn in-app mark, favicon and splash.docs/LIVE_STRUCTURES.md), the live drawing mode whose Save raises the revision (1 to 2 in 0.47 s),formai://formchem/editthrough tauri-plugin-deep-link 2.6.3, and./formchem edit-live../formchem agents syncnow lists the tools of agent modules, by importing them with the engine's Python.Commits
One line per commit, oldest first, release commits marked. The short hashes change when
formprsigns.Version
v0.12.0 (release commit is last). 0.11.0 has its own release commit in the middle of the series (
chore(release): 0.11.0), so both CHANGELOG sections are on main;formai-buildbuilds 0.12.0. Version sites bumped twice, by hand:frontend/package.json,frontend/package-lock.json(two fields),frontend/src/version.ts,backend/app/__init__.py,src-tauri/Cargo.toml,src-tauri/Cargo.lock,src-tauri/tauri.conf.json, the Flatpakmetainfo.xmlrelease lines and the README badge.Checks
npx tsc --noEmitclean;./formchem buildclean;python -m compileall backend/appclean;bash -non every script;formchem_engine.py --selfcheckreports formchem 0.12.0 with RDKit 2025.09.3 and Indigo 1.49.0;./formchem i18n checkpassed andi18n scanat 0;setup/agents.py sync --checkin step;setup/notices.py --checkpassed; the CI emoji and em dash scan clean; skill packs and mirrors 0 FAIL, 0 WARN with the god-tier-skill-creator validator; a served smoke test showed 0.12.0, opened the database workspace, had no console errors, andtools/listgave 77 tools.cargo checkstops at gdk-sys for lack of GTK headers, so the deep link plugin lines are not compiled); a real screen reader; a real xtb or CREST run (stand-in programs only); any sibling Form app reading the library or the live structure object; the MCP tools from a real Claude Code or Codex client (curl with the agent token was used); the CI workflow itself.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.