From 189f29ee41333f08957b124670dbf6c2522dbbb1 Mon Sep 17 00:00:00 2001 From: Fusion Date: Wed, 20 May 2026 17:55:18 +0200 Subject: [PATCH] fix(opencode): update seed function to sync existing tool types with code changes --- apps/api/src/main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/api/src/main.py b/apps/api/src/main.py index 3460167..b7bb6ef 100644 --- a/apps/api/src/main.py +++ b/apps/api/src/main.py @@ -217,6 +217,17 @@ networks: is_builtin=True, ) session.add(tool_type) + logger.info("Created built-in tool type: %s", tool_data["name"]) + else: + # Update existing built-in tool types to reflect code changes + existing.display_name = tool_data["display_name"] + existing.description = tool_data["description"] + existing.category = tool_data["category"] + existing.interfaces = tool_data["interfaces"] + existing.compose_template = tool_data["compose_template"] + existing.required_variables = tool_data["required_variables"] + existing.default_port = tool_data.get("default_port") + logger.info("Updated built-in tool type: %s", tool_data["name"]) await session.commit() logger.info("Built-in tool types seeded successfully.")