@sourcegraph/cody-web 0.8.0 → 0.8.1
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-CpzEAjEs.mjs → agent.worker-BGToM1eX.mjs} +130 -63
- package/dist/agent.worker.js +2 -2
- package/dist/{browser-7p2xtDk0.mjs → browser-D1wtYpbR.mjs} +3527 -3607
- package/dist/{git-log-C_pMreBK.mjs → git-log-DzEEgPFA.mjs} +2 -2
- package/dist/{index-BY36TK4z.mjs → index-BC137051.mjs} +2 -2
- package/dist/index.js +31 -25
- package/dist/lib/agent/agent.client.d.ts.map +1 -1
- package/dist/{shell-Ct82N9eV.mjs → shell-C59BlM8E.mjs} +3 -3
- package/dist/style.css +24 -25
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{util-DHv3aBr3.mjs → util-xV842Ayw.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as path, U as Uri, s as spawn } from "./agent.worker-
|
|
2
|
-
import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-
|
|
1
|
+
import { p as path, U as Uri, s as spawn } from "./agent.worker-BGToM1eX.mjs";
|
|
2
|
+
import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-D1wtYpbR.mjs";
|
|
3
3
|
async function getContextFileFromGitLog(file, options) {
|
|
4
4
|
return wrapInActiveSpan("commands.context.git-log", async (span) => {
|
|
5
5
|
const cwd = path.dirname(file.fsPath);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
import { U as Uri, P as Position, R as Range, w as window, D as DiagnosticSeverity, b as workspace, u as updateRangeMultipleChanges, c as commands, d as executeEdit, T as TERMINAL_EDIT_STATES, f as ThemeColor, g as languages, C as CodeLens, h as setTutorialUri, i as logSidebarClick, j as Disposable } from "./agent.worker-
|
|
5
|
-
import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-
|
|
4
|
+
import { U as Uri, P as Position, R as Range, w as window, D as DiagnosticSeverity, b as workspace, u as updateRangeMultipleChanges, c as commands, d as executeEdit, T as TERMINAL_EDIT_STATES, f as ThemeColor, g as languages, C as CodeLens, h as setTutorialUri, i as logSidebarClick, j as Disposable } from "./agent.worker-BGToM1eX.mjs";
|
|
5
|
+
import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-D1wtYpbR.mjs";
|
|
6
6
|
const EMOJI_SVG_TEMPLATE = `<svg width="32" height="32" xmlns="http://www.w3.org/2000/svg">
|
|
7
7
|
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="Arial" font-size="24px">{emoji}</text>
|
|
8
8
|
</svg>`;
|
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, L as Ls, k as ke$1, a as ks, F as Fi$1, _ as _s, b as ds, c 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, e as ws, B as B$2, f as g$5, h as h$4, j as _i, S as Ss, l as Br, m as ln, n as bi$1, v as vn, o as xn, N as Nn, r as mn, s as li$1, u as n$1, z as ns, M as M$4, D as Ds, A as le$2, E as c$4, G as oe$1, H as z$1, I as yi$1, W as W$2, U as Ue$1, O as I$2, P as Se$2, Q as O$2, V as F$1, X as Ni$1, Y as ee$1, Z as we$2, $ as b$2, a0 as T$3, a1 as s$2, a2 as o$4, a3 as w$3, a4 as i$1, a5 as k$3, a6 as D$5, a7 as p$8, a8 as m$7, a9 as S$4, aa as v$4, ab as P$2, ac as E$6, ad as Wi$1, ae as L$3, af as d$2, ag as a$3, ah as l$2, ai as f$2, aj as u$6, ak as r$6, al as t$2, am as FILE_CONTEXT_MENTION_PROVIDER, an as SYMBOL_CONTEXT_MENTION_PROVIDER, ao as REMOTE_REPOSITORY_PROVIDER_URI, ap as REMOTE_FILE_PROVIDER_URI, aq as REMOTE_DIRECTORY_PROVIDER_URI, ar as WEB_PROVIDER_URI, as as displayPath, at as displayLineRange, au as displayPathDirname, av as displayPathBasename, aw as IGNORED_FILE_WARNING_LABEL, ax as LARGE_FILE_WARNING_LABEL, ay as Ei$1, az as xe$2, aA as V$2, aB as Es, aC as U$2, aD as e, aE as Ns, aF as an, aG as gs, aH as serializeContextItem, aI as CONTEXT_ITEM_MENTION_NODE_TYPE, aJ as contextItemMentionNodeDisplayText, C as ContextItemSource, aK as URI, aL as qr, aM as _$2, aN as TEMPLATE_INPUT_NODE_TYPE, aO as N$2, aP as parseMentionQuery, aQ as NO_SYMBOL_MATCHES_HELP_LABEL, aR as FILE_RANGE_TOOLTIP_LABEL, aS as createExtensionAPI, aT as createMessageAPIForWebview, aU as lodashExports, aV as memoizeLastValue, aW as toSerializedPromptEditorValue, aX as ri$1, aY as scanForMentionTriggerInUserTextInput, aZ as fs, a_ as Ts, a$ as ps, b0 as hydrateAfterPostMessage, b1 as isCodyProUser, b2 as CodyIDE, b3 as webviewOpenURIForContextItem, b4 as commonjsGlobal, b5 as CodyTaskState, b6 as cryptoJsExports, b7 as isError, b8 as RateLimitError, b9 as CODY_FEEDBACK_URL, ba as isDefined, bb as reformatBotMessageForChat, p as ps$1, bc as isAbortErrorOrSocketHangUp, bd as isEqual, be as serializedPromptEditorStateFromChatMessage, bf as contextItemsFromPromptEditorValue, bg as filterContextItemsFromPromptEditorValue, bh as pluralize$1, bi as isCodyProModel, bj as ModelTag, bk as CustomCommandType, bl as isMacOS, bm as textContentFromSerializedLexicalNode, bn as FAST_CHAT_INPUT_TOKEN_BUDGET, bo as
|
|
5
|
+
import { g as getDefaultExportFromCjs, L as Ls, k as ke$1, a as ks, F as Fi$1, _ as _s, b as ds, c 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, e as ws, B as B$2, f as g$5, h as h$4, j as _i, S as Ss, l as Br, m as ln, n as bi$1, v as vn, o as xn, N as Nn, r as mn, s as li$1, u as n$1, z as ns, M as M$4, D as Ds, A as le$2, E as c$4, G as oe$1, H as z$1, I as yi$1, W as W$2, U as Ue$1, O as I$2, P as Se$2, Q as O$2, V as F$1, X as Ni$1, Y as ee$1, Z as we$2, $ as b$2, a0 as T$3, a1 as s$2, a2 as o$4, a3 as w$3, a4 as i$1, a5 as k$3, a6 as D$5, a7 as p$8, a8 as m$7, a9 as S$4, aa as v$4, ab as P$2, ac as E$6, ad as Wi$1, ae as L$3, af as d$2, ag as a$3, ah as l$2, ai as f$2, aj as u$6, ak as r$6, al as t$2, am as FILE_CONTEXT_MENTION_PROVIDER, an as SYMBOL_CONTEXT_MENTION_PROVIDER, ao as REMOTE_REPOSITORY_PROVIDER_URI, ap as REMOTE_FILE_PROVIDER_URI, aq as REMOTE_DIRECTORY_PROVIDER_URI, ar as WEB_PROVIDER_URI, as as displayPath, at as displayLineRange, au as displayPathDirname, av as displayPathBasename, aw as IGNORED_FILE_WARNING_LABEL, ax as LARGE_FILE_WARNING_LABEL, ay as Ei$1, az as xe$2, aA as V$2, aB as Es, aC as U$2, aD as e, aE as Ns, aF as an, aG as gs, aH as serializeContextItem, aI as CONTEXT_ITEM_MENTION_NODE_TYPE, aJ as contextItemMentionNodeDisplayText, C as ContextItemSource, aK as URI, aL as qr, aM as _$2, aN as TEMPLATE_INPUT_NODE_TYPE, aO as N$2, aP as parseMentionQuery, aQ as NO_SYMBOL_MATCHES_HELP_LABEL, aR as FILE_RANGE_TOOLTIP_LABEL, aS as createExtensionAPI, aT as createMessageAPIForWebview, aU as lodashExports, aV as memoizeLastValue, aW as toSerializedPromptEditorValue, aX as ri$1, aY as scanForMentionTriggerInUserTextInput, aZ as fs, a_ as Ts, a$ as ps, b0 as hydrateAfterPostMessage, b1 as isCodyProUser, b2 as CodyIDE, b3 as webviewOpenURIForContextItem, b4 as commonjsGlobal, b5 as CodyTaskState, b6 as cryptoJsExports, b7 as isError, b8 as RateLimitError, b9 as CODY_FEEDBACK_URL, ba as isDefined, bb as reformatBotMessageForChat, p as ps$1, bc as isAbortErrorOrSocketHangUp, bd as isEqual, be as serializedPromptEditorStateFromChatMessage, bf as contextItemsFromPromptEditorValue, bg as filterContextItemsFromPromptEditorValue, bh as pluralize$1, bi as isCodyProModel, bj as ModelTag, bk as CustomCommandType, bl as isMacOS, bm as textContentFromSerializedLexicalNode, bn as FAST_CHAT_INPUT_TOKEN_BUDGET, bo as inputTextWithoutContextChipsFromPromptEditorState, bp as deserializeContextItem, bq as View, br as truncateTextStart, bs as CHAT_INPUT_TOKEN_BUDGET, bt as ACCOUNT_USAGE_URL, bu as ACCOUNT_UPGRADE_URL, bv as getRelativeChatPeriod, bw as browser, bx as isErrorLike, by as setDisplayPathEnvInfo, bz as PromptString } from "./browser-D1wtYpbR.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: {} };
|
|
@@ -9256,7 +9256,7 @@ function getItemsHeading(parentItem, mentionQuery) {
|
|
|
9256
9256
|
}
|
|
9257
9257
|
if (parentItem.id === REMOTE_DIRECTORY_PROVIDER_URI) {
|
|
9258
9258
|
return /* @__PURE__ */ jsxs("div", { className: "tw-flex tw-flex-gap-2 tw-items-center tw-justify-between", children: [
|
|
9259
|
-
/* @__PURE__ */ jsx("div", { children: mentionQuery.text.includes(":") ? "Directory - Select a directory*" : "Directory - Select a repository*" }),
|
|
9259
|
+
/* @__PURE__ */ jsx("div", { children: mentionQuery.text.includes(":") ? "Directory - Select or search for a directory*" : "Directory - Select a repository*" }),
|
|
9260
9260
|
/* @__PURE__ */ jsx(
|
|
9261
9261
|
"div",
|
|
9262
9262
|
{
|
|
@@ -31247,22 +31247,22 @@ const CodeExcerpt = (props) => {
|
|
|
31247
31247
|
}, [highlightRanges, startLine, endLine, tableContainerElement, table2]);
|
|
31248
31248
|
return /* @__PURE__ */ jsx(Code, { className: clsx$1(styles$i.codeExcerpt, className), "data-code-excerpt": true, children: /* @__PURE__ */ jsx("div", { ref: setTableContainerElement, children: table2 }) });
|
|
31249
31249
|
};
|
|
31250
|
-
const resultContainer = "_result-
|
|
31251
|
-
const header$2 = "
|
|
31252
|
-
const headerTitle = "_header-
|
|
31253
|
-
const result = "
|
|
31254
|
-
const searchResultMatch = "_search-result-
|
|
31255
|
-
const horizontalDividerBetween = "_horizontal-divider-
|
|
31256
|
-
const focusableBlock = "_focusable-
|
|
31257
|
-
const clickable = "
|
|
31258
|
-
const dividerBetween = "_divider-
|
|
31259
|
-
const dividerVertical = "_divider-
|
|
31260
|
-
const divider = "
|
|
31261
|
-
const title = "
|
|
31262
|
-
const titleInner = "_title-
|
|
31263
|
-
const toggleMatchesButton = "_toggle-matches-
|
|
31264
|
-
const toggleMatchesButtonExpanded = "_toggle-matches-button--
|
|
31265
|
-
const toggleMatchesButtonText = "_toggle-matches-button-
|
|
31250
|
+
const resultContainer = "_result-container_1ojeo_12";
|
|
31251
|
+
const header$2 = "_header_1ojeo_35";
|
|
31252
|
+
const headerTitle = "_header-title_1ojeo_1";
|
|
31253
|
+
const result = "_result_1ojeo_12";
|
|
31254
|
+
const searchResultMatch = "_search-result-match_1ojeo_61";
|
|
31255
|
+
const horizontalDividerBetween = "_horizontal-divider-between_1ojeo_71";
|
|
31256
|
+
const focusableBlock = "_focusable-block_1ojeo_77";
|
|
31257
|
+
const clickable = "_clickable_1ojeo_83";
|
|
31258
|
+
const dividerBetween = "_divider-between_1ojeo_91";
|
|
31259
|
+
const dividerVertical = "_divider-vertical_1ojeo_101";
|
|
31260
|
+
const divider = "_divider_1ojeo_91";
|
|
31261
|
+
const title = "_title_1ojeo_113";
|
|
31262
|
+
const titleInner = "_title-inner_1ojeo_121";
|
|
31263
|
+
const toggleMatchesButton = "_toggle-matches-button_1ojeo_125";
|
|
31264
|
+
const toggleMatchesButtonExpanded = "_toggle-matches-button--expanded_1ojeo_1";
|
|
31265
|
+
const toggleMatchesButtonText = "_toggle-matches-button-text_1ojeo_1";
|
|
31266
31266
|
const styles$h = {
|
|
31267
31267
|
resultContainer,
|
|
31268
31268
|
header: header$2,
|
|
@@ -75833,7 +75833,9 @@ const TranscriptInteraction = memo((props) => {
|
|
|
75833
75833
|
if (editorValue.contextItems.find(
|
|
75834
75834
|
(contextItem2) => ["repository", "tree"].includes(contextItem2.type)
|
|
75835
75835
|
)) {
|
|
75836
|
-
extensionAPI.detectIntent(
|
|
75836
|
+
extensionAPI.detectIntent(
|
|
75837
|
+
inputTextWithoutContextChipsFromPromptEditorState(editorValue.editorState)
|
|
75838
|
+
).subscribe((value) => {
|
|
75837
75839
|
setIntent(value);
|
|
75838
75840
|
});
|
|
75839
75841
|
}
|
|
@@ -75892,7 +75894,7 @@ const TranscriptInteraction = memo((props) => {
|
|
|
75892
75894
|
},
|
|
75893
75895
|
humanMessage.index
|
|
75894
75896
|
),
|
|
75895
|
-
experimentalOneBoxEnabled && humanMessage.intent && /* @__PURE__ */ jsx(InfoMessage, { children: humanMessage.intent === "search" ? /* @__PURE__ */ jsxs("div", { className: "tw-flex tw-justify-between tw-gap-4", children: [
|
|
75897
|
+
experimentalOneBoxEnabled && humanMessage.intent && /* @__PURE__ */ jsx(InfoMessage, { children: humanMessage.intent === "search" ? /* @__PURE__ */ jsxs("div", { className: "tw-flex tw-justify-between tw-gap-4 tw-items-center", children: [
|
|
75896
75898
|
/* @__PURE__ */ jsx("span", { children: "Intent detection selected a code search response." }),
|
|
75897
75899
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
75898
75900
|
Button3,
|
|
@@ -75907,7 +75909,7 @@ const TranscriptInteraction = memo((props) => {
|
|
|
75907
75909
|
]
|
|
75908
75910
|
}
|
|
75909
75911
|
) })
|
|
75910
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "tw-flex tw-justify-between tw-gap-4", children: [
|
|
75912
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "tw-flex tw-justify-between tw-gap-4 tw-items-center", children: [
|
|
75911
75913
|
/* @__PURE__ */ jsx("span", { children: "Intent detection selected an LLM response." }),
|
|
75912
75914
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
75913
75915
|
Button3,
|
|
@@ -76779,7 +76781,7 @@ const TabContainer = React__default.forwardRef(({ className, ...props }, ref2) =
|
|
|
76779
76781
|
}
|
|
76780
76782
|
);
|
|
76781
76783
|
});
|
|
76782
|
-
const AccountTab = () => {
|
|
76784
|
+
const AccountTab = ({ setView }) => {
|
|
76783
76785
|
const userInfo = useUserAccountInfo();
|
|
76784
76786
|
const { user, isCodyProUser: isCodyProUser2, isDotComUser, ide } = userInfo;
|
|
76785
76787
|
const { displayName, username, primaryEmail, endpoint } = user;
|
|
@@ -76816,7 +76818,12 @@ const AccountTab = () => {
|
|
|
76816
76818
|
});
|
|
76817
76819
|
actions2.push({
|
|
76818
76820
|
text: "Sign Out",
|
|
76819
|
-
onClick: () =>
|
|
76821
|
+
onClick: () => {
|
|
76822
|
+
getVSCodeAPI().postMessage({ command: "auth", authKind: "signout" });
|
|
76823
|
+
if (ide === CodyIDE.JetBrains) {
|
|
76824
|
+
setView(View.Chat);
|
|
76825
|
+
}
|
|
76826
|
+
}
|
|
76820
76827
|
});
|
|
76821
76828
|
return /* @__PURE__ */ jsxs("div", { className: "tw-overflow-auto tw-flex-1 tw-flex tw-flex-col tw-items-start tw-w-full tw-px-8 tw-py-6 tw-gap-6", children: [
|
|
76822
76829
|
/* @__PURE__ */ jsx("h2", { children: "Account" }),
|
|
@@ -77343,7 +77350,7 @@ const CodyPanel = ({
|
|
|
77343
77350
|
}
|
|
77344
77351
|
),
|
|
77345
77352
|
view === View.Prompts && /* @__PURE__ */ jsx(PromptsTab, { setView }),
|
|
77346
|
-
view === View.Account && /* @__PURE__ */ jsx(AccountTab, {}),
|
|
77353
|
+
view === View.Account && /* @__PURE__ */ jsx(AccountTab, { setView }),
|
|
77347
77354
|
view === View.Settings && /* @__PURE__ */ jsx(SettingsTab, {})
|
|
77348
77355
|
] })
|
|
77349
77356
|
]
|
|
@@ -77437,7 +77444,6 @@ async function createAgentClient({
|
|
|
77437
77444
|
telemetryClientName,
|
|
77438
77445
|
customHeaders: customHeaders ?? {},
|
|
77439
77446
|
customConfiguration: {
|
|
77440
|
-
"cody.internal.onebox": true,
|
|
77441
77447
|
"cody.autocomplete.enabled": false,
|
|
77442
77448
|
"cody.experimental.urlContext": true,
|
|
77443
77449
|
"cody.web": true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.client.d.ts","sourceRoot":"","sources":["../../../lib/agent/agent.client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,UAAU,EAAE,MAAM,oCAAoC,CAAA;AAChF,OAAO,EAGH,KAAK,iBAAiB,EAGzB,MAAM,wBAAwB,CAAA;AAG/B,UAAU,WAAW;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,GAAG,EAAE,iBAAiB,CAAA;IACtB,OAAO,IAAI,IAAI,CAAA;CAClB;AAED,UAAU,kBAAkB;IACxB,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAsB,iBAAiB,CAAC,EACpC,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,KAAY,EACZ,KAAa,GAChB,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"agent.client.d.ts","sourceRoot":"","sources":["../../../lib/agent/agent.client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,UAAU,EAAE,MAAM,oCAAoC,CAAA;AAChF,OAAO,EAGH,KAAK,iBAAiB,EAGzB,MAAM,wBAAwB,CAAA;AAG/B,UAAU,WAAW;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,GAAG,EAAE,iBAAiB,CAAA;IACtB,OAAO,IAAI,IAAI,CAAA;CAClB;AAED,UAAU,kBAAkB;IACxB,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAsB,iBAAiB,CAAC,EACpC,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,KAAY,EACZ,KAAa,GAChB,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,CAgE3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as exec, o as os, a as env, w as window, p as path, b as workspace, U as Uri, l as logError } from "./agent.worker-
|
|
2
|
-
import { a as utilExports } from "./util-
|
|
3
|
-
import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-
|
|
1
|
+
import { e as exec, o as os, a as env, w as window, p as path, b as workspace, U as Uri, l as logError } from "./agent.worker-BGToM1eX.mjs";
|
|
2
|
+
import { a as utilExports } from "./util-xV842Ayw.mjs";
|
|
3
|
+
import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-D1wtYpbR.mjs";
|
|
4
4
|
var define_process_default = { env: {} };
|
|
5
5
|
const _exec = utilExports.promisify(exec);
|
|
6
6
|
async function getContextFileFromShell(command) {
|
package/dist/style.css
CHANGED
|
@@ -320,23 +320,22 @@ kbd {
|
|
|
320
320
|
--cody-chat-code-border-color: var(--vscode-widget-border);
|
|
321
321
|
--cody-chat-code-text-muted: var(--vscode-input-placeholderForeground);
|
|
322
322
|
--cody-chat-code-focus-border: var(--vscode-focusBorder);
|
|
323
|
-
|
|
324
|
-
--
|
|
325
|
-
--text-muted-highlighted: #566880;
|
|
323
|
+
--cody-chat-code-mark-background: #f8e688;
|
|
324
|
+
--cody-chat-code-text-highlighted: #566880;
|
|
326
325
|
}
|
|
327
326
|
|
|
328
|
-
._result-
|
|
327
|
+
._result-container_1ojeo_12 {
|
|
329
328
|
contain: paint;
|
|
330
329
|
border-radius: 4px;
|
|
331
330
|
border: solid 1px var(--cody-chat-code-border-color);
|
|
332
331
|
}
|
|
333
332
|
|
|
334
|
-
._result-
|
|
335
|
-
color: var(--text-
|
|
336
|
-
background-color: var(--mark-
|
|
333
|
+
._result-container_1ojeo_12 .match-highlight {
|
|
334
|
+
color: var(--cody-chat-code-text-highlighted);
|
|
335
|
+
background-color: var(--cody-chat-code-mark-background);
|
|
337
336
|
}
|
|
338
337
|
|
|
339
|
-
._result-
|
|
338
|
+
._result-container_1ojeo_12 .sr-only {
|
|
340
339
|
position: absolute;
|
|
341
340
|
width: 0.0625rem;
|
|
342
341
|
height: 0.0625rem;
|
|
@@ -348,7 +347,7 @@ kbd {
|
|
|
348
347
|
border: 0;
|
|
349
348
|
}
|
|
350
349
|
|
|
351
|
-
.
|
|
350
|
+
._header_1ojeo_35 {
|
|
352
351
|
padding: 0.45rem 0.5rem;
|
|
353
352
|
display: flex;
|
|
354
353
|
align-items: center;
|
|
@@ -364,17 +363,17 @@ kbd {
|
|
|
364
363
|
background-color: var(--cody-chat-code-header-background);
|
|
365
364
|
}
|
|
366
365
|
|
|
367
|
-
._header-
|
|
366
|
+
._header-title_1ojeo_1 {
|
|
368
367
|
flex: 1 1 auto;
|
|
369
368
|
display: flex;
|
|
370
369
|
flex-wrap: wrap;
|
|
371
370
|
}
|
|
372
371
|
|
|
373
|
-
.
|
|
372
|
+
._result_1ojeo_12 {
|
|
374
373
|
background-color: var(--cody-chat-code-background);
|
|
375
374
|
}
|
|
376
375
|
|
|
377
|
-
._search-result-
|
|
376
|
+
._search-result-match_1ojeo_61 {
|
|
378
377
|
/* Don't use cascading link style */
|
|
379
378
|
text-decoration: none;
|
|
380
379
|
display: flex;
|
|
@@ -384,24 +383,24 @@ kbd {
|
|
|
384
383
|
position: relative;
|
|
385
384
|
}
|
|
386
385
|
|
|
387
|
-
._horizontal-divider-
|
|
386
|
+
._horizontal-divider-between_1ojeo_71:not(:last-child) {
|
|
388
387
|
border-bottom: 1px solid var(--cody-chat-code-border-color);
|
|
389
388
|
}
|
|
390
389
|
|
|
391
|
-
._focusable-
|
|
390
|
+
._focusable-block_1ojeo_77:focus-visible {
|
|
392
391
|
box-shadow: inset 0 0 0 1px var(--cody-chat-code-focus-border);
|
|
393
392
|
}
|
|
394
393
|
|
|
395
|
-
.
|
|
394
|
+
._clickable_1ojeo_83 {
|
|
396
395
|
cursor: pointer;
|
|
397
396
|
}
|
|
398
397
|
|
|
399
|
-
.
|
|
398
|
+
._clickable_1ojeo_83:hover {
|
|
400
399
|
text-decoration: none;
|
|
401
400
|
background-color: var(--cody-chat-code-subtle-background);
|
|
402
401
|
}
|
|
403
402
|
|
|
404
|
-
._divider-
|
|
403
|
+
._divider-between_1ojeo_91 > *:not(:last-child)::after {
|
|
405
404
|
content: ' ';
|
|
406
405
|
height: 1rem;
|
|
407
406
|
margin: 0 0.75rem;
|
|
@@ -409,19 +408,19 @@ kbd {
|
|
|
409
408
|
display: block;
|
|
410
409
|
}
|
|
411
410
|
|
|
412
|
-
._divider-
|
|
411
|
+
._divider-vertical_1ojeo_101 {
|
|
413
412
|
border-bottom: 1px solid var(--cody-chat-code-border-color);
|
|
414
413
|
width: 100%;
|
|
415
414
|
margin: 0.5rem 0;
|
|
416
415
|
}
|
|
417
416
|
|
|
418
|
-
.
|
|
417
|
+
._divider_1ojeo_91 {
|
|
419
418
|
border-right: 1px solid var(--cody-chat-code-border-color);
|
|
420
419
|
height: 1rem;
|
|
421
420
|
margin: 0 0.5rem;
|
|
422
421
|
}
|
|
423
422
|
|
|
424
|
-
.
|
|
423
|
+
._title_1ojeo_113 {
|
|
425
424
|
display: flex;
|
|
426
425
|
align-items: center;
|
|
427
426
|
flex-grow: 1;
|
|
@@ -429,11 +428,11 @@ kbd {
|
|
|
429
428
|
flex-wrap: wrap;
|
|
430
429
|
}
|
|
431
430
|
|
|
432
|
-
._title-
|
|
431
|
+
._title-inner_1ojeo_121 {
|
|
433
432
|
overflow-wrap: anywhere;
|
|
434
433
|
}
|
|
435
434
|
|
|
436
|
-
._toggle-matches-
|
|
435
|
+
._toggle-matches-button_1ojeo_125 {
|
|
437
436
|
width: 100%;
|
|
438
437
|
text-align: left;
|
|
439
438
|
border: none;
|
|
@@ -443,16 +442,16 @@ kbd {
|
|
|
443
442
|
color: var(--cody-chat-code-text-muted);
|
|
444
443
|
}
|
|
445
444
|
|
|
446
|
-
._toggle-matches-
|
|
445
|
+
._toggle-matches-button_1ojeo_125:hover {
|
|
447
446
|
color: inherit;
|
|
448
447
|
}
|
|
449
448
|
|
|
450
|
-
._toggle-matches-button--
|
|
449
|
+
._toggle-matches-button--expanded_1ojeo_1 {
|
|
451
450
|
position: sticky;
|
|
452
451
|
bottom: 0;
|
|
453
452
|
}
|
|
454
453
|
|
|
455
|
-
._toggle-matches-button-
|
|
454
|
+
._toggle-matches-button-text_1ojeo_1 {
|
|
456
455
|
margin-left: 0.125rem;
|
|
457
456
|
}
|
|
458
457
|
|