fix(plugins): re-export probe symbols + declare plugin deps in dashboard

- Hermes / OpenClaw plugin index.ts now re-export `probeHermesBinary` /
  `probeOpenClawBinary` and their status types so the dashboard's
  `runtime-provider-probes.ts` façade can import them via the public
  package entry instead of deep paths.
- Dashboard `package.json` adds `@fusion-plugin-examples/hermes-runtime`,
  `…/openclaw-runtime`, `…/paperclip-runtime` as workspace deps so
  pnpm symlinks them into `packages/dashboard/node_modules/`. Without
  these, the new probe imports failed with "Cannot find module" during
  `pnpm typecheck`.

This clears 6 of the 9 outstanding typecheck errors. The remaining 3 are
in the in-flight Hermes plugin rewrite (runtime-adapter still imports
from a deleted `./pi-module.js`; the new `index.ts` calls a factory
with the wrong arg type) and should be resolved by the same change set
that landed the rewrite.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Fusion
2026-04-27 20:22:18 -07:00
committed by gsxdsm
parent 1a1bec1fb4
commit d3e1c28cef
82 changed files with 8481 additions and 2833 deletions

View File

@@ -1,12 +1,21 @@
import type { AgentRuntime, AgentRuntimeOptions, AgentSession, AgentSessionResult, HermesModelConfig } from "./types.js";
/**
* Hermes Runtime Adapter — drives the local `hermes` CLI as a subprocess.
*
* Each call to `promptWithFallback` invokes `hermes chat -q ... -Q --source tool`
* and captures the resulting `session_id:` line. Subsequent calls on the same
* session pass `--resume <id>` to continue the conversation.
*/
import type { HermesCliSettings } from "./cli-spawn.js";
import type { AgentRuntime, AgentRuntimeOptions, AgentSession, AgentSessionResult } from "./types.js";
export declare class HermesRuntimeAdapter implements AgentRuntime {
private readonly config;
readonly id = "hermes";
readonly name = "Hermes Runtime";
constructor(config?: HermesModelConfig);
private readonly settings;
constructor(settings?: Record<string, unknown> | HermesCliSettings);
createSession(options: AgentRuntimeOptions): Promise<AgentSessionResult>;
promptWithFallback(session: AgentSession, prompt: string, _options?: unknown): Promise<void>;
describeModel(session: AgentSession): string;
dispose(session: AgentSession): Promise<void>;
dispose(_session: AgentSession): Promise<void>;
private describeFromSettings;
}
//# sourceMappingURL=runtime-adapter.d.ts.map