Skip to content

feat(#385,#395): Hermes auto-install + room operations - #400

Merged
ajianaz merged 3 commits into
developfrom
feat/385-395-hermes-improvements
Jun 19, 2026
Merged

ajianaz merged 3 commits into
developfrom
feat/385-395-hermes-improvements

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Closes #385, closes #395.

#385: uteke init --agent hermes auto-installs to ~/.hermes/plugins/uteke-tool/. Plugin uses stdlib only. MCP server path documented.

#395: Plugin exposes room_create, room_recall, room_list, room_summary, room_stats, room_delete. Server endpoints: POST /room/create, GET /room/list, POST /room/stats, DELETE /room/delete.

#385: init --agent hermes now installs to ~/.hermes/plugins/uteke-tool/
instead of generating to CWD. Falls back to CWD if HOME not set.
Plugin uses Python stdlib only (urllib, no requests dependency).
README documents MCP server path: hermes mcp add uteke --command uteke-mcp.

#395: Plugin now exposes room operations: room_create, room_recall,
room_list, room_summary, room_stats, room_delete. Added server endpoints
for the missing operations: POST /room/create, GET /room/list,
POST /room/stats, DELETE /room/delete.

Also fixes #392 (room list cross-namespace visibility) and #393
(room create command) which were already merged but needed server-side
endpoints for the plugin.
@ajianaz ajianaz added enhancement New feature or request scope:cli CLI and UX scope:integration External integrations labels Jun 19, 2026
Comment thread crates/uteke-cli/src/init.rs Fixed
Comment thread crates/uteke-server/src/main.rs Fixed
Comment thread crates/uteke-server/src/main.rs Fixed
@github-actions

github-actions Bot commented Jun 19, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

❌ Blocked — critical issues found.

🔴 Error (2)

  • crates/uteke-cli/src/init.rs:243 — The generated tool.py advertises and invokes room_recall (POST /room/recall) and room_summary (POST /room/summary), but this diff only adds server handlers for /room/create, /room/list, /room/stats, and /room/delete in crates/uteke-server/src/main.rs. There is no corresponding route added here for /room/recall, and /room/summary is not present in the routing section shown either. As shipped, those plugin actions will fail at runtime against this server build.
  • crates/uteke-server/src/main.rs:378 — In url_decode, when a % is followed by two non-hex characters, the code pushes only '%' and then advances by one byte, causing the next two characters to be processed separately. For example, %ZZ becomes %ZZ, but %2G becomes %2G only by accident while mixed malformed sequences can be reassembled inconsistently. More importantly, when % is followed by fewer than two bytes, the branch falls through and preserves the raw byte, creating different behavior for malformed inputs depending on length. Since this helper is used for request routing params such as namespace and room_id, malformed query strings can be interpreted unpredictably instead of being rejected or preserved exactly.

Review powered by cora-cli · BYOK · MIT

1. Windows support: check USERPROFILE as fallback for HOME when
   determining plugin install directory.
2. URL decoding: parse_query_param now percent-decodes values (%20 →
   space, + → space) for proper namespace/room_id handling.
3. DELETE /room/delete returns 404 for non-existent rooms instead of
   500 (not-found is a client error, not server failure).
Comment thread crates/uteke-server/src/main.rs Fixed
CodeCora r2:
1. Plugin install path uses PathBuf::push() for platform-native
   separators instead of hardcoded forward slashes.
2. url_decode collects bytes into Vec<u8> then converts via
   String::from_utf8() to correctly handle multi-byte UTF-8 sequences.
println!(" 1. Copy to your Hermes plugins directory");
println!(" 2. Enable in Hermes config: plugins.enabled: [uteke-tool]");
println!(" 3. Start uteke daemon: uteke-serve --port 8767");
println!("✓ Hermes plugin installed: {}/", plugin_dir.display());
let bytes = s.as_bytes();
let mut decoded: Vec<u8> = Vec::with_capacity(bytes.len());
let mut i = 0;
while i < bytes.len() {
@ajianaz
ajianaz merged commit 43d419d into develop Jun 19, 2026
8 of 9 checks passed
@ajianaz
ajianaz deleted the feat/385-395-hermes-improvements branch July 9, 2026 14:28
ajianaz added a commit that referenced this pull request Aug 13, 2026
* feat(#385,#395): auto-install Hermes plugin + room operations

#385: init --agent hermes now installs to ~/.hermes/plugins/uteke-tool/
instead of generating to CWD. Falls back to CWD if HOME not set.
Plugin uses Python stdlib only (urllib, no requests dependency).
README documents MCP server path: hermes mcp add uteke --command uteke-mcp.

#395: Plugin now exposes room operations: room_create, room_recall,
room_list, room_summary, room_stats, room_delete. Added server endpoints
for the missing operations: POST /room/create, GET /room/list,
POST /room/stats, DELETE /room/delete.

Also fixes #392 (room list cross-namespace visibility) and #393
(room create command) which were already merged but needed server-side
endpoints for the plugin.

* fix(#385,#395): CodeCora fixes

1. Windows support: check USERPROFILE as fallback for HOME when
   determining plugin install directory.
2. URL decoding: parse_query_param now percent-decodes values (%20 →
   space, + → space) for proper namespace/room_id handling.
3. DELETE /room/delete returns 404 for non-existent rooms instead of
   500 (not-found is a client error, not server failure).

* fix(#385,#395): native path separators + proper UTF-8 url_decode

CodeCora r2:
1. Plugin install path uses PathBuf::push() for platform-native
   separators instead of hardcoded forward slashes.
2. url_decode collects bytes into Vec<u8> then converts via
   String::from_utf8() to correctly handle multi-byte UTF-8 sequences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request scope:cli CLI and UX scope:integration External integrations

Projects

None yet

2 participants