From 9f1e6920c69fdc071c671a7d5081a88bff77590f Mon Sep 17 00:00:00 2001 From: 123kupola <123kupola@gmail.com> Date: Sun, 28 Jun 2026 08:30:43 +0200 Subject: [PATCH] feat(schema): add blender_available detection to derive_capabilities() trigger --- packaging/mother/mother_schema.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packaging/mother/mother_schema.sql b/packaging/mother/mother_schema.sql index 7cd1715..8951353 100644 --- a/packaging/mother/mother_schema.sql +++ b/packaging/mother/mother_schema.sql @@ -152,6 +152,13 @@ BEGIN ); END IF; END IF; + -- Blender detection from hw-probe. + IF NEW.hw_profile->'blender'->>'available' = 'true' THEN + caps := caps || jsonb_build_object( + 'blender_available', true, + 'blender_version', NEW.hw_profile->'blender'->>'version' + ); + END IF; -- Inference tier: what this node can run locally. IF caps->>'has_gpu' = 'true' AND (caps->>'ollama_available' = 'true' OR caps->>'llama_cpp_available' = 'true') THEN caps := caps || '{"inference_tier": "local-fast"}'::JSONB; -- 2.45.3