@inline-chat/hermes-agent-adapter 1.0.0-alpha.1 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inline-chat/hermes-agent-adapter",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "Hermes Agent platform adapter for Inline, with a native Python plugin and bundled Inline realtime sidecar.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -88,9 +88,9 @@
88
88
  "testedHermesVersion": "0.22.5",
89
89
  "testedHermesCommit": "bf0203a794a07aac3ff764972ab9087baa4e4f4e"
90
90
  },
91
- "gitHead": "da6de417e9cf98f5f36d44c2d380267e91335905",
91
+ "gitHead": "a0f510c81c7c1c5d20a80738ad4a2e8052187767",
92
92
  "inlineRelease": {
93
- "tag": "hermes-agent-v1.0.0-alpha.1",
94
- "sha": "da6de417e9cf98f5f36d44c2d380267e91335905"
93
+ "tag": "hermes-agent-v1.0.0-alpha.2",
94
+ "sha": "a0f510c81c7c1c5d20a80738ad4a2e8052187767"
95
95
  }
96
96
  }
@@ -27,7 +27,7 @@ _CLI_INSTALL_URL = "https://inline.chat/cli/install.sh"
27
27
  _MAX_TOKEN_BYTES = 16 * 1024
28
28
  _MAX_PROBE_RESPONSE_BYTES = 64 * 1024
29
29
  _MACHINE_SETUP_PROTOCOL_VERSION = 1
30
- _PROBE_USER_AGENT = "inline-hermes-agent-adapter/1.0.0-alpha.1"
30
+ _PROBE_USER_AGENT = "inline-hermes-agent-adapter/1.0.0-alpha.2"
31
31
  _ENV_REFERENCE_RE = re.compile(r"^\$\{([A-Za-z_][A-Za-z0-9_]*)\}$")
32
32
 
33
33
 
@@ -3,7 +3,7 @@ label: Inline
3
3
  kind: platform
4
4
  provides_tools:
5
5
  - inline
6
- version: 1.0.0-alpha.1
6
+ version: 1.0.0-alpha.2
7
7
  requires_hermes: ">=0.21.3"
8
8
  description: >
9
9
  Inline platform adapter for Hermes Agent. The adapter runs as a native
@@ -2,6 +2,7 @@
2
2
  from __future__ import annotations
3
3
 
4
4
  import json
5
+ import http.client
5
6
  from collections import OrderedDict
6
7
  import os
7
8
  import re
@@ -680,13 +681,16 @@ def _sidecar_call(path: str, body: Dict[str, Any]) -> Dict[str, Any]:
680
681
  method="POST",
681
682
  )
682
683
  try:
683
- with urllib.request.urlopen(request, timeout=15) as response:
684
+ # IPC stays on loopback even when the host configures an HTTP proxy.
685
+ # The sidecar token must never be forwarded to that proxy.
686
+ opener = urllib.request.build_opener(urllib.request.ProxyHandler({}))
687
+ with opener.open(request, timeout=15) as response:
684
688
  raw = response.read().decode("utf-8")
685
689
  status = response.status
686
690
  except urllib.error.HTTPError as exc:
687
691
  raw = exc.read().decode("utf-8", errors="replace")
688
692
  status = exc.code
689
- except urllib.error.URLError as exc:
693
+ except (OSError, http.client.HTTPException) as exc:
690
694
  raise InlineToolError(f"Inline sidecar is not reachable: {exc}", "transient") from exc
691
695
 
692
696
  try: