From 202e07890d9a70265838bb7b223446a5992f6590 Mon Sep 17 00:00:00 2001 From: harini-venkataraman Date: Mon, 1 Jun 2026 13:14:21 +0530 Subject: [PATCH 1/2] Deprecate classifier and text_extractor tools in UI, disable runner by default - Add deprecated/deprecation_message fields to public_tools.json for classify and text_extractor tools - Pass deprecation fields through ToolRegistry.fetch_tools_descriptions() to the frontend API - Show orange "Deprecated" tag with tooltip on deprecated tool cards - Disable drag-and-drop for deprecated tools (canDrag: false) - Add legacy-runner profile to runner service in docker-compose so it no longer starts by default (use --profile legacy-runner to enable) Co-Authored-By: Claude Opus 4.6 --- docker/docker-compose.yaml | 2 ++ .../agency/tool-info-card/ToolInfoCard.css | 5 +++++ .../agency/tool-info-card/ToolInfoCard.jsx | 17 +++++++++++++++-- .../src/unstract/tool_registry/tool_registry.py | 4 ++++ .../tool_registry_config/public_tools.json | 4 ++++ 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index b7b49a7618..df42f62ad8 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -187,6 +187,8 @@ services: image: unstract/runner:${VERSION} container_name: unstract-runner restart: unless-stopped + profiles: + - legacy-runner ports: - 5002:5002 env_file: diff --git a/frontend/src/components/agency/tool-info-card/ToolInfoCard.css b/frontend/src/components/agency/tool-info-card/ToolInfoCard.css index 95a3e2bafc..67c4cb4979 100644 --- a/frontend/src/components/agency/tool-info-card/ToolInfoCard.css +++ b/frontend/src/components/agency/tool-info-card/ToolInfoCard.css @@ -30,3 +30,8 @@ grid-auto-flow: column; justify-self: end; } + +.toolinfo-card-deprecated { + opacity: 0.6; + cursor: not-allowed; +} diff --git a/frontend/src/components/agency/tool-info-card/ToolInfoCard.jsx b/frontend/src/components/agency/tool-info-card/ToolInfoCard.jsx index e972d1f0a0..5325f31f4e 100644 --- a/frontend/src/components/agency/tool-info-card/ToolInfoCard.jsx +++ b/frontend/src/components/agency/tool-info-card/ToolInfoCard.jsx @@ -1,4 +1,4 @@ -import { Card, Col, Row, Typography } from "antd"; +import { Card, Col, Row, Tag, Tooltip, Typography } from "antd"; import PropTypes from "prop-types"; import { useDrag } from "react-dnd"; @@ -6,13 +6,19 @@ import "./ToolInfoCard.css"; import { ToolIcon } from "../tool-icon/ToolIcon"; function ToolInfoCard({ toolInfo }) { + const isDeprecated = toolInfo?.deprecated; + const [, ref] = useDrag({ type: "STEP", item: { function_name: toolInfo?.function_name }, + canDrag: !isDeprecated, }); return ( - + @@ -21,6 +27,13 @@ function ToolInfoCard({ toolInfo }) {
{toolInfo?.name} + {isDeprecated && ( + + + Deprecated + + + )}
Date: Mon, 1 Jun 2026 08:07:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../tool-registry/src/unstract/tool_registry/tool_registry.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/unstract/tool-registry/src/unstract/tool_registry/tool_registry.py b/unstract/tool-registry/src/unstract/tool_registry/tool_registry.py index 13ab4a7521..5936e523eb 100644 --- a/unstract/tool-registry/src/unstract/tool_registry/tool_registry.py +++ b/unstract/tool-registry/src/unstract/tool_registry/tool_registry.py @@ -208,9 +208,7 @@ def fetch_tools_descriptions( ToolKey.ICON: icon, ToolKey.FUNCTION_NAME: data.get(PropKey.FUNCTION_NAME), "deprecated": configuration.get("deprecated", False), - "deprecation_message": configuration.get( - "deprecation_message", "" - ), + "deprecation_message": configuration.get("deprecation_message", ""), } tools_list.append(tool_data) return tools_list