@sourcegraph/amp 0.0.1749600114-g5c00b8 → 0.0.1749614780-g9a56bd
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
CHANGED
@@ -4994,7 +4994,7 @@ async function Qv(t, e, n) {
|
|
4994
4994
|
const { loadProfileEnvironmentVariables: r } = await import("./load-profile-Cg8XaTx6.js"), a = n.loadProfile === "never" || !n.workingDirectory ? process.env : await Ue(
|
4995
4995
|
r(n.workingDirectory, n.loadProfile)
|
4996
4996
|
);
|
4997
|
-
i = await import("./stdio-
|
4997
|
+
i = await import("./stdio-yXWLIEvb.js").then(
|
4998
4998
|
({ StdioClientTransport: o }) => new o({
|
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-Bfma_T75.js").then(({ runRoutine: t }) => t)
|
5759
5759
|
};
|
5760
5760
|
let gu = !1;
|
5761
5761
|
async function od(t, e = !1) {
|
@@ -8220,7 +8220,14 @@ function fd(t) {
|
|
8220
8220
|
return i;
|
8221
8221
|
try {
|
8222
8222
|
await r();
|
8223
|
-
const u = await nt.readFile(e, "utf-8")
|
8223
|
+
const u = await nt.readFile(e, "utf-8");
|
8224
|
+
let s;
|
8225
|
+
try {
|
8226
|
+
s = JSON.parse(u);
|
8227
|
+
} catch {
|
8228
|
+
throw new Error(`Invalid JSON in settings file: ${e}`);
|
8229
|
+
}
|
8230
|
+
const c = {};
|
8224
8231
|
for (const [f, y] of Object.entries(s))
|
8225
8232
|
if (f.startsWith("amp.")) {
|
8226
8233
|
const g = f.substring(4);
|
@@ -17807,7 +17814,7 @@ async function Hr(t, e, { stdin: n, stdout: i } = { stdin: process.stdin, stdout
|
|
17807
17814
|
n.on("data", u), n.once("error", s);
|
17808
17815
|
});
|
17809
17816
|
}
|
17810
|
-
const Qd = import("./node-
|
17817
|
+
const Qd = import("./node-CZJC9BSF.js").then(
|
17811
17818
|
({ nodeFileSystem: t }) => t
|
17812
17819
|
), ts = Ut(um.exec);
|
17813
17820
|
async function Tw(t) {
|
@@ -19061,7 +19068,7 @@ async function Bw({
|
|
19061
19068
|
}
|
19062
19069
|
async function zw(t) {
|
19063
19070
|
try {
|
19064
|
-
const e = await Fw("0.0.
|
19071
|
+
const e = await Fw("0.0.1749614780-g9a56bd");
|
19065
19072
|
e.hasUpdate && e.latestVersion ? (t.next({ type: "update-start-updating" }), setTimeout(async () => {
|
19066
19073
|
try {
|
19067
19074
|
await Uw(e.latestVersion), t.next({
|
@@ -20923,7 +20930,7 @@ async function At(t, e) {
|
|
20923
20930
|
ei({
|
20924
20931
|
logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
|
20925
20932
|
logFile: e.logFile || process.env.AMP_LOG_FILE
|
20926
|
-
}), rm("0.0.
|
20933
|
+
}), rm("0.0.1749614780-g9a56bd");
|
20927
20934
|
const n = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
|
20928
20935
|
J.info("Using settings file", { settingsFile: n });
|
20929
20936
|
const i = Vn(), r = fd({ settingsFile: n }), a = process.env.AMP_API_KEY;
|
@@ -21031,7 +21038,7 @@ function m_(t) {
|
|
21031
21038
|
const e = new Pu().name("amp").description("AI-powered coding assistant").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
|
21032
21039
|
e.option("-V, --version", "output the version number", () => {
|
21033
21040
|
if (t.isTTY) {
|
21034
|
-
const a = "0.0.
|
21041
|
+
const a = "0.0.1749614780-g9a56bd".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
|
21035
21042
|
if (a) {
|
21036
21043
|
const [, , o] = a;
|
21037
21044
|
try {
|
@@ -21042,21 +21049,21 @@ function m_(t) {
|
|
21042
21049
|
day: "numeric"
|
21043
21050
|
});
|
21044
21051
|
Ie.write(
|
21045
|
-
`0.0.
|
21052
|
+
`0.0.1749614780-g9a56bd ${t.printer.print(`(released ${s})`, { foreground: "gray" })}
|
21046
21053
|
`
|
21047
21054
|
);
|
21048
21055
|
} else
|
21049
|
-
Ie.write(`0.0.
|
21056
|
+
Ie.write(`0.0.1749614780-g9a56bd
|
21050
21057
|
`);
|
21051
21058
|
} catch {
|
21052
|
-
Ie.write(`0.0.
|
21059
|
+
Ie.write(`0.0.1749614780-g9a56bd
|
21053
21060
|
`);
|
21054
21061
|
}
|
21055
21062
|
} else
|
21056
|
-
Ie.write(`0.0.
|
21063
|
+
Ie.write(`0.0.1749614780-g9a56bd
|
21057
21064
|
`);
|
21058
21065
|
} else
|
21059
|
-
Ie.write(`0.0.
|
21066
|
+
Ie.write(`0.0.1749614780-g9a56bd
|
21060
21067
|
`);
|
21061
21068
|
process.exit(0);
|
21062
21069
|
}), e.addHelpText(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { c9 as x, ca as A, cb as g, cc as B, cd as Y, ce as h, cf as $, cg as J, ch as V, ci as k, cj as z, ck as W, cl as q, cm as L, cn as C, co as D, cp as M, cq as _, c4 as Z, cr as G, cs as H, ct as F, cu as K, O as Q, cv as N, cw as X, n as ee, t as te } from "./console-CoE5Qzyz.js";
|
3
|
-
import { r as se } from "./main-
|
3
|
+
import { r as se } from "./main-CtwgALCc.js";
|
4
4
|
const v = A({
|
5
5
|
context: V(["continue", "none"]).optional().default("continue"),
|
6
6
|
tools: J([h("all"), x(g())]).optional(),
|
@@ -4,7 +4,7 @@ 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-
|
7
|
+
import { U as h } from "./main-CtwgALCc.js";
|
8
8
|
import { c8 as y, t as n, F as c } from "./console-CoE5Qzyz.js";
|
9
9
|
import { ripgrepFiles as d } from "./glob.node-DNei8bFS.js";
|
10
10
|
import { homedir as F } from "node:os";
|
@@ -5,7 +5,7 @@ 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-CtwgALCc.js";
|
9
9
|
var S = { exports: {} }, T, k;
|
10
10
|
function oe() {
|
11
11
|
if (k) return T;
|
package/package.json
CHANGED