index
@fungi.computer/bird-dog / index
Type Aliases
Section titled “Type Aliases”BirdDogAgentReference
Section titled “BirdDogAgentReference”BirdDogAgentReference =
Readonly<{kind:"agent";agentId:string;sessionId:string; }>
An ordinary agent Session address. Relationships between agents live elsewhere.
BirdDogMail
Section titled “BirdDogMail”BirdDogMail =
Readonly<{key:string;to:BirdDogAgentReference;from:BirdDogAgentReference;replyTo: readonlyBirdDogAgentReference[];content:string;createdAt:number; }>
Addressed agent correspondence carried with durable work when a reply is owed.
BirdDogAgentWork
Section titled “BirdDogAgentWork”BirdDogAgentWork =
Readonly<{jobId:string;sessionId:string;commandFactId:string;recovery?:Readonly<{maxRecoveries:number; }>; }>
The accepted Session work BirdDog points at from an opaque Watchdog job.
BirdDogAgentJobPayload
Section titled “BirdDogAgentJobPayload”BirdDogAgentJobPayload =
Readonly<{work:Readonly<{sessionId:string;commandFactId:string; }>;mail?:BirdDogMail; }>
Typed payload whose meaning belongs to BirdDog, never Watchdog.
BirdDogAgentJobInput
Section titled “BirdDogAgentJobInput”BirdDogAgentJobInput =
Readonly<{work:BirdDogAgentWork;mail?:BirdDogMail; }>
Input for projecting accepted agent work into Watchdog’s generic grammar.
BirdDogOutbox
Section titled “BirdDogOutbox”BirdDogOutbox =
Readonly<{put: (key,value) =>Promise<void>>;read: (key) =>Promise<string|undefined>>;list: (limit,afterKey?) =>Promise<readonlyReadonly<{key:string;value:string; }>[]>;delete: (key) =>Promise<void>>; }>
String-backed durable outbox owned by the BirdDog host.
BirdDogOptions
Section titled “BirdDogOptions”BirdDogOptions =
Readonly<{outbox:BirdDogOutbox;post: (Promise<boolean>>;scheduleWake: (at) =>Promise<void>>;now: () =>number; }>
Host ports for BirdDog’s durable mail delivery.
BirdDogSettlement
Section titled “BirdDogSettlement”BirdDogSettlement =
Readonly<{job:WatchdogSettledJob;content:string; }>
Completed generic work plus the content owed to its correspondents.
BirdDogRuntime
Section titled “BirdDogRuntime”BirdDogRuntime =
Readonly<{fanOut: (settlement) =>Promise<void>>;drainOutbox: () =>Promise<void>>; }>
Durable reply delivery behind the mail-room interface.
BirdDogApi
Section titled “BirdDogApi”BirdDogApi =
Readonly<{agentJob: (input) =>WatchdogQueuedJob;decodeAgentJob: (job) =>BirdDogAgentJobPayload;make: (options) =>Promise<BirdDogRuntime>>; }>
BirdDog’s small synchronous translation interface for owner transactions.
Variables
Section titled “Variables”BirdDog
Section titled “BirdDog”
constBirdDog:BirdDogApi
Agent-aware mail translation over Watchdog’s payload-blind job grammar.