@sourcegraph/amp 0.0.1749355713-g05a6d7 → 0.0.1749367516-gcb962c
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-CVbnd4Z8.js → client-DTzW73uz.js} +1 -1
- package/dist/{console-T6r_4D-k.js → console-y67QVOnq.js} +18650 -22320
- package/dist/{create_file.node-D4mEfKZo.js → create_file.node-DcbxPRCo.js} +1 -1
- package/dist/{edit_file.node-BlH8LaLm.js → edit_file.node-BzuwKM4U.js} +2 -2
- package/dist/{executable-BiJzVjpG.js → executable-3LtkLCkg.js} +1 -1
- package/dist/{files-UP3i3eRo.js → files-BKykRAj_.js} +1 -1
- package/dist/{glob.node-Y5D1xRsV.js → glob.node-0aiTM2uj.js} +3 -3
- package/dist/{index-C2Ke9iUN.js → index-CxZeQtZd.js} +1 -1
- package/dist/{list_directory.node-BZFZmoyB.js → list_directory.node-BHBAWKs9.js} +1 -1
- package/dist/{load-profile-BjFcSiC-.js → load-profile-ByMlljkK.js} +1 -1
- package/dist/{main-CMXyYqec.js → main-CKyzkNHf.js} +15 -15
- package/dist/{node-BEt-eFnM.js → node-0bVpGlb9.js} +3 -3
- package/dist/{node-Jui3WGeI.js → node-BZajtarc.js} +2 -2
- package/dist/{node-B0iEambK.js → node-Bk5xda6B.js} +2 -2
- package/dist/{node-CK7K6o1e.js → node-BsiQP3my.js} +3 -3
- package/dist/{node-CPEdykgq.js → node-DZkXAXAZ.js} +2 -2
- package/dist/{node-CZ03pEwv.js → node-Dpdvn72g.js} +1 -1
- package/dist/{read_file.node-Dsmm49fA.js → read_file.node-DymlpH5N.js} +1 -1
- package/dist/{stdio-cwPY7onl.js → stdio-DcmzvUF-.js} +2 -2
- package/dist/storybook.js +1 -1
- package/dist/{undo_edit.node-5FkOPN1O.js → undo_edit.node-DonqqKq5.js} +1 -1
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import u from "node:path";
|
3
|
-
import { p as d, aC as f, aD as l } from "./console-
|
3
|
+
import { p as d, aC as f, aD as l } from "./console-y67QVOnq.js";
|
4
4
|
const w = ({ args: t }, { dir: a, dirs: n, trackFileChange: c, filesystem: o }) => d(async (e) => {
|
5
5
|
if (f(a), typeof t.content != "string")
|
6
6
|
throw new Error("create_file: content must be specified");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { p, aC as m, aD as F, aE as v, aF as _, aG as b } from "./console-
|
3
|
-
import { recordEdit as x } from "./undo_edit.node-
|
2
|
+
import { p, aC as m, aD as F, aE as v, aF as _, aG as b } from "./console-y67QVOnq.js";
|
3
|
+
import { recordEdit as x } from "./undo_edit.node-DonqqKq5.js";
|
4
4
|
class E {
|
5
5
|
#e = !1;
|
6
6
|
#t = [];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { existsSync as o } from "node:fs";
|
3
3
|
import { createRequire as t } from "node:module";
|
4
|
-
import { C as i } from "./console-
|
4
|
+
import { C as i } from "./console-y67QVOnq.js";
|
5
5
|
function u() {
|
6
6
|
{
|
7
7
|
if (process.env.AMP_RIPGREP_PATH)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import T from "node:path";
|
3
|
-
import { b8 as B, b9 as I, C as v, ba as z, bb as C } from "./console-
|
3
|
+
import { b8 as B, b9 as I, C as v, ba as z, bb as C } from "./console-y67QVOnq.js";
|
4
4
|
async function A(r, h, a) {
|
5
5
|
const x = await a.listFiles(h), i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), m = [], M = /\b([\w/_-]+(?:\\.|[\w/_-])*(?:\.[\w-]+)+)\b/g, F = /(\/(?:[\w-]+\/|[\w-]+\\[.\s\S])+[\w.-]+(?:\\.|[\w.-])*(?:\.[\w-]+)+)\b/g, y = /\b([A-Za-z]:[\\\\][^\s"'<>|]*(?:\.[\w-]+)+)\b/g;
|
6
6
|
await l(M, !1), await l(F, !0), await l(y, !0);
|
@@ -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-
|
4
|
-
import { O as v, g as N, m as E, C as P, aC as R } from "./console-
|
5
|
-
import { r as D } from "./executable-
|
3
|
+
import { p as I } from "./index-CxZeQtZd.js";
|
4
|
+
import { O as v, g as N, m as E, C as P, aC as R } from "./console-y67QVOnq.js";
|
5
|
+
import { r as D } from "./executable-3LtkLCkg.js";
|
6
6
|
const S = ({ args: i }, { dirs: r }) => {
|
7
7
|
if (r.length === 0)
|
8
8
|
return new v((s) => {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import c from "node:fs/promises";
|
3
3
|
import u from "node:os";
|
4
4
|
import s from "node:path";
|
5
|
-
import { O as f, aH as i, aI as l, m, aJ as p } from "./console-
|
5
|
+
import { O as f, aH as i, aI as l, m, aJ as p } from "./console-y67QVOnq.js";
|
6
6
|
const D = ({ args: r }, { dirs: t }) => {
|
7
7
|
if (t.length === 0)
|
8
8
|
return new f((e) => {
|
@@ -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-y67QVOnq.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-DTzW73uz.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-3LtkLCkg.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-ByMlljkK.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-DcmzvUF-.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-Bk5xda6B.js").then(({ runRoutine: t }) => t)
|
5759
5759
|
};
|
5760
5760
|
let hu = !1;
|
5761
5761
|
async function ed(t, e = !1) {
|
@@ -17638,7 +17638,7 @@ async function Ur(t, e, { stdin: n, stdout: i } = { stdin: process.stdin, stdout
|
|
17638
17638
|
n.on("data", u), n.once("error", o);
|
17639
17639
|
});
|
17640
17640
|
}
|
17641
|
-
const Bd = import("./node-
|
17641
|
+
const Bd = import("./node-0bVpGlb9.js").then(
|
17642
17642
|
({ nodeFileSystem: t }) => t
|
17643
17643
|
), Qo = Ft(Zp.exec);
|
17644
17644
|
async function cw(t) {
|
@@ -18792,7 +18792,7 @@ async function Rw({
|
|
18792
18792
|
}
|
18793
18793
|
async function xw(t) {
|
18794
18794
|
try {
|
18795
|
-
const e = await _w("0.0.
|
18795
|
+
const e = await _w("0.0.1749367516-gcb962c");
|
18796
18796
|
e.hasUpdate && e.latestVersion ? (t.next({ type: "update-start-updating" }), setTimeout(async () => {
|
18797
18797
|
try {
|
18798
18798
|
await Cw(e.latestVersion), t.next({
|
@@ -20550,7 +20550,7 @@ async function Un(t, e) {
|
|
20550
20550
|
Yn({
|
20551
20551
|
logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
|
20552
20552
|
logFile: e.logFile || process.env.AMP_LOG_FILE
|
20553
|
-
}), Vp("0.0.
|
20553
|
+
}), Vp("0.0.1749367516-gcb962c");
|
20554
20554
|
const n = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
|
20555
20555
|
J.info("Using settings file", { settingsFile: n });
|
20556
20556
|
const i = Hn(), r = ad({ settingsFile: n }), a = process.env.AMP_API_KEY;
|
@@ -20658,7 +20658,7 @@ function Zw(t) {
|
|
20658
20658
|
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);
|
20659
20659
|
e.option("-V, --version", "output the version number", () => {
|
20660
20660
|
if (t.isTTY) {
|
20661
|
-
const a = "0.0.
|
20661
|
+
const a = "0.0.1749367516-gcb962c".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
|
20662
20662
|
if (a) {
|
20663
20663
|
const [, , s] = a;
|
20664
20664
|
try {
|
@@ -20669,21 +20669,21 @@ function Zw(t) {
|
|
20669
20669
|
day: "numeric"
|
20670
20670
|
});
|
20671
20671
|
Ie.write(
|
20672
|
-
`0.0.
|
20672
|
+
`0.0.1749367516-gcb962c ${t.printer.print(`(released ${o})`, { foreground: "gray" })}
|
20673
20673
|
`
|
20674
20674
|
);
|
20675
20675
|
} else
|
20676
|
-
Ie.write(`0.0.
|
20676
|
+
Ie.write(`0.0.1749367516-gcb962c
|
20677
20677
|
`);
|
20678
20678
|
} catch {
|
20679
|
-
Ie.write(`0.0.
|
20679
|
+
Ie.write(`0.0.1749367516-gcb962c
|
20680
20680
|
`);
|
20681
20681
|
}
|
20682
20682
|
} else
|
20683
|
-
Ie.write(`0.0.
|
20683
|
+
Ie.write(`0.0.1749367516-gcb962c
|
20684
20684
|
`);
|
20685
20685
|
} else
|
20686
|
-
Ie.write(`0.0.
|
20686
|
+
Ie.write(`0.0.1749367516-gcb962c
|
20687
20687
|
`);
|
20688
20688
|
process.exit(0);
|
20689
20689
|
}), e.addHelpText(
|
@@ -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-
|
8
|
-
import { N as y, C as n, aJ as c } from "./console-
|
9
|
-
import { ripgrepFiles as d } from "./glob.node-
|
7
|
+
import { U as h } from "./main-CKyzkNHf.js";
|
8
|
+
import { N as y, C as n, aJ as c } from "./console-y67QVOnq.js";
|
9
|
+
import { ripgrepFiles as d } from "./glob.node-0aiTM2uj.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,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { i as a, F as c, f as i } from "./client-
|
3
|
-
import { p as m, aR as l } from "./console-
|
2
|
+
import { i as a, F as c, f as i } from "./client-DTzW73uz.js";
|
3
|
+
import { p as m, aR as l } from "./console-y67QVOnq.js";
|
4
4
|
const h = ({ args: e }, { threadID: o }) => m(async (s) => {
|
5
5
|
try {
|
6
6
|
const r = await a.webSearch(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { q as x, o as A, n as g, y as B, r as j, l as h, x as I, u as J, w as V, A as k, aY as z, aZ as W, a_ as Z, a$ as C, b0 as L, b1 as _, b2 as D, ax as M, f as q, b3 as G, b4 as H, b5 as F, b6 as K, O as Q, b7 as N, _ as X, av as ee, C as te } from "./console-
|
3
|
-
import { r as se } from "./main-
|
2
|
+
import { q as x, o as A, n as g, y as B, r as j, l as h, x as I, u as J, w as V, A as k, aY as z, aZ as W, a_ as Z, a$ as C, b0 as L, b1 as _, b2 as D, ax as M, f as q, b3 as G, b4 as H, b5 as F, b6 as K, O as Q, b7 as N, _ as X, av as ee, C as te } from "./console-y67QVOnq.js";
|
3
|
+
import { r as se } from "./main-CKyzkNHf.js";
|
4
4
|
const v = A({
|
5
5
|
context: V(["continue", "none"]).optional().default("continue"),
|
6
6
|
tools: J([h("all"), x(g())]).optional(),
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { p as f } from "./index-
|
3
|
-
import { aC as m, g, m as c, aN as h, aO as d, aP as b, aQ as E, c as S, O as _ } from "./console-
|
4
|
-
import { r as v } from "./executable-
|
2
|
+
import { p as f } from "./index-CxZeQtZd.js";
|
3
|
+
import { aC as m, g, m as c, aN as h, aO as d, aP as b, aQ as E, c as S, O as _ } from "./console-y67QVOnq.js";
|
4
|
+
import { r as v } from "./executable-3LtkLCkg.js";
|
5
5
|
const O = ({ args: a }, { dirs: s }) => {
|
6
6
|
for (const e of s)
|
7
7
|
m(e);
|
@@ -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 { aT as de, aU as _e, C as pe, aV as ne, aW as ge, aX as ve, aI as oe, aQ as me, aH as be, aC as Se, O as se } from "./console-
|
5
|
-
import { loadProfileEnvironmentVariables as Ce } from "./load-profile-
|
4
|
+
import { aT as de, aU as _e, C as pe, aV as ne, aW as ge, aX as ve, aI as oe, aQ as me, aH as be, aC as Se, O as se } from "./console-y67QVOnq.js";
|
5
|
+
import { loadProfileEnvironmentVariables as Ce } from "./load-profile-ByMlljkK.js";
|
6
6
|
const ye = [
|
7
7
|
// Basic read/info operations
|
8
8
|
"ls",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { aK as F, p as d } from "./console-
|
2
|
+
import { aK as F, p as d } from "./console-y67QVOnq.js";
|
3
3
|
const s = ({ args: n }, { dir: o, dirs: r, threadID: a, filesystem: e }) => {
|
4
4
|
const t = F({ readFileFn: e.readFile });
|
5
5
|
return d(
|
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { a9 as ee, z as re } from "./console-
|
2
|
+
import { a9 as ee, z as re } from "./console-y67QVOnq.js";
|
3
3
|
import ne from "node:child_process";
|
4
4
|
import D from "node:path";
|
5
5
|
import L from "node:fs";
|
6
6
|
import R from "node:process";
|
7
7
|
import { PassThrough as te } from "node:stream";
|
8
|
-
import { J as se } from "./main-
|
8
|
+
import { J as se } from "./main-CKyzkNHf.js";
|
9
9
|
var S = { exports: {} }, T, k;
|
10
10
|
function oe() {
|
11
11
|
if (k) return T;
|
package/dist/storybook.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { av as r, aA as a, an as c, aB as d, at as f, au as x, af as b, as as I } from "./console-
|
2
|
+
import { av as r, aA as a, an as c, aB as d, at as f, au as x, af as b, as as I } from "./console-y67QVOnq.js";
|
3
3
|
import { stdout as s } from "node:process";
|
4
4
|
import { parseArgs as w } from "node:util";
|
5
5
|
function D() {
|
@@ -3,7 +3,7 @@ import E from "node:crypto";
|
|
3
3
|
import d, { writeFile as D } from "node:fs/promises";
|
4
4
|
import g from "node:os";
|
5
5
|
import a from "node:path";
|
6
|
-
import { C as p, p as C, aC as F, aL as b, aM as _ } from "./console-
|
6
|
+
import { C as p, p as C, aC as F, aL as b, aM as _ } from "./console-y67QVOnq.js";
|
7
7
|
class v {
|
8
8
|
MAX_TRACKED_EDITS = 50;
|
9
9
|
editQueue = [];
|
package/package.json
CHANGED