mirror of
https://github.com/hansjone/netx.git
synced 2026-10-14 08:10:47 +08:00
Persist cutover evidence cards with device-raw A/B keys for board and AI.
Evaluate keeps match keys for normalize/map pairing while diffs, reds, and the board show collected ports plus show-command provenance; add monitor-context and command-raw read APIs with biz-monitor:read scope. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
285c19e5a3
commit
c1b1c0f75d
17 changed files with 1141 additions and 57 deletions
|
|
@ -237,6 +237,13 @@ def api_get_batch(batch_id: str, db: Session = Depends(get_db)) -> dict[str, Any
|
|||
return svc.get_batch(db, batch_id)
|
||||
|
||||
|
||||
@router.get("/batches/{batch_id}/commands/{command_id}")
|
||||
def api_get_batch_command(
|
||||
batch_id: str, command_id: str, db: Session = Depends(get_db)
|
||||
) -> dict[str, Any]:
|
||||
return svc.get_batch_command(db, batch_id, command_id)
|
||||
|
||||
|
||||
@router.get("/batches/{batch_id}/export")
|
||||
def api_export_batch(batch_id: str, db: Session = Depends(get_db)) -> StreamingResponse:
|
||||
data = svc.export_batch_zip(db, batch_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue