Skip to content

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

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
Contributor

Summary

  • Replace backend/app/services/agent_lookup.py with FormVis's shared finder 1.1.0 (sha256 313fcd40...) and record its hash in setup/agents.py LOOKUP_HASHES
  • Remove command_script.py and the Windows wrapper in claude_code.py, which only repeated the 1.1.0 hardening. The prompt is still typed into a tab that starts through cmd.exe
  • The agent open routes answer CommandLineRefused with 409 command_refused
  • Add setup/notices.py and setup/notices_crates.py (modelled on FormDAM) and a generated THIRD-PARTY-NOTICES.txt with the full licence texts of the Python runtime, the PyInstaller bootloader, the Python packages for all three platforms, the npm production packages and all 496 locked crates, plus a reference to the downloaded FFmpeg release
  • The notices ship under licenses/ in every installer, are frozen into the engine, are served at GET /api/notices and are shown from About formcraft > Third-party notices
  • python setup/notices.py --check runs in the CI tests job
  • LICENSES.md stays the human list (its intro and gap entry are updated); NOTICE, README, HASHOUT_LOGs and the engine-routes reference are updated
  • Tests: shared-starter Windows tests, claude_code shim and refusal tests, the 409 route test, notices check and route tests, and a vitest for the notices dialog

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 (0.11.0)

backend/app/services/agent_lookup.py is now FormVis's 1.1.0, byte for byte
(SHA-256 313fcd40541199c920314516026a0b225aeb4915e9a5dc26bf51d1ba05f1da8e,
recorded in setup/agents.py LOOKUP_HASHES). It follows npm, pnpm and bun
shims in any letter case and refuses, as CommandLineRefused, any cmd.exe
start whose words the interpreter would change. command_script.py and the
wrapper in claude_code.py only duplicated that work and are removed; the
prompt is still typed into a tab that starts through cmd.exe, and the agent
open routes answer a refusal with 409 command_refused.

Checked: pytest tests/cb03 (176 passed), setup/agents.py sync --check.
… everything that ships, checked in CI (0.11.0)

setup/notices.py and setup/notices_crates.py, modelled on FormDAM's, write
THIRD-PARTY-NOTICES.txt from the Python runtime, the PyInstaller bootloader,
every Python package the engine freezes on macOS, Linux and Windows, the
npm production packages, the 496 locked crates (licence files from the
cargo registry, or SPDX id and repository with a note when a crate ships
none) and a reference to the downloaded FFmpeg release and its LGPL text.
The file ships under licenses/ in every installer, is frozen into the
engine, is served at GET /api/notices and is shown from About formcraft,
Third-party notices. --check runs in the CI tests job. LICENSES.md stays
the human list; its gap entry about uncollected texts is closed.

Checked: vitest (56 files, 1189 tests), pytest (645 passed), notices.py
--check, typecheck, build, selfcheck, versions.py, check_skills.py,
agents sync --check.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:12
…ream text from setup/licence_texts

38 crates in THIRD-PARTY-NOTICES.txt shipped no licence file and listed only
their SPDX id. Their texts are now vendored in setup/licence_texts/crate, each
with a SOURCE.txt naming the upstream file and commit (37) or the SPDX text it
was reconstructed from (selectors 0.38.0). The generator reads them, notes the
source on each entry, keeps a crate's previous text when its source is not in
the local registry, and --check fails on any crate left without a text.
@nodemode-ai
nodemode-ai merged commit bf99c20 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 18:36
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