@sourcegraph/amp 0.0.1749585689-g82b91d → 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-CiUaVPC2.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-VrazB_nQ.js → node-BulbxvrV.js} +58 -58
  42. package/dist/{node-Cpbjmhrj.js → node-Cp3D7_hw.js} +71 -71
  43. package/dist/{node-GgocwWwI.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-D9HyubOc.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 { spawn as w } from "node:child_process";
3
- import { p as I } from "./index-C2wo7rRZ.js";
4
- import { O as v, g as N, m as E, C as P, aF as R } from "./console-DK0gDzNQ.js";
5
- import { r as D } from "./executable-5cBRGrsC.js";
3
+ import { p as I } from "./index-BcjxaWOc.js";
4
+ import { O as v, j as N, h as E, t as P, d as R } from "./console-CoE5Qzyz.js";
5
+ import { r as D } from "./executable-BE7tfoX5.js";
6
6
  const y = ({ args: i }, { dirs: r }) => {
7
7
  if (r.length === 0)
8
8
  return new v((s) => {
@@ -12,11 +12,11 @@ const y = ({ args: i }, { dirs: r }) => {
12
12
  }), s.complete();
13
13
  });
14
14
  const n = {};
15
- return i.limit !== void 0 && (n.limit = i.limit), i.offset !== void 0 && (n.offset = i.offset), F(r, i.filePattern, n);
15
+ return i.limit !== void 0 && (n.limit = i.limit), i.offset !== void 0 && (n.offset = i.offset), O(r, i.filePattern, n);
16
16
  };
17
- function F(i, r, n) {
17
+ function O(i, r, n) {
18
18
  return N(
19
- ...i.map((s) => O(s, r, n))
19
+ ...i.map((s) => b(s, r, n))
20
20
  ).pipe(
21
21
  E((s) => {
22
22
  const t = [];
@@ -38,12 +38,12 @@ function F(i, r, n) {
38
38
  })
39
39
  );
40
40
  }
41
- function O(i, r, n) {
41
+ function b(i, r, n) {
42
42
  return R(i), new v((s) => {
43
43
  s.next({
44
44
  status: "in-progress",
45
45
  progress: []
46
- }), b(i.fsPath, r ? { pattern: r, caseInsensitive: !0 } : null, n ?? {}).then(({ files: t, remaining: o }) => {
46
+ }), F(i.fsPath, r ? { pattern: r, caseInsensitive: !0 } : null, n ?? {}).then(({ files: t, remaining: o }) => {
47
47
  o > 0 && t.push(`--- ${o} more files not shown ---`), s.next({
48
48
  status: "done",
49
49
  progress: t,
@@ -60,7 +60,7 @@ function O(i, r, n) {
60
60
  });
61
61
  }
62
62
  const f = 5e5;
63
- function b(i, r, n) {
63
+ function F(i, r, n) {
64
64
  const s = n.limit ?? f;
65
65
  r?.pattern && r.pattern === "*" && (r.pattern = "**");
66
66
  const t = r?.pattern ? I(r.pattern, { nocase: r.caseInsensitive, dot: !0 }) : void 0, o = [
@@ -130,7 +130,7 @@ ${h}`));
130
130
  });
131
131
  }
132
132
  export {
133
- F as globFilesWithRipgrep,
133
+ O as globFilesWithRipgrep,
134
134
  y as nodeGlobTool,
135
- b as ripgrepFiles
135
+ F as ripgrepFiles
136
136
  };
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { z as xt } from "./console-DK0gDzNQ.js";
2
+ import { cC as xt } from "./console-CoE5Qzyz.js";
3
3
  var pt = {}, ft, Et;
4
4
  function ct() {
5
5
  if (Et) return ft;
@@ -246,10 +246,10 @@ function yt() {
246
246
  d.isPrefix !== !0 && (d.depth = d.isGlobstar ? 1 / 0 : 1);
247
247
  };
248
248
  return At = (d, B) => {
249
- const h = B || {}, V = d.length - 1, G = h.parts === !0 || h.scanToEnd === !0, W = [], O = [], rt = [];
250
- let D = d, E = -1, v = 0, tt = 0, st = !1, Z = !1, L = !1, et = !1, q = !1, r = !1, N = !1, Y = !1, ot = !1, t = !1, e = 0, nt, l, _ = { value: "", depth: 0, isGlob: !1 };
251
- const z = () => E >= V, J = () => D.charCodeAt(E + 1), M = () => (nt = l, D.charCodeAt(++E));
252
- for (; E < V; ) {
249
+ const h = B || {}, Y = d.length - 1, G = h.parts === !0 || h.scanToEnd === !0, W = [], O = [], rt = [];
250
+ let D = d, E = -1, v = 0, tt = 0, st = !1, Z = !1, L = !1, et = !1, q = !1, r = !1, N = !1, z = !1, ot = !1, t = !1, e = 0, nt, l, _ = { value: "", depth: 0, isGlob: !1 };
251
+ const V = () => E >= Y, J = () => D.charCodeAt(E + 1), M = () => (nt = l, D.charCodeAt(++E));
252
+ for (; E < Y; ) {
253
253
  l = M();
254
254
  let F;
255
255
  if (l === U) {
@@ -257,7 +257,7 @@ function yt() {
257
257
  continue;
258
258
  }
259
259
  if (r === !0 || l === p) {
260
- for (e++; z() !== !0 && (l = M()); ) {
260
+ for (e++; V() !== !0 && (l = M()); ) {
261
261
  if (l === U) {
262
262
  N = _.backslashes = !0, M();
263
263
  continue;
@@ -296,7 +296,7 @@ function yt() {
296
296
  }
297
297
  if (h.noext !== !0 && (l === C || l === y || l === b || l === s || l === u) === !0 && J() === H) {
298
298
  if (L = _.isGlob = !0, et = _.isExtglob = !0, t = !0, l === u && E === v && (ot = !0), G === !0) {
299
- for (; z() !== !0 && (l = M()); ) {
299
+ for (; V() !== !0 && (l = M()); ) {
300
300
  if (l === U) {
301
301
  N = _.backslashes = !0, l = M();
302
302
  continue;
@@ -321,7 +321,7 @@ function yt() {
321
321
  break;
322
322
  }
323
323
  if (l === c) {
324
- for (; z() !== !0 && (F = M()); ) {
324
+ for (; V() !== !0 && (F = M()); ) {
325
325
  if (F === U) {
326
326
  N = _.backslashes = !0, M();
327
327
  continue;
@@ -336,12 +336,12 @@ function yt() {
336
336
  break;
337
337
  }
338
338
  if (h.nonegate !== !0 && l === u && E === v) {
339
- Y = _.negated = !0, v++;
339
+ z = _.negated = !0, v++;
340
340
  continue;
341
341
  }
342
342
  if (h.noparen !== !0 && l === H) {
343
343
  if (L = _.isGlob = !0, G === !0) {
344
- for (; z() !== !0 && (l = M()); ) {
344
+ for (; V() !== !0 && (l = M()); ) {
345
345
  if (l === H) {
346
346
  N = _.backslashes = !0, l = M();
347
347
  continue;
@@ -375,7 +375,7 @@ function yt() {
375
375
  isGlob: L,
376
376
  isExtglob: et,
377
377
  isGlobstar: q,
378
- negated: Y,
378
+ negated: z,
379
379
  negatedExtglob: ot
380
380
  };
381
381
  if (h.tokens === !0 && (f.maxDepth = 0, x(l) || O.push(_), f.tokens = O), h.parts === !0 || h.tokens === !0) {
@@ -425,7 +425,7 @@ function dt() {
425
425
  const m = { type: "bos", value: "", output: s.prepend || "" }, x = [m], w = s.capture ? "" : "?:", X = A.globChars(s.windows), d = A.extglobChars(X), {
426
426
  DOT_LITERAL: B,
427
427
  PLUS_LITERAL: h,
428
- SLASH_LITERAL: V,
428
+ SLASH_LITERAL: Y,
429
429
  ONE_CHAR: G,
430
430
  DOTS_SLASH: W,
431
431
  NO_DOT: O,
@@ -456,9 +456,9 @@ function dt() {
456
456
  tokens: x
457
457
  };
458
458
  c = b.removePrefix(c, r), $ = c.length;
459
- const N = [], Y = [], ot = [];
459
+ const N = [], z = [], ot = [];
460
460
  let t = m, e;
461
- const nt = () => r.index === $ - 1, l = r.peek = (o = 1) => c[r.index + o], _ = r.advance = () => c[++r.index] || "", z = () => c.slice(r.index + 1), J = (o = "", g = 0) => {
461
+ const nt = () => r.index === $ - 1, l = r.peek = (o = 1) => c[r.index + o], _ = r.advance = () => c[++r.index] || "", V = () => c.slice(r.index + 1), J = (o = "", g = 0) => {
462
462
  r.consumed += o, r.index += g;
463
463
  }, M = (o) => {
464
464
  r.output += o.output != null ? o.output : o.value, J(o.value);
@@ -490,7 +490,7 @@ function dt() {
490
490
  let g = o.close + (s.capture ? ")" : ""), n;
491
491
  if (o.type === "negate") {
492
492
  let R = q;
493
- if (o.inner && o.inner.length > 1 && o.inner.includes("/") && (R = Z(s)), (R !== q || nt() || /^\)+$/.test(z())) && (g = o.close = `)$))${R}`), o.inner.includes("*") && (n = z()) && /^\.[^\\/.]+$/.test(n)) {
493
+ if (o.inner && o.inner.length > 1 && o.inner.includes("/") && (R = Z(s)), (R !== q || nt() || /^\)+$/.test(V())) && (g = o.close = `)$))${R}`), o.inner.includes("*") && (n = V()) && /^\.[^\\/.]+$/.test(n)) {
494
494
  const T = H(n, { ...C, fastpaths: !1 }).output;
495
495
  g = o.close = `)${T})${R})`;
496
496
  }
@@ -513,7 +513,7 @@ function dt() {
513
513
  e += "\\", f({ type: "text", value: e });
514
514
  continue;
515
515
  }
516
- const R = /^\\+/.exec(z());
516
+ const R = /^\\+/.exec(V());
517
517
  let T = 0;
518
518
  if (R && R[0].length > 2 && (T = R[0].length, r.index += T, T % 2 !== 0 && (e += "\\")), s.unescape === !0 ? e = _() : e += _(), r.brackets === 0) {
519
519
  f({ type: "text", value: e });
@@ -558,7 +558,7 @@ function dt() {
558
558
  continue;
559
559
  }
560
560
  if (e === "[") {
561
- if (s.nobracket === !0 || !z().includes("]")) {
561
+ if (s.nobracket === !0 || !V().includes("]")) {
562
562
  if (s.nobracket !== !0 && s.strictBrackets === !0)
563
563
  throw new SyntaxError(p("closing", "]"));
564
564
  e = `\\${e}`;
@@ -599,11 +599,11 @@ function dt() {
599
599
  outputIndex: r.output.length,
600
600
  tokensIndex: r.tokens.length
601
601
  };
602
- Y.push(n), f(n);
602
+ z.push(n), f(n);
603
603
  continue;
604
604
  }
605
605
  if (e === "}") {
606
- const n = Y[Y.length - 1];
606
+ const n = z[z.length - 1];
607
607
  if (s.nobrace === !0 || !n) {
608
608
  f({ type: "text", value: e, output: e });
609
609
  continue;
@@ -621,7 +621,7 @@ function dt() {
621
621
  for (const k of Q)
622
622
  r.output += k.output || k.value;
623
623
  }
624
- f({ type: "brace", value: e, output: R }), j("braces"), Y.pop();
624
+ f({ type: "brace", value: e, output: R }), j("braces"), z.pop();
625
625
  continue;
626
626
  }
627
627
  if (e === "|") {
@@ -630,7 +630,7 @@ function dt() {
630
630
  }
631
631
  if (e === ",") {
632
632
  let n = e;
633
- const R = Y[Y.length - 1];
633
+ const R = z[z.length - 1];
634
634
  R && ot[ot.length - 1] === "braces" && (R.comma = !0, n = "|"), f({ type: "comma", value: e, output: n });
635
635
  continue;
636
636
  }
@@ -639,13 +639,13 @@ function dt() {
639
639
  r.start = r.index + 1, r.consumed = "", r.output = "", x.pop(), t = m;
640
640
  continue;
641
641
  }
642
- f({ type: "slash", value: e, output: V });
642
+ f({ type: "slash", value: e, output: Y });
643
643
  continue;
644
644
  }
645
645
  if (e === ".") {
646
646
  if (r.braces > 0 && t.type === "dot") {
647
647
  t.value === "." && (t.output = B);
648
- const n = Y[Y.length - 1];
648
+ const n = z[z.length - 1];
649
649
  t.type = "dots", t.output += e, t.value += e, n.dots = !0;
650
650
  continue;
651
651
  }
@@ -664,7 +664,7 @@ function dt() {
664
664
  if (t && t.type === "paren") {
665
665
  const R = l();
666
666
  let T = e;
667
- (t.value === "(" && !/[!=<:]/.test(R) || R === "<" && !/<([!=]|\w+>)/.test(z())) && (T = `\\${e}`), f({ type: "text", value: e, output: T });
667
+ (t.value === "(" && !/[!=<:]/.test(R) || R === "<" && !/<([!=]|\w+>)/.test(V())) && (T = `\\${e}`), f({ type: "text", value: e, output: T });
668
668
  continue;
669
669
  }
670
670
  if (s.dot !== !0 && (t.type === "slash" || t.type === "bos")) {
@@ -710,7 +710,7 @@ function dt() {
710
710
  }
711
711
  if (e !== "*") {
712
712
  (e === "$" || e === "^") && (e = `\\${e}`);
713
- const n = P.exec(z());
713
+ const n = P.exec(V());
714
714
  n && (e += n[0], r.index += n[0].length), f({ type: "text", value: e });
715
715
  continue;
716
716
  }
@@ -718,7 +718,7 @@ function dt() {
718
718
  t.type = "star", t.star = !0, t.value += e, t.output = q, r.backtrack = !0, r.globstar = !0, J(e);
719
719
  continue;
720
720
  }
721
- let o = z();
721
+ let o = V();
722
722
  if (s.noextglob !== !0 && /^\([^?]/.test(o)) {
723
723
  F("star", e);
724
724
  continue;
@@ -754,11 +754,11 @@ function dt() {
754
754
  }
755
755
  if (n.type === "slash" && n.prev.type !== "bos" && o[0] === "/") {
756
756
  const at = o[1] !== void 0 ? "|$" : "";
757
- r.output = r.output.slice(0, -(n.output + t.output).length), n.output = `(?:${n.output}`, t.type = "globstar", t.output = `${Z(s)}${V}|${V}${at})`, t.value += e, r.output += n.output + t.output, r.globstar = !0, J(e + _()), f({ type: "slash", value: "/", output: "" });
757
+ r.output = r.output.slice(0, -(n.output + t.output).length), n.output = `(?:${n.output}`, t.type = "globstar", t.output = `${Z(s)}${Y}|${Y}${at})`, t.value += e, r.output += n.output + t.output, r.globstar = !0, J(e + _()), f({ type: "slash", value: "/", output: "" });
758
758
  continue;
759
759
  }
760
760
  if (n.type === "bos" && o[0] === "/") {
761
- t.type = "globstar", t.value += e, t.output = `(?:^|${V}|${Z(s)}${V})`, r.output = t.output, r.globstar = !0, J(e + _()), f({ type: "slash", value: "/", output: "" });
761
+ t.type = "globstar", t.value += e, t.output = `(?:^|${Y}|${Z(s)}${Y})`, r.output = t.output, r.globstar = !0, J(e + _()), f({ type: "slash", value: "/", output: "" });
762
762
  continue;
763
763
  }
764
764
  r.output = r.output.slice(0, -t.output.length), t.type = "globstar", t.output = Z(s), t.value += e, r.output += t.output, r.globstar = !0, J(e);
@@ -787,7 +787,7 @@ function dt() {
787
787
  if (s.strictBrackets === !0) throw new SyntaxError(p("closing", "}"));
788
788
  r.output = b.escapeLast(r.output, "{"), j("braces");
789
789
  }
790
- if (s.strictSlashes !== !0 && (t.type === "star" || t.type === "bracket") && f({ type: "maybe_slash", value: "", output: `${V}?` }), r.backtrack === !0) {
790
+ if (s.strictSlashes !== !0 && (t.type === "star" || t.type === "bracket") && f({ type: "maybe_slash", value: "", output: `${Y}?` }), r.backtrack === !0) {
791
791
  r.output = "";
792
792
  for (const o of r.tokens)
793
793
  r.output += o.output != null ? o.output : o.value, o.suffix && (r.output += o.suffix);
@@ -807,10 +807,10 @@ function dt() {
807
807
  NO_DOT: d,
808
808
  NO_DOTS: B,
809
809
  NO_DOTS_SLASH: h,
810
- STAR: V,
810
+ STAR: Y,
811
811
  START_ANCHOR: G
812
812
  } = A.globChars(s.windows), W = s.dot ? B : d, O = s.dot ? h : d, rt = s.capture ? "" : "?:", D = { negated: !1, prefix: "" };
813
- let E = s.bash === !0 ? ".*?" : V;
813
+ let E = s.bash === !0 ? ".*?" : Y;
814
814
  s.capture && (E = `(${E})`);
815
815
  const v = (L) => L.noglobstar === !0 ? E : `(${rt}(?:(?!${G}${L.dot ? X : m}).)*?)`, tt = (L) => {
816
816
  switch (L) {
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ import { p as o } from "./radar-MK3ICKWK-55CS4JTO-afihMdR4.js";
3
+ import { _ as e, A as s, av as i, C as v, aw as g } from "./console-CoE5Qzyz.js";
4
+ import "./chunk-TGZYFRKZ-BYBLXoJz.js";
5
+ var p = {
6
+ parse: /* @__PURE__ */ e(async (r) => {
7
+ const a = await o("info", r);
8
+ s.debug(a);
9
+ }, "parse")
10
+ }, d = { version: g.version }, m = /* @__PURE__ */ e(() => d.version, "getVersion"), c = {
11
+ getVersion: m
12
+ }, u = /* @__PURE__ */ e((r, a, n) => {
13
+ s.debug(`rendering info diagram
14
+ ` + r);
15
+ const t = i(a);
16
+ v(t, 100, 400, !0), t.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${n}`);
17
+ }, "draw"), f = { draw: u }, w = {
18
+ parser: p,
19
+ db: c,
20
+ renderer: f
21
+ };
22
+ export {
23
+ w as diagram
24
+ };