MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / compression

Function compression

src/dashboard/lcm_api.rs:224–232  ·  view source on GitHub ↗

`GET /api/plugins/hermes-lcm/compression`

(
    State(state): State<DashboardState>,
    JsonQuery(params): JsonQuery<CompressionParams>,
)

Source from the content-addressed store, hash-verified

222
223/// `GET /api/plugins/hermes-lcm/compression`
224pub(crate) async fn compression(
225 State(state): State<DashboardState>,
226 JsonQuery(params): JsonQuery<CompressionParams>,
227) -> LcmResult {
228 let limit = coerce_limit(params.limit, 50, 500);
229 let by_node = params.by.eq_ignore_ascii_case("node");
230 let payload = lcm_service::compression_payload(&state, by_node, limit).await?;
231 Ok(ok(payload))
232}
233
234/// `GET /api/plugins/hermes-lcm/payloads/health`
235pub(crate) async fn payloads_health(

Callers

nothing calls this directly

Calls 3

coerce_limitFunction · 0.85
compression_payloadFunction · 0.85
okFunction · 0.70

Tested by

no test coverage detected