This commit is contained in:
Timothy Jaeryang Baek
2026-08-25 14:39:25 -04:00
parent 8be4c5fa6a
commit 3374b21a7d
4 changed files with 79 additions and 54 deletions
@@ -4,7 +4,6 @@
import { user, tools as _tools, skills as _skills, toolServers } from '$lib/stores';
import { initiateOAuthRedirect } from '$lib/apis/configs';
import { deleteOAuthSession } from '$lib/apis/auths';
import { getTools } from '$lib/apis/tools';
import { getSkills } from '$lib/apis/skills';
@@ -46,6 +45,7 @@
export let selectedModels: string[] = [];
export let fileUploadCapableModels: string[] = [];
export let oauthRedirectHandler: Function = () => {};
export let toggleFilters: {
id: string;
@@ -217,7 +217,7 @@
e.preventDefault();
const parts = toolId.split(':');
initiateOAuthRedirect({
oauthRedirectHandler({
id: toolId,
serverId: parts.at(-1) ?? toolId,
authType: parts.length > 1 ? (parts[0] === 'server' ? parts[1] : parts[0]) : null