Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license

This commit is contained in:
2026-09-05 13:26:46 +03:00
commit 03634b1ca3
11340 changed files with 3442369 additions and 0 deletions
@@ -0,0 +1,39 @@
"""The desktop subcommand's --local launch flag.
Local models ship on main behind this flag: `hermes desktop --local` (or
`Hermes.exe --local` directly) shows the local-models GUI surfaces; without
it the desktop hides them all, even when local models are configured. These
tests pin the argparse contract; the pass-through to the Electron argv lives
in cmd_gui's launch paths.
"""
import argparse
from hermes_cli.subcommands.gui import build_gui_parser
def _parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(prog="hermes")
subparsers = parser.add_subparsers(dest="command")
build_gui_parser(subparsers, cmd_gui=lambda args: None)
return parser
def test_local_flag_parses():
args = _parser().parse_args(["desktop", "--local"])
assert args.local is True
def test_local_flag_defaults_off():
args = _parser().parse_args(["desktop"])
assert args.local is False
def test_local_flag_composes_with_build_flags():
args = _parser().parse_args(["desktop", "--local", "--force-build"])
assert args.local is True
assert args.force_build is True