diff --git a/apps/api/src/api/tool_types.py b/apps/api/src/api/tool_types.py index 113c353..37b09cd 100644 --- a/apps/api/src/api/tool_types.py +++ b/apps/api/src/api/tool_types.py @@ -406,8 +406,7 @@ async def update_tool_type( if tool_type is None: raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="tool type not found") - if tool_type.is_builtin: - raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="cannot modify built-in tool types") + # Built-in tool types can now be modified update_data = data.model_dump(exclude_unset=True) @@ -625,8 +624,7 @@ async def delete_tool_type( if tool_type is None: raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="tool type not found") - if tool_type.is_builtin: - raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="cannot delete built-in tool types") + # Built-in tool types can now be deleted await session.delete(tool_type) await session.commit() diff --git a/apps/web/src/pages/tool-workshop.tsx b/apps/web/src/pages/tool-workshop.tsx index a59773a..6eceae4 100644 --- a/apps/web/src/pages/tool-workshop.tsx +++ b/apps/web/src/pages/tool-workshop.tsx @@ -561,44 +561,26 @@ export const ToolWorkshopPage = () => { {toolType.category || "Uncategorized"} ยท {toolType.interface_type === "web" ? `Port ${toolType.default_port}` : "Terminal"} - {toolType.is_builtin && ( - - Built-in - - )} - {!toolType.is_builtin && ( - - )} + ))}