Skip to content

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

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

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

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fix(agents): agent_lookup.py is now FormVis's canonical 1.1.0, copied byte for byte (sha256 313fcd40...1da8e, the only hash LOOKUP_HASHES records). It follows npm, pnpm and bun shims and refuses words cmd.exe would change with CommandLineRefused.
  • agent_shim.py and the refusal checks that repeated the shared file are removed from claude_code, agent_programs, setup/claude_launch.py and setup/agents.py. formpath keeps its own behaviour: ValueError for the routes, a refused first message points to the Chat tab, Chat uses standard input, the launcher hands over the server list as a file, and setup names the refusal.
  • test_windows_start.py now tests the shared file: shims, cmd characters, the rule about a program path with a space, check never starting a changed batch path, and the launcher and setup refusals.
  • feat(licences): THIRD-PARTY-NOTICES.txt holds the full licence text of the Python runtime and 40 distributions (all platforms, extras included), 10 production npm packages, 515 crates and 5 third-party works kept in the tree. It is generated by setup/notices.py.
  • python setup/notices.py --check runs in the CI test job. The file ships in the installers (bundle.resources) and the frozen engine, is served by GET /api/notices, and is shown in About formpath > Third-party notices.
  • NOTICE.md stays the human list and now points to the new file. The README line count is updated, and both HASHOUT logs have entries.
  • Tests: 7 new notices tests and a rewritten Windows launcher test set. Backend 322 passed, vitest 66 passed, window smoke 2 passed.

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.

… pnpm and bun shims

agent_lookup.py is copied byte for byte from FormVis (SHA-256
313fcd40541199c920314516026a0b225aeb4915e9a5dc26bf51d1ba05f1da8e) and
LOOKUP_HASHES records only that version. The finder now follows npm,
pnpm and bun shims and refuses words cmd.exe would change, so
agent_shim.py and the pre-checks that duplicated it are removed.

formpath keeps its own behaviour: the tab routes still answer with a
ValueError sentence, a first message cmd would change points to the
Chat tab, Chat sends its message on standard input when the program
still starts through cmd, and the launcher hands such a program its
server list as a file.
… checked in CI

setup/notices.py writes the full licence texts of the Python runtime and
packages frozen into the engine (on every platform, extras included),
the production npm packages, every Rust crate in Cargo.lock and the
third-party works kept in the tree. Its --check mode runs in the CI
test job. The file ships in the installers and the frozen engine,
GET /api/notices serves it, and About formpath shows it. NOTICE.md
stays the human list.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:13
gbarnai and others added 2 commits November 29, 2026 19:50
Forty crates in the desktop shell ship no licence file, so their notices
gave only the SPDX id and repository. Keep their upstream texts (two are
reconstructed from the SPDX list) in setup/notices_texts/crates with a
SOURCE.txt each, have setup/notices.py use them, and regenerate
THIRD-PARTY-NOTICES.txt. Each such entry now carries the full text and a
note naming the upstream repository and ref, or the SPDX text it was
reconstructed from.
@nodemode-ai
nodemode-ai merged commit 29e2ace into main Nov 30, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 18:58
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