@sourcegraph/cody-web 0.13.0 → 0.14.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-tqkv38cx.mjs";
2
- import "./browser-C59ckcSt.mjs";
1
+ import "./agent.worker-Db7WHXi2.mjs";
2
+ import "./browser-BISWjcA3.mjs";
@@ -10899,8 +10899,8 @@ function catchHTTPError(url, timeoutSignal) {
10899
10899
  }
10900
10900
  error2 = `ETIMEDOUT: timed out after ${DEFAULT_TIMEOUT_MSEC}ms`;
10901
10901
  }
10902
- const code2 = `${(typeof error2 === "object" && error2 ? error2.code : void 0) ?? ""} `;
10903
- return new Error(`accessing Sourcegraph HTTP API: ${code2}${error2} (${url})`);
10902
+ const code = `${(typeof error2 === "object" && error2 ? error2.code : void 0) ?? ""} `;
10903
+ return new Error(`accessing Sourcegraph HTTP API: ${code}${error2} (${url})`);
10904
10904
  };
10905
10905
  }
10906
10906
  const graphqlClient = SourcegraphGraphQLAPIClient.withGlobalConfig();
@@ -12731,98 +12731,106 @@ function isDehydratedUri(value) {
12731
12731
  value.authority !== void 0 && value.path !== void 0 && value.fragment !== void 0 && value.query !== void 0);
12732
12732
  }
12733
12733
  var base64Js = {};
12734
- base64Js.byteLength = byteLength;
12735
- base64Js.toByteArray = toByteArray;
12736
- base64Js.fromByteArray = fromByteArray;
12737
- var lookup = [];
12738
- var revLookup = [];
12739
- var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
12740
- var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
12741
- for (var i$1 = 0, len = code.length; i$1 < len; ++i$1) {
12742
- lookup[i$1] = code[i$1];
12743
- revLookup[code.charCodeAt(i$1)] = i$1;
12744
- }
12745
- revLookup["-".charCodeAt(0)] = 62;
12746
- revLookup["_".charCodeAt(0)] = 63;
12747
- function getLens(b64) {
12748
- var len = b64.length;
12749
- if (len % 4 > 0) {
12750
- throw new Error("Invalid string. Length must be a multiple of 4");
12751
- }
12752
- var validLen = b64.indexOf("=");
12753
- if (validLen === -1) validLen = len;
12754
- var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
12755
- return [validLen, placeHoldersLen];
12756
- }
12757
- function byteLength(b64) {
12758
- var lens = getLens(b64);
12759
- var validLen = lens[0];
12760
- var placeHoldersLen = lens[1];
12761
- return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
12762
- }
12763
- function _byteLength(b64, validLen, placeHoldersLen) {
12764
- return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
12765
- }
12766
- function toByteArray(b64) {
12767
- var tmp;
12768
- var lens = getLens(b64);
12769
- var validLen = lens[0];
12770
- var placeHoldersLen = lens[1];
12771
- var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
12772
- var curByte = 0;
12773
- var len = placeHoldersLen > 0 ? validLen - 4 : validLen;
12774
- var i3;
12775
- for (i3 = 0; i3 < len; i3 += 4) {
12776
- tmp = revLookup[b64.charCodeAt(i3)] << 18 | revLookup[b64.charCodeAt(i3 + 1)] << 12 | revLookup[b64.charCodeAt(i3 + 2)] << 6 | revLookup[b64.charCodeAt(i3 + 3)];
12777
- arr[curByte++] = tmp >> 16 & 255;
12778
- arr[curByte++] = tmp >> 8 & 255;
12779
- arr[curByte++] = tmp & 255;
12780
- }
12781
- if (placeHoldersLen === 2) {
12782
- tmp = revLookup[b64.charCodeAt(i3)] << 2 | revLookup[b64.charCodeAt(i3 + 1)] >> 4;
12783
- arr[curByte++] = tmp & 255;
12784
- }
12785
- if (placeHoldersLen === 1) {
12786
- tmp = revLookup[b64.charCodeAt(i3)] << 10 | revLookup[b64.charCodeAt(i3 + 1)] << 4 | revLookup[b64.charCodeAt(i3 + 2)] >> 2;
12787
- arr[curByte++] = tmp >> 8 & 255;
12788
- arr[curByte++] = tmp & 255;
12789
- }
12790
- return arr;
12791
- }
12792
- function tripletToBase64(num) {
12793
- return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
12794
- }
12795
- function encodeChunk(uint8, start, end) {
12796
- var tmp;
12797
- var output = [];
12798
- for (var i3 = start; i3 < end; i3 += 3) {
12799
- tmp = (uint8[i3] << 16 & 16711680) + (uint8[i3 + 1] << 8 & 65280) + (uint8[i3 + 2] & 255);
12800
- output.push(tripletToBase64(tmp));
12801
- }
12802
- return output.join("");
12803
- }
12804
- function fromByteArray(uint8) {
12805
- var tmp;
12806
- var len = uint8.length;
12807
- var extraBytes = len % 3;
12808
- var parts = [];
12809
- var maxChunkLength = 16383;
12810
- for (var i3 = 0, len2 = len - extraBytes; i3 < len2; i3 += maxChunkLength) {
12811
- parts.push(encodeChunk(uint8, i3, i3 + maxChunkLength > len2 ? len2 : i3 + maxChunkLength));
12812
- }
12813
- if (extraBytes === 1) {
12814
- tmp = uint8[len - 1];
12815
- parts.push(
12816
- lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="
12817
- );
12818
- } else if (extraBytes === 2) {
12819
- tmp = (uint8[len - 2] << 8) + uint8[len - 1];
12820
- parts.push(
12821
- lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
12822
- );
12734
+ var hasRequiredBase64Js;
12735
+ function requireBase64Js() {
12736
+ if (hasRequiredBase64Js) return base64Js;
12737
+ hasRequiredBase64Js = 1;
12738
+ base64Js.byteLength = byteLength;
12739
+ base64Js.toByteArray = toByteArray;
12740
+ base64Js.fromByteArray = fromByteArray;
12741
+ var lookup = [];
12742
+ var revLookup = [];
12743
+ var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
12744
+ var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
12745
+ for (var i3 = 0, len = code.length; i3 < len; ++i3) {
12746
+ lookup[i3] = code[i3];
12747
+ revLookup[code.charCodeAt(i3)] = i3;
12748
+ }
12749
+ revLookup["-".charCodeAt(0)] = 62;
12750
+ revLookup["_".charCodeAt(0)] = 63;
12751
+ function getLens(b64) {
12752
+ var len2 = b64.length;
12753
+ if (len2 % 4 > 0) {
12754
+ throw new Error("Invalid string. Length must be a multiple of 4");
12755
+ }
12756
+ var validLen = b64.indexOf("=");
12757
+ if (validLen === -1) validLen = len2;
12758
+ var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
12759
+ return [validLen, placeHoldersLen];
12760
+ }
12761
+ function byteLength(b64) {
12762
+ var lens = getLens(b64);
12763
+ var validLen = lens[0];
12764
+ var placeHoldersLen = lens[1];
12765
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
12766
+ }
12767
+ function _byteLength(b64, validLen, placeHoldersLen) {
12768
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
12769
+ }
12770
+ function toByteArray(b64) {
12771
+ var tmp;
12772
+ var lens = getLens(b64);
12773
+ var validLen = lens[0];
12774
+ var placeHoldersLen = lens[1];
12775
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
12776
+ var curByte = 0;
12777
+ var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
12778
+ var i4;
12779
+ for (i4 = 0; i4 < len2; i4 += 4) {
12780
+ tmp = revLookup[b64.charCodeAt(i4)] << 18 | revLookup[b64.charCodeAt(i4 + 1)] << 12 | revLookup[b64.charCodeAt(i4 + 2)] << 6 | revLookup[b64.charCodeAt(i4 + 3)];
12781
+ arr[curByte++] = tmp >> 16 & 255;
12782
+ arr[curByte++] = tmp >> 8 & 255;
12783
+ arr[curByte++] = tmp & 255;
12784
+ }
12785
+ if (placeHoldersLen === 2) {
12786
+ tmp = revLookup[b64.charCodeAt(i4)] << 2 | revLookup[b64.charCodeAt(i4 + 1)] >> 4;
12787
+ arr[curByte++] = tmp & 255;
12788
+ }
12789
+ if (placeHoldersLen === 1) {
12790
+ tmp = revLookup[b64.charCodeAt(i4)] << 10 | revLookup[b64.charCodeAt(i4 + 1)] << 4 | revLookup[b64.charCodeAt(i4 + 2)] >> 2;
12791
+ arr[curByte++] = tmp >> 8 & 255;
12792
+ arr[curByte++] = tmp & 255;
12793
+ }
12794
+ return arr;
12795
+ }
12796
+ function tripletToBase64(num) {
12797
+ return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
12798
+ }
12799
+ function encodeChunk(uint8, start, end) {
12800
+ var tmp;
12801
+ var output = [];
12802
+ for (var i4 = start; i4 < end; i4 += 3) {
12803
+ tmp = (uint8[i4] << 16 & 16711680) + (uint8[i4 + 1] << 8 & 65280) + (uint8[i4 + 2] & 255);
12804
+ output.push(tripletToBase64(tmp));
12805
+ }
12806
+ return output.join("");
12807
+ }
12808
+ function fromByteArray(uint8) {
12809
+ var tmp;
12810
+ var len2 = uint8.length;
12811
+ var extraBytes = len2 % 3;
12812
+ var parts = [];
12813
+ var maxChunkLength = 16383;
12814
+ for (var i4 = 0, len22 = len2 - extraBytes; i4 < len22; i4 += maxChunkLength) {
12815
+ parts.push(encodeChunk(uint8, i4, i4 + maxChunkLength > len22 ? len22 : i4 + maxChunkLength));
12816
+ }
12817
+ if (extraBytes === 1) {
12818
+ tmp = uint8[len2 - 1];
12819
+ parts.push(
12820
+ lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="
12821
+ );
12822
+ } else if (extraBytes === 2) {
12823
+ tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
12824
+ parts.push(
12825
+ lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
12826
+ );
12827
+ }
12828
+ return parts.join("");
12823
12829
  }
12824
- return parts.join("");
12830
+ return base64Js;
12825
12831
  }
12832
+ var base64JsExports = requireBase64Js();
12833
+ const base64 = /* @__PURE__ */ getDefaultExportFromCjs(base64JsExports);
12826
12834
  var __defProp2 = Object.defineProperty;
12827
12835
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12828
12836
  var __publicField2 = (obj, key, value) => {
@@ -12887,7 +12895,7 @@ var _Tiktoken = class {
12887
12895
  return memo;
12888
12896
  }, {});
12889
12897
  for (const [token, rank] of Object.entries(uncompressed)) {
12890
- const bytes = base64Js.toByteArray(token);
12898
+ const bytes = base64.toByteArray(token);
12891
12899
  this.rankMap.set(bytes.join(","), rank);
12892
12900
  this.textMap.set(rank, bytes);
12893
12901
  }
@@ -30178,9 +30186,9 @@ var ErrorCodes;
30178
30186
  ErrorCodes2.serverErrorEnd = -32e3;
30179
30187
  })(ErrorCodes || (messages.ErrorCodes = ErrorCodes = {}));
30180
30188
  class ResponseError extends Error {
30181
- constructor(code2, message, data) {
30189
+ constructor(code, message, data) {
30182
30190
  super(message);
30183
- this.code = is.number(code2) ? code2 : ErrorCodes.UnknownErrorCode;
30191
+ this.code = is.number(code) ? code : ErrorCodes.UnknownErrorCode;
30184
30192
  this.data = data;
30185
30193
  Object.setPrototypeOf(this, ResponseError.prototype);
30186
30194
  }
@@ -31685,9 +31693,9 @@ var connection = {};
31685
31693
  ConnectionErrors2[ConnectionErrors2["AlreadyListening"] = 3] = "AlreadyListening";
31686
31694
  })(ConnectionErrors || (exports.ConnectionErrors = ConnectionErrors = {}));
31687
31695
  class ConnectionError extends Error {
31688
- constructor(code2, message) {
31696
+ constructor(code, message) {
31689
31697
  super(message);
31690
- this.code = code2;
31698
+ this.code = code;
31691
31699
  Object.setPrototypeOf(this, ConnectionError.prototype);
31692
31700
  }
31693
31701
  }
@@ -33324,7 +33332,7 @@ export {
33324
33332
  dedent as d,
33325
33333
  TESTING_TELEMETRY_EXPORTER as d$,
33326
33334
  isSourcegraphToken as d0,
33327
- base64Js as d1,
33335
+ requireBase64Js as d1,
33328
33336
  setExtensionVersion as d2,
33329
33337
  withLatestFrom as d3,
33330
33338
  NEVER as d4,
@@ -1,5 +1,5 @@
1
- import { p as path, U as Uri, s as spawn } from "./agent.worker-tqkv38cx.mjs";
2
- import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-C59ckcSt.mjs";
1
+ import { p as path, U as Uri, s as spawn } from "./agent.worker-Db7WHXi2.mjs";
2
+ import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-BISWjcA3.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-tqkv38cx.mjs";
5
- import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-C59ckcSt.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-Db7WHXi2.mjs";
5
+ import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-BISWjcA3.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>`;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ 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
4
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
5
- import { g as getDefaultExportFromCjs, q as qe$1, _ as _s, a as ds, y as ys, x as xi$1, k as ke$1, L as Ls, b as ks, F as Fi$1, c as bs, i as ii$1, K as K$2, J as J$2, R as R$3, e as ws, B as B$2, f as g$5, h as h$4, j as _i, S as Ss, l as Br, m as ln, n as bi$1, v as vn, o as xn, N as Nn, r as mn, s as li$1, u as n$1, z as ns, M as M$4, D as Ds, A as le$2, E as c$3, G as oe$2, H as z$1, I as yi$1, W as W$2, U as Ue$1, O as I$2, P as Se$2, Q as O$2, T as F$1, V as Ni$1, X as ee$1, Y as we$2, Z as b$2, $ as T$3, a0 as s$2, a1 as o$4, a2 as w$3, a3 as i$1, a4 as k$3, a5 as D$5, a6 as p$8, a7 as m$7, a8 as S$4, a9 as v$4, aa as P$2, ab as E$6, ac as Wi$1, ad as L$3, ae as d$2, af as a$3, ag as l$2, ah as f$2, ai as u$6, aj as r$5, ak as t$2, al as FILE_CONTEXT_MENTION_PROVIDER, am as SYMBOL_CONTEXT_MENTION_PROVIDER, an as REMOTE_REPOSITORY_PROVIDER_URI, ao as REMOTE_FILE_PROVIDER_URI, ap as REMOTE_DIRECTORY_PROVIDER_URI, aq as WEB_PROVIDER_URI, ar as displayPath, as as displayLineRange, at as displayPathDirname, au as displayPathBasename, av as IGNORED_FILE_WARNING_LABEL, aw as LARGE_FILE_WARNING_LABEL, ax as Ei$1, ay as xe$2, az as V$2, aA as Es, aB as U$2, aC as e, aD as Ns, aE as an, aF as gs, aG as serializeContextItem, aH as CONTEXT_ITEM_MENTION_NODE_TYPE, aI as contextItemMentionNodeDisplayText, C as ContextItemSource, aJ as URI, aK as qr, aL as _$2, aM as TEMPLATE_INPUT_NODE_TYPE, aN as N$2, aO as parseMentionQuery, aP as NO_SYMBOL_MATCHES_HELP_LABEL, aQ as FILE_RANGE_TOOLTIP_LABEL, aR as Observable$1, aS as createExtensionAPI, aT as createMessageAPIForWebview, aU as debounce, aV as memoizeLastValue, aW as toSerializedPromptEditorValue, aX as ri$1, aY as isEqual, aZ as scanForMentionTriggerInUserTextInput, a_ as fs, a$ as Ts, b0 as ps, b1 as getMentionOperations, b2 as forceHydration, b3 as hydrateAfterPostMessage, b4 as isCodyProUser, b5 as FeatureFlag, b6 as webviewOpenURIForContextItem, b7 as upperFirst, b8 as CodyIDE, b9 as commonjsGlobal, ba as CodyTaskState, bb as cryptoJsExports, bc as isError, bd as RateLimitError, be as CODY_FEEDBACK_URL, bf as isDefined, bg as reformatBotMessageForChat, bh as isAbortErrorOrSocketHangUp, bi as ModelTag, bj as serializedPromptEditorStateFromChatMessage, bk as contextItemsFromPromptEditorValue, bl as filterContextItemsFromPromptEditorValue, bm as pluralize$1, bn as CustomCommandType, bo as View, bp as isCodyProModel, bq as isWaitlistModel, br as ACCOUNT_USAGE_URL, bs as ACCOUNT_UPGRADE_URL, bt as getRelativeChatPeriod, bu as isMacOS, bv as firstResultFromOperation, bw as lodashExports, bx as textContentFromSerializedLexicalNode, by as firstValueFrom, bz as skipPendingOperation, bA as FAST_CHAT_INPUT_TOKEN_BUDGET, bB as inputTextWithoutContextChipsFromPromptEditorState, bC as deserializeContextItem, bD as truncateTextStart, bE as CHAT_INPUT_TOKEN_BUDGET, bF as isDotCom, bG as browser, bH as isErrorLike, bI as PromptString, bJ as setDisplayPathEnvInfo } from "./browser-C59ckcSt.mjs";
5
+ import { g as getDefaultExportFromCjs, q as qe$1, _ as _s, a as ds, y as ys, x as xi$1, k as ke$1, L as Ls, b as ks, F as Fi$1, c as bs, i as ii$1, K as K$2, J as J$2, R as R$3, e as ws, B as B$2, f as g$5, h as h$4, j as _i, S as Ss, l as Br, m as ln, n as bi$1, v as vn, o as xn, N as Nn, r as mn, s as li$1, u as n$1, z as ns, M as M$4, D as Ds, A as le$2, E as c$3, G as oe$2, H as z$1, I as yi$1, W as W$2, U as Ue$1, O as I$2, P as Se$2, Q as O$2, T as F$1, V as Ni$1, X as ee$1, Y as we$2, Z as b$2, $ as T$3, a0 as s$2, a1 as o$4, a2 as w$3, a3 as i$1, a4 as k$3, a5 as D$5, a6 as p$8, a7 as m$7, a8 as S$4, a9 as v$4, aa as P$2, ab as E$6, ac as Wi$1, ad as L$3, ae as d$2, af as a$3, ag as l$2, ah as f$2, ai as u$6, aj as r$5, ak as t$2, al as FILE_CONTEXT_MENTION_PROVIDER, am as SYMBOL_CONTEXT_MENTION_PROVIDER, an as REMOTE_REPOSITORY_PROVIDER_URI, ao as REMOTE_FILE_PROVIDER_URI, ap as REMOTE_DIRECTORY_PROVIDER_URI, aq as WEB_PROVIDER_URI, ar as displayPath, as as displayLineRange, at as displayPathDirname, au as displayPathBasename, av as IGNORED_FILE_WARNING_LABEL, aw as LARGE_FILE_WARNING_LABEL, ax as Ei$1, ay as xe$2, az as V$2, aA as Es, aB as U$2, aC as e, aD as Ns, aE as an, aF as gs, aG as serializeContextItem, aH as CONTEXT_ITEM_MENTION_NODE_TYPE, aI as contextItemMentionNodeDisplayText, C as ContextItemSource, aJ as URI, aK as qr, aL as _$2, aM as TEMPLATE_INPUT_NODE_TYPE, aN as N$2, aO as parseMentionQuery, aP as NO_SYMBOL_MATCHES_HELP_LABEL, aQ as FILE_RANGE_TOOLTIP_LABEL, aR as Observable$1, aS as createExtensionAPI, aT as createMessageAPIForWebview, aU as debounce, aV as memoizeLastValue, aW as toSerializedPromptEditorValue, aX as ri$1, aY as isEqual, aZ as scanForMentionTriggerInUserTextInput, a_ as fs, a$ as Ts, b0 as ps, b1 as getMentionOperations, b2 as forceHydration, b3 as hydrateAfterPostMessage, b4 as isCodyProUser, b5 as FeatureFlag, b6 as webviewOpenURIForContextItem, b7 as upperFirst, b8 as CodyIDE, b9 as commonjsGlobal, ba as CodyTaskState, bb as cryptoJsExports, bc as isError, bd as RateLimitError, be as CODY_FEEDBACK_URL, bf as isDefined, bg as reformatBotMessageForChat, bh as isAbortErrorOrSocketHangUp, bi as ModelTag, bj as serializedPromptEditorStateFromChatMessage, bk as contextItemsFromPromptEditorValue, bl as filterContextItemsFromPromptEditorValue, bm as pluralize$1, bn as CustomCommandType, bo as View, bp as isCodyProModel, bq as isWaitlistModel, br as ACCOUNT_USAGE_URL, bs as ACCOUNT_UPGRADE_URL, bt as getRelativeChatPeriod, bu as isMacOS, bv as firstResultFromOperation, bw as lodashExports, bx as textContentFromSerializedLexicalNode, by as firstValueFrom, bz as skipPendingOperation, bA as FAST_CHAT_INPUT_TOKEN_BUDGET, bB as inputTextWithoutContextChipsFromPromptEditorState, bC as deserializeContextItem, bD as truncateTextStart, bE as CHAT_INPUT_TOKEN_BUDGET, bF as isDotCom, bG as browser, bH as isErrorLike, bI as PromptString, bJ as setDisplayPathEnvInfo } from "./browser-BISWjcA3.mjs";
6
6
  import * as React from "react";
7
7
  import React__default, { createContext, useContext, useMemo, useLayoutEffect, useEffect, forwardRef, useState, useCallback, useRef, Suspense, createElement, memo, useImperativeHandle, Children, isValidElement, cloneElement, Fragment as Fragment$1, useReducer } from "react";
8
8
  var classnames = { exports: {} };
@@ -65570,6 +65570,12 @@ const styles$b = {
65570
65570
  listChips,
65571
65571
  listItem
65572
65572
  };
65573
+ const BUILT_IN_PROMPTS_CODE = {
65574
+ "document-code": 1,
65575
+ "explain-code": 2,
65576
+ "find-code-smells": 3,
65577
+ "generate-unit-tests": 4
65578
+ };
65573
65579
  const PromptList = (props) => {
65574
65580
  const {
65575
65581
  showSearch,
@@ -65609,6 +65615,7 @@ const PromptList = (props) => {
65609
65615
  return;
65610
65616
  }
65611
65617
  const isPrompt = action2.actionType === "prompt";
65618
+ const isBuiltinPrompt = isPrompt && action2.builtin;
65612
65619
  const isPromptAutoSubmit = action2.actionType === "prompt" && action2.autoSubmit;
65613
65620
  const isCommand = action2.actionType === "command";
65614
65621
  const isBuiltInCommand = isCommand && action2.type === "default";
@@ -65616,6 +65623,8 @@ const PromptList = (props) => {
65616
65623
  metadata: {
65617
65624
  isPrompt: isPrompt ? 1 : 0,
65618
65625
  isPromptAutoSubmit: isPromptAutoSubmit ? 1 : 0,
65626
+ isPromptBuiltin: isBuiltinPrompt ? 1 : 0,
65627
+ builtinPromptId: isBuiltinPrompt ? BUILT_IN_PROMPTS_CODE[action2.name] ?? 0 : 0,
65619
65628
  isCommand: isCommand ? 1 : 0,
65620
65629
  isCommandBuiltin: isBuiltInCommand ? 1 : 0,
65621
65630
  isCommandCustom: !isBuiltInCommand ? 1 : 0,
@@ -1,5 +1,3 @@
1
- declare const _default: {
2
- hello: string;
3
- };
1
+ declare const _default: {};
4
2
  export default _default;
5
3
  //# sourceMappingURL=worker_threads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"worker_threads.d.ts","sourceRoot":"","sources":["../../../../lib/agent/shims/worker_threads.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
1
+ {"version":3,"file":"worker_threads.d.ts","sourceRoot":"","sources":["../../../../lib/agent/shims/worker_threads.ts"],"names":[],"mappings":";AAAA,wBAAiB"}