diff --git a/app/apps/[id]/page.tsx b/app/apps/[id]/page.tsx index 028179a..da4e3ef 100644 --- a/app/apps/[id]/page.tsx +++ b/app/apps/[id]/page.tsx @@ -37,6 +37,8 @@ import { import { Checkbox } from "@/components/ui/checkbox"; import { ArrowLeft, + Braces, + Copy, Loader2, Plus, Send, @@ -47,7 +49,8 @@ import { TrendingUp, } from "lucide-react"; import { useRouter } from "next/navigation"; -import { useAppTools, useAppToolsStatistics } from "@/hooks/useAppTools"; +import { useAppTools, useAppToolsStatistics, type AppTool } from "@/hooks/useAppTools"; +import { Textarea } from "@/components/ui/textarea"; import { useInvalidateAppSkillDiagnostics } from "@/hooks/useAppSkillDiagnostics"; import AppSkillsSection from "../components/AppSkillsSection"; import AppSkillDiagnostics from "../components/AppSkillDiagnostics"; @@ -124,6 +127,7 @@ export default function AppDetailPage({ params }: { params: Promise<{ id: string const [bindDialogOpen, setBindDialogOpen] = useState(false); const [unbindDialogOpen, setUnbindDialogOpen] = useState(false); const [selectedAppToolId, setSelectedAppToolId] = useState(null); + const [editingTool, setEditingTool] = useState(null); const [rejectDialogOpen, setRejectDialogOpen] = useState(false); const [reviewActionPending, setReviewActionPending] = useState(false); const [reviewLogOpen, setReviewLogOpen] = useState(false); @@ -132,6 +136,7 @@ export default function AppDetailPage({ params }: { params: Promise<{ id: string tools: appTools, loading: appToolsLoading, unbindTool, + updateAppTool, refresh: refreshAppTools, } = useAppTools(appId); const { statistics } = useAppToolsStatistics(appId); @@ -512,7 +517,14 @@ export default function AppDetailPage({ params }: { params: Promise<{ id: string {appTools.map((tool) => ( - {tool.tool_display_name} + + {tool.tool_display_name} + {Object.keys(tool.custom_config || {}).length > 0 && ( + + {t("hasCustomConfig")} + + )} + {canEditThisApp && ( <> + + +
+                {JSON.stringify(tool.default_config, null, 2)}
+              
+ + )} + +
+
+ {t("customConfigJson")} + +
+