MCPcopy Create free account
hub / github.com/AI45Lab/Code / js_artifact_store_limits_to_rust

Function js_artifact_store_limits_to_rust

sdk/node/src/lib.rs:2240–2256  ·  view source on GitHub ↗
(
    limits: ArtifactStoreLimits,
)

Source from the content-addressed store, hash-verified

2238}
2239
2240fn js_artifact_store_limits_to_rust(
2241 limits: ArtifactStoreLimits,
2242) -> napi::Result<a3s_code_core::tools::ArtifactStoreLimits> {
2243 let defaults = a3s_code_core::tools::ArtifactStoreLimits::default();
2244 Ok(a3s_code_core::tools::ArtifactStoreLimits {
2245 max_artifacts: js_optional_usize(
2246 limits.max_artifacts,
2247 "artifactStoreLimits.maxArtifacts",
2248 defaults.max_artifacts,
2249 )?,
2250 max_bytes: js_optional_usize(
2251 limits.max_bytes,
2252 "artifactStoreLimits.maxBytes",
2253 defaults.max_bytes,
2254 )?,
2255 })
2256}
2257
2258fn verification_reports_from_value(
2259 reports: serde_json::Value,

Callers 1

Calls 1

js_optional_usizeFunction · 0.85

Tested by

no test coverage detected