@sourcegraph/cody-web 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent.worker-D-CTHcD9.mjs → agent.worker-DCppPL5H.mjs} +3493 -2935
- package/dist/agent.worker.js +2 -2
- package/dist/{browser-xmS9GzfL.mjs → browser-DYM0xYW7.mjs} +182 -163
- package/dist/{git-log-oavcyP_a.mjs → git-log-2CCyb12r.mjs} +2 -2
- package/dist/{index-CGL3SWV3.mjs → index-C0Q-ALpC.mjs} +2 -2
- package/dist/index.js +870 -654
- package/dist/lib/components/CodyWebChat.d.ts +8 -0
- package/dist/lib/components/CodyWebChat.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/types.d.ts +1 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/style.css +96 -72
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -17
- package/LICENSE +0 -201
package/dist/agent.worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./agent.worker-
|
|
2
|
-
import "./browser-
|
|
1
|
+
import "./agent.worker-DCppPL5H.mjs";
|
|
2
|
+
import "./browser-DYM0xYW7.mjs";
|
|
@@ -2723,7 +2723,8 @@ function pick(...keys2) {
|
|
|
2723
2723
|
);
|
|
2724
2724
|
}
|
|
2725
2725
|
let shareReplaySeq = 0;
|
|
2726
|
-
function shareReplay() {
|
|
2726
|
+
function shareReplay(config) {
|
|
2727
|
+
const shouldCountRefs = (config == null ? void 0 : config.shouldCountRefs) ?? true;
|
|
2727
2728
|
shareReplaySeq++;
|
|
2728
2729
|
return (observable) => {
|
|
2729
2730
|
const subject = new MulticastSubject();
|
|
@@ -2751,7 +2752,7 @@ function shareReplay() {
|
|
|
2751
2752
|
return () => {
|
|
2752
2753
|
refCount--;
|
|
2753
2754
|
innerSub.unsubscribe();
|
|
2754
|
-
if (refCount === 0) {
|
|
2755
|
+
if (shouldCountRefs && refCount === 0) {
|
|
2755
2756
|
if (subscription) {
|
|
2756
2757
|
unsubscribe(subscription);
|
|
2757
2758
|
subscription = null;
|
|
@@ -3137,6 +3138,10 @@ const cenv = defineEnvBuilder({
|
|
|
3137
3138
|
* not explicitly configured (or disabled with 'false').
|
|
3138
3139
|
*/
|
|
3139
3140
|
CODY_NODE_DEFAULT_PROXY: proxyStringWithNodeFallback,
|
|
3141
|
+
/**
|
|
3142
|
+
* A setting that is similar (and falls back to) Node's NODE_TLS_REJECT_UNAUTHORIZED setting
|
|
3143
|
+
*/
|
|
3144
|
+
CODY_NODE_TLS_REJECT_UNAUTHORIZED: (envValue, _2) => bool(envValue) ?? bool(getEnv("NODE_TLS_REJECT_UNAUTHORIZED")),
|
|
3140
3145
|
/**
|
|
3141
3146
|
* Enables unstable internal testing configuration to be read from settings.json
|
|
3142
3147
|
*/
|
|
@@ -3444,7 +3449,7 @@ var SemverString;
|
|
|
3444
3449
|
SemverString2.forcePrefix = forcePrefix;
|
|
3445
3450
|
})(SemverString || (SemverString = {}));
|
|
3446
3451
|
const pendingOperation = Symbol.for("@@pendingOperation");
|
|
3447
|
-
function switchMapReplayOperation(operation) {
|
|
3452
|
+
function switchMapReplayOperation(operation, shareReplayConfig) {
|
|
3448
3453
|
return (source) => {
|
|
3449
3454
|
return Observable.from(source).pipe(
|
|
3450
3455
|
switchMap(
|
|
@@ -3455,7 +3460,7 @@ function switchMapReplayOperation(operation) {
|
|
|
3455
3460
|
startWith(pendingOperation)
|
|
3456
3461
|
)
|
|
3457
3462
|
),
|
|
3458
|
-
shareReplay()
|
|
3463
|
+
shareReplay(shareReplayConfig)
|
|
3459
3464
|
);
|
|
3460
3465
|
};
|
|
3461
3466
|
}
|
|
@@ -9571,13 +9576,20 @@ query ViewerPrompts($query: String!) {
|
|
|
9571
9576
|
}
|
|
9572
9577
|
}
|
|
9573
9578
|
}`;
|
|
9579
|
+
var PromptsOrderBy = /* @__PURE__ */ ((PromptsOrderBy2) => {
|
|
9580
|
+
PromptsOrderBy2["PROMPT_NAME_WITH_OWNER"] = "PROMPT_NAME_WITH_OWNER";
|
|
9581
|
+
PromptsOrderBy2["PROMPT_UPDATED_AT"] = "PROMPT_UPDATED_AT";
|
|
9582
|
+
PromptsOrderBy2["PROMPT_RECOMMENDED"] = "PROMPT_RECOMMENDED";
|
|
9583
|
+
return PromptsOrderBy2;
|
|
9584
|
+
})(PromptsOrderBy || {});
|
|
9574
9585
|
const PROMPTS_QUERY = `
|
|
9575
|
-
query ViewerPrompts($query: String!) {
|
|
9576
|
-
prompts(query: $query, first:
|
|
9586
|
+
query ViewerPrompts($query: String!, $first: Int!, $recommendedOnly: Boolean!, $orderByMultiple: [PromptsOrderBy!]) {
|
|
9587
|
+
prompts(query: $query, first: $first, includeDrafts: false, recommendedOnly: $recommendedOnly, includeViewerDrafts: true, viewerIsAffiliated: true, orderByMultiple: $orderByMultiple) {
|
|
9577
9588
|
nodes {
|
|
9578
9589
|
id
|
|
9579
9590
|
name
|
|
9580
9591
|
nameWithOwner
|
|
9592
|
+
recommended
|
|
9581
9593
|
owner {
|
|
9582
9594
|
namespaceName
|
|
9583
9595
|
}
|
|
@@ -9597,10 +9609,6 @@ query ViewerPrompts($query: String!) {
|
|
|
9597
9609
|
}
|
|
9598
9610
|
}
|
|
9599
9611
|
totalCount
|
|
9600
|
-
pageInfo {
|
|
9601
|
-
hasNextPage
|
|
9602
|
-
endCursor
|
|
9603
|
-
}
|
|
9604
9612
|
}
|
|
9605
9613
|
}`;
|
|
9606
9614
|
const REPO_NAME_QUERY = `
|
|
@@ -10430,11 +10438,21 @@ class SourcegraphGraphQLAPIClient {
|
|
|
10430
10438
|
}
|
|
10431
10439
|
return result;
|
|
10432
10440
|
}
|
|
10433
|
-
async queryPrompts(
|
|
10441
|
+
async queryPrompts({
|
|
10442
|
+
query,
|
|
10443
|
+
first,
|
|
10444
|
+
recommendedOnly,
|
|
10445
|
+
signal
|
|
10446
|
+
}) {
|
|
10434
10447
|
const hasIncludeViewerDraftsArg = await this.isValidSiteVersion({ minimumVersion: "5.9.0" });
|
|
10435
10448
|
const response = await this.fetchSourcegraphAPI(
|
|
10436
10449
|
hasIncludeViewerDraftsArg ? PROMPTS_QUERY : LEGACY_PROMPTS_QUERY_5_8,
|
|
10437
|
-
{
|
|
10450
|
+
{
|
|
10451
|
+
query,
|
|
10452
|
+
first: first ?? 100,
|
|
10453
|
+
recommendedOnly,
|
|
10454
|
+
orderByMultiple: [PromptsOrderBy.PROMPT_RECOMMENDED, PromptsOrderBy.PROMPT_UPDATED_AT]
|
|
10455
|
+
},
|
|
10438
10456
|
signal
|
|
10439
10457
|
);
|
|
10440
10458
|
const result = extractDataOrError(response, (data) => data.prompts.nodes);
|
|
@@ -10987,23 +11005,19 @@ var FeatureFlag = /* @__PURE__ */ ((FeatureFlag2) => {
|
|
|
10987
11005
|
FeatureFlag2["CodyAutocompleteDeepseekV2LiteBase"] = "cody-autocomplete-deepseek-v2-lite-base";
|
|
10988
11006
|
FeatureFlag2["CodyAutocompleteDataCollectionFlag"] = "cody-autocomplete-logs-collection-flag";
|
|
10989
11007
|
FeatureFlag2["CodyAutocompleteFastPath"] = "cody-autocomplete-fast-path";
|
|
10990
|
-
FeatureFlag2["CodyAutocompleteFIMModelExperimentBaseFeatureFlag"] = "cody-autocomplete-model-
|
|
10991
|
-
FeatureFlag2["CodyAutocompleteFIMModelExperimentControl"] = "cody-autocomplete-model-
|
|
10992
|
-
FeatureFlag2["CodyAutocompleteFIMModelExperimentCurrentBest"] = "cody-autocomplete-model-
|
|
10993
|
-
FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant1"] = "cody-autocomplete-model-
|
|
10994
|
-
FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant2"] = "cody-autocomplete-model-
|
|
10995
|
-
FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant3"] = "cody-autocomplete-model-
|
|
10996
|
-
FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant4"] = "cody-autocomplete-model-
|
|
10997
|
-
FeatureFlag2["CodyAutocompletePreloadingExperimentBaseFeatureFlag"] = "cody-autocomplete-preloading-experiment-flag";
|
|
10998
|
-
FeatureFlag2["CodyAutocompletePreloadingExperimentVariant1"] = "cody-autocomplete-preloading-experiment-variant-1";
|
|
10999
|
-
FeatureFlag2["CodyAutocompletePreloadingExperimentVariant2"] = "cody-autocomplete-preloading-experiment-variant-2";
|
|
11008
|
+
FeatureFlag2["CodyAutocompleteFIMModelExperimentBaseFeatureFlag"] = "cody-autocomplete-model-v2-experiment-flag";
|
|
11009
|
+
FeatureFlag2["CodyAutocompleteFIMModelExperimentControl"] = "cody-autocomplete-model-experiment-control";
|
|
11010
|
+
FeatureFlag2["CodyAutocompleteFIMModelExperimentCurrentBest"] = "cody-autocomplete-model-experiment-current-best";
|
|
11011
|
+
FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant1"] = "cody-autocomplete-model-experiment-variant-1";
|
|
11012
|
+
FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant2"] = "cody-autocomplete-model-experiment-variant-2";
|
|
11013
|
+
FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant3"] = "cody-autocomplete-model-experiment-variant-3";
|
|
11014
|
+
FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant4"] = "cody-autocomplete-model-experiment-variant-4";
|
|
11000
11015
|
FeatureFlag2["CodyAutocompleteContextExperimentBaseFeatureFlag"] = "cody-autocomplete-context-experiment-flag";
|
|
11001
11016
|
FeatureFlag2["CodyAutocompleteContextExperimentVariant1"] = "cody-autocomplete-context-experiment-variant-1";
|
|
11002
11017
|
FeatureFlag2["CodyAutocompleteContextExperimentVariant2"] = "cody-autocomplete-context-experiment-variant-2";
|
|
11003
11018
|
FeatureFlag2["CodyAutocompleteContextExperimentVariant3"] = "cody-autocomplete-context-experiment-variant-3";
|
|
11004
11019
|
FeatureFlag2["CodyAutocompleteContextExperimentVariant4"] = "cody-autocomplete-context-experiment-variant-4";
|
|
11005
11020
|
FeatureFlag2["CodyAutocompleteContextExperimentControl"] = "cody-autocomplete-context-experiment-control";
|
|
11006
|
-
FeatureFlag2["CodyAutocompleteContextExtendLanguagePool"] = "cody-autocomplete-context-extend-language-pool";
|
|
11007
11021
|
FeatureFlag2["UseSscForCodySubscription"] = "use-ssc-for-cody-subscription";
|
|
11008
11022
|
FeatureFlag2["CodyProTrialEnded"] = "cody-pro-trial-ended";
|
|
11009
11023
|
FeatureFlag2["CodyInteractiveTutorial"] = "cody-interactive-tutorial";
|
|
@@ -11012,7 +11026,9 @@ var FeatureFlag = /* @__PURE__ */ ((FeatureFlag2) => {
|
|
|
11012
11026
|
FeatureFlag2["CodyExperimentalOneBox"] = "cody-experimental-one-box";
|
|
11013
11027
|
FeatureFlag2["CodyEarlyAccess"] = "cody-early-access";
|
|
11014
11028
|
FeatureFlag2["CodyUnifiedPrompts"] = "cody-unified-prompts";
|
|
11029
|
+
FeatureFlag2["CodyPromptsV2"] = "prompt-creation-v2";
|
|
11015
11030
|
FeatureFlag2["DeepCody"] = "cody-deep-reflection";
|
|
11031
|
+
FeatureFlag2["NoDefaultRepoChip"] = "no-default-repo-chip";
|
|
11016
11032
|
return FeatureFlag2;
|
|
11017
11033
|
})(FeatureFlag || {});
|
|
11018
11034
|
const ONE_HOUR = 60 * 60 * 1e3;
|
|
@@ -12848,10 +12864,11 @@ async function getTokenCounterUtils() {
|
|
|
12848
12864
|
return tokenizer.decode(encoded);
|
|
12849
12865
|
},
|
|
12850
12866
|
countTokens(text) {
|
|
12851
|
-
|
|
12867
|
+
const wordCount = text.trim().split(/\s+/).length;
|
|
12868
|
+
return wordCount > EXTENDED_USER_CONTEXT_TOKEN_BUDGET ? wordCount : this.encode(text).length;
|
|
12852
12869
|
},
|
|
12853
12870
|
countPromptString(text) {
|
|
12854
|
-
return
|
|
12871
|
+
return this.countTokens(text.toString());
|
|
12855
12872
|
},
|
|
12856
12873
|
getMessagesTokenCount(messages2) {
|
|
12857
12874
|
return messages2.reduce((acc, m4) => acc + this.getTokenCountForMessage(m4), 0);
|
|
@@ -23230,18 +23247,19 @@ function logRPCMessage(msg, ...args) {
|
|
|
23230
23247
|
logDebug("[RPC]", msg, ...args);
|
|
23231
23248
|
}
|
|
23232
23249
|
}
|
|
23233
|
-
function createExtensionAPI(messageAPI,
|
|
23250
|
+
function createExtensionAPI(messageAPI, staticDefaultContext) {
|
|
23234
23251
|
const hydratePromptMessage = proxyExtensionAPI(messageAPI, "hydratePromptMessage");
|
|
23235
23252
|
return {
|
|
23236
23253
|
mentionMenuData: proxyExtensionAPI(messageAPI, "mentionMenuData"),
|
|
23237
23254
|
evaluatedFeatureFlag: proxyExtensionAPI(messageAPI, "evaluatedFeatureFlag"),
|
|
23238
23255
|
prompts: proxyExtensionAPI(messageAPI, "prompts"),
|
|
23256
|
+
clientActionBroadcast: proxyExtensionAPI(messageAPI, "clientActionBroadcast"),
|
|
23239
23257
|
models: proxyExtensionAPI(messageAPI, "models"),
|
|
23240
23258
|
chatModels: proxyExtensionAPI(messageAPI, "chatModels"),
|
|
23241
23259
|
highlights: proxyExtensionAPI(messageAPI, "highlights"),
|
|
23242
|
-
hydratePromptMessage: (promptText) => hydratePromptMessage(promptText,
|
|
23260
|
+
hydratePromptMessage: (promptText) => hydratePromptMessage(promptText, staticDefaultContext == null ? void 0 : staticDefaultContext.initialContext),
|
|
23243
23261
|
setChatModel: proxyExtensionAPI(messageAPI, "setChatModel"),
|
|
23244
|
-
|
|
23262
|
+
defaultContext: staticDefaultContext ? () => Observable.of(staticDefaultContext) : proxyExtensionAPI(messageAPI, "defaultContext"),
|
|
23245
23263
|
detectIntent: proxyExtensionAPI(messageAPI, "detectIntent"),
|
|
23246
23264
|
promptsMigrationStatus: proxyExtensionAPI(messageAPI, "promptsMigrationStatus"),
|
|
23247
23265
|
startPromptsMigration: proxyExtensionAPI(messageAPI, "startPromptsMigration"),
|
|
@@ -26458,6 +26476,7 @@ ril.default = RIL;
|
|
|
26458
26476
|
super();
|
|
26459
26477
|
this._onData = new api_12.Emitter();
|
|
26460
26478
|
this._messageListener = (event) => {
|
|
26479
|
+
console.log("BrowserMessageReader listener");
|
|
26461
26480
|
this._onData.fire(event.data);
|
|
26462
26481
|
};
|
|
26463
26482
|
port.addEventListener("error", (event) => this.fireError(event));
|
|
@@ -26533,7 +26552,7 @@ export {
|
|
|
26533
26552
|
Ni as Y,
|
|
26534
26553
|
ee as Z,
|
|
26535
26554
|
_s as _,
|
|
26536
|
-
|
|
26555
|
+
ds as a,
|
|
26537
26556
|
scanForMentionTriggerInUserTextInput as a$,
|
|
26538
26557
|
b2 as a0,
|
|
26539
26558
|
T2 as a1,
|
|
@@ -26598,7 +26617,7 @@ export {
|
|
|
26598
26617
|
IGNORED_FILE_WARNING_LABEL as ax,
|
|
26599
26618
|
LARGE_FILE_WARNING_LABEL as ay,
|
|
26600
26619
|
Ei as az,
|
|
26601
|
-
|
|
26620
|
+
ks as b,
|
|
26602
26621
|
pick as b$,
|
|
26603
26622
|
fs as b0,
|
|
26604
26623
|
Ts as b1,
|
|
@@ -26664,7 +26683,7 @@ export {
|
|
|
26664
26683
|
textContentFromSerializedLexicalNode as by,
|
|
26665
26684
|
FAST_CHAT_INPUT_TOKEN_BUDGET as bz,
|
|
26666
26685
|
commonjsGlobal as c,
|
|
26667
|
-
|
|
26686
|
+
_isIndex as c$,
|
|
26668
26687
|
pendingOperation as c0,
|
|
26669
26688
|
getModelInfo as c1,
|
|
26670
26689
|
CHAT_OUTPUT_TOKEN_BUDGET as c2,
|
|
@@ -26682,26 +26701,26 @@ export {
|
|
|
26682
26701
|
Utils as cE,
|
|
26683
26702
|
toString_1 as cF,
|
|
26684
26703
|
upperFirst_1 as cG,
|
|
26685
|
-
|
|
26686
|
-
|
|
26687
|
-
|
|
26688
|
-
|
|
26689
|
-
|
|
26690
|
-
|
|
26691
|
-
|
|
26692
|
-
|
|
26693
|
-
|
|
26694
|
-
|
|
26695
|
-
|
|
26696
|
-
|
|
26697
|
-
|
|
26698
|
-
|
|
26699
|
-
|
|
26700
|
-
|
|
26701
|
-
|
|
26702
|
-
|
|
26703
|
-
|
|
26704
|
-
|
|
26704
|
+
_$1 as cH,
|
|
26705
|
+
extensionForLanguage as cI,
|
|
26706
|
+
setClientNameVersion as cJ,
|
|
26707
|
+
_getNative as cK,
|
|
26708
|
+
eq_1$1 as cL,
|
|
26709
|
+
_root as cM,
|
|
26710
|
+
_Uint8Array as cN,
|
|
26711
|
+
isObject_1 as cO,
|
|
26712
|
+
_overArg as cP,
|
|
26713
|
+
_isPrototype as cQ,
|
|
26714
|
+
isArrayLike_1 as cR,
|
|
26715
|
+
isObjectLike_1 as cS,
|
|
26716
|
+
_baseGetTag as cT,
|
|
26717
|
+
_arrayLikeKeys as cU,
|
|
26718
|
+
isArguments_1 as cV,
|
|
26719
|
+
isArray_1 as cW,
|
|
26720
|
+
isBufferExports as cX,
|
|
26721
|
+
isFunction_1 as cY,
|
|
26722
|
+
isTypedArray_1 as cZ,
|
|
26723
|
+
_Stack as c_,
|
|
26705
26724
|
INCLUDE_EVERYTHING_CONTEXT_FILTERS as ca,
|
|
26706
26725
|
EXCLUDE_EVERYTHING_CONTEXT_FILTERS as cb,
|
|
26707
26726
|
onAbort as cc,
|
|
@@ -26729,120 +26748,120 @@ export {
|
|
|
26729
26748
|
truncatePromptString as cy,
|
|
26730
26749
|
isS2 as cz,
|
|
26731
26750
|
dedent as d,
|
|
26732
|
-
|
|
26733
|
-
|
|
26734
|
-
|
|
26735
|
-
|
|
26736
|
-
|
|
26737
|
-
|
|
26738
|
-
|
|
26739
|
-
|
|
26740
|
-
|
|
26741
|
-
|
|
26742
|
-
|
|
26743
|
-
|
|
26744
|
-
|
|
26745
|
-
|
|
26746
|
-
|
|
26747
|
-
|
|
26748
|
-
|
|
26749
|
-
|
|
26750
|
-
|
|
26751
|
-
|
|
26752
|
-
|
|
26753
|
-
|
|
26754
|
-
|
|
26755
|
-
|
|
26756
|
-
|
|
26757
|
-
|
|
26758
|
-
|
|
26759
|
-
|
|
26760
|
-
|
|
26761
|
-
|
|
26762
|
-
|
|
26763
|
-
|
|
26764
|
-
|
|
26765
|
-
|
|
26766
|
-
|
|
26767
|
-
|
|
26768
|
-
|
|
26769
|
-
|
|
26770
|
-
|
|
26771
|
-
|
|
26772
|
-
|
|
26773
|
-
|
|
26774
|
-
|
|
26775
|
-
|
|
26776
|
-
|
|
26777
|
-
|
|
26778
|
-
|
|
26779
|
-
|
|
26780
|
-
|
|
26781
|
-
|
|
26782
|
-
|
|
26783
|
-
|
|
26784
|
-
|
|
26785
|
-
|
|
26786
|
-
|
|
26787
|
-
|
|
26788
|
-
|
|
26789
|
-
|
|
26790
|
-
|
|
26791
|
-
|
|
26792
|
-
|
|
26793
|
-
|
|
26794
|
-
|
|
26751
|
+
dist as d$,
|
|
26752
|
+
isSourcegraphToken as d0,
|
|
26753
|
+
base64Js as d1,
|
|
26754
|
+
setExtensionVersion as d2,
|
|
26755
|
+
withLatestFrom as d3,
|
|
26756
|
+
NEVER as d4,
|
|
26757
|
+
abortableOperation as d5,
|
|
26758
|
+
disposableSubscription as d6,
|
|
26759
|
+
setAuthStatusObservable as d7,
|
|
26760
|
+
normalizeServerEndpointURL as d8,
|
|
26761
|
+
SourcegraphGraphQLAPIClient as d9,
|
|
26762
|
+
updateGlobalTelemetryInstances as dA,
|
|
26763
|
+
TelemetryRecorderProvider as dB,
|
|
26764
|
+
telemetryRecorderProvider as dC,
|
|
26765
|
+
createGitDiff as dD,
|
|
26766
|
+
convertGitCloneURLToCodebaseName as dE,
|
|
26767
|
+
pluck as dF,
|
|
26768
|
+
catchError as dG,
|
|
26769
|
+
_getSymbols as dH,
|
|
26770
|
+
_arrayPush as dI,
|
|
26771
|
+
stubArray_1 as dJ,
|
|
26772
|
+
_baseGetAllKeys as dK,
|
|
26773
|
+
_Symbol as dL,
|
|
26774
|
+
_getTag as dM,
|
|
26775
|
+
_nodeUtilExports as dN,
|
|
26776
|
+
_baseUnary as dO,
|
|
26777
|
+
_getAllKeys as dP,
|
|
26778
|
+
_baseSlice as dQ,
|
|
26779
|
+
_arrayMap as dR,
|
|
26780
|
+
displayPathWithoutWorkspaceFolderPrefix as dS,
|
|
26781
|
+
getEditorInsertSpaces as dT,
|
|
26782
|
+
escapeRegExp$1 as dU,
|
|
26783
|
+
isNetworkError as dV,
|
|
26784
|
+
http as dW,
|
|
26785
|
+
currentAuthStatusOrNotReadyYet as dX,
|
|
26786
|
+
getAugmentedNamespace as dY,
|
|
26787
|
+
main as dZ,
|
|
26788
|
+
TESTING_TELEMETRY_EXPORTER as d_,
|
|
26789
|
+
isNetworkLikeError as da,
|
|
26790
|
+
DOTCOM_URL as db,
|
|
26791
|
+
SUPPORTED_URI_SCHEMAS as dc,
|
|
26792
|
+
_baseIsEqual as dd,
|
|
26793
|
+
keys_1 as de,
|
|
26794
|
+
isSymbol_1 as df,
|
|
26795
|
+
_MapCache as dg,
|
|
26796
|
+
isLength_1 as dh,
|
|
26797
|
+
toNumber_1 as di,
|
|
26798
|
+
_baseFindIndex as dj,
|
|
26799
|
+
NetworkError as dk,
|
|
26800
|
+
isRateLimitError as dl,
|
|
26801
|
+
isAuthError as dm,
|
|
26802
|
+
TokenCounterUtils as dn,
|
|
26803
|
+
toRangeData as dp,
|
|
26804
|
+
DefaultChatCommands as dq,
|
|
26805
|
+
pathFunctionsForURI as dr,
|
|
26806
|
+
uriParseNameAndExtension as ds,
|
|
26807
|
+
uriDirname as dt,
|
|
26808
|
+
uriExtname as du,
|
|
26809
|
+
uriBasename as dv,
|
|
26810
|
+
DefaultEditCommands as dw,
|
|
26811
|
+
subscriptionDisposable as dx,
|
|
26812
|
+
NoOpTelemetryRecorderProvider as dy,
|
|
26813
|
+
TimestampTelemetryProcessor_1 as dz,
|
|
26795
26814
|
bs as e,
|
|
26796
|
-
|
|
26797
|
-
|
|
26798
|
-
|
|
26799
|
-
|
|
26800
|
-
|
|
26801
|
-
|
|
26802
|
-
|
|
26803
|
-
|
|
26804
|
-
|
|
26805
|
-
|
|
26806
|
-
|
|
26807
|
-
|
|
26808
|
-
|
|
26809
|
-
|
|
26810
|
-
|
|
26811
|
-
|
|
26812
|
-
|
|
26813
|
-
|
|
26814
|
-
|
|
26815
|
-
|
|
26816
|
-
|
|
26817
|
-
|
|
26818
|
-
|
|
26815
|
+
currentAuthStatusAuthed as e0,
|
|
26816
|
+
waitUntilComplete as e1,
|
|
26817
|
+
isWindows as e2,
|
|
26818
|
+
currentUserProductSubscription as e3,
|
|
26819
|
+
structuredPatch as e4,
|
|
26820
|
+
isDotComAuthed as e5,
|
|
26821
|
+
dedupeWith as e6,
|
|
26822
|
+
AbortError as e7,
|
|
26823
|
+
TimeoutError as e8,
|
|
26824
|
+
createDisposables as e9,
|
|
26825
|
+
posixFilePaths as eA,
|
|
26826
|
+
SURROUNDING_LINES as eB,
|
|
26827
|
+
CODY_SUPPORT_URL as eC,
|
|
26828
|
+
CODY_DOC_URL as eD,
|
|
26829
|
+
DISCORD_URL as eE,
|
|
26830
|
+
globalAgentRef as eF,
|
|
26831
|
+
SG_CHANGELOG_URL as eG,
|
|
26832
|
+
ACCOUNT_LIMITS_INFO_URL as eH,
|
|
26833
|
+
assertUnreachable as eI,
|
|
26834
|
+
promise as eJ,
|
|
26835
|
+
setLogger as eK,
|
|
26836
|
+
setClientCapabilities as eL,
|
|
26837
|
+
setResolvedConfigurationObservable as eM,
|
|
26819
26838
|
CODY_OLLAMA_DOCS_URL as eN,
|
|
26820
|
-
|
|
26821
|
-
|
|
26822
|
-
|
|
26823
|
-
|
|
26824
|
-
|
|
26825
|
-
|
|
26826
|
-
|
|
26827
|
-
|
|
26828
|
-
|
|
26829
|
-
|
|
26830
|
-
|
|
26831
|
-
|
|
26832
|
-
|
|
26833
|
-
|
|
26834
|
-
|
|
26835
|
-
|
|
26836
|
-
|
|
26837
|
-
|
|
26838
|
-
|
|
26839
|
-
|
|
26840
|
-
|
|
26841
|
-
|
|
26842
|
-
|
|
26843
|
-
|
|
26844
|
-
|
|
26845
|
-
|
|
26839
|
+
getEditorTabSize as ea,
|
|
26840
|
+
debounce_1 as eb,
|
|
26841
|
+
mentionProvidersMetadata as ec,
|
|
26842
|
+
editorStateFromPromptString as ed,
|
|
26843
|
+
assertFileURI as ee,
|
|
26844
|
+
setOpenCtx as ef,
|
|
26845
|
+
truncateTextNearestLine as eg,
|
|
26846
|
+
MAX_BYTES_PER_FILE as eh,
|
|
26847
|
+
expandToLineRange as ei,
|
|
26848
|
+
TokenCounter as ej,
|
|
26849
|
+
PromptMode as ek,
|
|
26850
|
+
skip as el,
|
|
26851
|
+
tracer as em,
|
|
26852
|
+
getTokenCounterUtils as en,
|
|
26853
|
+
isContextWindowLimitError as eo,
|
|
26854
|
+
addMessageListenersForExtensionAPI as ep,
|
|
26855
|
+
createMessageAPIForExtension as eq,
|
|
26856
|
+
CODY_BLOG_URL_o1_WAITLIST as er,
|
|
26857
|
+
CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID as es,
|
|
26858
|
+
GENERAL_HELP_LABEL as et,
|
|
26859
|
+
diffLines as eu,
|
|
26860
|
+
psDedent as ev,
|
|
26861
|
+
languageFromFilename as ew,
|
|
26862
|
+
ProgrammingLanguage as ex,
|
|
26863
|
+
truncatePromptStringStart as ey,
|
|
26864
|
+
MAX_CURRENT_FILE_TOKENS as ez,
|
|
26846
26865
|
ws as f,
|
|
26847
26866
|
getDefaultExportFromCjs as g,
|
|
26848
26867
|
g as h,
|
|
@@ -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-DCppPL5H.mjs";
|
|
2
|
+
import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-DYM0xYW7.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, a as workspace, u as updateRangeMultipleChanges, c as commands, e as executeEdit, T as TERMINAL_EDIT_STATES, b as ThemeColor, l as languages, C as CodeLens, d as setTutorialUri, f as logSidebarClick, g 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, a as workspace, u as updateRangeMultipleChanges, c as commands, e as executeEdit, T as TERMINAL_EDIT_STATES, b as ThemeColor, l as languages, C as CodeLens, d as setTutorialUri, f as logSidebarClick, g as Disposable } from "./agent.worker-DCppPL5H.mjs";
|
|
5
|
+
import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-DYM0xYW7.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>`;
|