+
+
+
-
- {settings.mcpServerEnabled && token != null ? (
-
+ {cliInstalled ? (
+
+
+
+ Yaak CLI {cliVersion.data} is installed.
+
+
) : (
-
-
-
+
+
+
+
+ Install the Yaak CLI first
+
+
+ Agents launch it to reach Yaak, even with the app closed.
+
+
+
+ Docs
+
+ Checks again when you come back to Yaak.
+
+
+
+
)}
+ {mcpServerPlugin != null && (
+
+
+ The two steps below replace it. Uninstall it once your agent is connected.
+
+
+ )}
+
+
+ Lets {clientLabel} run the yaak command directly.
+ >
+ }
+ snippet={skillInstallCommand(client)}
+ language="shell"
+ disabled={!cliInstalled}
+ done={setupStatus.data?.skill ? "Installed" : null}
+ />
);
}
-
-function SetupRow({
- title,
- description,
- setup,
-}: {
- title: string;
- description: string;
- setup: AgentSetup;
-}) {
- return (
-
-
{title}
-
{description}
-
}
- />
-
- );
-}
diff --git a/apps/yaak-client/components/Settings/SettingsPlugins.tsx b/apps/yaak-client/components/Settings/SettingsPlugins.tsx
index 225ab7518..d9bdcaa6c 100644
--- a/apps/yaak-client/components/Settings/SettingsPlugins.tsx
+++ b/apps/yaak-client/components/Settings/SettingsPlugins.tsx
@@ -2,13 +2,9 @@ import { useMutation, useQuery } from "@tanstack/react-query";
import type { Plugin } from "@yaakapp-internal/models";
import { patchModel, pluginsAtom } from "@yaakapp-internal/models";
import type { PluginVersion } from "@yaakapp-internal/plugins";
+import { checkPluginUpdates, installPlugin, searchPlugins } from "@yaakapp-internal/plugins";
import {
- checkPluginUpdates,
- installPlugin,
- searchPlugins,
- uninstallPlugin,
-} from "@yaakapp-internal/plugins";
-import {
+ Banner,
HStack,
Icon,
InlineCode,
@@ -24,12 +20,11 @@ import {
} from "@yaakapp-internal/ui";
import classNames from "classnames";
import { useAtomValue } from "jotai";
-import { useState } from "react";
+import { type ReactNode, useState } from "react";
import { useInstallPlugin } from "../../hooks/useInstallPlugin";
-import { usePluginInfo } from "../../hooks/usePluginInfo";
+import { usePluginInfo, usePluginInfos } from "../../hooks/usePluginInfo";
import { usePluginsKey, useRefreshPlugins } from "../../hooks/usePlugins";
-import { showConfirmDelete } from "../../lib/confirm";
-import { minPromiseMillis } from "../../lib/minPromiseMillis";
+import { usePromptUninstallPlugin } from "../../hooks/useUninstallPlugin";
import { Button } from "../core/Button";
import { Checkbox } from "../core/Checkbox";
import { IconButton } from "../core/IconButton";
@@ -205,7 +200,7 @@ function PluginTableRow({
mutationKey: ["install_plugin", name],
mutationFn: (name: string) => installPlugin(name, null),
});
- const uninstall = usePromptUninstall(plugin?.id ?? null, displayName);
+ const uninstall = usePromptUninstallPlugin(plugin?.id ?? null, displayName);
const refreshPlugins = useRefreshPlugins();
return (
@@ -296,7 +291,10 @@ function PluginSearch() {
const debouncedQuery = useDebouncedValue(query);
const results = useQuery({
queryKey: ["plugins", debouncedQuery],
- queryFn: () => searchPlugins(query),
+ queryFn: async () => {
+ const { plugins } = await searchPlugins(query);
+ return { plugins: plugins.filter((p) => p.deprecated == null) };
+ },
});
return (
@@ -349,22 +347,77 @@ function InstalledPlugins({ plugins, className }: { plugins: Plugin[]; className
) : (
-