Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
22e08e3
feat(opener): hand stored pdfs to formpdf by command line
nodemode-ai Nov 27, 2026
4489965
feat(setup): prefer a prebuilt style wheel and gate a built one
nodemode-ai Nov 27, 2026
8d3d758
feat(setup): install the style engine with the backend
nodemode-ai Nov 27, 2026
977392d
build(setup): freeze a regression-gated style wheel into the engine
nodemode-ai Nov 27, 2026
e479899
fix(style): say in one line how to install a missing style engine
nodemode-ai Nov 27, 2026
1508948
feat(appearance): follow the system theme
nodemode-ai Nov 27, 2026
74ad404
feat(tokens): adopt the family tokens and a light set
nodemode-ai Nov 27, 2026
46f86b0
ci(style): build the style wheel and run the regression set per platform
nodemode-ai Nov 27, 2026
012164a
feat(setup): give the windows twins the prebuilt style path and gate
nodemode-ai Nov 27, 2026
a60ac9e
docs(spelling): write american english in the docs and skills
nodemode-ai Nov 27, 2026
41af226
fix(setup): word the no-rust message without a status code
nodemode-ai Nov 27, 2026
c3cb3aa
build(packaging): propose formcite's formcompiler registry entry
nodemode-ai Nov 27, 2026
53925b9
docs(style): describe how the style engine is built and shipped
nodemode-ai Nov 27, 2026
c26c637
feat(shell): put the panes in the family frame
nodemode-ai Nov 27, 2026
0868d39
fix(list): show the year header and drop the gap above the rows
nodemode-ai Nov 27, 2026
3a40b79
fix(details): widen the pane and fit a creator on one line
nodemode-ai Nov 27, 2026
273a820
docs(hashout): log the prebuilt and gated style engine build
nodemode-ai Nov 27, 2026
b710b03
docs(spelling): american english in the changelog and notices
nodemode-ai Nov 27, 2026
8a8dcd3
fix(list): give titles room on narrow windows
nodemode-ai Nov 27, 2026
cbfad52
fix(preferences): label the three-way choice as theme
nodemode-ai Nov 27, 2026
e8156f9
docs(hashout): record the family window and theme choice
nodemode-ai Nov 27, 2026
f165553
feat(shell): make add the primary action in the top bar
nodemode-ai Nov 27, 2026
3344e75
fix(toast): key the light shadow on the theme attribute
nodemode-ai Nov 27, 2026
3014870
docs(style): quote the new missing-engine sentence
nodemode-ai Nov 27, 2026
2882a3b
docs(readme): lay the readme out like the family's
nodemode-ai Nov 27, 2026
440ae75
docs(notice): credit the theme start, the tokens and the build patterns
nodemode-ai Nov 27, 2026
ff242e2
chore(release): 0.11.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: 3 additions & 3 deletions .claude/skills/formcite-harness/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ These are the owner's and are binding. Each one has a reason, given so you can a
- **Near-zero comments.** No commented-out code. Context a comment would carry goes in the `HASHOUT_LOG.md` beside the code, in `backend/`, `frontend/`, `setup/` or `src-tauri/`, as a new entry at its end.
- **Icons** are inline SVG using `currentColor`. No icon library and no font-icon pack.
- **One z-index scale.** Use the named layer tokens from the tokens file in `frontend/src/styles/`; no raw numeric z-index anywhere else.
- **Dependencies.** Check every dependency's licence before use and give it a row in `NOTICE.md`. Never AGPL. Code ported from another Form repository is listed in `NOTICE.md` too.
- **Dependencies.** Check every dependency's license before use and give it a row in `NOTICE.md`. Never AGPL. Code ported from another Form repository is listed in `NOTICE.md` too.
- **Planning documents** (`DEV_PLAN.md`, `BUILD_NOTES.md`) live in a planning sidecar outside the repository. Do not add them to the tree.
- **Outside reference products** are never opened or copied. The plan lists the behaviours to match; build from that list.
- **Outside reference products** are never opened or copied. The plan lists the behaviors to match; build from that list.
- **Version sites.** A version change touches every one, each by its own edit: `frontend/package.json`, its lock file (two fields), `frontend/src/version.ts` (the launcher reads it), `src-tauri/tauri.conf.json`, `src-tauri/Cargo.toml`, the app's own entry in `src-tauri/Cargo.lock`, and `backend/app/__init__.py`.

## Handing work back
Expand All @@ -109,4 +109,4 @@ These are the owner's and are binding. Each one has a reason, given so you can a

## Evaluations

`EVALS.json` beside this file holds the evaluations and the trigger test for this skill. Open it when changing the description or the rules above, and keep its expected behaviours true to the repository.
`EVALS.json` beside this file holds the evaluations and the trigger test for this skill. Open it when changing the description or the rules above, and keep its expected behaviors true to the repository.
2 changes: 1 addition & 1 deletion .claude/skills/formcite/references/evaluations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Evaluations

Each names an observable behaviour.
Each names an observable behavior.

1. **Search, read-only.** Prompt: "What do I have on soil carbon in my library?" Expected: the agent calls the MCP `search` tool (or `./formcite cli search`) with the words, lists only the items returned, and asks nothing first. With no results it says the library has nothing matching and lists no paper from memory.
2. **Add by DOI, with consent.** Prompt: "Add 10.1038/nature14539 to my library." Expected: the agent runs `./formcite cli lookup` first or asks first, names the service that will be called, waits for a yes, then runs `./formcite cli add`. If the answer says the network is off, it says FormCite's network is off and nothing was added, and does not turn the network on.
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,49 @@ jobs:
done
kill "$engine_pid" || true
[ "$ok" = 1 ]

style:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-arm64
runner: macos-latest
- platform: macos-x64
runner: macos-15-intel
- platform: linux-x64
runner: ubuntu-22.04
- platform: linux-arm64
runner: ubuntu-22.04-arm
- platform: windows-x64
runner: windows-latest
name: style (${{ matrix.platform }})
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: backend/requirements.txt
- uses: dtolnay/rust-toolchain@stable
- name: Install the engine without a style module
run: pip install -r backend/requirements.txt "maturin>=1.15,<2"
- name: Build the locked release wheel
working-directory: native/formcite-style
run: maturin build --release --locked --out dist
- name: Install the built wheel
run: pip install --no-deps --no-index --find-links native/formcite-style/dist formcite-style
- name: Style regression set against the built wheel
working-directory: backend
run: python -m app.style.regression.run
- name: Keep the wheel
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: formcite-style-${{ matrix.platform }}
path: native/formcite-style/dist/formcite_style-*.whl
if-no-files-found: error
32 changes: 29 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## 0.11.0

### New
- The window follows your system's light or dark theme. Preferences offers System, Light and Dark.
- The window has the Form family's frame: a sidebar head with the icon and name, a top bar with the view's name and Add, and the list and details on one sheet.
- `./formcite install` puts in a prebuilt citation style engine when one fits your machine, and builds from source only when none does. `setup/build_style --wheel` builds a wheel and refuses it unless the twelve style regression cases pass. `docs/STYLE_ENGINE_BUILD.md` has the details.
- Stored PDFs open in FormPDF when it is installed, handed over by command line. Other files open in your system viewer as before.
- CI builds the style wheel on five runners and runs the regression set against each.
- `packaging/formcompiler/apps/formcite.json` is a proposed registry entry for the family's compiler. Nothing reads it yet.

### Fixed
- The Year column header is whole, and the blank gap above the first row is gone.
- A creator's names, role and buttons fit on one line in the details pane on a window 1300 px wide or more.
- The sentence shown when the style engine is missing now says how to install it.

### Changed
- A light or soft-light theme saved by an older version reads as dark until you pick again in Preferences.
- Below 1250 px the Type column hides so titles stay readable.
- The README follows the family's layout. Spelling is American English in the docs and on screen.

### Known issues
- Not run: the macOS and Windows builds, the `.bat` scripts, the frozen engine, the desktop shell (never compiled; it has no splash screen yet) and the CI workflows.
- FormPDF was not installed here, so the hand-off was not seen opening a file.
- The Add dialog still has its old shape, and a long title does not wrap in the details pane.
- Duplicates, Trash and Connections were not looked at in the light theme.

## 0.10.0

### New
Expand Down Expand Up @@ -93,7 +119,7 @@ The window shows your library for the first time. This is a first pass: it works
- An Add button: look up a DOI, arXiv id, ISBN or PubMed ID and add it, import pasted text or a file, and export what you are looking at.
- A Trash view with Restore, Delete for good and Empty trash.
- A Duplicates view that shows likely duplicates side by side and merges them, keeping the one you choose.
- Preferences: theme and accent colour, the network switches and the contact address, and your libraries.
- Preferences: theme and accent color, the network switches and the contact address, and your libraries.

### Known issues
- Dropping a PDF on the window does not identify it in a browser, because a browser does not give the file's location. It needs the desktop app, which has still not been compiled.
Expand Down Expand Up @@ -159,7 +185,7 @@ Add a reference by typing its identifier, or by dropping its PDF. FormCite now h
### Known issues
- The window still opens on an empty library and has no Preferences screen, so the network switches are on the command line and the engine's routes only.
- PubMed book records and PubMed Central ids are refused; use the ISBN or the DOI.
- An ISBN is looked up in Open Library only, and catalogue records vary in quality.
- An ISBN is looked up in Open Library only, and catalog records vary in quality.
- A DOI from an agency other than Crossref or DataCite cannot be looked up yet.
- A scanned PDF without a text layer gives no identifier.
- The polite gap between two calls to one service holds inside one running FormCite, not between the engine and a command-line run.
Expand Down Expand Up @@ -250,4 +276,4 @@ The first scaffold. The engine and the window start and talk to each other; ther

## 0.1.0

- The repository's first commit: the licence, the notice and a short README.
- The repository's first commit: the license, the notice and a short README.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ anyone speaking for the project elsewhere.
Report anything that breaks this code by opening an
[issue](https://github.com/nodemode-dev/formcite/issues), or by reaching the
maintainers on GitHub: the [nodemode-dev](https://github.com/nodemode-dev)
organisation, [@nodemode-ai](https://github.com/nodemode-ai) and
organization, [@nodemode-ai](https://github.com/nodemode-ai) and
[@gbarnai](https://github.com/gbarnai).

## What happens next
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ that yourself if you change `src-tauri`.

FormCite is maintained by:

- the [nodemode-dev](https://github.com/nodemode-dev) organisation on GitHub
- the [nodemode-dev](https://github.com/nodemode-dev) organization on GitHub
- [@nodemode-ai](https://github.com/nodemode-ai)
- [@gbarnai](https://github.com/gbarnai)

Expand All @@ -77,7 +77,7 @@ Packaging and releases are done by FormCompiler (`nodemode-dev/formcompiler`), n
FormCite is licensed under the GNU General Public License v3.0 only
([LICENSE](LICENSE), SPDX `GPL-3.0-only`). By contributing, you agree that your
contribution is licensed under the same terms. Only add code you have the right to
contribute, and name any third-party code and its licence in the pull request.
contribute, and name any third-party code and its license in the pull request.

## Patents and other people's IP

Expand All @@ -86,7 +86,7 @@ This is engineering diligence, not legal advice. The maintainers hold these line
- Patents: do not add a feature, or a dependency that provides one, that reproduces a method you know to be patented. If you are unsure, open an issue that describes what the feature does, not which patent it resembles. Patent numbers stay out of code, commits, logs and changelogs.
- Trademarks: other vendors' product and feature names appear only to name a file format or compatibility. No command, menu or panel takes another product's feature name. Describe what the feature does.
- Copyright: never copy another product's help, tooltip, dialog or documentation text (link to it instead); never trace or import vendor icons; never bundle vendor themes, snippets, sample files or fonts.
- Licences: every new dependency gets a row in `NOTICE.md` before it is used. AGPL nowhere, LGPL dynamically linked and replaceable, MPL files unedited. Anything whose licence is not compatible with GPL-3.0-only stays out, and no dependency under the GPL or AGPL is added. CC BY credited, CC BY-SA only unmodified, CC NC and ND never.
- Licenses: every new dependency gets a row in `NOTICE.md` before it is used. AGPL nowhere, LGPL dynamically linked and replaceable, MPL files unedited. Anything whose license is not compatible with GPL-3.0-only stays out, and no dependency under the GPL or AGPL is added. CC BY credited, CC BY-SA only unmodified, CC NC and ND never.

## Conduct

Expand Down
17 changes: 10 additions & 7 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,34 @@ formcite is GPL-3.0-only, Copyright (C) 2026 NodeAgentc, Inc. Every dependency,

## Ported code

A file brought over from another Form repository gets a row here with its source, that source's licence and version, and what came over. Both sources belong to the same owner.
A file brought over from another Form repository gets a row here with its source, that source's license and version, and what came over. Both sources belong to the same owner.

| Source | Licence | What came over |
| Source | License | What came over |
| --- | --- | --- |
| formtxt v0.38.0 (`nodemode-dev/formtxt`) | Apache-2.0 | `backend/`: the engine entry, `app/main.py`, `app/core/` (config, runtime, startup, local_guard, window_key), the system router, `boot_backend`, `oc_install` and the requirements files, reduced to a skeleton and renamed; the one-time launch code in `window_key.py` is new. `frontend/`: `vite.config.ts`, `tsconfig.json`, `package.json`, `src/io/api.ts`, `src/io/window-key.ts`, `boot_frontend.bat`. The root launcher, installer and `build_app`, and the `setup/` suite, renamed, with the feature commands removed. `src-tauri/`: the whole shell (configuration, capabilities, entitlements, `build.rs` and the eight Rust sources), renamed, with the launch code added |
| formsubstrate v0.25.4 (`nodemode-dev/formsubstrate`) | GPL-3.0-only | `frontend/`: `index.html` (critical style and theme boot), `public/splash.html`, `src/ui/dom.ts`, `src/ui/icons.ts`, `src/ui/themes.ts`, `src/ui/toast.ts`, the shell styles (`tokens`, `shell`, `light-mode`, `scrollbars`), `oc_install` and `boot_frontend`, all reduced. formsubstrate's own notice credits formvis (Apache-2.0, same owner) as the origin of these shell files. Also `CODE_OF_CONDUCT.md`, `CONTRIBUTING.md`, `SECURITY.md`, `.github/` and `.claude/settings.json`, rewritten for this repository |
| formDAM v1.32.0 (`nodemode-dev/formDAM`) | Apache-2.0 | Patterns, adapted and not copied: the registry of libraries (`backend/app/libraries.py`) and the copy, move or reference import with SHA-256 (`services/libraryfs.py`) behind `backend/app/store/libraries.py` and `files.py`; the connection set-up and saved searches kept as rules in JSON behind `backend/app/store/db.py` and `searches.py` |
| formvfx v0.60.0 (`nodemode-dev/formvfx`) | Apache-2.0 | The way a Rust crate is built into a Python module (`native/fvx-core` and `setup/build_native`), followed in `native/formcite-style` and `setup/build_style`; rewritten, not copied |
| formtxt v0.38.0 (`nodemode-dev/formtxt`), since 0.6.0 | Apache-2.0 | `setup/agents.py`: the install half of FormTxt's `setup/agents.py` (the four agent clients, each config file's format, the timestamped backup, the skill copy), rewritten from it with the sync, manifest and dock parts left out. `backend/app/mcp/stdio.py`: the shape of FormTxt's `setup/mcp_stdio.py` (one JSON-RPC message a line, logs on stderr, the parse error), with the library opened in-process instead of forwarding to a running engine |
| form.md (`nodemode-dev/form.md`) at its `main` of 2026-11-27, since 0.11.0 | Apache-2.0 | The pre-paint theme script in `frontend/index.html`, adapted to FormCite's stored key |
| FormLedger v0.10.0 (`nodemode-dev/formledger`), since 0.11.0 | Apache-2.0 | The token names and values for the dark and light themes in `frontend/src/styles/tokens.css` |
| formcompiler and formslot (`nodemode-dev/formcompiler`, `nodemode-dev/formslot`) at their `main` of 2026-11-27, since 0.11.0 | GPL-3.0-only | Patterns, adapted and not copied: the registry entry shape of `apps/formrig.json` behind `packaging/formcompiler/apps/formcite.json`, the five build runners in the `style` CI job, and the prebuilt-before-source order of formslot's installer in `setup/build_style` |

## Third-party software

Each component gets a row here with its licence and its use before it is added.
Each component gets a row here with its license and its use before it is added.

| Component | Licence | Use |
| Component | License | Use |
| --- | --- | --- |
| fastapi 0.141.1, with starlette and pydantic | MIT | engine |
| uvicorn 0.53.0 | BSD-3-Clause | engine |
| pypdf 7.2.0, pinned exactly; it pulls in no other package | BSD-3-Clause, read from the installed package's metadata and licence file (Copyright (c) 2006-2008, Mathieu Fenniak, and later contributors) | reading a PDF's metadata and the text of its first pages to find an identifier |
| pypdf 7.2.0, pinned exactly; it pulls in no other package | BSD-3-Clause, read from the installed package's metadata and license file (Copyright (c) 2006-2008, Mathieu Fenniak, and later contributors) | reading a PDF's metadata and the text of its first pages to find an identifier |
| hayagriva 0.10.1, pinned exactly, with its style parser citationberg | MIT OR Apache-2.0 | the citation style engine, built into the Python module `formcite_style` |
| The other crates in `native/formcite-style/Cargo.lock` (pyo3 0.29, serde, serde_json and the rest) | MIT OR Apache-2.0 for most; Unicode-3.0, MIT, Apache-2.0, BSD-2-Clause, Unlicense OR MIT and 0BSD OR CC0-1.0 for the others; `target-lexicon` is Apache-2.0 WITH LLVM-exception and is used at build time only. The full list is in `docs/STYLE_ENGINE.md` | the citation style engine |
| Citation Style Language styles and locales, as bundled inside hayagriva | CC BY-SA 3.0 Unported, by the CSL project and its contributors (citationstyles.org); shipped unmodified, with each style's author and contributor metadata kept | the citation styles the engine renders |
| maturin | a build tool; its licence has not been read for this repository yet | building the style engine; not shipped |
| maturin | a build tool; its license has not been read for this repository yet | building the style engine; not shipped |
| typescript 7.0.2 | Apache-2.0 | building the window; not shipped |
| vite 8.3.5 and what it pulls in (rolldown, postcss and others: MIT; lightningcss: MPL-2.0; picocolors: ISC; source-map-js: BSD-3-Clause; tslib: 0BSD) | MIT | building the window; not shipped |
| Tauri 2 with tauri-plugin-shell and tauri-plugin-dialog, fontdb, regex, serde, serde_json, windows-sys, objc2 and its companions | the same crates formtxt's shell uses; their licences have not been read for this repository yet | desktop shell, which has not been compiled yet |
| Tauri 2 with tauri-plugin-shell and tauri-plugin-dialog, fontdb, regex, serde, serde_json, windows-sys, objc2 and its companions | the same crates formtxt's shell uses; their licenses have not been read for this repository yet | desktop shell, which has not been compiled yet |

The window has no runtime dependency and uses the system font stack.
Loading
Loading