@sourcegraph/amp 0.0.1748917891-gc53039 → 0.0.1748923506-g7e8633

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 (43) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/{client-CJDF5IOf.js → client-DM7cuALa.js} +2 -2
  3. package/dist/{client-CJDF5IOf.js.map → client-DM7cuALa.js.map} +1 -1
  4. package/dist/{console-EFuuJ6Do.js → console-mWOvD6Pa.js} +20 -13
  5. package/dist/{console-EFuuJ6Do.js.map → console-mWOvD6Pa.js.map} +1 -1
  6. package/dist/{create_file.node-znCV9y1u.js → create_file.node-C811NWdx.js} +2 -2
  7. package/dist/{create_file.node-znCV9y1u.js.map → create_file.node-C811NWdx.js.map} +1 -1
  8. package/dist/{edit_file.node-Ox45wer9.js → edit_file.node-BHKC-gQq.js} +3 -3
  9. package/dist/{edit_file.node-Ox45wer9.js.map → edit_file.node-BHKC-gQq.js.map} +1 -1
  10. package/dist/{executable-Dny7Sqei.js → executable-C7hPnzew.js} +2 -2
  11. package/dist/{executable-Dny7Sqei.js.map → executable-C7hPnzew.js.map} +1 -1
  12. package/dist/{files-XMouM7Xy.js → files-B8V2eCKM.js} +2 -2
  13. package/dist/{files-XMouM7Xy.js.map → files-B8V2eCKM.js.map} +1 -1
  14. package/dist/{glob.node-CQYWJD-w.js → glob.node-BaOYqDt4.js} +4 -4
  15. package/dist/{glob.node-CQYWJD-w.js.map → glob.node-BaOYqDt4.js.map} +1 -1
  16. package/dist/{index-tUVCK-3e.js → index-C8J8Ux8A.js} +2 -2
  17. package/dist/{index-tUVCK-3e.js.map → index-C8J8Ux8A.js.map} +1 -1
  18. package/dist/{list_directory.node-CBATT0WM.js → list_directory.node-BgRfRZbc.js} +2 -2
  19. package/dist/{list_directory.node-CBATT0WM.js.map → list_directory.node-BgRfRZbc.js.map} +1 -1
  20. package/dist/{load-profile-C07m9AR8.js → load-profile-zboUN1ze.js} +2 -2
  21. package/dist/{load-profile-C07m9AR8.js.map → load-profile-zboUN1ze.js.map} +1 -1
  22. package/dist/{main-BqEui1IZ.js → main-CnybONO7.js} +17 -17
  23. package/dist/{main-BqEui1IZ.js.map → main-CnybONO7.js.map} +1 -1
  24. package/dist/{node-DXJQ7rm8.js → node-CcXhHJLX.js} +3 -3
  25. package/dist/{node-DXJQ7rm8.js.map → node-CcXhHJLX.js.map} +1 -1
  26. package/dist/{node-DBTLyS3b.js → node-CqTylAyB.js} +3 -3
  27. package/dist/{node-DBTLyS3b.js.map → node-CqTylAyB.js.map} +1 -1
  28. package/dist/{node-B514W51x.js → node-Cvj0SzTq.js} +4 -4
  29. package/dist/{node-B514W51x.js.map → node-Cvj0SzTq.js.map} +1 -1
  30. package/dist/{node-O3hoyYss.js → node-De4liSZz.js} +2 -2
  31. package/dist/{node-O3hoyYss.js.map → node-De4liSZz.js.map} +1 -1
  32. package/dist/{node-CC00cSMA.js → node-DoPUdUgl.js} +3 -3
  33. package/dist/{node-CC00cSMA.js.map → node-DoPUdUgl.js.map} +1 -1
  34. package/dist/{node-BTp0pR0E.js → node-cHFAXE7T.js} +2 -2
  35. package/dist/{node-BTp0pR0E.js.map → node-cHFAXE7T.js.map} +1 -1
  36. package/dist/{read_file.node-Cr1TQq-u.js → read_file.node-CljqDFUj.js} +2 -2
  37. package/dist/{read_file.node-Cr1TQq-u.js.map → read_file.node-CljqDFUj.js.map} +1 -1
  38. package/dist/{stdio-Ba8PP3i9.js → stdio-CRZQVsq7.js} +3 -3
  39. package/dist/{stdio-Ba8PP3i9.js.map → stdio-CRZQVsq7.js.map} +1 -1
  40. package/dist/storybook.js +1 -1
  41. package/dist/{undo_edit.node-BOccAnc1.js → undo_edit.node-BgCpAlBA.js} +2 -2
  42. package/dist/{undo_edit.node-BOccAnc1.js.map → undo_edit.node-BgCpAlBA.js.map} +1 -1
  43. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { O as Ne, s as $r, c as ch, a as _r, b as bs, f as Ge, d as Qn, p as $t, m as xe, e as Un, g as br, h as Dt, i as np, j as fh, o as le, l as be, k as oe, n as ee, q as ye, r as Ke, t as Je, u as Ue, v as Zn, w as st, x as hh, y as ip, z as Xn, A as ap, M as er, B as op, C as Q, N as Fn, D as ws, E as Zr, F as _s, G as sp, H as up, I as dh, J as lp, K as ph, L as cp, P as ru, Q as Mt, R as fp, S as hp, T as dp, U as pp, V as mp, W as vp, X as gp, Y as yp, Z as bp, _ as wp, $ as _p, a0 as Ep, a1 as Sp, a2 as Pp, a3 as Cp, a4 as xp, a5 as Rp, a6 as Op, a7 as Tp, a8 as Ap, a9 as Lp, aa as ut, ab as Ip, ac as $p, ad as Dp, ae as Mp, af as mh, ag as Gt, ah as vh, ai as tu, aj as nu, ak as iu, al as gi, am as gh, an as rs, ao as Se, ap as kp, aq as Fp, ar as qp, as as jp, at as Np, au as ts, av as yh, aw as bh, ax as Hp, ay as Up } from "./console-EFuuJ6Do.js";
2
+ import { O as Ne, s as $r, c as ch, a as _r, b as bs, f as Ge, d as Qn, p as $t, m as xe, e as Un, g as br, h as Dt, i as np, j as fh, o as le, l as be, k as oe, n as ee, q as ye, r as Ke, t as Je, u as Ue, v as Zn, w as st, x as hh, y as ip, z as Xn, A as ap, M as er, B as op, C as Q, N as Fn, D as ws, E as Zr, F as _s, G as sp, H as up, I as dh, J as lp, K as ph, L as cp, P as ru, Q as Mt, R as fp, S as hp, T as dp, U as pp, V as mp, W as vp, X as gp, Y as yp, Z as bp, _ as wp, $ as _p, a0 as Ep, a1 as Sp, a2 as Pp, a3 as Cp, a4 as xp, a5 as Rp, a6 as Op, a7 as Tp, a8 as Ap, a9 as Lp, aa as ut, ab as Ip, ac as $p, ad as Dp, ae as Mp, af as mh, ag as Gt, ah as vh, ai as tu, aj as nu, ak as iu, al as gi, am as gh, an as rs, ao as Se, ap as kp, aq as Fp, ar as qp, as as jp, at as Np, au as ts, av as yh, aw as bh, ax as Hp, ay as Up } from "./console-mWOvD6Pa.js";
3
3
  import * as Bp from "node:fs/promises";
4
4
  import at, { readdir as zp, stat as wh, readFile as Ar, mkdir as Bn, writeFile as Rt, unlink as Vp, readlink as Wp, open as Gp } from "node:fs/promises";
5
5
  import * as Kp from "node:path";
6
6
  import me, { join as Ve, dirname as au } from "node:path";
7
- import { f as wr, i as Jp } from "./client-CJDF5IOf.js";
7
+ import { f as wr, i as Jp } from "./client-DM7cuALa.js";
8
8
  import Es from "node:events";
9
9
  import * as Yp from "node:child_process";
10
10
  import Qp, { execFile as _h, spawn as ei, exec as Nr } from "node:child_process";
@@ -18,7 +18,7 @@ import lm, { createGzip as cm } from "node:zlib";
18
18
  import fm from "node:string_decoder";
19
19
  import hm, { createServer as Eh } from "node:http";
20
20
  import dm from "node:https";
21
- import { r as pm } from "./executable-Dny7Sqei.js";
21
+ import { r as pm } from "./executable-C7hPnzew.js";
22
22
  import { pipeline as mm } from "node:stream/promises";
23
23
  import { lookup as vm } from "node:dns";
24
24
  const Ir = Symbol.for("@@pendingOperation");
@@ -4991,10 +4991,10 @@ async function qg(i, e, t) {
4991
4991
  if ("url" in i)
4992
4992
  n = new kg(new URL(i.url));
4993
4993
  else {
4994
- const { loadProfileEnvironmentVariables: r } = await import("./load-profile-C07m9AR8.js"), a = t.loadProfile === "never" || !t.workingDirectory ? process.env : await Ge(
4994
+ const { loadProfileEnvironmentVariables: r } = await import("./load-profile-zboUN1ze.js"), a = t.loadProfile === "never" || !t.workingDirectory ? process.env : await Ge(
4995
4995
  r(t.workingDirectory, t.loadProfile)
4996
4996
  );
4997
- n = await import("./stdio-Ba8PP3i9.js").then(
4997
+ n = await import("./stdio-CRZQVsq7.js").then(
4998
4998
  ({ StdioClientTransport: u }) => new u({
4999
4999
  ...i,
5000
5000
  stderr: "pipe",
@@ -5723,7 +5723,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
5723
5723
  },
5724
5724
  source: "builtin"
5725
5725
  },
5726
- fn: import("./node-DBTLyS3b.js").then(({ runRoutine: i }) => i)
5726
+ fn: import("./node-CqTylAyB.js").then(({ runRoutine: i }) => i)
5727
5727
  };
5728
5728
  let ul = !1;
5729
5729
  async function Zh(i, e = !1) {
@@ -17584,7 +17584,7 @@ function aw(i) {
17584
17584
  );
17585
17585
  return t || n;
17586
17586
  }
17587
- const ow = "Out of credits", sw = import("./node-O3hoyYss.js").then(
17587
+ const ow = "Out of credits", sw = import("./node-De4liSZz.js").then(
17588
17588
  ({ nodeFileSystem: i }) => i
17589
17589
  );
17590
17590
  async function uw() {
@@ -18573,7 +18573,7 @@ async function _w({
18573
18573
  }
18574
18574
  async function Ew(i) {
18575
18575
  try {
18576
- const e = await vw("0.0.1748917891-gc53039");
18576
+ const e = await vw("0.0.1748923506-g7e8633");
18577
18577
  e.hasUpdate && e.latestVersion ? (i.next({ type: "update-start-updating" }), setTimeout(async () => {
18578
18578
  try {
18579
18579
  await ww(e.latestVersion), i.next({
@@ -19962,7 +19962,7 @@ async function Hn(i, e) {
19962
19962
  Jn({
19963
19963
  logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
19964
19964
  logFile: e.logFile || process.env.AMP_LOG_FILE
19965
- }), Up("0.0.1748917891-gc53039");
19965
+ }), Up("0.0.1748923506-g7e8633");
19966
19966
  const t = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
19967
19967
  Q.info("Using settings file", { settingsFile: t });
19968
19968
  const n = Nn(), r = nd({ settingsFile: t }), a = process.env.AMP_API_KEY;
@@ -20062,7 +20062,7 @@ function Ww(i) {
20062
20062
  const e = new vl().name("amp").description("AI-powered coding assistant").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
20063
20063
  e.option("-V, --version", "output the version number", () => {
20064
20064
  if (i.isTTY) {
20065
- const a = "0.0.1748917891-gc53039".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
20065
+ const a = "0.0.1748923506-g7e8633".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
20066
20066
  if (a) {
20067
20067
  const [, , u] = a;
20068
20068
  try {
@@ -20073,21 +20073,21 @@ function Ww(i) {
20073
20073
  day: "numeric"
20074
20074
  });
20075
20075
  $e.write(
20076
- `0.0.1748917891-gc53039 ${i.printer.print(`(released ${o})`, { foreground: "gray" })}
20076
+ `0.0.1748923506-g7e8633 ${i.printer.print(`(released ${o})`, { foreground: "gray" })}
20077
20077
  `
20078
20078
  );
20079
20079
  } else
20080
- $e.write(`0.0.1748917891-gc53039
20080
+ $e.write(`0.0.1748923506-g7e8633
20081
20081
  `);
20082
20082
  } catch {
20083
- $e.write(`0.0.1748917891-gc53039
20083
+ $e.write(`0.0.1748923506-g7e8633
20084
20084
  `);
20085
20085
  }
20086
20086
  } else
20087
- $e.write(`0.0.1748917891-gc53039
20087
+ $e.write(`0.0.1748923506-g7e8633
20088
20088
  `);
20089
20089
  } else
20090
- $e.write(`0.0.1748917891-gc53039
20090
+ $e.write(`0.0.1748923506-g7e8633
20091
20091
  `);
20092
20092
  process.exit(0);
20093
20093
  }), e.addHelpText(
@@ -20403,7 +20403,7 @@ Use ` + o.printer.print("amp threads continue [THREAD_ID]", {
20403
20403
  ), _e.write(
20404
20404
  `it to support requests. Learn more at https://ampcode.com/manual#support-bundle
20405
20405
  `
20406
- );
20406
+ ), process.exit(0);
20407
20407
  } catch (u) {
20408
20408
  _e.write(
20409
20409
  i.printer.print("Error generating support bundle: ", { foreground: "red" }) + `${u instanceof Error ? u.message : String(u)}
@@ -20516,4 +20516,4 @@ export {
20516
20516
  Om as J,
20517
20517
  Zg as r
20518
20518
  };
20519
- //# sourceMappingURL=main-BqEui1IZ.js.map
20519
+ //# sourceMappingURL=main-CnybONO7.js.map