@sourcegraph/amp 0.0.1749225700-gc8788d → 0.0.1749229550-g9694e5
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.
- package/dist/amp.js +3 -3
- package/dist/{client-D0gbNDFf.js → client-ds-4Gesv.js} +2 -2
- package/dist/{client-D0gbNDFf.js.map → client-ds-4Gesv.js.map} +1 -1
- package/dist/{console-CDi5rFHv.js → console-IMaFTNO_.js} +5197 -5169
- package/dist/{console-CDi5rFHv.js.map → console-IMaFTNO_.js.map} +1 -1
- package/dist/{create_file.node-DL2WuEa4.js → create_file.node-BEncCC8j.js} +2 -2
- package/dist/{create_file.node-DL2WuEa4.js.map → create_file.node-BEncCC8j.js.map} +1 -1
- package/dist/{edit_file.node-SSEQ1h3o.js → edit_file.node-r6enrufx.js} +3 -3
- package/dist/{edit_file.node-SSEQ1h3o.js.map → edit_file.node-r6enrufx.js.map} +1 -1
- package/dist/{executable-CxioKGk7.js → executable-C191JUDZ.js} +2 -2
- package/dist/{executable-CxioKGk7.js.map → executable-C191JUDZ.js.map} +1 -1
- package/dist/{files-BQmddBey.js → files-DX1Rcv-b.js} +2 -2
- package/dist/{files-BQmddBey.js.map → files-DX1Rcv-b.js.map} +1 -1
- package/dist/{glob.node-C8xrYICA.js → glob.node-V26WhViL.js} +4 -4
- package/dist/{glob.node-C8xrYICA.js.map → glob.node-V26WhViL.js.map} +1 -1
- package/dist/{index-BY5vhogw.js → index-s2jl_p7T.js} +2 -2
- package/dist/{index-BY5vhogw.js.map → index-s2jl_p7T.js.map} +1 -1
- package/dist/{list_directory.node-p_ArdqyT.js → list_directory.node-DHdCh83K.js} +2 -2
- package/dist/{list_directory.node-p_ArdqyT.js.map → list_directory.node-DHdCh83K.js.map} +1 -1
- package/dist/{load-profile-DxrviVkC.js → load-profile-DhjYljBm.js} +2 -2
- package/dist/{load-profile-DxrviVkC.js.map → load-profile-DhjYljBm.js.map} +1 -1
- package/dist/{main-DIn8dJ9L.js → main-CViFqnHd.js} +20 -16
- package/dist/{main-DIn8dJ9L.js.map → main-CViFqnHd.js.map} +1 -1
- package/dist/{node-DQLcKPbG.js → node-5bqApaH4.js} +2 -2
- package/dist/{node-DQLcKPbG.js.map → node-5bqApaH4.js.map} +1 -1
- package/dist/{node-C9D1REPh.js → node-B7MBixqa.js} +3 -3
- package/dist/{node-C9D1REPh.js.map → node-B7MBixqa.js.map} +1 -1
- package/dist/{node-CHCdepF2.js → node-Co79r24v.js} +3 -3
- package/dist/{node-CHCdepF2.js.map → node-Co79r24v.js.map} +1 -1
- package/dist/{node-CU0lZEVr.js → node-DA-2Nx8c.js} +2 -2
- package/dist/{node-CU0lZEVr.js.map → node-DA-2Nx8c.js.map} +1 -1
- package/dist/{node-CrPwEb6e.js → node-DlbeIkGB.js} +4 -4
- package/dist/{node-CrPwEb6e.js.map → node-DlbeIkGB.js.map} +1 -1
- package/dist/{node-D-xGtMhE.js → node-EUyk2vx1.js} +3 -3
- package/dist/{node-D-xGtMhE.js.map → node-EUyk2vx1.js.map} +1 -1
- package/dist/{read_file.node-DTbjOJwN.js → read_file.node-DX2hfbZk.js} +2 -2
- package/dist/{read_file.node-DTbjOJwN.js.map → read_file.node-DX2hfbZk.js.map} +1 -1
- package/dist/{stdio-DuUbi3RX.js → stdio-DcomcMVs.js} +3 -3
- package/dist/{stdio-DuUbi3RX.js.map → stdio-DcomcMVs.js.map} +1 -1
- package/dist/storybook.js +1 -1
- package/dist/{undo_edit.node-qujh3sgI.js → undo_edit.node-Bptlgp-M.js} +2 -2
- package/dist/{undo_edit.node-qujh3sgI.js.map → undo_edit.node-Bptlgp-M.js.map} +1 -1
- package/package.json +1 -1
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { O as je, s as Dr, c as dh, a as _r, b as Zn, f as We, d as kt, p as Dt, m as Ee, e as Bn, g as br, h as $t, i as sp, j as ph, o as ue, l as be, k as oe, n as re, q as ye, r as Ge, t as Ke, u as He, v as Xn, w as it, x as mh, y as lp, z as ei, A as up, M as Je, B as gh, C as J, N as Fn, D as ri, E as Jr, F as Ss, G as cp, H as fp, I as Es, J as hp, K as vh, L as dp, P as al, Q as Mt, R as pp, S as mp, T as gp, U as vp, V as yp, W as bp, X as wp, Y as _p, Z as Sp, _ as Ep, $ as Pp, a0 as Cp, a1 as Rp, a2 as xp, a3 as Tp, a4 as Op, a5 as Ap, a6 as Lp, a7 as Ip, a8 as Dp, a9 as at, aa as $p, ab as Mp, ac as yh, ad as Et, ae as ts, af as ns, ag as jn, ah as kp, ai as Fp, aj as jp, ak as qp, al as Ps, am as ol, an as Cs, ao as qr, ap as is, aq as Np, ar as Hp, as as sl, at as Up, au as Bp, av as as, aw as bh, ax as wh, ay as zp, az as Vp } from "./console-
|
2
|
+
import { O as je, s as Dr, c as dh, a as _r, b as Zn, f as We, d as kt, p as Dt, m as Ee, e as Bn, g as br, h as $t, i as sp, j as ph, o as ue, l as be, k as oe, n as re, q as ye, r as Ge, t as Ke, u as He, v as Xn, w as it, x as mh, y as lp, z as ei, A as up, M as Je, B as gh, C as J, N as Fn, D as ri, E as Jr, F as Ss, G as cp, H as fp, I as Es, J as hp, K as vh, L as dp, P as al, Q as Mt, R as pp, S as mp, T as gp, U as vp, V as yp, W as bp, X as wp, Y as _p, Z as Sp, _ as Ep, $ as Pp, a0 as Cp, a1 as Rp, a2 as xp, a3 as Tp, a4 as Op, a5 as Ap, a6 as Lp, a7 as Ip, a8 as Dp, a9 as at, aa as $p, ab as Mp, ac as yh, ad as Et, ae as ts, af as ns, ag as jn, ah as kp, ai as Fp, aj as jp, ak as qp, al as Ps, am as ol, an as Cs, ao as qr, ap as is, aq as Np, ar as Hp, as as sl, at as Up, au as Bp, av as as, aw as bh, ax as wh, ay as zp, az as Vp } from "./console-IMaFTNO_.js";
|
3
3
|
import * as Wp from "node:fs/promises";
|
4
4
|
import tt, { readdir as _h, stat as Sh, readFile as Or, mkdir as zn, writeFile as Tt, unlink as Gp, readlink as Kp, open as Jp } from "node:fs/promises";
|
5
5
|
import * as Yp from "node:path";
|
6
6
|
import me, { join as ze, dirname as ll } from "node:path";
|
7
|
-
import { i as ul, F as yi, f as wr, a as Qp } from "./client-
|
7
|
+
import { i as ul, F as yi, f as wr, a as Qp } from "./client-ds-4Gesv.js";
|
8
8
|
import Rs from "node:events";
|
9
9
|
import * as Zp from "node:child_process";
|
10
10
|
import Xp, { execFile as Eh, spawn as ti, exec as Nr } from "node:child_process";
|
@@ -18,7 +18,7 @@ import fm, { createGzip as hm } from "node:zlib";
|
|
18
18
|
import dm from "node:string_decoder";
|
19
19
|
import pm, { createServer as Ph } from "node:http";
|
20
20
|
import mm from "node:https";
|
21
|
-
import { r as gm } from "./executable-
|
21
|
+
import { r as gm } from "./executable-C191JUDZ.js";
|
22
22
|
import { pipeline as vm } from "node:stream/promises";
|
23
23
|
import { lookup as ym } from "node:dns";
|
24
24
|
const Ir = Symbol.for("@@pendingOperation");
|
@@ -4991,10 +4991,10 @@ async function Nv(t, e, n) {
|
|
4991
4991
|
if ("url" in t)
|
4992
4992
|
i = new jv(new URL(t.url));
|
4993
4993
|
else {
|
4994
|
-
const { loadProfileEnvironmentVariables: r } = await import("./load-profile-
|
4994
|
+
const { loadProfileEnvironmentVariables: r } = await import("./load-profile-DhjYljBm.js"), a = n.loadProfile === "never" || !n.workingDirectory ? process.env : await We(
|
4995
4995
|
r(n.workingDirectory, n.loadProfile)
|
4996
4996
|
);
|
4997
|
-
i = await import("./stdio-
|
4997
|
+
i = await import("./stdio-DcomcMVs.js").then(
|
4998
4998
|
({ StdioClientTransport: s }) => new s({
|
4999
4999
|
...t,
|
5000
5000
|
stderr: "pipe",
|
@@ -5755,7 +5755,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
|
|
5755
5755
|
},
|
5756
5756
|
source: "builtin"
|
5757
5757
|
},
|
5758
|
-
fn: import("./node-
|
5758
|
+
fn: import("./node-EUyk2vx1.js").then(({ runRoutine: t }) => t)
|
5759
5759
|
};
|
5760
5760
|
let hu = !1;
|
5761
5761
|
async function ed(t, e = !1) {
|
@@ -17633,7 +17633,7 @@ async function Ur(t, e, { stdin: n, stdout: i } = { stdin: process.stdin, stdout
|
|
17633
17633
|
n.on("data", u), n.once("error", o);
|
17634
17634
|
});
|
17635
17635
|
}
|
17636
|
-
const Bd = import("./node-
|
17636
|
+
const Bd = import("./node-5bqApaH4.js").then(
|
17637
17637
|
({ nodeFileSystem: t }) => t
|
17638
17638
|
), Qo = Ft(Zp.exec);
|
17639
17639
|
async function cw(t) {
|
@@ -18787,7 +18787,7 @@ async function Rw({
|
|
18787
18787
|
}
|
18788
18788
|
async function xw(t) {
|
18789
18789
|
try {
|
18790
|
-
const e = await _w("0.0.
|
18790
|
+
const e = await _w("0.0.1749229550-g9694e5");
|
18791
18791
|
e.hasUpdate && e.latestVersion ? (t.next({ type: "update-start-updating" }), setTimeout(async () => {
|
18792
18792
|
try {
|
18793
18793
|
await Cw(e.latestVersion), t.next({
|
@@ -20418,6 +20418,8 @@ function vr({ stderr: t }) {
|
|
20418
20418
|
t.write("\r\x1B[K");
|
20419
20419
|
}
|
20420
20420
|
function zw({ printer: t, stderr: e }, n, i, r) {
|
20421
|
+
if (process.env.CI)
|
20422
|
+
return;
|
20421
20423
|
const a = "◉◎";
|
20422
20424
|
e.write("\r\x1B[K");
|
20423
20425
|
const s = i ? i.substring(0, 80).replace(/\n/g, " ") : "", u = (a[n % a.length] ?? "") + " " + s + " ";
|
@@ -20431,6 +20433,8 @@ function Ws(t, e) {
|
|
20431
20433
|
return n >= Gw ? e.print(c, { foreground: "red" }) : n >= Ww ? e.print(c, { foreground: "yellow" }) : c;
|
20432
20434
|
}
|
20433
20435
|
function Vw(t, e) {
|
20436
|
+
if (process.env.CI)
|
20437
|
+
return null;
|
20434
20438
|
const n = [];
|
20435
20439
|
return t.updateState === "updating" ? n.push("⬇ Updating Amp...") : t.updateState === "success" ? n.push(e.print("✓ Amp updated. Restart to apply.", { foreground: "green" })) : t.updateState === "error" && n.push(e.print("✗ Amp update failed.", { foreground: "red" })), t.tokenUsage && n.push(Ws(t.tokenUsage, e)), n.join(" ");
|
20436
20440
|
}
|
@@ -20536,7 +20540,7 @@ async function Un(t, e) {
|
|
20536
20540
|
Yn({
|
20537
20541
|
logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
|
20538
20542
|
logFile: e.logFile || process.env.AMP_LOG_FILE
|
20539
|
-
}), Vp("0.0.
|
20543
|
+
}), Vp("0.0.1749229550-g9694e5");
|
20540
20544
|
const n = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
|
20541
20545
|
J.info("Using settings file", { settingsFile: n });
|
20542
20546
|
const i = Hn(), r = ad({ settingsFile: n }), a = process.env.AMP_API_KEY;
|
@@ -20644,7 +20648,7 @@ function Zw(t) {
|
|
20644
20648
|
const e = new wu().name("amp").description("AI-powered coding assistant").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
|
20645
20649
|
e.option("-V, --version", "output the version number", () => {
|
20646
20650
|
if (t.isTTY) {
|
20647
|
-
const a = "0.0.
|
20651
|
+
const a = "0.0.1749229550-g9694e5".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
|
20648
20652
|
if (a) {
|
20649
20653
|
const [, , s] = a;
|
20650
20654
|
try {
|
@@ -20655,21 +20659,21 @@ function Zw(t) {
|
|
20655
20659
|
day: "numeric"
|
20656
20660
|
});
|
20657
20661
|
Ie.write(
|
20658
|
-
`0.0.
|
20662
|
+
`0.0.1749229550-g9694e5 ${t.printer.print(`(released ${o})`, { foreground: "gray" })}
|
20659
20663
|
`
|
20660
20664
|
);
|
20661
20665
|
} else
|
20662
|
-
Ie.write(`0.0.
|
20666
|
+
Ie.write(`0.0.1749229550-g9694e5
|
20663
20667
|
`);
|
20664
20668
|
} catch {
|
20665
|
-
Ie.write(`0.0.
|
20669
|
+
Ie.write(`0.0.1749229550-g9694e5
|
20666
20670
|
`);
|
20667
20671
|
}
|
20668
20672
|
} else
|
20669
|
-
Ie.write(`0.0.
|
20673
|
+
Ie.write(`0.0.1749229550-g9694e5
|
20670
20674
|
`);
|
20671
20675
|
} else
|
20672
|
-
Ie.write(`0.0.
|
20676
|
+
Ie.write(`0.0.1749229550-g9694e5
|
20673
20677
|
`);
|
20674
20678
|
process.exit(0);
|
20675
20679
|
}), e.addHelpText(
|
@@ -21117,4 +21121,4 @@ export {
|
|
21117
21121
|
Am as J,
|
21118
21122
|
ey as r
|
21119
21123
|
};
|
21120
|
-
//# sourceMappingURL=main-
|
21124
|
+
//# sourceMappingURL=main-CViFqnHd.js.map
|