@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.
@@ -1,2 +1,2 @@
1
- import "./agent.worker-D-CTHcD9.mjs";
2
- import "./browser-xmS9GzfL.mjs";
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: 100, includeDrafts: false, includeViewerDrafts: true, viewerIsAffiliated: true, orderBy: PROMPT_UPDATED_AT) {
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(query, signal) {
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
- { query },
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-v1-experiment-flag";
10991
- FeatureFlag2["CodyAutocompleteFIMModelExperimentControl"] = "cody-autocomplete-model-v1-experiment-control";
10992
- FeatureFlag2["CodyAutocompleteFIMModelExperimentCurrentBest"] = "cody-autocomplete-model-v1-experiment-current-best";
10993
- FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant1"] = "cody-autocomplete-model-v1-experiment-variant-1";
10994
- FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant2"] = "cody-autocomplete-model-v1-experiment-variant-2";
10995
- FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant3"] = "cody-autocomplete-model-v1-experiment-variant-3";
10996
- FeatureFlag2["CodyAutocompleteFIMModelExperimentVariant4"] = "cody-autocomplete-model-v1-experiment-variant-4";
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
- return tokenCounterUtils.encode(text).length;
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 tokenCounterUtils.encode(text.toString()).length;
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, staticInitialContext) {
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, staticInitialContext),
23260
+ hydratePromptMessage: (promptText) => hydratePromptMessage(promptText, staticDefaultContext == null ? void 0 : staticDefaultContext.initialContext),
23243
23261
  setChatModel: proxyExtensionAPI(messageAPI, "setChatModel"),
23244
- initialContext: staticInitialContext ? () => Observable.of(staticInitialContext) : proxyExtensionAPI(messageAPI, "initialContext"),
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
- ks as a,
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
- ds as b,
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
- isSourcegraphToken as c$,
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
- extensionForLanguage as cH,
26686
- setClientNameVersion as cI,
26687
- _getNative as cJ,
26688
- eq_1$1 as cK,
26689
- _root as cL,
26690
- _Uint8Array as cM,
26691
- isObject_1 as cN,
26692
- _overArg as cO,
26693
- _isPrototype as cP,
26694
- isArrayLike_1 as cQ,
26695
- isObjectLike_1 as cR,
26696
- _baseGetTag as cS,
26697
- _arrayLikeKeys as cT,
26698
- isArguments_1 as cU,
26699
- isArray_1 as cV,
26700
- isBufferExports as cW,
26701
- isFunction_1 as cX,
26702
- isTypedArray_1 as cY,
26703
- _Stack as cZ,
26704
- _isIndex as c_,
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
- _baseSlice as d$,
26733
- base64Js as d0,
26734
- setExtensionVersion as d1,
26735
- withLatestFrom as d2,
26736
- NEVER as d3,
26737
- abortableOperation as d4,
26738
- disposableSubscription as d5,
26739
- setAuthStatusObservable as d6,
26740
- normalizeServerEndpointURL as d7,
26741
- SourcegraphGraphQLAPIClient as d8,
26742
- isNetworkLikeError as d9,
26743
- TelemetryRecorderProvider as dA,
26744
- telemetryRecorderProvider as dB,
26745
- createGitDiff as dC,
26746
- convertGitCloneURLToCodebaseName as dD,
26747
- pluck as dE,
26748
- catchError as dF,
26749
- displayPathWithoutWorkspaceFolderPrefix as dG,
26750
- getEditorInsertSpaces as dH,
26751
- escapeRegExp$1 as dI,
26752
- isNetworkError as dJ,
26753
- http as dK,
26754
- currentAuthStatusOrNotReadyYet as dL,
26755
- getAugmentedNamespace as dM,
26756
- main as dN,
26757
- TESTING_TELEMETRY_EXPORTER as dO,
26758
- dist as dP,
26759
- currentAuthStatusAuthed as dQ,
26760
- waitUntilComplete as dR,
26761
- _getSymbols as dS,
26762
- _arrayPush as dT,
26763
- stubArray_1 as dU,
26764
- _baseGetAllKeys as dV,
26765
- _Symbol as dW,
26766
- _getTag as dX,
26767
- _nodeUtilExports as dY,
26768
- _baseUnary as dZ,
26769
- _getAllKeys as d_,
26770
- DOTCOM_URL as da,
26771
- SUPPORTED_URI_SCHEMAS as db,
26772
- _baseIsEqual as dc,
26773
- keys_1 as dd,
26774
- isSymbol_1 as de,
26775
- _MapCache as df,
26776
- isLength_1 as dg,
26777
- toNumber_1 as dh,
26778
- _baseFindIndex as di,
26779
- NetworkError as dj,
26780
- isRateLimitError as dk,
26781
- isAuthError as dl,
26782
- TokenCounterUtils as dm,
26783
- toRangeData as dn,
26784
- DefaultChatCommands as dp,
26785
- pathFunctionsForURI as dq,
26786
- uriParseNameAndExtension as dr,
26787
- uriDirname as ds,
26788
- uriExtname as dt,
26789
- uriBasename as du,
26790
- DefaultEditCommands as dv,
26791
- subscriptionDisposable as dw,
26792
- NoOpTelemetryRecorderProvider as dx,
26793
- TimestampTelemetryProcessor_1 as dy,
26794
- updateGlobalTelemetryInstances as dz,
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
- _arrayMap as e0,
26797
- isWindows as e1,
26798
- currentUserProductSubscription as e2,
26799
- structuredPatch as e3,
26800
- isDotComAuthed as e4,
26801
- dedupeWith as e5,
26802
- AbortError as e6,
26803
- TimeoutError as e7,
26804
- createDisposables as e8,
26805
- getEditorTabSize as e9,
26806
- SURROUNDING_LINES as eA,
26807
- CODY_SUPPORT_URL as eB,
26808
- CODY_DOC_URL as eC,
26809
- DISCORD_URL as eD,
26810
- globalAgentRef as eE,
26811
- SG_CHANGELOG_URL as eF,
26812
- ACCOUNT_LIMITS_INFO_URL as eG,
26813
- assertUnreachable as eH,
26814
- promise as eI,
26815
- setLogger as eJ,
26816
- setClientCapabilities as eK,
26817
- setResolvedConfigurationObservable as eL,
26818
- _$1 as eM,
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
- debounce_1 as ea,
26821
- mentionProvidersMetadata as eb,
26822
- editorStateFromPromptString as ec,
26823
- assertFileURI as ed,
26824
- setOpenCtx as ee,
26825
- truncateTextNearestLine as ef,
26826
- MAX_BYTES_PER_FILE as eg,
26827
- expandToLineRange as eh,
26828
- TokenCounter as ei,
26829
- PromptMode as ej,
26830
- skip as ek,
26831
- tracer as el,
26832
- getTokenCounterUtils as em,
26833
- isContextWindowLimitError as en,
26834
- addMessageListenersForExtensionAPI as eo,
26835
- createMessageAPIForExtension as ep,
26836
- CODY_BLOG_URL_o1_WAITLIST as eq,
26837
- CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID as er,
26838
- GENERAL_HELP_LABEL as es,
26839
- diffLines as et,
26840
- psDedent as eu,
26841
- languageFromFilename as ev,
26842
- ProgrammingLanguage as ew,
26843
- truncatePromptStringStart as ex,
26844
- MAX_CURRENT_FILE_TOKENS as ey,
26845
- posixFilePaths as ez,
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-D-CTHcD9.mjs";
2
- import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-xmS9GzfL.mjs";
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-D-CTHcD9.mjs";
5
- import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-xmS9GzfL.mjs";
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>`;