DaemonDefinition<Id, R>Canonical daemon declaration that can be registered with a typed Hyperlink group.
modelsdaemon
Source src/Daemon.ts:2256 lines
export interface interface DaemonDefinition<out Id extends string, out R>Canonical daemon declaration that can be registered with a typed Hyperlink group.
DaemonDefinition<out function (type parameter) Id in DaemonDefinition<out Id extends string, out R>Id extends string, out function (type parameter) R in DaemonDefinition<out Id extends string, out R>R>
{
readonly DaemonDefinition<out Id extends string, out R>.id: out Id extends stringid: function (type parameter) Id in DaemonDefinition<out Id extends string, out R>Id;
readonly DaemonDefinition<out Id extends string, out R>.kind: typeof kindkind: typeof const kind: "hyperlink-ts/Daemon"The Daemon resource kind — the single source of truth (also the module's public kind).
The definition carries it and Hyperlink / the dashboard match on it; there is no
second short discriminator.
kind;
readonly DaemonDefinition<out Id extends string, out R>.daemon: Daemon<R>(property) DaemonDefinition<out Id extends string, out R>.daemon: {
name: string;
effect: Effect.Effect<void, never, R>;
run: () => Effect.Effect<unknown, never, R>;
snapshot: Effect.Effect<DaemonSnapshot>;
events: Stream.Stream<DaemonLiveEvent>;
polling: { readonly wake: Effect.Effect<void>; readonly resetCadence: Effect.Effect<void> };
}
daemon: interface Daemon<out R>Managed daemon handle for Hyperlink supervision.
Daemon<function (type parameter) R in DaemonDefinition<out Id extends string, out R>R>;
}
Referenced by 1 symbols