Repository navigation
chore: shared Windows agent launcher and full third-party licence notices - #29
Merged
Merged
Conversation
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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
How to ship