- 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>
29 lines
794 B
TypeScript
29 lines
794 B
TypeScript
import { Bot } from "lucide-react";
|
|
|
|
interface AgentEmptyStateProps {
|
|
title?: string;
|
|
description?: string;
|
|
ctaLabel?: string;
|
|
onCtaClick?: () => void;
|
|
}
|
|
|
|
export function AgentEmptyState({
|
|
title = "No agents found",
|
|
description = "Create an agent to get started",
|
|
ctaLabel = "Create Agent",
|
|
onCtaClick,
|
|
}: AgentEmptyStateProps) {
|
|
return (
|
|
<div className="agent-empty">
|
|
<Bot size={48} opacity={0.3} className="agent-empty-state__icon" />
|
|
<p className="agent-empty-state__title">{title}</p>
|
|
<p className="agent-empty-state__description text-secondary">{description}</p>
|
|
{onCtaClick ? (
|
|
<button type="button" className="btn btn-task-create btn-sm" onClick={onCtaClick}>
|
|
{ctaLabel}
|
|
</button>
|
|
) : null}
|
|
</div>
|
|
);
|
|
}
|