@sourcegraph/amp 0.0.1749571294-gef5aa3 → 0.0.1749600114-g5c00b8

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 (61) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/architectureDiagram-RWNHDUBN-1v8WgxdD.js +4635 -0
  3. package/dist/blockDiagram-XZSR5OGQ-XFBYN-jB.js +2243 -0
  4. package/dist/c4Diagram-6R2MQUNL-B0L0pltn.js +1587 -0
  5. package/dist/chunk-COUQ6RZ3-qd4eG6tc.js +17852 -0
  6. package/dist/chunk-CRQPXCKQ-yjI467Bq.js +65 -0
  7. package/dist/chunk-EFPBJHX4-DdHmqd0M.js +1378 -0
  8. package/dist/chunk-EOAU2GW5-CpRNAcjo.js +253 -0
  9. package/dist/chunk-IHYUGLNO-DJcRQIf7.js +1365 -0
  10. package/dist/chunk-K2ZEYYM2-CbqHhUqy.js +9 -0
  11. package/dist/chunk-Q7VUVKE6-gBSSbdjU.js +24 -0
  12. package/dist/chunk-T2M37SMK-Br8mK30k.js +1411 -0
  13. package/dist/chunk-TGZYFRKZ-BYBLXoJz.js +1331 -0
  14. package/dist/chunk-YJGJQOYZ-BGiSkWF0.js +19 -0
  15. package/dist/classDiagram-LB37KKQG-DhFsEyDS.js +17 -0
  16. package/dist/classDiagram-v2-KFQJBC22-DhFsEyDS.js +17 -0
  17. package/dist/{client-C1WG2nEf.js → client-D-YAg8x6.js} +6 -6
  18. package/dist/{console-DK0gDzNQ.js → console-CoE5Qzyz.js} +41106 -22971
  19. package/dist/create_file.node-Co0Uh1F3.js +21 -0
  20. package/dist/dagre-CMTPJJKG-UDPzd9Iy.js +446 -0
  21. package/dist/diagram-BIPOGRU5-B7TV59-n.js +128 -0
  22. package/dist/diagram-YF4VECWA-LsAZsciQ.js +219 -0
  23. package/dist/{edit_file.node-BH524GkF.js → edit_file.node-CmTZeBc2.js} +11 -11
  24. package/dist/erDiagram-AK44R45H-BWpeEu7D.js +843 -0
  25. package/dist/{executable-5cBRGrsC.js → executable-BE7tfoX5.js} +1 -1
  26. package/dist/{files-CybxYgbE.js → files-DqpRf5q4.js} +10 -10
  27. package/dist/flowDiagram-XARHJDSH-DzpV02UB.js +1618 -0
  28. package/dist/ganttDiagram-H5QQZTZ5-C0BhJTzn.js +1605 -0
  29. package/dist/gitGraphDiagram-XHLTLO3W-0EiOmv44.js +701 -0
  30. package/dist/{glob.node-C6HbLuPt.js → glob.node-DNei8bFS.js} +11 -11
  31. package/dist/{index-C2wo7rRZ.js → index-BcjxaWOc.js} +31 -31
  32. package/dist/infoDiagram-TP2HPDHO-CQX5a0Fc.js +24 -0
  33. package/dist/journeyDiagram-VHRN44N3-C82dEe4G.js +809 -0
  34. package/dist/kanban-definition-K5J3OUUV-xilJcrom.js +718 -0
  35. package/dist/katex-5N2NCDMP-CAsrnb6_.js +11703 -0
  36. package/dist/{list_directory.node-ZQscizpi.js → list_directory.node-CMiNNbXP.js} +1 -1
  37. package/dist/{load-profile-BbmyxO_7.js → load-profile-Cg8XaTx6.js} +1 -1
  38. package/dist/{main-BVP_XL7v.js → main-Dy2VZM_S.js} +15 -15
  39. package/dist/mindmap-definition-TI5ONXTW-BNaRba4R.js +3221 -0
  40. package/dist/{node-DvmQAW7h.js → node-BtG1o_DD.js} +2 -2
  41. package/dist/{node-syWQvN9a.js → node-BulbxvrV.js} +58 -58
  42. package/dist/{node-Cpbjmhrj.js → node-Cp3D7_hw.js} +71 -71
  43. package/dist/{node-Cye82yIV.js → node-CtoBdTQT.js} +3 -3
  44. package/dist/{node-CiFAW-F3.js → node-Ctw1i0nl.js} +12 -12
  45. package/dist/{node-CgVq0JJ9.js → node-D1zxOCuN.js} +1 -1
  46. package/dist/pieDiagram-FPR3CNQC-_30_tQz0.js +120 -0
  47. package/dist/quadrantDiagram-RLP5YTJ2-CTD43GTk.js +1028 -0
  48. package/dist/radar-MK3ICKWK-55CS4JTO-afihMdR4.js +14398 -0
  49. package/dist/{read_file.node-CIdAFiJ6.js → read_file.node-QZ0VCmB2.js} +1 -1
  50. package/dist/requirementDiagram-P5NVWGNK-Sd2_6g8e.js +853 -0
  51. package/dist/sankeyDiagram-C6NZRJHT-D1EcCYaw.js +864 -0
  52. package/dist/sequenceDiagram-6SLVIXKN-CghQTpGf.js +2283 -0
  53. package/dist/stateDiagram-WI5ZVJ5I-Bv21MlSK.js +272 -0
  54. package/dist/stateDiagram-v2-KVDSFUFK-BgP0D8xL.js +17 -0
  55. package/dist/{stdio-DNCc59wT.js → stdio-CCCGI3C7.js} +8 -8
  56. package/dist/storybook.js +7 -7
  57. package/dist/timeline-definition-65575674-BUqRZdJ-.js +800 -0
  58. package/dist/{undo_edit.node-VYuTxRwd.js → undo_edit.node-BkletvTZ.js} +5 -5
  59. package/dist/xychartDiagram-674MFTBU-DjBabATx.js +1291 -0
  60. package/package.json +1 -1
  61. package/dist/create_file.node-DtVTaHj5.js +0 -21
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import * as le from "node:os";
3
3
  import ee, { resolve as fe } from "node:path";
4
- import { aW as de, aX as _e, C as pe, aY as ne, aZ as ge, a_ as ve, aL as oe, aT as me, aK as be, aF as Se, O as se } from "./console-DK0gDzNQ.js";
5
- import { loadProfileEnvironmentVariables as Ce } from "./load-profile-BbmyxO_7.js";
4
+ import { cx as de, cy as _e, t as pe, cz as ne, cA as ge, cB as ve, g as oe, s as me, e as be, d as Se, O as se } from "./console-CoE5Qzyz.js";
5
+ import { loadProfileEnvironmentVariables as Ce } from "./load-profile-Cg8XaTx6.js";
6
6
  const ye = [
7
7
  // Basic read/info operations
8
8
  "ls",
@@ -220,12 +220,12 @@ function ue(L, O) {
220
220
  if (ee.isAbsolute(L))
221
221
  return !O.some((R) => Be(R, L));
222
222
  const I = L.split("/");
223
- let k = 0;
223
+ let T = 0;
224
224
  for (const R of I)
225
225
  if (R === "..") {
226
- if (k--, k < 0)
226
+ if (T--, T < 0)
227
227
  return !0;
228
- } else R !== "" && R !== "." && k++;
228
+ } else R !== "" && R !== "." && T++;
229
229
  return !1;
230
230
  }
231
231
  function Be(L, O) {
@@ -235,8 +235,8 @@ function Be(L, O) {
235
235
  function re(L, O, I) {
236
236
  if (typeof L == "string")
237
237
  return !1;
238
- for (const k of L.arguments)
239
- if (typeof k == "string" && !(k.startsWith("-") || k.includes("*") || k.startsWith('"') || k.startsWith("'")) && !(I && !I.absolutePaths && k.startsWith("//")) && k.includes("/") && ue(k, O))
238
+ for (const T of L.arguments)
239
+ if (typeof T == "string" && !(T.startsWith("-") || T.includes("*") || T.startsWith('"') || T.startsWith("'")) && !(I && !I.absolutePaths && T.startsWith("//")) && T.includes("/") && ue(T, O))
240
240
  return !0;
241
241
  return !1;
242
242
  }
@@ -247,8 +247,8 @@ function Ee(L, O = !1) {
247
247
  };
248
248
  if (O || typeof L == "string")
249
249
  return I;
250
- const k = typeof L.program == "string" ? L.program.toLowerCase() : "", R = L.arguments.filter((N) => typeof N == "string").join(" "), q = `${k} ${R}`.toLowerCase();
251
- return k.includes("bazel") || q.includes("bazel") || k === "ibazel" ? {
250
+ const T = typeof L.program == "string" ? L.program.toLowerCase() : "", R = L.arguments.filter((N) => typeof N == "string").join(" "), q = `${T} ${R}`.toLowerCase();
251
+ return T.includes("bazel") || q.includes("bazel") || T === "ibazel" ? {
252
252
  ...I,
253
253
  absolutePaths: !1
254
254
  // Allow bazel-style absolute paths like //path/to/target
@@ -260,34 +260,34 @@ function Ae(L) {
260
260
  return !0;
261
261
  return !1;
262
262
  }
263
- function Te(L) {
263
+ function ke(L) {
264
264
  const O = /* @__PURE__ */ new Set(), I = L.map(
265
- (k) => k.endsWith(" *") ? k.slice(0, -2) : k
265
+ (T) => T.endsWith(" *") ? T.slice(0, -2) : T
266
266
  );
267
- for (const k of I)
267
+ for (const T of I)
268
268
  for (const R of ae)
269
- if (!O.has(R) && k !== R && k.startsWith(R + " ")) {
269
+ if (!O.has(R) && T !== R && T.startsWith(R + " ")) {
270
270
  O.add(R);
271
271
  for (const q of ae)
272
272
  q.startsWith(R + " ") && O.add(q);
273
273
  }
274
274
  return O;
275
275
  }
276
- function ke(L, O, I) {
277
- let k = [];
276
+ function Te(L, O, I) {
277
+ let T = [];
278
278
  try {
279
279
  const t = de(L, I?.platform);
280
- k = _e(t);
280
+ T = _e(t);
281
281
  } catch (t) {
282
- pe.warn("Failed to parse command", { cmd: L }, t), k = [L];
282
+ pe.warn("Failed to parse command", { cmd: L }, t), T = [L];
283
283
  }
284
284
  const R = I?.config?.["commands.allowlist"] || [], q = I?.config?.["commands.strict"] ?? !1;
285
285
  if (R.includes("*"))
286
286
  return {
287
287
  requiresConfirmation: !1,
288
- parts: k.map((t) => ({ command: t, requiresConfirmation: !1 }))
288
+ parts: T.map((t) => ({ command: t, requiresConfirmation: !1 }))
289
289
  };
290
- const N = k.map((t) => {
290
+ const N = T.map((t) => {
291
291
  if (typeof t == "string")
292
292
  return { command: t, requiresConfirmation: !0 };
293
293
  const l = Ee(t, q), d = t.arguments.some((a) => typeof a != "string");
@@ -306,7 +306,7 @@ function ke(L, O, I) {
306
306
  if (q)
307
307
  c = R;
308
308
  else {
309
- const a = Te(R);
309
+ const a = ke(R);
310
310
  c = [...ae.filter(
311
311
  (u) => !a.has(u)
312
312
  ), ...R];
@@ -413,7 +413,7 @@ function Le() {
413
413
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CoreTerminal = void 0;
414
414
  const d = l(844), _ = l(585), n = l(348), c = l(866), a = l(744), h = l(302), u = l(83), e = l(460), r = l(753), i = l(480), s = l(994), f = l(282), p = l(435), S = l(981), y = l(660);
415
415
  let C = !1;
416
- class T extends d.Disposable {
416
+ class k extends d.Disposable {
417
417
  get onScroll() {
418
418
  return this._onScrollApi || (this._onScrollApi = this.register(new e.EventEmitter()), this._onScroll.event((E) => {
419
419
  this._onScrollApi?.fire(E.position);
@@ -504,7 +504,7 @@ function Le() {
504
504
  }
505
505
  }
506
506
  }
507
- t.CoreTerminal = T;
507
+ t.CoreTerminal = k;
508
508
  }, 460: (w, t) => {
509
509
  Object.defineProperty(t, "__esModule", { value: !0 }), t.runAndSubscribe = t.forwardEvent = t.EventEmitter = void 0, t.EventEmitter = class {
510
510
  constructor() {
@@ -545,7 +545,7 @@ function Le() {
545
545
  };
546
546
  };
547
547
  Object.defineProperty(t, "__esModule", { value: !0 }), t.InputHandler = t.WindowsOptionsReportType = void 0;
548
- const n = l(584), c = l(116), a = l(15), h = l(844), u = l(482), e = l(437), r = l(460), i = l(643), s = l(511), f = l(734), p = l(585), S = l(480), y = l(242), C = l(351), T = l(941), $ = { "(": 0, ")": 1, "*": 2, "+": 3, "-": 1, ".": 2 }, E = 131072;
548
+ const n = l(584), c = l(116), a = l(15), h = l(844), u = l(482), e = l(437), r = l(460), i = l(643), s = l(511), f = l(734), p = l(585), S = l(480), y = l(242), C = l(351), k = l(941), $ = { "(": 0, ")": 1, "*": 2, "+": 3, "-": 1, ".": 2 }, E = 131072;
549
549
  function B(H, o) {
550
550
  if (H > 24) return o.setWinLines || !1;
551
551
  switch (H) {
@@ -1217,7 +1217,7 @@ function Le() {
1217
1217
  const P = parseInt(b);
1218
1218
  if (X(P)) if (A === "?") m.push({ type: 0, index: P });
1219
1219
  else {
1220
- const W = (0, T.parseColor)(A);
1220
+ const W = (0, k.parseColor)(A);
1221
1221
  W && m.push({ type: 1, index: P, color: W });
1222
1222
  }
1223
1223
  }
@@ -1242,7 +1242,7 @@ function Le() {
1242
1242
  const g = o.split(";");
1243
1243
  for (let b = 0; b < g.length && !(m >= this._specialColors.length); ++b, ++m) if (g[b] === "?") this._onColor.fire([{ type: 0, index: this._specialColors[m] }]);
1244
1244
  else {
1245
- const A = (0, T.parseColor)(g[b]);
1245
+ const A = (0, k.parseColor)(g[b]);
1246
1246
  A && this._onColor.fire([{ type: 1, index: this._specialColors[m], color: A }]);
1247
1247
  }
1248
1248
  return !0;
@@ -1735,11 +1735,11 @@ function Le() {
1735
1735
  for (let y = this.lines.length - 1; y >= 0; y--) {
1736
1736
  let C = this.lines.get(y);
1737
1737
  if (!C || !C.isWrapped && C.getTrimmedLength() <= i) continue;
1738
- const T = [C];
1739
- for (; C.isWrapped && y > 0; ) C = this.lines.get(--y), T.unshift(C);
1738
+ const k = [C];
1739
+ for (; C.isWrapped && y > 0; ) C = this.lines.get(--y), k.unshift(C);
1740
1740
  const $ = this.ybase + this.y;
1741
- if ($ >= y && $ < y + T.length) continue;
1742
- const E = T[T.length - 1].getTrimmedLength(), B = (0, a.reflowSmallerGetNewLineLengths)(T, this._cols, i), D = B.length - T.length;
1741
+ if ($ >= y && $ < y + k.length) continue;
1742
+ const E = k[k.length - 1].getTrimmedLength(), B = (0, a.reflowSmallerGetNewLineLengths)(k, this._cols, i), D = B.length - k.length;
1743
1743
  let G;
1744
1744
  G = this.ybase === 0 && this.y !== this.lines.length - 1 ? Math.max(0, this.y - this.lines.maxLength + D) : Math.max(0, this.lines.length - this.lines.maxLength + D);
1745
1745
  const V = [];
@@ -1747,20 +1747,20 @@ function Le() {
1747
1747
  const b = this.getBlankLine(c.DEFAULT_ATTR_DATA, !0);
1748
1748
  V.push(b);
1749
1749
  }
1750
- V.length > 0 && (p.push({ start: y + T.length + S, newLines: V }), S += V.length), T.push(...V);
1750
+ V.length > 0 && (p.push({ start: y + k.length + S, newLines: V }), S += V.length), k.push(...V);
1751
1751
  let U = B.length - 1, X = B[U];
1752
1752
  X === 0 && (U--, X = B[U]);
1753
- let H = T.length - D - 1, o = E;
1753
+ let H = k.length - D - 1, o = E;
1754
1754
  for (; H >= 0; ) {
1755
1755
  const g = Math.min(o, X);
1756
- if (T[U] === void 0) break;
1757
- if (T[U].copyCellsFrom(T[H], o - g, X - g, g, !0), X -= g, X === 0 && (U--, X = B[U]), o -= g, o === 0) {
1756
+ if (k[U] === void 0) break;
1757
+ if (k[U].copyCellsFrom(k[H], o - g, X - g, g, !0), X -= g, X === 0 && (U--, X = B[U]), o -= g, o === 0) {
1758
1758
  H--;
1759
1759
  const b = Math.max(H, 0);
1760
- o = (0, a.getWrappedLineTrimmedLength)(T, b, this._cols);
1760
+ o = (0, a.getWrappedLineTrimmedLength)(k, b, this._cols);
1761
1761
  }
1762
1762
  }
1763
- for (let g = 0; g < T.length; g++) B[g] < i && T[g].setCell(B[g], f);
1763
+ for (let g = 0; g < k.length; g++) B[g] < i && k[g].setCell(B[g], f);
1764
1764
  let m = D - G;
1765
1765
  for (; m-- > 0; ) this.ybase === 0 ? this.y < s - 1 ? (this.y++, this.lines.pop()) : (this.ybase++, this.ydisp++) : this.ybase < Math.min(this.lines.maxLength, this.lines.length + S) - s && (this.ybase === this.ydisp && this.ydisp++, this.ybase++);
1766
1766
  this.savedY = Math.min(this.savedY + D, this.ybase + s - 1);
@@ -1768,17 +1768,17 @@ function Le() {
1768
1768
  if (p.length > 0) {
1769
1769
  const y = [], C = [];
1770
1770
  for (let U = 0; U < this.lines.length; U++) C.push(this.lines.get(U));
1771
- const T = this.lines.length;
1772
- let $ = T - 1, E = 0, B = p[E];
1771
+ const k = this.lines.length;
1772
+ let $ = k - 1, E = 0, B = p[E];
1773
1773
  this.lines.length = Math.min(this.lines.maxLength, this.lines.length + S);
1774
1774
  let D = 0;
1775
- for (let U = Math.min(this.lines.maxLength - 1, T + S - 1); U >= 0; U--) if (B && B.start > $ + D) {
1775
+ for (let U = Math.min(this.lines.maxLength - 1, k + S - 1); U >= 0; U--) if (B && B.start > $ + D) {
1776
1776
  for (let X = B.newLines.length - 1; X >= 0; X--) this.lines.set(U--, B.newLines[X]);
1777
1777
  U++, y.push({ index: $ + 1, amount: B.newLines.length }), D += B.newLines.length, B = p[++E];
1778
1778
  } else this.lines.set(U, C[$--]);
1779
1779
  let G = 0;
1780
1780
  for (let U = y.length - 1; U >= 0; U--) y[U].index += G, this.lines.onInsertEmitter.fire(y[U]), G += y[U].amount;
1781
- const V = Math.max(0, T + S - this.lines.maxLength);
1781
+ const V = Math.max(0, k + S - this.lines.maxLength);
1782
1782
  V > 0 && this.lines.onTrimEmitter.fire(V);
1783
1783
  }
1784
1784
  }
@@ -2016,7 +2016,7 @@ function Le() {
2016
2016
  }
2017
2017
  let s = 0, f = l(i, s, _), p = 1, S = 0;
2018
2018
  for (; p < i.length; ) {
2019
- const C = l(i, p, _), T = C - S, $ = n - f, E = Math.min(T, $);
2019
+ const C = l(i, p, _), k = C - S, $ = n - f, E = Math.min(k, $);
2020
2020
  i[s].copyCellsFrom(i[p], S, f, E, !1), f += E, f === n && (s++, f = 0), S += E, S === C && (p++, S = 0), f === 0 && s !== 0 && i[s - 1].getWidth(n - 1) === 2 && (i[s].copyCellsFrom(i[s - 1], n - 1, f++, 1, !1), i[s - 1].setCell(n - 1, a));
2021
2021
  }
2022
2022
  i[s].replaceCells(f, n, a);
@@ -2213,8 +2213,8 @@ function Le() {
2213
2213
  p &= (224 & p) == 192 ? 31 : (240 & p) == 224 ? 15 : 7;
2214
2214
  let S, y = 0;
2215
2215
  for (; (S = 63 & this.interim[++y]) && y < 4; ) p <<= 6, p |= S;
2216
- const C = (224 & this.interim[0]) == 192 ? 2 : (240 & this.interim[0]) == 224 ? 3 : 4, T = C - y;
2217
- for (; r < T; ) {
2216
+ const C = (224 & this.interim[0]) == 192 ? 2 : (240 & this.interim[0]) == 224 ? 3 : 4, k = C - y;
2217
+ for (; r < k; ) {
2218
2218
  if (r >= _) return 0;
2219
2219
  if (S = l[r++], (192 & S) != 128) {
2220
2220
  r--, f = !0;
@@ -2604,17 +2604,17 @@ function Le() {
2604
2604
  else {
2605
2605
  if (s === void 0 || this._parseStack.state === 1) throw this._parseStack.state = 1, new Error("improper continuation due to previous async handler, giving up parsing");
2606
2606
  const C = this._parseStack.handlers;
2607
- let T = this._parseStack.handlerPos - 1;
2607
+ let k = this._parseStack.handlerPos - 1;
2608
2608
  switch (this._parseStack.state) {
2609
2609
  case 3:
2610
- if (s === !1 && T > -1) {
2611
- for (; T >= 0 && (f = C[T](this._params), f !== !0); T--) if (f instanceof Promise) return this._parseStack.handlerPos = T, f;
2610
+ if (s === !1 && k > -1) {
2611
+ for (; k >= 0 && (f = C[k](this._params), f !== !0); k--) if (f instanceof Promise) return this._parseStack.handlerPos = k, f;
2612
2612
  }
2613
2613
  this._parseStack.handlers = [];
2614
2614
  break;
2615
2615
  case 4:
2616
- if (s === !1 && T > -1) {
2617
- for (; T >= 0 && (f = C[T](), f !== !0); T--) if (f instanceof Promise) return this._parseStack.handlerPos = T, f;
2616
+ if (s === !1 && k > -1) {
2617
+ for (; k >= 0 && (f = C[k](), f !== !0); k--) if (f instanceof Promise) return this._parseStack.handlerPos = k, f;
2618
2618
  }
2619
2619
  this._parseStack.handlers = [];
2620
2620
  break;
@@ -2659,9 +2659,9 @@ function Le() {
2659
2659
  if (this._errorHandler({ position: C, code: p, currentState: this.currentState, collect: this._collect, params: this._params, abort: !1 }).abort) return;
2660
2660
  break;
2661
2661
  case 7:
2662
- const T = this._csiHandlers[this._collect << 8 | p];
2663
- let $ = T ? T.length - 1 : -1;
2664
- for (; $ >= 0 && (f = T[$](this._params), f !== !0); $--) if (f instanceof Promise) return this._preserveStack(3, T, $, S, C), f;
2662
+ const k = this._csiHandlers[this._collect << 8 | p];
2663
+ let $ = k ? k.length - 1 : -1;
2664
+ for (; $ >= 0 && (f = k[$](this._params), f !== !0); $--) if (f instanceof Promise) return this._preserveStack(3, k, $, S, C), f;
2665
2665
  $ < 0 && this._csiHandlerFb(this._collect << 8 | p, this._params), this.precedingJoinState = 0;
2666
2666
  break;
2667
2667
  case 8:
@@ -3091,10 +3091,10 @@ function Le() {
3091
3091
  };
3092
3092
  }, 753: function(w, t, l) {
3093
3093
  var d = this && this.__decorate || function(s, f, p, S) {
3094
- var y, C = arguments.length, T = C < 3 ? f : S === null ? S = Object.getOwnPropertyDescriptor(f, p) : S;
3095
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") T = Reflect.decorate(s, f, p, S);
3096
- else for (var $ = s.length - 1; $ >= 0; $--) (y = s[$]) && (T = (C < 3 ? y(T) : C > 3 ? y(f, p, T) : y(f, p)) || T);
3097
- return C > 3 && T && Object.defineProperty(f, p, T), T;
3094
+ var y, C = arguments.length, k = C < 3 ? f : S === null ? S = Object.getOwnPropertyDescriptor(f, p) : S;
3095
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") k = Reflect.decorate(s, f, p, S);
3096
+ else for (var $ = s.length - 1; $ >= 0; $--) (y = s[$]) && (k = (C < 3 ? y(k) : C > 3 ? y(f, p, k) : y(f, p)) || k);
3097
+ return C > 3 && k && Object.defineProperty(f, p, k), k;
3098
3098
  }, _ = this && this.__param || function(s, f) {
3099
3099
  return function(p, S) {
3100
3100
  f(p, S, s);
@@ -3169,7 +3169,7 @@ function Le() {
3169
3169
  var d = this && this.__decorate || function(i, s, f, p) {
3170
3170
  var S, y = arguments.length, C = y < 3 ? s : p === null ? p = Object.getOwnPropertyDescriptor(s, f) : p;
3171
3171
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") C = Reflect.decorate(i, s, f, p);
3172
- else for (var T = i.length - 1; T >= 0; T--) (S = i[T]) && (C = (y < 3 ? S(C) : y > 3 ? S(s, f, C) : S(s, f)) || C);
3172
+ else for (var k = i.length - 1; k >= 0; k--) (S = i[k]) && (C = (y < 3 ? S(C) : y > 3 ? S(s, f, C) : S(s, f)) || C);
3173
3173
  return y > 3 && C && Object.defineProperty(s, f, C), C;
3174
3174
  }, _ = this && this.__param || function(i, s) {
3175
3175
  return function(f, p) {
@@ -3548,17 +3548,17 @@ function Le() {
3548
3548
  }
3549
3549
  t.Terminal = c;
3550
3550
  } }, I = {};
3551
- function k(w) {
3551
+ function T(w) {
3552
3552
  var t = I[w];
3553
3553
  if (t !== void 0) return t.exports;
3554
3554
  var l = I[w] = { exports: {} };
3555
- return O[w].call(l.exports, l, l.exports, k), l.exports;
3555
+ return O[w].call(l.exports, l, l.exports, T), l.exports;
3556
3556
  }
3557
3557
  var R = {};
3558
3558
  (() => {
3559
3559
  var w = R;
3560
3560
  Object.defineProperty(w, "__esModule", { value: !0 }), w.Terminal = void 0;
3561
- const t = k(285), l = k(975), d = k(90), _ = k(781), n = k(741), c = k(844), a = ["cols", "rows"];
3561
+ const t = T(285), l = T(975), d = T(90), _ = T(781), n = T(741), c = T(844), a = ["cols", "rows"];
3562
3562
  class h extends c.Disposable {
3563
3563
  constructor(e) {
3564
3564
  super(), this._core = this.register(new _.Terminal(e)), this._addonManager = this.register(new n.AddonManager()), this._publicOptions = { ...this._core.options };
@@ -3718,37 +3718,37 @@ const Pe = {
3718
3718
  maxCharacterLength: ge
3719
3719
  };
3720
3720
  function He(L, O = Pe) {
3721
- const I = L.buffer.active, k = [], R = Math.max(0, O.maxCharacterLength);
3721
+ const I = L.buffer.active, T = [], R = Math.max(0, O.maxCharacterLength);
3722
3722
  for (let N = 0; N < I.length; N++) {
3723
3723
  const w = I.getLine(N);
3724
3724
  if (!w)
3725
3725
  continue;
3726
3726
  const t = w.translateToString(!1).trimEnd();
3727
- t.trim().length === 0 && k.at(-1)?.trim().length === 0 || k.push(t);
3727
+ t.trim().length === 0 && T.at(-1)?.trim().length === 0 || T.push(t);
3728
3728
  }
3729
3729
  let q = 0;
3730
- for (let N = k.length - 1; N > 0; N--) {
3731
- const w = k[N];
3730
+ for (let N = T.length - 1; N > 0; N--) {
3731
+ const w = T[N];
3732
3732
  if (q += w.length, q > R) {
3733
- const l = N, d = `Truncated ${l} ${ve(l, "line")} above this point`, _ = k.length - N - 1, n = _ === 1 ? "Below is the last line of the output" : `Below are the last ${_} lines of the output`;
3733
+ const l = N, d = `Truncated ${l} ${ve(l, "line")} above this point`, _ = T.length - N - 1, n = _ === 1 ? "Below is the last line of the output" : `Below are the last ${_} lines of the output`;
3734
3734
  return {
3735
3735
  output: [
3736
3736
  `--- ${d}. ${n}. ---`,
3737
- ...k.slice(N)
3737
+ ...T.slice(N)
3738
3738
  ].join(`
3739
3739
  `),
3740
- hidden_truncatedOutput: k.slice(0, N).join(`
3740
+ hidden_truncatedOutput: T.slice(0, N).join(`
3741
3741
  `)
3742
3742
  };
3743
3743
  }
3744
3744
  }
3745
3745
  return {
3746
- output: k.join(`
3746
+ output: T.join(`
3747
3747
  `)
3748
3748
  };
3749
3749
  }
3750
3750
  function Re(L, O, I) {
3751
- const k = xe();
3751
+ const T = xe();
3752
3752
  return Ce(
3753
3753
  L,
3754
3754
  O.settings["terminal.commands.nodeSpawn.loadProfile"]
@@ -3764,8 +3764,8 @@ function Re(L, O, I) {
3764
3764
  oe(({ lastData: R, exitCode: q, exited: N }) => be(
3765
3765
  new Promise((w) => {
3766
3766
  const t = R?.subarray() ?? new Uint8Array();
3767
- k.write(t, () => {
3768
- const { output: l } = He(k);
3767
+ T.write(t, () => {
3768
+ const { output: l } = He(T);
3769
3769
  w(N ? {
3770
3770
  status: "done",
3771
3771
  result: { output: l, exitCode: q ?? -1 }
@@ -3778,7 +3778,7 @@ function Re(L, O, I) {
3778
3778
  ))
3779
3779
  );
3780
3780
  }
3781
- const Ne = ({ args: L, userInput: O }, { dir: I, dirs: k, config: R, toolMessages: q }) => {
3781
+ const Ne = ({ args: L, userInput: O }, { dir: I, dirs: T, config: R, toolMessages: q }) => {
3782
3782
  Se(I);
3783
3783
  const N = fe(I.fsPath, L.cwd ? Me(L.cwd) : "."), w = (c) => ({
3784
3784
  status: "done",
@@ -3792,7 +3792,7 @@ const Ne = ({ args: L, userInput: O }, { dir: I, dirs: k, config: R, toolMessage
3792
3792
  const l = Ie(N);
3793
3793
  if (l)
3794
3794
  return se.of(w(l));
3795
- const d = [N, ...k.map((c) => c.fsPath)], _ = ke(L.cmd, d, {
3795
+ const d = [N, ...T.map((c) => c.fsPath)], _ = Te(L.cmd, d, {
3796
3796
  config: R.settings
3797
3797
  }), n = _.parts.flatMap(
3798
3798
  (c) => (
@@ -4,9 +4,9 @@ import * as i from "node:fs";
4
4
  import * as o from "node:path";
5
5
  import { join as p } from "node:path";
6
6
  import { promisify as w } from "node:util";
7
- import { U as h } from "./main-BVP_XL7v.js";
8
- import { N as y, C as n, aM as c } from "./console-DK0gDzNQ.js";
9
- import { ripgrepFiles as d } from "./glob.node-C6HbLuPt.js";
7
+ import { U as h } from "./main-Dy2VZM_S.js";
8
+ import { c8 as y, t as n, F as c } from "./console-CoE5Qzyz.js";
9
+ import { ripgrepFiles as d } from "./glob.node-DNei8bFS.js";
10
10
  import { homedir as F } from "node:os";
11
11
  const g = p(F(), ".amp", "file-changes"), u = w(m);
12
12
  function B(a) {
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { p as f } from "./index-C2wo7rRZ.js";
3
- import { aF as m, g, m as c, aQ as h, aR as d, aS as b, aT as S, c as E, O as _ } from "./console-DK0gDzNQ.js";
4
- import { r as v } from "./executable-5cBRGrsC.js";
5
- const L = ({ args: a }, { dirs: s }) => {
2
+ import { p as f } from "./index-BcjxaWOc.js";
3
+ import { d as m, j as g, h as c, k as h, l as d, o as b, s as E, q as S, O as _ } from "./console-CoE5Qzyz.js";
4
+ import { r as v } from "./executable-BE7tfoX5.js";
5
+ const R = ({ args: i }, { dirs: s }) => {
6
6
  for (const e of s)
7
7
  m(e);
8
- return g(...s.map((e) => P(e.fsPath, a))).pipe(
8
+ return g(...s.map((e) => P(e.fsPath, i))).pipe(
9
9
  c((e) => {
10
10
  const t = [];
11
11
  for (const r of e)
@@ -26,7 +26,7 @@ const L = ({ args: a }, { dirs: s }) => {
26
26
  })
27
27
  );
28
28
  };
29
- function P(a, s) {
29
+ function P(i, s) {
30
30
  const e = [
31
31
  "--with-filename",
32
32
  "--line-number",
@@ -40,11 +40,11 @@ function P(a, s) {
40
40
  ];
41
41
  s.caseSensitive || e.push("-i"), e.push("--regexp", s.pattern), s.path && (b(s.path), e.push(s.path));
42
42
  const t = s?.glob ? f(s.glob, { nocase: !s.caseSensitive, dot: !0 }) : void 0;
43
- return S(v(), e, {
44
- cwd: a,
43
+ return E(v(), e, {
44
+ cwd: i,
45
45
  stdio: ["ignore", "pipe", "pipe"]
46
46
  }).pipe(
47
- c(({ stdout: o, stderr: l, exitCode: r, exited: i }) => {
47
+ c(({ stdout: o, stderr: l, exitCode: r, exited: a }) => {
48
48
  const n = o.trim().split(`
49
49
  `).filter((p) => {
50
50
  if (p.length === 0)
@@ -56,7 +56,7 @@ function P(a, s) {
56
56
  }
57
57
  return !0;
58
58
  });
59
- return i ? i && r && r >= 2 ? {
59
+ return a ? a && r && r >= 2 ? {
60
60
  status: "error",
61
61
  progress: n,
62
62
  error: { message: `ripgrep exited with code ${r}` }
@@ -69,7 +69,7 @@ function P(a, s) {
69
69
  progress: n
70
70
  };
71
71
  }),
72
- E(
72
+ S(
73
73
  (o) => _.of({
74
74
  status: "error",
75
75
  progress: [],
@@ -79,6 +79,6 @@ function P(a, s) {
79
79
  );
80
80
  }
81
81
  export {
82
- L as nodeGrepTool,
82
+ R as nodeGrepTool,
83
83
  P as ripgrepFiles
84
84
  };
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { ae as Pe, ad as st, p as lt } from "./console-DK0gDzNQ.js";
2
+ import { cD as Pe, cE as st, b as lt } from "./console-CoE5Qzyz.js";
3
3
  var pe = {}, Pu = {}, be = {}, Me;
4
4
  function ne() {
5
5
  return Me || (Me = 1, function(u) {
@@ -0,0 +1,120 @@
1
+ #!/usr/bin/env node
2
+ import { p as N } from "./chunk-K2ZEYYM2-CbqHhUqy.js";
3
+ import { p as B } from "./radar-MK3ICKWK-55CS4JTO-afihMdR4.js";
4
+ import { _ as i, v as U, u as Z, w as V, x as j, U as q, T as H, A as C, y as J, a4 as K, av as Q, ax as X, ay as z, az as Y, C as ee, Z as te, aA as ae, a6 as re } from "./console-CoE5Qzyz.js";
5
+ import "./chunk-TGZYFRKZ-BYBLXoJz.js";
6
+ var ie = re.pie, w = {
7
+ sections: /* @__PURE__ */ new Map(),
8
+ showData: !1
9
+ }, h = w.sections, D = w.showData, se = structuredClone(ie), ne = /* @__PURE__ */ i(() => structuredClone(se), "getConfig"), oe = /* @__PURE__ */ i(() => {
10
+ h = /* @__PURE__ */ new Map(), D = w.showData, te();
11
+ }, "clear"), le = /* @__PURE__ */ i(({ label: e, value: t }) => {
12
+ h.has(e) || (h.set(e, t), C.debug(`added new section: ${e}, with value: ${t}`));
13
+ }, "addSection"), ce = /* @__PURE__ */ i(() => h, "getSections"), de = /* @__PURE__ */ i((e) => {
14
+ D = e;
15
+ }, "setShowData"), pe = /* @__PURE__ */ i(() => D, "getShowData"), F = {
16
+ getConfig: ne,
17
+ clear: oe,
18
+ setDiagramTitle: H,
19
+ getDiagramTitle: q,
20
+ setAccTitle: j,
21
+ getAccTitle: V,
22
+ setAccDescription: Z,
23
+ getAccDescription: U,
24
+ addSection: le,
25
+ getSections: ce,
26
+ setShowData: de,
27
+ getShowData: pe
28
+ }, ge = /* @__PURE__ */ i((e, t) => {
29
+ N(e, t), t.setShowData(e.showData), e.sections.map(t.addSection);
30
+ }, "populateDb"), ue = {
31
+ parse: /* @__PURE__ */ i(async (e) => {
32
+ const t = await B("pie", e);
33
+ C.debug(t), ge(t, F);
34
+ }, "parse")
35
+ }, fe = /* @__PURE__ */ i((e) => `
36
+ .pieCircle{
37
+ stroke: ${e.pieStrokeColor};
38
+ stroke-width : ${e.pieStrokeWidth};
39
+ opacity : ${e.pieOpacity};
40
+ }
41
+ .pieOuterCircle{
42
+ stroke: ${e.pieOuterStrokeColor};
43
+ stroke-width: ${e.pieOuterStrokeWidth};
44
+ fill: none;
45
+ }
46
+ .pieTitleText {
47
+ text-anchor: middle;
48
+ font-size: ${e.pieTitleTextSize};
49
+ fill: ${e.pieTitleTextColor};
50
+ font-family: ${e.fontFamily};
51
+ }
52
+ .slice {
53
+ font-family: ${e.fontFamily};
54
+ fill: ${e.pieSectionTextColor};
55
+ font-size:${e.pieSectionTextSize};
56
+ // fill: white;
57
+ }
58
+ .legend text {
59
+ fill: ${e.pieLegendTextColor};
60
+ font-family: ${e.fontFamily};
61
+ font-size: ${e.pieLegendTextSize};
62
+ }
63
+ `, "getStyles"), he = fe, me = /* @__PURE__ */ i((e) => {
64
+ const t = [...e.entries()].map((s) => ({
65
+ label: s[0],
66
+ value: s[1]
67
+ })).sort((s, o) => o.value - s.value);
68
+ return ae().value(
69
+ (s) => s.value
70
+ )(t);
71
+ }, "createPieArcs"), ve = /* @__PURE__ */ i((e, t, G, s) => {
72
+ C.debug(`rendering pie chart
73
+ ` + e);
74
+ const o = s.db, y = J(), T = K(o.getConfig(), y.pie), $ = 40, n = 18, p = 4, c = 450, m = c, v = Q(t), l = v.append("g");
75
+ l.attr("transform", "translate(" + m / 2 + "," + c / 2 + ")");
76
+ const { themeVariables: a } = y;
77
+ let [A] = X(a.pieOuterStrokeWidth);
78
+ A ??= 2;
79
+ const _ = T.textPosition, g = Math.min(m, c) / 2 - $, W = z().innerRadius(0).outerRadius(g), M = z().innerRadius(g * _).outerRadius(g * _);
80
+ l.append("circle").attr("cx", 0).attr("cy", 0).attr("r", g + A / 2).attr("class", "pieOuterCircle");
81
+ const b = o.getSections(), S = me(b), O = [
82
+ a.pie1,
83
+ a.pie2,
84
+ a.pie3,
85
+ a.pie4,
86
+ a.pie5,
87
+ a.pie6,
88
+ a.pie7,
89
+ a.pie8,
90
+ a.pie9,
91
+ a.pie10,
92
+ a.pie11,
93
+ a.pie12
94
+ ], d = Y(O);
95
+ l.selectAll("mySlices").data(S).enter().append("path").attr("d", W).attr("fill", (r) => d(r.data.label)).attr("class", "pieCircle");
96
+ let E = 0;
97
+ b.forEach((r) => {
98
+ E += r;
99
+ }), l.selectAll("mySlices").data(S).enter().append("text").text((r) => (r.data.value / E * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + M.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), l.append("text").text(o.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
100
+ const x = l.selectAll(".legend").data(d.domain()).enter().append("g").attr("class", "legend").attr("transform", (r, u) => {
101
+ const f = n + p, R = f * d.domain().length / 2, I = 12 * n, L = u * f - R;
102
+ return "translate(" + I + "," + L + ")";
103
+ });
104
+ x.append("rect").attr("width", n).attr("height", n).style("fill", d).style("stroke", d), x.data(S).append("text").attr("x", n + p).attr("y", n - p).text((r) => {
105
+ const { label: u, value: f } = r.data;
106
+ return o.getShowData() ? `${u} [${f}]` : u;
107
+ });
108
+ const P = Math.max(
109
+ ...x.selectAll("text").nodes().map((r) => r?.getBoundingClientRect().width ?? 0)
110
+ ), k = m + $ + n + p + P;
111
+ v.attr("viewBox", `0 0 ${k} ${c}`), ee(v, c, k, T.useMaxWidth);
112
+ }, "draw"), Se = { draw: ve }, ye = {
113
+ parser: ue,
114
+ db: F,
115
+ renderer: Se,
116
+ styles: he
117
+ };
118
+ export {
119
+ ye as diagram
120
+ };