@sourcegraph/cody-web 0.8.3 → 0.9.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/dist/{agent.worker-BRaA9Bfg.mjs → agent.worker-BkGIISm4.mjs} +24683 -18096
- package/dist/agent.worker.js +2 -2
- package/dist/{browser-fSoJnYQE.mjs → browser-BeeBuz0g.mjs} +15508 -20505
- package/dist/{git-log-DFDYqWm8.mjs → git-log-D_9yysRz.mjs} +2 -2
- package/dist/{index-D37eXObq.mjs → index-CGvgvDrO.mjs} +2 -2
- package/dist/index.js +298 -251
- package/dist/lib/agent/shims/inline-completion-item-provider.d.ts +2 -3
- package/dist/lib/agent/shims/inline-completion-item-provider.d.ts.map +1 -1
- package/dist/{shell-CMHu3sfo.mjs → shell-06IUz87L.mjs} +3 -4
- package/dist/style.css +9 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/util-HSH4uVeM.mjs +0 -28
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { g as getDefaultExportFromCjs, c as commonjsGlobal, r as require$$1, L as Ls, k as ke$1, a as ks, F as Fi$1, _ as _s, b as ds, e as bs, i as ii$1, q as qe$1, y as ys, x as xi$1, K as K$2, J as J$2, R as R$3, f as ws, B as B$2, h as g$5, j as h$4, l as _i, S as Ss, m as Br, n as ln, o as bi$1, v as vn, s as xn, N as Nn, u as mn, z as li$1, A as n$1, D as ns, M as M$4, E as Ds, G as le$2, H as c$4, I as oe$1, O as z$1, P as yi$1, W as W$2, U as Ue$1, Q as I$2, V as Se$2, X as O$2, Y as F$1, Z as Ni$1, $ as ee$1, a0 as we$2, a1 as b$2, a2 as T$3, a3 as s$2, a4 as o$4, a5 as w$3, a6 as i$1, a7 as k$3, a8 as D$5, a9 as p$8, aa as m$7, ab as S$4, ac as v$4, ad as P$2, ae as E$6, af as Wi$1, ag as L$3, ah as d$2, ai as a$3, aj as l$2, ak as f$2, al as u$6, am as r$6, an as t$2, ao as FILE_CONTEXT_MENTION_PROVIDER, ap as SYMBOL_CONTEXT_MENTION_PROVIDER, aq as REMOTE_REPOSITORY_PROVIDER_URI, ar as REMOTE_FILE_PROVIDER_URI, as as REMOTE_DIRECTORY_PROVIDER_URI, at as WEB_PROVIDER_URI, au as displayPath, av as displayLineRange, aw as displayPathDirname, ax as displayPathBasename, ay as IGNORED_FILE_WARNING_LABEL, az as LARGE_FILE_WARNING_LABEL, aA as Ei$1, aB as xe$2, aC as V$2, aD as Es, aE as U$2, aF as e, aG as Ns, aH as an, aI as gs, aJ as serializeContextItem, aK as CONTEXT_ITEM_MENTION_NODE_TYPE, aL as contextItemMentionNodeDisplayText, C as ContextItemSource, aM as URI, aN as qr, aO as _$2, aP as TEMPLATE_INPUT_NODE_TYPE, aQ as N$2, aR as parseMentionQuery, aS as NO_SYMBOL_MATCHES_HELP_LABEL, aT as FILE_RANGE_TOOLTIP_LABEL, aU as createExtensionAPI, aV as createMessageAPIForWebview, aW as
|
|
5
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal, r as require$$1, L as Ls, k as ke$1, a as ks, F as Fi$1, _ as _s, b as ds, e as bs, i as ii$1, q as qe$1, y as ys, x as xi$1, K as K$2, J as J$2, R as R$3, f as ws, B as B$2, h as g$5, j as h$4, l as _i, S as Ss, m as Br, n as ln, o as bi$1, v as vn, s as xn, N as Nn, u as mn, z as li$1, A as n$1, D as ns, M as M$4, E as Ds, G as le$2, H as c$4, I as oe$1, O as z$1, P as yi$1, W as W$2, U as Ue$1, Q as I$2, V as Se$2, X as O$2, Y as F$1, Z as Ni$1, $ as ee$1, a0 as we$2, a1 as b$2, a2 as T$3, a3 as s$2, a4 as o$4, a5 as w$3, a6 as i$1, a7 as k$3, a8 as D$5, a9 as p$8, aa as m$7, ab as S$4, ac as v$4, ad as P$2, ae as E$6, af as Wi$1, ag as L$3, ah as d$2, ai as a$3, aj as l$2, ak as f$2, al as u$6, am as r$6, an as t$2, ao as FILE_CONTEXT_MENTION_PROVIDER, ap as SYMBOL_CONTEXT_MENTION_PROVIDER, aq as REMOTE_REPOSITORY_PROVIDER_URI, ar as REMOTE_FILE_PROVIDER_URI, as as REMOTE_DIRECTORY_PROVIDER_URI, at as WEB_PROVIDER_URI, au as displayPath, av as displayLineRange, aw as displayPathDirname, ax as displayPathBasename, ay as IGNORED_FILE_WARNING_LABEL, az as LARGE_FILE_WARNING_LABEL, aA as Ei$1, aB as xe$2, aC as V$2, aD as Es, aE as U$2, aF as e, aG as Ns, aH as an, aI as gs, aJ as serializeContextItem, aK as CONTEXT_ITEM_MENTION_NODE_TYPE, aL as contextItemMentionNodeDisplayText, C as ContextItemSource, aM as URI, aN as qr, aO as _$2, aP as TEMPLATE_INPUT_NODE_TYPE, aQ as N$2, aR as parseMentionQuery, aS as NO_SYMBOL_MATCHES_HELP_LABEL, aT as FILE_RANGE_TOOLTIP_LABEL, aU as createExtensionAPI, aV as createMessageAPIForWebview, aW as debounce, aX as memoizeLastValue, aY as toSerializedPromptEditorValue, aZ as ri$1, a_ as isEqual, a$ as scanForMentionTriggerInUserTextInput, b0 as fs, b1 as Ts, b2 as ps, b3 as hydrateAfterPostMessage, b4 as isCodyProUser, b5 as CodyIDE, b6 as FeatureFlag, b7 as webviewOpenURIForContextItem, b8 as upperFirst, b9 as CodyTaskState, ba as isError, bb as RateLimitError, bc as CODY_FEEDBACK_URL, bd as isDefined, be as reformatBotMessageForChat, p as ps$1, bf as isAbortErrorOrSocketHangUp, bg as ModelTag, bh as serializedPromptEditorStateFromChatMessage, bi as contextItemsFromPromptEditorValue, bj as filterContextItemsFromPromptEditorValue, bk as pluralize$1, bl as isCodyProModel, bm as isWaitlistModel, bn as CustomCommandType, bo as View, bp as isMacOS, bq as textContentFromSerializedLexicalNode, br as FAST_CHAT_INPUT_TOKEN_BUDGET, bs as inputTextWithoutContextChipsFromPromptEditorState, bt as deserializeContextItem, bu as truncateTextStart, bv as CHAT_INPUT_TOKEN_BUDGET, bw as ACCOUNT_USAGE_URL, bx as ACCOUNT_UPGRADE_URL, by as getRelativeChatPeriod, bz as browser, bA as isErrorLike, bB as setDisplayPathEnvInfo, bC as PromptString } from "./browser-BeeBuz0g.mjs";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import React__default, { createContext, useContext, useMemo, useLayoutEffect, useEffect, forwardRef, useState, useCallback, useRef, Suspense, createElement, memo, useImperativeHandle, Children, isValidElement, cloneElement, Fragment as Fragment$1, useReducer } from "react";
|
|
8
8
|
var classnames = { exports: {} };
|
|
@@ -14730,6 +14730,23 @@ const Trash = createLucideIcon("Trash", [
|
|
|
14730
14730
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
14731
14731
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }]
|
|
14732
14732
|
]);
|
|
14733
|
+
/**
|
|
14734
|
+
* @license lucide-react v0.378.0 - ISC
|
|
14735
|
+
*
|
|
14736
|
+
* This source code is licensed under the ISC license.
|
|
14737
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14738
|
+
*/
|
|
14739
|
+
const TriangleAlert = createLucideIcon("TriangleAlert", [
|
|
14740
|
+
[
|
|
14741
|
+
"path",
|
|
14742
|
+
{
|
|
14743
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
14744
|
+
key: "wmoenq"
|
|
14745
|
+
}
|
|
14746
|
+
],
|
|
14747
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
14748
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
14749
|
+
]);
|
|
14733
14750
|
const SvgConfluence = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M0.57999 12.1713C0.414657 12.426 0.226657 12.7547 0.0713233 13.0013C0.00313112 13.1161 -0.0172626 13.2531 0.0145323 13.3828C0.0463272 13.5124 0.127768 13.6244 0.241323 13.6947L3.55132 15.7307C3.60886 15.7662 3.67289 15.7898 3.73967 15.8003C3.80646 15.8108 3.87466 15.8079 3.94031 15.7918C4.00597 15.7757 4.06775 15.7466 4.12206 15.7064C4.17637 15.6661 4.22213 15.6155 4.25666 15.5573C4.38932 15.336 4.55932 15.0487 4.74532 14.7433C6.05666 12.5787 7.37532 12.8413 9.75066 13.9793L13.0553 15.5373C13.1169 15.5667 13.1837 15.5833 13.2518 15.5864C13.3199 15.5894 13.388 15.5787 13.4519 15.555C13.5158 15.5312 13.5743 15.4949 13.6239 15.4481C13.6735 15.4013 13.7132 15.3451 13.7407 15.2827L15.3167 11.7187C15.37 11.5963 15.3732 11.4579 15.3256 11.3333C15.278 11.2086 15.1833 11.1076 15.062 11.052C13.9563 10.5324 12.8529 10.0077 11.752 9.478C7.27399 7.31333 3.48266 7.45666 0.57999 12.1713ZM15.4207 3.82866C15.5867 3.55866 15.7747 3.24533 15.93 2.99533C15.9969 2.88082 16.0165 2.74474 15.9846 2.61602C15.9527 2.48729 15.8719 2.37607 15.7593 2.306L12.45 0.26933C12.3925 0.233832 12.3284 0.210143 12.2616 0.199645C12.1949 0.189147 12.1266 0.192049 12.061 0.208183C11.9953 0.224316 11.9336 0.253359 11.8793 0.293616C11.8249 0.333874 11.7792 0.384541 11.7447 0.442663C11.5845 0.716642 11.4214 0.988881 11.2553 1.25933C9.94466 3.42333 8.62532 3.15933 6.24999 2.02333L2.95799 0.462663C2.89647 0.433435 2.82972 0.416842 2.76167 0.413865C2.69363 0.410888 2.62568 0.421588 2.56185 0.445332C2.49801 0.469076 2.43959 0.505382 2.39003 0.552101C2.34047 0.59882 2.30079 0.655005 2.27332 0.71733L0.697323 4.28133C0.643964 4.40366 0.640752 4.54205 0.688377 4.66672C0.736003 4.7914 0.830661 4.8924 0.95199 4.948C1.64466 5.27466 3.02199 5.926 4.26199 6.522C8.72732 8.686 12.5233 8.54133 15.4207 3.82866Z" }));
|
|
14734
14751
|
const SvgGithub = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M8 0C9.45778 0 10.7911 0.355556 12 1.06667C13.2444 1.77778 14.2222 2.75556 14.9333 4C15.6444 5.20889 16 6.54222 16 8C16 9.45778 15.6444 10.8089 14.9333 12.0533C14.2222 13.2622 13.2444 14.2222 12 14.9333C10.7911 15.6444 9.45778 16 8 16C6.54222 16 5.19111 15.6444 3.94667 14.9333C2.73778 14.2222 1.77778 13.2622 1.06667 12.0533C0.355556 10.8089 0 9.45778 0 8C0 6.54222 0.355556 5.20889 1.06667 4C1.77778 2.75556 2.73778 1.77778 3.94667 1.06667C5.19111 0.355556 6.54222 0 8 0ZM10.1333 14.5067C11.1644 14.1867 12.0711 13.6356 12.8533 12.8533C13.6356 12.0711 14.1867 11.1644 14.5067 10.1333C14.8622 9.10222 14.9511 8.03556 14.7733 6.93333C14.5956 5.83111 14.1867 4.83556 13.5467 3.94667C12.9067 3.05778 12.0889 2.36444 11.0933 1.86667C10.1333 1.36889 9.10222 1.12 8 1.12C6.89778 1.12 5.84889 1.36889 4.85333 1.86667C3.89333 2.36444 3.09333 3.05778 2.45333 3.94667C1.81333 4.83556 1.40444 5.83111 1.22667 6.93333C1.04889 8.03556 1.12 9.10222 1.44 10.1333C1.79556 11.1644 2.36444 12.0711 3.14667 12.8533C3.92889 13.6356 4.83556 14.1867 5.86667 14.5067H5.92C6.02667 14.5067 6.11556 14.4889 6.18667 14.4533C6.25778 14.3822 6.29333 14.2933 6.29333 14.1867V13.0133L5.92 13.0667H5.6C5.24444 13.1022 4.90667 13.0311 4.58667 12.8533C4.30222 12.6756 4.10667 12.4267 4 12.1067L3.68 11.52C3.60889 11.4489 3.53778 11.3778 3.46667 11.3067L3.04 10.9867C2.96889 10.9156 2.93333 10.8622 2.93333 10.8267C2.93333 10.7911 2.95111 10.7556 2.98667 10.72L3.25333 10.6667C3.36 10.6667 3.46667 10.7022 3.57333 10.7733C3.68 10.8089 3.78667 10.8444 3.89333 10.88L4.10667 11.1467L4.32 11.36C4.46222 11.6089 4.62222 11.8044 4.8 11.9467C5.01333 12.0889 5.24444 12.16 5.49333 12.16C5.77778 12.1244 6.04444 12.0533 6.29333 11.9467C6.32889 11.7689 6.38222 11.6089 6.45333 11.4667C6.52444 11.2889 6.61333 11.1467 6.72 11.04C6.25778 11.0044 5.83111 10.9156 5.44 10.7733C5.04889 10.5956 4.71111 10.3644 4.42667 10.08C4.14222 9.79556 3.94667 9.45778 3.84 9.06667C3.69778 8.60444 3.62667 8.12444 3.62667 7.62667C3.62667 7.30667 3.68 6.98667 3.78667 6.66667C3.92889 6.34667 4.10667 6.06222 4.32 5.81333C4.28444 5.67111 4.24889 5.54667 4.21333 5.44C4.21333 5.29778 4.21333 5.15556 4.21333 5.01333C4.21333 4.83556 4.23111 4.67555 4.26667 4.53333C4.30222 4.35556 4.33778 4.17778 4.37333 4H4.53333C4.67556 4 4.81778 4.01778 4.96 4.05333C5.13778 4.08889 5.29778 4.14222 5.44 4.21333L5.92 4.48L6.29333 4.69333C7.43111 4.37333 8.56889 4.37333 9.70667 4.69333L10.08 4.48L10.56 4.21333C10.7022 4.14222 10.8444 4.08889 10.9867 4.05333C11.1289 4.01778 11.2889 4 11.4667 4H11.5733C11.6444 4.17778 11.6978 4.35556 11.7333 4.53333C11.7689 4.67555 11.7867 4.83556 11.7867 5.01333C11.7867 5.15556 11.7689 5.29778 11.7333 5.44C11.7333 5.54667 11.7156 5.67111 11.68 5.81333C11.8933 6.06222 12.0533 6.34667 12.16 6.66667C12.3022 6.98667 12.3733 7.30667 12.3733 7.62667C12.3733 8.12444 12.3022 8.60444 12.16 9.06667C12.0533 9.45778 11.8578 9.79556 11.5733 10.08C11.2889 10.3644 10.9333 10.5956 10.5067 10.7733C10.1156 10.9156 9.68889 11.0044 9.22667 11.04C9.40444 11.1822 9.52889 11.3778 9.6 11.6267C9.67111 11.84 9.70667 12.0711 9.70667 12.32V14.1867C9.70667 14.2933 9.74222 14.3822 9.81333 14.4533C9.88444 14.4889 9.95556 14.5067 10.0267 14.5067H10.1333Z" }));
|
|
14735
14752
|
const SvgGoogle = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M13.7657 6.9125H8.12036V9.23281H11.3454C11.2063 9.98281 10.7844 10.6172 10.1485 11.0422C9.61099 11.4016 8.92505 11.6141 8.1188 11.6141C6.55786 11.6141 5.23755 10.5594 4.76567 9.14219C4.64692 8.78281 4.57817 8.39844 4.57817 8.00313C4.57817 7.60781 4.64692 7.22344 4.76567 6.86406C5.23911 5.44844 6.55942 4.39375 8.12036 4.39375C9.00005 4.39375 9.78911 4.69688 10.411 5.29063L12.1297 3.57031C11.0907 2.60156 9.73599 2.00781 8.12036 2.00781C5.77817 2.00781 3.75161 3.35156 2.76567 5.31094C2.35942 6.12031 2.12817 7.03594 2.12817 8.00469C2.12817 8.97344 2.35942 9.8875 2.76567 10.6969C3.75161 12.6562 5.77817 14 8.12036 14C9.73911 14 11.0954 13.4625 12.086 12.5469C13.2188 11.5031 13.8735 9.96563 13.8735 8.13906C13.8735 7.71406 13.836 7.30625 13.7657 6.9125Z" }));
|
|
@@ -15891,7 +15908,7 @@ function useMentionMenuParams() {
|
|
|
15891
15908
|
].includes(((_a = params.parentItem) == null ? void 0 : _a.id) || "");
|
|
15892
15909
|
const debounceTime = isRemoteLikeProviderActive ? 300 : 10;
|
|
15893
15910
|
const debouncedUpdateQuery = useMemo(
|
|
15894
|
-
() =>
|
|
15911
|
+
() => debounce((query) => setParams((prev) => ({ ...prev, query })), debounceTime),
|
|
15895
15912
|
[debounceTime]
|
|
15896
15913
|
);
|
|
15897
15914
|
const updateQuery = useCallback(
|
|
@@ -16124,7 +16141,7 @@ const MentionsPlugin = memo(
|
|
|
16124
16141
|
}
|
|
16125
16142
|
);
|
|
16126
16143
|
},
|
|
16127
|
-
|
|
16144
|
+
isEqual
|
|
16128
16145
|
);
|
|
16129
16146
|
function sharedPrefixLength(s1, s2) {
|
|
16130
16147
|
let i2 = 0;
|
|
@@ -16479,7 +16496,7 @@ const PromptEditor = ({
|
|
|
16479
16496
|
if (editor2) {
|
|
16480
16497
|
const currentEditorState = normalizeEditorStateJSON(editor2.getEditorState().toJSON());
|
|
16481
16498
|
const newEditorState = initialEditorState.lexicalEditorState;
|
|
16482
|
-
if (!
|
|
16499
|
+
if (!isEqual(currentEditorState, newEditorState)) {
|
|
16483
16500
|
editor2.setEditorState(editor2.parseEditorState(newEditorState));
|
|
16484
16501
|
}
|
|
16485
16502
|
}
|
|
@@ -36389,141 +36406,6 @@ function useUserAccountInfo() {
|
|
|
36389
36406
|
ide: value.config.agentIDE ?? CodyIDE.VSCode
|
|
36390
36407
|
};
|
|
36391
36408
|
}
|
|
36392
|
-
const AnthropicLogo = ({
|
|
36393
|
-
size: size2,
|
|
36394
|
-
className
|
|
36395
|
-
}) => /* @__PURE__ */ jsxs(
|
|
36396
|
-
"svg",
|
|
36397
|
-
{
|
|
36398
|
-
width: size2,
|
|
36399
|
-
height: size2,
|
|
36400
|
-
viewBox: "0 0 16 16",
|
|
36401
|
-
fill: "currentColor",
|
|
36402
|
-
className,
|
|
36403
|
-
role: "img",
|
|
36404
|
-
"aria-label": "Anthropic logo",
|
|
36405
|
-
children: [
|
|
36406
|
-
/* @__PURE__ */ jsx("g", { opacity: "0.8", children: /* @__PURE__ */ jsx("path", { d: "M9.19429 2.62L13.4849 13.3817H15.8378L11.5472 2.62H9.19429Z" }) }),
|
|
36407
|
-
/* @__PURE__ */ jsx("path", { d: "M4.21689 9.12316L5.68499 5.34118L7.15309 9.12316H4.21689ZM4.45491 2.62L0.164993 13.3817H2.56365L3.44101 11.1218H7.92912L8.80633 13.3817H11.205L6.91508 2.62H4.45491Z" })
|
|
36408
|
-
]
|
|
36409
|
-
}
|
|
36410
|
-
);
|
|
36411
|
-
const OpenAILogo = ({
|
|
36412
|
-
size: size2,
|
|
36413
|
-
className
|
|
36414
|
-
}) => /* @__PURE__ */ jsx(
|
|
36415
|
-
"svg",
|
|
36416
|
-
{
|
|
36417
|
-
width: size2,
|
|
36418
|
-
height: size2,
|
|
36419
|
-
viewBox: "0 0 16 16",
|
|
36420
|
-
fill: "currentColor",
|
|
36421
|
-
className,
|
|
36422
|
-
role: "img",
|
|
36423
|
-
"aria-label": "OpenAI logo",
|
|
36424
|
-
children: /* @__PURE__ */ jsx("path", { d: "M14.9447 6.549C15.1264 6.01054 15.1895 5.43914 15.1296 4.87402C15.0697 4.30889 14.8882 3.76341 14.5977 3.275C14.1605 2.53124 13.5001 1.94411 12.7102 1.59694C11.9204 1.24978 11.0413 1.16023 10.1977 1.341C9.81322 0.915096 9.34294 0.575409 8.81777 0.344282C8.29261 0.113154 7.72446 -0.00417854 7.1507 1.05051e-06C5.3737 -0.00499895 3.7997 1.123 3.2537 2.79C2.69181 2.90236 2.16027 3.13301 1.6944 3.46664C1.22853 3.80026 0.839002 4.22922 0.5517 4.725C0.117396 5.46264 -0.0681712 6.32039 0.022404 7.17159C0.112979 8.02278 0.474895 8.82227 1.0547 9.452C0.873003 9.99046 0.809939 10.5619 0.869834 11.127C0.92973 11.6921 1.11117 12.2376 1.4017 12.726C1.83893 13.4698 2.49933 14.0569 3.28916 14.4041C4.07898 14.7512 4.9581 14.8408 5.8017 14.66C6.18615 15.0859 6.65645 15.4255 7.18164 15.6564C7.70683 15.8874 8.27499 16.0045 8.8487 16C10.6257 16.004 12.2017 14.875 12.7487 13.207C13.3101 13.0945 13.8412 12.8639 14.3067 12.5304C14.7722 12.197 15.1615 11.7684 15.4487 11.273C15.8824 10.5355 16.0676 9.67821 15.977 8.82749C15.8865 7.97676 15.5249 7.17765 14.9457 6.548L14.9447 6.549ZM8.8497 14.954C8.1397 14.955 7.4497 14.71 6.9047 14.26C6.9297 14.247 6.9727 14.224 7.0007 14.207L10.2297 12.367C10.3104 12.3219 10.3776 12.256 10.4242 12.1762C10.4708 12.0963 10.4952 12.0055 10.4947 11.913V7.422L11.8597 8.199C11.8668 8.20248 11.8729 8.2077 11.8774 8.21417C11.882 8.22064 11.8848 8.22814 11.8857 8.236V11.956C11.8837 13.61 10.5257 14.951 8.8497 14.954ZM2.3217 12.203C1.96538 11.5975 1.83667 10.8849 1.9587 10.193L2.0547 10.25L5.2847 12.09C5.36534 12.1363 5.45671 12.1607 5.5497 12.1607C5.64269 12.1607 5.73406 12.1363 5.8147 12.09L9.7557 9.844V11.4C9.75614 11.408 9.75464 11.416 9.75133 11.4233C9.74802 11.4306 9.74301 11.437 9.7367 11.442L6.4737 13.3C5.0207 14.125 3.1637 13.634 2.3237 12.202H2.3227L2.3217 12.203ZM1.4717 5.248C1.82875 4.63854 2.38821 4.17356 3.0527 3.934L3.0517 4.044V7.724C3.0507 7.911 3.1517 8.084 3.3167 8.177L7.2587 10.423L5.8937 11.2C5.88695 11.2044 5.87922 11.2071 5.8712 11.2078C5.86318 11.2085 5.85511 11.2072 5.8477 11.204L2.5837 9.344C2.23971 9.1502 1.93766 8.88998 1.6951 8.57845C1.45254 8.26691 1.2743 7.91029 1.17075 7.52928C1.06719 7.14828 1.04038 6.75049 1.09187 6.35904C1.14337 5.96758 1.27214 5.59026 1.4707 5.249L1.4717 5.248ZM12.6837 7.823L8.7417 5.577L10.1067 4.8C10.1134 4.79561 10.1212 4.79294 10.1292 4.79224C10.1372 4.79155 10.1453 4.79284 10.1527 4.796L13.4167 6.656C13.7609 6.84969 14.0632 7.10992 14.3059 7.42154C14.5486 7.73317 14.7269 8.08996 14.8304 8.47115C14.9339 8.85234 14.9605 9.25031 14.9087 9.64189C14.8569 10.0335 14.7277 10.4108 14.5287 10.752C14.1711 11.361 13.6119 11.8258 12.9477 12.066V8.276C12.9482 8.18379 12.924 8.09314 12.8775 8.01347C12.8311 7.9338 12.7642 7.86803 12.6837 7.823ZM14.0417 5.806C14.0099 5.78659 13.9779 5.76759 13.9457 5.749L10.7167 3.909C10.6361 3.86268 10.5447 3.8383 10.4517 3.8383C10.3587 3.8383 10.2673 3.86268 10.1867 3.909L6.2437 6.155V4.6C6.24354 4.59207 6.24527 4.58422 6.24875 4.57709C6.25223 4.56996 6.25735 4.56376 6.2637 4.559L9.5267 2.7C10.9807 1.872 12.8387 2.365 13.6767 3.8C14.0317 4.406 14.1597 5.115 14.0397 5.805L14.0417 5.806ZM5.5027 8.577L4.1377 7.8C4.1306 7.79652 4.1245 7.7913 4.11996 7.78483C4.11541 7.77837 4.11257 7.77086 4.1117 7.763V4.043C4.1117 2.387 5.4737 1.045 7.1517 1.046C7.8617 1.046 8.5487 1.292 9.0947 1.74C9.06227 1.75722 9.03026 1.77523 8.9987 1.794L5.7707 3.634C5.68986 3.67877 5.62253 3.74443 5.57574 3.82412C5.52895 3.9038 5.50441 3.99459 5.5047 4.087L5.5027 8.577ZM6.2437 7L7.9997 6L9.7557 7V9L7.9997 10L6.2437 9V7Z" })
|
|
36425
|
-
}
|
|
36426
|
-
);
|
|
36427
|
-
const MistralLogo = ({
|
|
36428
|
-
size: size2,
|
|
36429
|
-
className
|
|
36430
|
-
}) => /* @__PURE__ */ jsxs(
|
|
36431
|
-
"svg",
|
|
36432
|
-
{
|
|
36433
|
-
width: size2,
|
|
36434
|
-
height: size2,
|
|
36435
|
-
viewBox: "0 0 16 16",
|
|
36436
|
-
fill: "currentColor",
|
|
36437
|
-
className,
|
|
36438
|
-
role: "img",
|
|
36439
|
-
"aria-label": "Mistral logo",
|
|
36440
|
-
children: [
|
|
36441
|
-
/* @__PURE__ */ jsx("rect", { x: "13", y: "0.5", width: "3", height: "3" }),
|
|
36442
|
-
/* @__PURE__ */ jsx("rect", { x: "1", y: "0.5", width: "3", height: "3" }),
|
|
36443
|
-
/* @__PURE__ */ jsx("rect", { opacity: "0.85", x: "13", y: "3.5", width: "3", height: "3" }),
|
|
36444
|
-
/* @__PURE__ */ jsx("rect", { x: "13", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
36445
|
-
/* @__PURE__ */ jsx("rect", { x: "10", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
36446
|
-
/* @__PURE__ */ jsx("rect", { x: "7", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
36447
|
-
/* @__PURE__ */ jsx("rect", { x: "4", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
36448
|
-
/* @__PURE__ */ jsx("rect", { x: "1", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
36449
|
-
/* @__PURE__ */ jsx("rect", { x: "1", y: "9.5", width: "3", height: "3", fillOpacity: "0.55" }),
|
|
36450
|
-
/* @__PURE__ */ jsx("rect", { x: "7", y: "9.5", width: "3", height: "3", fillOpacity: "0.55" }),
|
|
36451
|
-
/* @__PURE__ */ jsx("rect", { x: "13", y: "9.5", width: "3", height: "3", fillOpacity: "0.55" }),
|
|
36452
|
-
/* @__PURE__ */ jsx("rect", { x: "13", y: "12.5", width: "3", height: "3", fillOpacity: "0.4" }),
|
|
36453
|
-
/* @__PURE__ */ jsx("rect", { x: "1", y: "12.5", width: "3", height: "3", fillOpacity: "0.4" }),
|
|
36454
|
-
/* @__PURE__ */ jsx("rect", { opacity: "0.85", x: "10", y: "3.5", width: "3", height: "3" }),
|
|
36455
|
-
/* @__PURE__ */ jsx("rect", { opacity: "0.85", x: "1", y: "3.5", width: "3", height: "3" }),
|
|
36456
|
-
/* @__PURE__ */ jsx("rect", { opacity: "0.85", x: "4", y: "3.5", width: "3", height: "3" }),
|
|
36457
|
-
/* @__PURE__ */ jsx("rect", { x: "12", y: "9.5", width: "1", height: "6", fill: "#1B1B1B" }),
|
|
36458
|
-
/* @__PURE__ */ jsx("rect", { x: "12", y: "0.5", width: "1", height: "3", fill: "#1B1B1B" }),
|
|
36459
|
-
/* @__PURE__ */ jsx("rect", { x: "9", y: "3.5", width: "1", height: "3", fill: "#1B1B1B" }),
|
|
36460
|
-
/* @__PURE__ */ jsx("rect", { x: "6", y: "9.5", width: "1", height: "3", fill: "#1B1B1B" }),
|
|
36461
|
-
/* @__PURE__ */ jsx("rect", { y: "0.5", width: "1", height: "15", fill: "#1B1B1B" })
|
|
36462
|
-
]
|
|
36463
|
-
}
|
|
36464
|
-
);
|
|
36465
|
-
const OllamaLogo = ({
|
|
36466
|
-
size: size2,
|
|
36467
|
-
className
|
|
36468
|
-
}) => /* @__PURE__ */ jsxs(
|
|
36469
|
-
"svg",
|
|
36470
|
-
{
|
|
36471
|
-
width: size2,
|
|
36472
|
-
height: size2,
|
|
36473
|
-
viewBox: "0 0 646 854",
|
|
36474
|
-
fill: "currentColor",
|
|
36475
|
-
className,
|
|
36476
|
-
role: "img",
|
|
36477
|
-
"aria-label": "Ollama logo",
|
|
36478
|
-
children: [
|
|
36479
|
-
/* @__PURE__ */ jsx("path", { d: "M140.629 0.239929C132.66 1.52725 123.097 5.69568 116.354 10.845C95.941 26.3541 80.1253 59.2728 73.4435 100.283C70.9302 115.792 69.2138 137.309 69.2138 153.738C69.2138 173.109 71.4819 197.874 74.7309 214.977C75.4665 218.778 75.8343 222.15 75.5278 222.395C75.2826 222.64 72.2788 225.092 68.9072 227.789C57.3827 236.984 44.2029 251.145 35.1304 264.08C17.7209 288.784 6.44151 316.86 1.72133 347.265C-0.117698 359.28 -0.608106 383.555 0.863118 395.57C4.11207 423.278 12.449 446.695 26.7321 468.151L31.391 475.078L30.0424 477.346C20.4794 493.407 12.3264 516.64 8.52575 538.953C5.522 556.608 5.15419 561.328 5.15419 584.99C5.15419 608.837 5.4607 613.557 8.28054 630.047C11.6521 649.786 18.5178 670.689 26.1804 684.605C28.6938 689.141 34.8239 698.581 35.5595 699.072C35.8047 699.194 35.0691 701.462 33.9044 704.098C25.077 723.408 17.537 749.093 14.4106 770.733C12.2038 785.567 11.8973 790.349 11.8973 805.981C11.8973 825.903 13.0007 835.589 17.1692 851.466L17.7822 853.795H44.019H70.3172L68.6007 850.546C57.9957 830.93 57.0149 794.517 66.1487 758.166C70.3172 741.369 75.0374 729.048 83.8647 712.067L89.1366 701.769V695.455C89.1366 689.57 89.014 688.896 87.1137 685.034C85.6424 682.091 83.6808 679.578 80.1866 676.145C74.2404 670.383 69.9494 664.314 66.5165 656.835C51.4365 624.1 48.494 575.489 59.0991 534.049C63.5128 516.762 70.8076 501.376 78.4702 492.978C83.6808 487.215 86.378 480.779 86.378 474.097C86.378 467.17 83.926 461.469 78.4089 455.523C62.5932 438.604 52.8464 418.006 49.3522 394.038C44.3868 359.893 53.3981 322.683 73.8726 293.198C93.9181 264.263 122.055 245.689 153.503 240.724C160.552 239.559 173.732 239.743 181.088 241.092C189.119 242.502 194.145 242.072 199.295 239.62C205.67 236.617 208.858 232.877 212.597 224.295C215.907 216.633 218.482 212.464 225.409 203.821C233.746 193.461 241.776 186.411 254.649 177.89C269.362 168.266 286.097 161.278 302.771 157.906C308.839 156.68 311.659 156.496 323 156.496C334.341 156.496 337.161 156.68 343.229 157.906C367.688 162.872 391.964 175.5 411.335 193.399C415.503 197.261 425.495 209.644 428.683 214.794C429.909 216.816 432.055 221.108 433.403 224.295C437.142 232.877 440.33 236.617 446.705 239.62C451.671 242.011 456.881 242.502 464.605 241.214C476.804 239.13 486.183 239.314 498.137 241.766C538.841 249.98 574.273 283.512 589.966 328.446C603.636 367.862 599.774 409.118 579.422 440.626C575.989 445.96 572.556 450.251 567.591 455.523C556.863 466.986 556.863 481.208 567.53 492.978C585.062 512.165 596.035 559.367 592.724 600.99C590.518 628.453 583.468 653.035 573.782 666.95C572.066 669.402 568.511 673.57 565.813 676.145C562.319 679.578 560.358 682.091 558.886 685.034C556.986 688.896 556.863 689.57 556.863 695.455V701.769L562.135 712.067C570.963 729.048 575.683 741.369 579.851 758.166C588.863 794.027 588.066 829.704 577.767 849.995C576.909 851.711 576.173 853.305 576.173 853.489C576.173 853.673 587.882 853.795 602.226 853.795H628.218L628.892 851.159C629.26 849.75 629.873 847.604 630.179 846.378C630.854 843.681 632.202 835.712 633.306 828.049C634.348 820.325 634.348 791.881 633.306 783.299C629.383 752.158 622.823 727.454 612.096 704.098C610.931 701.462 610.195 699.194 610.44 699.072C610.747 698.888 612.463 696.436 614.302 693.677C627.666 673.448 635.88 648.008 640.049 614.415C641.152 605.158 641.152 565.374 640.049 556.485C637.106 533.559 633.551 517.988 627.666 502.234C625.214 495.675 618.716 481.821 615.958 477.346L614.609 475.078L619.268 468.151C633.551 446.695 641.888 423.278 645.137 395.57C646.608 383.555 646.118 359.28 644.279 347.265C639.497 316.798 628.279 288.845 610.87 264.08C601.797 251.145 588.617 236.984 577.093 227.789C573.721 225.092 570.717 222.64 570.472 222.395C570.166 222.15 570.534 218.778 571.269 214.977C578.687 176.296 578.441 128.053 570.656 90.3524C563.913 57.4951 551.653 31.3808 535.837 16.3008C523.209 4.28578 510.336 -0.863507 494.888 0.11731C459.456 2.20154 430.89 42.9667 419.61 107.21C417.771 117.57 416.178 129.708 416.178 133.018C416.178 134.305 415.932 135.347 415.626 135.347C415.319 135.347 412.929 134.121 410.354 132.589C383.014 116.405 352.608 107.762 323 107.762C293.392 107.762 262.986 116.405 235.646 132.589C233.071 134.121 230.681 135.347 230.374 135.347C230.068 135.347 229.822 134.305 229.822 133.018C229.822 129.585 228.167 117.08 226.39 107.21C216.152 49.5259 192.674 11.3354 161.472 1.71112C157.181 0.423799 144.982 -0.434382 140.629 0.239929ZM151.051 50.139C159.878 57.1273 169.686 77.1114 175.326 99.4863C176.368 103.532 177.471 108.191 177.778 109.907C178.023 111.563 178.697 115.302 179.249 118.183C181.64 131.179 182.743 145.217 182.866 162.32L182.927 179.178L178.697 185.43L174.468 191.744H164.598C153.074 191.744 141.61 193.216 130.637 196.158C126.714 197.139 122.913 198.12 122.178 198.304C121.013 198.549 120.829 198.181 120.155 193.154C116.538 165.875 116.722 135.654 120.707 110.52C125.12 82.5059 135.419 57.1273 145.472 49.6486C147.863 47.8708 148.292 47.9321 151.051 50.139ZM500.589 49.7098C506.658 54.1848 513.34 66.0772 518.305 81.2798C528.297 111.685 531.117 153.431 525.845 193.154C525.171 198.181 524.987 198.549 523.822 198.304C523.087 198.12 519.286 197.139 515.363 196.158C504.39 193.216 492.926 191.744 481.402 191.744H471.532L467.303 185.43L463.073 179.178L463.134 162.32C463.257 138.535 465.464 119.961 470.735 99.3024C476.314 77.1114 486.183 57.1273 494.949 50.139C497.708 47.9321 498.137 47.8708 500.589 49.7098Z" }),
|
|
36480
|
-
/* @__PURE__ */ jsx("path", { d: "M313.498 358.237C300.195 359.525 296.579 360.015 290.203 361.303C279.843 363.448 265.989 368.23 256.365 372.95C222.895 389.317 199.846 416.596 192.796 448.166C191.386 454.419 191.202 456.503 191.202 467.047C191.202 477.468 191.386 479.736 192.735 485.682C202.114 526.938 240.12 557.405 289.284 562.983C299.95 564.148 346.049 564.148 356.715 562.983C396.193 558.508 430.154 537.114 445.418 507.076C449.463 499.046 451.425 493.835 453.264 485.682C454.613 479.736 454.797 477.468 454.797 467.047C454.797 456.503 454.613 454.419 453.203 448.166C442.965 402.313 398.461 366.207 343.903 359.341C336.792 358.483 318.157 357.747 313.498 358.237ZM336.424 391.585C354.631 393.547 372.96 400.045 387.672 409.853C395.58 415.125 406.737 426.159 411.518 433.393C417.403 442.342 420.774 451.476 422.307 462.572C422.981 467.66 422.614 471.522 420.774 479.736C417.893 491.996 408.943 504.808 396.867 513.758C391.227 517.865 379.519 523.812 372.347 526.141C358.738 530.493 349.849 531.29 318.095 531.045C297.376 530.861 293.697 530.677 287.751 529.574C267.461 525.773 251.4 517.681 239.753 505.36C230.312 495.429 226.021 486.357 223.692 471.706C222.65 464.901 224.611 453.622 228.596 444.12C233.439 432.534 245.944 418.129 258.327 409.853C272.671 400.29 291.552 393.486 308.9 391.647C315.582 390.911 329.742 390.911 336.424 391.585Z" }),
|
|
36481
|
-
/* @__PURE__ */ jsx("path", { d: "M299.584 436.336C294.925 438.849 291.676 445.224 292.657 449.944C293.76 455.032 298.235 460.182 305.223 464.412C308.963 466.68 309.208 466.986 309.392 469.254C309.514 470.603 309.024 474.465 308.35 477.898C307.614 481.269 307.062 484.825 307.062 485.806C307.124 488.442 309.576 492.733 312.15 494.817C314.419 496.656 314.848 496.717 321.223 496.901C327.047 497.085 328.273 496.962 330.602 495.859C336.61 492.916 338.142 487.522 335.935 477.162C334.096 468.519 334.464 467.17 339.062 464.534C343.904 461.714 349.054 456.749 350.586 453.377C353.529 446.941 350.831 439.646 344.333 436.274C342.74 435.477 340.778 435.11 337.897 435.11C333.422 435.11 330.541 436.152 325.269 439.523L322.265 441.424L320.365 440.259C312.58 435.661 311.17 435.11 306.449 435.171C303.078 435.171 301.239 435.477 299.584 436.336Z" }),
|
|
36482
|
-
/* @__PURE__ */ jsx("path", { d: "M150.744 365.165C139.894 368.598 131.802 376.567 127.634 387.908C125.611 393.303 124.63 401.824 125.488 406.421C127.511 417.394 136.522 427.386 146.76 430.145C159.633 433.516 169.257 431.309 177.778 422.85C182.743 418.007 185.441 413.777 188.138 406.911C190.099 402.069 190.222 401.211 190.222 394.345L190.283 386.989L187.709 381.717C183.601 373.38 176.184 367.188 167.602 364.92C162.759 363.694 154.974 363.756 150.744 365.165Z" }),
|
|
36483
|
-
/* @__PURE__ */ jsx("path", { d: "M478.153 364.982C469.755 367.25 462.276 373.502 458.291 381.717L455.717 386.989L455.778 394.345C455.778 401.211 455.901 402.069 457.862 406.911C460.56 413.777 463.257 418.007 468.222 422.85C476.743 431.309 486.367 433.516 499.241 430.145C506.658 428.183 514.075 421.93 517.631 414.635C520.696 408.444 521.431 403.969 520.451 396.919C518.183 380.797 508.742 369.089 494.704 364.982C490.597 363.756 482.628 363.756 478.153 364.982Z" })
|
|
36484
|
-
]
|
|
36485
|
-
}
|
|
36486
|
-
);
|
|
36487
|
-
const GeminiLogo = ({
|
|
36488
|
-
size: size2,
|
|
36489
|
-
className
|
|
36490
|
-
}) => /* @__PURE__ */ jsxs(
|
|
36491
|
-
"svg",
|
|
36492
|
-
{
|
|
36493
|
-
width: size2,
|
|
36494
|
-
height: size2,
|
|
36495
|
-
fill: "currentColor",
|
|
36496
|
-
className,
|
|
36497
|
-
role: "img",
|
|
36498
|
-
"aria-label": "Gemini logo",
|
|
36499
|
-
viewBox: "0 0 16 16",
|
|
36500
|
-
children: [
|
|
36501
|
-
/* @__PURE__ */ jsx(
|
|
36502
|
-
"path",
|
|
36503
|
-
{
|
|
36504
|
-
d: "M16 8.016A8.522 8.522 0 008.016 16h-.032A8.521 8.521 0 000 8.016v-.032A8.521 8.521 0 007.984 0h.032A8.522 8.522 0 0016 7.984v.032z",
|
|
36505
|
-
fill: "currentColor"
|
|
36506
|
-
}
|
|
36507
|
-
),
|
|
36508
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
36509
|
-
"radialGradient",
|
|
36510
|
-
{
|
|
36511
|
-
id: "prefix__paint0_radial_980_20147",
|
|
36512
|
-
cx: "0",
|
|
36513
|
-
cy: "0",
|
|
36514
|
-
r: "1",
|
|
36515
|
-
gradientUnits: "userSpaceOnUse",
|
|
36516
|
-
gradientTransform: "matrix(16.1326 5.4553 -43.70045 129.2322 1.588 6.503)",
|
|
36517
|
-
children: [
|
|
36518
|
-
/* @__PURE__ */ jsx("stop", { offset: ".067", stopColor: "currentColor" }),
|
|
36519
|
-
/* @__PURE__ */ jsx("stop", { offset: ".343", stopColor: "currentColor" }),
|
|
36520
|
-
/* @__PURE__ */ jsx("stop", { offset: ".672", stopColor: "currentColor" })
|
|
36521
|
-
]
|
|
36522
|
-
}
|
|
36523
|
-
) })
|
|
36524
|
-
]
|
|
36525
|
-
}
|
|
36526
|
-
);
|
|
36527
36409
|
function r$2(e2) {
|
|
36528
36410
|
var t2, f2, n2 = "";
|
|
36529
36411
|
if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
|
|
@@ -36616,6 +36498,13 @@ const Button3 = React.forwardRef(
|
|
|
36616
36498
|
}
|
|
36617
36499
|
);
|
|
36618
36500
|
Button3.displayName = "Button";
|
|
36501
|
+
function useFeatureFlag(flag) {
|
|
36502
|
+
const evaluatedFeatureFlag = useExtensionAPI().evaluatedFeatureFlag;
|
|
36503
|
+
return useObservable(useMemo(() => evaluatedFeatureFlag(flag), [evaluatedFeatureFlag, flag])).value;
|
|
36504
|
+
}
|
|
36505
|
+
const useExperimentalOneBox = () => {
|
|
36506
|
+
return useFeatureFlag(FeatureFlag.CodyExperimentalOneBox);
|
|
36507
|
+
};
|
|
36619
36508
|
const path$2 = "_path_kr5rq_1";
|
|
36620
36509
|
const excluded = "_excluded_kr5rq_7";
|
|
36621
36510
|
const styles$k = {
|
|
@@ -37710,7 +37599,7 @@ const styles$j = {
|
|
|
37710
37599
|
code: code$3,
|
|
37711
37600
|
small
|
|
37712
37601
|
};
|
|
37713
|
-
const getFontWeightStyle = (weight) => clsx$1(styles$j[`fontWeight${
|
|
37602
|
+
const getFontWeightStyle = (weight) => clsx$1(styles$j[`fontWeight${upperFirst(weight)}`]);
|
|
37714
37603
|
const Code = forwardRef(function Code2({ children: children2, as: Component = "code", size: size2, weight, className, ...props }, reference) {
|
|
37715
37604
|
return /* @__PURE__ */ jsx(
|
|
37716
37605
|
Component,
|
|
@@ -38932,11 +38821,14 @@ const AccordionTrigger = React.forwardRef(({ className, children: children2, ...
|
|
|
38932
38821
|
}
|
|
38933
38822
|
) }));
|
|
38934
38823
|
AccordionTrigger.displayName = Trigger2.displayName;
|
|
38935
|
-
const AccordionContent = React.forwardRef(({ className, children: children2, ...props }, ref2) => /* @__PURE__ */ jsx(
|
|
38824
|
+
const AccordionContent = React.forwardRef(({ className, overflow, children: children2, ...props }, ref2) => /* @__PURE__ */ jsx(
|
|
38936
38825
|
Content2,
|
|
38937
38826
|
{
|
|
38938
38827
|
ref: ref2,
|
|
38939
|
-
className:
|
|
38828
|
+
className: clsx$1(
|
|
38829
|
+
"tw-transition-all data-[state=closed]:tw-animate-accordion-up data-[state=open]:tw-animate-accordion-down",
|
|
38830
|
+
{ "tw-overflow-hidden": !overflow }
|
|
38831
|
+
),
|
|
38940
38832
|
...props,
|
|
38941
38833
|
children: /* @__PURE__ */ jsx("div", { className, children: children2 })
|
|
38942
38834
|
}
|
|
@@ -39057,6 +38949,141 @@ const CodyLogoBW = ({ size: size2, ...props }) => /* @__PURE__ */ jsxs(
|
|
|
39057
38949
|
]
|
|
39058
38950
|
}
|
|
39059
38951
|
);
|
|
38952
|
+
const AnthropicLogo = ({
|
|
38953
|
+
size: size2,
|
|
38954
|
+
className
|
|
38955
|
+
}) => /* @__PURE__ */ jsxs(
|
|
38956
|
+
"svg",
|
|
38957
|
+
{
|
|
38958
|
+
width: size2,
|
|
38959
|
+
height: size2,
|
|
38960
|
+
viewBox: "0 0 16 16",
|
|
38961
|
+
fill: "currentColor",
|
|
38962
|
+
className,
|
|
38963
|
+
role: "img",
|
|
38964
|
+
"aria-label": "Anthropic logo",
|
|
38965
|
+
children: [
|
|
38966
|
+
/* @__PURE__ */ jsx("g", { opacity: "0.8", children: /* @__PURE__ */ jsx("path", { d: "M9.19429 2.62L13.4849 13.3817H15.8378L11.5472 2.62H9.19429Z" }) }),
|
|
38967
|
+
/* @__PURE__ */ jsx("path", { d: "M4.21689 9.12316L5.68499 5.34118L7.15309 9.12316H4.21689ZM4.45491 2.62L0.164993 13.3817H2.56365L3.44101 11.1218H7.92912L8.80633 13.3817H11.205L6.91508 2.62H4.45491Z" })
|
|
38968
|
+
]
|
|
38969
|
+
}
|
|
38970
|
+
);
|
|
38971
|
+
const OpenAILogo = ({
|
|
38972
|
+
size: size2,
|
|
38973
|
+
className
|
|
38974
|
+
}) => /* @__PURE__ */ jsx(
|
|
38975
|
+
"svg",
|
|
38976
|
+
{
|
|
38977
|
+
width: size2,
|
|
38978
|
+
height: size2,
|
|
38979
|
+
viewBox: "0 0 16 16",
|
|
38980
|
+
fill: "currentColor",
|
|
38981
|
+
className,
|
|
38982
|
+
role: "img",
|
|
38983
|
+
"aria-label": "OpenAI logo",
|
|
38984
|
+
children: /* @__PURE__ */ jsx("path", { d: "M14.9447 6.549C15.1264 6.01054 15.1895 5.43914 15.1296 4.87402C15.0697 4.30889 14.8882 3.76341 14.5977 3.275C14.1605 2.53124 13.5001 1.94411 12.7102 1.59694C11.9204 1.24978 11.0413 1.16023 10.1977 1.341C9.81322 0.915096 9.34294 0.575409 8.81777 0.344282C8.29261 0.113154 7.72446 -0.00417854 7.1507 1.05051e-06C5.3737 -0.00499895 3.7997 1.123 3.2537 2.79C2.69181 2.90236 2.16027 3.13301 1.6944 3.46664C1.22853 3.80026 0.839002 4.22922 0.5517 4.725C0.117396 5.46264 -0.0681712 6.32039 0.022404 7.17159C0.112979 8.02278 0.474895 8.82227 1.0547 9.452C0.873003 9.99046 0.809939 10.5619 0.869834 11.127C0.92973 11.6921 1.11117 12.2376 1.4017 12.726C1.83893 13.4698 2.49933 14.0569 3.28916 14.4041C4.07898 14.7512 4.9581 14.8408 5.8017 14.66C6.18615 15.0859 6.65645 15.4255 7.18164 15.6564C7.70683 15.8874 8.27499 16.0045 8.8487 16C10.6257 16.004 12.2017 14.875 12.7487 13.207C13.3101 13.0945 13.8412 12.8639 14.3067 12.5304C14.7722 12.197 15.1615 11.7684 15.4487 11.273C15.8824 10.5355 16.0676 9.67821 15.977 8.82749C15.8865 7.97676 15.5249 7.17765 14.9457 6.548L14.9447 6.549ZM8.8497 14.954C8.1397 14.955 7.4497 14.71 6.9047 14.26C6.9297 14.247 6.9727 14.224 7.0007 14.207L10.2297 12.367C10.3104 12.3219 10.3776 12.256 10.4242 12.1762C10.4708 12.0963 10.4952 12.0055 10.4947 11.913V7.422L11.8597 8.199C11.8668 8.20248 11.8729 8.2077 11.8774 8.21417C11.882 8.22064 11.8848 8.22814 11.8857 8.236V11.956C11.8837 13.61 10.5257 14.951 8.8497 14.954ZM2.3217 12.203C1.96538 11.5975 1.83667 10.8849 1.9587 10.193L2.0547 10.25L5.2847 12.09C5.36534 12.1363 5.45671 12.1607 5.5497 12.1607C5.64269 12.1607 5.73406 12.1363 5.8147 12.09L9.7557 9.844V11.4C9.75614 11.408 9.75464 11.416 9.75133 11.4233C9.74802 11.4306 9.74301 11.437 9.7367 11.442L6.4737 13.3C5.0207 14.125 3.1637 13.634 2.3237 12.202H2.3227L2.3217 12.203ZM1.4717 5.248C1.82875 4.63854 2.38821 4.17356 3.0527 3.934L3.0517 4.044V7.724C3.0507 7.911 3.1517 8.084 3.3167 8.177L7.2587 10.423L5.8937 11.2C5.88695 11.2044 5.87922 11.2071 5.8712 11.2078C5.86318 11.2085 5.85511 11.2072 5.8477 11.204L2.5837 9.344C2.23971 9.1502 1.93766 8.88998 1.6951 8.57845C1.45254 8.26691 1.2743 7.91029 1.17075 7.52928C1.06719 7.14828 1.04038 6.75049 1.09187 6.35904C1.14337 5.96758 1.27214 5.59026 1.4707 5.249L1.4717 5.248ZM12.6837 7.823L8.7417 5.577L10.1067 4.8C10.1134 4.79561 10.1212 4.79294 10.1292 4.79224C10.1372 4.79155 10.1453 4.79284 10.1527 4.796L13.4167 6.656C13.7609 6.84969 14.0632 7.10992 14.3059 7.42154C14.5486 7.73317 14.7269 8.08996 14.8304 8.47115C14.9339 8.85234 14.9605 9.25031 14.9087 9.64189C14.8569 10.0335 14.7277 10.4108 14.5287 10.752C14.1711 11.361 13.6119 11.8258 12.9477 12.066V8.276C12.9482 8.18379 12.924 8.09314 12.8775 8.01347C12.8311 7.9338 12.7642 7.86803 12.6837 7.823ZM14.0417 5.806C14.0099 5.78659 13.9779 5.76759 13.9457 5.749L10.7167 3.909C10.6361 3.86268 10.5447 3.8383 10.4517 3.8383C10.3587 3.8383 10.2673 3.86268 10.1867 3.909L6.2437 6.155V4.6C6.24354 4.59207 6.24527 4.58422 6.24875 4.57709C6.25223 4.56996 6.25735 4.56376 6.2637 4.559L9.5267 2.7C10.9807 1.872 12.8387 2.365 13.6767 3.8C14.0317 4.406 14.1597 5.115 14.0397 5.805L14.0417 5.806ZM5.5027 8.577L4.1377 7.8C4.1306 7.79652 4.1245 7.7913 4.11996 7.78483C4.11541 7.77837 4.11257 7.77086 4.1117 7.763V4.043C4.1117 2.387 5.4737 1.045 7.1517 1.046C7.8617 1.046 8.5487 1.292 9.0947 1.74C9.06227 1.75722 9.03026 1.77523 8.9987 1.794L5.7707 3.634C5.68986 3.67877 5.62253 3.74443 5.57574 3.82412C5.52895 3.9038 5.50441 3.99459 5.5047 4.087L5.5027 8.577ZM6.2437 7L7.9997 6L9.7557 7V9L7.9997 10L6.2437 9V7Z" })
|
|
38985
|
+
}
|
|
38986
|
+
);
|
|
38987
|
+
const MistralLogo = ({
|
|
38988
|
+
size: size2,
|
|
38989
|
+
className
|
|
38990
|
+
}) => /* @__PURE__ */ jsxs(
|
|
38991
|
+
"svg",
|
|
38992
|
+
{
|
|
38993
|
+
width: size2,
|
|
38994
|
+
height: size2,
|
|
38995
|
+
viewBox: "0 0 16 16",
|
|
38996
|
+
fill: "currentColor",
|
|
38997
|
+
className,
|
|
38998
|
+
role: "img",
|
|
38999
|
+
"aria-label": "Mistral logo",
|
|
39000
|
+
children: [
|
|
39001
|
+
/* @__PURE__ */ jsx("rect", { x: "13", y: "0.5", width: "3", height: "3" }),
|
|
39002
|
+
/* @__PURE__ */ jsx("rect", { x: "1", y: "0.5", width: "3", height: "3" }),
|
|
39003
|
+
/* @__PURE__ */ jsx("rect", { opacity: "0.85", x: "13", y: "3.5", width: "3", height: "3" }),
|
|
39004
|
+
/* @__PURE__ */ jsx("rect", { x: "13", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
39005
|
+
/* @__PURE__ */ jsx("rect", { x: "10", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
39006
|
+
/* @__PURE__ */ jsx("rect", { x: "7", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
39007
|
+
/* @__PURE__ */ jsx("rect", { x: "4", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
39008
|
+
/* @__PURE__ */ jsx("rect", { x: "1", y: "6.5", width: "3", height: "3", fillOpacity: "0.7" }),
|
|
39009
|
+
/* @__PURE__ */ jsx("rect", { x: "1", y: "9.5", width: "3", height: "3", fillOpacity: "0.55" }),
|
|
39010
|
+
/* @__PURE__ */ jsx("rect", { x: "7", y: "9.5", width: "3", height: "3", fillOpacity: "0.55" }),
|
|
39011
|
+
/* @__PURE__ */ jsx("rect", { x: "13", y: "9.5", width: "3", height: "3", fillOpacity: "0.55" }),
|
|
39012
|
+
/* @__PURE__ */ jsx("rect", { x: "13", y: "12.5", width: "3", height: "3", fillOpacity: "0.4" }),
|
|
39013
|
+
/* @__PURE__ */ jsx("rect", { x: "1", y: "12.5", width: "3", height: "3", fillOpacity: "0.4" }),
|
|
39014
|
+
/* @__PURE__ */ jsx("rect", { opacity: "0.85", x: "10", y: "3.5", width: "3", height: "3" }),
|
|
39015
|
+
/* @__PURE__ */ jsx("rect", { opacity: "0.85", x: "1", y: "3.5", width: "3", height: "3" }),
|
|
39016
|
+
/* @__PURE__ */ jsx("rect", { opacity: "0.85", x: "4", y: "3.5", width: "3", height: "3" }),
|
|
39017
|
+
/* @__PURE__ */ jsx("rect", { x: "12", y: "9.5", width: "1", height: "6", fill: "#1B1B1B" }),
|
|
39018
|
+
/* @__PURE__ */ jsx("rect", { x: "12", y: "0.5", width: "1", height: "3", fill: "#1B1B1B" }),
|
|
39019
|
+
/* @__PURE__ */ jsx("rect", { x: "9", y: "3.5", width: "1", height: "3", fill: "#1B1B1B" }),
|
|
39020
|
+
/* @__PURE__ */ jsx("rect", { x: "6", y: "9.5", width: "1", height: "3", fill: "#1B1B1B" }),
|
|
39021
|
+
/* @__PURE__ */ jsx("rect", { y: "0.5", width: "1", height: "15", fill: "#1B1B1B" })
|
|
39022
|
+
]
|
|
39023
|
+
}
|
|
39024
|
+
);
|
|
39025
|
+
const OllamaLogo = ({
|
|
39026
|
+
size: size2,
|
|
39027
|
+
className
|
|
39028
|
+
}) => /* @__PURE__ */ jsxs(
|
|
39029
|
+
"svg",
|
|
39030
|
+
{
|
|
39031
|
+
width: size2,
|
|
39032
|
+
height: size2,
|
|
39033
|
+
viewBox: "0 0 646 854",
|
|
39034
|
+
fill: "currentColor",
|
|
39035
|
+
className,
|
|
39036
|
+
role: "img",
|
|
39037
|
+
"aria-label": "Ollama logo",
|
|
39038
|
+
children: [
|
|
39039
|
+
/* @__PURE__ */ jsx("path", { d: "M140.629 0.239929C132.66 1.52725 123.097 5.69568 116.354 10.845C95.941 26.3541 80.1253 59.2728 73.4435 100.283C70.9302 115.792 69.2138 137.309 69.2138 153.738C69.2138 173.109 71.4819 197.874 74.7309 214.977C75.4665 218.778 75.8343 222.15 75.5278 222.395C75.2826 222.64 72.2788 225.092 68.9072 227.789C57.3827 236.984 44.2029 251.145 35.1304 264.08C17.7209 288.784 6.44151 316.86 1.72133 347.265C-0.117698 359.28 -0.608106 383.555 0.863118 395.57C4.11207 423.278 12.449 446.695 26.7321 468.151L31.391 475.078L30.0424 477.346C20.4794 493.407 12.3264 516.64 8.52575 538.953C5.522 556.608 5.15419 561.328 5.15419 584.99C5.15419 608.837 5.4607 613.557 8.28054 630.047C11.6521 649.786 18.5178 670.689 26.1804 684.605C28.6938 689.141 34.8239 698.581 35.5595 699.072C35.8047 699.194 35.0691 701.462 33.9044 704.098C25.077 723.408 17.537 749.093 14.4106 770.733C12.2038 785.567 11.8973 790.349 11.8973 805.981C11.8973 825.903 13.0007 835.589 17.1692 851.466L17.7822 853.795H44.019H70.3172L68.6007 850.546C57.9957 830.93 57.0149 794.517 66.1487 758.166C70.3172 741.369 75.0374 729.048 83.8647 712.067L89.1366 701.769V695.455C89.1366 689.57 89.014 688.896 87.1137 685.034C85.6424 682.091 83.6808 679.578 80.1866 676.145C74.2404 670.383 69.9494 664.314 66.5165 656.835C51.4365 624.1 48.494 575.489 59.0991 534.049C63.5128 516.762 70.8076 501.376 78.4702 492.978C83.6808 487.215 86.378 480.779 86.378 474.097C86.378 467.17 83.926 461.469 78.4089 455.523C62.5932 438.604 52.8464 418.006 49.3522 394.038C44.3868 359.893 53.3981 322.683 73.8726 293.198C93.9181 264.263 122.055 245.689 153.503 240.724C160.552 239.559 173.732 239.743 181.088 241.092C189.119 242.502 194.145 242.072 199.295 239.62C205.67 236.617 208.858 232.877 212.597 224.295C215.907 216.633 218.482 212.464 225.409 203.821C233.746 193.461 241.776 186.411 254.649 177.89C269.362 168.266 286.097 161.278 302.771 157.906C308.839 156.68 311.659 156.496 323 156.496C334.341 156.496 337.161 156.68 343.229 157.906C367.688 162.872 391.964 175.5 411.335 193.399C415.503 197.261 425.495 209.644 428.683 214.794C429.909 216.816 432.055 221.108 433.403 224.295C437.142 232.877 440.33 236.617 446.705 239.62C451.671 242.011 456.881 242.502 464.605 241.214C476.804 239.13 486.183 239.314 498.137 241.766C538.841 249.98 574.273 283.512 589.966 328.446C603.636 367.862 599.774 409.118 579.422 440.626C575.989 445.96 572.556 450.251 567.591 455.523C556.863 466.986 556.863 481.208 567.53 492.978C585.062 512.165 596.035 559.367 592.724 600.99C590.518 628.453 583.468 653.035 573.782 666.95C572.066 669.402 568.511 673.57 565.813 676.145C562.319 679.578 560.358 682.091 558.886 685.034C556.986 688.896 556.863 689.57 556.863 695.455V701.769L562.135 712.067C570.963 729.048 575.683 741.369 579.851 758.166C588.863 794.027 588.066 829.704 577.767 849.995C576.909 851.711 576.173 853.305 576.173 853.489C576.173 853.673 587.882 853.795 602.226 853.795H628.218L628.892 851.159C629.26 849.75 629.873 847.604 630.179 846.378C630.854 843.681 632.202 835.712 633.306 828.049C634.348 820.325 634.348 791.881 633.306 783.299C629.383 752.158 622.823 727.454 612.096 704.098C610.931 701.462 610.195 699.194 610.44 699.072C610.747 698.888 612.463 696.436 614.302 693.677C627.666 673.448 635.88 648.008 640.049 614.415C641.152 605.158 641.152 565.374 640.049 556.485C637.106 533.559 633.551 517.988 627.666 502.234C625.214 495.675 618.716 481.821 615.958 477.346L614.609 475.078L619.268 468.151C633.551 446.695 641.888 423.278 645.137 395.57C646.608 383.555 646.118 359.28 644.279 347.265C639.497 316.798 628.279 288.845 610.87 264.08C601.797 251.145 588.617 236.984 577.093 227.789C573.721 225.092 570.717 222.64 570.472 222.395C570.166 222.15 570.534 218.778 571.269 214.977C578.687 176.296 578.441 128.053 570.656 90.3524C563.913 57.4951 551.653 31.3808 535.837 16.3008C523.209 4.28578 510.336 -0.863507 494.888 0.11731C459.456 2.20154 430.89 42.9667 419.61 107.21C417.771 117.57 416.178 129.708 416.178 133.018C416.178 134.305 415.932 135.347 415.626 135.347C415.319 135.347 412.929 134.121 410.354 132.589C383.014 116.405 352.608 107.762 323 107.762C293.392 107.762 262.986 116.405 235.646 132.589C233.071 134.121 230.681 135.347 230.374 135.347C230.068 135.347 229.822 134.305 229.822 133.018C229.822 129.585 228.167 117.08 226.39 107.21C216.152 49.5259 192.674 11.3354 161.472 1.71112C157.181 0.423799 144.982 -0.434382 140.629 0.239929ZM151.051 50.139C159.878 57.1273 169.686 77.1114 175.326 99.4863C176.368 103.532 177.471 108.191 177.778 109.907C178.023 111.563 178.697 115.302 179.249 118.183C181.64 131.179 182.743 145.217 182.866 162.32L182.927 179.178L178.697 185.43L174.468 191.744H164.598C153.074 191.744 141.61 193.216 130.637 196.158C126.714 197.139 122.913 198.12 122.178 198.304C121.013 198.549 120.829 198.181 120.155 193.154C116.538 165.875 116.722 135.654 120.707 110.52C125.12 82.5059 135.419 57.1273 145.472 49.6486C147.863 47.8708 148.292 47.9321 151.051 50.139ZM500.589 49.7098C506.658 54.1848 513.34 66.0772 518.305 81.2798C528.297 111.685 531.117 153.431 525.845 193.154C525.171 198.181 524.987 198.549 523.822 198.304C523.087 198.12 519.286 197.139 515.363 196.158C504.39 193.216 492.926 191.744 481.402 191.744H471.532L467.303 185.43L463.073 179.178L463.134 162.32C463.257 138.535 465.464 119.961 470.735 99.3024C476.314 77.1114 486.183 57.1273 494.949 50.139C497.708 47.9321 498.137 47.8708 500.589 49.7098Z" }),
|
|
39040
|
+
/* @__PURE__ */ jsx("path", { d: "M313.498 358.237C300.195 359.525 296.579 360.015 290.203 361.303C279.843 363.448 265.989 368.23 256.365 372.95C222.895 389.317 199.846 416.596 192.796 448.166C191.386 454.419 191.202 456.503 191.202 467.047C191.202 477.468 191.386 479.736 192.735 485.682C202.114 526.938 240.12 557.405 289.284 562.983C299.95 564.148 346.049 564.148 356.715 562.983C396.193 558.508 430.154 537.114 445.418 507.076C449.463 499.046 451.425 493.835 453.264 485.682C454.613 479.736 454.797 477.468 454.797 467.047C454.797 456.503 454.613 454.419 453.203 448.166C442.965 402.313 398.461 366.207 343.903 359.341C336.792 358.483 318.157 357.747 313.498 358.237ZM336.424 391.585C354.631 393.547 372.96 400.045 387.672 409.853C395.58 415.125 406.737 426.159 411.518 433.393C417.403 442.342 420.774 451.476 422.307 462.572C422.981 467.66 422.614 471.522 420.774 479.736C417.893 491.996 408.943 504.808 396.867 513.758C391.227 517.865 379.519 523.812 372.347 526.141C358.738 530.493 349.849 531.29 318.095 531.045C297.376 530.861 293.697 530.677 287.751 529.574C267.461 525.773 251.4 517.681 239.753 505.36C230.312 495.429 226.021 486.357 223.692 471.706C222.65 464.901 224.611 453.622 228.596 444.12C233.439 432.534 245.944 418.129 258.327 409.853C272.671 400.29 291.552 393.486 308.9 391.647C315.582 390.911 329.742 390.911 336.424 391.585Z" }),
|
|
39041
|
+
/* @__PURE__ */ jsx("path", { d: "M299.584 436.336C294.925 438.849 291.676 445.224 292.657 449.944C293.76 455.032 298.235 460.182 305.223 464.412C308.963 466.68 309.208 466.986 309.392 469.254C309.514 470.603 309.024 474.465 308.35 477.898C307.614 481.269 307.062 484.825 307.062 485.806C307.124 488.442 309.576 492.733 312.15 494.817C314.419 496.656 314.848 496.717 321.223 496.901C327.047 497.085 328.273 496.962 330.602 495.859C336.61 492.916 338.142 487.522 335.935 477.162C334.096 468.519 334.464 467.17 339.062 464.534C343.904 461.714 349.054 456.749 350.586 453.377C353.529 446.941 350.831 439.646 344.333 436.274C342.74 435.477 340.778 435.11 337.897 435.11C333.422 435.11 330.541 436.152 325.269 439.523L322.265 441.424L320.365 440.259C312.58 435.661 311.17 435.11 306.449 435.171C303.078 435.171 301.239 435.477 299.584 436.336Z" }),
|
|
39042
|
+
/* @__PURE__ */ jsx("path", { d: "M150.744 365.165C139.894 368.598 131.802 376.567 127.634 387.908C125.611 393.303 124.63 401.824 125.488 406.421C127.511 417.394 136.522 427.386 146.76 430.145C159.633 433.516 169.257 431.309 177.778 422.85C182.743 418.007 185.441 413.777 188.138 406.911C190.099 402.069 190.222 401.211 190.222 394.345L190.283 386.989L187.709 381.717C183.601 373.38 176.184 367.188 167.602 364.92C162.759 363.694 154.974 363.756 150.744 365.165Z" }),
|
|
39043
|
+
/* @__PURE__ */ jsx("path", { d: "M478.153 364.982C469.755 367.25 462.276 373.502 458.291 381.717L455.717 386.989L455.778 394.345C455.778 401.211 455.901 402.069 457.862 406.911C460.56 413.777 463.257 418.007 468.222 422.85C476.743 431.309 486.367 433.516 499.241 430.145C506.658 428.183 514.075 421.93 517.631 414.635C520.696 408.444 521.431 403.969 520.451 396.919C518.183 380.797 508.742 369.089 494.704 364.982C490.597 363.756 482.628 363.756 478.153 364.982Z" })
|
|
39044
|
+
]
|
|
39045
|
+
}
|
|
39046
|
+
);
|
|
39047
|
+
const GeminiLogo = ({
|
|
39048
|
+
size: size2,
|
|
39049
|
+
className
|
|
39050
|
+
}) => /* @__PURE__ */ jsxs(
|
|
39051
|
+
"svg",
|
|
39052
|
+
{
|
|
39053
|
+
width: size2,
|
|
39054
|
+
height: size2,
|
|
39055
|
+
fill: "currentColor",
|
|
39056
|
+
className,
|
|
39057
|
+
role: "img",
|
|
39058
|
+
"aria-label": "Gemini logo",
|
|
39059
|
+
viewBox: "0 0 16 16",
|
|
39060
|
+
children: [
|
|
39061
|
+
/* @__PURE__ */ jsx(
|
|
39062
|
+
"path",
|
|
39063
|
+
{
|
|
39064
|
+
d: "M16 8.016A8.522 8.522 0 008.016 16h-.032A8.521 8.521 0 000 8.016v-.032A8.521 8.521 0 007.984 0h.032A8.522 8.522 0 0016 7.984v.032z",
|
|
39065
|
+
fill: "currentColor"
|
|
39066
|
+
}
|
|
39067
|
+
),
|
|
39068
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
39069
|
+
"radialGradient",
|
|
39070
|
+
{
|
|
39071
|
+
id: "prefix__paint0_radial_980_20147",
|
|
39072
|
+
cx: "0",
|
|
39073
|
+
cy: "0",
|
|
39074
|
+
r: "1",
|
|
39075
|
+
gradientUnits: "userSpaceOnUse",
|
|
39076
|
+
gradientTransform: "matrix(16.1326 5.4553 -43.70045 129.2322 1.588 6.503)",
|
|
39077
|
+
children: [
|
|
39078
|
+
/* @__PURE__ */ jsx("stop", { offset: ".067", stopColor: "currentColor" }),
|
|
39079
|
+
/* @__PURE__ */ jsx("stop", { offset: ".343", stopColor: "currentColor" }),
|
|
39080
|
+
/* @__PURE__ */ jsx("stop", { offset: ".672", stopColor: "currentColor" })
|
|
39081
|
+
]
|
|
39082
|
+
}
|
|
39083
|
+
) })
|
|
39084
|
+
]
|
|
39085
|
+
}
|
|
39086
|
+
);
|
|
39060
39087
|
function chatModelIconComponent(model) {
|
|
39061
39088
|
model = model.toLowerCase();
|
|
39062
39089
|
if (model.startsWith("openai") || model.includes("gpt")) {
|
|
@@ -80261,10 +80288,7 @@ const ContextCell = memo(
|
|
|
80261
80288
|
}
|
|
80262
80289
|
}
|
|
80263
80290
|
const itemCount = usedContext.length;
|
|
80264
|
-
const contextItemCountLabel = `${itemCount} ${!isForFirstMessage ? "new " : ""}${pluralize$1(
|
|
80265
|
-
"item",
|
|
80266
|
-
itemCount
|
|
80267
|
-
)}`;
|
|
80291
|
+
const contextItemCountLabel = itemCount === 0 ? "fetching..." : `${itemCount} ${!isForFirstMessage ? "new " : ""}${pluralize$1("item", itemCount)}`;
|
|
80268
80292
|
function logContextOpening() {
|
|
80269
80293
|
getVSCodeAPI().postMessage({
|
|
80270
80294
|
command: "event",
|
|
@@ -80282,7 +80306,7 @@ const ContextCell = memo(
|
|
|
80282
80306
|
Accordion,
|
|
80283
80307
|
{
|
|
80284
80308
|
type: "single",
|
|
80285
|
-
collapsible:
|
|
80309
|
+
collapsible: !showSnippets,
|
|
80286
80310
|
defaultValue: (__storybook__initialOpen || defaultOpen) && "item-1" || void 0,
|
|
80287
80311
|
asChild: true,
|
|
80288
80312
|
children: /* @__PURE__ */ jsx(AccordionItem, { value: "item-1", asChild: true, children: /* @__PURE__ */ jsx(
|
|
@@ -80316,7 +80340,7 @@ const ContextCell = memo(
|
|
|
80316
80340
|
containerClassName: className,
|
|
80317
80341
|
contentClassName: "tw-flex tw-flex-col tw-gap-4 tw-max-w-full",
|
|
80318
80342
|
"data-testid": "context",
|
|
80319
|
-
children: contextItems === void 0 ? /* @__PURE__ */ jsx(LoadingDots, {}) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(AccordionContent, { children: [
|
|
80343
|
+
children: contextItems === void 0 ? /* @__PURE__ */ jsx(LoadingDots, {}) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(AccordionContent, { overflow: showSnippets, children: [
|
|
80320
80344
|
internalDebugContext && contextAlternatives && /* @__PURE__ */ jsxs("div", { children: [
|
|
80321
80345
|
/* @__PURE__ */ jsx("button", { onClick: prevSelectedAlternative, type: "button", children: "←" }),
|
|
80322
80346
|
/* @__PURE__ */ jsx("button", { onClick: nextSelectedAlternative, type: "button", children: "→" }),
|
|
@@ -81212,13 +81236,14 @@ const PromptList = ({
|
|
|
81212
81236
|
const { value: result2, error: error2 } = usePromptsQuery(debouncedQuery);
|
|
81213
81237
|
const onSelect = useCallback(
|
|
81214
81238
|
(rowValue) => {
|
|
81215
|
-
var _a, _b, _c;
|
|
81239
|
+
var _a, _b, _c, _d;
|
|
81216
81240
|
const prompt = (result2 == null ? void 0 : result2.prompts.type) === "results" ? result2.prompts.results.find(
|
|
81217
81241
|
(p2) => commandRowValue({ type: "prompt", value: p2 }) === rowValue
|
|
81218
81242
|
) : void 0;
|
|
81219
|
-
const
|
|
81243
|
+
const standardPromptCommand = prompt === void 0 ? (_a = result2 == null ? void 0 : result2.standardPrompts) == null ? void 0 : _a.find(
|
|
81220
81244
|
(c2) => commandRowValue({ type: "command", value: c2 }) === rowValue
|
|
81221
81245
|
) : void 0;
|
|
81246
|
+
const codyCommand = standardPromptCommand ?? ((_b = result2 == null ? void 0 : result2.commands) == null ? void 0 : _b.find((c2) => commandRowValue({ type: "command", value: c2 }) === rowValue));
|
|
81222
81247
|
const entry = prompt ? { type: "prompt", value: prompt } : codyCommand ? { type: "command", value: codyCommand } : void 0;
|
|
81223
81248
|
if (!entry) {
|
|
81224
81249
|
return;
|
|
@@ -81239,9 +81264,9 @@ const PromptList = ({
|
|
|
81239
81264
|
telemetryRecorder.recordEvent("cody.promptList", "query", {
|
|
81240
81265
|
metadata: {
|
|
81241
81266
|
queryLength: debouncedQuery.length,
|
|
81242
|
-
resultCount: (result2.prompts.type === "results" ? result2.prompts.results.length : 0) + (((
|
|
81267
|
+
resultCount: (result2.prompts.type === "results" ? result2.prompts.results.length : 0) + (((_c = result2.commands) == null ? void 0 : _c.length) ?? 0),
|
|
81243
81268
|
resultCountPromptsOnly: result2.prompts.type === "results" ? result2.prompts.results.length : 0,
|
|
81244
|
-
resultCountCommandsOnly: ((
|
|
81269
|
+
resultCountCommandsOnly: ((_d = result2.commands) == null ? void 0 : _d.length) ?? 0,
|
|
81245
81270
|
supportsPrompts: result2.prompts.type !== "unsupported" ? 1 : 0,
|
|
81246
81271
|
hasUsePromptsQueryError: error2 ? 1 : 0,
|
|
81247
81272
|
hasPromptsResultError: result2.prompts.type === "error" ? 1 : 0,
|
|
@@ -81368,6 +81393,16 @@ const PromptList = ({
|
|
|
81368
81393
|
]
|
|
81369
81394
|
}
|
|
81370
81395
|
),
|
|
81396
|
+
!showOnlyPromptInsertableCommands && (result2 == null ? void 0 : result2.standardPrompts) && result2.standardPrompts.length > 0 && /* @__PURE__ */ jsx(CommandGroup, { heading: /* @__PURE__ */ jsx("span", { children: "Standard Prompts" }), children: result2.standardPrompts.map((command) => /* @__PURE__ */ jsx(
|
|
81397
|
+
CodyCommandItem,
|
|
81398
|
+
{
|
|
81399
|
+
command,
|
|
81400
|
+
onSelect,
|
|
81401
|
+
selectActionLabel: onSelectActionLabels == null ? void 0 : onSelectActionLabels.prompt,
|
|
81402
|
+
showCommandOrigins: false
|
|
81403
|
+
},
|
|
81404
|
+
command.key
|
|
81405
|
+
)) }),
|
|
81371
81406
|
result2 && filteredCommands && filteredCommands.length > 0 && /* @__PURE__ */ jsx(
|
|
81372
81407
|
CommandGroup,
|
|
81373
81408
|
{
|
|
@@ -81548,6 +81583,57 @@ const PromptSelectField = ({ onSelect, onCloseByEscape, className, __storybook__
|
|
|
81548
81583
|
}
|
|
81549
81584
|
);
|
|
81550
81585
|
};
|
|
81586
|
+
const PromptsTab = ({ setView }) => {
|
|
81587
|
+
const dispatchClientAction = useClientActionDispatcher();
|
|
81588
|
+
return /* @__PURE__ */ jsx("div", { className: "tw-overflow-auto tw-p-8", children: /* @__PURE__ */ jsx(
|
|
81589
|
+
PromptListSuitedForNonPopover,
|
|
81590
|
+
{
|
|
81591
|
+
onSelect: (item2) => onPromptSelectInPanel(item2, setView, dispatchClientAction),
|
|
81592
|
+
onSelectActionLabels: onPromptSelectInPanelActionLabels,
|
|
81593
|
+
showCommandOrigins: true,
|
|
81594
|
+
showPromptLibraryUnsupportedMessage: true,
|
|
81595
|
+
showOnlyPromptInsertableCommands: false,
|
|
81596
|
+
telemetryLocation: "PromptsTab",
|
|
81597
|
+
className: "tw-border tw-border-border"
|
|
81598
|
+
}
|
|
81599
|
+
) });
|
|
81600
|
+
};
|
|
81601
|
+
function onPromptSelectInPanel(item2, setView, dispatchClientAction) {
|
|
81602
|
+
switch (item2.type) {
|
|
81603
|
+
case "prompt": {
|
|
81604
|
+
setView(View.Chat);
|
|
81605
|
+
dispatchClientAction(
|
|
81606
|
+
{ appendTextToLastPromptEditor: item2.value.definition.text },
|
|
81607
|
+
// Buffer because PromptEditor is not guaranteed to be mounted after the `setView`
|
|
81608
|
+
// call above, and it needs to be mounted to receive the action.
|
|
81609
|
+
{ buffer: true }
|
|
81610
|
+
);
|
|
81611
|
+
break;
|
|
81612
|
+
}
|
|
81613
|
+
case "command": {
|
|
81614
|
+
if (item2.value.slashCommand) {
|
|
81615
|
+
getVSCodeAPI().postMessage({
|
|
81616
|
+
command: "command",
|
|
81617
|
+
id: item2.value.slashCommand
|
|
81618
|
+
});
|
|
81619
|
+
} else {
|
|
81620
|
+
getVSCodeAPI().postMessage({
|
|
81621
|
+
command: "command",
|
|
81622
|
+
id: "cody.action.command",
|
|
81623
|
+
arg: item2.value.key
|
|
81624
|
+
});
|
|
81625
|
+
}
|
|
81626
|
+
if (item2.value.mode === "ask" && item2.value.type === "default") {
|
|
81627
|
+
setView(View.Chat);
|
|
81628
|
+
}
|
|
81629
|
+
break;
|
|
81630
|
+
}
|
|
81631
|
+
}
|
|
81632
|
+
}
|
|
81633
|
+
const onPromptSelectInPanelActionLabels = {
|
|
81634
|
+
command: "run",
|
|
81635
|
+
prompt: "insert"
|
|
81636
|
+
};
|
|
81551
81637
|
const isMac = isMacOS();
|
|
81552
81638
|
function keyTextOrSvg(key) {
|
|
81553
81639
|
const iconClassName = "tw-w-[1em] tw-h-[1em]";
|
|
@@ -81649,7 +81735,8 @@ function CodyIcon({ className }) {
|
|
|
81649
81735
|
] })
|
|
81650
81736
|
);
|
|
81651
81737
|
}
|
|
81652
|
-
const SubmitButton = ({ onClick, state = "submittable", className
|
|
81738
|
+
const SubmitButton = ({ onClick, state = "submittable", className }) => {
|
|
81739
|
+
const experimentalOneBoxEnabled = useExperimentalOneBox();
|
|
81653
81740
|
if (state === "waitingResponseComplete") {
|
|
81654
81741
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
81655
81742
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
@@ -81818,10 +81905,8 @@ const Toolbar = ({
|
|
|
81818
81905
|
submitState,
|
|
81819
81906
|
onGapClick,
|
|
81820
81907
|
focusEditor,
|
|
81821
|
-
appendTextToEditor,
|
|
81822
81908
|
hidden: hidden2,
|
|
81823
|
-
className
|
|
81824
|
-
experimentalOneBoxEnabled
|
|
81909
|
+
className
|
|
81825
81910
|
}) => {
|
|
81826
81911
|
const onMaybeGapClick = useCallback(
|
|
81827
81912
|
(event) => {
|
|
@@ -81857,14 +81942,7 @@ const Toolbar = ({
|
|
|
81857
81942
|
className: "tw-opacity-60 focus-visible:tw-opacity-100 hover:tw-opacity-100 tw-mr-2"
|
|
81858
81943
|
}
|
|
81859
81944
|
),
|
|
81860
|
-
/* @__PURE__ */ jsx(
|
|
81861
|
-
PromptSelectFieldToolbarItem,
|
|
81862
|
-
{
|
|
81863
|
-
focusEditor,
|
|
81864
|
-
appendTextToEditor,
|
|
81865
|
-
className: "tw-ml-1 tw-mr-1"
|
|
81866
|
-
}
|
|
81867
|
-
),
|
|
81945
|
+
/* @__PURE__ */ jsx(PromptSelectFieldToolbarItem, { focusEditor, className: "tw-ml-1 tw-mr-1" }),
|
|
81868
81946
|
/* @__PURE__ */ jsx(
|
|
81869
81947
|
ModelSelectFieldToolbarItem,
|
|
81870
81948
|
{
|
|
@@ -81879,8 +81957,7 @@ const Toolbar = ({
|
|
|
81879
81957
|
{
|
|
81880
81958
|
onClick: onSubmitClick,
|
|
81881
81959
|
isEditorFocused,
|
|
81882
|
-
state: submitState
|
|
81883
|
-
experimentalOneBoxEnabled
|
|
81960
|
+
state: submitState
|
|
81884
81961
|
}
|
|
81885
81962
|
) })
|
|
81886
81963
|
]
|
|
@@ -81888,13 +81965,15 @@ const Toolbar = ({
|
|
|
81888
81965
|
)
|
|
81889
81966
|
);
|
|
81890
81967
|
};
|
|
81891
|
-
const PromptSelectFieldToolbarItem = ({ focusEditor,
|
|
81968
|
+
const PromptSelectFieldToolbarItem = ({ focusEditor, className }) => {
|
|
81969
|
+
const dispatchClientAction = useClientActionDispatcher();
|
|
81892
81970
|
const onSelect = useCallback(
|
|
81893
81971
|
(item2) => {
|
|
81894
|
-
|
|
81972
|
+
onPromptSelectInPanel(item2, () => {
|
|
81973
|
+
}, dispatchClientAction);
|
|
81895
81974
|
focusEditor == null ? void 0 : focusEditor();
|
|
81896
81975
|
},
|
|
81897
|
-
[
|
|
81976
|
+
[focusEditor, dispatchClientAction]
|
|
81898
81977
|
);
|
|
81899
81978
|
return /* @__PURE__ */ jsx(PromptSelectField, { onSelect, onCloseByEscape: focusEditor, className });
|
|
81900
81979
|
};
|
|
@@ -81940,7 +82019,6 @@ const HumanMessageEditor = ({
|
|
|
81940
82019
|
className,
|
|
81941
82020
|
editorRef: parentEditorRef,
|
|
81942
82021
|
__storybook__focus,
|
|
81943
|
-
experimentalOneBoxEnabled,
|
|
81944
82022
|
onEditorFocusChange: parentOnEditorFocusChange
|
|
81945
82023
|
}) => {
|
|
81946
82024
|
var _a, _b, _c;
|
|
@@ -82054,12 +82132,6 @@ const HumanMessageEditor = ({
|
|
|
82054
82132
|
},
|
|
82055
82133
|
[onGapClick]
|
|
82056
82134
|
);
|
|
82057
|
-
const appendTextToEditor = useCallback((text2) => {
|
|
82058
|
-
if (!editorRef.current) {
|
|
82059
|
-
throw new Error("No editorRef");
|
|
82060
|
-
}
|
|
82061
|
-
editorRef.current.appendText(text2);
|
|
82062
|
-
}, []);
|
|
82063
82135
|
const onMentionClick = useCallback(() => {
|
|
82064
82136
|
if (!editorRef.current) {
|
|
82065
82137
|
throw new Error("No editorRef");
|
|
@@ -82184,10 +82256,8 @@ const HumanMessageEditor = ({
|
|
|
82184
82256
|
submitState,
|
|
82185
82257
|
onGapClick,
|
|
82186
82258
|
focusEditor,
|
|
82187
|
-
appendTextToEditor,
|
|
82188
82259
|
hidden: !focused2 && isSent,
|
|
82189
|
-
className: styles$7.toolbar
|
|
82190
|
-
experimentalOneBoxEnabled
|
|
82260
|
+
className: styles$7.toolbar
|
|
82191
82261
|
}
|
|
82192
82262
|
)
|
|
82193
82263
|
]
|
|
@@ -82217,7 +82287,6 @@ const HumanMessageCell = memo(
|
|
|
82217
82287
|
className,
|
|
82218
82288
|
editorRef,
|
|
82219
82289
|
__storybook__focus,
|
|
82220
|
-
experimentalOneBoxEnabled,
|
|
82221
82290
|
onEditorFocusChange
|
|
82222
82291
|
}) => {
|
|
82223
82292
|
const messageJSON = JSON.stringify(message2);
|
|
@@ -82256,7 +82325,6 @@ const HumanMessageCell = memo(
|
|
|
82256
82325
|
isEditorInitiallyFocused,
|
|
82257
82326
|
editorRef,
|
|
82258
82327
|
__storybook__focus,
|
|
82259
|
-
experimentalOneBoxEnabled,
|
|
82260
82328
|
onEditorFocusChange
|
|
82261
82329
|
}
|
|
82262
82330
|
),
|
|
@@ -82311,8 +82379,7 @@ const Transcript = (props) => {
|
|
|
82311
82379
|
copyButtonOnSubmit,
|
|
82312
82380
|
insertButtonOnSubmit,
|
|
82313
82381
|
smartApply,
|
|
82314
|
-
smartApplyEnabled
|
|
82315
|
-
experimentalOneBoxEnabled
|
|
82382
|
+
smartApplyEnabled
|
|
82316
82383
|
} = props;
|
|
82317
82384
|
const interactions = useMemo(
|
|
82318
82385
|
() => transcriptToInteractionPairs(transcript, messageInProgress),
|
|
@@ -82345,8 +82412,7 @@ const Transcript = (props) => {
|
|
|
82345
82412
|
messageInProgress && ((_b = (_a = interactions.at(i2 - 1)) == null ? void 0 : _a.assistantMessage) == null ? void 0 : _b.isLoading)
|
|
82346
82413
|
),
|
|
82347
82414
|
smartApply,
|
|
82348
|
-
smartApplyEnabled
|
|
82349
|
-
experimentalOneBoxEnabled
|
|
82415
|
+
smartApplyEnabled
|
|
82350
82416
|
},
|
|
82351
82417
|
i2
|
|
82352
82418
|
);
|
|
@@ -82396,8 +82462,7 @@ const TranscriptInteraction = memo((props) => {
|
|
|
82396
82462
|
insertButtonOnSubmit,
|
|
82397
82463
|
copyButtonOnSubmit,
|
|
82398
82464
|
smartApply,
|
|
82399
|
-
smartApplyEnabled
|
|
82400
|
-
experimentalOneBoxEnabled
|
|
82465
|
+
smartApplyEnabled
|
|
82401
82466
|
} = props;
|
|
82402
82467
|
const [intent, setIntent] = useState();
|
|
82403
82468
|
const humanEditorRef = useRef(null);
|
|
@@ -82414,8 +82479,9 @@ const TranscriptInteraction = memo((props) => {
|
|
|
82414
82479
|
[intent]
|
|
82415
82480
|
);
|
|
82416
82481
|
const extensionAPI = useExtensionAPI();
|
|
82482
|
+
const experimentalOneBoxEnabled = useExperimentalOneBox();
|
|
82417
82483
|
const onChange = useMemo(() => {
|
|
82418
|
-
return
|
|
82484
|
+
return debounce(async (editorValue) => {
|
|
82419
82485
|
setIntent(void 0);
|
|
82420
82486
|
if (!experimentalOneBoxEnabled) {
|
|
82421
82487
|
return;
|
|
@@ -82479,7 +82545,6 @@ const TranscriptInteraction = memo((props) => {
|
|
|
82479
82545
|
isEditorInitiallyFocused: isLastInteraction,
|
|
82480
82546
|
editorRef: humanEditorRef,
|
|
82481
82547
|
className: !isFirstInteraction && isLastInteraction ? "tw-mt-auto" : "",
|
|
82482
|
-
experimentalOneBoxEnabled,
|
|
82483
82548
|
onEditorFocusChange: resetIntent
|
|
82484
82549
|
},
|
|
82485
82550
|
humanMessage.index
|
|
@@ -82527,7 +82592,7 @@ const TranscriptInteraction = memo((props) => {
|
|
|
82527
82592
|
},
|
|
82528
82593
|
`${humanMessage.index}-${humanMessage.intent}-context`
|
|
82529
82594
|
),
|
|
82530
|
-
assistantMessage && !isContextLoading && /* @__PURE__ */ jsx(
|
|
82595
|
+
(!experimentalOneBoxEnabled || humanMessage.intent !== "search") && assistantMessage && !isContextLoading && /* @__PURE__ */ jsx(
|
|
82531
82596
|
AssistantMessageCell,
|
|
82532
82597
|
{
|
|
82533
82598
|
userInfo,
|
|
@@ -82656,50 +82721,6 @@ function useCollapsiblePanelOpenState(storageKey, initialOpen = false) {
|
|
|
82656
82721
|
}
|
|
82657
82722
|
];
|
|
82658
82723
|
}
|
|
82659
|
-
const PromptsTab = ({ setView }) => {
|
|
82660
|
-
const dispatchClientAction = useClientActionDispatcher();
|
|
82661
|
-
return /* @__PURE__ */ jsx("div", { className: "tw-overflow-auto tw-p-8", children: /* @__PURE__ */ jsx(
|
|
82662
|
-
PromptListSuitedForNonPopover,
|
|
82663
|
-
{
|
|
82664
|
-
onSelect: (item2) => onPromptSelectInPanel(item2, setView, dispatchClientAction),
|
|
82665
|
-
onSelectActionLabels: onPromptSelectInPanelActionLabels,
|
|
82666
|
-
showCommandOrigins: true,
|
|
82667
|
-
showPromptLibraryUnsupportedMessage: true,
|
|
82668
|
-
showOnlyPromptInsertableCommands: false,
|
|
82669
|
-
telemetryLocation: "PromptsTab",
|
|
82670
|
-
className: "tw-border tw-border-border"
|
|
82671
|
-
}
|
|
82672
|
-
) });
|
|
82673
|
-
};
|
|
82674
|
-
function onPromptSelectInPanel(item2, setView, dispatchClientAction) {
|
|
82675
|
-
switch (item2.type) {
|
|
82676
|
-
case "prompt": {
|
|
82677
|
-
setView(View.Chat);
|
|
82678
|
-
dispatchClientAction(
|
|
82679
|
-
{ appendTextToLastPromptEditor: item2.value.definition.text },
|
|
82680
|
-
// Buffer because PromptEditor is not guaranteed to be mounted after the `setView`
|
|
82681
|
-
// call above, and it needs to be mounted to receive the action.
|
|
82682
|
-
{ buffer: true }
|
|
82683
|
-
);
|
|
82684
|
-
break;
|
|
82685
|
-
}
|
|
82686
|
-
case "command": {
|
|
82687
|
-
getVSCodeAPI().postMessage({
|
|
82688
|
-
command: "command",
|
|
82689
|
-
id: "cody.action.command",
|
|
82690
|
-
arg: item2.value.key
|
|
82691
|
-
});
|
|
82692
|
-
if (item2.value.mode === "ask" && item2.value.type === "default") {
|
|
82693
|
-
setView(View.Chat);
|
|
82694
|
-
}
|
|
82695
|
-
break;
|
|
82696
|
-
}
|
|
82697
|
-
}
|
|
82698
|
-
}
|
|
82699
|
-
const onPromptSelectInPanelActionLabels = {
|
|
82700
|
-
command: "run",
|
|
82701
|
-
prompt: "insert"
|
|
82702
|
-
};
|
|
82703
82724
|
const MenuExample = ({ children: children2 }) => /* @__PURE__ */ jsx("span", { className: "tw-p-1 tw-rounded tw-text-keybinding-foreground tw-border tw-border-keybinding-border tw-bg-keybinding-background tw-whitespace-nowrap", children: children2 });
|
|
82704
82725
|
const FeatureRowInlineIcon = ({ Icon: Icon2 }) => /* @__PURE__ */ jsx(Icon2, { size: 16, strokeWidth: 1.25, className: "tw-flex-none tw-inline-flex tw-mt-1 tw-opacity-80" });
|
|
82705
82726
|
const FeatureRow = ({ icon: icon2, children: children2 }) => /* @__PURE__ */ jsxs("div", { className: "tw-py-2 tw-px-4 tw-inline-flex tw-gap-3 tw-text-foreground tw-items-start", children: [
|
|
@@ -82709,6 +82730,7 @@ const FeatureRow = ({ icon: icon2, children: children2 }) => /* @__PURE__ */ jsx
|
|
|
82709
82730
|
const localStorageKey = "chat.welcome-message-dismissed";
|
|
82710
82731
|
const WelcomeMessage = ({
|
|
82711
82732
|
IDE,
|
|
82733
|
+
isUnifiedPromptsAvailable,
|
|
82712
82734
|
setView
|
|
82713
82735
|
}) => {
|
|
82714
82736
|
localStorage.removeItem(localStorageKey);
|
|
@@ -82718,7 +82740,7 @@ const WelcomeMessage = ({
|
|
|
82718
82740
|
CollapsiblePanel,
|
|
82719
82741
|
{
|
|
82720
82742
|
storageKey: "prompts",
|
|
82721
|
-
title: "Prompts & Commands",
|
|
82743
|
+
title: isUnifiedPromptsAvailable ? "Prompts" : "Prompts & Commands",
|
|
82722
82744
|
className: "tw-mb-6",
|
|
82723
82745
|
contentClassName: "!tw-p-0 tw-overflow-clip",
|
|
82724
82746
|
initialOpen: true,
|
|
@@ -82829,7 +82851,7 @@ const Chat = ({
|
|
|
82829
82851
|
showIDESnippetActions = true,
|
|
82830
82852
|
setView,
|
|
82831
82853
|
smartApplyEnabled,
|
|
82832
|
-
|
|
82854
|
+
isUnifiedPromptsAvailable
|
|
82833
82855
|
}) => {
|
|
82834
82856
|
const telemetryRecorder = useTelemetryRecorder();
|
|
82835
82857
|
const transcriptRef = useRef(transcript);
|
|
@@ -82971,14 +82993,33 @@ const Chat = ({
|
|
|
82971
82993
|
chatEnabled,
|
|
82972
82994
|
postMessage,
|
|
82973
82995
|
guardrails,
|
|
82974
|
-
smartApplyEnabled
|
|
82975
|
-
|
|
82996
|
+
smartApplyEnabled
|
|
82997
|
+
}
|
|
82998
|
+
),
|
|
82999
|
+
transcript.length === 0 && showWelcomeMessage && /* @__PURE__ */ jsx(
|
|
83000
|
+
WelcomeMessage,
|
|
83001
|
+
{
|
|
83002
|
+
IDE: userInfo.ide,
|
|
83003
|
+
setView,
|
|
83004
|
+
isUnifiedPromptsAvailable
|
|
82976
83005
|
}
|
|
82977
83006
|
),
|
|
82978
|
-
transcript.length === 0 && showWelcomeMessage && /* @__PURE__ */ jsx(WelcomeMessage, { IDE: userInfo.ide, setView }),
|
|
82979
83007
|
scrollableParent && /* @__PURE__ */ jsx(ScrollDown, { scrollableParent, onClick: handleScrollDownClick })
|
|
82980
83008
|
] });
|
|
82981
83009
|
};
|
|
83010
|
+
const ConnectivityStatusBanner = () => {
|
|
83011
|
+
const signOut = useCallback(() => {
|
|
83012
|
+
getVSCodeAPI().postMessage({ command: "auth", authKind: "signout" });
|
|
83013
|
+
}, []);
|
|
83014
|
+
return /* @__PURE__ */ jsxs("div", { className: "tw-w-full tw-px-2 tw-py-3 tw-text-center tw-border-b tw-border-b-border tw-text-sm tw-text-status-offline-foreground tw-bg-status-offline-background tw-flex tw-justify-center tw-items-center tw-gap-3", children: [
|
|
83015
|
+
/* @__PURE__ */ jsx(TriangleAlert, { size: 14, strokeWidth: 2 }),
|
|
83016
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
83017
|
+
/* @__PURE__ */ jsx("span", { className: "tw-font-bold", children: "Network Error" }),
|
|
83018
|
+
" — Cody is unreachable"
|
|
83019
|
+
] }),
|
|
83020
|
+
/* @__PURE__ */ jsx(Button3, { variant: "secondary", size: "sm", onClick: signOut, children: "Sign Out" })
|
|
83021
|
+
] });
|
|
83022
|
+
};
|
|
82982
83023
|
var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
|
|
82983
83024
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
82984
83025
|
var GROUP_NAME = "RovingFocusGroup";
|
|
@@ -83613,9 +83654,15 @@ const styles$2 = {
|
|
|
83613
83654
|
dialogDescription,
|
|
83614
83655
|
dialogFooter
|
|
83615
83656
|
};
|
|
83616
|
-
const TabsBar = ({
|
|
83657
|
+
const TabsBar = ({
|
|
83658
|
+
currentView,
|
|
83659
|
+
isUnifiedPromptsAvailable,
|
|
83660
|
+
setView,
|
|
83661
|
+
IDE,
|
|
83662
|
+
onDownloadChatClick
|
|
83663
|
+
}) => {
|
|
83617
83664
|
var _a;
|
|
83618
|
-
const tabItems = useTabs({ IDE, onDownloadChatClick });
|
|
83665
|
+
const tabItems = useTabs({ IDE, isUnifiedPromptsAvailable, onDownloadChatClick });
|
|
83619
83666
|
const {
|
|
83620
83667
|
config: { webviewType, multipleWebviewsEnabled }
|
|
83621
83668
|
} = useConfig();
|
|
@@ -83796,7 +83843,7 @@ const TabButton = forwardRef((props, ref2) => {
|
|
|
83796
83843
|
});
|
|
83797
83844
|
TabButton.displayName = "TabButton";
|
|
83798
83845
|
function useTabs(input) {
|
|
83799
|
-
const { IDE, onDownloadChatClick } = input;
|
|
83846
|
+
const { isUnifiedPromptsAvailable, IDE, onDownloadChatClick } = input;
|
|
83800
83847
|
const {
|
|
83801
83848
|
config: { multipleWebviewsEnabled }
|
|
83802
83849
|
} = useConfig();
|
|
@@ -83841,7 +83888,7 @@ function useTabs(input) {
|
|
|
83841
83888
|
},
|
|
83842
83889
|
{
|
|
83843
83890
|
view: View.Prompts,
|
|
83844
|
-
title: IDE === CodyIDE.Web ? "Prompts" : "Prompts & Commands",
|
|
83891
|
+
title: IDE === CodyIDE.Web || isUnifiedPromptsAvailable ? "Prompts" : "Prompts & Commands",
|
|
83845
83892
|
Icon: BookText,
|
|
83846
83893
|
changesView: true
|
|
83847
83894
|
},
|
|
@@ -83859,13 +83906,13 @@ function useTabs(input) {
|
|
|
83859
83906
|
changesView: IDE !== CodyIDE.VSCode
|
|
83860
83907
|
} : null
|
|
83861
83908
|
].filter(isDefined),
|
|
83862
|
-
[IDE, onDownloadChatClick, multipleWebviewsEnabled]
|
|
83909
|
+
[IDE, onDownloadChatClick, multipleWebviewsEnabled, isUnifiedPromptsAvailable]
|
|
83863
83910
|
);
|
|
83864
83911
|
}
|
|
83865
83912
|
const CodyPanel = ({
|
|
83866
83913
|
view,
|
|
83867
83914
|
setView,
|
|
83868
|
-
config,
|
|
83915
|
+
configuration: { config, authStatus },
|
|
83869
83916
|
errorMessages,
|
|
83870
83917
|
setErrorMessages,
|
|
83871
83918
|
attributionEnabled,
|
|
@@ -83878,8 +83925,7 @@ const CodyPanel = ({
|
|
|
83878
83925
|
showIDESnippetActions,
|
|
83879
83926
|
showWelcomeMessage,
|
|
83880
83927
|
userHistory,
|
|
83881
|
-
smartApplyEnabled
|
|
83882
|
-
experimentalOneBoxEnabled
|
|
83928
|
+
smartApplyEnabled
|
|
83883
83929
|
}) => {
|
|
83884
83930
|
const tabContainerRef = useRef(null);
|
|
83885
83931
|
const onDownloadChatClick = useCallback(() => {
|
|
@@ -83901,12 +83947,14 @@ const CodyPanel = ({
|
|
|
83901
83947
|
orientation: "vertical",
|
|
83902
83948
|
className: styles$l.outerContainer,
|
|
83903
83949
|
children: [
|
|
83950
|
+
!authStatus.authenticated && authStatus.showNetworkError && /* @__PURE__ */ jsx(ConnectivityStatusBanner, {}),
|
|
83904
83951
|
(config.agentIDE === CodyIDE.Web || config.webviewType !== "editor") && /* @__PURE__ */ jsx(
|
|
83905
83952
|
TabsBar,
|
|
83906
83953
|
{
|
|
83907
83954
|
currentView: view,
|
|
83908
83955
|
setView,
|
|
83909
83956
|
IDE: config.agentIDE || CodyIDE.VSCode,
|
|
83957
|
+
isUnifiedPromptsAvailable: config.unifiedPromptsAvailable,
|
|
83910
83958
|
onDownloadChatClick
|
|
83911
83959
|
}
|
|
83912
83960
|
),
|
|
@@ -83925,7 +83973,7 @@ const CodyPanel = ({
|
|
|
83925
83973
|
showWelcomeMessage,
|
|
83926
83974
|
scrollableParent: tabContainerRef.current,
|
|
83927
83975
|
smartApplyEnabled,
|
|
83928
|
-
|
|
83976
|
+
isUnifiedPromptsAvailable: config.unifiedPromptsAvailable,
|
|
83929
83977
|
setView
|
|
83930
83978
|
}
|
|
83931
83979
|
),
|
|
@@ -84429,7 +84477,7 @@ const CodyWebPanel = (props) => {
|
|
|
84429
84477
|
errorMessages,
|
|
84430
84478
|
setErrorMessages,
|
|
84431
84479
|
attributionEnabled: false,
|
|
84432
|
-
|
|
84480
|
+
configuration: config,
|
|
84433
84481
|
userHistory,
|
|
84434
84482
|
chatEnabled: true,
|
|
84435
84483
|
showWelcomeMessage: true,
|
|
@@ -84437,8 +84485,7 @@ const CodyWebPanel = (props) => {
|
|
|
84437
84485
|
messageInProgress,
|
|
84438
84486
|
transcript,
|
|
84439
84487
|
vscodeAPI,
|
|
84440
|
-
isTranscriptError
|
|
84441
|
-
experimentalOneBoxEnabled: config.config.experimentalOneBox
|
|
84488
|
+
isTranscriptError
|
|
84442
84489
|
}
|
|
84443
84490
|
) }) }) }) });
|
|
84444
84491
|
};
|