@inline-chat/hermes-agent-adapter 0.0.4 → 0.0.5-alpha.1
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 +14 -8
- package/dist/install.js +74 -74
- package/package.json +10 -9
- package/plugin/inline/adapter.py +21 -23
- package/plugin/inline/cli.py +276 -14
- package/plugin/inline/plugin.yaml +2 -2
- package/plugin/inline/sidecar/index.mjs +68 -71
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Supported:
|
|
|
26
26
|
- Supervised loopback Node sidecar using the Inline realtime SDK.
|
|
27
27
|
- Realtime inbound messages, catch-up, replies to bot messages, and action callbacks.
|
|
28
28
|
- Outbound text, Markdown parsing, opt-in edit-message streaming, long-message splitting, edits, deletes, typing, and presence.
|
|
29
|
-
- Inline reply-thread routing,
|
|
29
|
+
- Inline reply-thread routing, explicit-request auto mode, `/threads` controls, parent chat metadata, parent/thread prompt fallback, and thread-specific skill bindings.
|
|
30
30
|
- Native Hermes `inline` tool for current-chat/thread reads, bounded history and search, exact message lookup, editing/deleting bot-owned messages, reactions, pin/unpin/list pins, reply-thread creation, and avatar presence/status.
|
|
31
31
|
- Per-turn Inline sender/chat/thread IDs, selective reply/thread/observed context, and parent-thread context, with prompt guidance for sender mentions and current chat/thread Markdown links.
|
|
32
32
|
- OpenClaw-style entity summaries for live turns and tool-fetched history, including mentions, text links, thread links, thread-title links, code/pre blocks, bot commands, and group mentions as untrusted Hermes context.
|
|
@@ -55,9 +55,14 @@ Unsupported or intentionally limited:
|
|
|
55
55
|
npm install -g @inline-chat/hermes-agent-adapter
|
|
56
56
|
inline-hermes install
|
|
57
57
|
hermes plugins enable inline-platform
|
|
58
|
+
hermes gateway setup
|
|
58
59
|
```
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
Select Inline in the messaging-platform picker. The default path is: go to
|
|
62
|
+
**Inline → Settings → Bots → Create a new bot**, then paste its token. See the
|
|
63
|
+
[Inline bot creation guide](https://inline.chat/docs/creating-a-bot). The
|
|
64
|
+
optional CLI path can install/sign in to the Inline CLI and create the bot from
|
|
65
|
+
the terminal. Both paths securely save the token and configure access.
|
|
61
66
|
|
|
62
67
|
## Coding Agent Setup Prompt
|
|
63
68
|
|
|
@@ -76,7 +81,7 @@ Tasks:
|
|
|
76
81
|
1. Verify Node.js is version 20 or newer and Hermes Agent is installed.
|
|
77
82
|
2. Install or upgrade @inline-chat/hermes-agent-adapter globally.
|
|
78
83
|
3. Run inline-hermes install and hermes plugins enable inline-platform.
|
|
79
|
-
4.
|
|
84
|
+
4. Run hermes gateway setup and select Inline. Prefer its guided bot-creation path; if no Inline token is available, let this interactive wizard ask the user to sign in or paste one.
|
|
80
85
|
5. Run inline-hermes doctor --json and inline-hermes test-send --dry-run --to chat:123 --text "Inline Hermes dry-run" --json.
|
|
81
86
|
6. Report the exact commands run and any remaining manual steps, without revealing secrets.
|
|
82
87
|
```
|
|
@@ -116,7 +121,7 @@ uv run ./hermes plugins list --plain --no-bundled
|
|
|
116
121
|
Expected local output includes:
|
|
117
122
|
|
|
118
123
|
```text
|
|
119
|
-
enabled user 0.0.
|
|
124
|
+
enabled user 0.0.5 inline-platform
|
|
120
125
|
```
|
|
121
126
|
|
|
122
127
|
## Update Or Reinstall
|
|
@@ -139,7 +144,7 @@ mismatch, rerun the same command after rebuilding or upgrading the package.
|
|
|
139
144
|
|
|
140
145
|
- Hermes Agent: requires the external user plugin registry and native platform
|
|
141
146
|
plugin loader available in Hermes Agent `0.17.x`. This package was validated
|
|
142
|
-
against Hermes Agent `0.
|
|
147
|
+
against Hermes Agent `0.18.2` from source commit `9de9c25`.
|
|
143
148
|
- Node.js: `>=20` is required for the bundled sidecar. Hermes-managed Node 22,
|
|
144
149
|
system Node, or an explicit `INLINE_NODE_BIN` path all work.
|
|
145
150
|
- Inline transport: the sidecar uses `@inline-chat/realtime-sdk@0.0.13` and is
|
|
@@ -253,7 +258,7 @@ Access control follows Hermes' native platform model:
|
|
|
253
258
|
| `INLINE_STRICT_MENTION` | Requires a mention or wake word on every group turn, including replies to the bot and followed threads. Defaults to `false`. |
|
|
254
259
|
| `INLINE_ALLOWED_CHATS` | Comma-separated group/thread chat ids where the bot may respond. Parent chat ids also match their Inline reply threads. DMs are not filtered. Empty means no chat restriction. |
|
|
255
260
|
| `INLINE_FREE_RESPONSE_CHATS` | Comma-separated group/thread chat ids where no mention is required. Parent chat ids also match their Inline reply threads. Useful for dedicated agent rooms. |
|
|
256
|
-
| `INLINE_REPLY_THREADS` | Controls top-level reply-thread creation. `auto` creates child reply
|
|
261
|
+
| `INLINE_REPLY_THREADS` | Controls top-level reply-thread creation. `auto` creates a child reply thread only for an explicit thread request; `on` always creates; `off` stays flat. Existing child-thread conversations always remain in their thread. Defaults to `auto`. |
|
|
257
262
|
| `INLINE_CONTEXT_BACKFILL` | Automatic context mode. `selective` is the default, `off` disables automatic history windows, and `always` restores recent-history backfill on every turn. |
|
|
258
263
|
| `INLINE_THREAD_CONTEXT_LIMIT` | Max current chat/thread messages for selective thread or mention-gap context. Must be `0` through `100`; defaults to `30`. |
|
|
259
264
|
| `INLINE_REPLY_CONTEXT_LIMIT` | Max messages in the anchored window around a replied-to Inline message. Must be `0` through `50`; defaults to `10`. |
|
|
@@ -278,6 +283,8 @@ Access control follows Hermes' native platform model:
|
|
|
278
283
|
| `platforms.inline.typing_indicator` | Hermes-native toggle for Inline typing/presence while a turn is running. Defaults to `true`; set to `false` to keep busy threads visually quiet. |
|
|
279
284
|
| `platforms.inline.gateway_restart_notification` | Hermes-native toggle for gateway online/restarted notices. Defaults to `true`. |
|
|
280
285
|
|
|
286
|
+
Policy is evaluated in three ordered stages: **access**, then **wake**, then **delivery**. Access checks the chat and sender policy and is a hard gate; a mention, reply, callback, or command never grants access to a blocked chat or actor. Wake decides whether an allowed group turn invokes Hermes: free-response chats wake normally, while mention-gated chats require an explicit mention unless a configured reply-to-bot or followed-thread exception applies. Delivery keeps existing child-thread conversations in place; top-level `auto` creates a child only for explicit thread intent, `on` always creates one, and `off` stays flat.
|
|
287
|
+
|
|
281
288
|
Equivalent Hermes YAML can use `allow_from`, `allowed_users`,
|
|
282
289
|
`group_allow_from`, `dm_policy`, `group_policy`, `require_mention`,
|
|
283
290
|
`strict_mention`, `allowed_chats`, `free_response_chats`, `reply_threads`,
|
|
@@ -287,8 +294,7 @@ Equivalent Hermes YAML can use `allow_from`, `allowed_users`,
|
|
|
287
294
|
as `base_url`, `parse_markdown`, `media_max_mb`, `upload_max_mb`,
|
|
288
295
|
`state_path`, `sidecar_port`, `connect_timeout_ms`, `sync_commands`, and
|
|
289
296
|
`command_limit` can also be set there.
|
|
290
|
-
|
|
291
|
-
also sees them directly.
|
|
297
|
+
Prefer Hermes YAML for behavioral settings. Environment variables remain supported for compatibility and secret-backed deployment inputs.
|
|
292
298
|
Use a JSON list for mention regexes that contain commas, for example
|
|
293
299
|
`["hermes\\b[:,]?"]`.
|
|
294
300
|
|