@sourcegraph/amp 0.0.1748851339-g31df22 → 0.0.1748865683-g71e54e

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.
Files changed (51) hide show
  1. package/dist/amp.js +3 -2
  2. package/dist/amp.js.map +1 -1
  3. package/dist/client-BWw-YoAm.js +35 -0
  4. package/dist/client-BWw-YoAm.js.map +1 -0
  5. package/dist/{console-k3nh7b4U.js → console-CTjwGR94.js} +38818 -17252
  6. package/dist/console-CTjwGR94.js.map +1 -0
  7. package/dist/{create_file.node-Dxp9NAiW.js → create_file.node-vNn4fbhz.js} +2 -2
  8. package/dist/{create_file.node-Dxp9NAiW.js.map → create_file.node-vNn4fbhz.js.map} +1 -1
  9. package/dist/{edit_file.node-BlCpGVR-.js → edit_file.node-CT1vyl1i.js} +10 -10
  10. package/dist/{edit_file.node-BlCpGVR-.js.map → edit_file.node-CT1vyl1i.js.map} +1 -1
  11. package/dist/{executable-DTI1_xm7.js → executable-BrAdMU71.js} +2 -2
  12. package/dist/{executable-DTI1_xm7.js.map → executable-BrAdMU71.js.map} +1 -1
  13. package/dist/{files-DdjDm_B8.js → files-BOfdJygp.js} +3 -3
  14. package/dist/{files-DdjDm_B8.js.map → files-BOfdJygp.js.map} +1 -1
  15. package/dist/glob.node-4tOopzOM.js +137 -0
  16. package/dist/glob.node-4tOopzOM.js.map +1 -0
  17. package/dist/index-NLHysr2h.js +922 -0
  18. package/dist/index-NLHysr2h.js.map +1 -0
  19. package/dist/{list_directory.node-DDhJZGvT.js → list_directory.node-updCUrTG.js} +2 -2
  20. package/dist/{list_directory.node-DDhJZGvT.js.map → list_directory.node-updCUrTG.js.map} +1 -1
  21. package/dist/{load-profile-CWDhvBXX.js → load-profile-DZZRFAc9.js} +2 -2
  22. package/dist/{load-profile-CWDhvBXX.js.map → load-profile-DZZRFAc9.js.map} +1 -1
  23. package/dist/main-BJVONhWT.js +19483 -0
  24. package/dist/main-BJVONhWT.js.map +1 -0
  25. package/dist/node-BkgN80SA.js +85 -0
  26. package/dist/node-BkgN80SA.js.map +1 -0
  27. package/dist/{node-DGc3Eu0F.js → node-BtSehPh_.js} +3 -3
  28. package/dist/{node-DGc3Eu0F.js.map → node-BtSehPh_.js.map} +1 -1
  29. package/dist/{node-BZlRkYQw.js → node-DGpCXn3p.js} +2 -2
  30. package/dist/{node-BZlRkYQw.js.map → node-DGpCXn3p.js.map} +1 -1
  31. package/dist/{node-B1RLuGfG.js → node-DIQSaLGP.js} +41 -41
  32. package/dist/{node-B1RLuGfG.js.map → node-DIQSaLGP.js.map} +1 -1
  33. package/dist/{node-w5kFgl6-.js → node-S3C83o8k.js} +47 -47
  34. package/dist/{node-w5kFgl6-.js.map → node-S3C83o8k.js.map} +1 -1
  35. package/dist/{node-DuhaU87r.js → node-iqSbLvK6.js} +28 -28
  36. package/dist/{node-DuhaU87r.js.map → node-iqSbLvK6.js.map} +1 -1
  37. package/dist/{read_file.node-CsATnmUF.js → read_file.node-B7tSIDli.js} +2 -2
  38. package/dist/{read_file.node-CsATnmUF.js.map → read_file.node-B7tSIDli.js.map} +1 -1
  39. package/dist/{stdio-Egb8ZIIg.js → stdio-nUAEiLxy.js} +29 -29
  40. package/dist/{stdio-Egb8ZIIg.js.map → stdio-nUAEiLxy.js.map} +1 -1
  41. package/dist/storybook.js +1 -1
  42. package/dist/{undo_edit.node-CHrrMPkn.js → undo_edit.node-BYhKjjZF.js} +10 -10
  43. package/dist/{undo_edit.node-CHrrMPkn.js.map → undo_edit.node-BYhKjjZF.js.map} +1 -1
  44. package/package.json +1 -1
  45. package/dist/console-k3nh7b4U.js.map +0 -1
  46. package/dist/glob.node-BnKeKl9M.js +0 -1051
  47. package/dist/glob.node-BnKeKl9M.js.map +0 -1
  48. package/dist/main-DuPQOPga.js +0 -40843
  49. package/dist/main-DuPQOPga.js.map +0 -1
  50. package/dist/node-3m0J6gBv.js +0 -72
  51. package/dist/node-3m0J6gBv.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import * as oe from "node:os";
3
3
  import { resolve as he } from "node:path";
4
- import { b2 as ce, b3 as le, aV as re, b1 as ue, aU as fe, aQ as _e, O as te, b4 as de, b5 as ie, b6 as pe } from "./console-k3nh7b4U.js";
5
- import { loadProfileEnvironmentVariables as ge } from "./load-profile-CWDhvBXX.js";
4
+ import { aR as ce, aS as le, aG as re, aO as ue, aF as fe, aA as _e, O as te, aT as de, aU as ie, aV as pe } from "./console-CTjwGR94.js";
5
+ import { loadProfileEnvironmentVariables as ge } from "./load-profile-DZZRFAc9.js";
6
6
  var se = {}, ne;
7
7
  function ve() {
8
8
  return ne || (ne = 1, function(W) {
9
9
  (() => {
10
- var V = { 349: (B, i, l) => {
10
+ var G = { 349: (B, i, l) => {
11
11
  Object.defineProperty(i, "__esModule", { value: !0 }), i.CircularList = void 0;
12
12
  const _ = l(460), d = l(844);
13
13
  class n extends d.Disposable {
@@ -278,7 +278,7 @@ function ve() {
278
278
  (function(x) {
279
279
  x[x.GET_WIN_SIZE_PIXELS = 0] = "GET_WIN_SIZE_PIXELS", x[x.GET_CELL_SIZE_PIXELS = 1] = "GET_CELL_SIZE_PIXELS";
280
280
  })(L || (i.WindowsOptionsReportType = L = {}));
281
- let G = 0;
281
+ let V = 0;
282
282
  class z extends h.Disposable {
283
283
  getAttrData() {
284
284
  return this._curAttrData;
@@ -340,20 +340,20 @@ function ve() {
340
340
  const Y = D[String.fromCharCode(S)];
341
341
  Y && (S = Y.charCodeAt(0));
342
342
  }
343
- const Q = this._unicodeService.charProperties(S, P);
344
- A = m.UnicodeService.extractWidth(Q);
345
- const ee = m.UnicodeService.extractShouldJoin(Q), K = ee ? m.UnicodeService.extractWidth(P) : 0;
346
- if (P = Q, R && this._onA11yChar.fire((0, u.stringFromCodePoint)(S)), this._getCurrentLinkId() && this._oscLinkService.addLineToLink(this._getCurrentLinkId(), this._activeBuffer.ybase + this._activeBuffer.y), this._activeBuffer.x + A - K > I) {
343
+ const Z = this._unicodeService.charProperties(S, P);
344
+ A = m.UnicodeService.extractWidth(Z);
345
+ const ee = m.UnicodeService.extractShouldJoin(Z), K = ee ? m.UnicodeService.extractWidth(P) : 0;
346
+ if (P = Z, R && this._onA11yChar.fire((0, u.stringFromCodePoint)(S)), this._getCurrentLinkId() && this._oscLinkService.addLineToLink(this._getCurrentLinkId(), this._activeBuffer.ybase + this._activeBuffer.y), this._activeBuffer.x + A - K > I) {
347
347
  if ($) {
348
348
  const Y = k;
349
- let Z = this._activeBuffer.x - K;
350
- for (this._activeBuffer.x = K, this._activeBuffer.y++, this._activeBuffer.y === this._activeBuffer.scrollBottom + 1 ? (this._activeBuffer.y--, this._bufferService.scroll(this._eraseAttrData(), !0)) : (this._activeBuffer.y >= this._bufferService.rows && (this._activeBuffer.y = this._bufferService.rows - 1), this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).isWrapped = !0), k = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y), K > 0 && k instanceof e.BufferLine && k.copyCellsFrom(Y, Z, 0, K, !1); Z < I; ) Y.setCellFromCodepoint(Z++, 0, 1, H);
349
+ let Q = this._activeBuffer.x - K;
350
+ for (this._activeBuffer.x = K, this._activeBuffer.y++, this._activeBuffer.y === this._activeBuffer.scrollBottom + 1 ? (this._activeBuffer.y--, this._bufferService.scroll(this._eraseAttrData(), !0)) : (this._activeBuffer.y >= this._bufferService.rows && (this._activeBuffer.y = this._bufferService.rows - 1), this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).isWrapped = !0), k = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y), K > 0 && k instanceof e.BufferLine && k.copyCellsFrom(Y, Q, 0, K, !1); Q < I; ) Y.setCellFromCodepoint(Q++, 0, 1, H);
351
351
  } else if (this._activeBuffer.x = I - 1, A === 2) continue;
352
352
  }
353
353
  if (ee && this._activeBuffer.x) {
354
354
  const Y = k.getWidth(this._activeBuffer.x - 1) ? 1 : 2;
355
355
  k.addCodepointToCell(this._activeBuffer.x - Y, S, A);
356
- for (let Z = A - K; --Z >= 0; ) k.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, H);
356
+ for (let Q = A - K; --Q >= 0; ) k.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, H);
357
357
  } else if (v && (k.insertCells(this._activeBuffer.x, A - K, this._activeBuffer.getNullCell(H)), k.getWidth(I - 1) === 2 && k.setCellFromCodepoint(I - 1, r.NULL_CELL_CODE, r.NULL_CELL_WIDTH, H)), k.setCellFromCodepoint(this._activeBuffer.x++, S, A, H), A > 0) for (; --A; ) k.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, H);
358
358
  }
359
359
  this._parser.precedingJoinState = P, this._activeBuffer.x < I && g - b > 0 && k.getWidth(this._activeBuffer.x) === 0 && !k.hasContent(this._activeBuffer.x) && k.setCellFromCodepoint(this._activeBuffer.x, 0, 1, H), this._dirtyRowTracker.markDirty(this._activeBuffer.y);
@@ -762,8 +762,8 @@ function ve() {
762
762
  }
763
763
  requestMode(o, b) {
764
764
  const g = this._coreService.decPrivateModes, { activeProtocol: S, activeEncoding: A } = this._coreMouseService, D = this._coreService, { buffers: R, cols: I } = this._bufferService, { active: $, alt: v } = R, H = this._optionsService.rawOptions, k = (ee) => ee ? 1 : 2, P = o.params[0];
765
- return J = P, Q = b ? P === 2 ? 4 : P === 4 ? k(D.modes.insertMode) : P === 12 ? 3 : P === 20 ? k(H.convertEol) : 0 : P === 1 ? k(g.applicationCursorKeys) : P === 3 ? H.windowOptions.setWinLines ? I === 80 ? 2 : I === 132 ? 1 : 0 : 0 : P === 6 ? k(g.origin) : P === 7 ? k(g.wraparound) : P === 8 ? 3 : P === 9 ? k(S === "X10") : P === 12 ? k(H.cursorBlink) : P === 25 ? k(!D.isCursorHidden) : P === 45 ? k(g.reverseWraparound) : P === 66 ? k(g.applicationKeypad) : P === 67 ? 4 : P === 1e3 ? k(S === "VT200") : P === 1002 ? k(S === "DRAG") : P === 1003 ? k(S === "ANY") : P === 1004 ? k(g.sendFocus) : P === 1005 ? 4 : P === 1006 ? k(A === "SGR") : P === 1015 ? 4 : P === 1016 ? k(A === "SGR_PIXELS") : P === 1048 ? 1 : P === 47 || P === 1047 || P === 1049 ? k($ === v) : P === 2004 ? k(g.bracketedPasteMode) : 0, D.triggerDataEvent(`${n.C0.ESC}[${b ? "" : "?"}${J};${Q}$y`), !0;
766
- var J, Q;
765
+ return J = P, Z = b ? P === 2 ? 4 : P === 4 ? k(D.modes.insertMode) : P === 12 ? 3 : P === 20 ? k(H.convertEol) : 0 : P === 1 ? k(g.applicationCursorKeys) : P === 3 ? H.windowOptions.setWinLines ? I === 80 ? 2 : I === 132 ? 1 : 0 : 0 : P === 6 ? k(g.origin) : P === 7 ? k(g.wraparound) : P === 8 ? 3 : P === 9 ? k(S === "X10") : P === 12 ? k(H.cursorBlink) : P === 25 ? k(!D.isCursorHidden) : P === 45 ? k(g.reverseWraparound) : P === 66 ? k(g.applicationKeypad) : P === 67 ? 4 : P === 1e3 ? k(S === "VT200") : P === 1002 ? k(S === "DRAG") : P === 1003 ? k(S === "ANY") : P === 1004 ? k(g.sendFocus) : P === 1005 ? 4 : P === 1006 ? k(A === "SGR") : P === 1015 ? 4 : P === 1016 ? k(A === "SGR_PIXELS") : P === 1048 ? 1 : P === 47 || P === 1047 || P === 1049 ? k($ === v) : P === 2004 ? k(g.bracketedPasteMode) : 0, D.triggerDataEvent(`${n.C0.ESC}[${b ? "" : "?"}${J};${Z}$y`), !0;
766
+ var J, Z;
767
767
  }
768
768
  _updateAttrColor(o, b, g, S, A) {
769
769
  return b === 2 ? (o |= 50331648, o &= -16777216, o |= f.AttributeData.fromColorRGB([g, S, A])) : b === 5 && (o &= -50331904, o |= 33554432 | 255 & g), o;
@@ -1021,7 +1021,7 @@ function ve() {
1021
1021
  x < this.start ? this.start = x : x > this.end && (this.end = x);
1022
1022
  }
1023
1023
  markRangeDirty(x, o) {
1024
- x > o && (G = x, x = o, o = G), x < this.start && (this.start = x), o > this.end && (this.end = o);
1024
+ x > o && (V = x, x = o, o = V), x < this.start && (this.start = x), o > this.end && (this.end = o);
1025
1025
  }
1026
1026
  markAllDirty() {
1027
1027
  this.markRangeDirty(0, this._bufferService.rows - 1);
@@ -1418,8 +1418,8 @@ function ve() {
1418
1418
  const F = this.ybase + this.y;
1419
1419
  if (F >= y && F < y + T.length) continue;
1420
1420
  const E = T[T.length - 1].getTrimmedLength(), w = (0, a.reflowSmallerGetNewLineLengths)(T, this._cols, r), L = w.length - T.length;
1421
- let G;
1422
- G = this.ybase === 0 && this.y !== this.lines.length - 1 ? Math.max(0, this.y - this.lines.maxLength + L) : Math.max(0, this.lines.length - this.lines.maxLength + L);
1421
+ let V;
1422
+ V = this.ybase === 0 && this.y !== this.lines.length - 1 ? Math.max(0, this.y - this.lines.maxLength + L) : Math.max(0, this.lines.length - this.lines.maxLength + L);
1423
1423
  const z = [];
1424
1424
  for (let g = 0; g < L; g++) {
1425
1425
  const S = this.getBlankLine(c.DEFAULT_ATTR_DATA, !0);
@@ -1439,7 +1439,7 @@ function ve() {
1439
1439
  }
1440
1440
  }
1441
1441
  for (let g = 0; g < T.length; g++) w[g] < r && T[g].setCell(w[g], f);
1442
- let b = L - G;
1442
+ let b = L - V;
1443
1443
  for (; b-- > 0; ) this.ybase === 0 ? this.y < t - 1 ? (this.y++, this.lines.pop()) : (this.ybase++, this.ydisp++) : this.ybase < Math.min(this.lines.maxLength, this.lines.length + m) - t && (this.ybase === this.ydisp && this.ydisp++, this.ybase++);
1444
1444
  this.savedY = Math.min(this.savedY + L, this.ybase + t - 1);
1445
1445
  }
@@ -1454,8 +1454,8 @@ function ve() {
1454
1454
  for (let N = w.newLines.length - 1; N >= 0; N--) this.lines.set(M--, w.newLines[N]);
1455
1455
  M++, y.push({ index: F + 1, amount: w.newLines.length }), L += w.newLines.length, w = p[++E];
1456
1456
  } else this.lines.set(M, C[F--]);
1457
- let G = 0;
1458
- for (let M = y.length - 1; M >= 0; M--) y[M].index += G, this.lines.onInsertEmitter.fire(y[M]), G += y[M].amount;
1457
+ let V = 0;
1458
+ for (let M = y.length - 1; M >= 0; M--) y[M].index += V, this.lines.onInsertEmitter.fire(y[M]), V += y[M].amount;
1459
1459
  const z = Math.max(0, T + m - this.lines.maxLength);
1460
1460
  z > 0 && this.lines.onTrimEmitter.fire(z);
1461
1461
  }
@@ -3230,7 +3230,7 @@ function ve() {
3230
3230
  var i = X[B];
3231
3231
  if (i !== void 0) return i.exports;
3232
3232
  var l = X[B] = { exports: {} };
3233
- return V[B].call(l.exports, l, l.exports, O), l.exports;
3233
+ return G[B].call(l.exports, l, l.exports, O), l.exports;
3234
3234
  }
3235
3235
  var q = {};
3236
3236
  (() => {
@@ -3395,8 +3395,8 @@ function Se() {
3395
3395
  const me = {
3396
3396
  maxCharacterLength: ce
3397
3397
  };
3398
- function Ce(W, V = me) {
3399
- const X = W.buffer.active, O = [], q = Math.max(0, V.maxCharacterLength);
3398
+ function Ce(W, G = me) {
3399
+ const X = W.buffer.active, O = [], q = Math.max(0, G.maxCharacterLength);
3400
3400
  for (let U = 0; U < X.length; U++) {
3401
3401
  const B = X.getLine(U);
3402
3402
  if (!B)
@@ -3425,11 +3425,11 @@ function Ce(W, V = me) {
3425
3425
  `)
3426
3426
  };
3427
3427
  }
3428
- function ye(W, V, X) {
3428
+ function ye(W, G, X) {
3429
3429
  const O = Se();
3430
3430
  return ge(
3431
3431
  W,
3432
- V.settings["terminal.commands.nodeSpawn.loadProfile"]
3432
+ G.settings["terminal.commands.nodeSpawn.loadProfile"]
3433
3433
  ).pipe(
3434
3434
  re(
3435
3435
  (q) => ue(X.cmd, [], {
@@ -3456,7 +3456,7 @@ function ye(W, V, X) {
3456
3456
  ))
3457
3457
  );
3458
3458
  }
3459
- const ke = ({ args: W, userInput: V }, { dir: X, config: O, toolMessages: q }) => {
3459
+ const ke = ({ args: W, userInput: G }, { dir: X, config: O, toolMessages: q }) => {
3460
3460
  _e(X);
3461
3461
  const j = he(X.fsPath, W.cwd ? we(W.cwd) : "."), U = (d) => ({
3462
3462
  status: "done",
@@ -3477,9 +3477,9 @@ const ke = ({ args: W, userInput: V }, { dir: X, config: O, toolMessages: q }) =
3477
3477
  )
3478
3478
  );
3479
3479
  if (l.requiresConfirmation) {
3480
- if (V && !V.accepted)
3480
+ if (G && !G.accepted)
3481
3481
  return te.of({ status: "rejected-by-user", toAllow: _ });
3482
- if (!V?.accepted)
3482
+ if (!G?.accepted)
3483
3483
  return te.of({ status: "blocked-on-user", toAllow: _ });
3484
3484
  }
3485
3485
  return O.settings["terminal.commands.environment"], ye(j, O, W);
@@ -3498,4 +3498,4 @@ function Ee(W) {
3498
3498
  export {
3499
3499
  ke as nodeBashTool
3500
3500
  };
3501
- //# sourceMappingURL=node-DuhaU87r.js.map
3501
+ //# sourceMappingURL=node-iqSbLvK6.js.map