mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 18:30:39 +09:00
Builtin adapter types (hermes_local, openclaw_gateway, etc.) could not be overridden by external adapters on the UI side. The registry always returned the built-in parser, ignoring the external ui-parser.js shipped by packages like hermes-paperclip-adapter. Changes: - registry.ts: full override lifecycle with generation guard for stale loads - disabled-overrides-store.ts: client-side override pause state with useSyncExternalStore reactivity (persisted to localStorage) - use-disabled-adapters.ts: subscribe to override store changes - AdapterManager.tsx: separate controls for override pause (client-side) vs menu visibility (server-side), virtual builtin rows with badges - adapters.ts: allow reload/reinstall of builtin types when overridden
12 lines
505 B
TypeScript
12 lines
505 B
TypeScript
import type { UIAdapterModule } from "../types";
|
|
import { parseHermesStdoutLine } from "hermes-paperclip-adapter/ui";
|
|
import { SchemaConfigFields, buildSchemaAdapterConfig } from "../schema-config-fields";
|
|
import { buildHermesConfig } from "hermes-paperclip-adapter/ui";
|
|
|
|
export const hermesLocalUIAdapter: UIAdapterModule = {
|
|
type: "hermes_local",
|
|
label: "Hermes Agent",
|
|
parseStdoutLine: parseHermesStdoutLine,
|
|
ConfigFields: SchemaConfigFields,
|
|
buildAdapterConfig: buildSchemaAdapterConfig,
|
|
};
|