@sourcegraph/cody-web 0.7.0 → 0.7.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-Cjx_iNtn.mjs → agent.worker-B1CAn5Kx.mjs} +5 -5
- package/dist/agent.worker.js +2 -2
- package/dist/{browser-BpZhCiRU.mjs → browser-DJC99jis.mjs} +104 -96
- package/dist/demo/App.d.ts.map +1 -1
- package/dist/{git-log-BWpOPYwA.mjs → git-log-_sHG8Csy.mjs} +2 -2
- package/dist/{index-D2gpkgry.mjs → index-BRvf0zWs.mjs} +2 -2
- package/dist/index.js +113 -23
- package/dist/{shell-DvMNfs3M.mjs → shell-BGZM4C-m.mjs} +2 -2
- package/dist/style.css +59 -10
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ var __privateWrapper = (obj, member, setter2, getter) => ({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
var _a2, _b, _constructing, _max, _maxSize, _dispose, _disposeAfter, _fetchMethod, _size, _calculatedSize, _keyMap, _keyList, _valList, _next, _prev, _head, _tail, _free, _disposed, _sizes, _starts, _ttls, _hasDispose, _hasFetchMethod, _hasDisposeAfter, _LRUCache_instances, initializeTTLTracking_fn, _updateItemAge, _statusTTL, _setItemTTL, _isStale, initializeSizeTracking_fn, _removeItemSize, _addItemSize, _requireSize, indexes_fn, rindexes_fn, isValidIndex_fn, evict_fn, backgroundFetch_fn, isBackgroundFetch_fn, connect_fn, moveToTail_fn, _c, _d, _e, _constructing2, _f, _g, _max2, _maxSize2, _dispose2, _disposeAfter2, _fetchMethod2, _size2, _calculatedSize2, _keyMap2, _keyList2, _valList2, _next2, _prev2, _head2, _tail2, _free2, _disposed2, _sizes2, _starts2, _ttls2, _hasDispose2, _hasFetchMethod2, _hasDisposeAfter2, _LRUCache_instances2, initializeTTLTracking_fn2, _updateItemAge2, _statusTTL2, _setItemTTL2, _isStale2, initializeSizeTracking_fn2, _removeItemSize2, _addItemSize2, _requireSize2, indexes_fn2, rindexes_fn2, isValidIndex_fn2, evict_fn2, backgroundFetch_fn2, isBackgroundFetch_fn2, connect_fn2, moveToTail_fn2, _root2, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
21
|
-
import { bz as createSubscriber, bA as graphqlClient, bB as logError$2, aV as lodashExports, bC as logDebug$1, bD as isFileURI, w as wrapInActiveSpan, bE as INCLUDE_EVERYTHING_CONTEXT_FILTERS, bF as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, bG as isAbortError, b8 as isError$1, bb as isDefined, bH as onAbort, bI as CHAT_OUTPUT_TOKEN_BUDGET, bk as ModelTag, b3 as CodyIDE, bJ as isEnterpriseUser, b2 as isCodyProUser, bs as CHAT_INPUT_TOKEN_BUDGET, bK as getModelInfo, bL as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, bM as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, g as getDefaultExportFromCjs, bN as pathFunctionsForURI, bO as uriBasename, bP as uriHasPrefix, bQ as isWindows, aL as URI, bR as Utils$1, p as ps, bS as Observable, b5 as commonjsGlobal, bT as fromVSCodeEvent, bU as ClientConfigSingleton, by as PromptString, bV as isCustomModel, bW as recordErrorToSpan, bX as dependentAbortController, bY as addCustomUserAgent, bZ as addTraceparent, b_ as fetch$2, b$ as verifyResponseCode, b7 as cryptoJsExports, c0 as openCtx, c1 as extensionForLanguage, c2 as isSourcegraphToken, c3 as toRangeData, c4 as DOTCOM_URL, c5 as
|
|
21
|
+
import { bz as createSubscriber, bA as graphqlClient, bB as logError$2, aV as lodashExports, bC as logDebug$1, bD as isFileURI, w as wrapInActiveSpan, bE as INCLUDE_EVERYTHING_CONTEXT_FILTERS, bF as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, bG as isAbortError, b8 as isError$1, bb as isDefined, bH as onAbort, bI as CHAT_OUTPUT_TOKEN_BUDGET, bk as ModelTag, b3 as CodyIDE, bJ as isEnterpriseUser, b2 as isCodyProUser, bs as CHAT_INPUT_TOKEN_BUDGET, bK as getModelInfo, bL as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, bM as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, g as getDefaultExportFromCjs, bN as pathFunctionsForURI, bO as uriBasename, bP as uriHasPrefix, bQ as isWindows, aL as URI, bR as Utils$1, p as ps, bS as Observable, b5 as commonjsGlobal, bT as fromVSCodeEvent, bU as ClientConfigSingleton, by as PromptString, bV as isCustomModel, bW as recordErrorToSpan, bX as dependentAbortController, bY as addCustomUserAgent, bZ as addTraceparent, b_ as fetch$2, b$ as verifyResponseCode, b7 as cryptoJsExports, c0 as openCtx, c1 as extensionForLanguage, c2 as isSourcegraphToken, c3 as toRangeData, c4 as DOTCOM_URL, c5 as requireBase64Js, c6 as isDotCom, c7 as NetworkError, c8 as isRateLimitError, c9 as isAuthError, ca as NoOpTelemetryRecorderProvider, cb as TimestampTelemetryProcessor_1, cc as updateGlobalTelemetryInstances, cd as TelemetryRecorderProvider, t as telemetryRecorder, ce as telemetryRecorderProvider, d as dedent$1, cf as uriExtname, cg as SUPPORTED_URI_SCHEMAS, ch as convertGitCloneURLToCodebaseName, ci as require$$1$4, cj as dedupeWith$1, ck as getEditorInsertSpaces, cl as TimeoutError, cm as getActiveTraceAndSpanId, cn as isNetworkError$1, co as trace, bj as isCodyProModel, b6 as CodyTaskState, be as isEqual, cp as getAugmentedNamespace, cq as main$1, cr as setUserAgent, cs as TESTING_TELEMETRY_EXPORTER, ct as dist, bm as isMacOS, bl as CustomCommandType, bx as setDisplayPathEnvInfo, T as TokenCounterUtils, C as ContextItemSource, cu as _root, cv as _baseGetTag, cw as isObjectLike_1, cx as isObject_1, bw as isErrorLike, au as displayPath, cy as DefaultChatCommands, cz as uriParseNameAndExtension, cA as uriDirname, cB as DefaultEditCommands, an as FILE_CONTEXT_MENTION_PROVIDER, ao as SYMBOL_CONTEXT_MENTION_PROVIDER, ap as REMOTE_REPOSITORY_PROVIDER_URI, cC as promiseFactoryToObservable, cD as webMentionProvidersMetadata, cE as allMentionProvidersMetadata, cF as combineLatest$1, cG as expandToLineRange, am as displayPathBasename, av as displayLineRange, cH as offlineModeAuthStatus, cI as unauthenticatedStatus, cJ as semver, cK as truncateTextNearestLine, cL as TokenCounter, bq as View, aQ as parseMentionQuery, cM as tracer, bd as isAbortErrorOrSocketHangUp, cN as isContextWindowLimitError, cO as inputTextWithoutContextChipsFromPromptEditorState, bc as reformatBotMessageForChat, cP as truncatePromptString, b1 as hydrateAfterPostMessage, cQ as addMessageListenersForExtensionAPI, cR as createMessageAPIForExtension, cS as subscriptionDisposable, cT as CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID, cU as editorStateFromPromptString, cV as getEditorTabSize$1, bi as pluralize, cW as AbortError, cX as getEditorIndentString, b9 as RateLimitError$1, cY as logResponseHeadersToSpan, cZ as TracedError, c_ as isNodeResponse, c$ as SpanStatusCode, d0 as _, aq as REMOTE_FILE_PROVIDER_URI, as as CURRENT_REPOSITORY_DIRECTORY_PROVIDER_URI, d1 as assertFileURI, ar as REMOTE_DIRECTORY_PROVIDER_URI, at as WEB_PROVIDER_URI, d2 as setOpenCtx, d3 as GIT_OPENCTX_PROVIDER_URI, d4 as ACCOUNT_UPGRADE_URL, aZ as scanForMentionTriggerInUserTextInput, ay as LARGE_FILE_WARNING_LABEL, d5 as GENERAL_HELP_LABEL, d6 as diffLines, d7 as psDedent, d8 as defaultAuthStatus, bt as ACCOUNT_USAGE_URL, d9 as SourcegraphGraphQLAPIClient, da as networkErrorAuthStatus, db as languageFromFilename, dc as ProgrammingLanguage, dd as truncatePromptStringStart, de as posixFilePaths, df as CODY_DOC_URL, ba as CODY_FEEDBACK_URL, dg as DISCORD_URL, dh as CODY_SUPPORT_URL, bu as getRelativeChatPeriod, di as SG_BLOG_URL, dj as ACCOUNT_LIMITS_INFO_URL, dk as setLogger, dl as CODY_OLLAMA_DOCS_URL, bv as browser$3 } from "./browser-DJC99jis.mjs";
|
|
22
22
|
function _mergeNamespaces(n, m) {
|
|
23
23
|
for (var i = 0; i < m.length; i++) {
|
|
24
24
|
const e = m[i];
|
|
@@ -22787,7 +22787,7 @@ function requireBuffer() {
|
|
|
22787
22787
|
if (hasRequiredBuffer) return buffer;
|
|
22788
22788
|
hasRequiredBuffer = 1;
|
|
22789
22789
|
(function(exports2) {
|
|
22790
|
-
const base64 =
|
|
22790
|
+
const base64 = requireBase64Js();
|
|
22791
22791
|
const ieee7542 = requireIeee754();
|
|
22792
22792
|
const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
|
|
22793
22793
|
exports2.Buffer = Buffer2;
|
|
@@ -46267,7 +46267,7 @@ class CommandsProvider {
|
|
|
46267
46267
|
* Used for retreiving context for the command field in custom command
|
|
46268
46268
|
*/
|
|
46269
46269
|
async runShell(shell2) {
|
|
46270
|
-
const { getContextFileFromShell } = await import("./shell-
|
|
46270
|
+
const { getContextFileFromShell } = await import("./shell-BGZM4C-m.mjs");
|
|
46271
46271
|
return getContextFileFromShell(shell2);
|
|
46272
46272
|
}
|
|
46273
46273
|
/**
|
|
@@ -46278,7 +46278,7 @@ class CommandsProvider {
|
|
|
46278
46278
|
if (!isFileURI(uri2)) {
|
|
46279
46279
|
throw new Error("history only supported on local file paths");
|
|
46280
46280
|
}
|
|
46281
|
-
const { getContextFileFromGitLog } = await import("./git-log-
|
|
46281
|
+
const { getContextFileFromGitLog } = await import("./git-log-_sHG8Csy.mjs");
|
|
46282
46282
|
return getContextFileFromGitLog(uri2, options);
|
|
46283
46283
|
}
|
|
46284
46284
|
dispose() {
|
|
@@ -172046,7 +172046,7 @@ async function registerDebugCommands(context2, disposables) {
|
|
|
172046
172046
|
}
|
|
172047
172047
|
async function tryRegisterTutorial(context2, disposables) {
|
|
172048
172048
|
if (!isRunningInsideAgent()) {
|
|
172049
|
-
const { registerInteractiveTutorial } = await import("./index-
|
|
172049
|
+
const { registerInteractiveTutorial } = await import("./index-BRvf0zWs.mjs");
|
|
172050
172050
|
registerInteractiveTutorial(context2).then((disposable) => disposables.push(...disposable));
|
|
172051
172051
|
}
|
|
172052
172052
|
}
|
package/dist/agent.worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./agent.worker-
|
|
2
|
-
import "./browser-
|
|
1
|
+
import "./agent.worker-B1CAn5Kx.mjs";
|
|
2
|
+
import "./browser-DJC99jis.mjs";
|
|
@@ -15696,98 +15696,106 @@ function fromVSCodeEvent(event, getInitialValue) {
|
|
|
15696
15696
|
});
|
|
15697
15697
|
}
|
|
15698
15698
|
var base64Js = {};
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15707
|
-
|
|
15708
|
-
|
|
15709
|
-
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15726
|
-
|
|
15727
|
-
|
|
15728
|
-
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15737
|
-
|
|
15738
|
-
|
|
15739
|
-
|
|
15740
|
-
|
|
15741
|
-
|
|
15742
|
-
|
|
15743
|
-
|
|
15744
|
-
|
|
15745
|
-
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15755
|
-
|
|
15756
|
-
|
|
15757
|
-
|
|
15758
|
-
|
|
15759
|
-
|
|
15760
|
-
|
|
15761
|
-
|
|
15762
|
-
|
|
15763
|
-
|
|
15764
|
-
|
|
15765
|
-
|
|
15766
|
-
|
|
15767
|
-
|
|
15768
|
-
|
|
15769
|
-
|
|
15770
|
-
|
|
15771
|
-
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
|
|
15777
|
-
|
|
15778
|
-
|
|
15779
|
-
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
)
|
|
15783
|
-
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
)
|
|
15699
|
+
var hasRequiredBase64Js;
|
|
15700
|
+
function requireBase64Js() {
|
|
15701
|
+
if (hasRequiredBase64Js) return base64Js;
|
|
15702
|
+
hasRequiredBase64Js = 1;
|
|
15703
|
+
base64Js.byteLength = byteLength;
|
|
15704
|
+
base64Js.toByteArray = toByteArray;
|
|
15705
|
+
base64Js.fromByteArray = fromByteArray;
|
|
15706
|
+
var lookup = [];
|
|
15707
|
+
var revLookup = [];
|
|
15708
|
+
var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
15709
|
+
var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
15710
|
+
for (var i3 = 0, len = code.length; i3 < len; ++i3) {
|
|
15711
|
+
lookup[i3] = code[i3];
|
|
15712
|
+
revLookup[code.charCodeAt(i3)] = i3;
|
|
15713
|
+
}
|
|
15714
|
+
revLookup["-".charCodeAt(0)] = 62;
|
|
15715
|
+
revLookup["_".charCodeAt(0)] = 63;
|
|
15716
|
+
function getLens(b64) {
|
|
15717
|
+
var len2 = b64.length;
|
|
15718
|
+
if (len2 % 4 > 0) {
|
|
15719
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
15720
|
+
}
|
|
15721
|
+
var validLen = b64.indexOf("=");
|
|
15722
|
+
if (validLen === -1) validLen = len2;
|
|
15723
|
+
var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
|
|
15724
|
+
return [validLen, placeHoldersLen];
|
|
15725
|
+
}
|
|
15726
|
+
function byteLength(b64) {
|
|
15727
|
+
var lens = getLens(b64);
|
|
15728
|
+
var validLen = lens[0];
|
|
15729
|
+
var placeHoldersLen = lens[1];
|
|
15730
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
15731
|
+
}
|
|
15732
|
+
function _byteLength(b64, validLen, placeHoldersLen) {
|
|
15733
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
15734
|
+
}
|
|
15735
|
+
function toByteArray(b64) {
|
|
15736
|
+
var tmp;
|
|
15737
|
+
var lens = getLens(b64);
|
|
15738
|
+
var validLen = lens[0];
|
|
15739
|
+
var placeHoldersLen = lens[1];
|
|
15740
|
+
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
|
|
15741
|
+
var curByte = 0;
|
|
15742
|
+
var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
|
|
15743
|
+
var i4;
|
|
15744
|
+
for (i4 = 0; i4 < len2; i4 += 4) {
|
|
15745
|
+
tmp = revLookup[b64.charCodeAt(i4)] << 18 | revLookup[b64.charCodeAt(i4 + 1)] << 12 | revLookup[b64.charCodeAt(i4 + 2)] << 6 | revLookup[b64.charCodeAt(i4 + 3)];
|
|
15746
|
+
arr[curByte++] = tmp >> 16 & 255;
|
|
15747
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
15748
|
+
arr[curByte++] = tmp & 255;
|
|
15749
|
+
}
|
|
15750
|
+
if (placeHoldersLen === 2) {
|
|
15751
|
+
tmp = revLookup[b64.charCodeAt(i4)] << 2 | revLookup[b64.charCodeAt(i4 + 1)] >> 4;
|
|
15752
|
+
arr[curByte++] = tmp & 255;
|
|
15753
|
+
}
|
|
15754
|
+
if (placeHoldersLen === 1) {
|
|
15755
|
+
tmp = revLookup[b64.charCodeAt(i4)] << 10 | revLookup[b64.charCodeAt(i4 + 1)] << 4 | revLookup[b64.charCodeAt(i4 + 2)] >> 2;
|
|
15756
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
15757
|
+
arr[curByte++] = tmp & 255;
|
|
15758
|
+
}
|
|
15759
|
+
return arr;
|
|
15760
|
+
}
|
|
15761
|
+
function tripletToBase64(num) {
|
|
15762
|
+
return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
|
|
15763
|
+
}
|
|
15764
|
+
function encodeChunk(uint8, start, end) {
|
|
15765
|
+
var tmp;
|
|
15766
|
+
var output = [];
|
|
15767
|
+
for (var i4 = start; i4 < end; i4 += 3) {
|
|
15768
|
+
tmp = (uint8[i4] << 16 & 16711680) + (uint8[i4 + 1] << 8 & 65280) + (uint8[i4 + 2] & 255);
|
|
15769
|
+
output.push(tripletToBase64(tmp));
|
|
15770
|
+
}
|
|
15771
|
+
return output.join("");
|
|
15772
|
+
}
|
|
15773
|
+
function fromByteArray(uint8) {
|
|
15774
|
+
var tmp;
|
|
15775
|
+
var len2 = uint8.length;
|
|
15776
|
+
var extraBytes = len2 % 3;
|
|
15777
|
+
var parts = [];
|
|
15778
|
+
var maxChunkLength = 16383;
|
|
15779
|
+
for (var i4 = 0, len22 = len2 - extraBytes; i4 < len22; i4 += maxChunkLength) {
|
|
15780
|
+
parts.push(encodeChunk(uint8, i4, i4 + maxChunkLength > len22 ? len22 : i4 + maxChunkLength));
|
|
15781
|
+
}
|
|
15782
|
+
if (extraBytes === 1) {
|
|
15783
|
+
tmp = uint8[len2 - 1];
|
|
15784
|
+
parts.push(
|
|
15785
|
+
lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="
|
|
15786
|
+
);
|
|
15787
|
+
} else if (extraBytes === 2) {
|
|
15788
|
+
tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
|
|
15789
|
+
parts.push(
|
|
15790
|
+
lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
|
|
15791
|
+
);
|
|
15792
|
+
}
|
|
15793
|
+
return parts.join("");
|
|
15788
15794
|
}
|
|
15789
|
-
return
|
|
15795
|
+
return base64Js;
|
|
15790
15796
|
}
|
|
15797
|
+
var base64JsExports = requireBase64Js();
|
|
15798
|
+
const base64 = /* @__PURE__ */ getDefaultExportFromCjs(base64JsExports);
|
|
15791
15799
|
var __defProp2 = Object.defineProperty;
|
|
15792
15800
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15793
15801
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -15852,7 +15860,7 @@ var _Tiktoken = class {
|
|
|
15852
15860
|
return memo;
|
|
15853
15861
|
}, {});
|
|
15854
15862
|
for (const [token, rank] of Object.entries(uncompressed)) {
|
|
15855
|
-
const bytes =
|
|
15863
|
+
const bytes = base64.toByteArray(token);
|
|
15856
15864
|
this.rankMap.set(bytes.join(","), rank);
|
|
15857
15865
|
this.textMap.set(rank, bytes);
|
|
15858
15866
|
}
|
|
@@ -28196,9 +28204,9 @@ var ErrorCodes;
|
|
|
28196
28204
|
ErrorCodes2.serverErrorEnd = -32e3;
|
|
28197
28205
|
})(ErrorCodes || (messages.ErrorCodes = ErrorCodes = {}));
|
|
28198
28206
|
class ResponseError extends Error {
|
|
28199
|
-
constructor(
|
|
28207
|
+
constructor(code, message, data) {
|
|
28200
28208
|
super(message);
|
|
28201
|
-
this.code = is.number(
|
|
28209
|
+
this.code = is.number(code) ? code : ErrorCodes.UnknownErrorCode;
|
|
28202
28210
|
this.data = data;
|
|
28203
28211
|
Object.setPrototypeOf(this, ResponseError.prototype);
|
|
28204
28212
|
}
|
|
@@ -29703,9 +29711,9 @@ var connection = {};
|
|
|
29703
29711
|
ConnectionErrors2[ConnectionErrors2["AlreadyListening"] = 3] = "AlreadyListening";
|
|
29704
29712
|
})(ConnectionErrors || (exports.ConnectionErrors = ConnectionErrors = {}));
|
|
29705
29713
|
class ConnectionError extends Error {
|
|
29706
|
-
constructor(
|
|
29714
|
+
constructor(code, message) {
|
|
29707
29715
|
super(message);
|
|
29708
|
-
this.code =
|
|
29716
|
+
this.code = code;
|
|
29709
29717
|
Object.setPrototypeOf(this, ConnectionError.prototype);
|
|
29710
29718
|
}
|
|
29711
29719
|
}
|
|
@@ -31281,7 +31289,7 @@ export {
|
|
|
31281
31289
|
isSourcegraphToken as c2,
|
|
31282
31290
|
toRangeData as c3,
|
|
31283
31291
|
DOTCOM_URL as c4,
|
|
31284
|
-
|
|
31292
|
+
requireBase64Js as c5,
|
|
31285
31293
|
isDotCom as c6,
|
|
31286
31294
|
NetworkError as c7,
|
|
31287
31295
|
isRateLimitError as c8,
|
package/dist/demo/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../demo/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAW/B,OAAO,2CAA2C,CAAA;AA+BlD,eAAO,MAAM,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../demo/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAW/B,OAAO,2CAA2C,CAAA;AA+BlD,eAAO,MAAM,GAAG,EAAE,EAYjB,CAAA"}
|
|
@@ -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-B1CAn5Kx.mjs";
|
|
2
|
+
import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-DJC99jis.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, c as updateRangeMultipleChanges, d as commands, f as executeEdit, T as TERMINAL_EDIT_STATES, g as ThemeColor, h as languages, C as CodeLens, i as setTutorialUri, j as logSidebarClick, k 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, c as updateRangeMultipleChanges, d as commands, f as executeEdit, T as TERMINAL_EDIT_STATES, g as ThemeColor, h as languages, C as CodeLens, i as setTutorialUri, j as logSidebarClick, k as Disposable } from "./agent.worker-B1CAn5Kx.mjs";
|
|
5
|
+
import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-DJC99jis.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 displayPathBasename, an as FILE_CONTEXT_MENTION_PROVIDER, ao as SYMBOL_CONTEXT_MENTION_PROVIDER, ap as REMOTE_REPOSITORY_PROVIDER_URI, aq as REMOTE_FILE_PROVIDER_URI, ar as REMOTE_DIRECTORY_PROVIDER_URI, as as CURRENT_REPOSITORY_DIRECTORY_PROVIDER_URI, at as WEB_PROVIDER_URI, au as displayPath, av as displayLineRange, aw as displayPathDirname, ax as IGNORED_FILE_WARNING_LABEL, ay as LARGE_FILE_WARNING_LABEL, az as Ei$1, aA as xe$2, aB as V$2, aC as Es, aD as U$2, aE as e, aF as Ns, aG as an, aH as gs, aI as serializeContextItem, aJ as CONTEXT_ITEM_MENTION_NODE_TYPE, aK as contextItemMentionNodeDisplayText, C as ContextItemSource, aL as URI, aM as qr, aN as _$2, aO as TEMPLATE_INPUT_NODE_TYPE, aP as N$2, aQ as parseMentionQuery, aR as NO_SYMBOL_MATCHES_HELP_LABEL, aS as FILE_RANGE_TOOLTIP_LABEL, aT as proxyExtensionAPI, aU as createMessageAPIForWebview, aV as lodashExports, aW as memoizeLastValue, aX as toSerializedPromptEditorValue, aY as ri$1, aZ as scanForMentionTriggerInUserTextInput, a_ as fs, a$ as Ts, b0 as ps, b1 as hydrateAfterPostMessage, b2 as isCodyProUser, b3 as CodyIDE, b4 as webviewOpenURIForContextItem, b5 as commonjsGlobal, b6 as CodyTaskState, b7 as cryptoJsExports, b8 as isError, b9 as RateLimitError, ba as CODY_FEEDBACK_URL, bb as isDefined, bc as reformatBotMessageForChat, p as ps$1, bd as isAbortErrorOrSocketHangUp, be as isEqual, bf as serializedPromptEditorStateFromChatMessage, bg as contextItemsFromPromptEditorValue, bh as filterContextItemsFromPromptEditorValue, bi as pluralize, bj as isCodyProModel, bk as ModelTag, bl as CustomCommandType, bm as isMacOS, bn as textContentFromSerializedLexicalNode, bo as FAST_CHAT_INPUT_TOKEN_BUDGET, bp as deserializeContextItem, bq as View, br as truncateTextStart, bs as CHAT_INPUT_TOKEN_BUDGET, bt as ACCOUNT_USAGE_URL, bu as getRelativeChatPeriod, bv as browser, bw as isErrorLike, bx as setDisplayPathEnvInfo, by as PromptString } from "./browser-
|
|
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 displayPathBasename, an as FILE_CONTEXT_MENTION_PROVIDER, ao as SYMBOL_CONTEXT_MENTION_PROVIDER, ap as REMOTE_REPOSITORY_PROVIDER_URI, aq as REMOTE_FILE_PROVIDER_URI, ar as REMOTE_DIRECTORY_PROVIDER_URI, as as CURRENT_REPOSITORY_DIRECTORY_PROVIDER_URI, at as WEB_PROVIDER_URI, au as displayPath, av as displayLineRange, aw as displayPathDirname, ax as IGNORED_FILE_WARNING_LABEL, ay as LARGE_FILE_WARNING_LABEL, az as Ei$1, aA as xe$2, aB as V$2, aC as Es, aD as U$2, aE as e, aF as Ns, aG as an, aH as gs, aI as serializeContextItem, aJ as CONTEXT_ITEM_MENTION_NODE_TYPE, aK as contextItemMentionNodeDisplayText, C as ContextItemSource, aL as URI, aM as qr, aN as _$2, aO as TEMPLATE_INPUT_NODE_TYPE, aP as N$2, aQ as parseMentionQuery, aR as NO_SYMBOL_MATCHES_HELP_LABEL, aS as FILE_RANGE_TOOLTIP_LABEL, aT as proxyExtensionAPI, aU as createMessageAPIForWebview, aV as lodashExports, aW as memoizeLastValue, aX as toSerializedPromptEditorValue, aY as ri$1, aZ as scanForMentionTriggerInUserTextInput, a_ as fs, a$ as Ts, b0 as ps, b1 as hydrateAfterPostMessage, b2 as isCodyProUser, b3 as CodyIDE, b4 as webviewOpenURIForContextItem, b5 as commonjsGlobal, b6 as CodyTaskState, b7 as cryptoJsExports, b8 as isError, b9 as RateLimitError, ba as CODY_FEEDBACK_URL, bb as isDefined, bc as reformatBotMessageForChat, p as ps$1, bd as isAbortErrorOrSocketHangUp, be as isEqual, bf as serializedPromptEditorStateFromChatMessage, bg as contextItemsFromPromptEditorValue, bh as filterContextItemsFromPromptEditorValue, bi as pluralize, bj as isCodyProModel, bk as ModelTag, bl as CustomCommandType, bm as isMacOS, bn as textContentFromSerializedLexicalNode, bo as FAST_CHAT_INPUT_TOKEN_BUDGET, bp as deserializeContextItem, bq as View, br as truncateTextStart, bs as CHAT_INPUT_TOKEN_BUDGET, bt as ACCOUNT_USAGE_URL, bu as getRelativeChatPeriod, bv as browser, bw as isErrorLike, bx as setDisplayPathEnvInfo, by as PromptString } from "./browser-DJC99jis.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: {} };
|
|
@@ -16894,6 +16894,8 @@ const $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 = $5d3850c4d0b4e6c7$export$3ddf2
|
|
|
16894
16894
|
const $5d3850c4d0b4e6c7$export$602eac185826482c = $5d3850c4d0b4e6c7$export$dad7c95542bacce0;
|
|
16895
16895
|
const $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff = $5d3850c4d0b4e6c7$export$bd1d06c79be19e17;
|
|
16896
16896
|
const $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 = $5d3850c4d0b4e6c7$export$b6d9565de1e068cf;
|
|
16897
|
+
const $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f7638e4a34b909;
|
|
16898
|
+
const $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;
|
|
16897
16899
|
var V = '[cmdk-group=""]', X = '[cmdk-group-items=""]', ge = '[cmdk-group-heading=""]', Y = '[cmdk-item=""]', le = `${Y}:not([aria-disabled="true"])`, Q = "cmdk-item-select", M = "data-value", Re = (r2, o2, n2) => W(r2, o2, n2), ue = React.createContext(void 0), G = () => React.useContext(ue), de = React.createContext(void 0), Z = () => React.useContext(de), fe = React.createContext(void 0), me = React.forwardRef((r2, o2) => {
|
|
16898
16900
|
let n2 = k(() => {
|
|
16899
16901
|
var e2, s2;
|
|
@@ -17401,10 +17403,10 @@ const COMMON_WRAPPERS = [
|
|
|
17401
17403
|
value: promptEditorConfig
|
|
17402
17404
|
}
|
|
17403
17405
|
];
|
|
17404
|
-
const outerContainer = "_outer-
|
|
17405
|
-
const errorContainer = "_error-
|
|
17406
|
-
const error$1 = "
|
|
17407
|
-
const closeBtn = "_close-
|
|
17406
|
+
const outerContainer = "_outer-container_xb9w0_1";
|
|
17407
|
+
const errorContainer = "_error-container_xb9w0_11";
|
|
17408
|
+
const error$1 = "_error_xb9w0_11";
|
|
17409
|
+
const closeBtn = "_close-btn_xb9w0_29";
|
|
17408
17410
|
const styles$f = {
|
|
17409
17411
|
outerContainer,
|
|
17410
17412
|
errorContainer,
|
|
@@ -74992,11 +74994,21 @@ const SettingsTab = () => {
|
|
|
74992
74994
|
"settings"
|
|
74993
74995
|
) });
|
|
74994
74996
|
};
|
|
74995
|
-
const tabsContainer = "_tabs-
|
|
74996
|
-
const activeTab = "_active-
|
|
74997
|
+
const tabsContainer = "_tabs-container_zt8hy_1";
|
|
74998
|
+
const activeTab = "_active-tab_zt8hy_7";
|
|
74999
|
+
const dialogOverlay = "_dialog-overlay_zt8hy_1";
|
|
75000
|
+
const dialogContent = "_dialog-content_zt8hy_1";
|
|
75001
|
+
const dialogTitle = "_dialog-title_zt8hy_1";
|
|
75002
|
+
const dialogDescription = "_dialog-description_zt8hy_1";
|
|
75003
|
+
const dialogFooter = "_dialog-footer_zt8hy_1";
|
|
74997
75004
|
const styles$2 = {
|
|
74998
75005
|
tabsContainer,
|
|
74999
|
-
activeTab
|
|
75006
|
+
activeTab,
|
|
75007
|
+
dialogOverlay,
|
|
75008
|
+
dialogContent,
|
|
75009
|
+
dialogTitle,
|
|
75010
|
+
dialogDescription,
|
|
75011
|
+
dialogFooter
|
|
75000
75012
|
};
|
|
75001
75013
|
const TabButton = forwardRef(
|
|
75002
75014
|
({
|
|
@@ -75048,7 +75060,7 @@ const TabsBar = ({ currentView, setView, IDE, onDownloadChatClick }) => {
|
|
|
75048
75060
|
view: View.Chat,
|
|
75049
75061
|
title: "Chat",
|
|
75050
75062
|
Icon: MessagesSquare,
|
|
75051
|
-
|
|
75063
|
+
subActions: [
|
|
75052
75064
|
{
|
|
75053
75065
|
title: "New Chat",
|
|
75054
75066
|
alwaysShowTitle: true,
|
|
@@ -75068,7 +75080,7 @@ const TabsBar = ({ currentView, setView, IDE, onDownloadChatClick }) => {
|
|
|
75068
75080
|
view: View.History,
|
|
75069
75081
|
title: "History",
|
|
75070
75082
|
Icon: History,
|
|
75071
|
-
|
|
75083
|
+
subActions: [
|
|
75072
75084
|
{
|
|
75073
75085
|
title: "Export History",
|
|
75074
75086
|
Icon: Download,
|
|
@@ -75079,9 +75091,17 @@ const TabsBar = ({ currentView, setView, IDE, onDownloadChatClick }) => {
|
|
|
75079
75091
|
title: "Clear Chat History",
|
|
75080
75092
|
Icon: Trash2,
|
|
75081
75093
|
command: "cody.chat.history.clear",
|
|
75082
|
-
//
|
|
75083
|
-
//
|
|
75084
|
-
// confirmation.
|
|
75094
|
+
// Show Cody Chat UI confirmation modal with this message only for
|
|
75095
|
+
// Cody Web. All other IDE either implements their own native confirmation UI
|
|
75096
|
+
// or don't have confirmation UI at all.
|
|
75097
|
+
confirmation: IDE === CodyIDE.Web ? {
|
|
75098
|
+
title: "Are you sure you want to delete all of your chats?",
|
|
75099
|
+
description: "You will not be able to recover them once deleted.",
|
|
75100
|
+
confirmationAction: "Delete all chats"
|
|
75101
|
+
} : void 0,
|
|
75102
|
+
// We don't have a way to request user confirmation in Cody Agent
|
|
75103
|
+
// (vscode.window.showWarningMessage is overridable there), so bypass
|
|
75104
|
+
// confirmation in cody agent and use confirmation UI above.
|
|
75085
75105
|
arg: IDE === CodyIDE.VSCode ? void 0 : "clear-all-no-confirm"
|
|
75086
75106
|
}
|
|
75087
75107
|
].filter(isDefined),
|
|
@@ -75109,7 +75129,7 @@ const TabsBar = ({ currentView, setView, IDE, onDownloadChatClick }) => {
|
|
|
75109
75129
|
].filter(isDefined),
|
|
75110
75130
|
[IDE, webviewType, onDownloadChatClick, multipleWebviewsEnabled]
|
|
75111
75131
|
);
|
|
75112
|
-
const
|
|
75132
|
+
const currentViewSubActions = ((_a = tabItems.find((tab2) => tab2.view === currentView)) == null ? void 0 : _a.subActions) ?? [];
|
|
75113
75133
|
const handleClick = useCallback(
|
|
75114
75134
|
(view, command, changesView) => {
|
|
75115
75135
|
if (command) {
|
|
@@ -75136,35 +75156,105 @@ const TabsBar = ({ currentView, setView, IDE, onDownloadChatClick }) => {
|
|
|
75136
75156
|
Icon: Icon2,
|
|
75137
75157
|
view,
|
|
75138
75158
|
title: title2,
|
|
75139
|
-
command,
|
|
75140
75159
|
isActive: currentView === view,
|
|
75141
75160
|
onClick: () => handleClick(view, command, changesView),
|
|
75142
75161
|
"data-testid": `tab-${view}`
|
|
75143
75162
|
}
|
|
75144
75163
|
) }, view)) }),
|
|
75145
|
-
/* @__PURE__ */ jsx("div", { className: "tw-flex tw-gap-4 [&_>_*]:tw-flex-shrink-0", children:
|
|
75146
|
-
({
|
|
75164
|
+
/* @__PURE__ */ jsx("div", { className: "tw-flex tw-gap-4 [&_>_*]:tw-flex-shrink-0", children: currentViewSubActions.map(
|
|
75165
|
+
({
|
|
75166
|
+
Icon: Icon2,
|
|
75167
|
+
command,
|
|
75168
|
+
title: title2,
|
|
75169
|
+
alwaysShowTitle,
|
|
75170
|
+
tooltipExtra,
|
|
75171
|
+
arg,
|
|
75172
|
+
callback,
|
|
75173
|
+
confirmation
|
|
75174
|
+
}) => /* @__PURE__ */ jsx(Fragment$1, { children: confirmation ? /* @__PURE__ */ jsx(
|
|
75175
|
+
ActionButtonWithConfirmation,
|
|
75176
|
+
{
|
|
75177
|
+
title: title2,
|
|
75178
|
+
Icon: Icon2,
|
|
75179
|
+
alwaysShowTitle,
|
|
75180
|
+
tooltipExtra,
|
|
75181
|
+
dialogTitle: confirmation.title,
|
|
75182
|
+
dialogDescription: confirmation.description,
|
|
75183
|
+
dialogConfirmAction: confirmation.confirmationAction,
|
|
75184
|
+
onConfirm: () => callback ? callback() : getVSCodeAPI().postMessage({
|
|
75185
|
+
command: "command",
|
|
75186
|
+
id: command,
|
|
75187
|
+
arg
|
|
75188
|
+
})
|
|
75189
|
+
}
|
|
75190
|
+
) : /* @__PURE__ */ jsx(
|
|
75147
75191
|
TabButton,
|
|
75148
75192
|
{
|
|
75149
75193
|
Icon: Icon2,
|
|
75150
75194
|
title: title2,
|
|
75151
75195
|
alwaysShowTitle,
|
|
75152
75196
|
tooltipExtra,
|
|
75153
|
-
command,
|
|
75154
75197
|
onClick: () => callback ? callback() : getVSCodeAPI().postMessage({
|
|
75155
75198
|
command: "command",
|
|
75156
75199
|
id: command,
|
|
75157
75200
|
arg
|
|
75158
75201
|
}),
|
|
75159
75202
|
prominent: true
|
|
75160
|
-
}
|
|
75161
|
-
|
|
75162
|
-
)
|
|
75203
|
+
}
|
|
75204
|
+
) }, command)
|
|
75163
75205
|
) })
|
|
75164
75206
|
]
|
|
75165
75207
|
}
|
|
75166
75208
|
);
|
|
75167
75209
|
};
|
|
75210
|
+
const ActionButtonWithConfirmation = (props) => {
|
|
75211
|
+
const {
|
|
75212
|
+
title: title2,
|
|
75213
|
+
Icon: Icon2,
|
|
75214
|
+
prominent,
|
|
75215
|
+
alwaysShowTitle,
|
|
75216
|
+
tooltipExtra,
|
|
75217
|
+
onConfirm,
|
|
75218
|
+
dialogTitle: dialogTitle2,
|
|
75219
|
+
dialogConfirmAction,
|
|
75220
|
+
dialogDescription: dialogDescription2
|
|
75221
|
+
} = props;
|
|
75222
|
+
const [state, setState] = useState(false);
|
|
75223
|
+
return /* @__PURE__ */ jsxs($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { open: state, onOpenChange: setState, children: [
|
|
75224
|
+
/* @__PURE__ */ jsx(
|
|
75225
|
+
TabButton,
|
|
75226
|
+
{
|
|
75227
|
+
Icon: Icon2,
|
|
75228
|
+
title: title2,
|
|
75229
|
+
alwaysShowTitle,
|
|
75230
|
+
tooltipExtra,
|
|
75231
|
+
prominent,
|
|
75232
|
+
onClick: () => setState(true)
|
|
75233
|
+
}
|
|
75234
|
+
),
|
|
75235
|
+
/* @__PURE__ */ jsxs($5d3850c4d0b4e6c7$export$602eac185826482c, { children: [
|
|
75236
|
+
/* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { className: styles$2.dialogOverlay }),
|
|
75237
|
+
/* @__PURE__ */ jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { className: styles$2.dialogContent, "data-cody-ui-dialog": true, children: [
|
|
75238
|
+
/* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$f99233281efd08a0, { className: styles$2.dialogTitle, children: dialogTitle2 }),
|
|
75239
|
+
/* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$393edc798c47379d, { className: styles$2.dialogDescription, children: dialogDescription2 }),
|
|
75240
|
+
/* @__PURE__ */ jsxs("footer", { className: styles$2.dialogFooter, children: [
|
|
75241
|
+
/* @__PURE__ */ jsx(Button3, { variant: "secondary", onClick: () => setState(false), children: "Cancel" }),
|
|
75242
|
+
/* @__PURE__ */ jsx(
|
|
75243
|
+
Button3,
|
|
75244
|
+
{
|
|
75245
|
+
variant: "default",
|
|
75246
|
+
onClick: () => {
|
|
75247
|
+
onConfirm();
|
|
75248
|
+
setState(false);
|
|
75249
|
+
},
|
|
75250
|
+
children: dialogConfirmAction
|
|
75251
|
+
}
|
|
75252
|
+
)
|
|
75253
|
+
] })
|
|
75254
|
+
] })
|
|
75255
|
+
] })
|
|
75256
|
+
] });
|
|
75257
|
+
};
|
|
75168
75258
|
const CodyPanel = ({
|
|
75169
75259
|
view,
|
|
75170
75260
|
setView,
|
|
@@ -75440,8 +75530,8 @@ function useVSCodeAPI(input) {
|
|
|
75440
75530
|
return vscodeAPI;
|
|
75441
75531
|
}, [client, createNewChat, activeWebviewPanelIDRef]);
|
|
75442
75532
|
}
|
|
75443
|
-
const root$1 = "
|
|
75444
|
-
const container = "
|
|
75533
|
+
const root$1 = "_root_maej5_2";
|
|
75534
|
+
const container = "_container_maej5_10";
|
|
75445
75535
|
const styles$1 = {
|
|
75446
75536
|
root: root$1,
|
|
75447
75537
|
container
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as util, 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 { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-
|
|
1
|
+
import { u as util, 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-B1CAn5Kx.mjs";
|
|
2
|
+
import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-DJC99jis.mjs";
|
|
3
3
|
var define_process_default = { env: {} };
|
|
4
4
|
const _exec = util.promisify(exec);
|
|
5
5
|
async function getContextFileFromShell(command) {
|