@artil-ai/hermes 0.1.3 → 0.1.4
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/__init__.py +9 -0
- package/package.json +1 -1
- package/plugin.yaml +1 -1
package/__init__.py
CHANGED
|
@@ -4,6 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import asyncio
|
|
6
6
|
import dataclasses
|
|
7
|
+
import getpass
|
|
7
8
|
import json
|
|
8
9
|
import shutil
|
|
9
10
|
import signal
|
|
@@ -52,6 +53,14 @@ class ArtilAdapter(BasePlatformAdapter):
|
|
|
52
53
|
stderr=asyncio.subprocess.PIPE,
|
|
53
54
|
start_new_session=True,
|
|
54
55
|
)
|
|
56
|
+
except PermissionError:
|
|
57
|
+
user = getpass.getuser()
|
|
58
|
+
self._set_fatal_error(
|
|
59
|
+
"artil_not_runnable",
|
|
60
|
+
f"The gateway runs as {user}, who cannot run {self._command}. Install artil as {user}.",
|
|
61
|
+
retryable=False,
|
|
62
|
+
)
|
|
63
|
+
return False
|
|
55
64
|
except OSError as error:
|
|
56
65
|
self._set_fatal_error(
|
|
57
66
|
"artil_missing", f"Could not run {self._command}: {error}", retryable=False
|
package/package.json
CHANGED
package/plugin.yaml
CHANGED