feat(FN-2709): migrate Hermes runtime plugin to pi-ai streaming client

- Replace Hermes pi module integration with pi-ai session streaming and updated runtime adapter contracts
- Remove legacy engine guard scaffolding and add hermes-stream-client coverage for streaming behavior
- Rewrite plugin and engine e2e tests to align with the new runtime flow and regenerate dist artifacts
- Update Hermes runtime README and package metadata to document pi-ai execution expectations
This commit is contained in:
Fusion
2026-04-27 11:32:05 -07:00
committed by gsxdsm
parent 597daeaf33
commit 626e768f39
33 changed files with 1010 additions and 635 deletions

View File

@@ -1,9 +1,11 @@
import type { AgentRuntime, AgentRuntimeOptions, AgentSession, AgentSessionResult } from "./types.js";
import type { AgentRuntime, AgentRuntimeOptions, AgentSession, AgentSessionResult, HermesModelConfig } from "./types.js";
export declare class HermesRuntimeAdapter implements AgentRuntime {
private readonly config;
readonly id = "hermes";
readonly name = "Hermes Runtime";
constructor(config?: HermesModelConfig);
createSession(options: AgentRuntimeOptions): Promise<AgentSessionResult>;
promptWithFallback(session: AgentSession, prompt: string, options?: unknown): Promise<void>;
promptWithFallback(session: AgentSession, prompt: string, _options?: unknown): Promise<void>;
describeModel(session: AgentSession): string;
dispose(session: AgentSession): Promise<void>;
}