Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

listener: put start_held's doc comment and allow back on it; one-line doc for RunOutcome

Lin (kwant bot)73b7e686a0ce
diff --git a/src/server/missions/listener.rs b/src/server/missions/listener.rs
index 1887c484..7ad94354 100644
--- a/src/server/missions/listener.rs
+++ b/src/server/missions/listener.rs
@@ -94,10 +94,7 @@ async fn mission_of_holder(state: &AppState, kwant_id: &str) -> Option<String> {
None
}
-/// Creates a working task held by kwant for `owner` (a hand-off or routine run), or `None`.
-#[allow(clippy::too_many_arguments)]
-/// What a routine gives each run's task besides its acceptance: a class and the checks the
-/// person set on the routine (approved by the person, who set them there).
+/// The class and person-approved checks a routine gives each run's task besides its acceptance.
struct RunOutcome {
task_class: Option<String>,
checks: Vec<crate::server::scheduler::RoutineCheck>,
@@ -134,6 +131,7 @@ impl RunOutcome {
}
}
+/// Creates a working task held by kwant for `owner` (a hand-off or routine run), or `None`.
#[allow(clippy::too_many_arguments)]
async fn start_held(
state: &AppState,