@sourcegraph/cody-web 0.37.0 → 0.38.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.
@@ -18,8 +18,8 @@ var __privateWrapper = (obj, member, setter2, getter) => ({
18
18
  }
19
19
  });
20
20
  var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn, _a2, _b, _c, _d, _e, _constructing, _f, _g, _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_fn2, moveToTail_fn, _h, _i, _j, _k, _l;
21
- import { dt as Observable, dX as unsubscribe, dY as AsyncSerialScheduler, de as authStatus, cB as pick, cF as distinctUntilChanged$1, c$ as switchMapReplayOperation, c_ as pendingOperation, co as promiseFactoryToObservable, dw as map$1, a as isError$3, cZ as retry$1, a8 as logError$1, d1 as firstResultFromOperation, aD as graphqlClient, ag as isDotCom, dZ as semver, cP as debounceTime, d_ as interval, cX as filter$3, cJ as startWith$1, cN as switchMap$1, ci as firstValueFrom$1, d0 as skipPendingOperation, a7 as logDebug, i as isAbortError, d$ as expand, dK as LRUCache$1, e0 as TRANSIENT_REFETCH_INTERVAL_HINT, aR as createSubscriber, cw as fromVSCodeEvent, dv as isEqual, dc as cenv, dS as lodashExports, aG as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, J as isFileURI, w as wrapInActiveSpan, aF as INCLUDE_EVERYTHING_CONTEXT_FILTERS, bn as onAbort, bN as CHAT_INPUT_TOKEN_BUDGET, bP as CHAT_OUTPUT_TOKEN_BUDGET, M as ModelTag, bS as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, bR as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, ae as addCodyClientIdentificationHeaders, bw as addTraceparent, bM as addAuthHeaders, bI as fetch$2, e1 as verifyResponseCode, ct as combineLatest$1, cK as take$2, d7 as clientCapabilities, cC as shareReplay$1, cG as tap$2, a3 as featureFlagProvider, a2 as FeatureFlag, bs as telemetryRecorder, dh as currentAuthStatusOrNotReadyYet, dj as mockAuthStatus, cO as storeLastValue, d4 as resolvedConfig, bD as AUTH_STATUS_FIXTURE_AUTHED_DOTCOM, bF as ps, e2 as logInfo, a5 as GuardrailsMode, d5 as currentResolvedConfig, bE as PromptString, bT as CodyIDE, T as displayPath, bQ as CORPUS_CONTEXT_ALLOCATION, bz as recordErrorToSpan, aa as addClientInfoParams, bm as dependentAbortController, aY as FILE_CONTEXT_MENTION_PROVIDER, aZ as SYMBOL_CONTEXT_MENTION_PROVIDER, b0 as REMOTE_REPOSITORY_PROVIDER_URI, b1 as REMOTE_FILE_PROVIDER_URI, b2 as REMOTE_DIRECTORY_PROVIDER_URI, b3 as WEB_PROVIDER_URI, C as ContextItemSource, bd as isS2, b4 as GIT_OPENCTX_PROVIDER_URI, b5 as CODE_SEARCH_PROVIDER_URI, dJ as cryptoJsExports, b7 as currentOpenCtxController, c as URI, e3 as MulticastSubject, e4 as AsyncSerialScheduler_1, dn as getDefaultExportFromCjs, e5 as workspace, p as path$1, e6 as vscode, e7 as Range, e8 as commands$1, e9 as window$1, ea as Selection, U as Uri, eb as AgentEventEmitter, ec as MarkdownString, ed as Disposable, ee as TextEditorRevealType, ef as ThemeIcon, eg as StatusBarAlignment, eh as readFile, ei as env, ej as UIKind, ek as languages$1, dm as commonjsGlobal, an as InvalidAccessTokenError, el as _baseAssignValue, em as eq_1, en as isArrayLike_1, eo as isObjectLike_1, ep as _copyObject, eq as keysIn_1, er as _cloneBufferExports, es as _cloneTypedArray, et as _copyArray, eu as _initCloneObject, ev as isArguments_1, ew as isArray_1, ex as isBufferExports, ey as isFunction_1, ez as isObject_1, eA as isPlainObject_1, eB as isTypedArray_1, eC as _Stack, eD as identity_1, eE as _overRest, eF as _setToString, eG as _isIndex, dx as isSourcegraphToken, dR as v4, eH as CONFIG_KEY, bU as CodyAutoSuggestionMode, eI as ConfigurationTarget, eJ as appendFileSync, eK as pathBrowserify, eL as stat, eM as extensions, eN as version$2, d9 as setExtensionVersion, eO as normalizeServerEndpointURL, ax as isInvalidAccessTokenError, eP as isOAuthProviderError, af as DOTCOM_URL, ay as isNeedsAuthChallengeError, cq as EMPTY$1, cf as disposableSubscription, eQ as externalAuthRefresh, dd as setAuthStatusObservable, av as isAvailabilityError, aj as AuthConfigError, be as isWorkspaceInstance, aC as SourcegraphGraphQLAPIClient, eR as isExternalAuthProviderError, aA as isNetworkLikeError, ao as NeedsAuthChallengeError, al as AvailabilityError, df as currentAuthStatus, eS as resolveAuth, eT as QuickPickItemKind, eU as revokeOAuthTokens, bL as getAuthHeaders, eV as toLightweightChatTranscript, S as SUPPORTED_URI_SCHEMAS, eW as RelativePattern, eX as _baseIsEqual, eY as keys_1, eZ as _baseGet, e_ as _castPath, e$ as isLength_1, f0 as _toKey, f1 as _isKey, f2 as toNumber_1, f3 as _baseFindIndex, f4 as require$$0$2, ap as NetworkError, aB as isRateLimitError, au as isAuthError, f5 as FileType, f6 as dedent$1, f7 as FoldingRange, f8 as CancellationTokenSource, f9 as SymbolKind, aQ as convertGitCloneURLToCodebaseName, b as isDefined, cA as pluck, t as toRangeData, fa as Position, D as DefaultChatCommands, A as pathFunctionsForURI, R as uriParseNameAndExtension, O as uriDirname, fb as Utils$1, Q as uriExtname, K as uriBasename, h as DefaultEditCommands, ce as subscriptionDisposable, bt as updateGlobalTelemetryInstances, aN as TelemetryRecorderProvider, br as telemetryRecorderProvider, bf as createGitDiff, fc as AgentWorkspaceEdit, fd as TextDocumentChangeReason, fe as omit$1, bo as getEditorInsertSpaces, ff as escapeRegExp$1, ar as TimeoutError, az as isNetworkError, Z as displayPathWithoutWorkspaceFolderPrefix, fg as http, fh as open, cW as defer$2, cs as merge$2, cT as abortableOperation, bl as ruleSearchPaths, bi as isRuleFilename, bk as parseRuleFile, q as languageFromFilename, m as displayLineRange, bj as ruleTitle, fi as debounce_1, k as isErrorLike, d as isWindows, b6 as GLOBAL_SEARCH_PROVIDER_URI, aW as mentionProvidersMetadata, fj as ThemeColor, fk as QuickInputButtons, aV as scanForMentionTriggerInUserTextInput, aU as parseMentionQuery, L as LARGE_FILE_WARNING_LABEL, G as GENERAL_HELP_LABEL, dI as CodyTaskState, fl as CodeLens, fm as defaultWebviewPanel, cd as createExtensionAPI, bb as createMessageAPIForWebview, y as isMatlabFile, fn as EndOfLine, fo as ViewColumn, fp as Location, fq as onDidChangeActiveTextEditor, fr as tabGroups, fs as workspaceTextDocuments, ft as visibleTextEditors, fu as onDidChangeVisibleTextEditors, fv as fs, fw as onDidCloseTextDocument, fx as setCreateWebviewPanel, fy as getAugmentedNamespace, fz as extensionConfiguration, fA as existsSync, fB as rmSync, fC as mkdirSync, fD as main$1, fE as setAgent, fF as setWorkspaceDocuments, fG as setLastOpenedWorkspaceFolder, fH as onDidRegisterNewCodeActionProvider, fI as onDidUnregisterNewCodeActionProvider, fJ as onDidRegisterNewCodeLensProvider, fK as onDidUnregisterNewCodeLensProvider, fL as setClientInfo, di as firstNonPendingAuthStatus, fM as workspaceFolders$1, fN as setWorkspaceFolders, fO as onDidChangeWorkspaceFolders, fP as onDidChangeWindowState, fQ as onDidOpenTextDocument, fR as onDidSaveTextDocument, fS as onDidRenameFiles, fT as packageJson, fU as progressBars, fV as CodeActionTriggerKind, fW as CodeAction, fX as UriString, fY as DiagnosticSeverity, fZ as diagnostics, f_ as isIntegrationTesting, f$ as TESTING_TELEMETRY_EXPORTER, g0 as ProgressLocation, g1 as dist, g2 as completionProvider, g3 as InlineCompletionTriggerKind, dg as currentAuthStatusAuthed, ck as waitUntilComplete, g4 as setExtensionConfiguration, g5 as onDidChangeConfiguration, g6 as onDidChangeTextDocument, g7 as onDidChangeTextEditorSelection, g8 as statSync, g9 as copySync, E as isMacOS, g as CustomCommandType, _ as setDisplayPathEnvInfo, dU as ACCOUNT_USAGE_URL, ga as getOIDCConfiguration$1, gb as getOAuthClientId, gc as OAuthCredential, du as debounce$1, gd as structuredPatch, j as dedupeWith$1, ai as AbortError, cz as createDisposables, aE as isNodeResponse, ab as getClientInfoQueryParams, bu as tracer, bv as getActiveTraceAndSpanId, ac as getClientIdentificationHeaders, aI as setJSONAcceptContentTypeHeaders, bx as logResponseHeadersToSpan, aJ as isCustomAuthChallengeResponse, as as TracedError, dA as SpanStatusCode, aq as RateLimitError$1, ge as capitalize, gf as InlineCompletionItem, gg as createTwoFilesPatch, gh as vsCodeMocks, dD as whitespace, dB as svg, dE as find$1, dF as stringify$1, dG as stringify$2, dH as ccount, dC as html$3, bp as getEditorTabSize$1, gi as metrics, gj as _, c6 as deserializeContextItem, c2 as editorStateFromPromptString, gk as _baseGetTag, at as isAbortErrorOrSocketHangUp, b_ as inputTextWithoutContextChipsFromPromptEditorState, dL as DeepCodyAgentID, gl as exec, s as spawn, dk as UIToolStatus, W as displayPathBasename, o as expandToLineRange, a$ as openctxController, aX as openCtxProviderMetadata, e as CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID, cU as catchError$1, dP as diffWithLineNum, dl as UITerminalOutputType, gm as getPlatform$1, aH as PromptMode, cL as skip$1, dz as context, bA as extractContextFromTraceparent, aw as isContextWindowLimitError, c5 as serializeContextItem, a0 as forceHydration, r as reformatBotMessageForChat, a1 as hydrateAfterPostMessage, ba as addMessageListenersForExtensionAPI, bc as createMessageAPIForExtension, dM as View, dT as ChatHistoryType, cr as NEVER$1, gn as CodeActionKind, l as pluralize, H as assertFileURI, b8 as RULES_PROVIDER_URI, go as createCodeSearchProvider, u as languageFromFilenameAndContent, P as ProgrammingLanguage, bG as psDedent, gp as formatRuleForPrompt, z as posixFilePaths, gq as DecorationRangeBehavior, gr as diffLines, gs as CODY_SUPPORT_URL, gt as CODY_DOC_URL, gu as DISCORD_URL, bJ as globalAgentRef, gv as VSCODE_CHANGELOG_URL, gw as SG_CHANGELOG_URL, gx as ACCOUNT_LIMITS_INFO_URL, aP as assertUnreachable, aT as promise, gy as ExtensionMode, a9 as setLogger, d8 as setClientCapabilities, d2 as setResolvedConfigurationObservable, ad as setClientNameVersion, a_ as setOpenCtxControllerObservable, dW as browser$4 } from "./vscode-shim-CqAb7AbA.mjs";
22
- import { a as util$5, i as inherits_browserExports } from "./util-BR3OBpy6.mjs";
21
+ import { dt as Observable, dX as unsubscribe, dY as AsyncSerialScheduler, de as authStatus, cB as pick, cF as distinctUntilChanged$1, c$ as switchMapReplayOperation, c_ as pendingOperation, co as promiseFactoryToObservable, dw as map$1, a as isError$3, cZ as retry$1, a8 as logError$1, d1 as firstResultFromOperation, aD as graphqlClient, ag as isDotCom, dZ as semver, cP as debounceTime, d_ as interval, cX as filter$3, cJ as startWith$1, cN as switchMap$1, ci as firstValueFrom$1, d0 as skipPendingOperation, a7 as logDebug, i as isAbortError, d$ as expand, dK as LRUCache$1, e0 as TRANSIENT_REFETCH_INTERVAL_HINT, aR as createSubscriber, cw as fromVSCodeEvent, dv as isEqual, dc as cenv, dS as lodashExports, aG as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, J as isFileURI, w as wrapInActiveSpan, aF as INCLUDE_EVERYTHING_CONTEXT_FILTERS, bn as onAbort, bN as CHAT_INPUT_TOKEN_BUDGET, bP as CHAT_OUTPUT_TOKEN_BUDGET, M as ModelTag, bS as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, bR as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, ae as addCodyClientIdentificationHeaders, bw as addTraceparent, bM as addAuthHeaders, bI as fetch$2, e1 as verifyResponseCode, ct as combineLatest$1, cK as take$2, d7 as clientCapabilities, cC as shareReplay$1, cG as tap$2, a3 as featureFlagProvider, a2 as FeatureFlag, bs as telemetryRecorder, dh as currentAuthStatusOrNotReadyYet, dj as mockAuthStatus, cO as storeLastValue, d4 as resolvedConfig, bD as AUTH_STATUS_FIXTURE_AUTHED_DOTCOM, bF as ps, e2 as logInfo, a5 as GuardrailsMode, d5 as currentResolvedConfig, bE as PromptString, bT as CodyIDE, T as displayPath, bQ as CORPUS_CONTEXT_ALLOCATION, bz as recordErrorToSpan, aa as addClientInfoParams, bm as dependentAbortController, aY as FILE_CONTEXT_MENTION_PROVIDER, aZ as SYMBOL_CONTEXT_MENTION_PROVIDER, b0 as REMOTE_REPOSITORY_PROVIDER_URI, b1 as REMOTE_FILE_PROVIDER_URI, b2 as REMOTE_DIRECTORY_PROVIDER_URI, b3 as WEB_PROVIDER_URI, C as ContextItemSource, bd as isS2, b4 as GIT_OPENCTX_PROVIDER_URI, b5 as CODE_SEARCH_PROVIDER_URI, dJ as cryptoJsExports, b7 as currentOpenCtxController, c as URI, e3 as MulticastSubject, e4 as AsyncSerialScheduler_1, dn as getDefaultExportFromCjs, e5 as workspace, p as path$1, e6 as vscode, e7 as Range, e8 as commands$1, e9 as window$1, ea as Selection, U as Uri, eb as AgentEventEmitter, ec as MarkdownString, ed as Disposable, ee as TextEditorRevealType, ef as ThemeIcon, eg as StatusBarAlignment, eh as readFile, ei as env, ej as UIKind, ek as languages$1, dm as commonjsGlobal, an as InvalidAccessTokenError, el as _baseAssignValue, em as eq_1, en as isArrayLike_1, eo as isObjectLike_1, ep as _copyObject, eq as keysIn_1, er as _cloneBufferExports, es as _cloneTypedArray, et as _copyArray, eu as _initCloneObject, ev as isArguments_1, ew as isArray_1, ex as isBufferExports, ey as isFunction_1, ez as isObject_1, eA as isPlainObject_1, eB as isTypedArray_1, eC as _Stack, eD as identity_1, eE as _overRest, eF as _setToString, eG as _isIndex, dx as isSourcegraphToken, dR as v4, eH as CONFIG_KEY, bU as CodyAutoSuggestionMode, eI as ConfigurationTarget, eJ as appendFileSync, eK as pathBrowserify, eL as stat, eM as extensions, eN as version$2, d9 as setExtensionVersion, eO as normalizeServerEndpointURL, ax as isInvalidAccessTokenError, eP as isOAuthProviderError, af as DOTCOM_URL, ay as isNeedsAuthChallengeError, cq as EMPTY$1, cf as disposableSubscription, eQ as externalAuthRefresh, dd as setAuthStatusObservable, av as isAvailabilityError, aj as AuthConfigError, be as isWorkspaceInstance, aC as SourcegraphGraphQLAPIClient, eR as isExternalAuthProviderError, aA as isNetworkLikeError, ao as NeedsAuthChallengeError, al as AvailabilityError, df as currentAuthStatus, eS as resolveAuth, eT as QuickPickItemKind, eU as revokeOAuthTokens, bL as getAuthHeaders, eV as toLightweightChatTranscript, S as SUPPORTED_URI_SCHEMAS, eW as RelativePattern, eX as _baseIsEqual, eY as keys_1, eZ as _baseGet, e_ as _castPath, e$ as isLength_1, f0 as _toKey, f1 as _isKey, f2 as toNumber_1, f3 as _baseFindIndex, f4 as require$$0$2, ap as NetworkError, aB as isRateLimitError, au as isAuthError, f5 as FileType, f6 as dedent$1, f7 as FoldingRange, f8 as CancellationTokenSource, f9 as SymbolKind, aQ as convertGitCloneURLToCodebaseName, b as isDefined, cA as pluck, t as toRangeData, fa as Position, D as DefaultChatCommands, A as pathFunctionsForURI, R as uriParseNameAndExtension, O as uriDirname, fb as Utils$1, Q as uriExtname, K as uriBasename, h as DefaultEditCommands, ce as subscriptionDisposable, bt as updateGlobalTelemetryInstances, aN as TelemetryRecorderProvider, br as telemetryRecorderProvider, bf as createGitDiff, fc as AgentWorkspaceEdit, fd as TextDocumentChangeReason, fe as omit$1, bo as getEditorInsertSpaces, ff as escapeRegExp$1, ar as TimeoutError, az as isNetworkError, Z as displayPathWithoutWorkspaceFolderPrefix, fg as http, fh as open, cW as defer$2, cs as merge$2, cT as abortableOperation, bl as ruleSearchPaths, bi as isRuleFilename, bk as parseRuleFile, q as languageFromFilename, m as displayLineRange, bj as ruleTitle, fi as debounce_1, k as isErrorLike, d as isWindows, b6 as GLOBAL_SEARCH_PROVIDER_URI, aW as mentionProvidersMetadata, fj as ThemeColor, fk as QuickInputButtons, aV as scanForMentionTriggerInUserTextInput, aU as parseMentionQuery, L as LARGE_FILE_WARNING_LABEL, G as GENERAL_HELP_LABEL, dI as CodyTaskState, fl as CodeLens, fm as defaultWebviewPanel, cd as createExtensionAPI, bb as createMessageAPIForWebview, y as isMatlabFile, fn as EndOfLine, fo as ViewColumn, fp as Location, fq as onDidChangeActiveTextEditor, fr as tabGroups, fs as workspaceTextDocuments, ft as visibleTextEditors, fu as onDidChangeVisibleTextEditors, fv as fs, fw as onDidCloseTextDocument, fx as setCreateWebviewPanel, fy as getAugmentedNamespace, fz as extensionConfiguration, fA as existsSync, fB as rmSync, fC as mkdirSync, fD as main$1, fE as setAgent, fF as setWorkspaceDocuments, fG as setLastOpenedWorkspaceFolder, fH as onDidRegisterNewCodeActionProvider, fI as onDidUnregisterNewCodeActionProvider, fJ as onDidRegisterNewCodeLensProvider, fK as onDidUnregisterNewCodeLensProvider, fL as setClientInfo, di as firstNonPendingAuthStatus, fM as workspaceFolders$1, fN as setWorkspaceFolders, fO as onDidChangeWorkspaceFolders, fP as onDidChangeWindowState, fQ as onDidOpenTextDocument, fR as onDidSaveTextDocument, fS as onDidRenameFiles, fT as packageJson, fU as progressBars, fV as CodeActionTriggerKind, fW as CodeAction, fX as UriString, fY as DiagnosticSeverity, fZ as diagnostics, f_ as isIntegrationTesting, f$ as TESTING_TELEMETRY_EXPORTER, g0 as ProgressLocation, g1 as dist, g2 as completionProvider, g3 as InlineCompletionTriggerKind, dg as currentAuthStatusAuthed, ck as waitUntilComplete, g4 as setExtensionConfiguration, g5 as onDidChangeConfiguration, g6 as onDidChangeTextDocument, g7 as onDidChangeTextEditorSelection, g8 as statSync, g9 as copySync, E as isMacOS, g as CustomCommandType, _ as setDisplayPathEnvInfo, dU as ACCOUNT_USAGE_URL, ga as getOIDCConfiguration$1, gb as getOAuthClientId, gc as OAuthCredential, du as debounce$1, gd as structuredPatch, j as dedupeWith$1, ai as AbortError, cz as createDisposables, aE as isNodeResponse, ab as getClientInfoQueryParams, bu as tracer, bv as getActiveTraceAndSpanId, ac as getClientIdentificationHeaders, aI as setJSONAcceptContentTypeHeaders, bx as logResponseHeadersToSpan, aJ as isCustomAuthChallengeResponse, as as TracedError, dA as SpanStatusCode, aq as RateLimitError$1, ge as capitalize, gf as InlineCompletionItem, gg as createTwoFilesPatch, gh as vsCodeMocks, dD as whitespace, dB as svg, dE as find$1, dF as stringify$1, dG as stringify$2, dH as ccount, dC as html$3, bp as getEditorTabSize$1, gi as metrics, gj as _, c6 as deserializeContextItem, c2 as editorStateFromPromptString, gk as _baseGetTag, at as isAbortErrorOrSocketHangUp, b_ as inputTextWithoutContextChipsFromPromptEditorState, dL as DeepCodyAgentID, gl as exec, s as spawn, dk as UIToolStatus, W as displayPathBasename, o as expandToLineRange, a$ as openctxController, aX as openCtxProviderMetadata, e as CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID, cU as catchError$1, dP as diffWithLineNum, dl as UITerminalOutputType, gm as getPlatform$1, aH as PromptMode, cL as skip$1, dz as context, bA as extractContextFromTraceparent, aw as isContextWindowLimitError, c5 as serializeContextItem, a0 as forceHydration, r as reformatBotMessageForChat, a1 as hydrateAfterPostMessage, ba as addMessageListenersForExtensionAPI, bc as createMessageAPIForExtension, dM as View, dT as ChatHistoryType, cr as NEVER$1, gn as CodeActionKind, l as pluralize, H as assertFileURI, b8 as RULES_PROVIDER_URI, go as createCodeSearchProvider, u as languageFromFilenameAndContent, P as ProgrammingLanguage, bG as psDedent, gp as formatRuleForPrompt, z as posixFilePaths, gq as DecorationRangeBehavior, gr as diffLines, gs as CODY_SUPPORT_URL, gt as CODY_DOC_URL, gu as DISCORD_URL, bJ as globalAgentRef, gv as VSCODE_CHANGELOG_URL, gw as SG_CHANGELOG_URL, gx as ACCOUNT_LIMITS_INFO_URL, aP as assertUnreachable, aT as promise, gy as ExtensionMode, a9 as setLogger, d8 as setClientCapabilities, d2 as setResolvedConfigurationObservable, ad as setClientNameVersion, a_ as setOpenCtxControllerObservable, dW as browser$4 } from "./vscode-shim-CdmSM8Q0.mjs";
22
+ import { r as requireUtil, i as inherits_browserExports, a as utilExports } from "./util-Ci-ROool.mjs";
23
23
  var NOTHING = Symbol.for("immer-nothing");
24
24
  var DRAFTABLE = Symbol.for("immer-draftable");
25
25
  var DRAFT_STATE = Symbol.for("immer-state");
@@ -9935,7 +9935,7 @@ async function getTokenCounterUtils() {
9935
9935
  const browser2 = detect();
9936
9936
  if (browser2 && browser2.name === "safari") {
9937
9937
  _tokenCounterUtilsPromise = import("./cl100k_base-B4kyDDRQ.mjs").then(async (tokenizer2) => {
9938
- const tiktoken = await import("./lite-DPjR5uH7.mjs");
9938
+ const tiktoken = await import("./lite-BPYOwOSx.mjs");
9939
9939
  return createTokenCounterUtils(new tiktoken.Tiktoken(tokenizer2.default));
9940
9940
  });
9941
9941
  } else {
@@ -22638,7 +22638,7 @@ function requireBuffer_list() {
22638
22638
  return (hint === "string" ? String : Number)(input);
22639
22639
  }
22640
22640
  var _require = requireBuffer(), Buffer2 = _require.Buffer;
22641
- var _require2 = util$5, inspect = _require2.inspect;
22641
+ var _require2 = requireUtil(), inspect = _require2.inspect;
22642
22642
  var custom2 = inspect && inspect.custom || "inspect";
22643
22643
  function copyBuffer(src, target, offset2) {
22644
22644
  Buffer2.prototype.copy.call(src, target, offset2);
@@ -24230,7 +24230,7 @@ function require_stream_readable() {
24230
24230
  function _isUint8Array(obj) {
24231
24231
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
24232
24232
  }
24233
- var debugUtil = util$5;
24233
+ var debugUtil = requireUtil();
24234
24234
  var debug2;
24235
24235
  if (debugUtil && debugUtil.debuglog) {
24236
24236
  debug2 = debugUtil.debuglog("stream");
@@ -37784,8 +37784,6 @@ function createOrUpdateTelemetryRecorderProvider(isExtensionModeDevOrTest) {
37784
37784
  }
37785
37785
  }
37786
37786
  );
37787
- } else if (!configuration.isRunningInsideAgent || configuration.agentHasPersistentStorage) {
37788
- telemetryRecorder.recordEvent("cody.extension", "savedLogin");
37789
37787
  }
37790
37788
  }
37791
37789
  })
@@ -38261,10 +38259,6 @@ async function getSmartApplyModel(authStatus2) {
38261
38259
  if (isInstantModeEnabled) {
38262
38260
  return SMART_APPLY_MODEL_IDENTIFIERS.FireworksQwenCodeDefault;
38263
38261
  }
38264
- if (isS2(authStatus2)) {
38265
- const defaultModel = "anthropic::2024-10-22::claude-3-5-sonnet-latest";
38266
- return defaultModel;
38267
- }
38268
38262
  return void 0;
38269
38263
  }
38270
38264
  async function handleSmartApply({
@@ -38303,7 +38297,7 @@ async function handleSmartApply({
38303
38297
  id,
38304
38298
  document: document2,
38305
38299
  instruction: PromptString.unsafe_fromUserQuery(instruction || ""),
38306
- model: await getSmartApplyModel(authStatus2),
38300
+ model: await getSmartApplyModel(),
38307
38301
  replacement: code18,
38308
38302
  isNewFile,
38309
38303
  traceparent
@@ -38326,7 +38320,7 @@ async function handleSmartApply({
38326
38320
  id,
38327
38321
  document: document2,
38328
38322
  instruction: PromptString.unsafe_fromUserQuery(instruction || ""),
38329
- model: await getSmartApplyModel(authStatus2),
38323
+ model: await getSmartApplyModel(),
38330
38324
  replacement: code18,
38331
38325
  isNewFile,
38332
38326
  traceparent
@@ -38378,7 +38372,7 @@ async function isCodeFromChatCodeBlockAction(newCode) {
38378
38372
  }
38379
38373
  return { ...storedCode, operation: "paste" };
38380
38374
  }
38381
- const LOG_INTERVAL$1 = 30 * 60 * 1e3;
38375
+ const LOG_INTERVAL = 30 * 60 * 1e3;
38382
38376
  const RAPID_CHANGE_TIMEOUT = 15;
38383
38377
  const SELECTION_TIMEOUT = 5e3;
38384
38378
  const changeBoundaries = {
@@ -38454,7 +38448,7 @@ const _CharactersLogger = class _CharactersLogger {
38454
38448
  );
38455
38449
  this.windowFocused = window2.state.focused;
38456
38450
  this.activeTextEditor = window2.activeTextEditor;
38457
- this.nextTimeoutId = setTimeout(() => this.flush(), LOG_INTERVAL$1);
38451
+ this.nextTimeoutId = setTimeout(() => this.flush(), LOG_INTERVAL);
38458
38452
  }
38459
38453
  flush() {
38460
38454
  try {
@@ -38472,7 +38466,7 @@ const _CharactersLogger = class _CharactersLogger {
38472
38466
  } finally {
38473
38467
  this.changeCounters = { ...DEFAULT_COUNTERS };
38474
38468
  if (!this.isDisposed) {
38475
- this.nextTimeoutId = setTimeout(() => this.flush(), LOG_INTERVAL$1);
38469
+ this.nextTimeoutId = setTimeout(() => this.flush(), LOG_INTERVAL);
38476
38470
  }
38477
38471
  }
38478
38472
  }
@@ -38734,63 +38728,6 @@ async function measureLatencyToUri(headers, uri) {
38734
38728
  return { error };
38735
38729
  }
38736
38730
  }
38737
- const LOG_INTERVAL = 30 * 60 * 1e3;
38738
- const AUTOCOMPLETE_STAGE_COUNTER_INITIAL_STATE = {
38739
- preLastCandidate: 0,
38740
- preCache: 0,
38741
- preSmartThrottle: 0,
38742
- preDebounce: 0,
38743
- preContextRetrieval: 0,
38744
- preNetworkRequest: 0,
38745
- preFinalCancellationCheck: 0,
38746
- preVisibilityCheck: 0
38747
- };
38748
- class AutocompleteStageCounter {
38749
- constructor() {
38750
- __publicField2(this, "nextTimeoutId", null);
38751
- __publicField2(this, "providerModel", null);
38752
- __publicField2(this, "currentState", { ...AUTOCOMPLETE_STAGE_COUNTER_INITIAL_STATE });
38753
- this.nextTimeoutId = setTimeout(() => this.flush(), LOG_INTERVAL);
38754
- }
38755
- setProviderModel(providerModel) {
38756
- if (this.providerModel !== null && this.providerModel !== providerModel) {
38757
- this.flush();
38758
- }
38759
- this.providerModel = providerModel;
38760
- }
38761
- //
38762
- //
38763
- flush() {
38764
- this.nextTimeoutId = null;
38765
- const stateToLog = this.currentState;
38766
- this.currentState = { ...AUTOCOMPLETE_STAGE_COUNTER_INITIAL_STATE };
38767
- if (Object.values(stateToLog).some((count) => count > 0)) {
38768
- telemetryRecorder.recordEvent("cody.completion.stageCounter", "flush", {
38769
- metadata: stateToLog,
38770
- privateMetadata: { providerModel: this.providerModel }
38771
- });
38772
- }
38773
- this.nextTimeoutId = setTimeout(() => this.flush(), LOG_INTERVAL);
38774
- }
38775
- /**
38776
- * Records the occurrence of a specific stage in the autocompletion generation pipeline.
38777
- */
38778
- record(state2) {
38779
- if (!this.providerModel) {
38780
- return;
38781
- }
38782
- this.currentState[state2]++;
38783
- }
38784
- //
38785
- // Like the code above, you can reuse the code outside the XML tags to detect the functionality, formats, style, patterns, and logics in use. Then, use what you detect and reuse methods/libraries to complete and enclose completed code only inside XML tags precisely without duplicating existing implementations. Here is the code:
38786
- dispose() {
38787
- this.flush();
38788
- if (this.nextTimeoutId) {
38789
- clearTimeout(this.nextTimeoutId);
38790
- }
38791
- }
38792
- }
38793
- new AutocompleteStageCounter();
38794
38731
  function getLanguageConfig(languageId) {
38795
38732
  switch (languageId) {
38796
38733
  case "astro":
@@ -41048,15 +40985,16 @@ async function resolveContextMentionProviderContextItem({ provider: providerUri,
41048
40985
  );
41049
40986
  signal2 == null ? void 0 : signal2.throwIfAborted();
41050
40987
  return items.map(
41051
- (item2) => {
40988
+ (openCtxItem) => {
41052
40989
  var _a3;
41053
- return ((_a3 = item2.ai) == null ? void 0 : _a3.content) ? {
40990
+ return ((_a3 = openCtxItem.ai) == null ? void 0 : _a3.content) ? {
41054
40991
  type: "openctx",
41055
- title: item2.title,
41056
- uri: URI.parse(item2.url || item2.providerUri),
41057
- providerUri: item2.providerUri,
41058
- content: item2.ai.content,
41059
- provider: "openctx"
40992
+ title: openCtxItem.title,
40993
+ uri: URI.parse(openCtxItem.url || openCtxItem.providerUri),
40994
+ providerUri: openCtxItem.providerUri,
40995
+ content: openCtxItem.ai.content,
40996
+ provider: "openctx",
40997
+ source: item.source
41060
40998
  } : null;
41061
40999
  }
41062
41000
  ).filter((context2) => context2 !== null);
@@ -45223,7 +45161,7 @@ function requireLib() {
45223
45161
  const MurmurHash3 = requireImurmurhash();
45224
45162
  const { onExit } = requireCjs();
45225
45163
  const path2 = pathBrowserify;
45226
- const { promisify } = util$5;
45164
+ const { promisify } = requireUtil();
45227
45165
  const activeFiles = {};
45228
45166
  const threadId = function getId() {
45229
45167
  try {
@@ -48409,7 +48347,7 @@ class CommandsProvider {
48409
48347
  if (!isFileURI(uri)) {
48410
48348
  throw new Error("history only supported on local file paths");
48411
48349
  }
48412
- const { getContextFileFromGitLog } = await import("./git-log-DigEy5-z.mjs");
48350
+ const { getContextFileFromGitLog } = await import("./git-log-DjCz8t7A.mjs");
48413
48351
  return getContextFileFromGitLog(uri, options);
48414
48352
  }
48415
48353
  dispose() {
@@ -48924,7 +48862,7 @@ function registerAuthDebugCommands(disposables) {
48924
48862
  if (authStatus2.authenticated && authStatus2.endpoint === endpoint) {
48925
48863
  tokenInfo = "In memory (HeaderCredential)";
48926
48864
  try {
48927
- const config = await import("./index-D8dVdFLY.mjs").then(
48865
+ const config = await import("./index-CQZWUrDD.mjs").then(
48928
48866
  (m) => m.currentResolvedConfig()
48929
48867
  );
48930
48868
  const currentConfig = await config;
@@ -155469,15 +155407,24 @@ class AutoeditAnalyticsLogger {
155469
155407
  telemetryParams
155470
155408
  }) {
155471
155409
  autoeditsOutputChannelLogger.logDebug("writeAutoeditEvent", action, ...logDebugArgs);
155472
- if (action !== "discarded") {
155473
- telemetryRecorder.recordEvent("cody.autoedit", action, {
155474
- ...telemetryParams,
155475
- billingMetadata: action === "accepted" || action === "suggested" ? {
155476
- product: "cody",
155477
- category: action === "accepted" ? "core" : "billable"
155478
- } : void 0
155479
- });
155410
+ const skippedActions = [
155411
+ "discarded",
155412
+ "invalidTransitionToAccepted",
155413
+ "invalidTransitionToDiscarded",
155414
+ "invalidTransitionToLoaded",
155415
+ "invalidTransitionToRejected",
155416
+ "invalidTransitionToPostProcessed"
155417
+ ];
155418
+ if (skippedActions.includes(action)) {
155419
+ return;
155480
155420
  }
155421
+ telemetryRecorder.recordEvent("cody.autoedit", action, {
155422
+ ...telemetryParams,
155423
+ billingMetadata: action === "accepted" || action === "suggested" ? {
155424
+ product: "cody",
155425
+ category: action === "accepted" ? "core" : "billable"
155426
+ } : void 0
155427
+ });
155481
155428
  }
155482
155429
  /**
155483
155430
  * Rate-limited error logging, capturing exceptions with Sentry and grouping repeated logs.
@@ -172154,7 +172101,7 @@ function migrateAndNotifyForOutdatedModels(model2) {
172154
172101
  if (!model2 || isRunningInsideAgent() || !deprecatedModelSet.has(model2)) {
172155
172102
  return model2;
172156
172103
  }
172157
- const newModel = "anthropic/claude-3-5-sonnet-20240620";
172104
+ const newModel = "anthropic/claude-sonnet-4-5-20250929";
172158
172105
  if (modelsService.getModelByID(newModel)) {
172159
172106
  showNotificationIfNotShownYet(
172160
172107
  "Claude 2 model support has been removed in favor of the newer Claude 3 models. All chats that used Claude 2 have been upgraded to Claude 3.",
@@ -175293,7 +175240,7 @@ function getDeepCodyModel(models) {
175293
175240
  return matches2.find((m) => m !== void 0) || models.find((m) => m.tags.includes(ModelTag.Speed));
175294
175241
  }
175295
175242
  var define_process_default$4 = { env: {} };
175296
- const execAsync = util$5.promisify(exec);
175243
+ const execAsync = utilExports.promisify(exec);
175297
175244
  const HOME_DIR = define_process_default$4.env.HOME || define_process_default$4.env.USERPROFILE || "";
175298
175245
  const OUTPUT_WRAPPER = `
175299
175246
  Terminal output from the \`{command}\` command enclosed between <OUTPUT0412> tags:
@@ -189380,17 +189327,6 @@ class ChatController {
189380
189327
  } catch (error) {
189381
189328
  outputChannelLogger.logDebug("ChatController", "setCustomChatTitle", { verbose: error });
189382
189329
  }
189383
- telemetryRecorder.recordEvent("cody.chat.customTitle", "generated", {
189384
- privateMetadata: {
189385
- requestID,
189386
- model: model2,
189387
- traceId: span2.spanContext().traceId
189388
- },
189389
- metadata: {
189390
- titleLength: title.length,
189391
- inputLength: inputText.length
189392
- }
189393
- });
189394
189330
  });
189395
189331
  }
189396
189332
  /**
@@ -189400,13 +189336,15 @@ class ChatController {
189400
189336
  if (isRateLimitError(error)) {
189401
189337
  handleRateLimitError();
189402
189338
  }
189403
- outputChannelLogger.logDebug("ChatController: postError", error.message);
189339
+ const traceId = isNetworkError(error) ? error.traceId : void 0;
189340
+ const errorMessage = traceId ? `${error.message} (trace ID: ${traceId})` : error.message;
189341
+ outputChannelLogger.logDebug("ChatController: postError", errorMessage);
189404
189342
  if (type === "transcript") {
189405
189343
  this.chatBuilder.addErrorAsBotMessage(error, ChatBuilder.NO_MODEL);
189406
189344
  this.postViewTranscript();
189407
189345
  return;
189408
189346
  }
189409
- void this.postMessage({ type: "errors", errors: error.message });
189347
+ void this.postMessage({ type: "errors", errors: errorMessage });
189410
189348
  captureException(error);
189411
189349
  }
189412
189350
  /**
@@ -190481,7 +190419,6 @@ const HINT_DECORATIONS = {
190481
190419
  };
190482
190420
  const DOCUMENTABLE_SYMBOL_THROTTLE = 10;
190483
190421
  const GHOST_TEXT_THROTTLE = 250;
190484
- const TELEMETRY_THROTTLE = 30 * 1e3;
190485
190422
  class GhostHintDecorator {
190486
190423
  constructor(options) {
190487
190424
  // permanentDisposables are disposed when this instance is disposed.
@@ -190491,7 +190428,6 @@ class GhostHintDecorator {
190491
190428
  __publicField2(this, "isActive", false);
190492
190429
  __publicField2(this, "activeDecorationRange", null);
190493
190430
  __publicField2(this, "setThrottledGhostText");
190494
- __publicField2(this, "fireThrottledDisplayEvent");
190495
190431
  __publicField2(this, "getThrottledDocumentableSymbol");
190496
190432
  /** Store the last line that the user typed on, we want to avoid showing the text here */
190497
190433
  __publicField2(this, "lastLineTyped", null);
@@ -190500,14 +190436,6 @@ class GhostHintDecorator {
190500
190436
  leading: false,
190501
190437
  trailing: true
190502
190438
  });
190503
- this.fireThrottledDisplayEvent = lodashExports.throttle(
190504
- this._fireDisplayEvent.bind(this),
190505
- TELEMETRY_THROTTLE,
190506
- {
190507
- leading: true,
190508
- trailing: false
190509
- }
190510
- );
190511
190439
  this.getThrottledDocumentableSymbol = lodashExports.throttle(
190512
190440
  this.getDocumentableSymbol.bind(this),
190513
190441
  DOCUMENTABLE_SYMBOL_THROTTLE,
@@ -190617,7 +190545,6 @@ class GhostHintDecorator {
190617
190545
  if (this.hasConflictingDecorations(editor, position)) {
190618
190546
  return;
190619
190547
  }
190620
- this.fireThrottledDisplayEvent(variant);
190621
190548
  const decorationHint = HINT_DECORATIONS[variant];
190622
190549
  const decorationText = UNICODE_SPACE$1.repeat(textPadding) + decorationHint.text;
190623
190550
  this.activeDecorationRange = new Range(position, position);
@@ -190666,9 +190593,6 @@ class GhostHintDecorator {
190666
190593
  editor.setDecorations(decoration, []);
190667
190594
  });
190668
190595
  }
190669
- _fireDisplayEvent(variant) {
190670
- telemetryRecorder.recordEvent("cody.ghostText", "visible", { privateMetadata: { variant } });
190671
- }
190672
190596
  async updateEnablement(authStatus2) {
190673
190597
  const featureEnablement = await getGhostHintEnablement();
190674
190598
  if (!authStatus2.authenticated || !(featureEnablement.Document || featureEnablement.EditOrChat || featureEnablement.Generate)) {
@@ -191308,8 +191232,8 @@ function parseMentionURI(uri) {
191308
191232
  }
191309
191233
  }
191310
191234
  async function execFileAsync(program2, args2, { cwd }) {
191311
- const { promisify } = await import("./util-BR3OBpy6.mjs").then((n) => n.u);
191312
- const { execFile } = await import("./vscode-shim-CqAb7AbA.mjs").then((n) => n.gz);
191235
+ const { promisify } = await import("./util-Ci-ROool.mjs").then((n) => n.u);
191236
+ const { execFile } = await import("./vscode-shim-CdmSM8Q0.mjs").then((n) => n.gz);
191313
191237
  return promisify(execFile)(program2, args2, { cwd });
191314
191238
  }
191315
191239
  var __create = Object.create;
@@ -196680,9 +196604,9 @@ function getOverriddenModelForIntent(intent, currentModel, authStatus2) {
196680
196604
  }
196681
196605
  switch (intent) {
196682
196606
  case "fix":
196683
- return "anthropic::2024-10-22::claude-3-5-sonnet-latest";
196607
+ return "anthropic::2024-10-22::claude-sonnet-4-5-latest";
196684
196608
  case "doc":
196685
- return "anthropic::2024-10-22::claude-3-5-haiku-latest";
196609
+ return "anthropic::2024-10-22::claude-haiku-4-5-latest";
196686
196610
  case "test":
196687
196611
  case "add":
196688
196612
  case "edit":
@@ -198307,7 +198231,6 @@ const showSetupNotification = async (auth2) => {
198307
198231
  await commands$1.executeCommand("cody.chat.focus");
198308
198232
  return;
198309
198233
  }
198310
- telemetryRecorder.recordEvent("cody.signInNotification", "shown");
198311
198234
  return showActionNotification({
198312
198235
  message: "Sign in to Cody to get started",
198313
198236
  actions: [
@@ -1,2 +1,2 @@
1
- import "./agent.worker-DKy-Dvsz.mjs";
2
- import "./vscode-shim-CqAb7AbA.mjs";
1
+ import "./agent.worker-Bm74MuX8.mjs";
2
+ import "./vscode-shim-CdmSM8Q0.mjs";
@@ -1,4 +1,4 @@
1
- import { w as wrapInActiveSpan, p as path, U as Uri, C as ContextItemSource, s as spawn } from "./vscode-shim-CqAb7AbA.mjs";
1
+ import { w as wrapInActiveSpan, p as path, U as Uri, C as ContextItemSource, s as spawn } from "./vscode-shim-CdmSM8Q0.mjs";
2
2
  async function getContextFileFromGitLog(file, options) {
3
3
  return wrapInActiveSpan("commands.context.git-log", async (span) => {
4
4
  const cwd = path.dirname(file.fsPath);
@@ -1,7 +1,7 @@
1
- import { O as Ollama$1, c as contextFiltersProvider, C as CompletionStopReason, M as ModelUsage, e as enableMapSet } from "./agent.worker-DKy-Dvsz.mjs";
2
- import { A, B, k, R, au, D, E, F, an, w, x, a9, aw, N, y, v, P, G, U, z, L, Q, S, ab, W, Y, T, _, a5, ad, a6, a, d, a7, aq, a3, ao, aA, q, a1, n, am, ap, $, av, l, f, g, a0, o, X, ar, as, h, i, a8, a4, ac, m, aa, H, u, at, r, p, ae, al, aj, af, ah, ak, ai, ag, s, az, ay, ax, a2, V, t, j, Z, K, J, I } from "./agent.worker-DKy-Dvsz.mjs";
3
- import { i as isAbortError, a as isError, b as isDefined, M as ModelTag, c as URI, d as isWindows } from "./vscode-shim-CqAb7AbA.mjs";
4
- import { bB, bD, bC, bV, ai as ai2, aj as aj2, ak as ak2, al as al2, bN, bP, db, b5, e, c3, bQ, bU, bT, C, g as g2, af as af2, ah as ah2, D as D2, h as h2, cq, aG, bS, bR, am as am2, bO, aY, F as F2, a2 as a22, G as G2, b4, b6, aK, a6 as a62, a5 as a52, I as I2, aF, an as an2, L as L2, aL, cr, cv, N as N2, ao as ao2, ap as ap2, aM, P as P2, aH, bE, b2, b1, b0, b8, aq as aq2, S as S2, aZ, aC, c4, aN, ar as ar2, as as as2, dl, dk, b3, cT, bM, aa as aa2, ae as ae2, ba, bw, cl, H as H2, aP, de, cU, dc, d7, ct, cQ, cR, cb, ca, bZ, aQ, cz, cd, bf, a4 as a42, bc, bb, aR, df, dg, dh, b7, d5, cP, j as j2, B as B2, cW, bm, bh, c6, m as m2, T as T2, W as W2, Y as Y2, V as V2, Z as Z2, n as n2, cf, cy, cF, c2, c1, o as o2, x as x2, bA, a3 as a32, bI, cX, b$, cE, di, d1, ci, $ as $2, a0 as a02, cp, cw, bv, bL, ac as ac2, ab as ab2, bq, bo, bp, c9, by, bJ, aD, a1 as a12, b_, at as at2, au as au2, av as av2, aw as aw2, aJ, ag as ag2, k as k2, J as J2, ax as ax2, E as E2, y as y2, ay as ay2, az as az2, aA as aA2, aE, aB, bi, bd, c7, c8, bH, be, q as q2, u as u2, cS, a7 as a72, a8 as a82, bx, v as v2, cu, aW, cs, cM, dj, da, d6, aS, aO, cg, ch, bn, aX, a$, aU, bk, A as A2, c_, cB, cA, l as l2, z as z2, cI, aT, co, cn, b9, bF, bG, cm, bz, r as r2, d4, cZ, bl, bj, aV, bg, c5, bY, bX, dd, d8, ad as ad2, _ as _2, d9, aI, a9 as a92, a_, d2, d3, cC, cL, d0, cJ, cO, ce, cN, c$, cK, cD, cG, cH, bs, br, cc, cY, c0, cj, bK, t as t2, bW, bu, bt, K as K2, O, Q as Q2, X as X2, R as R2, cx, ck, f as f2, cV, w as w2 } from "./vscode-shim-CqAb7AbA.mjs";
1
+ import { O as Ollama$1, c as contextFiltersProvider, C as CompletionStopReason, M as ModelUsage, e as enableMapSet } from "./agent.worker-Bm74MuX8.mjs";
2
+ import { A, B, k, R, au, D, E, F, an, w, x, a9, aw, N, y, v, P, G, U, z, L, Q, S, ab, W, Y, T, _, a5, ad, a6, a, d, a7, aq, a3, ao, aA, q, a1, n, am, ap, $, av, l, f, g, a0, o, X, ar, as, h, i, a8, a4, ac, m, aa, H, u, at, r, p, ae, al, aj, af, ah, ak, ai, ag, s, az, ay, ax, a2, V, t, j, Z, K, J, I } from "./agent.worker-Bm74MuX8.mjs";
3
+ import { i as isAbortError, a as isError, b as isDefined, M as ModelTag, c as URI, d as isWindows } from "./vscode-shim-CdmSM8Q0.mjs";
4
+ import { bB, bD, bC, bV, ai as ai2, aj as aj2, ak as ak2, al as al2, bN, bP, db, b5, e, c3, bQ, bU, bT, C, g as g2, af as af2, ah as ah2, D as D2, h as h2, cq, aG, bS, bR, am as am2, bO, aY, F as F2, a2 as a22, G as G2, b4, b6, aK, a6 as a62, a5 as a52, I as I2, aF, an as an2, L as L2, aL, cr, cv, N as N2, ao as ao2, ap as ap2, aM, P as P2, aH, bE, b2, b1, b0, b8, aq as aq2, S as S2, aZ, aC, c4, aN, ar as ar2, as as as2, dl, dk, b3, cT, bM, aa as aa2, ae as ae2, ba, bw, cl, H as H2, aP, de, cU, dc, d7, ct, cQ, cR, cb, ca, bZ, aQ, cz, cd, bf, a4 as a42, bc, bb, aR, df, dg, dh, b7, d5, cP, j as j2, B as B2, cW, bm, bh, c6, m as m2, T as T2, W as W2, Y as Y2, V as V2, Z as Z2, n as n2, cf, cy, cF, c2, c1, o as o2, x as x2, bA, a3 as a32, bI, cX, b$, cE, di, d1, ci, $ as $2, a0 as a02, cp, cw, bv, bL, ac as ac2, ab as ab2, bq, bo, bp, c9, by, bJ, aD, a1 as a12, b_, at as at2, au as au2, av as av2, aw as aw2, aJ, ag as ag2, k as k2, J as J2, ax as ax2, E as E2, y as y2, ay as ay2, az as az2, aA as aA2, aE, aB, bi, bd, c7, c8, bH, be, q as q2, u as u2, cS, a7 as a72, a8 as a82, bx, v as v2, cu, aW, cs, cM, dj, da, d6, aS, aO, cg, ch, bn, aX, a$, aU, bk, A as A2, c_, cB, cA, l as l2, z as z2, cI, aT, co, cn, b9, bF, bG, cm, bz, r as r2, d4, cZ, bl, bj, aV, bg, c5, bY, bX, dd, d8, ad as ad2, _ as _2, d9, aI, a9 as a92, a_, d2, d3, cC, cL, d0, cJ, cO, ce, cN, c$, cK, cD, cG, cH, bs, br, cc, cY, c0, cj, bK, t as t2, bW, bu, bt, K as K2, O, Q as Q2, X as X2, R as R2, cx, ck, f as f2, cV, w as w2 } from "./vscode-shim-CdmSM8Q0.mjs";
5
5
  function createOllamaClient(ollamaOptions, logger, logDebug) {
6
6
  async function* complete(params, abortController) {
7
7
  const url = new URL(ollamaOptions.url).href;
@@ -197,6 +197,22 @@ const FIXTURE_MODELS = [
197
197
  provider: "anthropic",
198
198
  title: "Claude 3 Haiku"
199
199
  },
200
+ {
201
+ id: "anthropic::2024-10-22::claude-haiku-4-5-latest",
202
+ modelRef: {
203
+ providerId: "anthropic",
204
+ apiVersionId: "2024-10-22",
205
+ modelId: "claude-haiku-4-5-latest"
206
+ },
207
+ usage: [ModelUsage.Edit, ModelUsage.Chat],
208
+ contextWindow: {
209
+ input: 3e4,
210
+ output: 4e3
211
+ },
212
+ tags: [ModelTag.Free, ModelTag.Speed],
213
+ provider: "anthropic",
214
+ title: "Claude Haiku 4.5"
215
+ },
200
216
  {
201
217
  id: "fireworks::v1::starcoder",
202
218
  modelRef: {
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a;
5
5
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
6
- import { dn as getDefaultExportFromCjs, aY as FILE_CONTEXT_MENTION_PROVIDER, aZ as SYMBOL_CONTEXT_MENTION_PROVIDER, b0 as REMOTE_REPOSITORY_PROVIDER_URI, b1 as REMOTE_FILE_PROVIDER_URI, b2 as REMOTE_DIRECTORY_PROVIDER_URI, b3 as WEB_PROVIDER_URI, b8 as RULES_PROVIDER_URI, T as displayPath, m as displayLineRange, Y as displayPathDirname, W as displayPathBasename, I as IGNORED_FILE_WARNING_LABEL, L as LARGE_FILE_WARNING_LABEL, dp as object, dq as literal, dr as string$2, V as displayPathWithLines, c as URI, ds as is$3, c5 as serializeContextItem, c3 as CONTEXT_ITEM_MENTION_NODE_TYPE, cb as contextItemMentionNodeDisplayText, c4 as TEMPLATE_INPUT_NODE_TYPE, aU as parseMentionQuery, N as NO_SYMBOL_MATCHES_HELP_LABEL, F as FILE_RANGE_TOOLTIP_LABEL, dt as Observable, cd as createExtensionAPI, bb as createMessageAPIForWebview, du as debounce$1, C as ContextItemSource, cu as memoizeLastValue, bW as toSerializedPromptEditorValue$1, dv as isEqual, aV as scanForMentionTriggerInUserTextInput, c9 as getMentionOperations, ct as combineLatest, dw as map$3, a0 as forceHydration, a1 as hydrateAfterPostMessage, ag as isDotCom, be as isWorkspaceInstance, au as isAuthError, av as isAvailabilityError, dx as isSourcegraphToken, dy as trace, dz as context$1, dA as SpanStatusCode, dm as commonjsGlobal, dB as svg, dC as html$2, dD as whitespace, dE as find, dF as stringify, dG as stringify$1, dH as ccount, bT as CodyIDE, dI as CodyTaskState, dJ as cryptoJsExports, a6 as GuardrailsCheckStatus, dK as LRUCache, a as isError, aq as RateLimitError, a2 as FeatureFlag, r as reformatBotMessageForChat, at as isAbortErrorOrSocketHangUp, M as ModelTag, dL as DeepCodyAgentID, bY as serializedPromptEditorStateFromChatMessage, bZ as contextItemsFromPromptEditorValue, b$ as filterContextItemsFromPromptEditorValue, dM as View, E as isMacOS, dN as ToolCodyModelName, g as CustomCommandType, c0 as textContentFromSerializedLexicalNode, ci as firstValueFrom, d0 as skipPendingOperation, bO as FAST_CHAT_INPUT_TOKEN_BUDGET, f as webviewOpenURIForContextItem, l as pluralize, dk as UIToolStatus, dO as getFileDiff, dP as diffWithLineNum, dl as UITerminalOutputType, dQ as isCodeSearchContextItem, dR as v4, dS as lodashExports, c6 as deserializeContextItem, d1 as firstResultFromOperation, dT as ChatHistoryType, dU as ACCOUNT_USAGE_URL, dV as CODY_DOC_QUICKSTART_URL, b as isDefined, dW as browser, bU as CodyAutoSuggestionMode, _ as setDisplayPathEnvInfo, k as isErrorLike, bE as PromptString, a4 as createGuardrailsImpl, U as Uri } from "./vscode-shim-CqAb7AbA.mjs";
7
- import { bh, bg } from "./vscode-shim-CqAb7AbA.mjs";
6
+ import { dn as getDefaultExportFromCjs, aY as FILE_CONTEXT_MENTION_PROVIDER, aZ as SYMBOL_CONTEXT_MENTION_PROVIDER, b0 as REMOTE_REPOSITORY_PROVIDER_URI, b1 as REMOTE_FILE_PROVIDER_URI, b2 as REMOTE_DIRECTORY_PROVIDER_URI, b3 as WEB_PROVIDER_URI, b8 as RULES_PROVIDER_URI, T as displayPath, m as displayLineRange, Y as displayPathDirname, W as displayPathBasename, I as IGNORED_FILE_WARNING_LABEL, L as LARGE_FILE_WARNING_LABEL, dp as object, dq as literal, dr as string$2, V as displayPathWithLines, c as URI, ds as is$3, c5 as serializeContextItem, c3 as CONTEXT_ITEM_MENTION_NODE_TYPE, cb as contextItemMentionNodeDisplayText, c4 as TEMPLATE_INPUT_NODE_TYPE, aU as parseMentionQuery, N as NO_SYMBOL_MATCHES_HELP_LABEL, F as FILE_RANGE_TOOLTIP_LABEL, dt as Observable, cd as createExtensionAPI, bb as createMessageAPIForWebview, du as debounce$1, C as ContextItemSource, cu as memoizeLastValue, bW as toSerializedPromptEditorValue$1, dv as isEqual, aV as scanForMentionTriggerInUserTextInput, c9 as getMentionOperations, ct as combineLatest, dw as map$3, a0 as forceHydration, a1 as hydrateAfterPostMessage, ag as isDotCom, be as isWorkspaceInstance, au as isAuthError, av as isAvailabilityError, dx as isSourcegraphToken, dy as trace, dz as context$1, dA as SpanStatusCode, dm as commonjsGlobal, dB as svg, dC as html$2, dD as whitespace, dE as find, dF as stringify, dG as stringify$1, dH as ccount, bT as CodyIDE, dI as CodyTaskState, dJ as cryptoJsExports, a6 as GuardrailsCheckStatus, dK as LRUCache, a as isError, aq as RateLimitError, a2 as FeatureFlag, r as reformatBotMessageForChat, at as isAbortErrorOrSocketHangUp, M as ModelTag, dL as DeepCodyAgentID, bY as serializedPromptEditorStateFromChatMessage, bZ as contextItemsFromPromptEditorValue, b$ as filterContextItemsFromPromptEditorValue, dM as View, E as isMacOS, dN as ToolCodyModelName, g as CustomCommandType, c0 as textContentFromSerializedLexicalNode, ci as firstValueFrom, d0 as skipPendingOperation, bO as FAST_CHAT_INPUT_TOKEN_BUDGET, f as webviewOpenURIForContextItem, l as pluralize, dk as UIToolStatus, dO as getFileDiff, dP as diffWithLineNum, dl as UITerminalOutputType, dQ as isCodeSearchContextItem, dR as v4, dS as lodashExports, c6 as deserializeContextItem, d1 as firstResultFromOperation, dT as ChatHistoryType, dU as ACCOUNT_USAGE_URL, dV as CODY_DOC_QUICKSTART_URL, b as isDefined, dW as browser, bU as CodyAutoSuggestionMode, _ as setDisplayPathEnvInfo, k as isErrorLike, bE as PromptString, a4 as createGuardrailsImpl, U as Uri } from "./vscode-shim-CdmSM8Q0.mjs";
7
+ import { bh, bg } from "./vscode-shim-CdmSM8Q0.mjs";
8
8
  import * as React$2 from "react";
9
9
  import React__default, { createContext, useContext, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, useEffect as useEffect$2, forwardRef, useState as useState$1, useCallback, useRef as useRef$1, Suspense, createElement, memo as memo$2, useImperativeHandle, Children, isValidElement, cloneElement, Fragment as Fragment$2, useReducer, useId as useId$2, useInsertionEffect as useInsertionEffect$1, Component } from "react";
10
10
  var classnames = { exports: {} };
@@ -1,7 +1,7 @@
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 { b as base64Js } from "./agent.worker-DKy-Dvsz.mjs";
4
+ import { b as base64Js } from "./agent.worker-Bm74MuX8.mjs";
5
5
  var __defProp2 = Object.defineProperty;
6
6
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
7
  var __publicField2 = (obj, key, value) => {