@sourcegraph/cody-web 0.32.1 → 0.32.2
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-CKzz1GcO.mjs → agent.worker-BQ1q_FR7.mjs} +59 -46
- package/dist/agent.worker.js +2 -2
- package/dist/{git-log-bbWyul1E.mjs → git-log-DHqBtvQi.mjs} +1 -1
- package/dist/{index-zVNzRGEc.mjs → index-B49HuzD8.mjs} +2 -2
- package/dist/index.js +164 -135
- package/dist/lib/components/CodyPromptTemplate.d.ts.map +1 -1
- package/dist/style.css +74 -59
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/util-JO1f7DJy.mjs +1811 -0
- package/dist/{vscode-shim-BmcAncjv.mjs → vscode-shim-CIaiKx3C.mjs} +6 -6
- package/package.json +3 -3
- package/dist/util-B-IYnWCp.mjs +0 -2033
|
@@ -18,8 +18,8 @@ var __privateWrapper = (obj, member, setter2, getter) => ({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
var _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_fn, moveToTail_fn, _h, _i, _j, _k, _l;
|
|
21
|
-
import { bb as Observable, cl as AsyncSerialScheduler, cm as unsubscribe, cn as authStatus, co as debounceTime, cp as switchMapReplayOperation, cq as map$1, cr as distinctUntilChanged$1, cs as filter$2, ct as pendingOperation, c6 as firstValueFrom$1, c7 as skipPendingOperation, cu as logDebug$1, cv as graphqlClient,
|
|
22
|
-
import {
|
|
21
|
+
import { bb as Observable, cl as AsyncSerialScheduler, cm as unsubscribe, cn as authStatus, co as debounceTime, cp as switchMapReplayOperation, cq as map$1, cr as distinctUntilChanged$1, cs as filter$2, ct as pendingOperation, c6 as firstValueFrom$1, c7 as skipPendingOperation, cu as logDebug$1, cv as graphqlClient, bG as isError$3, cw as isAbortError, cx as logError$2, cy as semver, cz as interval, cA as startWith$1, cB as switchMap$1, cC as promiseFactoryToObservable, cD as retry$1, cE as pick, bR as ModelTag, cF as getModelInfo, cG as CHAT_OUTPUT_TOKEN_BUDGET, cH as CHAT_INPUT_TOKEN_BUDGET, cI as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, cJ as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, bI as LRUCache$1, cK as TRANSIENT_REFETCH_INTERVAL_HINT, cL as createSubscriber, cM as fromVSCodeEvent, bg as isEqual, cN as cenv, cO as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, bL as lodashExports, bo as isDotCom, cP as currentAuthStatus, cQ as isFileURI, w as wrapInActiveSpan, cR as INCLUDE_EVERYTHING_CONTEXT_FILTERS, cS as onAbort, cT as addCodyClientIdentificationHeaders, cU as addTraceparent, cV as addAuthHeaders, cW as fetch$3, cX as verifyResponseCode, cY as combineLatest$1, cZ as take$2, c_ as clientCapabilities, c$ as shareReplay$1, d0 as tap$2, d1 as featureFlagProvider, bv as FeatureFlag, d2 as getExperimentalClientModelByFeatureFlag, bZ as ToolCodyModelName, d3 as TOOL_CODY_MODEL, d4 as getEnterpriseContextWindow, d5 as ANSWER_TOKENS, d6 as storeLastValue, d7 as resolvedConfig, c0 as firstResultFromOperation, d8 as userProductSubscription, d9 as isEnterpriseUser, bD as isCodyProUser, d as ps, da as currentResolvedConfig, ch as PromptString, bE as CodyIDE, i as getDefaultExportFromCjs, db as CORPUS_CONTEXT_ALLOCATION, dc as isCustomModel, dd as recordErrorToSpan, de as addClientInfoParams, df as dependentAbortController, aA as WEB_PROVIDER_URI, aB as REMOTE_DIRECTORY_PROVIDER_URI, aC as REMOTE_FILE_PROVIDER_URI, aD as REMOTE_REPOSITORY_PROVIDER_URI, aE as SYMBOL_CONTEXT_MENTION_PROVIDER, aF as FILE_CONTEXT_MENTION_PROVIDER, t as telemetryRecorder, dg as isS2, C as ContextItemSource, dh as CODE_SEARCH_PROVIDER_URI, di as GIT_OPENCTX_PROVIDER_URI, bF as cryptoJsExports, dj as currentOpenCtxController, aU as URI, dk as MulticastSubject, dl as AsyncSerialScheduler_1, b as workspace, p as path, dm as vscode, dn as AgentEventEmitter, c as commands$1, a as window$1, dp as Selection, R as Range, U as Uri, dq as MarkdownString, g as Disposable, dr as TextEditorRevealType, ds as ThemeIcon, dt as StatusBarAlignment, du as readFile, dv as env, dw as UIKind, l as languages$1, h as commonjsGlobal, dx as InvalidAccessTokenError, dy as eq_1, dz as _baseAssignValue, dA as isObjectLike_1, dB as isArrayLike_1, dC as _copyObject, dD as keysIn_1, dE as isBufferExports, dF as isTypedArray_1, dG as isArray_1, dH as _copyArray, dI as _cloneBufferExports, dJ as _cloneTypedArray, dK as isPlainObject_1, dL as isArguments_1, dM as isObject_1, dN as isFunction_1, dO as _initCloneObject, dP as _Stack, dQ as _setToString, dR as _overRest, dS as identity_1, dT as _isIndex, br as isSourcegraphToken, dU as v4, dV as CONFIG_KEY, cf as CodyAutoSuggestionMode, dW as ConfigurationTarget, dX as pathBrowserify, dY as stat, dZ as extensions, d_ as version$2, d$ as setExtensionVersion, e0 as setAuthStatusObservable, e1 as withLatestFrom, e2 as abortableOperation, e3 as disposableSubscription, e4 as DOTCOM_URL, e5 as NEVER, e6 as normalizeServerEndpointURL, bq as isAvailabilityError, e7 as isInvalidAccessTokenError, e8 as isEnterpriseUserDotComError, e9 as isNeedsAuthChallengeError, ea as EMPTY$1, eb as ProgressLocation, ec as AuthConfigError, ed as SourcegraphGraphQLAPIClient, ee as isExternalProviderAuthError, ef as isNetworkLikeError, eg as NeedsAuthChallengeError, eh as AvailabilityError, ei as EnterpriseUserDotComError, ej as resolveAuth, ek as getAuthHeaders, el as isWorkspaceInstance, em as QuickPickItemKind, en as SUPPORTED_URI_SCHEMAS, eo as _baseIsEqual, ep as keys_1, eq as _baseGet, er as _castPath, es as _toKey, et as isLength_1, eu as _isKey, ev as toNumber_1, ew as _baseFindIndex, ex as require$$0$2, ey as NetworkError, ez as isRateLimitError, bp as isAuthError, eA as FileType, e as dedent$1, eB as FoldingRange, eC as CancellationTokenSource, eD as SymbolKind, bN as isDefined, eE as convertGitCloneURLToCodebaseName, eF as pluck, eG as toRangeData, P as Position, eH as DefaultChatCommands, eI as pathFunctionsForURI, eJ as uriParseNameAndExtension, eK as uriDirname, eL as Utils$1, eM as uriExtname, eN as uriBasename, eO as DefaultEditCommands, eP as subscriptionDisposable, eQ as NoOpTelemetryRecorderProvider, eR as TimestampTelemetryProcessor_1, eS as updateGlobalTelemetryInstances, eT as TelemetryRecorderProvider, eU as telemetryRecorderProvider, eV as createGitDiff, eW as catchError$1, eX as AgentWorkspaceEdit, eY as TextDocumentChangeReason, eZ as omit$1, e_ as displayPathWithoutWorkspaceFolderPrefix, e$ as getEditorInsertSpaces, f0 as escapeRegExp$1, f1 as isNetworkError, bY as isCodyProModel, f2 as http, f3 as open, bH as CodyTaskState, f as CodeLens, f4 as defaultWebviewPanel, b9 as createExtensionAPI, ba as createMessageAPIForWebview, f5 as EndOfLine, f6 as ViewColumn, f7 as Location, f8 as onDidChangeActiveTextEditor, f9 as tabGroups, fa as workspaceTextDocuments, fb as visibleTextEditors, fc as onDidChangeVisibleTextEditors, fd as fs, fe as onDidCloseTextDocument, ff as setCreateWebviewPanel, fg as getAugmentedNamespace, fh as extensionConfiguration, fi as main$1, fj as setWorkspaceDocuments, fk as setLastOpenedWorkspaceFolder, fl as onDidRegisterNewCodeActionProvider, fm as onDidUnregisterNewCodeActionProvider, fn as onDidRegisterNewCodeLensProvider, fo as onDidUnregisterNewCodeLensProvider, fp as setClientInfo, fq as AgentWorkspaceConfiguration, fr as firstNonPendingAuthStatus, fs as workspaceFolders$1, ft as setWorkspaceFolders, fu as onDidChangeWorkspaceFolders, fv as onDidChangeWindowState, fw as onDidOpenTextDocument, fx as onDidSaveTextDocument, fy as packageJson, fz as progressBars, fA as CodeActionTriggerKind, fB as CodeAction, fC as UriString, D as DiagnosticSeverity, fD as diagnostics, fE as isIntegrationTesting, fF as TESTING_TELEMETRY_EXPORTER, fG as dist, fH as completionProvider, fI as InlineCompletionTriggerKind, fJ as checkIfEnterpriseUser, fK as currentAuthStatusAuthed, fL as waitUntilComplete, fM as setExtensionConfiguration, fN as isTokenOrEndpointChange, fO as onDidChangeConfiguration, fP as onDidChangeTextDocument, fQ as onDidChangeTextEditorSelection, fR as setAgent, b$ as isMacOS, fS as QuickInputButtons, bW as CustomCommandType, fT as RelativePattern, ci as setDisplayPathEnvInfo, fU as isWindows, fV as currentAuthStatusOrNotReadyYet, fW as currentUserProductSubscription, c3 as ACCOUNT_USAGE_URL, bc as debounce$1, aH as displayPath, fX as structuredPatch, fY as isDotComAuthed, fZ as dedupeWith$1, f_ as AbortError, f$ as TimeoutError, g0 as createDisposables, g1 as getClientInfoQueryParams, g2 as tracer, g3 as getClientIdentificationHeaders, g4 as setJSONAcceptContentTypeHeaders, g5 as logResponseHeadersToSpan, g6 as getActiveTraceAndSpanId, g7 as isCustomAuthChallengeResponse, g8 as TracedError, g9 as isNodeResponse, bu as SpanStatusCode, bJ as RateLimitError$2, ga as capitalize, gb as createTwoFilesPatch, T as ThemeColor, gc as getEditorTabSize$1, by as whitespace, bw as svg, bz as find$1, bA as stringify$1, bB as stringify$2, bC as ccount, bx as html$3, gd as InlineCompletionItem, ge as isFreeUser, gf as exec, gg as _baseGetTag, gh as MAX_BYTES_PER_FILE, gi as debounce_1, cg as isErrorLike, gj as mentionProvidersMetadata, gk as openctxController, aG as displayPathBasename, gl as expandToLineRange, aI as displayLineRange, bS as DeepCodyAgentID, b6 as parseMentionQuery, gm as openCtxProviderMetadata, gn as editorStateFromPromptString, bQ as isAbortErrorOrSocketHangUp, go as inputTextWithoutContextChipsFromPromptEditorState, s as spawn, gp as ToolCodyModelRef, gq as PromptMode, gr as skip$1, bt as context, gs as extractContextFromTraceparent, gt as isContextWindowLimitError, bm as forceHydration, bP as reformatBotMessageForChat, bn as hydrateAfterPostMessage, gu as addMessageListenersForExtensionAPI, gv as createMessageAPIForExtension, bX as View, gw as CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID, gx as CodeActionKind, ca as pluralize, gy as assertFileURI, gz as defer$2, gA as merge$2, gB as ruleSearchPaths, gC as isRuleFilename, gD as parseRuleFile, gE as languageFromFilename, az as RULES_PROVIDER_URI, gF as ruleTitle, gG as createCodeSearchProvider, gH as ProgrammingLanguage, gI as MAX_CURRENT_FILE_TOKENS, gJ as psDedent, gK as formatRuleForPrompt, gL as posixFilePaths, gM as DecorationRangeBehavior, gN as SURROUNDING_LINES, gO as GENERAL_HELP_LABEL, aL as LARGE_FILE_WARNING_LABEL, bh as scanForMentionTriggerInUserTextInput, gP as ACCOUNT_UPGRADE_URL, gQ as diffLines, gR as CODY_SUPPORT_URL, gS as CODY_DOC_URL, gT as CODY_FEEDBACK_URL, gU as DISCORD_URL, b_ as getRelativeChatPeriod, gV as VSCODE_CHANGELOG_URL, gW as SG_CHANGELOG_URL, gX as ACCOUNT_LIMITS_INFO_URL, gY as assertUnreachable, gZ as promise, g_ as ExtensionMode, g$ as setLogger, h0 as setClientCapabilities, h1 as setResolvedConfigurationObservable, h2 as _, h3 as setClientNameVersion, h4 as setOpenCtxControllerObservable, h5 as CODY_OLLAMA_DOCS_URL, ce as browser$2 } from "./vscode-shim-CIaiKx3C.mjs";
|
|
22
|
+
import { a as util$4, i as inherits_browserExports } from "./util-JO1f7DJy.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");
|
|
@@ -18177,7 +18177,7 @@ function requireBuffer_list() {
|
|
|
18177
18177
|
return String(input);
|
|
18178
18178
|
}
|
|
18179
18179
|
var _require = requireBuffer(), Buffer2 = _require.Buffer;
|
|
18180
|
-
var _require2 =
|
|
18180
|
+
var _require2 = util$4, inspect = _require2.inspect;
|
|
18181
18181
|
var custom = inspect && inspect.custom || "inspect";
|
|
18182
18182
|
function copyBuffer(src, target, offset2) {
|
|
18183
18183
|
Buffer2.prototype.copy.call(src, target, offset2);
|
|
@@ -19769,7 +19769,7 @@ function require_stream_readable() {
|
|
|
19769
19769
|
function _isUint8Array(obj) {
|
|
19770
19770
|
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
19771
19771
|
}
|
|
19772
|
-
var debugUtil =
|
|
19772
|
+
var debugUtil = util$4;
|
|
19773
19773
|
var debug2;
|
|
19774
19774
|
if (debugUtil && debugUtil.debuglog) {
|
|
19775
19775
|
debug2 = debugUtil.debuglog("stream");
|
|
@@ -31963,7 +31963,7 @@ async function executeExplainOutput(args2) {
|
|
|
31963
31963
|
const source = "terminal";
|
|
31964
31964
|
telemetryRecorder.recordEvent("cody.command.terminal", "executed", {
|
|
31965
31965
|
metadata: {
|
|
31966
|
-
|
|
31966
|
+
useCodebaseContext: 0
|
|
31967
31967
|
},
|
|
31968
31968
|
interactionID: requestID,
|
|
31969
31969
|
privateMetadata: {
|
|
@@ -31983,7 +31983,7 @@ async function executeExplainOutput(args2) {
|
|
|
31983
31983
|
}
|
|
31984
31984
|
let prompt = template.replaceAll("{{PROCESS}}", promptArgs.name).replaceAll("{{OUTPUT}}", output2);
|
|
31985
31985
|
const options = promptArgs.creationOptions;
|
|
31986
|
-
if (options) {
|
|
31986
|
+
if (options && options.toString() !== "{}") {
|
|
31987
31987
|
span2.addEvent("hasCreationOptions");
|
|
31988
31988
|
prompt = prompt.concat(ps`\nProcess options: ${options}`);
|
|
31989
31989
|
}
|
|
@@ -39589,7 +39589,7 @@ function requireLib() {
|
|
|
39589
39589
|
const MurmurHash3 = requireImurmurhash();
|
|
39590
39590
|
const { onExit } = requireCjs();
|
|
39591
39591
|
const path2 = pathBrowserify;
|
|
39592
|
-
const { promisify } =
|
|
39592
|
+
const { promisify } = util$4;
|
|
39593
39593
|
const activeFiles = {};
|
|
39594
39594
|
const threadId = function getId() {
|
|
39595
39595
|
try {
|
|
@@ -42808,7 +42808,7 @@ class CommandsProvider {
|
|
|
42808
42808
|
if (!isFileURI(uri)) {
|
|
42809
42809
|
throw new Error("history only supported on local file paths");
|
|
42810
42810
|
}
|
|
42811
|
-
const { getContextFileFromGitLog } = await import("./git-log-
|
|
42811
|
+
const { getContextFileFromGitLog } = await import("./git-log-DHqBtvQi.mjs");
|
|
42812
42812
|
return getContextFileFromGitLog(uri, options);
|
|
42813
42813
|
}
|
|
42814
42814
|
dispose() {
|
|
@@ -163340,7 +163340,7 @@ async function getContextFromRelativePath(path2) {
|
|
|
163340
163340
|
}
|
|
163341
163341
|
}
|
|
163342
163342
|
var define_process_default$2 = { env: {} };
|
|
163343
|
-
const execAsync =
|
|
163343
|
+
const execAsync = util$4.promisify(exec);
|
|
163344
163344
|
const HOME_DIR = define_process_default$2.env.HOME || define_process_default$2.env.USERPROFILE || "";
|
|
163345
163345
|
const OUTPUT_WRAPPER = `
|
|
163346
163346
|
Terminal output from the \`{command}\` command enclosed between <OUTPUT0412> tags:
|
|
@@ -166406,22 +166406,25 @@ function observeDefaultContext({
|
|
|
166406
166406
|
if (corpusContext === pendingOperation) {
|
|
166407
166407
|
return pendingOperation;
|
|
166408
166408
|
}
|
|
166409
|
+
const baseInitialContext = [
|
|
166410
|
+
...openctxContext === pendingOperation ? [] : openctxContext,
|
|
166411
|
+
...currentFileOrSelectionContext === pendingOperation ? [] : currentFileOrSelectionContext
|
|
166412
|
+
];
|
|
166409
166413
|
if (noDefaultRepoChip) {
|
|
166410
166414
|
return {
|
|
166411
|
-
initialContext:
|
|
166412
|
-
...openctxContext === pendingOperation ? [] : openctxContext,
|
|
166413
|
-
...currentFileOrSelectionContext === pendingOperation ? [] : currentFileOrSelectionContext
|
|
166414
|
-
],
|
|
166415
|
+
initialContext: baseInitialContext,
|
|
166415
166416
|
corpusContext
|
|
166416
166417
|
};
|
|
166417
166418
|
}
|
|
166419
|
+
const initialCorpusItems = corpusContext.filter(
|
|
166420
|
+
(item) => item.source === ContextItemSource.Initial
|
|
166421
|
+
);
|
|
166422
|
+
const remainingCorpusItems = corpusContext.filter(
|
|
166423
|
+
(item) => item.source !== ContextItemSource.Initial
|
|
166424
|
+
);
|
|
166418
166425
|
return {
|
|
166419
|
-
initialContext: [
|
|
166420
|
-
|
|
166421
|
-
...currentFileOrSelectionContext === pendingOperation ? [] : currentFileOrSelectionContext,
|
|
166422
|
-
...corpusContext
|
|
166423
|
-
],
|
|
166424
|
-
corpusContext: []
|
|
166426
|
+
initialContext: [...baseInitialContext, ...initialCorpusItems],
|
|
166427
|
+
corpusContext: remainingCorpusItems
|
|
166425
166428
|
};
|
|
166426
166429
|
}
|
|
166427
166430
|
)
|
|
@@ -166499,7 +166502,10 @@ function getCorpusContextItemsForEditorState() {
|
|
|
166499
166502
|
(authStatus2) => ({
|
|
166500
166503
|
authenticated: authStatus2.authenticated,
|
|
166501
166504
|
endpoint: authStatus2.endpoint,
|
|
166502
|
-
allowRemoteContext: clientCapabilities().isCodyWeb || !isDotCom(authStatus2)
|
|
166505
|
+
allowRemoteContext: clientCapabilities().isCodyWeb || !isDotCom(authStatus2),
|
|
166506
|
+
isDotComUser: isDotCom(authStatus2),
|
|
166507
|
+
isEnterpriseStarterUser: isWorkspaceInstance(authStatus2),
|
|
166508
|
+
isEnterpriseUser: !isDotCom(authStatus2) && !isWorkspaceInstance(authStatus2)
|
|
166503
166509
|
})
|
|
166504
166510
|
),
|
|
166505
166511
|
distinctUntilChanged$1()
|
|
@@ -166508,6 +166514,22 @@ function getCorpusContextItemsForEditorState() {
|
|
|
166508
166514
|
abortableOperation(async ([authStatus2, remoteReposForAllWorkspaceFolders2], signal2) => {
|
|
166509
166515
|
var _a3;
|
|
166510
166516
|
const items = [];
|
|
166517
|
+
if (!authStatus2.isEnterpriseUser) {
|
|
166518
|
+
const workspaceFolder = (_a3 = workspace.workspaceFolders) == null ? void 0 : _a3.at(0);
|
|
166519
|
+
if (workspaceFolder) {
|
|
166520
|
+
items.push({
|
|
166521
|
+
type: "tree",
|
|
166522
|
+
uri: workspaceFolder.uri,
|
|
166523
|
+
title: "Current Repository",
|
|
166524
|
+
name: workspaceFolder.name,
|
|
166525
|
+
description: workspaceFolder.name,
|
|
166526
|
+
isWorkspaceRoot: true,
|
|
166527
|
+
content: null,
|
|
166528
|
+
source: ContextItemSource.Initial,
|
|
166529
|
+
icon: "folder"
|
|
166530
|
+
});
|
|
166531
|
+
}
|
|
166532
|
+
}
|
|
166511
166533
|
if (authStatus2.allowRemoteContext) {
|
|
166512
166534
|
if (remoteReposForAllWorkspaceFolders2 === pendingOperation) {
|
|
166513
166535
|
return pendingOperation;
|
|
@@ -166534,40 +166556,27 @@ function getCorpusContextItemsForEditorState() {
|
|
|
166534
166556
|
authStatus2
|
|
166535
166557
|
)
|
|
166536
166558
|
),
|
|
166537
|
-
title: "Current Repository",
|
|
166559
|
+
title: "Current Remote Repository",
|
|
166538
166560
|
description: repo.name,
|
|
166539
|
-
source: ContextItemSource.Initial,
|
|
166561
|
+
source: items.length > 0 ? ContextItemSource.Unified : ContextItemSource.Initial,
|
|
166540
166562
|
icon: "git-folder"
|
|
166541
166563
|
});
|
|
166542
166564
|
}
|
|
166543
|
-
if (remoteReposForAllWorkspaceFolders2.length === 0) {
|
|
166565
|
+
if (authStatus2.isEnterpriseUser && remoteReposForAllWorkspaceFolders2.length === 0) {
|
|
166544
166566
|
if (!clientCapabilities().isCodyWeb) {
|
|
166545
166567
|
items.push({
|
|
166546
166568
|
type: "open-link",
|
|
166547
|
-
title: "Current Repository",
|
|
166569
|
+
title: "Current Remote Repository",
|
|
166548
166570
|
badge: "Not yet available",
|
|
166549
166571
|
content: null,
|
|
166550
|
-
uri: URI.parse(
|
|
166572
|
+
uri: URI.parse(
|
|
166573
|
+
"https://sourcegraph.com/docs/cody/prompts-guide#indexing-your-repositories-for-context"
|
|
166574
|
+
),
|
|
166551
166575
|
name: "",
|
|
166552
166576
|
icon: "folder"
|
|
166553
166577
|
});
|
|
166554
166578
|
}
|
|
166555
166579
|
}
|
|
166556
|
-
} else {
|
|
166557
|
-
const workspaceFolder = (_a3 = workspace.workspaceFolders) == null ? void 0 : _a3.at(0);
|
|
166558
|
-
if (workspaceFolder) {
|
|
166559
|
-
items.push({
|
|
166560
|
-
type: "tree",
|
|
166561
|
-
uri: workspaceFolder.uri,
|
|
166562
|
-
title: "Current Repository",
|
|
166563
|
-
name: workspaceFolder.name,
|
|
166564
|
-
description: workspaceFolder.name,
|
|
166565
|
-
isWorkspaceRoot: true,
|
|
166566
|
-
content: null,
|
|
166567
|
-
source: ContextItemSource.Initial,
|
|
166568
|
-
icon: "folder"
|
|
166569
|
-
});
|
|
166570
|
-
}
|
|
166571
166580
|
}
|
|
166572
166581
|
return items;
|
|
166573
166582
|
})
|
|
@@ -172352,9 +172361,13 @@ class CodySourceControl {
|
|
|
172352
172361
|
commands$1.registerCommand("cody.command.generate-commit", (scm) => this.generate(scm)),
|
|
172353
172362
|
commands$1.registerCommand("cody.command.abort-commit", () => this.statusUpdate()),
|
|
172354
172363
|
subscriptionDisposable(
|
|
172355
|
-
modelsService.getModels(ModelUsage.
|
|
172356
|
-
const
|
|
172357
|
-
|
|
172364
|
+
modelsService.getModels(ModelUsage.Edit).pipe(skipPendingOperation()).subscribe((models) => {
|
|
172365
|
+
const filtered = models.filter(
|
|
172366
|
+
(m) => !m.tags.includes(ModelTag.Experimental) && !m.tags.includes(ModelTag.Internal)
|
|
172367
|
+
);
|
|
172368
|
+
const flashLite = filtered.find((m) => m.id.endsWith("gemini-2.0-flash-lite"));
|
|
172369
|
+
const flash = filtered.find((m) => m.id.endsWith("gemini-2.0-flash"));
|
|
172370
|
+
this.model = flashLite ?? flash ?? filtered.at(0);
|
|
172358
172371
|
})
|
|
172359
172372
|
)
|
|
172360
172373
|
);
|
|
@@ -172727,8 +172740,8 @@ function parseMentionURI(uri) {
|
|
|
172727
172740
|
}
|
|
172728
172741
|
}
|
|
172729
172742
|
async function execFileAsync(program2, args2, { cwd }) {
|
|
172730
|
-
const { promisify } = await import("./util-
|
|
172731
|
-
const { execFile } = await import("./vscode-shim-
|
|
172743
|
+
const { promisify } = await import("./util-JO1f7DJy.mjs").then((n) => n.u);
|
|
172744
|
+
const { execFile } = await import("./vscode-shim-CIaiKx3C.mjs").then((n) => n.h6);
|
|
172732
172745
|
return promisify(execFile)(program2, args2, { cwd });
|
|
172733
172746
|
}
|
|
172734
172747
|
var __create = Object.create;
|
|
@@ -183164,7 +183177,7 @@ async function registerDebugCommands(context2, disposables) {
|
|
|
183164
183177
|
}
|
|
183165
183178
|
async function tryRegisterTutorial(context2, disposables) {
|
|
183166
183179
|
if (!isRunningInsideAgent()) {
|
|
183167
|
-
const { registerInteractiveTutorial } = await import("./index-
|
|
183180
|
+
const { registerInteractiveTutorial } = await import("./index-B49HuzD8.mjs");
|
|
183168
183181
|
registerInteractiveTutorial(context2).then((disposable) => disposables.push(...disposable));
|
|
183169
183182
|
}
|
|
183170
183183
|
}
|
package/dist/agent.worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./agent.worker-
|
|
2
|
-
import "./vscode-shim-
|
|
1
|
+
import "./agent.worker-BQ1q_FR7.mjs";
|
|
2
|
+
import "./vscode-shim-CIaiKx3C.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as wrapInActiveSpan, p as path, C as ContextItemSource, U as Uri, s as spawn } from "./vscode-shim-
|
|
1
|
+
import { w as wrapInActiveSpan, p as path, C as ContextItemSource, U as Uri, s as spawn } from "./vscode-shim-CIaiKx3C.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,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 { P as Position, R as Range, U as Uri, a as window, c as commands, t as telemetryRecorder, b as workspace, d as ps, D as DiagnosticSeverity, e as dedent, l as languages, f as CodeLens, T as ThemeColor, g as Disposable } from "./vscode-shim-
|
|
5
|
-
import { u as updateRangeMultipleChanges, e as executeEdit, T as TERMINAL_EDIT_STATES, s as setTutorialUri, l as logSidebarClick } from "./agent.worker-
|
|
4
|
+
import { P as Position, R as Range, U as Uri, a as window, c as commands, t as telemetryRecorder, b as workspace, d as ps, D as DiagnosticSeverity, e as dedent, l as languages, f as CodeLens, T as ThemeColor, g as Disposable } from "./vscode-shim-CIaiKx3C.mjs";
|
|
5
|
+
import { u as updateRangeMultipleChanges, e as executeEdit, T as TERMINAL_EDIT_STATES, s as setTutorialUri, l as logSidebarClick } from "./agent.worker-BQ1q_FR7.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>`;
|