git: b97933c0c097 - main - misc/hermes-agent: update to 0.16.0

Olivier Cochard <[email protected]> Tue, 04 Aug 2026 15:26:33 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by olivier:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b97933c0c0978ce41effd7e816ec639cfbac7972

commit b97933c0c0978ce41effd7e816ec639cfbac7972
Author:     Olivier Cochard <[email protected]>
AuthorDate: 2026-08-04 15:14:28 +0000
Commit:     Olivier Cochard <[email protected]>
CommitDate: 2026-08-04 15:14:28 +0000

    misc/hermes-agent: update to 0.16.0
---
 misc/hermes-agent/Makefile                         |  4 +--
 misc/hermes-agent/distinfo                         | 10 ++++----
 .../hermes-agent/files/patch-agent_skill__utils.py |  4 +--
 ...ig.py => patch-hermes__cli_config__defaults.py} | 15 ++++++++---
 .../files/patch-hermes__cli_gateway.py             | 29 ++++++++--------------
 misc/hermes-agent/files/patch-hermes__cli_main.py  |  4 +--
 misc/hermes-agent/files/patch-hermes__cli_setup.py | 18 +++++++-------
 .../files/patch-hermes__cli_uninstall.py           |  4 +--
 misc/hermes-agent/files/patch-tools_lazy__deps.py  |  4 +--
 9 files changed, 47 insertions(+), 45 deletions(-)

diff --git a/misc/hermes-agent/Makefile b/misc/hermes-agent/Makefile
index c691cc4a8709..8d130a56b747 100644
--- a/misc/hermes-agent/Makefile
+++ b/misc/hermes-agent/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	hermes-agent
-PORTVERSION=	0.15.0
+PORTVERSION=	0.16.0
 CATEGORIES=	misc python
 MASTER_SITES+=	LOCAL/olivier:webdist
 DISTFILES+=	${PORTNAME}-web-dist-${PORTVERSION}${EXTRACT_SUFX}:webdist
@@ -41,7 +41,7 @@ USES=		python:3.11+,run shebangfix
 USE_GITHUB=	yes
 GH_ACCOUNT=	NousResearch
 GH_PROJECT=	hermes-agent
-GH_TAGNAME=	v2026.7.7.2
+GH_TAGNAME=	v2026.8.3
 
 USE_RC_SUBR=	hermes_dashboard hermes_gateway
 
diff --git a/misc/hermes-agent/distinfo b/misc/hermes-agent/distinfo
index c8be9a9685e5..5f1ac7a521e0 100644
--- a/misc/hermes-agent/distinfo
+++ b/misc/hermes-agent/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1784325231
-SHA256 (hermes-agent-web-dist-0.15.0.tar.gz) = 4a74b4d3a3d4c2e4eaa5f8750627ed6a5ddfa3c7e403b16f5b84e360302235da
-SIZE (hermes-agent-web-dist-0.15.0.tar.gz) = 1453377
-SHA256 (NousResearch-hermes-agent-0.15.0-v2026.7.7.2_GH0.tar.gz) = f5d1022eed3763a768cf7b0f0844831f0170a35f54eb8d18223f2e93f503025e
-SIZE (NousResearch-hermes-agent-0.15.0-v2026.7.7.2_GH0.tar.gz) = 64174593
+TIMESTAMP = 1785855049
+SHA256 (hermes-agent-web-dist-0.16.0.tar.gz) = 4141ac39cf4ee44c4bcbc9496f2753c9b53af22bd85bc82816c45dc99ed5e24d
+SIZE (hermes-agent-web-dist-0.16.0.tar.gz) = 1486907
+SHA256 (NousResearch-hermes-agent-0.16.0-v2026.8.3_GH0.tar.gz) = 370542c7219faba6300905c3b419e14e6508a31ac698a1a5174e0386990834be
+SIZE (NousResearch-hermes-agent-0.16.0-v2026.8.3_GH0.tar.gz) = 63365932
diff --git a/misc/hermes-agent/files/patch-agent_skill__utils.py b/misc/hermes-agent/files/patch-agent_skill__utils.py
index 907292438bff..be1fc31615b3 100644
--- a/misc/hermes-agent/files/patch-agent_skill__utils.py
+++ b/misc/hermes-agent/files/patch-agent_skill__utils.py
@@ -1,6 +1,6 @@
---- agent/skill_utils.py.orig	2026-07-08 03:11:08 UTC
+--- agent/skill_utils.py.orig	2026-08-03 16:57:23 UTC
 +++ agent/skill_utils.py
-@@ -192,6 +192,9 @@ def skill_matches_platform(frontmatter: Dict[str, Any]
+@@ -236,6 +236,9 @@ def skill_matches_platform_list(platforms: Any) -> boo
          mapped = PLATFORM_MAP.get(normalized, normalized)
          if current.startswith(mapped):
              return True
diff --git a/misc/hermes-agent/files/patch-hermes__cli_config.py b/misc/hermes-agent/files/patch-hermes__cli_config__defaults.py
similarity index 63%
rename from misc/hermes-agent/files/patch-hermes__cli_config.py
rename to misc/hermes-agent/files/patch-hermes__cli_config__defaults.py
index 517d341280d1..504b7aadcd14 100644
--- a/misc/hermes-agent/files/patch-hermes__cli_config.py
+++ b/misc/hermes-agent/files/patch-hermes__cli_config__defaults.py
@@ -1,6 +1,15 @@
---- hermes_cli/config.py.orig	2026-07-08 03:11:08 UTC
-+++ hermes_cli/config.py
-@@ -2554,8 +2554,10 @@ DEFAULT_CONFIG = {
+--- hermes_cli/config_defaults.py.orig	2026-08-04 14:52:16 UTC
++++ hermes_cli/config_defaults.py
+@@ -4,6 +4,8 @@ verbatim from hermes_cli/config.py. Must not import fr
+ verbatim from hermes_cli/config.py. Must not import from hermes_cli.config.
+ """
+ 
++import sys
++
+ DEFAULT_CONFIG = {
+     "model": "",
+     "providers": {},
+@@ -2153,8 +2155,10 @@ DEFAULT_CONFIG = {
          # their TTS provider). Set to false to require explicit
          # ``pip install`` for everything beyond the base set — appropriate
          # for restricted networks, audited environments, or air-gapped
diff --git a/misc/hermes-agent/files/patch-hermes__cli_gateway.py b/misc/hermes-agent/files/patch-hermes__cli_gateway.py
index 75ae8f22707c..694768d825e2 100644
--- a/misc/hermes-agent/files/patch-hermes__cli_gateway.py
+++ b/misc/hermes-agent/files/patch-hermes__cli_gateway.py
@@ -1,6 +1,6 @@
---- hermes_cli/gateway.py.orig	2026-07-08 03:11:08 UTC
+--- hermes_cli/gateway.py.orig	2026-08-03 16:57:23 UTC
 +++ hermes_cli/gateway.py
-@@ -1638,6 +1638,45 @@ def supports_systemd_services() -> bool:
+@@ -1714,6 +1714,45 @@ def supports_systemd_services() -> bool:
      return True
  
  
@@ -46,7 +46,7 @@
  def is_macos() -> bool:
      return sys.platform == "darwin"
  
-@@ -4405,6 +4444,129 @@ def launchd_status(deep: bool = False):
+@@ -4687,6 +4726,129 @@ def launchd_status(deep: bool = False):
  
  
  # =============================================================================
@@ -176,7 +176,7 @@
  # Gateway Runner
  # =============================================================================
  
-@@ -6535,6 +6697,18 @@ def _gateway_command_inner(args):
+@@ -6932,6 +7094,18 @@ def _gateway_command_inner(args):
              )
              if start_now:
                  systemd_start(system=system)
@@ -195,7 +195,7 @@
          elif is_macos():
              launchd_install(force)
          elif is_windows():
-@@ -6609,6 +6783,8 @@ def _gateway_command_inner(args):
+@@ -7006,6 +7180,8 @@ def _gateway_command_inner(args):
              sys.exit(1)
          if supports_systemd_services():
              systemd_uninstall(system=system)
@@ -204,7 +204,7 @@
          elif is_macos():
              launchd_uninstall()
          elif is_windows():
-@@ -6662,6 +6838,8 @@ def _gateway_command_inner(args):
+@@ -7059,6 +7235,8 @@ def _gateway_command_inner(args):
              sys.exit(1)
          if supports_systemd_services():
              systemd_start(system=system)
@@ -213,7 +213,7 @@
          elif is_macos():
              launchd_start()
          elif is_windows():
-@@ -6739,6 +6917,12 @@ def _gateway_command_inner(args):
+@@ -7136,6 +7314,18 @@ def _gateway_command_inner(args):
                      service_available = True
                  except subprocess.CalledProcessError:
                      pass
@@ -223,13 +223,6 @@
 +                    service_available = True
 +                except subprocess.CalledProcessError:
 +                    pass
-             elif is_macos() and get_launchd_plist_path().exists():
-                 try:
-                     launchd_stop()
-@@ -6772,6 +6956,12 @@ def _gateway_command_inner(args):
-                     service_available = True
-                 except subprocess.CalledProcessError:
-                     pass
 +            elif supports_freebsd_rc():
 +                try:
 +                    freebsd_rc_stop()
@@ -239,7 +232,7 @@
              elif is_macos() and get_launchd_plist_path().exists():
                  try:
                      launchd_stop()
-@@ -6836,6 +7026,12 @@ def _gateway_command_inner(args):
+@@ -7233,6 +7423,12 @@ def _gateway_command_inner(args):
                      service_stopped = True
                  except subprocess.CalledProcessError:
                      pass
@@ -252,7 +245,7 @@
              elif is_macos() and get_launchd_plist_path().exists():
                  try:
                      launchd_stop()
-@@ -6864,6 +7060,8 @@ def _gateway_command_inner(args):
+@@ -7261,6 +7457,8 @@ def _gateway_command_inner(args):
                  or get_systemd_unit_path(system=True).exists()
              ):
                  systemd_start(system=system)
@@ -261,7 +254,7 @@
              elif is_macos() and get_launchd_plist_path().exists():
                  launchd_start()
              elif is_windows():
-@@ -6890,6 +7088,13 @@ def _gateway_command_inner(args):
+@@ -7287,6 +7485,13 @@ def _gateway_command_inner(args):
                  service_available = True
              except subprocess.CalledProcessError:
                  pass
@@ -275,7 +268,7 @@
          elif is_macos() and get_launchd_plist_path().exists():
              service_configured = True
              try:
-@@ -6972,6 +7177,9 @@ def _gateway_command_inner(args):
+@@ -7369,6 +7574,9 @@ def _gateway_command_inner(args):
              or get_systemd_unit_path(system=True).exists()
          ):
              systemd_status(deep, system=system, full=full)
diff --git a/misc/hermes-agent/files/patch-hermes__cli_main.py b/misc/hermes-agent/files/patch-hermes__cli_main.py
index 727edf8ebd82..2cb46e485db8 100644
--- a/misc/hermes-agent/files/patch-hermes__cli_main.py
+++ b/misc/hermes-agent/files/patch-hermes__cli_main.py
@@ -1,6 +1,6 @@
---- hermes_cli/main.py.orig	2026-07-08 03:11:08 UTC
+--- hermes_cli/main.py.orig	2026-08-03 16:57:23 UTC
 +++ hermes_cli/main.py
-@@ -12664,6 +12664,16 @@ def cmd_skills(args):
+@@ -11112,6 +11112,16 @@ def cmd_skills(args):
  
  
  def cmd_skills(args):
diff --git a/misc/hermes-agent/files/patch-hermes__cli_setup.py b/misc/hermes-agent/files/patch-hermes__cli_setup.py
index 00dbf99b26d9..e3a4aad9cbca 100644
--- a/misc/hermes-agent/files/patch-hermes__cli_setup.py
+++ b/misc/hermes-agent/files/patch-hermes__cli_setup.py
@@ -1,6 +1,6 @@
---- hermes_cli/setup.py.orig	2026-07-08 03:11:08 UTC
+--- hermes_cli/setup.py.orig	2026-08-03 16:57:23 UTC
 +++ hermes_cli/setup.py
-@@ -2033,6 +2033,7 @@ def setup_gateway(config: dict):
+@@ -2241,6 +2241,7 @@ def setup_gateway(config: dict):
              _is_service_installed,
              _is_service_running,
              supports_systemd_services,
@@ -8,7 +8,7 @@
              has_conflicting_systemd_units,
              has_legacy_hermes_units,
              install_linux_gateway_from_setup,
-@@ -2043,6 +2044,9 @@ def setup_gateway(config: dict):
+@@ -2251,6 +2252,9 @@ def setup_gateway(config: dict):
              launchd_install,
              launchd_start,
              launchd_restart,
@@ -18,7 +18,7 @@
              UserSystemdUnavailableError,
              SystemScopeRequiresRootError,
              _system_scope_wizard_would_need_root,
-@@ -2052,7 +2056,8 @@ def setup_gateway(config: dict):
+@@ -2260,7 +2264,8 @@ def setup_gateway(config: dict):
          service_installed = _is_service_installed()
          service_running = _is_service_running()
          supports_systemd = supports_systemd_services()
@@ -28,7 +28,7 @@
  
          print()
          if supports_systemd and has_conflicting_systemd_units():
-@@ -2070,6 +2075,8 @@ def setup_gateway(config: dict):
+@@ -2278,6 +2283,8 @@ def setup_gateway(config: dict):
                  try:
                      if supports_systemd:
                          systemd_restart()
@@ -37,7 +37,7 @@
                      elif _is_macos:
                          launchd_restart()
                      elif _is_windows:
-@@ -2095,6 +2102,8 @@ def setup_gateway(config: dict):
+@@ -2303,6 +2310,8 @@ def setup_gateway(config: dict):
                  try:
                      if supports_systemd:
                          systemd_start()
@@ -46,7 +46,7 @@
                      elif _is_macos:
                          launchd_start()
                      elif _is_windows:
-@@ -2112,6 +2121,8 @@ def setup_gateway(config: dict):
+@@ -2320,6 +2329,8 @@ def setup_gateway(config: dict):
          elif supports_service_manager:
              if supports_systemd:
                  svc_name = "systemd"
@@ -55,7 +55,7 @@
              elif _is_macos:
                  svc_name = "launchd"
              else:
-@@ -2126,6 +2137,9 @@ def setup_gateway(config: dict):
+@@ -2334,6 +2345,9 @@ def setup_gateway(config: dict):
                      started_inline = False
                      if supports_systemd:
                          installed_scope, did_install = install_linux_gateway_from_setup(force=False)
@@ -65,7 +65,7 @@
                      elif _is_macos:
                          launchd_install(force=False)
                          did_install = True
-@@ -2143,6 +2157,8 @@ def setup_gateway(config: dict):
+@@ -2351,6 +2365,8 @@ def setup_gateway(config: dict):
                          try:
                              if supports_systemd:
                                  systemd_start(system=installed_scope == "system")
diff --git a/misc/hermes-agent/files/patch-hermes__cli_uninstall.py b/misc/hermes-agent/files/patch-hermes__cli_uninstall.py
index eaebe6198d36..5c7564199600 100644
--- a/misc/hermes-agent/files/patch-hermes__cli_uninstall.py
+++ b/misc/hermes-agent/files/patch-hermes__cli_uninstall.py
@@ -1,6 +1,6 @@
---- hermes_cli/uninstall.py.orig	2026-07-08 03:11:08 UTC
+--- hermes_cli/uninstall.py.orig	2026-08-03 16:57:23 UTC
 +++ hermes_cli/uninstall.py
-@@ -261,7 +261,22 @@ def uninstall_gateway_service():
+@@ -265,7 +265,22 @@ def uninstall_gateway_service():
          except Exception as e:
              log_warn(f"Could not remove launchd gateway service: {e}")
  
diff --git a/misc/hermes-agent/files/patch-tools_lazy__deps.py b/misc/hermes-agent/files/patch-tools_lazy__deps.py
index 8b26c4100761..806ce5257141 100644
--- a/misc/hermes-agent/files/patch-tools_lazy__deps.py
+++ b/misc/hermes-agent/files/patch-tools_lazy__deps.py
@@ -1,6 +1,6 @@
---- tools/lazy_deps.py.orig	2026-07-08 03:11:08 UTC
+--- tools/lazy_deps.py.orig	2026-08-03 16:57:23 UTC
 +++ tools/lazy_deps.py
-@@ -443,7 +443,9 @@ def _allow_lazy_installs() -> bool:
+@@ -514,7 +514,9 @@ def _allow_lazy_installs() -> bool:
          cfg = None
      if cfg is not None:
          sec = cfg.get("security") or {}