@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
28 lines (27 loc) • 1 kB
TypeScript
import { type ScheduleEvent } from "./schedule-events.js";
import type { StorePullIdentity } from "./store-pull.js";
export interface WebhookStatus {
configured: boolean;
listening: boolean;
listenPort?: number;
problem?: string;
lastDeliveryAt?: string;
lastOutcome?: string;
}
/** Optional private HTTP ingress. Invalid config disables only this listener, never the Hook. */
export declare class GitboyWebhooks {
private readonly root;
private readonly pull;
private readonly nudge;
private readonly scheduleEvent?;
readonly status: WebhookStatus;
private server?;
private readonly deliveries;
private readonly bodies;
private readonly nudges;
private closed;
constructor(root: string, pull: (storeId: string) => string | undefined, nudge?: (identity: StorePullIdentity) => Promise<void>, scheduleEvent?: ((event: ScheduleEvent) => Promise<unknown>) | undefined);
private notify;
start(): Promise<void>;
stop(): void;
}