Daemon63
Constructors
Layers & Serving
configureconstA config-patch layer for the daemon tag — merge it with the daemon's layer and its patch (polling / a (previous) => next wrap of effect) folds onto the base config at build.layerfunctionThe local layer for a daemon: build its driver (auto-started) and provide its service.layerMemoryconstAlias of layer — soft-default in-memory Storage (override the same way).servefunctionServe a daemon and grant its local instance from one materialization.serveMemoryconstAlias of serve.serveRemotefunctionServe a daemon remotely (served-only) — mounts its RPC handlers without granting the local instance, preserving the requirement R for a per-HyperService Layer.provide.serveRemoteMemoryconstAlias of serveRemote.storefunctionRegister this daemon on an app Store.Service — built-in execution analytics with an optional bare spec object merged in: ts Daemon.store(Daily) Daemon.store(Daily, { audit: auditSchema, }, ({ audit, event }) => ({ appendAudit: audit.append, })) Schedule
atfunctionA point window (open-ended — no stop).currentScheduleIdconstIdentifier attached to the schedule entry that started the current run.daemonScheduleEntryconstOne scheduled run window on the wire — the wire form of the engine's DaemonScheduleEntry.schedulefunctionAttach a schedule to a daemon (pipeable).ScheduleconstDefine a standalone Schedule resource — a reusable, RPC-capable window manager one or more daemons can be gated by (via .pipe(schedule(ThisSchedule))).scheduleControlsconstSchedule controls for the currently running daemon runtime.scheduleDefineconstA declarative schedule layer from a builder DSL: Daemon.scheduleDefine(({ at, window }) => [at("daily", d), window("game", start, end)]).scheduleGroupSpecconstThe schedule mutation verbs a daemon gains when it scheduleowns.scheduleHyperlinkSpecconstThe full CRUD contract of a standalone Schedule resource — the reusable window manager one or more daemons can be gated by.scheduleInMemoryconstAn in-memory schedule layer seeded with entries — the Layer you hand to make's scheduleLayer.scheduleKindconstThis contract's canonical kind for a standalone Schedule resource.scheduleLayerconstThe local layer for a standalone Schedule resource — an in-memory window manager (optionally seeded with initial windows) that any number of daemons can be gated by.scheduleServeconstServe a standalone Schedule resource and grant its local instance.windowfunctionA bounded window (start + stop).Models
DaemoninterfaceManaged daemon handle for Hyperlink supervision.DaemonDefinitioninterfaceCanonical daemon declaration that can be registered with a typed Hyperlink group.DaemonEffectRequirementstypeExtract service requirements from a Daemon handle.DaemonExecutionEventtypeDaemonInstanceSpectypePer-tag daemon spec — control surface, live events, plus stamped run success/error on the wire.DaemonLayerConfiginterfaceConfig for layer / serve / serveRemote.DaemonLiveEventtypeOne daemon execution lifecycle fact — shared by live Daemon.events and durable store rows (Started | Completed | Failed | Interrupted).DaemonMaketypeDaemonMakeOptionsinterfaceConfiguration for Daemon.make when using the config-object form (id is separate).DaemonPollingInputtypeDaemonScheduleContextinterfaceContext for the currently running scheduled window.DaemonScheduleControlsinterfaceUser-facing controls for a daemon's schedule — enumerate, set, add, and clear entries.DaemonScheduleInitializertypeA function that seeds a daemon's schedule via its DaemonScheduleControls.DaemonScheduleInputtypeDaemonScheduleLayerInputtypeDaemonServiceBuildertypeDaemonServiceDefinitioninterfaceCanonical daemon service declaration.DaemonServiceFactorytypeDaemonSnapshotinterfaceA one-shot read of a managed daemon's runtime mirror — the observable state the supervisor maintains as it reconciles the schedule and spawns instances.DaemonSpectypeThe base (schedule-less, result-less) daemon spec.DaemonSupervisorRequirementstypeServices still required at the fork site for Daemon.effect for a given DaemonMakeConfig.DaemonTagBuildtypeCallable shape for Tag — overloads for positional schemas + config object.DaemonTagOptionstypeOptions for Tag — use as the sole 2nd argument (config-object overload) or merge with positional success / error args.ScheduleControlstypeThe subset of schedule controls handed to a DaemonScheduleInitializer (entries / set / add / clear) and available inside the daemon effect via scheduleControls.ScheduleEntrytypeA native engine schedule entry — { id?, startAt, stopAt? }, the same shape as a ScheduleWindow (at / window build these).ScheduleHyperlinkSpectypeThe standalone Schedule HyperService's spec.ScheduleReconcileResulttypeThe diff produced by ScheduleService.reconcile — the entry ids that were added / updated / removed / left unchanged.ScheduleServicetypeThe engine schedule service — run-window storage + controls (entries / changed / CRUD / reconcile) that a make supervisor watches for arming decisions.ScheduleWindowinterfaceA schedule window template produced by at / window — the declarative form of a schedule entry.Wire Schemas
buildDaemonSpecconstBuild a daemon instance spec — control surface, live events stream, and a typed manual run RPC.daemonControlSpecconstThe base daemon control + observation contract — shared by every daemon.daemonExecutionEventconstExecution event union for void daemons (no success field on Completed).daemonExecutionEventForconstBuild an execution event union when the daemon tag carries a DaemonTagOptions.success.daemonLogEntryconstLog entry wire schema — alias of LogEntrySchema.daemonSpecconstErased baseline daemon spec (Void success, Never error).daemonStatusconstThe current-state snapshot of a managed daemon — the wire form of the engine's DaemonSnapshot (plus supervising).