Skip to content

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

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 Windows starter follows the family's shared finder 1.1.0: npm, pnpm and bun shims start their script or .exe directly, and cmd.exe never receives words it would change. Words with a space that hold & or similar are now refused instead of passed through.
  • THIRD-PARTY-NOTICES.txt carries the full licence text of the Go runtime, every linked Go module, the page's npm packages and the desktop shell's crates, written by tools/notices.py.
  • tools/notices.py --check runs in CI, alongside tests of the check itself.
  • The notices are embedded in the server binary, installed with the desktop app, and shown under Preferences > General > About.

Tests

  • make check passes; go test 109 passed; pytest tools 10 passed; window smoke 6 passed; the notices check passes locally. Please rely on this PR's CI.

How to ship

internal/agentlookup/winstart.go ports the rules of FormVis's
agent_lookup.py 1.1.0 (SHA-256 313fcd40541199c920314516026a0b225aeb4915e9a5dc26bf51d1ba05f1da8e,
SpecSHA256), as form.md's Go port does. Shim names are read the way
Windows opens them, npm, pnpm and bun shims are followed to their script
or exe only in the known shape, and the cmd.exe fallback refuses
& | < > ^ ( ) ! % " and control characters in every word, quoted or not,
and a quoted program path that cmd /c would strip. The refusal is
CommandLineRefused, matched by ErrUnsafeArg.

Checked: go vet and go test ./internal/agentlookup/.
… everything that ships, checked in CI

tools/notices.py and tools/notices_crates.py, modelled on FormDAM's,
write THIRD-PARTY-NOTICES.txt from the Go standard library and runtime,
the 5 Go modules whose packages go list -deps links into formnet on the
five release targets (licence files from the module cache, from each
linked package's folder up to its module root), the 5 production npm
packages built into the page, and the 495 crates src-tauri/Cargo.lock
reaches from formnet-desktop. --check runs on the Ubuntu test runner
after go test, and its own tests run with the window smoke.

The file is embedded in every formnet binary, served at GET /api/notices
behind the run's token, shown in Preferences, General, About (Third-Party
Notices, in every language table), installed with the desktop app and
packed into the licences archive. NOTICES.md and licenses/ stay as the
human ledger and the copied texts.

Checked: make check, go test ./... (109 passed), pytest tools (10
passed), pytest web/tests/window (6 passed), notices.py --check.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:43
35 crates whose published package carries no licence file now carry
their full licence text in THIRD-PARTY-NOTICES.txt, with a line naming
the upstream file and commit (or, for selectors, the SPDX text it was
reconstructed from). The texts and their SOURCE.txt are vendored in
tools/licence_texts/; tools/notices.py and tools/collect_licenses.py
read them, and licenses/rust/ replaces 18 NOTE.txt files with them.
--check now fails when a vendored text is left unused, and the
collector resolves crates before clearing licenses/rust/.
The cmd.exe refusal starts nothing, so checking it first gives a test
binary the same answer a person gets. The guard still stands between
every real start and an agent program outside the stand-ins folder.
…tices

# Conflicts:
#	internal/HASHOUT_LOG.md
#	web/HASHOUT_LOG.md
#	web/src/ui/i18n/ar.ts
#	web/src/ui/i18n/cs.ts
#	web/src/ui/i18n/da.ts
#	web/src/ui/i18n/de.ts
#	web/src/ui/i18n/el.ts
#	web/src/ui/i18n/es.ts
#	web/src/ui/i18n/fi.ts
#	web/src/ui/i18n/fr.ts
#	web/src/ui/i18n/hi.ts
#	web/src/ui/i18n/hu.ts
#	web/src/ui/i18n/id.ts
#	web/src/ui/i18n/it.ts
#	web/src/ui/i18n/ja.ts
#	web/src/ui/i18n/ko.ts
#	web/src/ui/i18n/nb.ts
#	web/src/ui/i18n/nl.ts
#	web/src/ui/i18n/pl.ts
#	web/src/ui/i18n/pt-BR.ts
#	web/src/ui/i18n/ru.ts
#	web/src/ui/i18n/sr-Latn.ts
#	web/src/ui/i18n/sv.ts
#	web/src/ui/i18n/th.ts
#	web/src/ui/i18n/tr.ts
#	web/src/ui/i18n/uk.ts
#	web/src/ui/i18n/vi.ts
#	web/src/ui/i18n/zh-CN.ts
#	web/src/ui/i18n/zh-TW.ts
@nodemode-ai
nodemode-ai merged commit 3276870 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 20:25
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