@aiderdesk/aiderdesk 0.70.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/out/cli.js +1006 -1
- package/out/renderer/assets/{AgentSettings-4fCr6MRo.js → AgentSettings-BKSogFrU.js} +133 -125
- package/out/renderer/assets/{InfoIcon-Cend8bQ6.js → InfoIcon-XbMgPv1i.js} +1 -1
- package/out/renderer/assets/{Onboarding-SfOrsd7I.js → Onboarding-DsxeAj-M.js} +4 -4
- package/out/renderer/assets/{ProviderHeader-IIBa8Q98.js → ProviderHeader-CQHU1_fp.js} +384 -165
- package/out/renderer/assets/{SettingsPage-1PPq3lwt.js → SettingsPage-jGXWkGLq.js} +643 -265
- package/out/renderer/assets/{UsageDashboard-C73v7_7A.js → UsageDashboard-BcWDkudQ.js} +3 -3
- package/out/renderer/assets/{arc-DooaZ_2W.js → arc-CbTCDvhP.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-3BPJPVTR-BZRfdU_l.js → architectureDiagram-3BPJPVTR-BYGjkH2o.js} +3 -3
- package/out/renderer/assets/{blockDiagram-GPEHLZMM-GVLrld7f.js → blockDiagram-GPEHLZMM-BNslNypY.js} +4 -4
- package/out/renderer/assets/{c4Diagram-AAUBKEIU-CuLHxnUp.js → c4Diagram-AAUBKEIU-BOUV-4Hf.js} +2 -2
- package/out/renderer/assets/{channel-CBp4QC42.js → channel-gTXtcW6n.js} +1 -1
- package/out/renderer/assets/{chunk-2J33WTMH-CLGSY5ry.js → chunk-2J33WTMH-cVAo2nRo.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-DfOAmq0y.js → chunk-4BX2VUAB-QUppBCep.js} +1 -1
- package/out/renderer/assets/{chunk-55IACEB6-CjDMk8wF.js → chunk-55IACEB6-B7ATOpEx.js} +1 -1
- package/out/renderer/assets/{chunk-727SXJPM-4GHP5or6.js → chunk-727SXJPM-DNHjk-uw.js} +5 -5
- package/out/renderer/assets/{chunk-AQP2D5EJ-B8ex3L6d.js → chunk-AQP2D5EJ-C_nuud1y.js} +3 -3
- package/out/renderer/assets/{chunk-FMBD7UC4-DXVKqz45.js → chunk-FMBD7UC4-DoAO6UdZ.js} +1 -1
- package/out/renderer/assets/{chunk-ND2GUHAM-CJf331B5.js → chunk-ND2GUHAM-hRnym-e6.js} +1 -1
- package/out/renderer/assets/{chunk-QZHKN3VN-CmRmlYwi.js → chunk-QZHKN3VN-BkTqSMpi.js} +1 -1
- package/out/renderer/assets/{classDiagram-4FO5ZUOK-BB0WWhct.js → classDiagram-4FO5ZUOK-097_YN8Y.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-Q7XG4LA2-BB0WWhct.js → classDiagram-v2-Q7XG4LA2-097_YN8Y.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-C1ovVUkK.js → cose-bilkent-S5V4N54A-CU24fSZY.js} +1 -1
- package/out/renderer/assets/{dagre-BM42HDAG-BN2vkdYj.js → dagre-BM42HDAG-CXQk6wIx.js} +3 -3
- package/out/renderer/assets/{diagram-2AECGRRQ-Gmur2BYD.js → diagram-2AECGRRQ-cp5zubxu.js} +3 -3
- package/out/renderer/assets/{diagram-5GNKFQAL-CO-0qbfq.js → diagram-5GNKFQAL-Dz1liaVJ.js} +4 -4
- package/out/renderer/assets/{diagram-KO2AKTUF-B0BourUo.js → diagram-KO2AKTUF-C_a_DDR7.js} +3 -3
- package/out/renderer/assets/{diagram-LMA3HP47-CZSemlgR.js → diagram-LMA3HP47-DMzt3Wms.js} +3 -3
- package/out/renderer/assets/{diagram-OG6HWLK6-DIg_VSi2.js → diagram-OG6HWLK6-DXgo41ZN.js} +4 -4
- package/out/renderer/assets/{erDiagram-TEJ5UH35-CeDB_1TN.js → erDiagram-TEJ5UH35-Duy8-ZVE.js} +4 -4
- package/out/renderer/assets/{flowDiagram-I6XJVG4X-CAYyZ6xk.js → flowDiagram-I6XJVG4X-C79uBv3j.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-6RSMTGT7-28qx3HO3.js → ganttDiagram-6RSMTGT7-COUQHYqH.js} +3 -3
- package/out/renderer/assets/{gitGraphDiagram-PVQCEYII-C0C5PVgG.js → gitGraphDiagram-PVQCEYII-D3-KSp5g.js} +4 -4
- package/out/renderer/assets/{graph-BmyvWy9U.js → graph-CojOaclU.js} +1 -1
- package/out/renderer/assets/{index-CCixlVbO.js → index-BDc7WeA_.js} +1 -1
- package/out/renderer/assets/{index-CqkLi8Rn.js → index-BX1dnn54.js} +1 -1
- package/out/renderer/assets/{index-BkEUNx2M.js → index-BxH3Vzns.js} +129 -30
- package/out/renderer/assets/{index-CleisQX7.js → index-CZVPwEh7.js} +1 -1
- package/out/renderer/assets/{index-DHgg9rnw.js → index-CcbWMGtO.js} +1 -1
- package/out/renderer/assets/{index-LwoRwQcK.js → index-CoN3I29h.js} +1 -1
- package/out/renderer/assets/{index-D4QsfuBU.css → index-DJwDiyPe.css} +8 -0
- package/out/renderer/assets/{index-CjWyE7Qc.js → index-DqOJFqtI.js} +1 -1
- package/out/renderer/assets/{index-DDyjc4hl.js → index-DqOyb6kJ.js} +1 -1
- package/out/renderer/assets/{index-DiXCQ0pX.js → index-LigRSjJQ.js} +2274 -1492
- package/out/renderer/assets/{index-D1hWSFOH.js → index-uk-xw9ke.js} +1 -1
- package/out/renderer/assets/{infoDiagram-5YYISTIA-BR2qewYU.js → infoDiagram-5YYISTIA-Dhu3XDyU.js} +2 -2
- package/out/renderer/assets/{ishikawaDiagram-YF4QCWOH-mBtVTtfu.js → ishikawaDiagram-YF4QCWOH-Zv844Inp.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-JHISSGLW-BLwLxSRJ.js → journeyDiagram-JHISSGLW-CiEy0k__.js} +4 -4
- package/out/renderer/assets/{jsx-dev-runtime-C3x5nPQV.js → jsx-dev-runtime-BblfdcBq.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UN3LZRKU-DEQMBIes.js → kanban-definition-UN3LZRKU-Bg7Tn0_t.js} +2 -2
- package/out/renderer/assets/{layout-COZ2dLJC.js → layout-C7gScUZ3.js} +2 -2
- package/out/renderer/assets/{linear-BwuiC9BD.js → linear-C8mfmsRG.js} +1 -1
- package/out/renderer/assets/{mindmap-definition-RKZ34NQL-BEdOr2LN.js → mindmap-definition-RKZ34NQL-CT41c9xA.js} +3 -3
- package/out/renderer/assets/{pieDiagram-4H26LBE5-C2CIjhWa.js → pieDiagram-4H26LBE5-4MIz5Tk3.js} +4 -4
- package/out/renderer/assets/{quadrantDiagram-W4KKPZXB-ByG1Fnbm.js → quadrantDiagram-W4KKPZXB-srrdZ4mO.js} +2 -2
- package/out/renderer/assets/{requirementDiagram-4Y6WPE33-CPNEbV2R.js → requirementDiagram-4Y6WPE33-hCfEAv72.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-5OEKKPKP-DseN3BYS.js → sankeyDiagram-5OEKKPKP-D3Dmoahf.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-3UESZ5HK-DGbPycPW.js → sequenceDiagram-3UESZ5HK-B_R1OT73.js} +3 -3
- package/out/renderer/assets/{stateDiagram-AJRCARHV-I_wGtDx-.js → stateDiagram-AJRCARHV-T81AxWaT.js} +6 -6
- package/out/renderer/assets/{stateDiagram-v2-BHNVJYJU-MVwIUdrA.js → stateDiagram-v2-BHNVJYJU-DotM3iTY.js} +4 -4
- package/out/renderer/assets/{time-DKSwLtIL.js → time-NQi4RUKr.js} +1 -1
- package/out/renderer/assets/{timeline-definition-PNZ67QCA-0o1eLzXF.js → timeline-definition-PNZ67QCA-CuIJOcqs.js} +2 -2
- package/out/renderer/assets/{vennDiagram-CIIHVFJN-BbPtgu5r.js → vennDiagram-CIIHVFJN-BP9XceqR.js} +1 -1
- package/out/renderer/assets/{wardley-L42UT6IY-C6O9NaAx.js → wardley-L42UT6IY-Cs8sx4Yc.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-YWT4CUSO-C0NB17Hf.js → wardleyDiagram-YWT4CUSO-BleVwqnB.js} +3 -3
- package/out/renderer/assets/{xychartDiagram-2RQKCTM6-CM1NB5k6.js → xychartDiagram-2RQKCTM6-CoEiSbj_.js} +2 -2
- package/out/renderer/index.html +2 -2
- package/out/runner.js +613 -287
- package/package.json +20 -20
- package/scripts/generate-package.mjs +1 -2
- package/scripts/publish-next.mjs +22 -0
- package/out/renderer/assets/gemini-cli-BKI4k4GP.png +0 -0
- package/out/resources/mcp-server/aider-desk-mcp-server.js +0 -39437
- package/patches/ai-sdk-provider-gemini-cli+1.5.1.patch +0 -373
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, b2 as useTranslation, b0 as reactExports, c7 as Checkbox, b7 as Button,
|
|
2
|
-
import { I as InfoIcon } from "./InfoIcon-
|
|
1
|
+
import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, b2 as useTranslation, b0 as reactExports, c7 as Checkbox, b7 as Button, dD as HiEye, c9 as Input, cr as TextArea, dE as Trans, ck as CodeInline, dF as SUPPORTED_LANGUAGES, c8 as Select, dG as _extends$1, dH as React, dI as _objectWithoutPropertiesLoose$1, cC as Tooltip, dJ as MdInfoOutline, dK as TOOL_GROUP_NAME_SEPARATOR, dL as ToolApprovalState, cb as useApi, di as Accordion, dM as extractIpcErrorMessage, I as IconButton, dN as FaPencilAlt, cl as FaTrash, dO as POWER_TOOL_GROUP_NAME, dP as POWER_TOOL_BASH, dQ as useClickOutside, dR as FaEllipsisVertical, dS as BiCut, dT as BiTrash, ch as BiCopy, dU as useSortable, dV as CSS, dW as DEFAULT_AGENT_PROFILE, a$ as useModelProviders, dX as DEFAULT_AGENT_PROFILES, dY as useSensors, dZ as useSensor, d_ as sortableKeyboardCoordinates, d$ as KeyboardSensor, e0 as PointerSensor, cB as getProviderModelId, cU as FaChevronLeft, cV as FaChevronRight, e1 as DndContext, e2 as closestCenter, e3 as SortableContext, e4 as verticalListSortingStrategy, cw as FaPlus, e5 as FaPaste, e6 as ModelSelector, c6 as Slider, cv as FaTimes, cA as ContextCompactionType, e7 as SKILLS_TOOL_GROUP_NAME, e8 as MEMORY_TOOL_DESCRIPTIONS, e9 as MEMORY_TOOL_STORE, ea as MEMORY_TOOL_GROUP_NAME, eb as MEMORY_TOOL_RETRIEVE, ec as MEMORY_TOOL_LIST, ed as MEMORY_TOOL_UPDATE, ee as MEMORY_TOOL_DELETE, ef as TASKS_TOOL_DESCRIPTIONS, eg as TASKS_TOOL_LIST_TASKS, eh as TASKS_TOOL_GROUP_NAME, ei as TASKS_TOOL_GET_TASK, ej as TASKS_TOOL_GET_TASK_MESSAGE, ek as TASKS_TOOL_CREATE_TASK, el as TASKS_TOOL_DELETE_TASK, em as TASKS_TOOL_SEARCH_TASK, en as TODO_TOOL_DESCRIPTIONS, eo as TODO_TOOL_SET_ITEMS, ep as TODO_TOOL_GROUP_NAME, eq as TODO_TOOL_GET_ITEMS, er as TODO_TOOL_UPDATE_ITEM_COMPLETION, es as TODO_TOOL_CLEAR_ITEMS, et as POWER_TOOL_DESCRIPTIONS, eu as POWER_TOOL_FILE_EDIT, ev as POWER_TOOL_FILE_READ, ew as POWER_TOOL_FILE_WRITE, ex as POWER_TOOL_GLOB, ey as POWER_TOOL_GREP, ez as POWER_TOOL_SEMANTIC_SEARCH, eA as POWER_TOOL_FETCH, eB as AIDER_TOOL_DESCRIPTIONS, eC as AIDER_TOOL_GET_CONTEXT_FILES, eD as AIDER_TOOL_GROUP_NAME, eE as AIDER_TOOL_ADD_CONTEXT_FILES, eF as AIDER_TOOL_DROP_CONTEXT_FILES, eG as AIDER_TOOL_RUN_PROMPT, cf as FaSyncAlt, eH as ContextMemoryMode, eI as InvocationMode, eJ as arrayMove, aV as v4, ba as showErrorNotification, eK as MdRepeat, dp as MdThermostat, eL as FaArrowRightFromBracket, eM as MdOutlineFileCopy, eN as MdOutlineMap, eO as MdOutlineHdrAuto, eP as MdFlashOn, eQ as MdOutlineChecklist, eR as FaList, c$ as FaBrain, eS as MdPsychology, eT as MdExtension } from "./index-LigRSjJQ.js";
|
|
2
|
+
import { I as InfoIcon } from "./InfoIcon-XbMgPv1i.js";
|
|
3
3
|
const getPathBasename = (inputPath) => {
|
|
4
4
|
if (!inputPath) {
|
|
5
5
|
return inputPath;
|
|
@@ -6882,15 +6882,23 @@ const AgentSettings = ({
|
|
|
6882
6882
|
}
|
|
6883
6883
|
}
|
|
6884
6884
|
}, [selectedProfileContext, contexts]);
|
|
6885
|
+
const agentProfilesRef = reactExports.useRef(agentProfiles);
|
|
6886
|
+
const contextsRef = reactExports.useRef(contexts);
|
|
6885
6887
|
reactExports.useEffect(() => {
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
+
agentProfilesRef.current = agentProfiles;
|
|
6889
|
+
contextsRef.current = contexts;
|
|
6890
|
+
});
|
|
6891
|
+
reactExports.useEffect(() => {
|
|
6892
|
+
const profiles = agentProfilesRef.current;
|
|
6893
|
+
const contexts_0 = contextsRef.current;
|
|
6894
|
+
if (initialProfileId && profiles.length > 0) {
|
|
6895
|
+
const initialProfile = profiles.find((p_0) => p_0.id === initialProfileId);
|
|
6888
6896
|
if (initialProfile) {
|
|
6889
6897
|
const targetContext = initialProfile.projectDir || "global";
|
|
6890
6898
|
setProfileContext(targetContext);
|
|
6891
|
-
const
|
|
6892
|
-
if (
|
|
6893
|
-
setContextIndex(
|
|
6899
|
+
const newIndex_0 = contexts_0.indexOf(targetContext);
|
|
6900
|
+
if (newIndex_0 !== -1) {
|
|
6901
|
+
setContextIndex(newIndex_0);
|
|
6894
6902
|
}
|
|
6895
6903
|
setSelectedProfileId(initialProfileId);
|
|
6896
6904
|
}
|
|
@@ -6905,34 +6913,34 @@ const AgentSettings = ({
|
|
|
6905
6913
|
mcpServers
|
|
6906
6914
|
} = settings;
|
|
6907
6915
|
const selectedProfile = agentProfiles.find((profile) => profile.id === selectedProfileId) || null;
|
|
6908
|
-
const defaultProfile = agentProfiles.find((
|
|
6916
|
+
const defaultProfile = agentProfiles.find((profile_0) => profile_0.id === DEFAULT_AGENT_PROFILE.id) || DEFAULT_AGENT_PROFILE;
|
|
6909
6917
|
const navigateContext = (direction) => {
|
|
6910
|
-
const
|
|
6911
|
-
setContextIndex(
|
|
6912
|
-
setProfileContext(contexts[
|
|
6918
|
+
const newIndex_1 = direction === "prev" ? (contextIndex - 1 + contexts.length) % contexts.length : (contextIndex + 1) % contexts.length;
|
|
6919
|
+
setContextIndex(newIndex_1);
|
|
6920
|
+
setProfileContext(contexts[newIndex_1]);
|
|
6913
6921
|
};
|
|
6914
6922
|
const filteredProfiles = reactExports.useMemo(() => {
|
|
6915
6923
|
if (profileContext === "global") {
|
|
6916
|
-
return agentProfiles.filter((
|
|
6924
|
+
return agentProfiles.filter((p_1) => !p_1.projectDir);
|
|
6917
6925
|
}
|
|
6918
|
-
return agentProfiles.filter((
|
|
6926
|
+
return agentProfiles.filter((p_2) => p_2.projectDir === profileContext);
|
|
6919
6927
|
}, [agentProfiles, profileContext]);
|
|
6920
6928
|
const missingDefaultProfiles = reactExports.useMemo(() => {
|
|
6921
6929
|
if (profileContext !== "global") {
|
|
6922
6930
|
return [];
|
|
6923
6931
|
}
|
|
6924
|
-
const currentProfileIds = agentProfiles.map((
|
|
6925
|
-
return DEFAULT_AGENT_PROFILES.filter((
|
|
6932
|
+
const currentProfileIds = agentProfiles.map((p_3) => p_3.id);
|
|
6933
|
+
return DEFAULT_AGENT_PROFILES.filter((defaultProfile_0) => !currentProfileIds.includes(defaultProfile_0.id));
|
|
6926
6934
|
}, [agentProfiles, profileContext]);
|
|
6927
6935
|
const getContextDisplayName = () => {
|
|
6928
6936
|
if (profileContext === "global") {
|
|
6929
6937
|
return "Global";
|
|
6930
6938
|
}
|
|
6931
|
-
const project = openProjects.find((
|
|
6939
|
+
const project = openProjects.find((p_4) => p_4.baseDir === profileContext);
|
|
6932
6940
|
return project ? getPathBasename(project.baseDir) : profileContext;
|
|
6933
6941
|
};
|
|
6934
6942
|
reactExports.useEffect(() => {
|
|
6935
|
-
if (filteredProfiles.length > 0 && !filteredProfiles.some((
|
|
6943
|
+
if (filteredProfiles.length > 0 && !filteredProfiles.some((p_5) => p_5.id === selectedProfileId)) {
|
|
6936
6944
|
setSelectedProfileId(filteredProfiles[0].id);
|
|
6937
6945
|
} else if (filteredProfiles.length === 0) {
|
|
6938
6946
|
setSelectedProfileId(null);
|
|
@@ -6952,13 +6960,13 @@ const AgentSettings = ({
|
|
|
6952
6960
|
over
|
|
6953
6961
|
} = event;
|
|
6954
6962
|
if (over && active.id !== over.id) {
|
|
6955
|
-
const oldIndex = filteredProfiles.findIndex((
|
|
6956
|
-
const
|
|
6957
|
-
if (oldIndex !== -1 &&
|
|
6963
|
+
const oldIndex = filteredProfiles.findIndex((p_6) => p_6.id === active.id);
|
|
6964
|
+
const newIndex_2 = filteredProfiles.findIndex((p_7) => p_7.id === over.id);
|
|
6965
|
+
if (oldIndex !== -1 && newIndex_2 !== -1) {
|
|
6958
6966
|
const activeProfile = filteredProfiles[oldIndex];
|
|
6959
|
-
const overProfile = filteredProfiles[
|
|
6960
|
-
const actualOldIndex = agentProfiles.findIndex((
|
|
6961
|
-
const actualNewIndex = agentProfiles.findIndex((
|
|
6967
|
+
const overProfile = filteredProfiles[newIndex_2];
|
|
6968
|
+
const actualOldIndex = agentProfiles.findIndex((p_8) => p_8.id === activeProfile.id);
|
|
6969
|
+
const actualNewIndex = agentProfiles.findIndex((p_9) => p_9.id === overProfile.id);
|
|
6962
6970
|
if (actualOldIndex !== -1 && actualNewIndex !== -1) {
|
|
6963
6971
|
const reorderedProfiles = arrayMove(agentProfiles, actualOldIndex, actualNewIndex);
|
|
6964
6972
|
setAgentProfiles(reorderedProfiles);
|
|
@@ -6969,16 +6977,16 @@ const AgentSettings = ({
|
|
|
6969
6977
|
setDragging(false);
|
|
6970
6978
|
}, 0);
|
|
6971
6979
|
};
|
|
6972
|
-
const agentProfileIds = reactExports.useMemo(() => filteredProfiles.map((
|
|
6973
|
-
const getSubagentSummary = (
|
|
6974
|
-
if (!
|
|
6980
|
+
const agentProfileIds = reactExports.useMemo(() => filteredProfiles.map((p_10) => p_10.id), [filteredProfiles]);
|
|
6981
|
+
const getSubagentSummary = (profile_1) => {
|
|
6982
|
+
if (!profile_1.subagent.enabled) {
|
|
6975
6983
|
return t("settings.agent.subagent.statusDisabled");
|
|
6976
6984
|
}
|
|
6977
|
-
const statusText =
|
|
6985
|
+
const statusText = profile_1.subagent.invocationMode === InvocationMode.Automatic ? t("settings.agent.subagent.statusAutomatic") : t("settings.agent.subagent.statusOnDemand");
|
|
6978
6986
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6979
6987
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: statusText }),
|
|
6980
6988
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-3 h-3 rounded border border-border-default", style: {
|
|
6981
|
-
backgroundColor:
|
|
6989
|
+
backgroundColor: profile_1.subagent.color
|
|
6982
6990
|
} })
|
|
6983
6991
|
] });
|
|
6984
6992
|
};
|
|
@@ -7004,44 +7012,44 @@ const AgentSettings = ({
|
|
|
7004
7012
|
};
|
|
7005
7013
|
const handleDeleteProfile = (agentProfileId) => {
|
|
7006
7014
|
if (agentProfileId && agentProfileId !== DEFAULT_AGENT_PROFILE.id) {
|
|
7007
|
-
setAgentProfiles(agentProfiles.filter((
|
|
7015
|
+
setAgentProfiles(agentProfiles.filter((p_11) => p_11.id !== agentProfileId));
|
|
7008
7016
|
}
|
|
7009
7017
|
};
|
|
7010
7018
|
const isDefaultProfile = (profileId) => {
|
|
7011
|
-
return profileId !== null && DEFAULT_AGENT_PROFILES.some((
|
|
7019
|
+
return profileId !== null && DEFAULT_AGENT_PROFILES.some((profile_2) => profile_2.id === profileId);
|
|
7012
7020
|
};
|
|
7013
7021
|
const handleResetProfile = () => {
|
|
7014
7022
|
if (selectedProfileId) {
|
|
7015
|
-
const
|
|
7016
|
-
if (
|
|
7023
|
+
const defaultProfile_1 = DEFAULT_AGENT_PROFILES.find((profile_3) => profile_3.id === selectedProfileId);
|
|
7024
|
+
if (defaultProfile_1) {
|
|
7017
7025
|
const resetProfile = {
|
|
7018
|
-
...
|
|
7026
|
+
...defaultProfile_1,
|
|
7019
7027
|
id: selectedProfileId
|
|
7020
7028
|
};
|
|
7021
|
-
setAgentProfiles(agentProfiles.map((
|
|
7029
|
+
setAgentProfiles(agentProfiles.map((p_12) => p_12.id === selectedProfileId ? resetProfile : p_12));
|
|
7022
7030
|
}
|
|
7023
7031
|
}
|
|
7024
7032
|
};
|
|
7025
|
-
const handleRestoreProfile = (
|
|
7026
|
-
const
|
|
7027
|
-
if (
|
|
7028
|
-
setAgentProfiles([...agentProfiles,
|
|
7029
|
-
setSelectedProfileId(
|
|
7033
|
+
const handleRestoreProfile = (profileId_0) => {
|
|
7034
|
+
const defaultProfile_2 = DEFAULT_AGENT_PROFILES.find((profile_4) => profile_4.id === profileId_0);
|
|
7035
|
+
if (defaultProfile_2) {
|
|
7036
|
+
setAgentProfiles([...agentProfiles, defaultProfile_2]);
|
|
7037
|
+
setSelectedProfileId(profileId_0);
|
|
7030
7038
|
}
|
|
7031
7039
|
};
|
|
7032
|
-
const handleCopyProfile = (
|
|
7040
|
+
const handleCopyProfile = (profile_5) => {
|
|
7033
7041
|
setClipboardProfile({
|
|
7034
7042
|
profile: {
|
|
7035
|
-
...
|
|
7043
|
+
...profile_5
|
|
7036
7044
|
},
|
|
7037
7045
|
action: "copy"
|
|
7038
7046
|
});
|
|
7039
7047
|
};
|
|
7040
|
-
const handleCutProfile = (
|
|
7041
|
-
if (
|
|
7048
|
+
const handleCutProfile = (profile_6) => {
|
|
7049
|
+
if (profile_6.id !== DEFAULT_AGENT_PROFILE.id) {
|
|
7042
7050
|
setClipboardProfile({
|
|
7043
7051
|
profile: {
|
|
7044
|
-
...
|
|
7052
|
+
...profile_6
|
|
7045
7053
|
},
|
|
7046
7054
|
action: "cut"
|
|
7047
7055
|
});
|
|
@@ -7049,25 +7057,25 @@ const AgentSettings = ({
|
|
|
7049
7057
|
};
|
|
7050
7058
|
const handlePasteProfile = () => {
|
|
7051
7059
|
if (clipboardProfile) {
|
|
7052
|
-
const
|
|
7053
|
-
const
|
|
7060
|
+
const newProfileId_0 = v4();
|
|
7061
|
+
const newProfile_0 = {
|
|
7054
7062
|
...clipboardProfile.profile,
|
|
7055
|
-
id:
|
|
7063
|
+
id: newProfileId_0,
|
|
7056
7064
|
name: clipboardProfile.profile.name,
|
|
7057
7065
|
projectDir: profileContext === "global" ? void 0 : profileContext
|
|
7058
7066
|
};
|
|
7059
7067
|
if (clipboardProfile.action === "cut") {
|
|
7060
|
-
setAgentProfiles(agentProfiles.filter((
|
|
7068
|
+
setAgentProfiles(agentProfiles.filter((p_13) => p_13.id !== clipboardProfile.profile.id).concat(newProfile_0));
|
|
7061
7069
|
setClipboardProfile(null);
|
|
7062
7070
|
} else {
|
|
7063
|
-
setAgentProfiles([...agentProfiles,
|
|
7071
|
+
setAgentProfiles([...agentProfiles, newProfile_0]);
|
|
7064
7072
|
}
|
|
7065
|
-
setSelectedProfileId(
|
|
7073
|
+
setSelectedProfileId(newProfileId_0);
|
|
7066
7074
|
setTimeout(() => {
|
|
7067
|
-
const
|
|
7068
|
-
if (
|
|
7069
|
-
|
|
7070
|
-
|
|
7075
|
+
const profileNameInput_0 = profileNameInputRef.current;
|
|
7076
|
+
if (profileNameInput_0) {
|
|
7077
|
+
profileNameInput_0.focus();
|
|
7078
|
+
profileNameInput_0.select();
|
|
7071
7079
|
}
|
|
7072
7080
|
}, 0);
|
|
7073
7081
|
}
|
|
@@ -7078,11 +7086,11 @@ const AgentSettings = ({
|
|
|
7078
7086
|
...selectedProfile,
|
|
7079
7087
|
[field]: value
|
|
7080
7088
|
};
|
|
7081
|
-
setAgentProfiles(agentProfiles.map((
|
|
7089
|
+
setAgentProfiles(agentProfiles.map((p_14) => p_14.id === selectedProfile.id ? updatedProfile : p_14));
|
|
7082
7090
|
}
|
|
7083
7091
|
};
|
|
7084
|
-
const handleProfileChange = (
|
|
7085
|
-
setAgentProfiles(agentProfiles.map((
|
|
7092
|
+
const handleProfileChange = (profile_7) => {
|
|
7093
|
+
setAgentProfiles(agentProfiles.map((p_15) => p_15.id === profile_7.id ? profile_7 : p_15));
|
|
7086
7094
|
};
|
|
7087
7095
|
const handleRemovePreferredModel = reactExports.useCallback((modelId) => {
|
|
7088
7096
|
const updatedSettings = {
|
|
@@ -7091,12 +7099,12 @@ const AgentSettings = ({
|
|
|
7091
7099
|
};
|
|
7092
7100
|
setSettings(updatedSettings);
|
|
7093
7101
|
}, [settings, setSettings]);
|
|
7094
|
-
const handleAddPreferredModel = (
|
|
7095
|
-
const
|
|
7102
|
+
const handleAddPreferredModel = (modelId_0) => {
|
|
7103
|
+
const updatedSettings_0 = {
|
|
7096
7104
|
...settings,
|
|
7097
|
-
preferredModels: [.../* @__PURE__ */ new Set([
|
|
7105
|
+
preferredModels: [.../* @__PURE__ */ new Set([modelId_0, ...settings.preferredModels])]
|
|
7098
7106
|
};
|
|
7099
|
-
setSettings(
|
|
7107
|
+
setSettings(updatedSettings_0);
|
|
7100
7108
|
};
|
|
7101
7109
|
const handleModelChange = (model) => {
|
|
7102
7110
|
if (!model || !selectedProfile) {
|
|
@@ -7104,35 +7112,35 @@ const AgentSettings = ({
|
|
|
7104
7112
|
}
|
|
7105
7113
|
const selectedModelId = getProviderModelId(model);
|
|
7106
7114
|
const providerId = model.providerId;
|
|
7107
|
-
const
|
|
7108
|
-
const provider = providers.find((
|
|
7115
|
+
const modelId_1 = model.id;
|
|
7116
|
+
const provider = providers.find((p_16) => p_16.id === providerId);
|
|
7109
7117
|
if (!provider) {
|
|
7110
7118
|
showErrorNotification(t("modelSelector.providerNotConfigured", {
|
|
7111
7119
|
provider: providerId,
|
|
7112
|
-
providers: providers.map((
|
|
7120
|
+
providers: providers.map((p_17) => p_17.id).join(", ")
|
|
7113
7121
|
}));
|
|
7114
7122
|
return;
|
|
7115
7123
|
}
|
|
7116
|
-
const
|
|
7124
|
+
const updatedProfile_0 = {
|
|
7117
7125
|
...selectedProfile,
|
|
7118
7126
|
provider: providerId,
|
|
7119
|
-
model:
|
|
7127
|
+
model: modelId_1
|
|
7120
7128
|
};
|
|
7121
|
-
handleProfileChange(
|
|
7129
|
+
handleProfileChange(updatedProfile_0);
|
|
7122
7130
|
handleAddPreferredModel(selectedModelId);
|
|
7123
7131
|
};
|
|
7124
7132
|
const currentModelId = selectedProfile ? `${selectedProfile.provider}/${selectedProfile.model}` : void 0;
|
|
7125
7133
|
const agentModels = reactExports.useMemo(() => {
|
|
7126
7134
|
const agentModelsList = [...models];
|
|
7127
7135
|
if (currentModelId) {
|
|
7128
|
-
const existingModel = agentModelsList.find((
|
|
7136
|
+
const existingModel = agentModelsList.find((model_0) => getProviderModelId(model_0) === currentModelId);
|
|
7129
7137
|
if (!existingModel) {
|
|
7130
|
-
const [
|
|
7131
|
-
const
|
|
7132
|
-
if (
|
|
7138
|
+
const [providerId_0, ...modelNameParts] = currentModelId.split("/");
|
|
7139
|
+
const modelId_2 = modelNameParts.join("/");
|
|
7140
|
+
if (providerId_0 && modelId_2) {
|
|
7133
7141
|
const customModel = {
|
|
7134
|
-
id:
|
|
7135
|
-
providerId
|
|
7142
|
+
id: modelId_2,
|
|
7143
|
+
providerId: providerId_0
|
|
7136
7144
|
};
|
|
7137
7145
|
agentModelsList.unshift(customModel);
|
|
7138
7146
|
}
|
|
@@ -7197,7 +7205,7 @@ const AgentSettings = ({
|
|
|
7197
7205
|
const newNames = Object.keys(servers);
|
|
7198
7206
|
if (newNames.length === 1 && newNames[0] === oldName) {
|
|
7199
7207
|
const entries = Object.entries(updatedMcpServers);
|
|
7200
|
-
const index = entries.findIndex(([
|
|
7208
|
+
const index = entries.findIndex(([name_0]) => name_0 === oldName);
|
|
7201
7209
|
if (index !== -1) {
|
|
7202
7210
|
entries[index] = [oldName, servers[oldName]];
|
|
7203
7211
|
updatedMcpServers = Object.fromEntries(entries);
|
|
@@ -7215,22 +7223,22 @@ const AgentSettings = ({
|
|
|
7215
7223
|
} else {
|
|
7216
7224
|
const {
|
|
7217
7225
|
[oldName]: _removed,
|
|
7218
|
-
...
|
|
7226
|
+
...rest_0
|
|
7219
7227
|
} = updatedMcpServers;
|
|
7220
7228
|
updatedMcpServers = {
|
|
7221
|
-
...
|
|
7229
|
+
...rest_0,
|
|
7222
7230
|
...servers
|
|
7223
7231
|
};
|
|
7224
|
-
Object.entries(servers).forEach(([
|
|
7225
|
-
serversToReload[
|
|
7232
|
+
Object.entries(servers).forEach(([name_1, config_0]) => {
|
|
7233
|
+
serversToReload[name_1] = config_0;
|
|
7226
7234
|
});
|
|
7227
7235
|
}
|
|
7228
7236
|
} else if (isEditingMcpServersConfig) {
|
|
7229
7237
|
updatedMcpServers = {
|
|
7230
7238
|
...servers
|
|
7231
7239
|
};
|
|
7232
|
-
Object.entries(servers).forEach(([
|
|
7233
|
-
serversToReload[
|
|
7240
|
+
Object.entries(servers).forEach(([name_2, config_1]) => {
|
|
7241
|
+
serversToReload[name_2] = config_1;
|
|
7234
7242
|
});
|
|
7235
7243
|
}
|
|
7236
7244
|
setSettings({
|
|
@@ -7240,17 +7248,17 @@ const AgentSettings = ({
|
|
|
7240
7248
|
setIsAddingMcpServer(false);
|
|
7241
7249
|
setEditingMcpServer(null);
|
|
7242
7250
|
setIsEditingMcpServersConfig(false);
|
|
7243
|
-
Object.entries(serversToReload).forEach(([
|
|
7244
|
-
void api.reloadMcpServer(
|
|
7251
|
+
Object.entries(serversToReload).forEach(([serverName_0, config_2]) => {
|
|
7252
|
+
void api.reloadMcpServer(serverName_0, config_2);
|
|
7245
7253
|
});
|
|
7246
7254
|
};
|
|
7247
|
-
const handleToolApprovalChange = (
|
|
7255
|
+
const handleToolApprovalChange = (toolId_0, approval) => {
|
|
7248
7256
|
if (selectedProfile) {
|
|
7249
|
-
const
|
|
7257
|
+
const newToolApprovals_0 = {
|
|
7250
7258
|
...selectedProfile.toolApprovals || {},
|
|
7251
|
-
[
|
|
7259
|
+
[toolId_0]: approval
|
|
7252
7260
|
};
|
|
7253
|
-
handleProfileSettingChange("toolApprovals",
|
|
7261
|
+
handleProfileSettingChange("toolApprovals", newToolApprovals_0);
|
|
7254
7262
|
}
|
|
7255
7263
|
};
|
|
7256
7264
|
const renderSectionAccordion = (title, children, open, setOpen, summary) => /* @__PURE__ */ jsxRuntimeExports.jsx(Accordion, { title: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 text-left text-sm font-medium px-2 flex items-center justify-between", children: [
|
|
@@ -7261,9 +7269,9 @@ const AgentSettings = ({
|
|
|
7261
7269
|
setIsAddingMcpServer(false);
|
|
7262
7270
|
setEditingMcpServer(null);
|
|
7263
7271
|
setIsEditingMcpServersConfig(false);
|
|
7264
|
-
}, servers: isEditingMcpServersConfig ? Object.entries(settings.mcpServers).map(([
|
|
7265
|
-
name,
|
|
7266
|
-
config
|
|
7272
|
+
}, servers: isEditingMcpServersConfig ? Object.entries(settings.mcpServers).map(([name_3, config_3]) => ({
|
|
7273
|
+
name: name_3,
|
|
7274
|
+
config: config_3
|
|
7267
7275
|
})) : editingMcpServer ? [editingMcpServer] : void 0 }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full overflow-hidden", children: [
|
|
7268
7276
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-[260px] flex-shrink-0 border-r border-border-default flex flex-col", children: [
|
|
7269
7277
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-3 border-b border-border-default", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
@@ -7271,20 +7279,20 @@ const AgentSettings = ({
|
|
|
7271
7279
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-secondary truncate flex-1 text-center", children: getContextDisplayName() }),
|
|
7272
7280
|
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronRight, { className: "w-3 h-3" }), onClick: () => navigateContext("next"), tooltip: t("settings.agent.nextContext"), disabled: contexts.length <= 1, className: "p-1" })
|
|
7273
7281
|
] }) }),
|
|
7274
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto p-1 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: filteredProfiles.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full px-8 text-center flex items-center justify-center py-8 text-text-muted-light text-xs", children: t("settings.agent.noProfilesInContext") }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DndContext, { sensors, collisionDetection: closestCenter, onDragStart: () => setDragging(true), onDragEnd: handleDragEnd, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SortableContext, { items: agentProfileIds, strategy: verticalListSortingStrategy, children: filteredProfiles.map((
|
|
7282
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto p-1 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: filteredProfiles.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full px-8 text-center flex items-center justify-center py-8 text-text-muted-light text-xs", children: t("settings.agent.noProfilesInContext") }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DndContext, { sensors, collisionDetection: closestCenter, onDragStart: () => setDragging(true), onDragEnd: handleDragEnd, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SortableContext, { items: agentProfileIds, strategy: verticalListSortingStrategy, children: filteredProfiles.map((profile_8) => /* @__PURE__ */ jsxRuntimeExports.jsx(SortableAgentProfileItem, { profile: profile_8, isSelected: selectedProfileId === profile_8.id, onClick: (id) => {
|
|
7275
7283
|
if (!dragging) {
|
|
7276
7284
|
setSelectedProfileId(id);
|
|
7277
7285
|
}
|
|
7278
|
-
}, onCopy: handleCopyProfile, onCut: handleCutProfile, isCut: clipboardProfile?.action === "cut" && clipboardProfile.profile.id ===
|
|
7279
|
-
profileContext === "global" && missingDefaultProfiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "py-2 border-t border-border-default-dark", children: missingDefaultProfiles.map((
|
|
7286
|
+
}, onCopy: handleCopyProfile, onCut: handleCutProfile, isCut: clipboardProfile?.action === "cut" && clipboardProfile.profile.id === profile_8.id, onDelete: (profile_9) => handleDeleteProfile(profile_9.id), isDefaultProfile: profile_8.id === DEFAULT_AGENT_PROFILE.id }, profile_8.id)) }) }) }),
|
|
7287
|
+
profileContext === "global" && missingDefaultProfiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "py-2 border-t border-border-default-dark", children: missingDefaultProfiles.map((profile_10) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-2 py-1 rounded-sm text-sm transition-colors flex items-center justify-between text-text-muted-light", onClick: () => setSelectedProfileId(profile_10.id), children: [
|
|
7280
7288
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
|
|
7281
|
-
|
|
7282
|
-
backgroundColor:
|
|
7289
|
+
profile_10.subagent.enabled && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-3 h-3 rounded-full mr-2 border border-border-muted", style: {
|
|
7290
|
+
backgroundColor: profile_10.subagent.color
|
|
7283
7291
|
} }),
|
|
7284
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 text-sm", children:
|
|
7292
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 text-sm", children: profile_10.name })
|
|
7285
7293
|
] }),
|
|
7286
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlus, { className: "w-3 h-3" }), onClick: () => handleRestoreProfile(
|
|
7287
|
-
] },
|
|
7294
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlus, { className: "w-3 h-3" }), onClick: () => handleRestoreProfile(profile_10.id), tooltip: t("settings.agent.restoreProfileTooltip"), className: "p-1 hover:bg-bg-tertiary rounded text-text-muted-light hover:text-text-primary" })
|
|
7295
|
+
] }, profile_10.id)) }),
|
|
7288
7296
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-2 border-t border-border-default flex items-center justify-center gap-2", children: [
|
|
7289
7297
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { onClick: handleCreateNewProfile, className: "", variant: "text", size: "sm", color: "primary", children: [
|
|
7290
7298
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FaPlus, { className: "mr-2 w-3 h-3" }),
|
|
@@ -7304,11 +7312,11 @@ const AgentSettings = ({
|
|
|
7304
7312
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Slider, { label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center text-xs", children: [
|
|
7305
7313
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.agent.maxIterations") }),
|
|
7306
7314
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { tooltip: t("settings.agent.computationalResources"), className: "ml-1" })
|
|
7307
|
-
] }), min: 0, max: 200, value: selectedProfile.maxIterations, onChange: (
|
|
7315
|
+
] }), min: 0, max: 200, value: selectedProfile.maxIterations, onChange: (value_0) => handleProfileSettingChange("maxIterations", value_0), formatValue: (v) => v === 0 ? t("settings.agent.infinite") : String(v) }),
|
|
7308
7316
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Input, { label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center text-xs", children: [
|
|
7309
7317
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.agent.minTimeBetweenToolCalls") }),
|
|
7310
7318
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { tooltip: t("settings.agent.rateLimiting"), className: "ml-1" })
|
|
7311
|
-
] }), type: "number", min: 0, max: 6e4, step: 100, value: selectedProfile.minTimeBetweenToolCalls.toString(), onChange: (
|
|
7319
|
+
] }), type: "number", min: 0, max: 6e4, step: 100, value: selectedProfile.minTimeBetweenToolCalls.toString(), onChange: (e_0) => handleProfileSettingChange("minTimeBetweenToolCalls", Number(e_0.target.value)) }),
|
|
7312
7320
|
selectedProfile.temperature === void 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center text-xs", children: [
|
|
7313
7321
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.agent.temperature") }),
|
|
7314
7322
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { tooltip: t("settings.agent.temperatureTooltip"), className: "ml-1" }),
|
|
@@ -7317,7 +7325,7 @@ const AgentSettings = ({
|
|
|
7317
7325
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Slider, { label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center text-xs", children: [
|
|
7318
7326
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.agent.temperature") }),
|
|
7319
7327
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { tooltip: t("settings.agent.temperatureTooltip"), className: "ml-2" })
|
|
7320
|
-
] }), min: 0, max: 2, step: 0.05, value: selectedProfile.temperature, className: "flex-1", onChange: (
|
|
7328
|
+
] }), min: 0, max: 2, step: 0.05, value: selectedProfile.temperature, className: "flex-1", onChange: (value_1) => handleProfileSettingChange("temperature", value_1) }),
|
|
7321
7329
|
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaTimes, { className: "w-3 h-3" }), onClick: () => handleProfileSettingChange("temperature", void 0), tooltip: t("settings.agent.clearOverride"), className: "p-1 hover:bg-bg-tertiary-emphasis hover:text-text-error rounded-sm mt-8" })
|
|
7322
7330
|
] }) }),
|
|
7323
7331
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -7327,7 +7335,7 @@ const AgentSettings = ({
|
|
|
7327
7335
|
selectedProfile.maxTokens === void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-end w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "text", size: "xs", onClick: () => handleProfileSettingChange("maxTokens", 32e3), className: "justify-center", children: t("settings.agent.override") }) })
|
|
7328
7336
|
] }),
|
|
7329
7337
|
selectedProfile.maxTokens !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 w-full", children: [
|
|
7330
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { type: "number", min: 0, max: 6e4, step: 100, value: selectedProfile.maxTokens.toString(), onChange: (
|
|
7338
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { type: "number", min: 0, max: 6e4, step: 100, value: selectedProfile.maxTokens.toString(), onChange: (e_1) => handleProfileSettingChange("maxTokens", Number(e_1.target.value)) }) }),
|
|
7331
7339
|
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaTimes, { className: "w-3 h-3" }), onClick: () => handleProfileSettingChange("maxTokens", void 0), tooltip: t("settings.agent.clearOverride"), className: "p-1 hover:bg-bg-tertiary-emphasis hover:text-text-error rounded-sm" })
|
|
7332
7340
|
] })
|
|
7333
7341
|
] }),
|
|
@@ -7339,7 +7347,7 @@ const AgentSettings = ({
|
|
|
7339
7347
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Slider, { label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center text-xs", children: [
|
|
7340
7348
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "whitespace-nowrap", children: t("settings.agent.autoCompactThresholdPercentage") }),
|
|
7341
7349
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { tooltip: t("settings.agent.autoCompactThresholdPercentageTooltip"), className: "ml-1" })
|
|
7342
|
-
] }), min: 0, max: 100, step: 1, value: selectedProfile.autoCompactThresholdPercentage, className: "flex-1", onChange: (
|
|
7350
|
+
] }), min: 0, max: 100, step: 1, value: selectedProfile.autoCompactThresholdPercentage, className: "flex-1", onChange: (value_2) => handleProfileSettingChange("autoCompactThresholdPercentage", value_2) }),
|
|
7343
7351
|
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaTimes, { className: "w-3 h-3" }), onClick: () => handleProfileSettingChange("autoCompactThresholdPercentage", void 0), tooltip: t("settings.agent.clearOverride"), className: "p-1 hover:bg-bg-tertiary-emphasis hover:text-text-error rounded-sm mt-8" })
|
|
7344
7352
|
] }) }),
|
|
7345
7353
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -7349,7 +7357,7 @@ const AgentSettings = ({
|
|
|
7349
7357
|
selectedProfile.autoCompactThresholdTokens === void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-end w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "text", size: "xs", onClick: () => handleProfileSettingChange("autoCompactThresholdTokens", settings.taskSettings.contextCompactingThreshold.tokens), children: t("settings.agent.override") }) })
|
|
7350
7358
|
] }),
|
|
7351
7359
|
selectedProfile.autoCompactThresholdTokens !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 w-full", children: [
|
|
7352
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { type: "number", min: 0, step: 1e4, value: selectedProfile.autoCompactThresholdTokens.toString(), onChange: (
|
|
7360
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { type: "number", min: 0, step: 1e4, value: selectedProfile.autoCompactThresholdTokens.toString(), onChange: (e_2) => handleProfileSettingChange("autoCompactThresholdTokens", Number(e_2.target.value)) }) }),
|
|
7353
7361
|
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaTimes, { className: "w-3 h-3" }), onClick: () => handleProfileSettingChange("autoCompactThresholdTokens", void 0), tooltip: t("settings.agent.clearOverride"), className: "p-1 hover:bg-bg-tertiary-emphasis hover:text-text-error rounded-sm" })
|
|
7354
7362
|
] })
|
|
7355
7363
|
] }),
|
|
@@ -7374,11 +7382,11 @@ const AgentSettings = ({
|
|
|
7374
7382
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
|
|
7375
7383
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.agent.includeContextFiles") }),
|
|
7376
7384
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "ml-1", tooltip: t("settings.agent.includeFilesTooltip") })
|
|
7377
|
-
] }), checked: selectedProfile.includeContextFiles, onChange: (
|
|
7385
|
+
] }), checked: selectedProfile.includeContextFiles, onChange: (checked_0) => handleProfileSettingChange("includeContextFiles", checked_0) }),
|
|
7378
7386
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
|
|
7379
7387
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.agent.includeRepoMap") }),
|
|
7380
7388
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "ml-1", tooltip: t("settings.agent.includeRepoMapTooltip") })
|
|
7381
|
-
] }), checked: selectedProfile.includeRepoMap, onChange: (
|
|
7389
|
+
] }), checked: selectedProfile.includeRepoMap, onChange: (checked_1) => handleProfileSettingChange("includeRepoMap", checked_1) })
|
|
7382
7390
|
] }), void 0, void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-text-muted-light", children: getContextSummary(selectedProfile) })),
|
|
7383
7391
|
renderSectionAccordion(t("settings.agent.genericTools"), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
7384
7392
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1", children: [
|
|
@@ -7407,9 +7415,9 @@ const AgentSettings = ({
|
|
|
7407
7415
|
description: tool.description
|
|
7408
7416
|
}));
|
|
7409
7417
|
const isExtEnabled = !(selectedProfile.disabledExtensionTools ?? []).includes(extInfo.extensionId);
|
|
7410
|
-
const handleExtEnabledChange = (
|
|
7418
|
+
const handleExtEnabledChange = (enabled_0) => {
|
|
7411
7419
|
const disabled = selectedProfile.disabledExtensionTools ?? [];
|
|
7412
|
-
const updated =
|
|
7420
|
+
const updated = enabled_0 ? disabled.filter((id_0) => id_0 !== extInfo.extensionId) : [...disabled, extInfo.extensionId];
|
|
7413
7421
|
handleProfileSettingChange("disabledExtensionTools", updated);
|
|
7414
7422
|
};
|
|
7415
7423
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolGroupItem, { name: extInfo.extensionId, displayName: extInfo.extensionName, tools: extTools, profile: selectedProfile, onApprovalChange: handleToolApprovalChange, onProfileChange: handleProfileSettingChange, enabled: isExtEnabled, onEnabledChange: handleExtEnabledChange }) }, extInfo.extensionId);
|
|
@@ -7418,12 +7426,12 @@ const AgentSettings = ({
|
|
|
7418
7426
|
Object.keys(tools).length === 0 && extensionToolsInfo.length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted-light my-4 text-center", children: t("settings.agent.noGenericToolsConfigured") })
|
|
7419
7427
|
] }), void 0, void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-text-muted-light", children: getGenericToolsSummary(selectedProfile) })),
|
|
7420
7428
|
renderSectionAccordion(t("settings.agent.mcpServers"), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
7421
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-1", children: Object.entries(mcpServers).map(([
|
|
7422
|
-
const isServerEnabled = (selectedProfile.enabledServers || []).includes(
|
|
7423
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(McpServerItem, { serverName, config: serverConfig, toolApprovals: selectedProfile.toolApprovals || {}, onApprovalChange: handleToolApprovalChange, enabled: isServerEnabled, onEnabledChange: (
|
|
7424
|
-
name:
|
|
7429
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-1", children: Object.entries(mcpServers).map(([serverName_1, serverConfig]) => {
|
|
7430
|
+
const isServerEnabled = (selectedProfile.enabledServers || []).includes(serverName_1);
|
|
7431
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(McpServerItem, { serverName: serverName_1, config: serverConfig, toolApprovals: selectedProfile.toolApprovals || {}, onApprovalChange: handleToolApprovalChange, enabled: isServerEnabled, onEnabledChange: (checked_2) => handleToggleServerEnabled(serverName_1, checked_2), onRemove: () => handleMcpServerRemove(serverName_1), onEdit: () => setEditingMcpServer({
|
|
7432
|
+
name: serverName_1,
|
|
7425
7433
|
config: serverConfig
|
|
7426
|
-
}), reloadTrigger: mcpServersReloadTrigger }) },
|
|
7434
|
+
}), reloadTrigger: mcpServersReloadTrigger }) }, serverName_1);
|
|
7427
7435
|
}) }),
|
|
7428
7436
|
Object.keys(mcpServers).length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted-light my-4 text-center", children: t("settings.agent.noServersConfigured") }),
|
|
7429
7437
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("flex flex-1 items-center justify-end mt-4", Object.keys(mcpServers).length === 0 && "justify-center"), children: [
|
|
@@ -7450,14 +7458,14 @@ const AgentSettings = ({
|
|
|
7450
7458
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-between mb-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
|
|
7451
7459
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.agent.subagent.canUseSubagents") }),
|
|
7452
7460
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "ml-2", tooltip: t("settings.agent.subagent.canUseSubagentsInformation") })
|
|
7453
|
-
] }), checked: selectedProfile.useSubagents, onChange: (
|
|
7461
|
+
] }), checked: selectedProfile.useSubagents, onChange: (checked_3) => handleProfileSettingChange("useSubagents", checked_3) }) }),
|
|
7454
7462
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
7455
7463
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
|
|
7456
7464
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.agent.subagent.enableAsSubagent") }),
|
|
7457
7465
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "ml-2", tooltip: t("settings.agent.subagent.enableAsSubagentInformation") })
|
|
7458
|
-
] }), checked: selectedProfile.subagent.enabled, onChange: (
|
|
7466
|
+
] }), checked: selectedProfile.subagent.enabled, onChange: (checked_4) => handleProfileSettingChange("subagent", {
|
|
7459
7467
|
...selectedProfile.subagent,
|
|
7460
|
-
enabled:
|
|
7468
|
+
enabled: checked_4
|
|
7461
7469
|
}) }),
|
|
7462
7470
|
selectedProfile.subagent.enabled && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-6 h-6 rounded border border-border-default cursor-pointer", style: {
|
|
7463
7471
|
backgroundColor: selectedProfile.subagent.color
|
|
@@ -7475,14 +7483,14 @@ const AgentSettings = ({
|
|
|
7475
7483
|
}, {
|
|
7476
7484
|
label: t("settings.agent.subagent.contextMemory.lastMessage"),
|
|
7477
7485
|
value: ContextMemoryMode.LastMessage
|
|
7478
|
-
}], value: selectedProfile.subagent.contextMemory, onChange: (
|
|
7486
|
+
}], value: selectedProfile.subagent.contextMemory, onChange: (value_3) => handleProfileSettingChange("subagent", {
|
|
7479
7487
|
...selectedProfile.subagent,
|
|
7480
|
-
contextMemory:
|
|
7488
|
+
contextMemory: value_3
|
|
7481
7489
|
}), size: "sm" }) }),
|
|
7482
7490
|
selectedProfile.subagent.enabled && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-4 space-y-1", children: [
|
|
7483
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, { label: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "text-xs font-medium text-text-primary", children: t("settings.agent.subagent.systemPrompt") }), className: "min-h-[160px]", value: selectedProfile.subagent.systemPrompt, onChange: (
|
|
7491
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, { label: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "text-xs font-medium text-text-primary", children: t("settings.agent.subagent.systemPrompt") }), className: "min-h-[160px]", value: selectedProfile.subagent.systemPrompt, onChange: (e_3) => handleProfileSettingChange("subagent", {
|
|
7484
7492
|
...selectedProfile.subagent,
|
|
7485
|
-
systemPrompt:
|
|
7493
|
+
systemPrompt: e_3.target.value
|
|
7486
7494
|
}), placeholder: t("settings.agent.subagent.systemPromptPlaceholder") }),
|
|
7487
7495
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-4 mb-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { label: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "text-xs font-medium text-text-primary", children: t("settings.agent.subagent.invocationMode") }), options: [{
|
|
7488
7496
|
label: t("settings.agent.subagent.invocationModeOnDemand"),
|
|
@@ -7490,13 +7498,13 @@ const AgentSettings = ({
|
|
|
7490
7498
|
}, {
|
|
7491
7499
|
label: t("settings.agent.subagent.invocationModeAutomatic"),
|
|
7492
7500
|
value: InvocationMode.Automatic
|
|
7493
|
-
}], value: selectedProfile.subagent.invocationMode, onChange: (
|
|
7501
|
+
}], value: selectedProfile.subagent.invocationMode, onChange: (value_4) => handleProfileSettingChange("subagent", {
|
|
7494
7502
|
...selectedProfile.subagent,
|
|
7495
|
-
invocationMode:
|
|
7503
|
+
invocationMode: value_4
|
|
7496
7504
|
}), size: "sm" }) }),
|
|
7497
|
-
selectedProfile.subagent.invocationMode === InvocationMode.Automatic && /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, { label: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "text-xs font-medium text-text-primary", children: t("settings.agent.subagent.description") }), className: "min-h-[100px]", value: selectedProfile.subagent.description, onChange: (
|
|
7505
|
+
selectedProfile.subagent.invocationMode === InvocationMode.Automatic && /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, { label: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "text-xs font-medium text-text-primary", children: t("settings.agent.subagent.description") }), className: "min-h-[100px]", value: selectedProfile.subagent.description, onChange: (e_4) => handleProfileSettingChange("subagent", {
|
|
7498
7506
|
...selectedProfile.subagent,
|
|
7499
|
-
description:
|
|
7507
|
+
description: e_4.target.value
|
|
7500
7508
|
}), placeholder: t("settings.agent.subagent.descriptionPlaceholder") }),
|
|
7501
7509
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-2xs text-text-muted-light mt-3", children: selectedProfile.subagent.invocationMode === InvocationMode.Automatic ? !selectedProfile.subagent.description.trim() ? t("settings.agent.subagent.descriptionRequiredForAutomatic") : t("settings.agent.subagent.invocationModeAutomaticInformation") : t("settings.agent.subagent.invocationModeOnDemandInformation") })
|
|
7502
7510
|
] })
|
|
@@ -7506,8 +7514,8 @@ const AgentSettings = ({
|
|
|
7506
7514
|
...selectedProfile.subagent,
|
|
7507
7515
|
color: color2.hex
|
|
7508
7516
|
});
|
|
7509
|
-
}, onClick: (
|
|
7510
|
-
|
|
7517
|
+
}, onClick: (e_5) => {
|
|
7518
|
+
e_5.stopPropagation();
|
|
7511
7519
|
} }) }) }),
|
|
7512
7520
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-4 pt-2 flex justify-end items-center gap-2", children: [
|
|
7513
7521
|
isDefaultProfile(selectedProfileId) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { onClick: handleResetProfile, variant: "text", size: "sm", color: "secondary", disabled: !selectedProfileId, children: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports, a as clsx, t as twMerge, j as jsxRuntimeExports, F as FaInfoCircle, I as IconButton } from "./index-
|
|
1
|
+
import { c as compilerRuntimeExports, a as clsx, t as twMerge, j as jsxRuntimeExports, F as FaInfoCircle, I as IconButton } from "./index-LigRSjJQ.js";
|
|
2
2
|
const InfoIcon = (t0) => {
|
|
3
3
|
const $ = compilerRuntimeExports.c(13);
|
|
4
4
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports, a$ as useModelProviders, b0 as reactExports, j as jsxRuntimeExports, b1 as HiCheck, a as clsx, b2 as useTranslation, b3 as useNavigate, b4 as useSettingsStore, b5 as useSaveSettings, b6 as useAgents, b7 as Button, b8 as HiArrowLeft, b9 as HiArrowRight, ba as showErrorNotification, bb as lodashExports, bc as showInfoNotification, bd as ROUTES } from "./index-
|
|
2
|
-
import { A as AgentSettings, a as AiderSettings, L as LanguageSelector } from "./AgentSettings-
|
|
3
|
-
import { P as ProviderProfileForm, a as ProviderSelection, b as ProviderHeader } from "./ProviderHeader-
|
|
4
|
-
import "./InfoIcon-
|
|
1
|
+
import { c as compilerRuntimeExports, a$ as useModelProviders, b0 as reactExports, j as jsxRuntimeExports, b1 as HiCheck, a as clsx, b2 as useTranslation, b3 as useNavigate, b4 as useSettingsStore, b5 as useSaveSettings, b6 as useAgents, b7 as Button, b8 as HiArrowLeft, b9 as HiArrowRight, ba as showErrorNotification, bb as lodashExports, bc as showInfoNotification, bd as ROUTES } from "./index-LigRSjJQ.js";
|
|
2
|
+
import { A as AgentSettings, a as AiderSettings, L as LanguageSelector } from "./AgentSettings-BKSogFrU.js";
|
|
3
|
+
import { P as ProviderProfileForm, a as ProviderSelection, b as ProviderHeader } from "./ProviderHeader-CQHU1_fp.js";
|
|
4
|
+
import "./InfoIcon-XbMgPv1i.js";
|
|
5
5
|
const OnboardingProviderSetup = () => {
|
|
6
6
|
const $ = compilerRuntimeExports.c(21);
|
|
7
7
|
const {
|