Skip to content

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

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

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

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fix(agents): replace agent_lookup.py with the family finder 1.1.0 from FormVis (hash 313fcd40...), record only that hash, delete the duplicate program_start.py wrapper, and call agent_lookup.start_argv directly from Chat and the agent tabs
  • test(agents): test_program_start.py becomes test_agent_start.py, testing the shared starter (npm, pnpm and bun shims, Windows name rules, cmd.exe refusals, space-in-path rule, login shell off Windows)
  • feat(licences): new THIRD-PARTY-NOTICES.txt with the full licence texts of the frozen Python packages (all platforms), the PyInstaller bootloader, the CPython runtime, production npm packages, all 435 Rust crates, and the in-repo SCOWL dictionaries and OFL fonts, generated by setup/notices.py and setup/notices_crates.py
  • ci: python setup/notices.py --check in the test job
  • feat(licences): the file ships in every installer (bundle.resources) and in the frozen engine (--add-data), is served at GET /api/notices and is shown under Help > About FormTxt > Third-party notices
  • docs: NOTICE.md stays the ledger and gains the PyInstaller bootloader, pywin32-ctypes and the non-MIT/Apache crate licences; README links the notices; backend and frontend HASHOUT_LOG entries
  • test(licences): backend/tests/test_notices.py (route, missing file, check passes, check names gaps and changed texts, exact read-back, crate coverage)

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.

….1.0

Replace agent_lookup.py with the family's 1.1.0 copy from FormVis, which
follows npm, pnpm and bun shims, reads program names the way Windows opens
them, and refuses words the command interpreter would change, the program
path included. program_start.py only duplicated that hardening and is
removed; Chat and the agent tabs call agent_lookup.start_argv directly.
The recorded hash accepts 1.1.0 only, and the starter tests now exercise
the shared file.
setup/notices.py writes THIRD-PARTY-NOTICES.txt from the Python packages
frozen into the engine (every shipped platform's markers and extras), the
PyInstaller bootloader, the Python runtime, the production npm packages,
every Rust crate Cargo.lock reaches from the shell, and the dictionaries
and fonts kept in the repository. Its --check mode runs in the CI test job.
The file ships in every installer and inside the engine, which serves it
at /api/notices, and Help > About FormTxt shows it. NOTICE.md stays the
ledger and gains the bootloader, pywin32-ctypes and the crates under
Unicode-3.0, BSD-3-Clause, ISC and Zlib. The backend log also records the
finder change in the commit before this one.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:15
Keep the upstream licence files for the 36 Python distributions and Rust
crates whose published files carry no licence text in setup/licence_texts,
each with its SOURCE.txt. setup/notices.py prints them in place of the bare
entry with a note naming the upstream file and commit or tag, or the SPDX
text a licence was reconstructed from, and --check fails when a kept text
drifts from the notices or no longer matches a shipped package.
@nodemode-ai
nodemode-ai merged commit dbea1fa into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 18:52
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