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
Collaborator

Summary

  • fix(agents): replace agent_lookup.py with the family's canonical 1.1.0 from formvis (sha256 313fcd40...1da8e) and record it in LOOKUP_HASHES
  • Keep formdeck behaviour: via_interpreter uses batch_file; CommandLineRefused (now an OSError) still answers 409 on the tab routes and shows its sentence in Chat
  • On Windows, ./formdeck claude now starts through start_argv instead of handing a .cmd and its JSON argument to cmd.exe unchecked
  • Rewrite test_windows_start.py for 1.1.0: npm, pnpm and bun shims, Windows name spellings, cmd_safe rules, the launcher fix (46 tests)
  • chore(licences): add the generated THIRD-PARTY-NOTICES.txt with the full licence texts of the Python runtime and packages (extras and per-platform markers included), the PyInstaller bootloader, production npm packages, all 520 locked crates, the bundled fonts and the icon data
  • setup/notices.py --check runs in the CI test job; the frozen engine and the installers carry the file; GET /api/notices serves it; Help shows it under Third-party notices (i18n part 47, 25 locales)
  • NOTICE.md stays the human list and points to the generated file; HASHOUT entries backend 152 and 153, frontend 230

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.

agent_lookup.py is now the canonical 1.1.0 copied byte for byte from
formvis (sha256 313fcd40...1da8e, recorded in LOOKUP_HASHES). It follows
npm, pnpm and bun shims, reads a program name the way Windows opens it,
and refuses words cmd.exe would change with CommandLineRefused, an
OSError.

formdeck keeps its own behaviour: via_interpreter uses batch_file, the tab
routes still answer 409 for a refusal and Chat shows its sentence.
./formdeck claude no longer hands a .cmd to the command interpreter
unchecked on Windows; it starts through start_argv like the tabs.
setup/notices.py writes the full licence texts of what the app ships:
the Python runtime, the frozen Python packages (extras and markers for
macOS, Linux and Windows followed), the PyInstaller bootloader, the
production npm packages, every locked crate (SPDX id and repository when
a crate ships no file), the bundled font families and the icon data.
--check runs in the CI test job.

The frozen engine and the installers carry the file, the engine serves
it at GET /api/notices and Help shows it under Third-party notices
(key part 47 in every locale). NOTICE.md stays the human list.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:12
gbarnai and others added 3 commits November 29, 2026 19:44
…h none

Vendor the licence texts of the 41 packages whose published distribution
carries no licence file into setup/licence_texts, each with a SOURCE.txt
naming the upstream file and ref (or the SPDX text it was reconstructed
from). setup/notices.py uses them for bare entries and names the source in
the note; --check fails when a bare entry has a kept text.
setup/licence_texts is a folder of vendored licence files, so bash -n on it exited 126.
@nodemode-ai
nodemode-ai merged commit 0d08e5a into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 20:19
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