Commit c92702d
authored
feat(cli,memory): type agents fleet --status flag and add tracing span (#4365)
Closes #4357, #4358
- Add FleetStatus wrapper enum with clap::ValueEnum in src/cli.rs to
keep clap out of zeph-memory; convert to SessionStatus via From impl
- Replace Option<String> with Option<FleetStatus> in AgentsCommand::Fleet;
remove manual .parse::<SessionStatus>() from handle_fleet
- Add #[tracing::instrument(name = "memory.fleet.update_status", ...)]
to SqliteStore::update_agent_session_status, matching sibling methods1 parent 9d76476 commit c92702d
2 files changed
Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
488 | 489 | | |
489 | 490 | | |
490 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
491 | 514 | | |
492 | 515 | | |
493 | 516 | | |
| |||
526 | 549 | | |
527 | 550 | | |
528 | 551 | | |
529 | | - | |
| 552 | + | |
530 | 553 | | |
531 | | - | |
| 554 | + | |
532 | 555 | | |
533 | 556 | | |
534 | 557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
230 | 228 | | |
231 | 229 | | |
232 | 230 | | |
233 | | - | |
| 231 | + | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
| |||
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
244 | | - | |
245 | | - | |
246 | | - | |
| 242 | + | |
247 | 243 | | |
248 | 244 | | |
249 | 245 | | |
| |||
0 commit comments