mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 10:30:37 +09:00
Refactor monolithic heartbeat service, AgentConfigForm, and CLI heartbeat-run into a proper adapter registry pattern. Each adapter type (process, claude-local, codex-local, http) gets its own module with server-side execution logic, CLI invocation, and UI config form. Significantly reduces file sizes and enables adding new adapters without touching core code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
411 B
TypeScript
12 lines
411 B
TypeScript
import type { UIAdapterModule } from "../types";
|
|
import { parseHttpStdoutLine } from "./parse-stdout";
|
|
import { HttpConfigFields } from "./config-fields";
|
|
import { buildHttpConfig } from "./build-config";
|
|
|
|
export const httpUIAdapter: UIAdapterModule = {
|
|
type: "http",
|
|
label: "HTTP Webhook",
|
|
parseStdoutLine: parseHttpStdoutLine,
|
|
ConfigFields: HttpConfigFields,
|
|
buildAdapterConfig: buildHttpConfig,
|
|
};
|