@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.
|
|
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": "
|
|
91
|
+
"gitHead": "a0f510c81c7c1c5d20a80738ad4a2e8052187767",
|
|
92
92
|
"inlineRelease": {
|
|
93
|
-
"tag": "hermes-agent-v1.0.0-alpha.
|
|
94
|
-
"sha": "
|
|
93
|
+
"tag": "hermes-agent-v1.0.0-alpha.2",
|
|
94
|
+
"sha": "a0f510c81c7c1c5d20a80738ad4a2e8052187767"
|
|
95
95
|
}
|
|
96
96
|
}
|
package/plugin/inline/cli.py
CHANGED
|
@@ -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.
|
|
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
|
|
package/plugin/inline/tools.py
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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:
|