Skip to content

fix(build): FormCite builds and starts as a desktop app, with a menu bar, Home, Preferences sections, the agent dock, demos and templates (0.15.0) - #15

Merged
nodemode-ai merged 37 commits into
mainfrom
fix/build-and-form-shell-0.15.0
Dec 1, 2026
Merged

nodemode-ai merged 37 commits into
mainfrom
fix/build-and-form-shell-0.15.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(build): FormCite builds and starts as a desktop app, with a menu bar, Home, Preferences sections, the agent dock, demos and templates (0.15.0)

Summary

  • Build: FormCite had never produced a packaged app. The build stopped at its last step because @tauri-apps/cli was not among the window's packages. Behind that, the frozen engine had been packed with almost none of its own code (--collect-submodules app ran in a Python that could not import app, so backend/ is now on PYTHONPATH for the freeze), so it failed its own --selfcheck with No module named 'app.routers.pair'. Its SQL schema migrations (app/store/migrations/*.sql) were left out as well, which would have given every library no tables, and on Windows it needed tzdata. The build also used whichever Python was newest on the machine; it now takes the one on PATH first. The shell finds the engine by a port it hands over, not by a line on the engine's console, which a Windows engine frozen without a console never prints.
  • Fixes in the window: the window claims its key once for every caller, so the false "The engine did not accept this window" notice and refused changes are gone; a new search no longer paints the earlier search's rows under its count (older than 0.15.0; ItemListModel.reload() now waits for its own first page and ignores older answers); the side panel reloads collections and tags after a library switch; the bar menus open under the menu bar's row.
  • Window, new in 0.15.0: a menu bar (FormCite, File, Edit, View, Library, Help, and Window in the desktop app on Linux and Windows; the system menu on a Mac, with Menus in Window to switch back, and the in-window bar as the fallback if the system menu cannot be built), a right-click menu on item rows (Open Attachment, Copy Citation, Copy Bibliography Entry, Move to Trash), Home (Add by identifier, Import a file, Choose a PDF, counts, newest collections), Preferences in sections (General, Appearance, Network, Libraries, Agents) with a rail, and the Form glass look with the family's token names. The Needs a title view has its row line height back.
  • Agent dock: the family's shared module 2.2.1 in frontend/src/dock/, with FormCite's adapter. The engine starts shell tabs and, when installed, Claude Code, Codex, Cursor and Antigravity tabs, each with a write-scope token that is revoked when the tab closes, and closes them all when the engine stops. The consent bridge answers no question; outside agents are still approved by pairing under Connections.
  • Demos and templates: three invented demo libraries in demos/ (urban heat, history reading list, lab methods; 260, 215 and 240 references) with BibTeX and a README, and 51 templates: 41 citation styles, 40 of them unmodified from the CSL repository at 38e17c7 under CC BY-SA 3.0 (credited in templates/CREDITS.md, pointed to from NOTICE.md) and one FormCite's own, plus 10 library starters.
  • Docs and packaging: README in the family shape with a Download table checked against formcompiler's apps/formcite.json and the app's screenshots, dark and light; CONTRIBUTING and SECURITY in the family wording (contributions under GPL-3.0-only); packaging/formcompiler/apps/formcite.json at this version, with the macOS minimum (10.13) as the build target, not read back from a built app.

Commits

  • docs(community): bring CONTRIBUTING and SECURITY to the family wording and the app as it is
  • docs(readme): family shape with a Download table, the agents section and the 0.15.0 window lines
  • feat(menu): the popup menu, menu bar and macOS system menu, with the 1.2.0 cap, floor and more-below hint
  • feat(menu): the FormCite menu list, in-window shortcuts and a right-click menu on item rows
  • feat(dock): engine terminals, agent program status and a bridge that answers no questions, for the window's agent dock
  • feat(dock): the family's agent dock in the window, module 2.2.1 with FormCite's adapter and mountDock
  • docs(notice): the dock module from FormVis, ptyprocess, pywinpty and xterm
  • fix(build): the frozen engine carries its schema migrations
  • fix(build): put the Tauri CLI in the window's dev dependencies
  • fix(build): ship time zone data so the engine starts on Windows
  • fix(build): freeze the dock terminal's pty and WebSocket modules
  • fix(engine): close the dock's tabs and terminals when the engine is stopped
  • build(desktop): state the macOS minimum the build targets
  • fix(build): let the freeze import the app package it collects
  • feat(look): keep the Home, menu bar and dock choices with the library's look
  • feat(home): a Home start screen, the shell commands and the menu bar and dock wired into the window
  • feat(preferences): FormVis sections with a rail, plus General, Menus and Agents
  • fix(build): build the engine with the Python on PATH first
  • docs(log): Home, the Preferences sections, the shell commands and the look's new choices
  • feat(styles): the family token names, glass and layers, mapped from FormCite's own (0.15.0, 2026-12-01 EST)
  • fix(titles): give the Titles rows their line height back
  • fix(menu): open the bar row when the macOS system menu falls back to the in-window bar
  • docs(log): the menus, the row menu and what was measured
  • build(packaging): bring the formcompiler entry to 0.15.0 from the first full build
  • fix(desktop): find the engine by its port, not by a line on its console
  • fix(window): claim the window key once while every caller waits for that answer
  • fix(side): reload collections and tags when the library is switched
  • feat(demos): three sample libraries with collections, tags and notes, and their BibTeX
  • feat(templates): 41 citation styles and 10 library starters, with credits
  • docs: the demos and templates in the README and the logs
  • docs(notice): point to the templates' credits for the CC BY-SA styles and list the Tauri CLI
  • docs(style): the style wheel's version follows the app's
  • docs(readme): the 0.15.0 window, the dock and the Download table as they shipped
  • docs(readme): the app's screenshots, dark and light
  • fix(items): a new search waits for its own first page, and no older answer or row past the count stays
  • chore(release): 0.15.0

Short hashes are left out because signing changes them.

Version

v0.15.0 (release commit is last). Bumped: backend/app/__init__.py, frontend/src/version.ts, frontend/package.json and both fields of its lockfile, src-tauri/tauri.conf.json, src-tauri/Cargo.toml and its own entry in src-tauri/Cargo.lock, native/formcite-style/Cargo.toml, its own entry in native/formcite-style/Cargo.lock and native/formcite-style/pyproject.toml, the README badge, "Current build version" in the four HASHOUT_LOG files, and the CHANGELOG. docs/CITE_SERVICE.md still names 0.13.9 where it records a run on that version.

Checks

  • Contract build on Linux x64 from a fresh clone with Python 3.12 (./formcite install, install-desktop, desktop build --config): a .deb, an .rpm and an AppImage; the AppImage opened its window under a virtual display, claimed its key and stopped its engine on exit.
  • Style regression set: 12 of 12. Frozen engine: --selfcheck passes, health answers, an APA citation is formatted and a new library is made with all its tables; a dock terminal echoes over its socket.
  • Window in headless Chrome at 4x slower CPU: Home on the first frame, the bar row reserved before first paint with no layout shift, theme and look kept across an engine restart, the dock opening and closing without moving the panes, the menus kept inside the window.
  • Demos: each opened in a fresh data folder and listed with the CLI (260, 215, 240); all 41 styles render the 20 regression references.
  • Captures for the site and the README were taken from the built window with the engine running, in dark and light, with no window-key notice and no refused write.

Not run: any build or run on macOS or Windows (formcompiler's runners build those), the macOS system menu, and the Codex, Cursor and Antigravity tabs, since none of those programs is installed here. The stale item rows were not made to happen on demand in headless Chrome, on the old build or the new one; after the fix every step showed no row past the count, and settled counts matched the engine.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

…answers no questions, for the window's agent dock
install-desktop now stops when the CLI is missing instead of reporting the toolchain ready. This commit also carries the dock agent's @xterm/xterm 6.0.0 and @xterm/addon-fit 0.11.0 dependency lines in package.json and package-lock.json, at the lead's request, since both changes sit in the same two files.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner December 1, 2026 21:57
@nodemode-ai
nodemode-ai merged commit eedef45 into main Dec 1, 2026
7 checks passed
@nodemode-ai
nodemode-ai deleted the fix/build-and-form-shell-0.15.0 branch December 1, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant