@sourcegraph/cody-web 0.7.6 → 0.7.7
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-cEJ-Id1V.mjs → agent.worker-BZzA02C_.mjs} +514 -349
- package/dist/agent.worker.js +2 -2
- package/dist/{browser-5V4RMNo3.mjs → browser-hDxNMh5y.mjs} +222 -210
- package/dist/{git-log-DUAthDkb.mjs → git-log-PGCFF8k9.mjs} +2 -2
- package/dist/{index-2bvntcGe.mjs → index-CoR5ltqq.mjs} +2 -2
- package/dist/index.js +935 -959
- package/dist/{shell-w-Sycwnw.mjs → shell-CWTEC0Ll.mjs} +2 -2
- package/dist/style.css +52 -71
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/agent.worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./agent.worker-
|
|
2
|
-
import "./browser-
|
|
1
|
+
import "./agent.worker-BZzA02C_.mjs";
|
|
2
|
+
import "./browser-hDxNMh5y.mjs";
|
|
@@ -15460,6 +15460,25 @@ const NO_SYMBOL_MATCHES_HELP_LABEL = " (language extensions may be loading)";
|
|
|
15460
15460
|
const FILE_RANGE_TOOLTIP_LABEL = "Type a line range to include, e.g. 5-10...";
|
|
15461
15461
|
const LARGE_FILE_WARNING_LABEL = "File too large. Add line range with : or use @# to choose a symbol";
|
|
15462
15462
|
const IGNORED_FILE_WARNING_LABEL = "File ignored by an admin setting.";
|
|
15463
|
+
var DefaultChatCommands = /* @__PURE__ */ ((DefaultChatCommands2) => {
|
|
15464
|
+
DefaultChatCommands2["Explain"] = "explain";
|
|
15465
|
+
DefaultChatCommands2["Unit"] = "unit";
|
|
15466
|
+
DefaultChatCommands2["Smell"] = "smell";
|
|
15467
|
+
DefaultChatCommands2["Custom"] = "custom-chat";
|
|
15468
|
+
return DefaultChatCommands2;
|
|
15469
|
+
})(DefaultChatCommands || {});
|
|
15470
|
+
var DefaultEditCommands = /* @__PURE__ */ ((DefaultEditCommands2) => {
|
|
15471
|
+
DefaultEditCommands2["Test"] = "test";
|
|
15472
|
+
DefaultEditCommands2["Doc"] = "doc";
|
|
15473
|
+
DefaultEditCommands2["Edit"] = "edit";
|
|
15474
|
+
DefaultEditCommands2["Custom"] = "custom-edit";
|
|
15475
|
+
return DefaultEditCommands2;
|
|
15476
|
+
})(DefaultEditCommands || {});
|
|
15477
|
+
var CustomCommandType = /* @__PURE__ */ ((CustomCommandType2) => {
|
|
15478
|
+
CustomCommandType2["Workspace"] = "workspace";
|
|
15479
|
+
CustomCommandType2["User"] = "user";
|
|
15480
|
+
return CustomCommandType2;
|
|
15481
|
+
})(CustomCommandType || {});
|
|
15463
15482
|
function hydrateAfterPostMessage(value, hydrateUri) {
|
|
15464
15483
|
if (isDehydratedUri(value)) {
|
|
15465
15484
|
return hydrateUri(value);
|
|
@@ -15743,106 +15762,98 @@ function startWith(value) {
|
|
|
15743
15762
|
});
|
|
15744
15763
|
}
|
|
15745
15764
|
var base64Js = {};
|
|
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
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
|
|
15807
|
-
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15817
|
-
|
|
15818
|
-
|
|
15819
|
-
|
|
15820
|
-
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
|
|
15830
|
-
|
|
15831
|
-
|
|
15832
|
-
|
|
15833
|
-
|
|
15834
|
-
|
|
15835
|
-
tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
|
|
15836
|
-
parts.push(
|
|
15837
|
-
lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
|
|
15838
|
-
);
|
|
15839
|
-
}
|
|
15840
|
-
return parts.join("");
|
|
15765
|
+
base64Js.byteLength = byteLength;
|
|
15766
|
+
base64Js.toByteArray = toByteArray;
|
|
15767
|
+
base64Js.fromByteArray = fromByteArray;
|
|
15768
|
+
var lookup = [];
|
|
15769
|
+
var revLookup = [];
|
|
15770
|
+
var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
15771
|
+
var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
15772
|
+
for (var i$1 = 0, len = code.length; i$1 < len; ++i$1) {
|
|
15773
|
+
lookup[i$1] = code[i$1];
|
|
15774
|
+
revLookup[code.charCodeAt(i$1)] = i$1;
|
|
15775
|
+
}
|
|
15776
|
+
revLookup["-".charCodeAt(0)] = 62;
|
|
15777
|
+
revLookup["_".charCodeAt(0)] = 63;
|
|
15778
|
+
function getLens(b64) {
|
|
15779
|
+
var len = b64.length;
|
|
15780
|
+
if (len % 4 > 0) {
|
|
15781
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
15782
|
+
}
|
|
15783
|
+
var validLen = b64.indexOf("=");
|
|
15784
|
+
if (validLen === -1) validLen = len;
|
|
15785
|
+
var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
|
|
15786
|
+
return [validLen, placeHoldersLen];
|
|
15787
|
+
}
|
|
15788
|
+
function byteLength(b64) {
|
|
15789
|
+
var lens = getLens(b64);
|
|
15790
|
+
var validLen = lens[0];
|
|
15791
|
+
var placeHoldersLen = lens[1];
|
|
15792
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
15793
|
+
}
|
|
15794
|
+
function _byteLength(b64, validLen, placeHoldersLen) {
|
|
15795
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
15796
|
+
}
|
|
15797
|
+
function toByteArray(b64) {
|
|
15798
|
+
var tmp;
|
|
15799
|
+
var lens = getLens(b64);
|
|
15800
|
+
var validLen = lens[0];
|
|
15801
|
+
var placeHoldersLen = lens[1];
|
|
15802
|
+
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
|
|
15803
|
+
var curByte = 0;
|
|
15804
|
+
var len = placeHoldersLen > 0 ? validLen - 4 : validLen;
|
|
15805
|
+
var i3;
|
|
15806
|
+
for (i3 = 0; i3 < len; i3 += 4) {
|
|
15807
|
+
tmp = revLookup[b64.charCodeAt(i3)] << 18 | revLookup[b64.charCodeAt(i3 + 1)] << 12 | revLookup[b64.charCodeAt(i3 + 2)] << 6 | revLookup[b64.charCodeAt(i3 + 3)];
|
|
15808
|
+
arr[curByte++] = tmp >> 16 & 255;
|
|
15809
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
15810
|
+
arr[curByte++] = tmp & 255;
|
|
15811
|
+
}
|
|
15812
|
+
if (placeHoldersLen === 2) {
|
|
15813
|
+
tmp = revLookup[b64.charCodeAt(i3)] << 2 | revLookup[b64.charCodeAt(i3 + 1)] >> 4;
|
|
15814
|
+
arr[curByte++] = tmp & 255;
|
|
15815
|
+
}
|
|
15816
|
+
if (placeHoldersLen === 1) {
|
|
15817
|
+
tmp = revLookup[b64.charCodeAt(i3)] << 10 | revLookup[b64.charCodeAt(i3 + 1)] << 4 | revLookup[b64.charCodeAt(i3 + 2)] >> 2;
|
|
15818
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
15819
|
+
arr[curByte++] = tmp & 255;
|
|
15820
|
+
}
|
|
15821
|
+
return arr;
|
|
15822
|
+
}
|
|
15823
|
+
function tripletToBase64(num) {
|
|
15824
|
+
return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
|
|
15825
|
+
}
|
|
15826
|
+
function encodeChunk(uint8, start, end) {
|
|
15827
|
+
var tmp;
|
|
15828
|
+
var output = [];
|
|
15829
|
+
for (var i3 = start; i3 < end; i3 += 3) {
|
|
15830
|
+
tmp = (uint8[i3] << 16 & 16711680) + (uint8[i3 + 1] << 8 & 65280) + (uint8[i3 + 2] & 255);
|
|
15831
|
+
output.push(tripletToBase64(tmp));
|
|
15832
|
+
}
|
|
15833
|
+
return output.join("");
|
|
15834
|
+
}
|
|
15835
|
+
function fromByteArray(uint8) {
|
|
15836
|
+
var tmp;
|
|
15837
|
+
var len = uint8.length;
|
|
15838
|
+
var extraBytes = len % 3;
|
|
15839
|
+
var parts = [];
|
|
15840
|
+
var maxChunkLength = 16383;
|
|
15841
|
+
for (var i3 = 0, len2 = len - extraBytes; i3 < len2; i3 += maxChunkLength) {
|
|
15842
|
+
parts.push(encodeChunk(uint8, i3, i3 + maxChunkLength > len2 ? len2 : i3 + maxChunkLength));
|
|
15843
|
+
}
|
|
15844
|
+
if (extraBytes === 1) {
|
|
15845
|
+
tmp = uint8[len - 1];
|
|
15846
|
+
parts.push(
|
|
15847
|
+
lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="
|
|
15848
|
+
);
|
|
15849
|
+
} else if (extraBytes === 2) {
|
|
15850
|
+
tmp = (uint8[len - 2] << 8) + uint8[len - 1];
|
|
15851
|
+
parts.push(
|
|
15852
|
+
lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
|
|
15853
|
+
);
|
|
15841
15854
|
}
|
|
15842
|
-
return
|
|
15855
|
+
return parts.join("");
|
|
15843
15856
|
}
|
|
15844
|
-
var base64JsExports = requireBase64Js();
|
|
15845
|
-
const base64 = /* @__PURE__ */ getDefaultExportFromCjs(base64JsExports);
|
|
15846
15857
|
var __defProp2 = Object.defineProperty;
|
|
15847
15858
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15848
15859
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -15907,7 +15918,7 @@ var _Tiktoken = class {
|
|
|
15907
15918
|
return memo;
|
|
15908
15919
|
}, {});
|
|
15909
15920
|
for (const [token, rank] of Object.entries(uncompressed)) {
|
|
15910
|
-
const bytes =
|
|
15921
|
+
const bytes = base64Js.toByteArray(token);
|
|
15911
15922
|
this.rankMap.set(bytes.join(","), rank);
|
|
15912
15923
|
this.textMap.set(rank, bytes);
|
|
15913
15924
|
}
|
|
@@ -22754,7 +22765,6 @@ function setOpenCtx({ controller, disposable: disposable2 }) {
|
|
|
22754
22765
|
const REMOTE_REPOSITORY_PROVIDER_URI = "internal-remote-repository-search";
|
|
22755
22766
|
const REMOTE_FILE_PROVIDER_URI = "internal-remote-file-search";
|
|
22756
22767
|
const REMOTE_DIRECTORY_PROVIDER_URI = "internal-remote-directory-search";
|
|
22757
|
-
const CURRENT_REPOSITORY_DIRECTORY_PROVIDER_URI = "internal-current-repository-directory-search";
|
|
22758
22768
|
const WEB_PROVIDER_URI = "internal-web-provider";
|
|
22759
22769
|
const GIT_OPENCTX_PROVIDER_URI = "internal-git-openctx-provider";
|
|
22760
22770
|
const FILE_CONTEXT_MENTION_PROVIDER = {
|
|
@@ -28253,9 +28263,9 @@ var ErrorCodes;
|
|
|
28253
28263
|
ErrorCodes2.serverErrorEnd = -32e3;
|
|
28254
28264
|
})(ErrorCodes || (messages.ErrorCodes = ErrorCodes = {}));
|
|
28255
28265
|
class ResponseError extends Error {
|
|
28256
|
-
constructor(
|
|
28266
|
+
constructor(code2, message, data) {
|
|
28257
28267
|
super(message);
|
|
28258
|
-
this.code = is.number(
|
|
28268
|
+
this.code = is.number(code2) ? code2 : ErrorCodes.UnknownErrorCode;
|
|
28259
28269
|
this.data = data;
|
|
28260
28270
|
Object.setPrototypeOf(this, ResponseError.prototype);
|
|
28261
28271
|
}
|
|
@@ -29760,9 +29770,9 @@ var connection = {};
|
|
|
29760
29770
|
ConnectionErrors2[ConnectionErrors2["AlreadyListening"] = 3] = "AlreadyListening";
|
|
29761
29771
|
})(ConnectionErrors || (exports.ConnectionErrors = ConnectionErrors = {}));
|
|
29762
29772
|
class ConnectionError extends Error {
|
|
29763
|
-
constructor(
|
|
29773
|
+
constructor(code2, message) {
|
|
29764
29774
|
super(message);
|
|
29765
|
-
this.code =
|
|
29775
|
+
this.code = code2;
|
|
29766
29776
|
Object.setPrototypeOf(this, ConnectionError.prototype);
|
|
29767
29777
|
}
|
|
29768
29778
|
}
|
|
@@ -31202,7 +31212,7 @@ export {
|
|
|
31202
31212
|
we as Z,
|
|
31203
31213
|
_s as _,
|
|
31204
31214
|
ks as a,
|
|
31205
|
-
|
|
31215
|
+
ps as a$,
|
|
31206
31216
|
T2 as a0,
|
|
31207
31217
|
s3 as a1,
|
|
31208
31218
|
o as a2,
|
|
@@ -31213,33 +31223,33 @@ export {
|
|
|
31213
31223
|
p as a7,
|
|
31214
31224
|
m3 as a8,
|
|
31215
31225
|
S3 as a9,
|
|
31216
|
-
|
|
31217
|
-
|
|
31218
|
-
|
|
31219
|
-
|
|
31220
|
-
|
|
31221
|
-
|
|
31222
|
-
|
|
31223
|
-
|
|
31224
|
-
|
|
31225
|
-
|
|
31226
|
-
|
|
31227
|
-
|
|
31228
|
-
|
|
31229
|
-
|
|
31230
|
-
|
|
31231
|
-
|
|
31232
|
-
|
|
31233
|
-
|
|
31234
|
-
|
|
31235
|
-
|
|
31236
|
-
|
|
31237
|
-
|
|
31238
|
-
|
|
31239
|
-
|
|
31240
|
-
|
|
31241
|
-
|
|
31242
|
-
|
|
31226
|
+
V as aA,
|
|
31227
|
+
Es as aB,
|
|
31228
|
+
U as aC,
|
|
31229
|
+
e2 as aD,
|
|
31230
|
+
Ns as aE,
|
|
31231
|
+
an as aF,
|
|
31232
|
+
gs as aG,
|
|
31233
|
+
serializeContextItem as aH,
|
|
31234
|
+
CONTEXT_ITEM_MENTION_NODE_TYPE as aI,
|
|
31235
|
+
contextItemMentionNodeDisplayText as aJ,
|
|
31236
|
+
URI as aK,
|
|
31237
|
+
qr as aL,
|
|
31238
|
+
_ as aM,
|
|
31239
|
+
TEMPLATE_INPUT_NODE_TYPE as aN,
|
|
31240
|
+
N as aO,
|
|
31241
|
+
parseMentionQuery as aP,
|
|
31242
|
+
NO_SYMBOL_MATCHES_HELP_LABEL as aQ,
|
|
31243
|
+
FILE_RANGE_TOOLTIP_LABEL as aR,
|
|
31244
|
+
createExtensionAPI as aS,
|
|
31245
|
+
createMessageAPIForWebview as aT,
|
|
31246
|
+
lodashExports as aU,
|
|
31247
|
+
memoizeLastValue as aV,
|
|
31248
|
+
toSerializedPromptEditorValue as aW,
|
|
31249
|
+
ri as aX,
|
|
31250
|
+
scanForMentionTriggerInUserTextInput as aY,
|
|
31251
|
+
fs as aZ,
|
|
31252
|
+
Ts as a_,
|
|
31243
31253
|
v as aa,
|
|
31244
31254
|
P as ab,
|
|
31245
31255
|
E2 as ac,
|
|
@@ -31258,26 +31268,26 @@ export {
|
|
|
31258
31268
|
REMOTE_REPOSITORY_PROVIDER_URI as ap,
|
|
31259
31269
|
REMOTE_FILE_PROVIDER_URI as aq,
|
|
31260
31270
|
REMOTE_DIRECTORY_PROVIDER_URI as ar,
|
|
31261
|
-
|
|
31262
|
-
|
|
31263
|
-
|
|
31264
|
-
|
|
31265
|
-
|
|
31266
|
-
|
|
31267
|
-
|
|
31268
|
-
|
|
31271
|
+
WEB_PROVIDER_URI as as,
|
|
31272
|
+
displayPath as at,
|
|
31273
|
+
displayLineRange as au,
|
|
31274
|
+
displayPathDirname as av,
|
|
31275
|
+
IGNORED_FILE_WARNING_LABEL as aw,
|
|
31276
|
+
LARGE_FILE_WARNING_LABEL as ax,
|
|
31277
|
+
Ei as ay,
|
|
31278
|
+
xe as az,
|
|
31269
31279
|
ds as b,
|
|
31270
31280
|
fetch as b$,
|
|
31271
|
-
|
|
31272
|
-
|
|
31273
|
-
|
|
31274
|
-
|
|
31275
|
-
|
|
31276
|
-
|
|
31277
|
-
|
|
31278
|
-
|
|
31279
|
-
|
|
31280
|
-
|
|
31281
|
+
hydrateAfterPostMessage as b0,
|
|
31282
|
+
isCodyProUser as b1,
|
|
31283
|
+
CodyIDE as b2,
|
|
31284
|
+
webviewOpenURIForContextItem as b3,
|
|
31285
|
+
commonjsGlobal as b4,
|
|
31286
|
+
CodyTaskState as b5,
|
|
31287
|
+
cryptoJsExports as b6,
|
|
31288
|
+
isError as b7,
|
|
31289
|
+
RateLimitError as b8,
|
|
31290
|
+
CODY_FEEDBACK_URL as b9,
|
|
31281
31291
|
createSubscriber as bA,
|
|
31282
31292
|
graphqlClient as bB,
|
|
31283
31293
|
logError as bC,
|
|
@@ -31305,26 +31315,26 @@ export {
|
|
|
31305
31315
|
dependentAbortController as bY,
|
|
31306
31316
|
addCustomUserAgent as bZ,
|
|
31307
31317
|
addTraceparent as b_,
|
|
31308
|
-
|
|
31309
|
-
|
|
31310
|
-
|
|
31311
|
-
|
|
31312
|
-
|
|
31313
|
-
|
|
31314
|
-
|
|
31315
|
-
|
|
31316
|
-
|
|
31317
|
-
|
|
31318
|
-
|
|
31318
|
+
isDefined as ba,
|
|
31319
|
+
reformatBotMessageForChat as bb,
|
|
31320
|
+
isAbortErrorOrSocketHangUp as bc,
|
|
31321
|
+
isEqual$1 as bd,
|
|
31322
|
+
serializedPromptEditorStateFromChatMessage as be,
|
|
31323
|
+
contextItemsFromPromptEditorValue as bf,
|
|
31324
|
+
filterContextItemsFromPromptEditorValue as bg,
|
|
31325
|
+
pluralize as bh,
|
|
31326
|
+
isCodyProModel as bi,
|
|
31327
|
+
ModelTag as bj,
|
|
31328
|
+
CustomCommandType as bk,
|
|
31319
31329
|
isMacOS as bl,
|
|
31320
31330
|
textContentFromSerializedLexicalNode as bm,
|
|
31321
31331
|
FAST_CHAT_INPUT_TOKEN_BUDGET as bn,
|
|
31322
31332
|
deserializeContextItem as bo,
|
|
31323
31333
|
View as bp,
|
|
31324
|
-
|
|
31325
|
-
|
|
31326
|
-
|
|
31327
|
-
|
|
31334
|
+
truncateTextStart as bq,
|
|
31335
|
+
CHAT_INPUT_TOKEN_BUDGET as br,
|
|
31336
|
+
ACCOUNT_USAGE_URL as bs,
|
|
31337
|
+
getRelativeChatPeriod as bt,
|
|
31328
31338
|
browser as bu,
|
|
31329
31339
|
isErrorLike as bv,
|
|
31330
31340
|
setDisplayPathEnvInfo as bw,
|
|
@@ -31332,7 +31342,7 @@ export {
|
|
|
31332
31342
|
Observable as by,
|
|
31333
31343
|
unsubscribe as bz,
|
|
31334
31344
|
bs as c,
|
|
31335
|
-
|
|
31345
|
+
editorStateFromPromptString as c$,
|
|
31336
31346
|
verifyResponseCode as c0,
|
|
31337
31347
|
openCtx as c1,
|
|
31338
31348
|
AsyncSerialScheduler_1 as c2,
|
|
@@ -31341,7 +31351,7 @@ export {
|
|
|
31341
31351
|
_$1 as c5,
|
|
31342
31352
|
toRangeData as c6,
|
|
31343
31353
|
DOTCOM_URL as c7,
|
|
31344
|
-
|
|
31354
|
+
base64Js as c8,
|
|
31345
31355
|
NetworkError as c9,
|
|
31346
31356
|
TESTING_TELEMETRY_EXPORTER as cA,
|
|
31347
31357
|
dist as cB,
|
|
@@ -31350,26 +31360,26 @@ export {
|
|
|
31350
31360
|
_baseGetTag as cE,
|
|
31351
31361
|
isObjectLike_1 as cF,
|
|
31352
31362
|
isObject_1 as cG,
|
|
31353
|
-
|
|
31354
|
-
|
|
31355
|
-
|
|
31356
|
-
|
|
31357
|
-
|
|
31358
|
-
|
|
31359
|
-
|
|
31360
|
-
|
|
31361
|
-
|
|
31362
|
-
|
|
31363
|
-
|
|
31364
|
-
|
|
31365
|
-
|
|
31366
|
-
|
|
31367
|
-
|
|
31368
|
-
|
|
31369
|
-
|
|
31370
|
-
|
|
31371
|
-
|
|
31372
|
-
|
|
31363
|
+
DefaultChatCommands as cH,
|
|
31364
|
+
uriParseNameAndExtension as cI,
|
|
31365
|
+
uriDirname as cJ,
|
|
31366
|
+
DefaultEditCommands as cK,
|
|
31367
|
+
promiseFactoryToObservable as cL,
|
|
31368
|
+
webMentionProvidersMetadata as cM,
|
|
31369
|
+
allMentionProvidersMetadata as cN,
|
|
31370
|
+
combineLatest as cO,
|
|
31371
|
+
expandToLineRange as cP,
|
|
31372
|
+
truncateTextNearestLine as cQ,
|
|
31373
|
+
TokenCounter as cR,
|
|
31374
|
+
tracer as cS,
|
|
31375
|
+
isContextWindowLimitError as cT,
|
|
31376
|
+
truncatePromptString as cU,
|
|
31377
|
+
inputTextWithoutContextChipsFromPromptEditorState as cV,
|
|
31378
|
+
addMessageListenersForExtensionAPI as cW,
|
|
31379
|
+
createMessageAPIForExtension as cX,
|
|
31380
|
+
startWith as cY,
|
|
31381
|
+
promiseToObservable as cZ,
|
|
31382
|
+
CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID as c_,
|
|
31373
31383
|
isRateLimitError as ca,
|
|
31374
31384
|
isAuthError as cb,
|
|
31375
31385
|
semver$1 as cc,
|
|
@@ -31397,29 +31407,31 @@ export {
|
|
|
31397
31407
|
main as cy,
|
|
31398
31408
|
setUserAgent as cz,
|
|
31399
31409
|
dedent as d,
|
|
31400
|
-
|
|
31401
|
-
|
|
31402
|
-
|
|
31403
|
-
|
|
31404
|
-
|
|
31405
|
-
|
|
31406
|
-
|
|
31407
|
-
|
|
31408
|
-
|
|
31409
|
-
|
|
31410
|
-
|
|
31411
|
-
|
|
31412
|
-
|
|
31413
|
-
|
|
31414
|
-
|
|
31415
|
-
|
|
31416
|
-
|
|
31417
|
-
|
|
31418
|
-
|
|
31419
|
-
|
|
31420
|
-
|
|
31421
|
-
|
|
31422
|
-
|
|
31410
|
+
getEditorTabSize as d0,
|
|
31411
|
+
AbortError as d1,
|
|
31412
|
+
psDedent as d2,
|
|
31413
|
+
getEditorIndentString as d3,
|
|
31414
|
+
logResponseHeadersToSpan as d4,
|
|
31415
|
+
TracedError as d5,
|
|
31416
|
+
isNodeResponse as d6,
|
|
31417
|
+
SpanStatusCode as d7,
|
|
31418
|
+
assertFileURI as d8,
|
|
31419
|
+
setOpenCtx as d9,
|
|
31420
|
+
GIT_OPENCTX_PROVIDER_URI as da,
|
|
31421
|
+
ACCOUNT_UPGRADE_URL as db,
|
|
31422
|
+
GENERAL_HELP_LABEL as dc,
|
|
31423
|
+
diffLines as dd,
|
|
31424
|
+
languageFromFilename as de,
|
|
31425
|
+
ProgrammingLanguage as df,
|
|
31426
|
+
truncatePromptStringStart as dg,
|
|
31427
|
+
posixFilePaths as dh,
|
|
31428
|
+
CODY_DOC_URL as di,
|
|
31429
|
+
DISCORD_URL as dj,
|
|
31430
|
+
CODY_SUPPORT_URL as dk,
|
|
31431
|
+
SG_BLOG_URL as dl,
|
|
31432
|
+
ACCOUNT_LIMITS_INFO_URL as dm,
|
|
31433
|
+
setLogger as dn,
|
|
31434
|
+
CODY_OLLAMA_DOCS_URL as dp,
|
|
31423
31435
|
ws as e,
|
|
31424
31436
|
g as f,
|
|
31425
31437
|
getDefaultExportFromCjs as g,
|
|
@@ -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-BZzA02C_.mjs";
|
|
2
|
+
import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-hDxNMh5y.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-BZzA02C_.mjs";
|
|
5
|
+
import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-hDxNMh5y.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>`;
|