PR 2: proxy services (#787)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Gregory SchierandClaude Opus 5.5 authored and GitHub committed 2026-10-27 15:19:50 -07:00
1 parent 686294939b
commit 9bbd28ce4a
26 files changed
+3802 -50

No files matched your search

@@ -53,6 +53,8 @@ pub struct Flow {
/// Milliseconds from `started_at` to the end of the response.
pub elapsed_ms: Option<i32>,
pub error: Option<String>,
/// The id of the Yaak request this flow was last saved as.
pub saved_request_id: Option<String>,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, TS)]
@@ -145,6 +147,7 @@ impl UpsertModelInfo for Flow {
(ElapsedHeadersMs, self.elapsed_headers_ms.into()),
(ElapsedMs, self.elapsed_ms.into()),
(Error, self.error.into()),
(SavedRequestId, self.saved_request_id.into()),
])
}
@@ -168,6 +171,7 @@ impl UpsertModelInfo for Flow {
FlowIden::ElapsedHeadersMs,
FlowIden::ElapsedMs,
FlowIden::Error,
FlowIden::SavedRequestId,
]
}
@@ -198,6 +202,11 @@ impl UpsertModelInfo for Flow {
elapsed_headers_ms: r.get("elapsed_headers_ms")?,
elapsed_ms: r.get("elapsed_ms")?,
error: r.get("error")?,
// Absent from a database read before its migrations have run.
saved_request_id: match r.get("saved_request_id") {
Err(rusqlite::Error::InvalidColumnName(_)) => None,
v => v?,
},
})
}
}