pub enum DaemonCommand {
Show 20 variants
Status,
Reload,
ChannelSet {
channel: String,
account: String,
enabled: bool,
workspace: Option<String>,
remote_tools: Option<RemoteTools>,
senders: Option<Senders>,
purpose: Option<Purpose>,
},
ChannelLogout {
channel: String,
account: String,
},
Delegations {
all: bool,
},
DelegationKill {
handle: Option<String>,
orphans: bool,
},
RestartWhenIdle {
version: Option<String>,
commit: Option<String>,
parent: Option<String>,
max_wait_seconds: Option<u64>,
},
ConfirmAsk {
question: String,
parent: Option<String>,
timeout_seconds: Option<u64>,
},
ConfirmStatus {
id: String,
},
ProjectCreate {
name: String,
workspace: String,
},
ProjectStatus {
project: String,
},
ProjectEvents {
project: String,
after: Option<u64>,
},
ProjectTasks {
project: String,
},
ProjectReport {
project: String,
},
ProjectTaskAdd {
project: String,
title: String,
depends_on: Vec<String>,
max_retries: u32,
},
ProjectTaskUpdate {
project: String,
task: String,
status: ProjectTaskStatus,
progress: Option<String>,
},
ProjectRunStart {
project: String,
task: String,
agent: String,
},
ProjectRunProgress {
project: String,
run: String,
progress: String,
},
ProjectRunFinish {
project: String,
run: String,
status: ProjectRunStatus,
},
ProjectHeartbeat {
project: String,
task: Option<String>,
run: Option<String>,
},
}Expand description
What a daemon.control message asks the daemon to do.
Variants§
Status
Report DaemonStatus.
Reload
Reread channel settings and reconcile the components now.
ChannelSet
Enable or disable one channel account, optionally changing its workspace, remote tool grant, and whose messages it answers.
Fields
remote_tools: Option<RemoteTools>Omitted keeps the saved setting.
ChannelLogout
Stop one channel account and remove its credentials and state.
Fields
Delegations
List running delegations; all includes orphans awaiting cleanup.
DelegationKill
Stop one delegation by handle, or every orphaned one.
Fields
RestartWhenIdle
Restart into the release installed at the daemon’s own path once the
requesting delegation has finished and its report is stored and no
owner message is being answered, or at max_wait_seconds anyway.
Fields
ConfirmAsk
Ask the owner a yes/no question in chat: in the chat that started the
work parent names, or else the notify target. The reply’s confirm
names the question; confirm_status then follows it.
Fields
timeout_seconds: Option<u64>How long no answer waits before it counts as no
(DEFAULT_CONFIRM_SECONDS, at most MAX_CONFIRM_SECONDS).
ConfirmStatus
Report where the question id stands. Asking also keeps it alive: a
question nobody asks about for a minute is withdrawn.
ProjectCreate
Explicitly create an owner-authorized durable project.
ProjectStatus
Read a project’s reducer state without contacting an agent.
ProjectEvents
Read the append-only event history after an optional sequence.
Fields
ProjectTasks
Read current tasks and observed progress.
ProjectReport
Build a report from ledger evidence.
ProjectTaskAdd
Add a task to an explicitly created project.
Fields
ProjectTaskUpdate
Record an observed task state/progress update.
Fields
status: ProjectTaskStatusNew task state.
ProjectRunStart
Record a supervised agent run starting.
Fields
ProjectRunProgress
Record observed progress from a run heartbeat.
Fields
ProjectRunFinish
Record an observed terminal run state.
Fields
status: ProjectRunStatusTerminal run state.
ProjectHeartbeat
Record a heartbeat for a project task/run.