@sourcegraph/cody-web 0.7.1 → 0.7.3
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-B1CAn5Kx.mjs → agent.worker-7dUx4v7q.mjs} +12879 -13065
- package/dist/agent.worker.js +2 -2
- package/dist/{browser-DJC99jis.mjs → browser-0yJ2hV_u.mjs} +173 -206
- package/dist/{git-log-_sHG8Csy.mjs → git-log-BEqqPp3D.mjs} +2 -2
- package/dist/{index-BRvf0zWs.mjs → index-D_qZ0Ahh.mjs} +2 -2
- package/dist/index.js +575 -506
- package/dist/lib/components/use-cody-agent.d.ts.map +1 -1
- package/dist/{shell-BGZM4C-m.mjs → shell-Dil0VopV.mjs} +2 -2
- package/dist/style.css +130 -50
- 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-7dUx4v7q.mjs";
|
|
2
|
+
import "./browser-0yJ2hV_u.mjs";
|
|
@@ -381,9 +381,6 @@ const defaultAuthStatus = {
|
|
|
381
381
|
siteVersion: "",
|
|
382
382
|
userCanUpgrade: false,
|
|
383
383
|
username: "",
|
|
384
|
-
primaryEmail: "",
|
|
385
|
-
displayName: "",
|
|
386
|
-
avatarURL: "",
|
|
387
384
|
codyApiVersion: 0
|
|
388
385
|
};
|
|
389
386
|
const unauthenticatedStatus = {
|
|
@@ -399,9 +396,6 @@ const unauthenticatedStatus = {
|
|
|
399
396
|
siteVersion: "",
|
|
400
397
|
userCanUpgrade: false,
|
|
401
398
|
username: "",
|
|
402
|
-
primaryEmail: "",
|
|
403
|
-
displayName: "",
|
|
404
|
-
avatarURL: "",
|
|
405
399
|
codyApiVersion: 0
|
|
406
400
|
};
|
|
407
401
|
const networkErrorAuthStatus = {
|
|
@@ -417,9 +411,6 @@ const networkErrorAuthStatus = {
|
|
|
417
411
|
siteVersion: "",
|
|
418
412
|
userCanUpgrade: false,
|
|
419
413
|
username: "",
|
|
420
|
-
primaryEmail: "",
|
|
421
|
-
displayName: "",
|
|
422
|
-
avatarURL: "",
|
|
423
414
|
codyApiVersion: 0
|
|
424
415
|
};
|
|
425
416
|
const offlineModeAuthStatus = {
|
|
@@ -436,9 +427,6 @@ const offlineModeAuthStatus = {
|
|
|
436
427
|
siteVersion: "",
|
|
437
428
|
userCanUpgrade: false,
|
|
438
429
|
username: "offline",
|
|
439
|
-
primaryEmail: "",
|
|
440
|
-
displayName: "",
|
|
441
|
-
avatarURL: "",
|
|
442
430
|
codyApiVersion: 0
|
|
443
431
|
};
|
|
444
432
|
function isCodyProUser(authStatus) {
|
|
@@ -12529,10 +12517,7 @@ class SourcegraphGraphQLAPIClient {
|
|
|
12529
12517
|
CURRENT_USER_ID_QUERY,
|
|
12530
12518
|
{}
|
|
12531
12519
|
).then(
|
|
12532
|
-
(response) => extractDataOrError(
|
|
12533
|
-
response,
|
|
12534
|
-
(data) => data.currentUser ? data.currentUser.id : new Error("current user not found")
|
|
12535
|
-
)
|
|
12520
|
+
(response) => extractDataOrError(response, (data) => data.currentUser ? data.currentUser.id : null)
|
|
12536
12521
|
);
|
|
12537
12522
|
}
|
|
12538
12523
|
async getCurrentUserCodyProEnabled() {
|
|
@@ -12540,10 +12525,7 @@ class SourcegraphGraphQLAPIClient {
|
|
|
12540
12525
|
CURRENT_USER_CODY_PRO_ENABLED_QUERY,
|
|
12541
12526
|
{}
|
|
12542
12527
|
).then(
|
|
12543
|
-
(response) => extractDataOrError(
|
|
12544
|
-
response,
|
|
12545
|
-
(data) => data.currentUser ? { ...data.currentUser } : new Error("current user not found")
|
|
12546
|
-
)
|
|
12528
|
+
(response) => extractDataOrError(response, (data) => data.currentUser ? { ...data.currentUser } : null)
|
|
12547
12529
|
);
|
|
12548
12530
|
}
|
|
12549
12531
|
async getCurrentUserCodySubscription() {
|
|
@@ -12551,13 +12533,10 @@ class SourcegraphGraphQLAPIClient {
|
|
|
12551
12533
|
CURRENT_USER_CODY_SUBSCRIPTION_QUERY,
|
|
12552
12534
|
{}
|
|
12553
12535
|
).then(
|
|
12554
|
-
(response) => extractDataOrError(
|
|
12555
|
-
|
|
12556
|
-
(data)
|
|
12557
|
-
|
|
12558
|
-
return ((_a3 = data.currentUser) == null ? void 0 : _a3.codySubscription) ? data.currentUser.codySubscription : new Error("current user subscription data not found");
|
|
12559
|
-
}
|
|
12560
|
-
)
|
|
12536
|
+
(response) => extractDataOrError(response, (data) => {
|
|
12537
|
+
var _a3;
|
|
12538
|
+
return ((_a3 = data.currentUser) == null ? void 0 : _a3.codySubscription) ?? null;
|
|
12539
|
+
})
|
|
12561
12540
|
);
|
|
12562
12541
|
}
|
|
12563
12542
|
async getCurrentUserInfo() {
|
|
@@ -12565,10 +12544,7 @@ class SourcegraphGraphQLAPIClient {
|
|
|
12565
12544
|
CURRENT_USER_INFO_QUERY,
|
|
12566
12545
|
{}
|
|
12567
12546
|
).then(
|
|
12568
|
-
(response) => extractDataOrError(
|
|
12569
|
-
response,
|
|
12570
|
-
(data) => data.currentUser ? { ...data.currentUser } : new Error("current user not found")
|
|
12571
|
-
)
|
|
12547
|
+
(response) => extractDataOrError(response, (data) => data.currentUser ? { ...data.currentUser } : null)
|
|
12572
12548
|
);
|
|
12573
12549
|
}
|
|
12574
12550
|
/**
|
|
@@ -14297,13 +14273,12 @@ class TimestampTelemetryProcessor {
|
|
|
14297
14273
|
}
|
|
14298
14274
|
TimestampTelemetryProcessor_1 = timestamp.TimestampTelemetryProcessor = TimestampTelemetryProcessor;
|
|
14299
14275
|
class GraphQLTelemetryExporter {
|
|
14300
|
-
constructor(
|
|
14276
|
+
constructor(anonymousUserID, legacyBackcompatLogEventMode) {
|
|
14301
14277
|
__publicField(this, "exportMode");
|
|
14302
14278
|
__publicField(this, "legacySiteIdentification");
|
|
14303
|
-
this.client = client;
|
|
14304
14279
|
this.anonymousUserID = anonymousUserID;
|
|
14305
14280
|
this.legacyBackcompatLogEventMode = legacyBackcompatLogEventMode;
|
|
14306
|
-
|
|
14281
|
+
graphqlClient.setAnonymousUserID(anonymousUserID);
|
|
14307
14282
|
}
|
|
14308
14283
|
/**
|
|
14309
14284
|
* Checks if the connected server supports the new GraphQL mutations
|
|
@@ -14314,7 +14289,7 @@ class GraphQLTelemetryExporter {
|
|
|
14314
14289
|
*/
|
|
14315
14290
|
async setLegacyEventsStateOnce() {
|
|
14316
14291
|
if (this.exportMode === void 0) {
|
|
14317
|
-
const siteVersion = await
|
|
14292
|
+
const siteVersion = await graphqlClient.getSiteVersion();
|
|
14318
14293
|
if (isError(siteVersion)) {
|
|
14319
14294
|
logError(
|
|
14320
14295
|
"GraphQLTelemetryExporter",
|
|
@@ -14340,7 +14315,7 @@ class GraphQLTelemetryExporter {
|
|
|
14340
14315
|
logDebug("GraphQLTelemetryExporter", "evaluated export mode:", this.exportMode);
|
|
14341
14316
|
}
|
|
14342
14317
|
if (this.exportMode === "legacy" && this.legacySiteIdentification === void 0) {
|
|
14343
|
-
const siteIdentification = await
|
|
14318
|
+
const siteIdentification = await graphqlClient.getSiteIdentification();
|
|
14344
14319
|
if (isError(siteIdentification)) {
|
|
14345
14320
|
this.legacySiteIdentification = null;
|
|
14346
14321
|
return;
|
|
@@ -14361,7 +14336,7 @@ class GraphQLTelemetryExporter {
|
|
|
14361
14336
|
events2.map(
|
|
14362
14337
|
(event) => {
|
|
14363
14338
|
var _a3, _b, _c;
|
|
14364
|
-
return
|
|
14339
|
+
return graphqlClient.logEvent(
|
|
14365
14340
|
{
|
|
14366
14341
|
client: event.source.client,
|
|
14367
14342
|
event: `${event.feature}.${event.action}`,
|
|
@@ -14401,7 +14376,7 @@ class GraphQLTelemetryExporter {
|
|
|
14401
14376
|
if (this.exportMode) {
|
|
14402
14377
|
handleExportModeTransforms(this.exportMode, events2);
|
|
14403
14378
|
}
|
|
14404
|
-
const resultOrError = await
|
|
14379
|
+
const resultOrError = await graphqlClient.recordTelemetryEvents(events2);
|
|
14405
14380
|
if (isError(resultOrError)) {
|
|
14406
14381
|
logError("GraphQLTelemetryExporter", "Error exporting telemetry events:", resultOrError);
|
|
14407
14382
|
}
|
|
@@ -14441,14 +14416,14 @@ function getTier(authStatus) {
|
|
|
14441
14416
|
}
|
|
14442
14417
|
class TelemetryRecorderProvider extends dist.TelemetryRecorderProvider {
|
|
14443
14418
|
constructor(extensionDetails, config, authStatusProvider, anonymousUserID, legacyBackcompatLogEventMode) {
|
|
14444
|
-
|
|
14419
|
+
graphqlClient.setConfig(config);
|
|
14445
14420
|
const clientName = extensionDetails.telemetryClientName ? extensionDetails.telemetryClientName : `${extensionDetails.ide || "unknown"}.Cody`;
|
|
14446
14421
|
super(
|
|
14447
14422
|
{
|
|
14448
14423
|
client: clientName,
|
|
14449
14424
|
clientVersion: extensionDetails.version
|
|
14450
14425
|
},
|
|
14451
|
-
new GraphQLTelemetryExporter(
|
|
14426
|
+
new GraphQLTelemetryExporter(anonymousUserID, legacyBackcompatLogEventMode),
|
|
14452
14427
|
[
|
|
14453
14428
|
new ConfigurationMetadataProcessor(config, authStatusProvider),
|
|
14454
14429
|
// Generate timestamps when recording events, instead of serverside
|
|
@@ -14784,7 +14759,7 @@ class PromptString {
|
|
|
14784
14759
|
static fromContextItem(contextItem) {
|
|
14785
14760
|
const ref = [contextItem.uri];
|
|
14786
14761
|
return {
|
|
14787
|
-
content: contextItem.content ? internal_createPromptString(contextItem.content, ref) : void 0,
|
|
14762
|
+
content: typeof contextItem.content === "string" ? internal_createPromptString(contextItem.content, ref) : void 0,
|
|
14788
14763
|
repoName: contextItem.repoName ? internal_createPromptString(contextItem.repoName, ref) : void 0,
|
|
14789
14764
|
title: contextItem.title ? internal_createPromptString(contextItem.title, ref) : void 0
|
|
14790
14765
|
};
|
|
@@ -15696,106 +15671,98 @@ function fromVSCodeEvent(event, getInitialValue) {
|
|
|
15696
15671
|
});
|
|
15697
15672
|
}
|
|
15698
15673
|
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
|
-
|
|
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("");
|
|
15674
|
+
base64Js.byteLength = byteLength;
|
|
15675
|
+
base64Js.toByteArray = toByteArray;
|
|
15676
|
+
base64Js.fromByteArray = fromByteArray;
|
|
15677
|
+
var lookup = [];
|
|
15678
|
+
var revLookup = [];
|
|
15679
|
+
var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
15680
|
+
var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
15681
|
+
for (var i$1 = 0, len = code.length; i$1 < len; ++i$1) {
|
|
15682
|
+
lookup[i$1] = code[i$1];
|
|
15683
|
+
revLookup[code.charCodeAt(i$1)] = i$1;
|
|
15684
|
+
}
|
|
15685
|
+
revLookup["-".charCodeAt(0)] = 62;
|
|
15686
|
+
revLookup["_".charCodeAt(0)] = 63;
|
|
15687
|
+
function getLens(b64) {
|
|
15688
|
+
var len = b64.length;
|
|
15689
|
+
if (len % 4 > 0) {
|
|
15690
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
15691
|
+
}
|
|
15692
|
+
var validLen = b64.indexOf("=");
|
|
15693
|
+
if (validLen === -1) validLen = len;
|
|
15694
|
+
var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
|
|
15695
|
+
return [validLen, placeHoldersLen];
|
|
15696
|
+
}
|
|
15697
|
+
function byteLength(b64) {
|
|
15698
|
+
var lens = getLens(b64);
|
|
15699
|
+
var validLen = lens[0];
|
|
15700
|
+
var placeHoldersLen = lens[1];
|
|
15701
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
15702
|
+
}
|
|
15703
|
+
function _byteLength(b64, validLen, placeHoldersLen) {
|
|
15704
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
15705
|
+
}
|
|
15706
|
+
function toByteArray(b64) {
|
|
15707
|
+
var tmp;
|
|
15708
|
+
var lens = getLens(b64);
|
|
15709
|
+
var validLen = lens[0];
|
|
15710
|
+
var placeHoldersLen = lens[1];
|
|
15711
|
+
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
|
|
15712
|
+
var curByte = 0;
|
|
15713
|
+
var len = placeHoldersLen > 0 ? validLen - 4 : validLen;
|
|
15714
|
+
var i3;
|
|
15715
|
+
for (i3 = 0; i3 < len; i3 += 4) {
|
|
15716
|
+
tmp = revLookup[b64.charCodeAt(i3)] << 18 | revLookup[b64.charCodeAt(i3 + 1)] << 12 | revLookup[b64.charCodeAt(i3 + 2)] << 6 | revLookup[b64.charCodeAt(i3 + 3)];
|
|
15717
|
+
arr[curByte++] = tmp >> 16 & 255;
|
|
15718
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
15719
|
+
arr[curByte++] = tmp & 255;
|
|
15720
|
+
}
|
|
15721
|
+
if (placeHoldersLen === 2) {
|
|
15722
|
+
tmp = revLookup[b64.charCodeAt(i3)] << 2 | revLookup[b64.charCodeAt(i3 + 1)] >> 4;
|
|
15723
|
+
arr[curByte++] = tmp & 255;
|
|
15724
|
+
}
|
|
15725
|
+
if (placeHoldersLen === 1) {
|
|
15726
|
+
tmp = revLookup[b64.charCodeAt(i3)] << 10 | revLookup[b64.charCodeAt(i3 + 1)] << 4 | revLookup[b64.charCodeAt(i3 + 2)] >> 2;
|
|
15727
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
15728
|
+
arr[curByte++] = tmp & 255;
|
|
15729
|
+
}
|
|
15730
|
+
return arr;
|
|
15731
|
+
}
|
|
15732
|
+
function tripletToBase64(num) {
|
|
15733
|
+
return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
|
|
15734
|
+
}
|
|
15735
|
+
function encodeChunk(uint8, start, end) {
|
|
15736
|
+
var tmp;
|
|
15737
|
+
var output = [];
|
|
15738
|
+
for (var i3 = start; i3 < end; i3 += 3) {
|
|
15739
|
+
tmp = (uint8[i3] << 16 & 16711680) + (uint8[i3 + 1] << 8 & 65280) + (uint8[i3 + 2] & 255);
|
|
15740
|
+
output.push(tripletToBase64(tmp));
|
|
15741
|
+
}
|
|
15742
|
+
return output.join("");
|
|
15743
|
+
}
|
|
15744
|
+
function fromByteArray(uint8) {
|
|
15745
|
+
var tmp;
|
|
15746
|
+
var len = uint8.length;
|
|
15747
|
+
var extraBytes = len % 3;
|
|
15748
|
+
var parts = [];
|
|
15749
|
+
var maxChunkLength = 16383;
|
|
15750
|
+
for (var i3 = 0, len2 = len - extraBytes; i3 < len2; i3 += maxChunkLength) {
|
|
15751
|
+
parts.push(encodeChunk(uint8, i3, i3 + maxChunkLength > len2 ? len2 : i3 + maxChunkLength));
|
|
15752
|
+
}
|
|
15753
|
+
if (extraBytes === 1) {
|
|
15754
|
+
tmp = uint8[len - 1];
|
|
15755
|
+
parts.push(
|
|
15756
|
+
lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="
|
|
15757
|
+
);
|
|
15758
|
+
} else if (extraBytes === 2) {
|
|
15759
|
+
tmp = (uint8[len - 2] << 8) + uint8[len - 1];
|
|
15760
|
+
parts.push(
|
|
15761
|
+
lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
|
|
15762
|
+
);
|
|
15794
15763
|
}
|
|
15795
|
-
return
|
|
15764
|
+
return parts.join("");
|
|
15796
15765
|
}
|
|
15797
|
-
var base64JsExports = requireBase64Js();
|
|
15798
|
-
const base64 = /* @__PURE__ */ getDefaultExportFromCjs(base64JsExports);
|
|
15799
15766
|
var __defProp2 = Object.defineProperty;
|
|
15800
15767
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15801
15768
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -15860,7 +15827,7 @@ var _Tiktoken = class {
|
|
|
15860
15827
|
return memo;
|
|
15861
15828
|
}, {});
|
|
15862
15829
|
for (const [token, rank] of Object.entries(uncompressed)) {
|
|
15863
|
-
const bytes =
|
|
15830
|
+
const bytes = base64Js.toByteArray(token);
|
|
15864
15831
|
this.rankMap.set(bytes.join(","), rank);
|
|
15865
15832
|
this.textMap.set(rank, bytes);
|
|
15866
15833
|
}
|
|
@@ -28204,9 +28171,9 @@ var ErrorCodes;
|
|
|
28204
28171
|
ErrorCodes2.serverErrorEnd = -32e3;
|
|
28205
28172
|
})(ErrorCodes || (messages.ErrorCodes = ErrorCodes = {}));
|
|
28206
28173
|
class ResponseError extends Error {
|
|
28207
|
-
constructor(
|
|
28174
|
+
constructor(code2, message, data) {
|
|
28208
28175
|
super(message);
|
|
28209
|
-
this.code = is.number(
|
|
28176
|
+
this.code = is.number(code2) ? code2 : ErrorCodes.UnknownErrorCode;
|
|
28210
28177
|
this.data = data;
|
|
28211
28178
|
Object.setPrototypeOf(this, ResponseError.prototype);
|
|
28212
28179
|
}
|
|
@@ -29711,9 +29678,9 @@ var connection = {};
|
|
|
29711
29678
|
ConnectionErrors2[ConnectionErrors2["AlreadyListening"] = 3] = "AlreadyListening";
|
|
29712
29679
|
})(ConnectionErrors || (exports.ConnectionErrors = ConnectionErrors = {}));
|
|
29713
29680
|
class ConnectionError extends Error {
|
|
29714
|
-
constructor(
|
|
29681
|
+
constructor(code2, message) {
|
|
29715
29682
|
super(message);
|
|
29716
|
-
this.code =
|
|
29683
|
+
this.code = code2;
|
|
29717
29684
|
Object.setPrototypeOf(this, ConnectionError.prototype);
|
|
29718
29685
|
}
|
|
29719
29686
|
}
|
|
@@ -31283,72 +31250,72 @@ export {
|
|
|
31283
31250
|
PromptString as by,
|
|
31284
31251
|
createSubscriber as bz,
|
|
31285
31252
|
bs as c,
|
|
31286
|
-
|
|
31253
|
+
isNodeResponse as c$,
|
|
31287
31254
|
openCtx as c0,
|
|
31288
31255
|
extensionForLanguage as c1,
|
|
31289
31256
|
isSourcegraphToken as c2,
|
|
31290
|
-
|
|
31291
|
-
|
|
31292
|
-
|
|
31293
|
-
|
|
31294
|
-
|
|
31295
|
-
|
|
31296
|
-
|
|
31297
|
-
|
|
31298
|
-
|
|
31299
|
-
|
|
31300
|
-
|
|
31301
|
-
|
|
31302
|
-
|
|
31303
|
-
|
|
31304
|
-
|
|
31305
|
-
|
|
31306
|
-
|
|
31307
|
-
|
|
31308
|
-
|
|
31309
|
-
|
|
31310
|
-
|
|
31311
|
-
|
|
31312
|
-
|
|
31313
|
-
|
|
31314
|
-
|
|
31315
|
-
|
|
31316
|
-
|
|
31317
|
-
|
|
31318
|
-
|
|
31319
|
-
|
|
31320
|
-
|
|
31321
|
-
|
|
31322
|
-
|
|
31323
|
-
|
|
31324
|
-
|
|
31325
|
-
|
|
31326
|
-
|
|
31327
|
-
|
|
31328
|
-
|
|
31329
|
-
|
|
31330
|
-
|
|
31331
|
-
|
|
31332
|
-
|
|
31333
|
-
|
|
31334
|
-
|
|
31335
|
-
|
|
31336
|
-
|
|
31337
|
-
|
|
31338
|
-
|
|
31339
|
-
|
|
31340
|
-
|
|
31341
|
-
|
|
31342
|
-
|
|
31343
|
-
|
|
31344
|
-
|
|
31345
|
-
|
|
31346
|
-
|
|
31347
|
-
|
|
31348
|
-
|
|
31349
|
-
|
|
31257
|
+
_$1 as c3,
|
|
31258
|
+
toRangeData as c4,
|
|
31259
|
+
DOTCOM_URL as c5,
|
|
31260
|
+
base64Js as c6,
|
|
31261
|
+
isDotCom as c7,
|
|
31262
|
+
NetworkError as c8,
|
|
31263
|
+
isRateLimitError as c9,
|
|
31264
|
+
uriParseNameAndExtension as cA,
|
|
31265
|
+
uriDirname as cB,
|
|
31266
|
+
DefaultEditCommands as cC,
|
|
31267
|
+
promiseFactoryToObservable as cD,
|
|
31268
|
+
webMentionProvidersMetadata as cE,
|
|
31269
|
+
allMentionProvidersMetadata as cF,
|
|
31270
|
+
combineLatest as cG,
|
|
31271
|
+
subscriptionDisposable as cH,
|
|
31272
|
+
expandToLineRange as cI,
|
|
31273
|
+
offlineModeAuthStatus as cJ,
|
|
31274
|
+
unauthenticatedStatus as cK,
|
|
31275
|
+
semver$1 as cL,
|
|
31276
|
+
truncateTextNearestLine as cM,
|
|
31277
|
+
TokenCounter as cN,
|
|
31278
|
+
tracer as cO,
|
|
31279
|
+
isContextWindowLimitError as cP,
|
|
31280
|
+
truncatePromptString as cQ,
|
|
31281
|
+
inputTextWithoutContextChipsFromPromptEditorState as cR,
|
|
31282
|
+
addMessageListenersForExtensionAPI as cS,
|
|
31283
|
+
createMessageAPIForExtension as cT,
|
|
31284
|
+
CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID as cU,
|
|
31285
|
+
editorStateFromPromptString as cV,
|
|
31286
|
+
getEditorTabSize as cW,
|
|
31287
|
+
AbortError as cX,
|
|
31288
|
+
getEditorIndentString as cY,
|
|
31289
|
+
logResponseHeadersToSpan as cZ,
|
|
31290
|
+
TracedError as c_,
|
|
31291
|
+
isAuthError as ca,
|
|
31292
|
+
NoOpTelemetryRecorderProvider as cb,
|
|
31293
|
+
TimestampTelemetryProcessor_1 as cc,
|
|
31294
|
+
updateGlobalTelemetryInstances as cd,
|
|
31295
|
+
TelemetryRecorderProvider as ce,
|
|
31296
|
+
telemetryRecorderProvider as cf,
|
|
31297
|
+
convertGitCloneURLToCodebaseName as cg,
|
|
31298
|
+
uriExtname as ch,
|
|
31299
|
+
SUPPORTED_URI_SCHEMAS as ci,
|
|
31300
|
+
require$$1 as cj,
|
|
31301
|
+
dedupeWith as ck,
|
|
31302
|
+
getEditorInsertSpaces as cl,
|
|
31303
|
+
TimeoutError as cm,
|
|
31304
|
+
getActiveTraceAndSpanId as cn,
|
|
31305
|
+
isNetworkError as co,
|
|
31306
|
+
trace as cp,
|
|
31307
|
+
getAugmentedNamespace as cq,
|
|
31308
|
+
main as cr,
|
|
31309
|
+
setUserAgent as cs,
|
|
31310
|
+
TESTING_TELEMETRY_EXPORTER as ct,
|
|
31311
|
+
dist as cu,
|
|
31312
|
+
_root as cv,
|
|
31313
|
+
_baseGetTag as cw,
|
|
31314
|
+
isObjectLike_1 as cx,
|
|
31315
|
+
isObject_1 as cy,
|
|
31316
|
+
DefaultChatCommands as cz,
|
|
31350
31317
|
dedent as d,
|
|
31351
|
-
|
|
31318
|
+
SpanStatusCode as d0,
|
|
31352
31319
|
assertFileURI as d1,
|
|
31353
31320
|
setOpenCtx as d2,
|
|
31354
31321
|
GIT_OPENCTX_PROVIDER_URI as d3,
|
|
@@ -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-7dUx4v7q.mjs";
|
|
2
|
+
import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-0yJ2hV_u.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-7dUx4v7q.mjs";
|
|
5
|
+
import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-0yJ2hV_u.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>`;
|