@artil-ai/hermes 0.1.2 → 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/README.md +2 -2
- package/__init__.py +16 -6
- package/package.json +1 -1
- package/plugin.yaml +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @artil-ai/hermes
|
|
2
2
|
|
|
3
3
|
The Artil platform for the [Hermes](https://hermes-agent.nousresearch.com)
|
|
4
|
-
gateway. New email and
|
|
5
|
-
to its Message URL, reach the gateway as notices that
|
|
4
|
+
gateway. New email, texts and Telegram messages to the agent account, and
|
|
5
|
+
messages its team sends to its Message URL, reach the gateway as notices that
|
|
6
6
|
`artil internal hermes-channel` prints, from where it left off; the agent
|
|
7
7
|
answers them with the `artil` CLI.
|
|
8
8
|
|
package/__init__.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
"""Artil for Hermes: notices about an agent account's new
|
|
1
|
+
"""Artil for Hermes: notices about an agent account's new messages reach the gateway."""
|
|
2
2
|
|
|
3
3
|
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
|
|
@@ -17,11 +18,12 @@ from gateway.platforms.base import BasePlatformAdapter, MessageEvent, MessageTyp
|
|
|
17
18
|
PLATFORM = "artil"
|
|
18
19
|
|
|
19
20
|
HINT = (
|
|
20
|
-
"Notices about new email and
|
|
21
|
-
"to its Message URL, arrive here. Read each email
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
21
|
+
"Notices about new email, texts and Telegram messages to this Artil agent account, and "
|
|
22
|
+
"messages its team sends to its Message URL, arrive here. Read each email, text or Telegram "
|
|
23
|
+
"message with the artil command its notice names, and answer it with "
|
|
24
|
+
"`artil email send --reply-to`, `artil sms send --reply-to` or "
|
|
25
|
+
"`artil telegram send --reply-to`; a message from the Message URL comes whole, and its notice "
|
|
26
|
+
"says how to answer it. Nobody outside reads what you write in this conversation."
|
|
25
27
|
)
|
|
26
28
|
|
|
27
29
|
|
|
@@ -51,6 +53,14 @@ class ArtilAdapter(BasePlatformAdapter):
|
|
|
51
53
|
stderr=asyncio.subprocess.PIPE,
|
|
52
54
|
start_new_session=True,
|
|
53
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
|
|
54
64
|
except OSError as error:
|
|
55
65
|
self._set_fatal_error(
|
|
56
66
|
"artil_missing", f"Could not run {self._command}: {error}", retryable=False
|
package/package.json
CHANGED
package/plugin.yaml
CHANGED