@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artil-ai/hermes",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Hear about your Artil agent's new messages in the Hermes gateway, and answer them with the artil CLI.",
5
5
  "keywords": [
6
6
  "artil",
package/plugin.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  name: artil
2
2
  label: Artil
3
3
  kind: platform
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  description: >
6
6
  New email and texts to an Artil agent account, and messages its team sends to
7
7
  its Message URL, reach the Hermes gateway through the artil CLI. The agent