feat: polish release v2 experience (#6800)
This commit is contained in:
1 parent
925b0fb801
commit
a4a903d7c3
295 files changed
+10627
-7115
No files matched your search
@@ -1,8 +1,10 @@
|
||||
import { isRecord } from "@homarr/common";
|
||||
|
||||
const targetKeys = ["name", "title", "query", "searchText", "appName", "widgetName"] as const;
|
||||
|
||||
export const getAssistantToolTraceTarget = (args: unknown): string | null => {
|
||||
if (!args || typeof args !== "object" || Array.isArray(args)) return null;
|
||||
const record = args as Record<string, unknown>;
|
||||
if (!isRecord(args)) return null;
|
||||
const record = args;
|
||||
|
||||
for (const key of targetKeys) {
|
||||
const value = record[key];
|
||||
|
||||
Reference in new issue
Block a user