Files
fusion/plugins/fusion-plugin-hermes-runtime
gsxdsm d13aec45e6 chore: consolidate remaining tests into __tests__/ dirs and refactor mocks
Mostly mechanical cleanup left over from the earlier test-consolidation pass:
- Update import paths to ../../ for mocks now that test files moved deeper
- Simplify mock setup (drop usePluginUiSlots inline mock, etc.)
- Move engine ipc + runtimes tests into __tests__/ subdirs
- Move dashboard utils tests into __tests__/ subdir
- Refresh fusion-plugin-hermes-runtime/dist artifacts

build-exe.test.ts: spawn-import fix from a parallel branch (resolved during
worktree merge of the CSS extraction work).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 19:39:20 -07:00
..

Hermes Runtime Plugin

Provides an executable Hermes runtime plugin for Fusion. This package enables runtime registration, discovery, and session execution so agents configured with runtimeConfig.runtimeHint: "hermes" can run through the standard runtime adapter contract.

Overview

This plugin follows the runtime adapter pattern used by other executable plugin runtimes:

  • Registers Hermes runtime metadata for resolver discovery
  • Creates executable runtime sessions via createFnAgent
  • Delegates prompt execution through promptWithFallback
  • Exposes model descriptions through describeModel
  • Supports best-effort session disposal via dispose()

Installation

Option 1: Copy to plugins directory

cp -r fusion-plugin-hermes-runtime ~/.fusion/plugins/

Option 2: Install via CLI

fn plugin add ./plugins/fusion-plugin-hermes-runtime

Runtime Metadata

  • Plugin ID: fusion-plugin-hermes-runtime
  • Package name: @fusion-plugin-examples/hermes-runtime
  • Runtime ID: hermes
  • Runtime name: Hermes Runtime
  • Version: 0.1.0
  • Description: Hermes-backed AI session using the user's configured pi provider and model

Agent Configuration

Configure an agent to target Hermes via runtimeConfig.runtimeHint:

{
  "name": "Hermes Executor",
  "role": "executor",
  "runtimeConfig": {
    "runtimeHint": "hermes"
  }
}

Local Development

# Run plugin tests
pnpm --filter @fusion-plugin-examples/hermes-runtime test

# Build plugin output to dist/
pnpm --filter @fusion-plugin-examples/hermes-runtime build