File tree Expand file tree Collapse file tree
crates/oversight-cli/src/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,5 +19,6 @@ pub struct WhoamiResponse {
1919 pub id : String ,
2020 pub username : String ,
2121 pub role : String ,
22+ #[ allow( dead_code) ]
2223 pub created_at : String ,
2324}
Original file line number Diff line number Diff line change @@ -212,10 +212,6 @@ impl ApiClient {
212212 self . get ( & path) . await
213213 }
214214
215- pub async fn get_workflow ( & self , id : & str ) -> Result < workflows:: Workflow > {
216- self . get ( & format ! ( "/api/workflows/{id}" ) ) . await
217- }
218-
219215 pub async fn list_workflow_rules (
220216 & self ,
221217 workflow_id : & str ,
@@ -292,10 +288,6 @@ impl ApiClient {
292288 self . get ( "/api/agent-definitions" ) . await
293289 }
294290
295- pub async fn get_agent_def ( & self , id : & str ) -> Result < agents:: AgentDef > {
296- self . get ( & format ! ( "/api/agent-definitions/{id}" ) ) . await
297- }
298-
299291 pub async fn get_agent_stats ( & self , id : & str ) -> Result < agents:: AgentStats > {
300292 self . get ( & format ! ( "/api/agent-definitions/{id}/stats" ) )
301293 . await
Original file line number Diff line number Diff line change @@ -117,8 +117,10 @@ pub struct CommentRequest<'a> {
117117#[ derive( Debug , Clone , Deserialize ) ]
118118pub struct Comment {
119119 pub id : String ,
120+ #[ allow( dead_code) ]
120121 pub task_id : String ,
121122 pub author : String ,
123+ #[ allow( dead_code) ]
122124 pub content : String ,
123125 pub created_at : String ,
124126}
@@ -167,6 +169,7 @@ pub struct TaskRelation {
167169 pub to_task_id : String ,
168170 pub kind : String ,
169171 #[ serde( default ) ]
172+ #[ allow( dead_code) ]
170173 pub relation_kind : Option < String > ,
171174}
172175
@@ -185,7 +188,9 @@ pub struct TaskAttachment {
185188 pub doc_id : String ,
186189 pub role : String ,
187190 #[ serde( default ) ]
191+ #[ allow( dead_code) ]
188192 pub created_by : Option < String > ,
193+ #[ allow( dead_code) ]
189194 pub created_at : String ,
190195}
191196
You can’t perform that action at this time.
0 commit comments