Skip to main content

Module storage

Module storage 

Source

Structs§

ApprovalRecord
ApprovalsRepo
CheckpointRecord
CheckpointsRepo
CompactionRecord
CompactionsRepo
MessageRecord
MessagesRepo
NewApproval
NewCheckpoint
NewCompaction
NewMessage
NewPluginInstall
NewProcess
NewProviderProbe
NewSession
NewTask
NewToolRun
PairingTokenRecord
PairingTokensRepo
PluginInstallRecord
PluginsRepo
ProcessRecord
ProcessesRepo
ProviderProbeRecord
ProviderProbesRepo
RuntimeStore
SQLite-backed durable runtime state.
SessionRecord
SessionsRepo
TaskRecord
TaskTimelineEvent
TasksRepo
ToolRunRecord
ToolRunsRepo

Enums§

ProcessStatus
TaskPriority
TaskStatus
Durable task state. A task is the daemon-level work unit; a chat transcript is just one artifact linked to it.

Functions§

data_dir
try_exclusive_lock
Acquire an exclusive, auto-released advisory lock on path — a process singleton guard for the daemon (#131). Returns the held File on success (keep it alive to hold the lock), or None if another process already holds it. flock releases automatically when the file is dropped OR the process exits/crashes, so a dead holder never wedges the lock the way an O_EXCL pidfile would. Holding it across the socket probe → unlink → bind closes that TOCTOU: two daemons can’t both decide a stale socket is theirs to rebind.