Skip to content

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

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
Collaborator

Summary

  • Shared Windows launcher: backend/app/services/agent_lookup.py is now FormVis's canonical 1.1.0, copied byte for byte (sha256 313fcd40...1da8e), and the hash is recorded in scripts/agents.py LOOKUP_HASHES.
  • The terminal router now catches agent_lookup.CommandLineRefused, the 1.1.0 name for what was UnsafeWords. No other wrapper in formwav duplicated the hardening, so nothing else was removed.
  • Launcher tests: test_windows_start.py has 42 tests, covering pnpm and bun shims, mixed runners, launchers that set their own variables, the program-path character rule, batch_file name parsing and the recorded version and hash.
  • New THIRD-PARTY-NOTICES.txt holds the full licence texts of the Python runtime, the frozen engine's Python packages on all three systems, the PyInstaller bootloader, the 4 production npm packages, 539 Rust crates, the vendored libnyquist, Vamp SDK, cmudict and VocalSet, and the helpers' 13 shared libraries, plus a reference to the downloaded FFmpeg build's own notices and LGPL text.
  • scripts/notices.py writes the file and --check verifies it in both directions; the CI engine job now runs the check on macOS, Linux and Windows.
  • The file ships as a Tauri resource and is frozen into the engine by the three build scripts; the engine's --selfcheck fails if it is missing.
  • GET /api/notices serves the file, and a new Preferences > About section shows it on demand without moving the page; its strings are translated into all 25 languages.
  • LICENSES.md stays the human ledger (it now points to the file and lists the indirect Python packages); NOTICE, README and both HASHOUT logs are updated.
  • Tests: test_notices.py (13 tests: the route, a missing file, the check passing, and the check catching a removed or a stale component, the file format round trip, extras and markers, build tools, npm production packages, bundling) and an interface test for About.

Tests

  • The notices check and the tests for the launcher behaviour this app depends on were run locally on macOS; failures seen locally also fail on main. Please rely on this PR's CI.

How to ship

  • Independent of other repos. The shared launcher file is the same byte for byte in every Form app (agent_lookup 1.1.0, source in FormVis). No version bump; it can go into the next release.

Copy backend/app/services/agent_lookup.py byte for byte (SHA-256 313fcd40...1da8e)
and record its hash in scripts/agents.py. pnpm and bun shims are followed,
the program path is held to the same command interpreter rules as its
words, and the refusal is CommandLineRefused, which the terminal router now
catches. Tests cover the new shims, mixed runners, the program path and the
recorded version.
scripts/notices.py writes THIRD-PARTY-NOTICES.txt from the frozen engine's
Python packages, the window's production npm packages, the Rust crates of the
shell, the audio core and the plug-in host, the vendored code, the helpers'
shared libraries, the PyInstaller bootloader, the Python runtime and the
downloaded FFmpeg build; --check runs in the engine job. The file ships beside
the app and inside the engine, which serves it at /api/notices for the new
Preferences > About section, translated into all 25 languages.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:15
gbarnai and others added 3 commits November 29, 2026 19:55
Vendor the upstream licence texts (or the standard SPDX text where upstream has
none) with their SOURCE.txt in scripts/licence_texts/ for the 48 packages whose
notice carried no text, and have scripts/notices.py use them: each such section
now holds the full texts, its SOURCE.txt and a note naming the upstream
repository and ref, or that the text is reconstructed.
Merging main resolved the Devices row conflict in frontend/src/ui/prefs.ts by
taking main's side, which removed the about: aboutMarkup(row, group) entry.
The About section then rendered the text undefined, which the language check
reported as an untranslated string, and the notices box was missing.
@nodemode-ai
nodemode-ai merged commit dbb6fc4 into main Nov 30, 2026
9 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 20:24
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