Skip to content

chore: shared Windows agent launcher and full third-party licence notices - #42

Merged
nodemode-ai merged 5 commits into
mainfrom
chore/launcher-and-notices
Nov 30, 2026
Merged

nodemode-ai merged 5 commits into
mainfrom
chore/launcher-and-notices

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The agent finder is the family's shared 1.1.0: npm, pnpm and bun .cmd shims start their script or .exe directly, and the cmd.exe fallback refuses & | < > ^ ( ) ! % " and control characters in every word.
  • THIRD-PARTY-NOTICES.txt carries the full licence text of every Python package, npm package in the window, Rust crate and bundled binary (the FFmpeg sidecar and libraries, OpenH264 on demand), written by setup/notices.py.
  • setup/notices.py --check runs in CI and fails when something ships without its licence text or a listed component no longer ships.
  • The file ships in every installer and inside the frozen engine, and Settings > About shows it.

Tests

  • pytest 1785 passed, 102 skipped; window smoke 6 passed; ruff, tsc, build and the notices, skill map and agents checks pass locally on macOS. Please rely on this PR's CI.

How to ship

… pnpm and bun shims

backend/app/agent_lookup.py is now FormVis's 1.1.0, byte for byte
(SHA-256 313fcd40541199c920314516026a0b225aeb4915e9a5dc26bf51d1ba05f1da8e,
recorded in setup/agents.py LOOKUP_HASHES). It follows npm, pnpm and bun
shims in any letter case and starts their node or bun script or .exe as
an argument list, and refuses, as CommandLineRefused, any cmd.exe start
whose words the interpreter would change. formcut's 1.0.2 cmd_words is
replaced by the family's cmd_safe; dock_tabs.py and agent_connect.py
already called start_argv and run without hardening of their own, so no
wrapper code is removed.

Checked: pytest tests/test_windows_start.py (48 passed), ruff check and
format, setup/agents.py sync --check.
… everything that ships, checked in CI

setup/notices.py and setup/notices_crates.py, modelled on FormDAM's and
formcraft's, write THIRD-PARTY-NOTICES.txt from the Python runtime, the
PyInstaller bootloader, the 68 Python packages backend/requirements.txt
freezes on macOS, Linux and Windows (requested extras followed; pytest,
maturin and PyYAML left out; the six that ship on another platform only
read from their published wheels with --wheels), the 23 npm packages
the window's build reaches (onnxruntime-node and sharp left out, which
the web build of @huggingface/transformers never imports), the 541
crates of src-tauri and the native kernels in backend/native, and three
binaries: the FFmpeg sidecar release with its own notices and LGPL-2.1
text in full, FFmpeg's libraries beside PyAV, and Cisco's OpenH264 by
reference as a download.

--check runs in the CI engine job after the tests. The file is installed
beside NOTICE in every installer, frozen into the engine, served at
GET /api/notices and shown in Settings, About, Third-party notices, with
the strings in en, es, de and the ar, fa, he and hr locale files.

Checked: pytest tests (1785 passed, 102 skipped), pytest
frontend/tests/window (6 passed), ruff check and format, notices.py
--check, skill_maps.py --check, agents sync --check, tsc, vite build.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:43
59 entries in THIRD-PARTY-NOTICES.txt (57 crates, guid-typescript on npm and
the flatbuffers Python distribution) carried only their SPDX id because the
published package has no licence file. Their upstream licence files, or for
five of them the SPDX standard text with the holders the metadata names, are
now kept in setup/licence_texts/<kind>/<name>-<version>/ with a SOURCE.txt
naming the repository, ref and file URLs.

setup/notices_vendored.py fills any section that has no licence file from its
folder and writes a note naming the source. notices.py --check now fails when a
kept folder lacks SOURCE.txt, belongs to a package that no longer ships, or
holds a text the notices do not carry. Regenerating twice gives the same file;
apart from the 59 filled entries the sections are unchanged.
On Windows a path on a different drive from the repository has no
relative form, so the missing-file message now falls back to the full
path. A test covers that case on every system.
@nodemode-ai
nodemode-ai merged commit 748b56d into main Nov 30, 2026
8 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 20:26
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.

2 participants