feat(FN-2481): align Hermes runtime artifacts and compatibility coverage
- Regenerate fusion-plugin-hermes-runtime build artifacts and manifest metadata for runtime packaging - Refactor Hermes runtime source into dedicated pi-module, runtime-adapter, and shared type modules - Expand Hermes and engine plugin-runner tests to validate cross-runtime compatibility behavior - Update getting-started, settings reference, and Hermes README docs to reflect the current runtime integration guidance
This commit is contained in:
38
plugins/fusion-plugin-hermes-runtime/dist/runtime-adapter.js
vendored
Normal file
38
plugins/fusion-plugin-hermes-runtime/dist/runtime-adapter.js
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { createFnAgent, describeModel, promptWithFallback } from "./pi-module.js";
|
||||
const getModelDescription = describeModel;
|
||||
export class HermesRuntimeAdapter {
|
||||
id = "hermes";
|
||||
name = "Hermes Runtime";
|
||||
async createSession(options) {
|
||||
return createFnAgent({
|
||||
cwd: options.cwd,
|
||||
systemPrompt: options.systemPrompt,
|
||||
tools: options.tools,
|
||||
customTools: options.customTools,
|
||||
onText: options.onText,
|
||||
onThinking: options.onThinking,
|
||||
onToolStart: options.onToolStart,
|
||||
onToolEnd: options.onToolEnd,
|
||||
defaultProvider: options.defaultProvider,
|
||||
defaultModelId: options.defaultModelId,
|
||||
fallbackProvider: options.fallbackProvider,
|
||||
fallbackModelId: options.fallbackModelId,
|
||||
defaultThinkingLevel: options.defaultThinkingLevel,
|
||||
sessionManager: options.sessionManager,
|
||||
skillSelection: options.skillSelection,
|
||||
skills: options.skills,
|
||||
});
|
||||
}
|
||||
async promptWithFallback(session, prompt, options) {
|
||||
return promptWithFallback(session, prompt, options);
|
||||
}
|
||||
describeModel(session) {
|
||||
return getModelDescription(session);
|
||||
}
|
||||
async dispose(session) {
|
||||
if (typeof session.dispose === "function") {
|
||||
await session.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=runtime-adapter.js.map
|
||||
Reference in New Issue
Block a user